/* =========================================================
   RESULTS PAGE — LEARN WITH ALTHAF
   CLEAN / CLASSY / COMPACT
   ========================================================= */


/* =========================================================
   GENERAL
   ========================================================= */

.results-summary-section,
.results-book-section {
    width: 100%;
    box-sizing: border-box;
}

.results-summary-section {
    padding: 42px 20px 0;
}

.results-book-section {
    padding: 55px 20px 70px;
    margin-top: 42px;
    border-top: 1px solid #eeeeee;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.results-section-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
    box-sizing: border-box;
}

.results-eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #999999;
}

.results-section-heading h1,
.results-section-heading h2 {
    margin: 0;
    color: #111111;
    font-family: "Arial", sans-serif;
    font-weight: 700;
    letter-spacing: -1.4px;
}

.results-section-heading h1 {
    font-size: 38px;
    line-height: 1.08;
}

.results-section-heading h2 {
    font-size: 36px;
    line-height: 1.08;
}

.results-heading-line {
    width: 34px;
    height: 3px;
    margin: 13px auto 13px;
    background: #111111;
    border-radius: 10px;
}

.results-section-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   SUMMARY CONTAINER
   ========================================================= */

#results-summary {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   LATEST YEAR — FEATURED CARD
   ========================================================= */

.summary-featured {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 18px;
    padding: 25px 28px 23px;
    box-sizing: border-box;

    background: #151515;
    color: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.10);
}


/* subtle decorative circles */

.summary-featured::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -100px;
    top: -125px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.summary-featured::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -100px;
    bottom: -110px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}


/* =========================================================
   FEATURED TOP
   ========================================================= */

.summary-featured-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.summary-featured-label {
    margin-bottom: 5px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #a9a9a9;
}

.summary-featured-year {
    margin: 0;

    font-size: 34px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: -1px;

    color: #ffffff;
}

.summary-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.summary-latest-badge {
    flex-shrink: 0;

    padding: 6px 12px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;

    color: #d7d7d7;
    text-transform: uppercase;
}

.summary-informed-small {
    font-size: 9px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.3px;
}


/* =========================================================
   SUMMARY STAT GRID (3 COLUMNS)
   ========================================================= */

.summary-stat-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 20px;
}

.summary-stat {
    min-width: 0;

    padding: 16px 12px 14px;

    box-sizing: border-box;

    text-align: center;

    background: rgba(255,255,255,0.065);

    border: 1px solid rgba(255,255,255,0.10);

    border-radius: 11px;
}

.summary-stat-value {
    display: block;

    margin-bottom: 5px;

    font-size: 26px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.7px;

    color: #ffffff;
}

.summary-stat-label {
    display: block;

    font-size: 8.5px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    color: #999999;
}


/* =========================================================
   SPECIAL ACHIEVEMENTS
   ========================================================= */

.summary-special {
    position: relative;
    z-index: 2;

    padding-top: 17px;

    border-top: 1px solid rgba(255,255,255,0.10);
}

.summary-special-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 11px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #ffffff;
}

.summary-star {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f5c400;

    border-radius: 50%;

    color: #111111;

    font-size: 11px;
}

.summary-special-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.summary-special-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 8px;

    background: rgba(255,255,255,0.055);

    color: #dddddd;

    font-size: 10px;
    line-height: 1.2;
}

.summary-special-item::before {
    content: "★";

    color: #f5c400;

    font-size: 8px;
}


/* =========================================================
   PREVIOUS YEARS
   ========================================================= */

.summary-other-years {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin: 0 auto;
}


/* =========================================================
   PREVIOUS YEAR CARD
   ========================================================= */

.summary-year-card {
    width: 100%;

    padding: 20px 20px 17px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e7e7e7;

    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(0,0,0,0.035);

    text-align: center;
}

.summary-year-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.summary-year-card-year {
    margin: 0;

    font-size: 22px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: #151515;
}

.summary-small-informed-tag {
    font-size: 8.5px;
    font-weight: 600;
    color: #888888;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
}


/* =========================================================
   PREVIOUS YEAR STATS (3 COLUMNS)
   ========================================================= */

.summary-small-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-bottom: 14px;
}

.summary-small-stat {
    min-width: 0;

    padding: 10px 5px 9px;

    background: #f7f7f7;

    border-radius: 8px;

    text-align: center;
}

.summary-small-value {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;
    line-height: 1;

    font-weight: 700;

    color: #151515;
}

.summary-small-label {
    display: block;

    font-size: 7.5px;
    line-height: 1.1;

    font-weight: 700;

    letter-spacing: 0.9px;

    color: #999999;

    text-transform: uppercase;
}


/* =========================================================
   PREVIOUS SPECIAL RESULTS
   ========================================================= */

.summary-card-special {
    padding-top: 12px;

    border-top: 1px solid #eeeeee;

    text-align: center;
}

.summary-card-special-label {
    display: inline;

    margin-right: 4px;

    font-size: 9px;

    font-weight: 700;

    color: #111111;
}

.summary-card-special-list {
    display: inline;

    font-size: 9px;

    line-height: 1.6;

    color: #666666;
}

.summary-card-special-item:not(:last-child)::after {
    content: "  •  ";
    color: #aaaaaa;
}


/* =========================================================
   RESULTS BOOK
   ========================================================= */

#results-book {
    width: 100%;
    max-width: 1080px;

    margin: 0 auto;

    box-sizing: border-box;
}

.results-book-heading {
    margin-bottom: 28px;
}


/* =========================================================
   YEAR DROPDOWNS
   ========================================================= */

.result-year {
    width: 100%;

    margin-bottom: 10px;
}

.result-year-header {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px 0 20px;

    box-sizing: border-box;

    background: #151515;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.result-year-header:hover {
    background: #222222;
}

.result-year-header h2 {
    flex: 1;

    margin: 0;

    text-align: center;

    font-size: 16px;
    font-weight: 700;

    color: #ffffff;

    letter-spacing: -0.2px;
}

.result-year-arrow {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #292929;

    border-radius: 50%;

    color: #ffffff;

    font-size: 10px;

    transition: transform 0.2s ease;
}

.result-year.open .result-year-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   STUDENT GRID
   ========================================================= */

.result-year-content {
    display: none;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;

    margin-top: 12px;
}

.result-year.open .result-year-content {
    display: grid;
}


/* =========================================================
   STUDENT CARD
   ========================================================= */

.student-card {
    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e7e7e7;

    border-radius: 10px;

    box-sizing: border-box;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.student-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0,0,0,0.06);
}

.student-main {
    width: 100%;

    display: grid;

    grid-template-columns:
        44% 56%;

    min-height: 170px;

    box-sizing: border-box;
}


/* =========================================================
   STUDENT LEFT
   ========================================================= */

.student-left {
    min-width: 0;

    padding: 14px 10px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    box-sizing: border-box;
}

.student-photo,
.student-photo-placeholder {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid #e5e5e5;

    box-sizing: border-box;

    margin-bottom: 8px;
}

.student-photo-placeholder {
    background: #f7f7f7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999999;

    font-size: 8px;

    letter-spacing: 1px;
}

.student-basic {
    width: 100%;

    min-width: 0;
}

.student-name {
    margin: 0 0 3px;

    font-size: 13px;
    line-height: 1.25;

    font-weight: 700;

    color: #151515;

    overflow-wrap: break-word;
}

.student-school {
    margin: 0 0 8px;

    font-size: 10px;
    line-height: 1.3;

    color: #777777;

    overflow-wrap: break-word;
}

.student-badges {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 4px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge-3a {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    background: #111111;

    color: #ffffff;

    border-radius: 12px;

    padding: 3px 6px;

    font-size: 8px;

    font-weight: 700;

    white-space: nowrap;
}

.badge-3a-icon {
    width: 13px;
    height: 13px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f4c400;

    color: #111111;

    font-size: 7px;

    font-weight: 800;
}

.badge-accounting {
    display: inline-flex;

    align-items: center;

    background: #f7f7f7;

    border: 1px solid #dddddd;

    color: #333333;

    border-radius: 12px;

    padding: 3px 6px;

    font-size: 8px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   STUDENT RIGHT
   ========================================================= */

.student-right {
    min-width: 0;

    padding: 11px 10px;

    border-left: 1px solid #eeeeee;

    display: flex;

    flex-direction: column;

    justify-content: center;

    box-sizing: border-box;
}

.result-item {
    min-width: 0;

    min-height: 29px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 5px;

    border-bottom: 1px solid #eeeeee;

    box-sizing: border-box;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #888888;

    font-size: 9px;

    white-space: nowrap;
}

.result-value {
    min-width: 0;

    color: #222222;

    font-size: 9px;

    font-weight: 600;

    text-align: right;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.results-loading,
.results-error,
.summary-loading {
    text-align: center;

    padding: 30px 16px;

    color: #777777;

    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .summary-other-years {
        grid-template-columns: 1fr;
    }

    .result-year-content {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .results-summary-section {
        padding: 32px 14px 0;
    }

    .results-book-section {
        padding: 45px 14px 55px;
        margin-top: 35px;
    }


    .results-section-heading h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .results-section-heading h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .results-section-heading p {
        font-size: 13px;
    }


    /* featured */

    .summary-featured {
        padding: 21px 16px 19px;

        border-radius: 15px;
    }

    .summary-featured-top {
        margin-bottom: 16px;
    }

    .summary-featured-year {
        font-size: 28px;
    }

    .summary-latest-badge {
        padding: 6px 9px;
        font-size: 7px;
    }


    /* stats */

    .summary-stat-grid {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .summary-stat {
        padding: 13px 8px 12px;
    }

    .summary-stat-value {
        font-size: 22px;
    }


    /* previous year */

    .summary-year-card {
        padding: 18px 13px 15px;
    }

    .summary-small-stats {
        gap: 5px;
    }

    .summary-small-value {
        font-size: 14px;
    }

    .summary-small-label {
        font-size: 6.5px;
    }


    /* result book */

    .result-year-header {
        height: 47px;
        padding-left: 14px;
    }

    .result-year-header h2 {
        font-size: 15px;
    }

    .result-year-content {
        grid-template-columns: 1fr;
    }

    .student-main {
        grid-template-columns:
            42% 58%;
    }

}