/* =========================================================
   VIDYARTHIASTRA — MAIN STYLESHEET
   ========================================================= */


/* ================= RESET ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f7f8fc;
    color: #151827;

    line-height: 1.5;
    max-width: 100%;
    overflow-x: clip;
}

html.auth-modal-open,
body.auth-modal-open {
    overflow: hidden !important;
}


/* ================= NAVBAR ================= */

.navbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: #ffffff;

    border-bottom: 1px solid #eceef4;

    position: sticky;
    top: 0;

    z-index: 100;
}


/* LOGO */

.brand, .logo {
    font-size: 22px;
    font-weight: 800;

    text-decoration: none;

    color: #151827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.brand-icon-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.brand span {
    color: #635bff;
}


/* NAVIGATION */

.navbar nav {
    display: flex;
    align-items: center;

    gap: 26px;
}

.navbar nav a {
    color: #656979;

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.navbar nav a:hover {
    color: #635bff;
}

.navbar nav a.active {
    color: #635bff;
}


/* ================= HERO ================= */

.hero {
    padding: 90px 7% 75px;

    background:
        linear-gradient(
            135deg,
            #f4f2ff,
            #ffffff
        );
}

.hero-content {
    max-width: 900px;
}


/* SMALL HEADING */

.eyebrow {
    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #635bff;

    margin-bottom: 8px;
}


/* MAIN HEADING */

.hero h1 {
    font-size: clamp(
        40px,
        6vw,
        72px
    );

    line-height: 1.03;

    letter-spacing: -3px;

    margin: 12px 0 18px;
}

.hero h1 span {
    color: #635bff;
}


/* HERO DESCRIPTION */

.hero-text {
    font-size: 18px;

    color: #686d7c;

    max-width: 600px;
}


/* ================= SEARCH ================= */

.search-box {
    margin-top: 30px;

    max-width: 650px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #ffffff;

    border: 1px solid #e1e3ec;

    border-radius: 16px;

    padding: 0 18px;

    box-shadow:
        0 10px 30px
        rgba(30, 30, 70, 0.06);
}

.search-box span {
    font-size: 28px;

    color: #777;
}

.search-box input {
    width: 100%;

    border: 0;

    outline: none;

    background: transparent;

    padding: 18px 5px;

    font-size: 16px;

    color: #151827;
}

.search-box input::placeholder {
    color: #9a9eab;
}


/* ================= SECTIONS ================= */

.section {
    padding: 60px 7%;
}

.section.compact {
    padding-top: 20px;
}


/* SECTION HEADER */

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 30px;

    line-height: 1.2;
}


/* ================= TEXT ================= */

.muted {
    color: #74798a;
}


/* ================= EXAM GRID ================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 18px;
}


/* ================= EXAM CARD ================= */

.exam-card {
    display: block;

    background: #ffffff;

    border: 1px solid #e8e9f0;

    border-radius: 18px;

    padding: 24px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;

    box-shadow:
        0 5px 18px
        rgba(30, 30, 70, 0.03);
}

.exam-card:hover {
    transform: translateY(-3px);

    border-color: #cfcaff;

    box-shadow:
        0 12px 30px
        rgba(60, 50, 150, 0.08);
}


/* EXAM ICON */

.exam-icon {
    font-size: 34px;
}


/* EXAM TITLE */

.exam-card h3 {
    margin: 14px 0 5px;

    font-size: 20px;
}


/* ================= PAGE ================= */

.page {
    padding: 45px 7%;

    min-height:
        calc(100vh - 140px);
}

.narrow {
    max-width: 850px;

    margin: auto;
}


/* ================= BACK BUTTON ================= */

.back {
    color: #635bff;

    text-decoration: none;

    font-weight: 700;
}

.back:hover {
    text-decoration: underline;
}


/* ================= PAGE HEADER ================= */

.page-header {
    padding: 28px 0;
}

.page-header h1 {
    font-size: 42px;

    margin: 8px 0;

    line-height: 1.15;
}


/* ================= YEAR GRID ================= */

.year-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(150px, 1fr)
        );

    gap: 15px;
}


/* YEAR CARD */

.year-card {
    display: block;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e8e9f0;

    border-radius: 18px;

    padding: 24px;

    text-decoration: none;

    color: inherit;

    transition: 0.2s;

    box-shadow:
        0 5px 18px
        rgba(30, 30, 70, 0.03);
}

.year-card:hover {
    transform: translateY(-3px);

    border-color: #cfcaff;

    box-shadow:
        0 12px 30px
        rgba(60, 50, 150, 0.08);
}

.year-card h3 {
    font-size: 20px;

    margin-bottom: 5px;
}


/* ================= PAPER LIST ================= */

.paper-list {
    display: grid;

    gap: 15px;
}


/* PAPER CARD */

.paper-card {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    background: #ffffff;

    border: 1px solid #e8e9f0;

    border-radius: 18px;

    padding: 24px;

    box-shadow:
        0 5px 18px
        rgba(30, 30, 70, 0.03);
}


/* PAPER INFORMATION */

.paper-info h3 {
    margin-bottom: 7px;
}

.paper-meta {
    color: #74798a;

    font-size: 14px;
}


/* PAPER BUTTONS */

.paper-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


/* ================= BUTTON ================= */

.btn {
    display: inline-block;

    padding: 10px 15px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 700;

    border: 1px solid #ddd;

    background: #ffffff;

    color: #333;

    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: #635bff;

    color: #ffffff;

    border-color: #635bff;
}


/* ================= FORMS ================= */

.form-card,
.auth-card {
    background: #ffffff;

    border: 1px solid #e6e8f0;

    border-radius: 22px;

    padding: 35px;

    box-shadow:
        0 12px 35px
        rgba(30, 30, 70, 0.05);
}


.form-card h1,
.auth-card h1 {
    font-size: 36px;

    margin: 7px 0;
}


/* FORM */

.form-card form,
.auth-card form {
    display: grid;

    gap: 18px;

    margin-top: 25px;
}


/* LABEL */

label {
    display: grid;

    gap: 7px;

    font-weight: 700;

    color: #343747;
}


/* INPUT */

input,
textarea {
    width: 100%;

    font: inherit;

    padding: 13px 14px;

    border: 1px solid #dfe1e9;

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #151827;

    transition: 0.2s;
}


/* INPUT FOCUS */

input:focus,
textarea:focus {
    border-color: #635bff;

    box-shadow:
        0 0 0 3px
        rgba(99, 91, 255, 0.1);
}


/* ================= PRIMARY BUTTON ================= */

.primary-btn,
.google-btn {
    border-radius: 11px;

    padding: 13px 17px;

    font: inherit;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;
}

.primary-btn {
    background: #635bff;

    color: #ffffff;

    border: 1px solid #635bff;
}

.primary-btn:hover {
    background: #554df0;
}

.forgot-password {
    justify-self: end;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #2457e6 !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    min-height: auto !important;
    height: auto !important;
    margin-top: 6px;
    width: auto;
    white-space: nowrap;
}

.forgot-password:hover {
    text-decoration: underline;
}


/* GOOGLE BUTTON */

.google-btn {
    margin-top: 12px;

    width: 100%;

    background: #ffffff;

    border: 1px solid #ddd;

    color: #333;
}

.google-btn:hover {
    background: #f7f7f7;
}


/* ================= STATUS ================= */

.status {
    min-height: 22px;

    margin-top: 12px;

    color: #635bff;
}


/* ================= AUTH PAGE ================= */

.auth-page {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 25px;
}


/* AUTH CARD */

.auth-card {
    width: min(
        440px,
        100%
    );
}


/* CENTER BRAND */

.center {
    display: block;

    text-align: center;

    margin-bottom: 25px;
}

.center-text {
    text-align: center;
}


/* AUTH SWITCH */

.auth-switch {
    text-align: center;

    color: #707486;

    margin-top: 15px;
}

.auth-switch a {
    color: #635bff;

    font-weight: 700;
}


/* ================= PROFILE ================= */

.profile-top {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
}


/* AVATAR */

.avatar {
    width: 70px;

    height: 70px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: #eceaff;

    color: #635bff;

    font-size: 25px;

    font-weight: 800;

    object-fit: cover;
}


/* PROFILE EMAIL */

.profile-email {
    color: #74798a;
}


/* PROFILE BUTTONS */

.profile-actions {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


/* ================= LOADING ================= */

.loading {
    text-align: center;

    padding: 35px;

    color: #777;
}


/* ================= FOOTER ================= */

footer {
    text-align: center;

    padding: 25px;

    color: #858999;

    border-top: 1px solid #e7e8ef;

    background: #ffffff;
}


/* ================= MOBILE ================= */

@media (max-width: 650px) {

    .navbar {
        padding: 0 5%;
    }

    .navbar nav {
        gap: 13px;

        font-size: 14px;
    }

    .hero {
        padding: 65px 5%;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .section,
    .page {
        padding-left: 5%;

        padding-right: 5%;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .paper-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .paper-actions {
        width: 100%;
    }

    .paper-actions .btn {
        flex: 1;

        text-align: center;
    }

    .form-card,
    .auth-card {
        padding: 24px;
    }

    .page-header h1 {
        font-size: 34px;
    }

}
/* ============================================================
   VIDYARTHIASTRA — CONTACT PAGE
   ============================================================ */


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f7f8fc;
    color: #17213d;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8eaf1;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* LOGO */

.logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: #17213d;
}

.logo span {
    color: #2457e6;
}


/* NAVIGATION */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #4b556f;
    font-size: 15px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav a:hover {
    color: #2457e6;
}

.nav a.active {
    color: #2457e6;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
    width: 100%;
    max-width: 820px;

    margin: 70px auto 90px;

    background: #ffffff;

    padding: 48px;

    border-radius: 22px;

    border: 1px solid #e7e9f0;

    box-shadow:
        0 10px 35px rgba(25, 35, 70, 0.07);
}


/* SMALL LABEL */

.section-label {
    color: #2457e6;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


/* HEADING */

.contact-section h1 {
    margin: 0 0 12px;

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    color: #17213d;
}


/* DESCRIPTION */

.contact-intro {
    margin: 0 0 38px;

    max-width: 680px;

    color: #687086;

    font-size: 16px;

    line-height: 1.7;
}


/* ============================================================
   FORM
   ============================================================ */

.contact-form {
    width: 100%;
}


/* FORM GROUP */

.form-group {
    margin-bottom: 24px;
}


/* LABEL */

.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 15px;

    font-weight: 700;

    color: #26304b;
}


/* INPUT + TEXTAREA */

.form-group input,
.form-group textarea {
    width: 100%;

    display: block;

    border: 1px solid #dfe3ec;

    border-radius: 12px;

    background: #ffffff;

    color: #17213d;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* INPUT */

.form-group input {
    height: 54px;

    padding: 0 16px;
}


/* TEXTAREA */

.form-group textarea {
    min-height: 170px;

    padding: 15px 16px;

    resize: vertical;

    line-height: 1.6;
}


/* PLACEHOLDER */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa2b4;
}


/* FOCUS */

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2457e6;

    box-shadow:
        0 0 0 4px rgba(36, 87, 230, 0.10);

    background: #ffffff;
}


/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */

.contact-submit {
    width: 100%;

    min-height: 56px;

    border: none;

    border-radius: 12px;

    background: #2457e6;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-submit:hover {
    background: #1948ca;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(36, 87, 230, 0.20);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ============================================================
   STATUS MESSAGE
   ============================================================ */

.contact-status {
    min-height: 24px;

    margin: 14px 0 0;

    font-size: 14px;

    font-weight: 600;
}

.contact-status.error {
    color: #dc2626;
}

.contact-status.success {
    color: #16803c;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    border-top: 1px solid #e7e9f0;

    background: #ffffff;

    color: #737b8f;

    text-align: center;

    padding: 28px 0;

    font-size: 14px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .header-inner {
        min-height: 64px;
    }

    .logo {
        font-size: 21px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 14px;
    }

    .contact-section {
        margin: 35px auto 55px;

        padding: 28px 22px;

        border-radius: 18px;
    }

    .contact-section h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .contact-intro {
        font-size: 15px;

        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        height: 52px;
    }

    .form-group textarea {
        min-height: 150px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 430px) {

    .header-inner {
        flex-direction: column;

        align-items: flex-start;

        padding: 14px 0;
    }

    .nav {
        width: 100%;

        justify-content: space-between;
    }

    .contact-section {
        width: 100%;

        padding: 24px 18px;
    }

}
/* ============================================================
   VIDYARTHIASTRA — PROFILE CIRCLE
   ============================================================ */

.profile-circle {
    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #2563eb;
    color: #ffffff;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    line-height: 1;

    border: 2px solid #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* PROFILE PHOTO */

.profile-circle img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}


/* PROFILE INITIAL */

.profile-circle span {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;
}


/* HOVER */

.profile-circle:hover {
    transform: scale(1.06);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.16);
}


/* MOBILE */

@media (max-width: 600px) {

    .profile-circle {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        font-size: 15px;
    }

    .profile-circle span {
        font-size: 15px;
    }

}
/* ============================================================
   VIDYARTHIASTRA — PROFILE PAGE
   ============================================================ */

.profile-page {
    min-height: calc(100vh - 150px);
    padding: 70px 20px;
}


.profile-wrapper {
    width: min(900px, 100%);
    margin: 0 auto;
}


.profile-subtitle {
    margin-top: -8px;
    margin-bottom: 35px;
    color: #667085;
}


/* ============================================================
   PROFILE CARD
   ============================================================ */

.profile-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 24px;

    padding: 35px;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.08);
}


/* ============================================================
   PROFILE TOP
   ============================================================ */

.profile-top {
    display: flex;

    align-items: center;

    gap: 22px;

    padding-bottom: 30px;

    border-bottom: 1px solid #eef0f4;
}


.profile-avatar {
    width: 90px;
    height: 90px;

    min-width: 90px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #2563eb;

    color: #ffffff;

    font-size: 34px;

    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}


.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.profile-heading h2 {
    margin: 0 0 7px;

    font-size: 27px;
}


.profile-heading p {
    margin: 0;

    color: #667085;
}


/* ============================================================
   DETAILS
   ============================================================ */

.profile-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    padding: 30px 0;
}


.profile-detail {
    padding: 20px;

    border-radius: 16px;

    background: #f8fafc;

    border: 1px solid #edf0f4;
}


.detail-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    color: #667085;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.profile-detail strong {
    display: block;

    word-break: break-word;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.profile-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


.secondary-btn {
    padding: 12px 22px;

    border-radius: 10px;

    border: 1px solid #d0d5dd;

    background: #ffffff;

    color: #344054;

    font-weight: 600;

    cursor: pointer;
}


.secondary-btn:hover {
    background: #f8fafc;
}


/* ============================================================
   EDIT PROFILE
   ============================================================ */

.edit-profile-card {
    margin-top: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 24px;

    padding: 30px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);
}


.edit-profile-card h2 {
    margin-top: 0;
}


.edit-profile-card form {
    display: grid;

    gap: 18px;
}


.edit-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 5px;
}


/* ============================================================
   HEADER AUTH
   ============================================================ */

.header-auth {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: 8px;
}


.nav-login,
.nav-signup {
    text-decoration: none;

    font-weight: 600;

    padding: 9px 15px;

    border-radius: 9px;
}


.nav-login {
    color: #1d4ed8;
}


.nav-login:hover {
    background: #eff6ff;
}


.nav-signup {
    background: #2563eb;

    color: #ffffff;
}


.nav-signup:hover {
    background: #1d4ed8;
}


/* ============================================================
   PROFILE CIRCLE
   ============================================================ */

.profile-circle {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    border: 2px solid #ffffff;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.2s ease;
}


.profile-circle:hover {
    transform: scale(1.08);
}


.profile-circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.profile-circle span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .profile-page {
        padding: 45px 15px;
    }


    .profile-card {
        padding: 23px;
        border-radius: 20px;
    }


    .profile-top {
        gap: 15px;
    }


    .profile-avatar {
        width: 70px;
        height: 70px;

        min-width: 70px;

        font-size: 27px;
    }


    .profile-heading h2 {
        font-size: 22px;
    }


    .profile-details {
        grid-template-columns: 1fr;
    }


    .header-auth {
        gap: 5px;
    }


    .nav-login,
    .nav-signup {
        padding: 7px 10px;
        font-size: 14px;
    }


    .profile-circle {
        width: 38px;
        height: 38px;

        min-width: 38px;
    }

}
/* ============================================================
   HEADER AUTH
   ============================================================ */

#headerAuth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}


/* LOGIN */

.header-login-btn {
    text-decoration: none;
    font-weight: 600;
    color: #243b64;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.header-login-btn:hover {
    background: #f1f4f9;
}


/* SIGN UP */

.header-signup-btn {
    text-decoration: none;
    font-weight: 600;
    color: white;
    background: #2457d6;
    padding: 9px 15px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.header-signup-btn:hover {
    background: #1744b5;
}


/* ============================================================
   PROFILE CIRCLE
   ============================================================ */

.header-profile-circle {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #2457d6;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    overflow: hidden;

    border: 2px solid white;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.header-profile-circle:hover {
    transform: scale(1.08);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18);
}


/* PROFILE PHOTO */

.header-profile-circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    #headerAuth {
        margin-left: 8px;
        gap: 5px;
    }

    .header-login-btn {
        padding: 7px 9px;
        font-size: 14px;
    }

    .header-signup-btn {
        padding: 7px 10px;
        font-size: 14px;
    }

    .header-profile-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

}
/* ============================================================
   HEADER AUTH BUTTON
   ============================================================ */

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 10px;

    background: #1d4ed8;
    color: white !important;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.auth-button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}


/* ============================================================
   PROFILE CIRCLE
   ============================================================ */

.profile-circle {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #1d4ed8;
    color: white;

    font-size: 17px;
    font-weight: 700;

    border: 2px solid white;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15);
}


img.profile-circle {
    object-fit: cover;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .auth-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .profile-circle {
        width: 38px;
        height: 38px;
    }

}
/* ============================================================
   LOGIN / SIGN UP BUTTON
   ============================================================ */

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    background: #1d4ed8;
    color: white !important;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 600;

    min-width: 120px;
}


/* ============================================================
   PROFILE CIRCLE
   ============================================================ */

.profile-circle {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1d4ed8;
    color: white;

    font-size: 17px;
    font-weight: 700;

    overflow: hidden;

    border: 2px solid white;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


img.profile-circle {
    width: 42px;
    height: 42px;

    object-fit: cover;
}


/* Remove button styling when it becomes profile */

.auth-button.profile-active {
    padding: 0;

    min-width: 42px;

    width: 42px;
    height: 42px;

    background: transparent;
}
/* ============================================================
   VIDYARTHIASTRA — ATTRACTIVE PAPERS PAGE
   ============================================================ */

.papers-page {
    padding: 55px 0 80px;
    min-height: 75vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}


/* HERO */

.papers-hero {
    margin-bottom: 50px;
}

.papers-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 28px;
    margin-bottom: 20px;
}

.papers-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: #172554;
}

.papers-hero p {
    color: #64748b;
    font-size: 17px;
}


/* SECTION TOP */

.papers-section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.papers-section-top h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #172554;
}

.papers-section-top p {
    margin: 0;
    color: #64748b;
}

.paper-count {
    padding: 9px 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}


/* PAPER LIST */

.paper-list {
    display: grid;
    gap: 16px;
}


/* PAPER CARD */

.paper-card {
    display: grid;
    grid-template-columns: 48px 58px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.paper-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 38px rgba(37, 99, 235, 0.12);
}


.paper-number {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
}


.paper-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eff6ff;
    font-size: 25px;
}


.paper-info h3 {
    margin: 0 0 9px;
    color: #172554;
    font-size: 18px;
}


.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}


.paper-meta span {
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}


/* BUTTONS */

.paper-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


.paper-actions .btn {
    border: 0;
    cursor: pointer;
    border-radius: 11px;
    padding: 11px 16px;
    font-weight: 750;
    transition: 0.2s ease;
}


.paper-actions .primary {
    background: #2563eb;
    color: white;
}


.paper-actions .primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


.download-paper-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0 !important;
}


.download-paper-btn:hover {
    background: #f1f5f9;
}


.paper-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}


.pdf-unavailable {
    color: #94a3b8;
    font-size: 14px;
}


/* EMPTY */

.empty-message {
    text-align: center;
    padding: 70px 25px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
}


.empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}


.empty-message h3 {
    margin: 0 0 8px;
    color: #172554;
}


.empty-message p {
    margin: 0;
    color: #64748b;
}


/* LOADING */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    color: #64748b;
}


.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: pyqSpin 0.8s linear infinite;
}


@keyframes pyqSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   PDF VIEWER
   ============================================================ */

.pdf-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}


.pdf-viewer.hidden {
    display: none;
}


.pdf-viewer-header {
    min-height: 64px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}


.pdf-viewer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    color: #172554;
}


.pdf-icon {
    font-size: 22px;
}


#viewerTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.viewer-original {
    padding: 9px 13px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.viewer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
}


.viewer-close:hover {
    background: #e2e8f0;
}


.pdf-viewer-body {
    flex: 1;
    min-height: 0;
    padding: 10px;
    background: #0f172a;
}


#pdfFrame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: white;
}


body.viewer-open {
    overflow: hidden;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .papers-page {
        padding: 35px 0 60px;
    }


    .papers-section-top {
        align-items: flex-start;
        flex-direction: column;
    }


    .paper-card {
        grid-template-columns: 42px 1fr;
        gap: 13px;
        padding: 18px;
    }


    .paper-number {
        grid-row: span 2;
    }


    .paper-icon {
        display: none;
    }


    .paper-info {
        grid-column: 2;
    }


    .paper-actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }


    .paper-actions .btn {
        padding: 10px 13px;
    }


    .pdf-viewer-header {
        padding: 8px 10px;
    }


    .viewer-original {
        font-size: 12px;
        padding: 8px 9px;
    }


    .pdf-viewer-body {
        padding: 4px;
    }

}
/* ============================================================
   VIDYARTHIASTRA — ATTRACTIVE PAPERS PAGE
   ============================================================ */

.papers-page {
    padding: 55px 0 80px;
    min-height: 75vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}


/* HERO */

.papers-hero {
    margin-bottom: 50px;
}

.papers-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 28px;
    margin-bottom: 20px;
}

.papers-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: #172554;
}

.papers-hero p {
    color: #64748b;
    font-size: 17px;
}


/* SECTION TOP */

.papers-section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.papers-section-top h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #172554;
}

.papers-section-top p {
    margin: 0;
    color: #64748b;
}

.paper-count {
    padding: 9px 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}


/* PAPER LIST */

.paper-list {
    display: grid;
    gap: 16px;
}


/* PAPER CARD */

.paper-card {
    display: grid;
    grid-template-columns: 48px 58px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.paper-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 38px rgba(37, 99, 235, 0.12);
}


.paper-number {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
}


.paper-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eff6ff;
    font-size: 25px;
}


.paper-info h3 {
    margin: 0 0 9px;
    color: #172554;
    font-size: 18px;
}


.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}


.paper-meta span {
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}


/* BUTTONS */

.paper-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}


.paper-actions .btn {
    border: 0;
    cursor: pointer;
    border-radius: 11px;
    padding: 11px 16px;
    font-weight: 750;
    transition: 0.2s ease;
}


.paper-actions .primary {
    background: #2563eb;
    color: white;
}


.paper-actions .primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}


.download-paper-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0 !important;
}


.download-paper-btn:hover {
    background: #f1f5f9;
}


.paper-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}


.pdf-unavailable {
    color: #94a3b8;
    font-size: 14px;
}


/* EMPTY */

.empty-message {
    text-align: center;
    padding: 70px 25px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
}


.empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}


.empty-message h3 {
    margin: 0 0 8px;
    color: #172554;
}


.empty-message p {
    margin: 0;
    color: #64748b;
}


/* LOADING */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    color: #64748b;
}


.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: pyqSpin 0.8s linear infinite;
}


@keyframes pyqSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   PDF VIEWER
   ============================================================ */

.pdf-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}


.pdf-viewer.hidden {
    display: none;
}


.pdf-viewer-header {
    min-height: 64px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}


.pdf-viewer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    color: #172554;
}


.pdf-icon {
    font-size: 22px;
}


#viewerTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.viewer-original {
    padding: 9px 13px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.viewer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
}


.viewer-close:hover {
    background: #e2e8f0;
}


.pdf-viewer-body {
    flex: 1;
    min-height: 0;
    padding: 10px;
    background: #0f172a;
}


#pdfFrame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: white;
}


body.viewer-open {
    overflow: hidden;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .papers-page {
        padding: 35px 0 60px;
    }


    .papers-section-top {
        align-items: flex-start;
        flex-direction: column;
    }


    .paper-card {
        grid-template-columns: 42px 1fr;
        gap: 13px;
        padding: 18px;
    }


    .paper-number {
        grid-row: span 2;
    }


    .paper-icon {
        display: none;
    }


    .paper-info {
        grid-column: 2;
    }


    .paper-actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }


    .paper-actions .btn {
        padding: 10px 13px;
    }


    .pdf-viewer-header {
        padding: 8px 10px;
    }


    .viewer-original {
        font-size: 12px;
        padding: 8px 9px;
    }


    .pdf-viewer-body {
        padding: 4px;
    }

}
/* =========================================================
   VIDYARTHIASTRA — EXAM PAGE UI
   Attractive Modern Design
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #172554;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #172554;
}

.logo span {
    color: var(--primary);
}


/* NAV */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav a:hover {
    color: var(--primary);
}

/* =========================================================
   MAIN
   ========================================================= */

.papers-page {
    min-height: calc(100vh - 150px);
    padding: 55px 0 80px;
}

.papers-page .container {
    max-width: 1100px;
    margin: auto;
    padding: 0 25px;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    color: var(--primary);
    font-weight: 700;

    background: #eff6ff;
    border: 1px solid #dbeafe;

    padding: 10px 16px;
    border-radius: 10px;

    transition: all 0.25s ease;
}

.back-link:hover {
    background: #dbeafe;
    transform: translateX(-3px);
}


/* =========================================================
   EXAM HEADER
   ========================================================= */

.papers-header {
    margin-top: 45px;
    padding: 45px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 55%,
            #f8fafc 100%
        );

    border: 1px solid #dbeafe;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.07);

    position: relative;
    overflow: hidden;
}


/* Decorative circle */

.papers-header::after {
    content: "";
    position: absolute;

    width: 220px;
    height: 220px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.08);
}


/* Small label */

.section-label {
    display: inline-block;

    margin: 0 0 15px;

    padding: 7px 13px;

    border-radius: 999px;

    background: #dbeafe;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* Title */

.papers-header h1 {
    margin: 0;

    font-size: clamp(36px, 5vw, 54px);

    line-height: 1.05;

    letter-spacing: -1.5px;

    color: #172554;
}


/* Description */

.papers-header p:not(.section-label) {
    margin: 16px 0 0;

    color: #64748b;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   YEAR SECTION
   ========================================================= */

.section-header {
    margin-top: 50px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    padding-bottom: 15px;
}

.section-header h2 {
    margin: 0;

    font-size: 28px;

    color: #172554;
}

.exam-count {
    color: var(--muted);
    font-weight: 600;
}


/* =========================================================
   YEAR CARDS
   ========================================================= */

/*
   Your existing year cards will automatically get
   a more modern appearance if they use .year-card
   / .exam-card / similar class.
*/

.year-card,
.exam-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.year-card:hover,
.exam-card:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border: none;
    cursor: pointer;

    padding: 11px 18px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: white;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.22);
}

.btn.primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid var(--border);

    padding: 28px 0;

    text-align: center;

    color: #64748b;

    font-size: 14px;
}

.site-footer p {
    margin: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: 65px;
    }

    .logo {
        font-size: 22px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 14px;
    }

    .papers-page {
        padding-top: 30px;
    }

    .papers-header {
        margin-top: 30px;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .papers-header h1 {
        font-size: 36px;
    }

    .section-header {
        align-items: center;
    }

    .section-header h2 {
        font-size: 23px;
    }
}
/* =========================================================
   YEAR CARDS — HIGHLIGHTED
   ========================================================= */

.year-card,
.exam-year-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border: 2px solid #dbeafe;
    border-radius: 20px;
    padding: 30px 28px;
    min-width: 180px;

    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.08);

    transition: all 0.25s ease;
}


/* YEAR NUMBER */

.year-card h3,
.exam-year-card h3 {
    font-size: 30px;
    font-weight: 800;
    color: #1d4ed8;
    margin: 0 0 14px;
}


/* VIEW PAPERS TEXT */

.year-card a,
.exam-year-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #334155;
    font-weight: 700;
    text-decoration: none;

    background: #eff6ff;
    border-radius: 10px;
    padding: 9px 13px;

    transition: all 0.2s ease;
}


/* HOVER */

.year-card:hover,
.exam-year-card:hover {
    transform: translateY(-7px);

    border-color: #93c5fd;

    box-shadow:
        0 18px 35px rgba(37, 99, 235, 0.16);
}

.year-card:hover h3,
.exam-year-card:hover h3 {
    color: #2563eb;
}

.year-card a:hover,
.exam-year-card a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}
/* Make Year + View Papers bold */

.year-card,
.exam-year-card {
    font-weight: 700;
}

.year-card h3,
.exam-year-card h3 {
    font-weight: 800;
}

.year-card a,
.exam-year-card a {
    font-weight: 800;
}
/* ============================================================
   LOGIN / SIGNUP MODAL
   ============================================================ */

.auth-modal {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;
    height: 100dvh;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 16px;
    box-sizing: border-box;

    overflow: hidden;
    touch-action: none;
}


/* SHOW MODAL */

.auth-modal.show {
    display: flex;
}


/* BACKGROUND */

.auth-modal-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(15, 23, 42, 0.45);

    backdrop-filter: blur(5px);

    touch-action: none;
}


/* MODAL CARD */

.auth-modal-card {
    position: relative;

    z-index: 2;

    width: min(400px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);

    max-height: calc(100dvh - 32px);

    overflow-y: auto;
    overflow-x: hidden;

    touch-action: pan-y;

    box-sizing: border-box;

    margin: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    padding: 24px 20px;

    box-shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.16);

    animation:
        authModalAppear 0.2s ease;
}

.modal-auth-switch {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.modal-auth-switch button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2457e6;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}


/* ANIMATION */

@keyframes authModalAppear {

    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* CLOSE BUTTON */

.auth-modal-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #64748b;

    font-size: 20px;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s;
}

.auth-modal-close:hover {

    background: #e2e8f0;

    color: #17213d;

}


/* HEADER */

.auth-modal-header {

    padding-right: 30px;

    margin-bottom: 16px;
}

.auth-modal-header .section-label {

    margin-bottom: 4px;

    font-size: 11px;

    letter-spacing: 1.5px;

    color: #2457e6;
}

.auth-modal-header h2 {

    margin: 0 0 4px;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.25;

    color: #17213d;
}

.auth-modal-header p:not(.section-label) {

    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.4;
}


/* ============================================================
   TABS
   ============================================================ */

.auth-tabs {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4px;

    padding: 4px;

    margin-bottom: 16px;

    background: #f1f5f9;

    border-radius: 10px;
}

.auth-tab {

    border: none;

    background: transparent;

    padding: 8px 12px;

    border-radius: 8px;

    color: #64748b;

    font: inherit;

    font-size: 13.5px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.auth-tab.active {

    background: #ffffff;

    color: #2457e6;

    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.06);
}


/* ============================================================
   MODAL FORMS
   ============================================================ */

.auth-modal-form {

    display: grid;

    gap: 12px;
}

.auth-modal-form label {

    display: grid;

    gap: 5px;

    font-size: 13px;

    font-weight: 700;

    color: #1e293b;
}

.auth-modal-form input {

    width: 100%;

    height: 44px;

    padding: 0 12px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    outline: none;

    font: inherit;

    font-size: 14px;

    background: #ffffff;

    color: #17213d;
}

.auth-modal-form input:focus {

    border-color: #2457e6;

    box-shadow:
        0 0 0 3px
        rgba(36, 87, 230, 0.12);
}


/* BUTTON */

.auth-modal-form .primary-btn {

    width: 100%;

    margin-top: 2px;

    height: 44px;

    min-height: 44px;

    font-size: 14.5px;

    font-weight: 700;

    border-radius: 10px;

    background: #2457e6;

    border: 1px solid #2457e6;
}


/* ============================================================
   DIVIDER
   ============================================================ */

.auth-divider {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 12px 0;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


/* GOOGLE */

.auth-modal-card .google-btn {

    margin-top: 0;

    height: 44px;

    min-height: 44px;

    font-size: 14px;

    font-weight: 700;

    border-radius: 10px;

    border: 1px solid #cbd5e1;

    cursor: pointer;
}


/* STATUS */

.auth-modal-card .status {

    text-align: center;

    margin-top: 10px;

    font-size: 13px;
}


/* NOTE */

.auth-modal-note {

    margin: 12px 0 0;

    text-align: center;

    color: #94a3b8;

    font-size: 11.5px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 500px) {

    .auth-modal {

        padding: 10px;

    }

    .auth-modal-card {

        padding: 20px 16px;

        border-radius: 16px;

    }

    .auth-modal-header h2 {

        font-size: 19px;

    }

}


/* ============================================================
   HOMEPAGE REDESIGN STYLES (MATCHES REFERENCE SCREENSHOT)
   ============================================================ */

.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    padding-top: calc(14px + var(--sat, 0px)) !important;
    padding-bottom: 10px !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.header-inner .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin: 0 auto !important;
}

.brand-logo-img {
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
}

.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    box-sizing: border-box !important;
}

.nav::-webkit-scrollbar {
    display: none !important;
}

.nav a {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.nav a.active {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.nav a:hover {
    color: #2563eb !important;
}

.profile-circle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.auth-button {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 5px 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-height: unset !important;
    height: 34px !important;
    box-shadow: none !important;
}

.auth-button:hover {
    background: #f8fafc !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.profile-circle img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    .nav {
        justify-content: center !important;
        gap: 28px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* HERO SECTION */
.hero {
    background: #ffffff !important;
    padding: 44px 20px 32px !important;
    box-shadow: none !important;
}

.hero .container {
    max-width: 680px !important;
    margin: 0 auto !important;
}

.eyebrow {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    margin-bottom: 14px !important;
}

.hero h1 {
    font-size: clamp(34px, 7.5vw, 54px) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin: 0 0 18px 0 !important;
}

.hero h1 span {
    color: inherit !important;
}

.hero-description {
    font-size: 16px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    max-width: 520px !important;
    margin-bottom: 28px !important;
}

/* SEARCH AREA */
.search-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 540px !important;
    width: 100% !important;
    margin-top: 24px !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.search-box input {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.search-box input::placeholder {
    color: #64748b !important;
    font-size: 15px !important;
}

.search-box input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.search-box button {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    background: #f8fafc !important;
    border: 1.5px solid #0f172a !important;
    border-radius: 14px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: none !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-box button:hover {
    background: #f1f5f9 !important;
}

.search-box button:active {
    background: #e2e8f0 !important;
    transform: scale(0.99) !important;
}

/* EXAM LIBRARY SECTION */
.exams-section {
    background: #ffffff !important;
    padding: 36px 20px 60px !important;
}

.exams-section .container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    position: relative !important;
}

.section-label {
    display: inline-block !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
}

.section-header h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
}

.exam-count {
    display: none !important;
}

/* FLOATING CHATBOT BUTTON (MATCHES CIRCULAR SHORTCUT IN REFERENCE) */
.floating-chatbot-btn {
    position: fixed !important;
    bottom: calc(24px + var(--sab, 0px)) !important;
    right: calc(16px + var(--sar, 0px)) !important;
    width: 104px !important;
    height: 104px !important;
    min-height: 104px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    cursor: pointer !important;
    z-index: 990 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    text-decoration: none !important;
}

.floating-chatbot-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
}

.floating-chatbot-btn:active {
    transform: scale(0.96) !important;
    background-color: #f8fafc !important;
}

.chatbot-icon-img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin-bottom: 2px !important;
    border-radius: 0 !important;
}

.floating-chatbot-label {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: #17213d !important;
    text-align: center !important;
    line-height: 1.15 !important;
    max-width: 80px !important;
    word-break: break-word !important;
}