﻿
.achievers-hero {
    position: relative;
    height: 35vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background-image: linear-gradient( 110deg, rgba(12, 32, 78, .88), rgba(26, 62, 141, .70), rgba(3, 169, 244, .38) ), url("/img/achievers.jpg");
    background-position: center 42%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.achievers-hero-content {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.achievers-hero-subtitle {
    color: #bcecff;
    font-size: clamp(.68rem, 1.5vw, .9rem);
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.achievers-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.achievers-hero-line {
    width: 75px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 10px;
    background: #67dbff;
}

/* =========================
       MAIN SECTION
    ========================= */

.achievers-main {
    background: #f5f8fd;
    padding: 65px 0 80px;
    min-height: 50vh;
}

.achievers-intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.achievers-eyebrow {
    color: #039bd8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.achievers-intro h2 {
    color: #1a3e8d;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.achievers-intro p {
    color: #68758a;
    line-height: 1.8;
    margin: 0;
}

/* =========================
       CATEGORY BOXES
    ========================= */

.achiever-category {
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(20, 48, 94, .045);
    transition: box-shadow .25s ease, border-color .25s ease;
}

    .achiever-category.is-open {
        border-color: none;
        box-shadow: 0 12px 32px rgba(20, 48, 94, .09);
    }

.achiever-category-button {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    color: #1a3e8d;
    transition: background .2s ease;
}

    .achiever-category-button:hover {
        background: #f7faff;
    }

.achiever-category.is-open .achiever-category-button {
    background: linear-gradient(100deg, #f2f7ff, #fff);
}

.category-icon-box {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1a3e8d, #03a9f4);
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(26, 62, 141, .16);
}

.category-heading-text {
    flex: 1;
    min-width: 0;
}

    .category-heading-text h3 {
        color: #1a3e8d;
        font-size: clamp(1.05rem, 2.5vw, 1.3rem);
        font-weight: 800;
        margin: 0 0 5px;
        overflow-wrap: anywhere;
    }

    .category-heading-text p {
        color: #7a879a;
        font-size: .85rem;
        margin: 0;
    }

.category-chevron {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3e8d;
    background: #edf4ff;
    font-size: 1.1rem;
    transition: transform .25s ease;
}

.achiever-category.is-open .category-chevron {
    transform: rotate(180deg);
}

.achiever-category-panel {
    padding: 0 25px 28px;
}

/* =========================
       YEAR FILTER
    ========================= */

.achievers-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 18px 0 23px;
    margin-bottom: 22px;
    border-top: 1px solid #edf1f7;
}

.achievers-filter-label {
    color: #40516c;
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
}

.achievers-year-select {
    width: 100%;
    max-width: 240px;
    min-height: 44px;
    border: 1px solid #d6e0ee;
    border-radius: 10px;
    background-color: #fff;
    color: #1a3e8d;
    padding: 9px 38px 9px 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

    .achievers-year-select:focus {
        border-color: #03a9f4;
        box-shadow: 0 0 0 3px rgba(3, 169, 244, .12);
    }

/* =========================
       STUDENT CARDS
    ========================= */

.achiever-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.achiever-student-card {
    min-width: 0;
    height: 100%;
    border: 1px solid #edf1f7;
    border-radius: 17px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20, 48, 94, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .achiever-student-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 32px rgba(20, 48, 94, .12);
    }

.achiever-student-photo {
    height: 270px;
    position: relative;
    overflow: hidden;
    background: #eaf0f8;
}

    .achiever-student-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform .4s ease;
    }

.achiever-student-card:hover .achiever-student-photo img {
    transform: scale(1.045);
}

.achiever-featured-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 12px;
    border-radius: 30px;
    color: #765000;
    background: #fff0c2;
    font-size: .72rem;
    font-weight: 800;
}

.achiever-student-info {
    padding: 22px;
}

.achiever-year-badge {
    display: inline-block;
    background: #eaf6ff;
    color: #1768a5;
    border-radius: 25px;
    padding: 6px 11px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 13px;
}

.achiever-student-name {
    color: #1a3e8d;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
    margin: 0 0 9px;
}

.achiever-student-title {
    color: #079bd8;
    font-weight: 700;
    font-size: .94rem;
    line-height: 1.65;
    margin: 0 0 12px;
}

.achiever-student-description {
    color: #68758a;
    font-size: .88rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin: 0;
}

.achievers-no-year-results {
    display: none;
    padding: 30px 15px;
    text-align: center;
    color: #738198;
    background: #f8faff;
    border: 1px dashed #d4dfef;
    border-radius: 12px;
}

.achievers-empty {
    text-align: center;
    padding: 55px 25px;
    background: #fff;
    border: 1px dashed #cbd8e8;
    border-radius: 18px;
}

    .achievers-empty h3 {
        color: #1a3e8d;
        font-weight: 800;
    }

    .achievers-empty p {
        color: #738198;
        margin: 10px 0 0;
    }

/* =========================
       RESPONSIVE
    ========================= */

@media (max-width: 991.98px) {
    .achiever-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .achiever-student-photo {
        height: 260px;
    }
}

@media (max-width: 767.98px) {
    .achievers-hero {
        background-attachment: scroll;
        background-position: center center;
    }

    .achievers-hero-subtitle {
        letter-spacing: 2.5px;
    }

    .achievers-main {
        padding: 42px 0 55px;
    }

    .achievers-intro {
        margin-bottom: 30px;
    }

    .achiever-category-button {
        padding: 17px;
        gap: 12px;

    }

    .category-icon-box {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .achiever-category-panel {
        padding: 0 17px 20px;
    }

    .achievers-filter-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .achievers-year-select {
        max-width: none;
    }

    .achiever-student-grid {
        gap: 16px;
    }

    .achiever-student-photo {
        height: 230px;
    }

    .achiever-student-info {
        padding: 17px;
    }
}

@media (max-width: 480px) {
    .achievers-hero {
        background-position: 40% center;
    }

    .achievers-hero-subtitle {
        font-size: .65rem;
        letter-spacing: 2px;
    }

    .achiever-student-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .achiever-student-photo {
        height: 280px;
    }

    .achiever-student-info {
        padding: 21px;
    }

    .category-heading-text h3 {
        font-size: 1.05rem;
    }

    .category-chevron {
        width: 31px;
        height: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .achiever-category,
    .category-chevron,
    .achiever-student-card,
    .achiever-student-photo img {
        transition: none;
    }

        .achiever-student-card:hover {
            transform: none;
        }
}


/* Remove the black border/outline when clicking a category */
.achiever-category-button,
.achiever-category-button:focus,
.achiever-category-button:active,
.achiever-category-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent the browser from changing the border on click */
.achiever-category-button {
    border: none;
    -webkit-tap-highlight-color: transparent;
}