/* =========================================================
   GOLDEN JUBILEE SCHOOL
   PREMIUM CBSE RESULTS PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #062b54;
    --dark-navy: #031d3a;
    --gold: #f3b52b;
    --gold-light: #ffd76a;
    --white: #ffffff;
    --light: #f6f9fc;
    --border: #e4e9ef;
    --text: #182536;
    --muted: #687589;
}

body {
    font-family: "Poppins", sans-serif;
    background: #eef3f8;
    color: var(--text);
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    min-height: 105px;
    background:
        linear-gradient(
            135deg,
            #031d3a,
            #063665 55%,
            #08284b
        );

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 3%;

    position: relative;
    z-index: 10;

    border-bottom: 2px solid var(--gold);

    box-shadow: 0 5px 25px rgba(0, 0, 0, .15);
}


/* LOGO */

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-circle {
    width: 76px;
    height: 76px;

    border: 2px solid var(--gold);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-family: "Cinzel", serif;
    font-size: 22px;
    font-weight: 700;

    box-shadow:
        inset 0 0 20px rgba(243, 181, 43, .15),
        0 0 15px rgba(243, 181, 43, .15);
}

.school-name h1 {
    font-family: "Cinzel", serif;
    font-size: 22px;
    letter-spacing: .5px;
    color: white;
}

.school-name span {
    display: block;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 7px;
    margin-top: 2px;
}

.school-name p {
    color: #e7edf5;
    font-size: 12px;
    margin-top: 5px;
}


/* NAVIGATION */

.navbar {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;

    position: relative;

    padding: 12px 0;

    transition: .3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold);
}

.navbar a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 2px;

    height: 2px;

    background: var(--gold);
}


/* =========================================================
   HERO
========================================================= */

.result-hero {
    min-height: 205px;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 20% 30%, #dcecff, transparent 30%),
        radial-gradient(circle at 80% 30%, #fff2d0, transparent 25%),
        linear-gradient(
            135deg,
            #e7f1fb,
            #ffffff,
            #eaf2fa
        );
}

.result-hero::before {
    content: "🏆";

    position: absolute;

    right: 7%;
    top: 20px;

    font-size: 110px;

    opacity: .14;

    filter: grayscale(20%);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 1px,
            transparent 2px
        );

    background-size: 35px 35px;

    opacity: .5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.small-title {
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;
}

.small-title span {
    width: 65px;
    height: 1px;
    background: var(--gold);
}

.hero-content h2 {
    font-family: "Cinzel", serif;

    font-size: clamp(32px, 4vw, 46px);

    color: var(--navy);

    margin: 8px 0;

    letter-spacing: 1px;
}

.hero-subtitle {
    color: #c88b16;

    font-family: "Cinzel", serif;

    font-size: 21px;
}

.hero-content p {
    margin-top: 9px;

    color: #344255;

    font-size: 13px;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.result-container {
    width: 96%;
    max-width: 1500px;

    margin: -5px auto 45px;

    background: rgba(255,255,255,.95);

    border-radius: 14px;

    padding: 0 15px 25px;

    box-shadow:
        0 15px 50px rgba(8, 40, 75, .10);
}


/* HIDE RADIO BUTTONS */

#class10,
#class12 {
    display: none;
}


/* =========================================================
   CLASS TABS
========================================================= */

.class-tabs {
    width: 500px;
    max-width: 100%;

    margin: 0 auto;

    display: flex;
}

.class-tab {
    flex: 1;

    padding: 16px 20px;

    text-align: center;

    background: white;

    color: var(--navy);

    font-weight: 600;

    cursor: pointer;

    border: 1px solid #e0e5ea;

    border-bottom: 2px solid var(--gold);

    transition: .3s ease;
}

.class-tab:first-child {
    border-radius: 8px 0 0 0;
}

.class-tab:last-child {
    border-radius: 0 8px 0 0;
}

.class-tab i {
    color: var(--gold);
    margin-right: 8px;
}


/* ACTIVE TAB */

#class10:checked ~ .class-tabs label[for="class10"],
#class12:checked ~ .class-tabs label[for="class12"] {
    background:
        linear-gradient(
            135deg,
            #062b54,
            #0a4178
        );

    color: white;

    box-shadow: 0 -4px 15px rgba(5, 45, 85, .15);
}


/* =========================================================
   YEAR
========================================================= */

.year-section {
    padding: 22px 10px 18px;

    text-align: center;
}

.year-section h3 {
    font-size: 14px;

    color: var(--navy);

    margin-bottom: 12px;
}

.years {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;
}

.year {
    border: 1px solid #dbe2e9;

    background: white;

    color: #344255;

    padding: 8px 25px;

    border-radius: 6px;

    font-family: inherit;

    cursor: pointer;

    transition: .3s ease;
}

.year:hover {
    border-color: var(--gold);

    color: var(--navy);
}

.active-year {
    background: var(--navy);

    color: white;

    border-color: var(--navy);

    box-shadow: 0 5px 15px rgba(6,43,84,.2);
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {
    border: 1px solid #e3e8ee;

    border-radius: 12px;

    overflow: hidden;

    background: white;

    box-shadow:
        0 5px 25px rgba(0,0,0,.04);

    margin-bottom: 20px;
}


/* =========================================================
   RESULT HEADER
========================================================= */

.result-card-header {
    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #edf0f4;
}

.result-title {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--navy);

    font-size: 14px;

    font-weight: 600;
}

.result-title i {
    color: var(--gold);

    font-size: 20px;
}

.result-title small {
    color: var(--muted);

    font-size: 11px;

    font-weight: 500;
}


/* ACTIONS */

.result-actions {
    display: flex;

    align-items: center;

    gap: 18px;
}

.search-box {
    width: 170px;

    padding: 9px 12px;

    border: 1px solid #dce3ea;

    border-radius: 6px;

    outline: none;

    font-family: inherit;

    font-size: 11px;

    transition: .3s;
}

.search-box:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(243,181,43,.1);
}

.download-btn {
    border: 0;

    background: var(--navy);

    color: white;

    padding: 10px 15px;

    border-radius: 6px;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition: .3s;
}

.download-btn i {
    color: var(--gold-light);

    margin-right: 6px;
}

.download-btn:hover {
    background: #0a4178;

    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(6,43,84,.2);
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    min-width: 950px;

    border-collapse: collapse;

    font-size: 11px;
}

thead {
    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #f2f5f8
        );
}

th {
    color: var(--navy);

    font-size: 10px;

    font-weight: 700;

    padding: 14px 9px;

    border-right: 1px solid #e5e9ee;

    border-bottom: 1px solid #dce3ea;

    text-align: center;

    white-space: nowrap;
}

td {
    padding: 12px 9px;

    text-align: center;

    border-right: 1px solid #edf0f3;

    border-bottom: 1px solid #edf0f3;

    color: #283548;

    white-space: nowrap;
}

tbody tr {
    transition: .2s ease;
}

tbody tr:hover {
    background: #fffaf0;
}

.student-name {
    text-align: left;

    font-weight: 500;

    color: #172d48;
}


/* =========================================================
   FOOTER
========================================================= */

.table-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 10px;

    font-size: 11px;

    color: #59687a;
}

.pagination {
    display: flex;

    align-items: center;

    gap: 5px;
}

.pagination button {
    min-width: 27px;
    height: 27px;

    border: 1px solid #dce3ea;

    background: white;

    border-radius: 5px;

    color: #26374c;

    cursor: pointer;
}

.pagination button:hover {
    border-color: var(--gold);
}

.pagination button.current {
    background: var(--navy);

    color: white;

    border-color: var(--navy);
}


/* =========================================================
   CLASS SWITCHING
========================================================= */

.class12-result {
    display: none;
}

#class12:checked ~ .class12-result {
    display: block;
}

#class12:checked ~ .class10-result {
    display: none;
}

#class10:checked ~ .class10-result {
    display: block;
}

#class10:checked ~ .class12-result {
    display: none;
}


/* =========================================================
   BOTTOM SECTION
========================================================= */

.bottom-section {
    display: grid;

    grid-template-columns: 1fr 1.45fr;

    gap: 18px;

    margin-top: 5px;
}


/* ACHIEVEMENT */

.achievement-card,
.topper-card {
    background:
        linear-gradient(
            135deg,
            #032449,
            #073b6c
        );

    border-radius: 10px;

    padding: 18px;

    color: white;

    border: 1px solid rgba(243,181,43,.3);

    min-height: 145px;
}

.achievement-card {
    display: flex;

    gap: 20px;

    align-items: center;
}

.achievement-icon {
    font-size: 45px;

    color: var(--gold);

    min-width: 65px;

    text-align: center;
}

.achievement-card h3,
.topper-card h3 {
    color: var(--gold);

    font-size: 13px;

    margin-bottom: 12px;
}

.achievement-card p {
    font-size: 10px;

    margin: 7px 0;

    color: #eef4fb;
}

.achievement-card p i {
    color: var(--gold);

    margin-right: 5px;
}


/* TOPPERS */

.topper-card h3 i {
    margin-right: 6px;
}

.topper-list {
    display: flex;

    border: 1px solid rgba(243,181,43,.5);

    border-radius: 9px;

    overflow: hidden;
}

.topper-list > div {
    flex: 1;

    text-align: center;

    padding: 12px 6px;

    border-right: 1px solid rgba(255,255,255,.3);
}

.topper-list > div:last-child {
    border-right: none;
}

.topper-list strong {
    display: block;

    color: var(--gold);

    font-size: 9px;
}

.topper-list span {
    display: block;

    font-size: 9px;

    margin: 6px 0;

    color: white;
}

.topper-list b {
    font-size: 12px;

    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

body > footer {
    background: var(--navy);

    color: white;

    text-align: center;

    padding: 18px;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 1100px) {

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 10px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

}


@media(max-width: 800px) {

    .main-header {
        flex-direction: column;

        gap: 15px;

        padding: 15px;
    }

    .navbar {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 15px;
    }

    .school-name h1 {
        font-size: 18px;
    }

    .result-card-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .result-actions {
        width: 100%;
    }

    .search-box {
        flex: 1;

        width: auto;
    }

}


@media(max-width: 600px) {

    .logo-circle {
        width: 60px;
        height: 60px;

        font-size: 18px;
    }

    .school-name h1 {
        font-size: 15px;
    }

    .school-name span {
        font-size: 11px;
    }

    .school-name p {
        font-size: 9px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .result-container {
        width: 98%;

        padding: 0 8px 20px;
    }

    .class-tab {
        padding: 13px 8px;

        font-size: 12px;
    }

    .years {
        gap: 7px;
    }

    .year {
        padding: 7px 12px;

        font-size: 10px;
    }

    .result-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .download-btn {
        width: 100%;
    }

    .table-footer {
        flex-direction: column;

        gap: 12px;

        align-items: flex-start;
    }

    .topper-list {
        overflow-x: auto;
    }

    .topper-list > div {
        min-width: 120px;
    }

}









/* ================= CLASS TAB CONTENT ================= */

.class-content {
    display: none;
    animation: classFade 0.45s ease;
}

/* CLASS 10 ACTIVE */
#class10:checked ~ .class10-content {
    display: block;
}

/* CLASS 12 ACTIVE */
#class12:checked ~ .class12-content {
    display: block;
}


/* ================= TAB ACTIVE STATE ================= */

#class10:checked + .class-tab,
#class12:checked + .class-tab {
    background: #0A2E5D;
    color: #ffffff;
    border-color: #F4C542;
    box-shadow: 0 6px 18px rgba(10, 46, 93, 0.25);
}


/* HIDE RADIO BUTTONS */

input[name="class"] {
    display: none;
}


/* ================= ANIMATION ================= */

@keyframes classFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}