/* ======================================================================
   BNA PROFESSIONAL UI LAYER
   ----------------------------------------------------------------------
   This file intentionally loads AFTER the original page styles.
   It improves consistency, responsive sizing, spacing and accessibility
   without replacing the established BNA theme.

   Maintenance guide:
   1. Change global spacing or sizing in :root.
   2. Use .container for every full-width section.
   3. Use .pro-card / .info-card for new content cards.
   4. Never add fixed page widths; use min(), max() and clamp().
   ====================================================================== */

:root {
    --content-max: 1240px;
    --content-pad: clamp(1rem, 3vw, 2rem);
    --section-space: clamp(4rem, 8vw, 7.5rem);
    --card-pad: clamp(1.25rem, 2.5vw, 2rem);
    --control-height: 52px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-xl: 32px;
    --soft-primary: rgba(15, 95, 215, .08);
    --soft-accent: rgba(242, 194, 48, .10);
    --ring: 0 0 0 4px rgba(15, 95, 215, .12);
}

html {
    font-size: 16px;
}

body {
    min-width: 320px;
}

main {
    overflow: clip;
}

.container {
    width: min(var(--content-max), calc(100% - (var(--content-pad) * 2)));
}

section {
    scroll-margin-top: 115px;
}

/* Fluid type scale keeps headings balanced on phones, tablets and desktops. */

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* ----------------------------------------------------------------------
   BUTTON SYSTEM
   ---------------------------------------------------------------------- */

.btn,
.buy-btn,
.watch-playlist,
.paper-btn,
.resource-add-btn,
.join-submit-btn {
    min-height: 48px;
    padding: .78rem 1.25rem;
    gap: .65rem;
    border-radius: 14px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-align: center;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.btn:hover,
.buy-btn:hover,
.watch-playlist:hover,
.paper-btn:hover,
.resource-add-btn:hover,
.join-submit-btn:hover {
    transform: translateY(-2px);
}

.btn:active,
.buy-btn:active,
.watch-playlist:active,
.paper-btn:active,
.resource-add-btn:active,
.join-submit-btn:active {
    transform: translateY(0) scale(.985);
}

.btn-primary,
.buy-btn--cart,
.resource-add-btn,
.join-submit-btn {
    color: #fff;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 12px 28px rgba(15, 95, 215, .24);
}

.buy-btn--cart {
    position: relative;
    isolation: isolate;
    min-width: 148px;
    overflow: hidden;
}

.buy-btn--cart::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .55s ease;
}

.buy-btn--cart:hover::after {
    transform: translateX(130%);
}

.buy-btn--cart.is-added {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 12px 28px rgba(5, 150, 105, .24);
}

.buy-btn--free {
    color: #047857;
    border: 1px solid rgba(5, 150, 105, .24);
    background: #ecfdf5;
}

.buy-btn--soon {
    color: #64748b;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

/* ----------------------------------------------------------------------
   NAVIGATION AND FOOTER
   ---------------------------------------------------------------------- */

.navbar {
    height: clamp(68px, 7vw, 78px);
}

.navbar .container {
    width: min(var(--content-max), calc(100% - 1rem));
}

.logo {
    min-width: 0;
}

.logo h3 {
    overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------------------- */

.page-section {
    padding: var(--section-space) 0;
}

.page-section--soft {
    background: linear-gradient(180deg, #f8fafc, #fff);
}

/* ----------------------------------------------------------------------
   PROFESSIONAL CARDS AND GRIDS
   ---------------------------------------------------------------------- */

.pro-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.75rem);
}

.pro-card,
.info-card,
.form-card,
.content-card,
.search-result-card,
.cart-item,
.article-body {
    border: 1px solid rgba(226, 232, 240, .95);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 50px rgba(15, 23, 42, .07);
}

.pro-card {
    padding: var(--card-pad);
    border-radius: var(--radius-md);
}

.pro-card--accent {
    background: linear-gradient(145deg, #fff, #fffaf0);
    border-color: rgba(242, 194, 48, .24);
}

.pro-card--primary {
    background: linear-gradient(145deg, #fff, #f5f3ff);
    border-color: rgba(15, 95, 215, .18);
}

.pro-card:hover,
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 58px rgba(15, 23, 42, .10);
}

.pro-card,
.info-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.icon-tile {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: var(--primary);
    background: var(--soft-primary);
    font-size: 1.2rem;
}

.eyebrow {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.section-copy {
    max-width: 720px;
}

.section-copy h2 {
    margin: .7rem 0 1rem;
    font-family: "Alice", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.value-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-card h3 {
    margin: 1.1rem 0 .55rem;
    font-family: "Alice", serif;
    font-size: 1.35rem;
}

.value-card p {
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: .2rem;
}

.feature-item p {
    color: var(--muted);
    font-size: .88rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: process;
}

.process-card {
    position: relative;
    overflow: hidden;
}

.process-card::after {
    counter-increment: process;
    content: "0" counter(process);
    position: absolute;
    right: 1rem;
    top: .5rem;
    color: rgba(15, 95, 215, .08);
    font: 700 3.6rem/1 "Alice", serif;
}

.process-card h3 {
    margin: 1rem 0 .5rem;
    font-family: "Alice", serif;
}

.process-card p {
    color: var(--muted);
}

.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-xl);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), #5b91e8);
    box-shadow: 0 30px 70px rgba(55, 48, 163, .24);
}

.cta-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -170px;
    border-radius: 50%;
    border: 65px solid rgba(255, 255, 255, .08);
}

.cta-panel h2 {
    font-family: "Alice", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-panel p {
    max-width: 680px;
    margin-top: .7rem;
    color: rgba(255, 255, 255, .82);
}

.cta-panel .btn-outline {
    background: #fff;
    border-color: #fff;
    color: var(--primary-dark);
}

/* ----------------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------------- */

.form-card {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 24px;
}

.field input,
.field select,
.field textarea,
.site-search-form input {
    min-height: var(--control-height);
    border-radius: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
    min-height: 160px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.site-search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.form-card .btn {
    min-width: 150px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-card a {
    color: var(--text);
    font-weight: 700;
}

/* ----------------------------------------------------------------------
   CART, SEARCH AND LEGAL PAGES
   ---------------------------------------------------------------------- */

.cart-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .72fr);
}

.cart-item {
    border-radius: 18px;
}

.cart-summary {
    border-radius: 22px;
}

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.checkout-step {
    padding: .9rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

.checkout-step.active {
    color: var(--primary);
    background: var(--soft-primary);
    border-color: rgba(15, 95, 215, .2);
}

.search-shell {
    max-width: 1040px;
}

.site-search-form {
    padding: .65rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.site-search-form input {
    border: 0;
    box-shadow: none !important;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.quick-links a {
    padding: .65rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 120px;
    display: grid;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.legal-nav a {
    padding: .7rem .85rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
}

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

.legal-content {
    max-width: none;
}

.legal-content section {
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    scroll-margin-top: 120px;
}

.legal-content h3 {
    margin: 1rem 0 .45rem;
}

/* ----------------------------------------------------------------------
   DATA CARDS: RESOURCES, COURSES AND PAPERS
   ---------------------------------------------------------------------- */

.resource-card,
.course-card,
.paper-card,
.featured-card {
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
}

.resource-card,
.course-card,
.paper-card {
    display: flex;
    flex-direction: column;
}

.resource-body,
.course-content,
.paper-content {
    flex: 1;
}

.resource-footer {
    align-items: stretch;
}

.resource-footer>* {
    flex: 1 1 0;
}

.resources-grid,
.courses-grid,
.papers-grid {
    align-items: stretch;
}

.offer-card img,
.resource-card img,
.course-card img img {
    object-fit: cover;
}

/* ----------------------------------------------------------------------
   EMPTY / ERROR STATES
   ---------------------------------------------------------------------- */

.empty-illustration {
    width: min(280px, 70vw);
    margin: 0 auto 1.5rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 95, 215, .14), transparent 65%);
}

.empty-illustration i {
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--primary);
}

.not-found-code {
    font-family: "Alice", serif;
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: .8;
    color: rgba(15, 95, 215, .11);
}

/* ----------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: span 2;
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .split-layout>* {
        max-width: 780px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 900px) {
    .contact-layout,
    .legal-layout,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        display: flex;
        overflow: auto;
        white-space: nowrap;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-panel p {
        margin-inline: auto;
    }

    .cta-panel .btn {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    :root {
        --content-pad: 1rem;
        --section-space: 4.25rem;
        --control-height: 50px;
    }

    .page-hero {
        min-height: 390px;
        padding-top: 7.25rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1/-1;
    }

    .site-search-form {
        flex-direction: column;
        padding: .75rem;
    }

    .site-search-form .btn {
        width: 100%;
    }

    .checkout-progress {
        grid-template-columns: 1fr;
    }

    .resource-footer {
        flex-direction: column;
    }

    .resource-footer>* {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .btn,
    .buy-btn,
    .watch-playlist,
    .paper-btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .pro-card,
    .info-card,
    .form-card {
        border-radius: 16px;
    }
}

/* ======================================================================
   BNA 2026 LIGHT PREMIUM REFINEMENT
   White + academic blue + restrained yellow. Alice is the primary voice;
   Poppins is reserved for compact interface controls and metadata.
   ====================================================================== */

:root {
    --primary: #0f5fd7;
    --primary-light: #2f7cf6;
    --primary-dark: #0a3d91;
    --accent: #f2c230;
    --accent-light: #ffe07a;
    --bg: #f7faff;
    --surface-2: #eef5ff;
    --text: #0b1f44;
    --muted: #61708b;
    --border: #dbe7f7;
    --soft-primary: rgba(15, 95, 215, .075);
    --soft-accent: rgba(242, 194, 48, .13);
    --ring: 0 0 0 4px rgba(15, 95, 215, .13);
}

body {
    font-family: "Alice", serif;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 44%, #fff 100%);
    color: var(--text);
}

button,
input,
select,
textarea,
.btn,
.nav-links,
.nav-buttons,
.badge,
.eyebrow,
.section-header>span,
.resource-meta,
.resource-rating,
.paper-meta,
.course-meta,
.footer,
small {
    font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo h3 {
    font-family: "Alice", serif;
}

.navbar {
    border-color: rgba(15, 95, 215, .09);
    box-shadow: 0 14px 42px rgba(10, 61, 145, .09);
}

.navbar.scrolled {
    box-shadow: 0 15px 45px rgba(10, 61, 145, .13);
}

.nav-links a::after {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-search {
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: 0 .7rem;
    border-radius: 13px;
    color: var(--primary-dark);
    background: var(--soft-primary);
    border: 1px solid rgba(15, 95, 215, .10);
    font-weight: 700;
    font-size: .82rem;
}

.nav-search:hover {
    background: #fff;
    border-color: rgba(15, 95, 215, .25);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
    box-shadow: 0 14px 32px rgba(15, 95, 215, .23);
}

.btn-primary:hover {
    box-shadow: 0 19px 40px rgba(15, 95, 215, .30);
}

.btn-outline {
    border-color: rgba(15, 95, 215, .16);
    color: var(--primary-dark);
}

.hero {
    min-height: auto;
    padding: clamp(9rem, 13vw, 11rem) 0 clamp(5rem, 8vw, 7rem);
    text-align: left;
    background: radial-gradient(circle at 12% 20%, rgba(47, 124, 246, .13), transparent 31%), radial-gradient(circle at 88% 24%, rgba(242, 194, 48, .12), transparent 25%), linear-gradient(180deg, #fff, #f7faff);
}

.hero-content {
    max-width: var(--content-max);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-copy {
    margin-top:-20px;
    position: relative;
    z-index: 3;
}

.hero .badge {
    margin-bottom: 0.8rem;
    background: #fff;
    border-color: rgba(15, 95, 215, .12);
    box-shadow: 0 10px 30px rgba(10, 61, 145, .06);
}

.hero h1 {
    max-width: 600px;
    margin: 0 0 30px 40px;
    font-size: 2.3rem;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.hero h1 span {
    display: block;
    background: linear-gradient(105deg, var(--primary-dark), var(--primary), #2077e6);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 650px;
    margin: 0 0 .5rem 1.1rem;
    font-size: clamp(1.05rem, 1.5vw, 1rem);
    line-height: 1.75;
}

.hero-buttons {
    justify-content: flex-start;
    gap: .85rem;
    margin-top: 20px;
}

.hero-buttons .btn {
    width: auto;
    min-width: 180px;
    margin-bottom: 0;
    font-size: .88rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: 1.5rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #41516d;
    font: 600 .78rem/1.2 "Poppins", sans-serif;
}

.hero-trust i {
    color: var(--primary);
}

.hero-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}

.hero-image-shell {
    height: 450px;
    width: 460px;
    aspect-ratio: 1.35;
    border-radius: 34px;
    overflow: hidden;
    background: #eaf3ff;
    border: 1px solid rgba(15, 95, 215, .12);
    box-shadow: 0 35px 90px rgba(10, 61, 145, .15);
    transform: rotate(1.2deg);
}

.hero-image-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 124, 246, .18), rgba(47, 124, 246, 0) 67%);
    z-index: -1;
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 190px;
    padding: .8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 95, 215, .10);
    box-shadow: 0 18px 45px rgba(10, 61, 145, .13);
    backdrop-filter: blur(12px);
    font-family: "Poppins", sans-serif;
}

.hero-float strong {
    display: block;
    color: var(--text);
    font-size: .82rem;
    line-height: 1.2;
}

.hero-float small {
    display: block;
    margin-top: .18rem;
    color: var(--muted);
    font-size: .68rem;
}

.hero-float-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero-float-icon--yellow {
    color: #5c4800;
    background: linear-gradient(135deg, #ffe889, var(--accent));
}

.hero-float-icon--soft {
    color: var(--primary);
    background: #eaf3ff;
}

.hero-float--one {
    top: 2%;
    left: -5%;
    rotate: 1.5deg;
}

.hero-float--two {
    right: 0%;
    top: 46%;
    rotate: 1.5deg;
}

.hero-float--three {
    left: -5%;
    bottom: 20%;
    rotate: 1.5deg;
}

.hero-float--four {
    right: 74%;
    left: 80%;
    bottom: 2%;
    top: -80%;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    filter: none !important;
    padding: 0 !important;
    overflow: visible;
}

.hero-float--four img {
    display: block;
    width: 50%;
    height: auto;
    object-fit: contain;
}

.offers-section {
    border-color: rgba(15, 95, 215, .08);
    background: linear-gradient(180deg, #fff, #f7faff);
}

.offer-card {
    border: 1px solid rgba(15, 95, 215, .08);
    box-shadow: 0 14px 42px rgba(10, 61, 145, .07);
}

.bna-stats {
    max-width: var(--content-max);
    margin: clamp(1.25rem, 3vw, 2rem) auto;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    gap: 1rem;
    border: 1px solid #d5e7ff;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 58%, #fff9df 100%);
    box-shadow: 0 24px 60px rgba(10, 61, 145, .08);
}

.bna-stats::before {
    width: 320px;
    height: 320px;
    background: radial-gradient(rgba(47, 124, 246, .13), transparent 70%);
}

.bna-stats::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(rgba(242, 194, 48, .17), transparent 70%);
}

.stat-box {
    padding: 1.45rem 1.2rem;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(15, 95, 215, .09);
    box-shadow: 0 10px 30px rgba(10, 61, 145, .055);
    backdrop-filter: blur(12px);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 18px 40px rgba(10, 61, 145, .10);
}

.stat-box::before {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto .85rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: #e9f3ff;
    border: 1px solid #d9eaff;
    font-size: 1.05rem;
}

.stat-box:nth-child(even) .stat-icon {
    color: #6d5700;
    background: #fff7cf;
    border-color: #f9e8a1;
}

.stat-box h2,
.counter {
    color: var(--primary-dark);
    font-family: "Alice", serif;
    font-size: clamp(2.15rem, 4vw, 3.1rem);
}

.stat-box p {
    color: #52617b;
    font-size: .8rem;
    font-weight: 650;
    font-family: "Poppins", sans-serif;
}

.learning-system-section {
    padding: var(--section-space) 0;
}

.learning-system-intro {
    max-width: 720px;
    margin: .8rem auto 0;
    color: var(--muted);
}

.learning-system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.learning-system-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 1.55rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 95, 215, .09);
    box-shadow: 0 16px 45px rgba(10, 61, 145, .07);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.learning-system-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(242, 194, 48, .10);
}

.learning-system-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 95, 215, .22);
    box-shadow: 0 25px 55px rgba(10, 61, 145, .11);
}

.learning-system-card>span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 12px 25px rgba(15, 95, 215, .20);
}

.learning-system-card:nth-child(even)>span {
    color: #594600;
    background: linear-gradient(135deg, #ffe88b, var(--accent));
    box-shadow: 0 12px 24px rgba(242, 194, 48, .18);
}

.learning-system-card h3 {
    margin: 1.2rem 0 .55rem;
    font-size: 1.45rem;
}

.learning-system-card p {
    color: var(--muted);
    font-size: .93rem;
}

/* Azadi Sale: intentionally green/white only on eligible SSC II cards. */

.azadi-sale-banner {
    border-color: rgba(0, 102, 51, .22) !important;
    background: linear-gradient(105deg, #ffffff, #f1fff7) !important;
    box-shadow: 0 14px 34px rgba(0, 102, 51, .10) !important;
}

.azadi-sale-banner i,
.azadi-sale-banner strong {
    color: #086b38 !important;
}

.resource-card.is-azadi-grade,
.featured-card.is-azadi-grade {
    border-color: rgba(0, 102, 51, .32) !important;
    background: linear-gradient(155deg, #fff 0%, #f3fff7 68%, #e6f8ed 100%) !important;
    box-shadow: 0 20px 46px rgba(0, 102, 51, .11) !important;
}

.resource-card.is-azadi-grade::after,
.featured-card.is-azadi-grade::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -80px;
    bottom: -85px;
    border-radius: 50%;
    background: rgba(0, 102, 51, .07);
    pointer-events: none;
}

.resource-card.is-azadi-sale .resource-price,
.featured-card.is-azadi-sale .price {
    color: #075e34;
}

.resource-card.is-azadi-grade .resource-icon {
    box-shadow: 0 10px 25px rgba(0, 102, 51, .10);
}

.azadi-card-badge {
    max-width: 165px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    top: 54px !important;
    padding: .45rem .65rem !important;
    border: 1px solid rgba(255, 255, 255, .55);
    background: linear-gradient(135deg, #075e34, #0a8a49) !important;
    box-shadow: 0 10px 25px rgba(0, 102, 51, .20);
    font-size: .62rem !important;
    letter-spacing: .035em;
}

.azadi-card-badge--featured {
    top: 20px !important;
}

.sale-price {
    color: #08723d !important;
    font-weight: 800;
}

.azadi-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 30, 55, .24);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.azadi-popup[hidden] {
    display: none;
}

.azadi-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.azadi-popup-card {
    position: relative;
    width: min(440px, calc(100vw - 2rem));
    overflow: hidden;
    padding: 2.15rem 1.65rem 1.6rem;
    border-radius: 28px;
    text-align: center;
    color: #073b23;
    background: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .95), transparent 40%), linear-gradient(145deg, #fff 0%, #f2fff7 62%, #e4f7ea 100%);
    border: 1px solid rgba(0, 102, 51, .25);
    box-shadow: 0 35px 100px rgba(0, 62, 34, .25);
    transform: translateY(16px) scale(.97);
    transition: transform .25s ease;
}

.azadi-popup.is-visible .azadi-popup-card {
    transform: none;
}

.azadi-popup-card::before,
.azadi-popup-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #08723d;
    opacity: .055;
}

.azadi-popup-card::before {
    width: 200px;
    height: 200px;
    left: -120px;
    bottom: -95px;
}

.azadi-popup-card::after {
    width: 170px;
    height: 170px;
    right: -110px;
    top: -85px;
}

.azadi-popup-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #315944;
    background: rgba(255, 255, 255, .85);
    cursor: pointer;
}

.azadi-popup-close:hover {
    background: #fff;
    color: #075e34;
}

.azadi-popup-emblem {
    width: 62px;
    height: 62px;
    margin: 0 auto .85rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #075e34, #0a8a49);
    box-shadow: 0 14px 34px rgba(0, 102, 51, .22);
    font-size: 1.45rem;
}

.azadi-popup-kicker {
    display: block;
    color: #08723d;
    font: 800 .7rem/1.2 "Poppins", sans-serif;
    letter-spacing: .16em;
}

.azadi-popup-card>strong {
    display: block;
    margin: .3rem 0 -.1rem;
    font: 700 clamp(3.5rem, 14vw, 5.5rem)/1 "Alice", serif;
    color: #075e34;
    letter-spacing: -.04em;
}

.azadi-popup-card h2 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.15rem);
}

.azadi-popup-card p {
    max-width: 330px;
    margin: .7rem auto 1rem;
    color: #52705f;
}

.azadi-popup-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    color: #075e34;
    background: #fff;
    border: 1px solid rgba(0, 102, 51, .14);
    font: 700 .72rem/1.2 "Poppins", sans-serif;
}

.footer {
    border-top: 1px solid rgba(15, 95, 215, .08);
}

.footer .logo img {
    filter: none !important;
}

@media (max-width:1100px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .learning-system-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-search-label {
        display: none;
    }
}

@media (max-width:900px) {
    .hero {
        text-align: center;
        padding-top: 8.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
        margin-inline: auto;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 390px;
        max-width: 700px;
        width: 100%;
        margin-inline: auto;
    }

    .hero-float--one {
        left: 1%;
    }

    .hero-float--two {
        right: 1%;
    }

    .hero-float--three {
        left: 8%;
    }
}

@media (max-width:700px) {
    .hero {
        padding: 7.6rem 0 4.5rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.2rem);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: min(100%, 340px);
    }

    .hero-visual {
        min-height: 330px;
        margin-top: .7rem;
    }

    .hero-image-shell {
        border-radius: 24px;
    }

    .hero-float {
        min-width: 0;
        padding: .65rem .75rem;
    }

    .hero-float small {
        display: none;
    }

    .hero-float--one {
        top: 5%;
        left: 0;
    }

    .hero-float--two {
        right: 0;
        top: 51%;
    }

    .hero-float--three {
        bottom: 0;
        left: 5%;
    }

    .bna-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 24px;
    }

    .stat-box {
        padding: 1.2rem .7rem;
    }

    .learning-system-grid {
        grid-template-columns: 1fr;
    }

    .learning-system-card {
        min-height: 0;
    }
}

@media (max-width:480px) {
    .hero-visual {
        min-height: 285px;
    }

    .hero-float {
        font-size: .72rem;
    }

    .hero-float-icon {
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    .hero-float--three {
        display: none;
    }

    .bna-stats {
        grid-template-columns: 1fr 1fr;
        padding: .75rem;
        gap: .7rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-box h2,
    .counter {
        font-size: 2rem;
    }

    .azadi-popup-card {
        padding: 1.8rem 1.1rem 1.35rem;
        border-radius: 24px;
    }
}

/* ======================================================================
   BNA UNIFIED FLOW — 04 AUGUST 2026
   Shared final rules for navigation, inner pages, reviews and footer.
   ====================================================================== */

/* Shared inner-page hero language — compact, premium and viewport-friendly. */

.page-hero,
.rs-hero,
.courses-hero,
.pp-hero,
.join-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(610px, calc(100svh - 24px));
    padding: clamp(7.8rem, 11vh, 9rem) 0 clamp(2.8rem, 6vh, 4.3rem);
    border-bottom: 1px solid rgba(15, 95, 215, .09);
    background:
        radial-gradient(circle at 13% 22%, rgba(47, 124, 246, .14), transparent 29%),
        radial-gradient(circle at 86% 22%, rgba(242, 194, 48, .15), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 72%, #f2f8ff 100%) !important;
}

.page-hero,
.rs-hero,
.courses-hero,
.pp-hero {
    display: grid;
    align-items: center;
    text-align: center;
}

.rs-hero,
.courses-hero,
.pp-hero {
    margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}

.page-hero::before,
.rs-hero::before,
.courses-hero::before,
.pp-hero::before,
.join-hero::before {
    content: "BNA";
    position: absolute;
    right: clamp(.5rem, 5vw, 5rem);
    bottom: -.18em;
    z-index: -1;
    color: rgba(15, 95, 215, .038);
    font: 700 clamp(6.5rem, 17vw, 14rem)/1 "Alice", serif;
    letter-spacing: -.08em;
    pointer-events: none;
}

.page-hero::after,
.rs-hero::after,
.courses-hero::after,
.pp-hero::after,
.join-hero::after {
    content: "";
    position: absolute;
    width: clamp(110px, 15vw, 190px);
    aspect-ratio: 1;
    left: clamp(-55px, -4vw, -20px);
    bottom: clamp(-70px, -5vw, -38px);
    z-index: -1;
    border: 1px solid rgba(15, 95, 215, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(15, 95, 215, .025), 0 0 0 52px rgba(242, 194, 48, .018);
    pointer-events: none;
}

.page-hero .container,
.rs-hero-content,
.courses-hero-content,
.pp-hero-content,
.join-hero-grid {
    position: relative;
    z-index: 2;
}

.page-hero .container,
.rs-hero-content,
.courses-hero-content,
.pp-hero-content {
    width: min(900px, calc(100% - (var(--content-pad) * 2)));
    margin-inline: auto;
}

.page-hero .badge,
.rs-hero .badge,
.courses-hero .badge,
.pp-hero .badge,
.join-hero .badge {
    margin-bottom: clamp(.85rem, 1.6vw, 1.2rem);
    padding: .62rem .9rem;
    border-color: rgba(15, 95, 215, .12);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 30px rgba(10, 61, 145, .055);
}

.page-hero h1,
.rs-hero h1,
.courses-hero h1,
.pp-hero h1,
.join-hero h1 {
    margin: 0 auto clamp(.85rem, 1.8vw, 1.2rem);
    color: var(--text);
    font: 700 clamp(2.45rem, 5vw, 4.35rem)/1.07 "Alice", serif;
    letter-spacing: -.035em;
}

.page-hero h1,
.rs-hero h1,
.courses-hero h1,
.pp-hero h1 { max-width: 830px; }

.page-hero h1 span,
.rs-hero h1 span,
.courses-hero h1 span,
.pp-hero h1 span,
.join-hero h1 span {
    color: transparent !important;
    background: linear-gradient(105deg, var(--primary-dark), var(--primary) 58%, #2f7cf6) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

.page-hero p,
.rs-hero p,
.courses-hero p,
.pp-hero p,
.join-hero-copy > p {
    max-width: 710px;
    margin: 0 auto;
    color: #5d6e89;
    font-size: clamp(.96rem, 1.3vw, 1.05rem);
    line-height: 1.68;
}

.page-hero .hero-buttons { margin-top: clamp(1.35rem, 2.8vw, 2rem); }

.rs-search-bar,
.courses-search,
.pp-search-bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: min(610px, 100%);
    min-height: 54px;
    margin: clamp(1.35rem, 3vh, 2rem) auto clamp(1.1rem, 2.4vh, 1.6rem);
    padding: .85rem 1.15rem;
    border: 1px solid rgba(15, 95, 215, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 38px rgba(10, 61, 145, .075);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.rs-search-bar:focus-within,
.courses-search:focus-within,
.pp-search-bar:focus-within {
    border-color: rgba(15, 95, 215, .38);
    box-shadow: 0 18px 42px rgba(10, 61, 145, .12);
}

.rs-search-bar i,
.courses-search i,
.pp-search-bar i { flex: 0 0 auto; color: var(--primary); }

.rs-search-bar input,
.courses-search input,
.pp-search-bar input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: 500 .92rem/1.3 "Poppins", sans-serif;
}

.rs-search-bar input::placeholder,
.courses-search input::placeholder,
.pp-search-bar input::placeholder { color: #8391a7; }

.rs-hero-stats,
.hero-stats,
.pp-hero-stats {
    width: min(760px, 100%);
    margin: clamp(.9rem, 2vh, 1.3rem) auto 0;
    gap: 0 !important;
    overflow: hidden;
}

.rs-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stats,
.pp-hero-stats { display: flex; justify-content: center; flex-wrap: wrap; }

.rs-hero-stats > div,
.hero-stats > div,
.pp-hero-stats > div {
    min-width: 0;
    padding: .85rem 1rem !important;
    border: 0 !important;
    border-right: 1px solid rgba(15, 95, 215, .09) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rs-hero-stats > div:last-child,
.hero-stats > div:last-child,
.pp-hero-stats > div:last-child { border-right: 0 !important; }

.rs-hero-stats h3,
.hero-stats h3,
.pp-hero-stats h3 {
    margin: 0 0 .12rem;
    color: var(--primary-dark);
    font: 700 clamp(1.45rem, 2.5vw, 2rem)/1 "Alice", serif;
}

.rs-hero-stats p,
.hero-stats p,
.pp-hero-stats p {
    margin: 0;
    color: #667792;
    font: 600 .72rem/1.35 "Poppins", sans-serif;
}

.join-hero { text-align: left; }
.join-hero-grid {
    width: min(var(--content-max), calc(100% - (var(--content-pad) * 2)));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, .82fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}
.join-hero h1 { max-width: 690px; margin-inline: 0; }
.join-hero h1 span { display: block; }
.join-hero-copy > p { margin-inline: 0; }
.join-hero-actions { margin-top: 1.5rem; }
.join-trust-row { gap: .7rem; margin-top: 1.6rem; }
.join-trust-row > div { padding: .72rem .8rem; }
.join-preview-card { padding: clamp(1.2rem, 2vw, 1.65rem); }

@media (max-width: 900px) {
    .page-hero, .rs-hero, .courses-hero, .pp-hero, .join-hero { min-height: auto; padding: 7.7rem 0 3.4rem; }
    .join-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .join-hero h1, .join-hero-copy > p { margin-inline: auto; }
    .join-hero-actions, .join-trust-row { justify-content: center; }
    .join-preview-card { width: min(640px, 100%); margin-inline: auto; }
}

@media (max-width: 600px) {
    .page-hero, .rs-hero, .courses-hero, .pp-hero, .join-hero { padding: 6.8rem 0 2.6rem; }
    .page-hero h1, .rs-hero h1, .courses-hero h1, .pp-hero h1, .join-hero h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
    .page-hero p, .rs-hero p, .courses-hero p, .pp-hero p, .join-hero-copy > p { font-size: .93rem; line-height: 1.58; }
    .rs-search-bar, .courses-search, .pp-search-bar { min-height: 50px; margin-block: 1.15rem .9rem; padding: .7rem .9rem; }
    .rs-hero-stats, .hero-stats, .pp-hero-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
    .rs-hero-stats > div, .hero-stats > div, .pp-hero-stats > div { padding: .72rem .65rem !important; border-right: 1px solid rgba(15, 95, 215, .09) !important; border-bottom: 1px solid rgba(15, 95, 215, .09) !important; }
    .rs-hero-stats > div:nth-child(2n), .hero-stats > div:nth-child(2n), .pp-hero-stats > div:nth-child(2n) { border-right: 0 !important; }
    .rs-hero-stats > div:nth-last-child(-n + 2), .hero-stats > div:nth-last-child(-n + 2), .pp-hero-stats > div:nth-last-child(-n + 2) { border-bottom: 0 !important; }
}

.rs-search-bar,
.courses-search,
.pp-search-bar,
.site-search-form,
.rs-filter-row,
.courses-filter-row,
.pp-filter-row,
.rs-grade-tabs,
.grade-tabs,
.pp-grade-tabs,
.pp-paper-type {
    border-color: rgba(15, 95, 215, .11) !important;
    background: rgba(255, 255, 255, .95) !important;
    box-shadow: 0 14px 38px rgba(10, 61, 145, .075) !important;
}

.rs-hero-stats,
.hero-stats,
.pp-hero-stats {
    border: 1px solid rgba(15, 95, 215, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .8) !important;
    box-shadow: 0 14px 38px rgba(10, 61, 145, .07);
    backdrop-filter: blur(12px);
}

.category-card,
.featured-card,
.resource-card,
.benefit-card,
.course-card,
.feature-card,
.paper-card,
.pp-info-card,
.pro-card,
.info-card,
.content-card,
.form-card,
.search-result-card,
.cart-item,
.contact-card,
.value-card,
.process-card,
.join-path-card,
.join-auth-card,
.join-preview-card {
    border-color: rgba(15, 95, 215, .1) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 40px rgba(10, 61, 145, .07) !important;
}

.category-card:hover,
.featured-card:hover,
.resource-card:hover,
.benefit-card:hover,
.course-card:hover,
.feature-card:hover,
.paper-card:hover,
.pp-info-card:hover,
.pro-card:hover,
.info-card:hover,
.search-result-card:hover,
.join-path-card:hover {
    box-shadow: 0 28px 68px rgba(10, 61, 145, .13) !important;
}

.grade-tab.active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    box-shadow: 0 12px 28px rgba(15, 95, 215, .2) !important;
}

/* Past-paper mode controls stay transparent in both states. */
.paper-type,
.paper-type:hover,
.paper-type.active {
    background: transparent !important;
}

.paper-type.active {
    color: var(--primary-dark) !important;
    border-color: var(--primary) !important;
    box-shadow: inset 0 -3px 0 var(--primary), 0 10px 24px rgba(15, 95, 215, .10) !important;
}

.paper-type.active i {
    color: var(--primary) !important;
}

/* Review rating control */

.student-review-card {
    display: flex;
    flex-direction: column;
}

.student-review-card blockquote {
    flex: 1;
}

.student-review-photo,
.student-photo-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
}

.student-review-photo {
    object-fit: cover;
    border: 1px solid rgba(15, 95, 215, .12);
}

.review-verified {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    color: #56708f !important;
    font: 600 .73rem/1.2 "Poppins", sans-serif;
}

.review-rating {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.review-stars {
    display: inline-flex;
    gap: .16rem;
    color: #d9a500;
    font-size: .82rem;
}

.review-rating-value {
    color: var(--primary-dark);
    font: 700 .75rem/1 "Poppins", sans-serif;
}

.reviews-loading {
    grid-column: 1 / -1;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

/* Shared navigation behavior (consolidated from the removed responsive.css). */

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
}

.nav-toggle,
.nav-overlay {
    display: none;
}

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

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-weight: 600;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #3f3100;
    background: var(--accent);
    font-size: .72rem;
    font-weight: 800;
}

.nav-open {
    overflow: hidden;
}

/* Redesigned light BNA footer */

.footer {
    position: relative;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    border: 0;
    background: transparent;
}

.footer::before {
    display: none !important;
}

.footer-cta-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: -58px;
}

.footer-cta {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.3rem);
    margin-top: 5px;
    margin-bottom: 80px;
    overflow: hidden;
    border: 1px solid #d5e6ff;
    border-radius: 30px;
    background: radial-gradient(circle at 86% 5%, rgba(242, 194, 48, .2), transparent 24%),
        linear-gradient(135deg, #eef6ff 0%, #fff 62%, #fff9df 100%);
    box-shadow: 0 24px 70px rgba(10, 61, 145, .14);
}

.footer-cta::after {
    content: "BNA";
    position: absolute;
    right: 1rem;
    bottom: -.28em;
    color: rgba(15, 95, 215, .045);
    font: 700 8rem/1 "Alice", serif;
    pointer-events: none;
}

.footer-cta-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 14px 30px rgba(15, 95, 215, .22);
}

.footer-cta-copy,
.footer-cta-actions {
    position: relative;
    z-index: 1;
}

.footer-cta-copy > span {
    color: var(--primary);
    font: 700 .72rem/1 "Poppins", sans-serif;
    letter-spacing: .13em;
}

.footer-cta-copy h2 {
    margin: .4rem 0 .35rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.footer-cta-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: .92rem;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem;
}

.footer-main {
    padding: 115px 0 58px;
    border-top: 1px solid #e0ebfa;
    background: linear-gradient(180deg, #f3f8ff 0%, #edf5ff 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(290px, 1.5fr) repeat(2, minmax(150px, .65fr)) minmax(250px, 1fr) !important;
    gap: clamp(2rem, 4vw, 4rem);
}

.footer-brand p {
    max-width: 470px;
    margin: 1.25rem 0;
    color: #536682;
    line-height: 1.82;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
}

.footer-logo h3 {
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.05;
}

.footer-logo > div:last-child > span {
    display: block;
    margin-top: .25rem;
    color: var(--muted);
    font: 600 .64rem/1.25 "Poppins", sans-serif;
}

.footer-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.2rem;
}

.footer-pill-row span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .68rem;
    border: 1px solid #d9e8fb;
    border-radius: 999px;
    color: #405775;
    background: rgba(255, 255, 255, .72);
    font: 600 .68rem/1 "Poppins", sans-serif;
}

.footer-pill-row i {
    color: var(--primary);
}

.footer-column h4 {
    margin-bottom: 1.15rem;
    color: var(--text);
    font-size: 1.08rem;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: .72rem;
}

.footer-column a {
    color: #536682 !important;
    transition: color .2s ease, transform .2s ease;
}

.footer-column li a {
    display: inline-flex;
}

.footer-column li a:hover {
    color: var(--primary) !important;
    transform: translateX(3px);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #d6e6fa;
    border-radius: 14px;
    color: var(--primary-dark) !important;
    background: rgba(255, 255, 255, .86) !important;
    box-shadow: 0 8px 20px rgba(10, 61, 145, .055);
}

.footer-social a:hover {
    color: #fff !important;
    border-color: transparent;
    background: var(--primary) !important;
    transform: translateY(-3px);
}

.footer-connect > p {
    margin-bottom: 1rem;
    color: #60708a;
    font-size: .88rem;
    line-height: 1.65;
}

.footer-contact {
    display: grid;
    gap: .75rem;
}

.footer-contact > a {
    display: flex;
    align-items: center;
    gap: .72rem;
    padding: .75rem;
    border: 1px solid #d9e8fa;
    border-radius: 16px;
    color: var(--text) !important;
    background: rgba(255, 255, 255, .78);
}

.footer-contact > a:hover {
    border-color: #bdd7fb;
    background: #fff;
    transform: translateY(-2px);
}

.footer-contact-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid !important;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: #e9f3ff;
}

.footer-contact a > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow-wrap: anywhere;
    font: 600 .78rem/1.25 "Poppins", sans-serif;
}

.footer-contact small {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-bottom-shell {
    border-top: 1px solid #dce8f7;
    background: #eaf3ff;
}

.footer-bottom {
    margin: 0;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border: 0;
}

.footer-bottom p,
.footer-bottom-links a {
    color: #5e7089 !important;
    font: 500 .72rem/1.4 "Poppins", sans-serif;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 1100px) {
    .navbar .container {
        padding-inline: 10px;
    }

    .logo h3 {
        max-width: 210px;
        line-height: 1.2;
    }

    .nav-toggle {
        display: flex;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 12px;
        background: var(--surface-2);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text);
        transition: var(--transition);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-panel {
        position: fixed;
        top: 108px;
        right: 2.5%;
        width: min(390px, 95%);
        max-height: calc(100vh - 128px);
        overflow: auto;
        padding: 28px;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 22px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: rgba(255, 255, 255, .985);
        box-shadow: 0 30px 70px rgba(10, 61, 145, .17);
        transform: translateY(-15px) scale(.98);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-panel.open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-links, .nav-buttons {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .nav-links a:hover, .nav-links a.active {
        background: var(--surface-2);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-buttons .btn {
        margin: 0;
    }

    .nav-cart {
        justify-content: center;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(11, 31, 68, .34);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .footer-grid {
        grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(140px, .7fr)) !important;
    }

    .footer-connect {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .footer-cta {
        grid-template-columns: auto 1fr;
    }

    .footer-cta-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 78px;
    }
}

@media (max-width: 700px) {
    .student-reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-brand, .footer-connect {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }

    .logo h3 {
        max-width: 150px;
        font-size: .95rem;
    }

    .logo-mark {
        margin-left: 0;
    }

    .logo-mark img {
        width: 42px;
        height: 42px;
    }

    .nav-panel {
        top: 82px;
        max-height: calc(100vh - 96px);
    }

    .hero-buttons, .youtube-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn, .youtube-buttons .btn {
        width: 100%;
    }

    .pp-filter-row, .courses-filter-row, .rs-filter-row {
        align-items: stretch;
    }

    .pp-filter-group, .filter-group, .rs-filter-group,
    .pp-filter-group select, .filter-group select, .rs-filter-group select {
        width: 100%;
    }

    .review-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-rating {
        margin-left: 0;
    }

    .footer-cta-wrap {
        margin-bottom: -44px;
    }

    .footer-cta {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .footer-cta-icon {
        width: 52px;
        height: 52px;
    }

    .footer-cta-actions {
        grid-column: auto;
        padding-left: 0;
        flex-direction: column;
    }

    .footer-cta-actions .btn {
        width: 100%;
    }

    .footer-main {
        padding-top: 92px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-brand, .footer-connect {
        grid-column: auto;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ======================================================================
   FINAL FRONTEND POLISH — 04 AUGUST 2026
   ====================================================================== */
.hero {
    margin-top: 0 !important;
    min-height: min(760px, 100svh) !important;
    padding: clamp(7.9rem, 12vh, 9.2rem) 0 clamp(3.4rem, 6vh, 4.8rem) !important;
}
.hero h1 { margin: 0 0 0.5rem !important;}
.hero p { margin: 0 0 0.2rem !important; font-size: clamp(1rem, 1.2vw, 1.08rem) !important; }
.hero-image-shell { width: min(100%, 465px); height: auto; aspect-ratio: 1.04; }
.hero-visual { min-height: 450px; }
.page-section, .learning-system-section, .founder-section, .student-reviews-section { padding-block: clamp(4rem, 7vw, 6.25rem); }
.section-header { margin-bottom: clamp(2rem, 4vw, 3.7rem); }

.footer-cta {
    border-color: rgba(15, 95, 215, .16);
    background: radial-gradient(circle at 88% 8%, rgba(242, 194, 48, .27), transparent 25%), radial-gradient(circle at 8% 86%, rgba(47, 124, 246, .12), transparent 28%), linear-gradient(135deg, #ffffff 0%, #f4f9ff 64%, #fff8d9 100%);
    box-shadow: 0 28px 75px rgba(10, 61, 145, .16);
}
.footer-cta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--accent), #ffe884 50%, var(--primary)); }
.footer-main {
    position: relative;
    padding: 116px 0 58px;
    overflow: hidden;
    border-top: 0;
    color: #fff;
    background: radial-gradient(circle at 10% 25%, rgba(255, 255, 255, .13), transparent 24%), radial-gradient(circle at 92% 0%, rgba(242, 194, 48, .22), transparent 22%), linear-gradient(135deg, #083f99 0%, #0f5fd7 52%, #2879e8 100%);
}
.footer-main::before { content: "BNA"; position: absolute; right: -1.5rem; bottom: -.28em; color: rgba(255,255,255,.045); font: 700 clamp(9rem,24vw,20rem)/1 "Alice", serif; letter-spacing: -.08em; pointer-events: none; }
.footer-main::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #fff0a8 35%, rgba(255,255,255,.85) 50%, #fff0a8 65%, var(--accent)); }
.footer-grid { position: relative; z-index: 1; }
.footer-brand { padding: 1.15rem; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.075); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.footer-logo { padding: .55rem .7rem .55rem .55rem; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(3,33,83,.16); }
.footer-logo h3 { color: var(--primary-dark); }
.footer-logo > div:last-child > span { color: #64748b; }
.footer-brand p, .footer-connect > p { color: rgba(255,255,255,.78); }
.footer-pill-row span { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.10); }
.footer-pill-row span:nth-child(2) i { color: #ffe16b; }
.footer-pill-row i, .footer-column h4 { color: #ffe477; }
.footer-column h4 { position: relative; display: inline-block; margin-bottom: 1.25rem; font-size: 1.12rem; }
.footer-column h4::after { content: ""; position: absolute; left: 0; bottom: -.45rem; width: 28px; height: 2px; border-radius: 999px; background: var(--accent); }
.footer-column a, .footer-column li a { color: rgba(255,255,255,.78) !important; }
.footer-column li a:hover { color: #fff !important; text-shadow: 0 0 22px rgba(255,255,255,.25); }
.footer-social a { color: #fff !important; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.10) !important; box-shadow: none; }
.footer-social a:hover { color: var(--primary-dark) !important; border-color: #ffe477; background: #ffe477 !important; box-shadow: 0 10px 26px rgba(242,194,48,.22); }
.footer-contact > a { color: var(--primary-dark) !important; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(3,33,83,.13); }
.footer-contact > a:hover { border-color: #ffe477; background: #fff; }
.footer-contact-icon { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.footer-contact small { color: #64748b; }
.footer-bottom-shell { border-top: 1px solid rgba(255,255,255,.10); background: #07377f; }
.footer-bottom p, .footer-bottom-links a { color: rgba(255,255,255,.72) !important; }
.footer-bottom-links a:hover { color: #ffe477 !important; }

@media (max-width: 1100px) {
    .hero { min-height: auto !important; padding-top: 8rem !important; }
    .hero-image-shell { width: min(100%, 430px); }
}
@media (max-width: 900px) {
    .hero { padding-bottom: 3.6rem !important; }
    .hero-visual { min-height: 390px; }
    .hero-image-shell { width: min(100%, 400px); }
}
@media (max-width: 600px) {
    .hero { padding: 6.7rem 0 2.8rem !important; }
    .hero h1 { font-size: clamp(2.45rem, 12vw, 3.2rem) !important; }
    .hero-content { gap: 1rem; }
    .hero-visual { display: none; }
    .hero-trust { margin-top: 1rem; gap: .5rem .75rem; }
    .join-preview-card { display: none; }
    .join-trust-row { margin-top: 1.15rem; }
    .join-hero { padding: 6.3rem 0 2.2rem; }
    .footer-main { padding-top: 94px; }
}


/* ===== Enrollment + ID access additions (08 Aug 2026) ===== */
.nav-enroll-link { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 .78rem; border:1px solid rgba(15,95,215,.24); border-radius:10px; color:var(--primary-dark); background:rgba(255,255,255,.72); font-size:.78rem; font-weight:800; white-space:nowrap; }
.nav-enroll-link:hover { border-color:rgba(15,95,215,.46); background:#f3f8ff; }
.enrollment-invite { margin-top:1rem; padding:1rem; display:grid; grid-template-columns:44px minmax(0,1fr); gap:.7rem; align-items:center; border:1px solid #d8e6f7; border-radius:15px; background:linear-gradient(135deg,#fffdf3,#fff); }
.enrollment-invite-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; color:#0f5fd7; background:#eaf3ff; }
.enrollment-invite strong { display:block; color:#102f5f; }
.enrollment-invite p { margin:.15rem 0 0; color:#718096; font-size:.74rem; line-height:1.5; }
.enrollment-invite .btn { grid-column:1/-1; width:100%; }
.access-public-grid .process-card { text-decoration:none; }
@media(max-width:1100px){ .nav-enroll-link { width:100%; } }
.cart-order-notice { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: 12px; font-size: .84rem; font-weight: 600; }
.cart-order-notice.is-success { color: #065f46; background: #ecfdf5; border: 1px solid #bbf7d0; }
.cart-order-notice.is-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }

/* =====================================================
   BNA mobile presentation polish — preserve desktop identity
   These are scale/overflow corrections only; no desktop redesign.
===================================================== */
@media (max-width: 700px) {
    html, body {
        max-width: 100%;
        overflow-x: clip;
    }

    .container {
        width: min(100% - 24px, var(--container, 1180px));
    }

    /* Keep the laptop visual language while reducing non-essential chrome. */
    .section-header > span {
        letter-spacing: .12em;
    }

    .section-header h2 {
        line-height: 1.08;
    }

    .navbar {
        border-radius: 22px;
        box-shadow: 0 16px 38px rgba(15, 61, 123, .10);
    }

    .navbar .container {
        min-height: 70px;
    }

    .nav-panel {
        width: calc(100% - 24px);
        right: 12px;
        padding: 20px;
        border-radius: 18px;
    }

    /* Decorative layers are optional on a narrow viewport; removing only
       these prevents clipping while the actual cards/content stay unchanged. */
    .hero::before,
    .hero::after,
    .page-hero::before,
    .page-hero::after {
        max-width: 100vw;
    }

    img, video, iframe, canvas, svg {
        max-width: 100%;
    }

    .card,
    .content-card,
    .resource-card,
    .course-card,
    .paper-card,
    .dashboard-card {
        max-width: 100%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 20px);
    }

    .navbar {
        width: calc(100% - 16px);
        top: 8px;
    }

    .navbar .container {
        padding-inline: 8px;
    }

    .logo h3 {
        max-width: 138px;
        font-size: .88rem;
    }

    .logo-mark img {
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .nav-panel {
        top: 72px;
        max-height: calc(100dvh - 84px);
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .footer-bottom-links {
        gap: .65rem 1rem;
    }
}

/* =========================================================
   V24 — Past Papers hero statistics polish
   Scope: presentation only; no layout/system redesign.
   ========================================================= */
.pp-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(760px, 100%);
    margin: clamp(1rem, 2vh, 1.35rem) auto 0;
    gap: 0 !important;
    overflow: hidden;
    align-items: stretch;
}

.pp-hero-stats > div {
    min-width: 0;
    min-height: 88px;
    padding: 1rem 1.15rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0 !important;
    border-right: 1px solid rgba(15, 95, 215, .11) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pp-hero-stats > div:last-child {
    border-right: 0 !important;
}

.pp-hero-stats h3 {
    min-height: 2rem;
    margin: 0 0 .28rem !important;
    color: var(--primary-dark);
    font: 700 clamp(1.65rem, 2.7vw, 2.15rem)/1 "Alice", serif !important;
}

.pp-hero-stats p {
    margin: 0 !important;
    color: #667792;
    font: 600 .78rem/1.35 "Poppins", sans-serif !important;
    white-space: normal;
}

@media (max-width: 600px) {
    .pp-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pp-hero-stats > div {
        min-height: 76px;
        padding: .78rem .45rem !important;
    }

    .pp-hero-stats h3 {
        min-height: 1.65rem;
        font-size: 1.45rem !important;
    }

    .pp-hero-stats p {
        font-size: .64rem !important;
    }
}


/* ======================================================================
   BNA FINAL V26 — PREMIUM STUDENT VOICES
   Purpose: redesigned testimonial containers only.
   ====================================================================== */

.student-reviews-section {
    position: relative;
    padding: clamp(82px, 8vw, 112px) 0 clamp(92px, 9vw, 124px);
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(15, 95, 215, .065), transparent 27%),
        radial-gradient(circle at 92% 78%, rgba(242, 194, 48, .08), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f6faff 54%, #ffffff 100%) !important;
}

.student-reviews-section::before {
    width: 520px !important;
    height: 520px !important;
    top: -330px !important;
    background: radial-gradient(circle, rgba(242, 194, 48, .13), transparent 66%) !important;
}

.student-reviews-section .section-header {
    max-width: 760px;
    margin-bottom: clamp(40px, 5vw, 58px);
}

.student-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2vw, 28px);
    align-items: stretch;
}

.student-review-card {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    padding: clamp(24px, 2.3vw, 31px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 95, 215, .105);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 194, 48, .085), transparent 27%),
        linear-gradient(155deg, rgba(255,255,255,.995), rgba(248,251,255,.99));
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 18px 48px rgba(23, 66, 132, .075);
    transition:
        transform .32s cubic-bezier(.2,.8,.2,1),
        box-shadow .32s ease,
        border-color .32s ease;
}

.student-review-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    z-index: 0;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 58%, var(--accent) 100%);
}

.student-review-card::after {
    content: "BNA";
    position: absolute;
    right: -9px;
    bottom: -24px;
    z-index: -1;
    color: rgba(15, 95, 215, .028);
    font: 700 6.4rem/1 "Alice", serif;
    letter-spacing: -.06em;
    pointer-events: none;
}

.student-review-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 95, 215, .2);
    box-shadow:
        0 1px 0 rgba(255,255,255,.95) inset,
        0 28px 68px rgba(23, 66, 132, .13);
}

.student-review-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding-right: 48px;
}

.student-review-photo,
.student-photo-placeholder {
    width: 70px !important;
    height: 70px !important;
    flex: 0 0 70px !important;
    border-radius: 50% !important;
    border: 3px solid #fff !important;
    outline: 1px solid rgba(15, 95, 215, .16);
    box-shadow:
        0 0 0 5px rgba(15, 95, 215, .055),
        0 10px 24px rgba(15, 61, 145, .11);
}

.student-review-photo {
    object-fit: cover;
    object-position: center;
}

.student-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: linear-gradient(145deg, #eef6ff, #ffffff);
    font-size: 1.35rem;
}

.student-review-top h3 {
    margin: 0;
    color: var(--text);
    font: 700 1.22rem/1.18 "Alice", serif;
    letter-spacing: -.015em;
}

.student-review-top .review-grade {
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    padding: .42rem .65rem;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    border: 1px solid rgba(15, 95, 215, .11);
    border-radius: 999px;
    color: #4f6683;
    background: rgba(241, 247, 255, .82);
    font: 600 .69rem/1 "Poppins", sans-serif;
    white-space: normal;
}

.review-grade i {
    color: var(--primary);
    font-size: .66rem;
}

.review-quote {
    position: absolute;
    top: 24px;
    right: 25px;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(242, 194, 48, .24);
    border-radius: 50%;
    color: #b88a00;
    background: rgba(255, 249, 224, .88);
    box-shadow: 0 8px 22px rgba(168, 125, 0, .08);
    font-size: 1rem;
}

.review-rating.review-rating-top {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin: 24px 0 0 !important;
    padding: .5rem .68rem;
    display: inline-flex;
    align-items: center;
    gap: .52rem;
    border: 1px solid rgba(242, 194, 48, .23);
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdf4, #fff9df);
    box-shadow: 0 7px 20px rgba(173, 132, 0, .06);
}

.review-stars {
    gap: .13rem !important;
    color: #d9a500 !important;
    font-size: .77rem !important;
}

.review-rating-value {
    padding-left: .45rem;
    border-left: 1px solid rgba(160, 123, 0, .16);
    color: #705800 !important;
    font-size: .7rem !important;
}

.student-review-card blockquote {
    position: relative;
    z-index: 2;
    flex: 1;
    margin: 22px 0 24px;
    padding: 0;
    color: #43546d;
    font: 400 1.02rem/1.78 "Alice", serif;
}

.student-review-card blockquote::first-letter {
    color: var(--primary-dark);
}

.review-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(15, 95, 215, .08);
}

.review-verified {
    color: #526b88 !important;
    font: 600 .68rem/1.25 "Poppins", sans-serif !important;
}

.review-verified i {
    color: var(--primary) !important;
}

.review-featured-chip {
    flex: 0 0 auto;
    padding: .38rem .55rem;
    display: inline-flex !important;
    align-items: center;
    gap: .3rem;
    border: 1px solid rgba(242, 194, 48, .27);
    border-radius: 999px;
    color: #765b00 !important;
    background: #fff9df;
    font: 700 .63rem/1 "Poppins", sans-serif !important;
}

.review-featured-chip i {
    color: #c99a00 !important;
}

@media (max-width: 980px) {
    .student-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-review-card,
    .student-review-card:last-child {
        max-width: none !important;
        width: auto !important;
        grid-column: auto !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 680px) {
    .student-reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .student-review-card {
        min-height: 0;
        padding: 24px 22px 22px;
        border-radius: 25px;
    }

    .student-review-top {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 13px;
        padding-right: 38px;
    }

    .student-review-photo,
    .student-photo-placeholder {
        width: 62px !important;
        height: 62px !important;
        flex-basis: 62px !important;
    }

    .review-quote {
        top: 21px;
        right: 20px;
        width: 36px;
        height: 36px;
    }

    .student-review-card blockquote {
        font-size: .98rem;
        line-height: 1.72;
    }

    .review-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ======================================================================
   BNA FINAL V27 — COMPACT STUDENT VOICES
   Smaller, calmer review containers in BNA navy / gold / white.
   ====================================================================== */

.student-reviews-section {
    padding: clamp(68px, 7vw, 92px) 0 clamp(74px, 7.5vw, 100px) !important;
    background:
        radial-gradient(circle at 10% 15%, rgba(10, 48, 104, .055), transparent 27%),
        radial-gradient(circle at 90% 82%, rgba(201, 154, 0, .055), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
}

.student-reviews-section::before {
    width: 360px !important;
    height: 360px !important;
    top: -250px !important;
    background: radial-gradient(circle, rgba(201, 154, 0, .085), transparent 68%) !important;
}

.student-reviews-section .section-header {
    max-width: 700px !important;
    margin-bottom: clamp(30px, 4vw, 42px) !important;
}

.reviews-subtitle {
    max-width: 620px !important;
    font-size: .9rem !important;
    line-height: 1.65 !important;
}

.student-reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(16px, 1.6vw, 22px) !important;
    align-items: stretch !important;
}

.student-review-card {
    min-height: 285px !important;
    padding: 20px 20px 18px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(10, 48, 104, .11) !important;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, .98) 0%, rgba(255, 255, 255, .995) 38%, #ffffff 100%) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 10px 28px rgba(10, 48, 104, .06) !important;
}

.student-review-card::before {
    height: 3px !important;
    background: linear-gradient(90deg, #082d63 0%, #0f5fd7 70%, #c99a00 100%) !important;
}

.student-review-card::after {
    right: -4px !important;
    bottom: -18px !important;
    color: rgba(8, 45, 99, .022) !important;
    font-size: 4.8rem !important;
}

.student-review-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(10, 48, 104, .18) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.95) inset,
        0 16px 36px rgba(10, 48, 104, .095) !important;
}

.student-review-top {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding-right: 34px !important;
}

.student-review-photo,
.student-photo-placeholder {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
    border-radius: 15px !important;
    border: 2px solid #fff !important;
    outline: 1px solid rgba(10, 48, 104, .13) !important;
    box-shadow: 0 6px 16px rgba(10, 48, 104, .085) !important;
}

.student-review-top h3 {
    font-size: 1rem !important;
    line-height: 1.18 !important;
    color: #0a2e5f !important;
}

.student-review-top .review-grade {
    margin-top: 5px !important;
    padding: .33rem .5rem !important;
    border-color: rgba(10, 48, 104, .10) !important;
    background: #f3f7fc !important;
    color: #53677f !important;
    font-size: .62rem !important;
}

.review-grade i {
    color: #0f5fd7 !important;
    font-size: .6rem !important;
}

.review-quote {
    top: 17px !important;
    right: 17px !important;
    width: 30px !important;
    height: 30px !important;
    border-color: rgba(201, 154, 0, .20) !important;
    background: #fffaf0 !important;
    color: #b48700 !important;
    font-size: .74rem !important;
    box-shadow: none !important;
}

.review-rating.review-rating-top {
    margin-top: 16px !important;
    padding: .34rem .52rem !important;
    gap: .4rem !important;
    border-color: rgba(201, 154, 0, .18) !important;
    background: #fffaf0 !important;
    box-shadow: none !important;
}

.review-stars {
    font-size: .68rem !important;
    gap: .1rem !important;
}

.review-rating-value {
    font-size: .62rem !important;
    padding-left: .38rem !important;
}

.student-review-card blockquote {
    margin: 16px 0 16px !important;
    color: #475a72 !important;
    font-size: .88rem !important;
    line-height: 1.62 !important;
}

.review-footer {
    padding-top: 12px !important;
    gap: 8px !important;
    border-top-color: rgba(10, 48, 104, .075) !important;
}

.review-verified {
    font-size: .59rem !important;
    color: #63758b !important;
}

.review-verified i {
    color: #0f5fd7 !important;
}

.review-featured-chip {
    padding: .3rem .45rem !important;
    border-color: rgba(201, 154, 0, .19) !important;
    background: #fffaf0 !important;
    color: #765b00 !important;
    font-size: .55rem !important;
}

@media (max-width: 980px) {
    .student-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .student-reviews-section {
        padding: 58px 0 68px !important;
    }

    .student-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .student-review-card {
        min-height: 0 !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .student-review-top {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding-right: 32px !important;
    }

    .student-review-photo,
    .student-photo-placeholder {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
    }

    .student-review-card blockquote {
        font-size: .84rem !important;
        line-height: 1.58 !important;
    }

    .review-footer {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }
}


/* ======================================================================
   BNA FINAL V28 — SIGNATURE STUDENT REVIEW CARDS
   Premium compact editorial layout: ivory + soft gold + navy.
   ====================================================================== */

.student-reviews-section {
    background:
        radial-gradient(circle at 8% 12%, rgba(15, 95, 215, .045), transparent 26%),
        radial-gradient(circle at 91% 86%, rgba(214, 174, 56, .085), transparent 26%),
        linear-gradient(180deg, #fbfcff 0%, #fffdf7 52%, #ffffff 100%) !important;
}

.student-reviews-grid {
    gap: clamp(18px, 1.8vw, 24px) !important;
}

.student-review-card {
    position: relative;
    min-height: 300px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(16, 52, 98, .10) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(180deg, #fffdf7 0%, #ffffff 32%, #fbfdff 100%) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,.95) inset,
        0 12px 34px rgba(16, 52, 98, .07) !important;
}

.student-review-card::before,
.student-review-card::after {
    display: none !important;
}

.review-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #0a2e5f 0%, #0f5fd7 58%, #d7ad3a 100%);
}

.student-review-top {
    display: grid !important;
    grid-template-columns: 52px minmax(0,1fr) 32px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 18px 18px 13px !important;
    border-bottom: 1px solid rgba(16, 52, 98, .065);
    background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,250,236,.72)) !important;
}

.student-review-photo,
.student-photo-placeholder {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    border: 2px solid #fff !important;
    outline: 1px solid rgba(10, 46, 95, .12) !important;
    box-shadow: 0 5px 14px rgba(10, 46, 95, .08) !important;
}

.review-student-copy {
    min-width: 0;
}

.student-review-top h3 {
    margin: 0 !important;
    color: #0b2e5d !important;
    font: 700 1rem/1.16 "Alice", serif !important;
}

.student-review-top .review-grade {
    margin-top: 5px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #6a7890 !important;
    font: 600 .62rem/1.2 "Poppins", sans-serif !important;
}

.review-grade i {
    color: #0f5fd7 !important;
}

.review-quote {
    position: static !important;
    width: 31px !important;
    height: 31px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(215, 173, 58, .24) !important;
    border-radius: 50% !important;
    background: #fff8e7 !important;
    color: #b68a16 !important;
    box-shadow: none !important;
    font-size: .72rem !important;
}

.review-current-study {
    margin: 14px 18px 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(215, 173, 58, .18);
    border-radius: 12px;
    background: linear-gradient(90deg, #fffaf0, #fffdf8);
}

.review-current-study span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    color: #8a7440;
    font: 600 .56rem/1.2 "Poppins", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.review-current-study span i {
    color: #c39117;
}

.review-current-study strong {
    min-width: 0;
    color: #2b4362;
    font: 600 .66rem/1.3 "Poppins", sans-serif;
    text-align: right;
}

.student-review-card blockquote {
    flex: 1;
    margin: 15px 18px 17px !important;
    color: #455a73 !important;
    font: 400 .87rem/1.62 "Alice", serif !important;
}

.review-bottom-bar {
    margin-top: auto;
    padding: 12px 18px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(16, 52, 98, .065);
    background: linear-gradient(90deg, #f8fbff 0%, #fffaf0 100%);
}

.review-rating.review-rating-bottom {
    margin: 0 !important;
    padding: .32rem .48rem !important;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    border: 1px solid rgba(215, 173, 58, .24) !important;
    border-radius: 999px;
    background: #fff7df !important;
    box-shadow: none !important;
}

.review-rating-bottom .review-stars {
    font-size: .65rem !important;
    color: #d39d0d !important;
}

.review-rating-bottom .review-rating-value {
    padding-left: .34rem !important;
    border-left: 1px solid rgba(150, 112, 13, .14);
    color: #72580d !important;
    font-size: .6rem !important;
}

.review-verified {
    margin-left: auto;
    color: #62758c !important;
    font: 600 .56rem/1.2 "Poppins", sans-serif !important;
}

.review-featured-chip {
    padding: .28rem .42rem !important;
    border-color: rgba(215, 173, 58, .2) !important;
    background: #fff7df !important;
    font-size: .52rem !important;
}

.student-review-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(15, 95, 215, .16) !important;
    box-shadow: 0 17px 40px rgba(16,52,98,.10) !important;
}

@media (max-width: 680px) {
    .student-review-card {
        min-height: 0 !important;
        border-radius: 20px !important;
    }

    .student-review-top {
        grid-template-columns: 48px minmax(0,1fr) 30px !important;
        padding: 16px 16px 12px !important;
    }

    .student-review-photo,
    .student-photo-placeholder {
        width: 48px !important;
        height: 48px !important;
    }

    .review-current-study {
        margin: 12px 16px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .review-current-study strong {
        text-align: left;
    }

    .student-review-card blockquote {
        margin: 14px 16px 16px !important;
        font-size: .84rem !important;
    }

    .review-bottom-bar {
        padding: 11px 16px 13px;
    }

    .review-verified {
        margin-left: 0;
    }
}


/* V29 — Current institution replaces the former verified-student footer. */
.review-current-study { display: none !important; }

.review-current-study-footer {
    margin-left: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: #6e6040;
}

.review-current-study-footer > i {
    flex: 0 0 auto;
    color: #bd8e17;
    font-size: .7rem;
}

.review-current-study-footer > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .08rem;
}

.review-current-study-footer small {
    color: #8a7b59;
    font: 600 .48rem/1.15 "Poppins", sans-serif;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.review-current-study-footer strong {
    max-width: 190px;
    overflow: hidden;
    color: #344d6b;
    font: 600 .59rem/1.25 "Poppins", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .review-current-study-footer {
        margin-left: 0;
    }
    .review-current-study-footer strong {
        max-width: 210px;
    }
}


/* V57 refined scroll motion */
.scroll-motion{opacity:0;transform:translate3d(0,28px,0) scale(.985);filter:blur(3px);transition:opacity .7s cubic-bezier(.22,1,.36,1) var(--motion-delay,0ms),transform .75s cubic-bezier(.22,1,.36,1) var(--motion-delay,0ms),filter .65s ease var(--motion-delay,0ms);will-change:opacity,transform}
.scroll-motion.is-visible{opacity:1;transform:none;filter:none}
@media(prefers-reduced-motion:reduce){.scroll-motion{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}}


/* =========================================================
   BNA V98 — international production polish (non-destructive)
   ========================================================= */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(201,162,39,.62);outline-offset:3px;border-radius:8px}
:where(button,.btn,a[class*="btn"],summary){-webkit-tap-highlight-color:transparent}
:where(input,select,textarea){font:inherit}
:where(img){max-width:100%;height:auto}
:where(h1,h2,h3){text-wrap:balance}
:where(p){text-wrap:pretty}
::selection{background:rgba(201,162,39,.24)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* ============================================================
   BNA ORDER SUCCESS MODAL — V98 order-management patch
   ============================================================ */
.order-success-modal[hidden]{display:none!important}
.order-success-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:1rem}
.order-success-backdrop{position:absolute;inset:0;background:rgba(4,22,52,.68);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.order-success-dialog{position:relative;width:min(520px,94vw);overflow:hidden;text-align:center;padding:2.65rem 2rem 2rem;border:1px solid rgba(196,151,42,.30);border-radius:28px;background:radial-gradient(circle at 50% 0,rgba(214,171,61,.12),transparent 42%),linear-gradient(180deg,#fff,#fbfcff);box-shadow:0 34px 90px rgba(2,20,51,.35);animation:bnaOrderSuccessIn .3s ease both}
.order-success-dialog:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#8d6816,#d8b249,#8d6816)}
.order-success-close{position:absolute;right:14px;top:14px;width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(11,50,103,.10);border-radius:50%;background:#f4f7fb;color:#173d72;font-size:1rem;cursor:pointer;transition:.18s ease}
.order-success-close:hover{background:#eaf0f8;transform:rotate(3deg) scale(1.04)}
.order-success-icon{width:76px;height:76px;margin:0 auto 1.1rem;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#0b6b50,#075640);color:#fff;font-size:1.8rem;box-shadow:0 14px 34px rgba(7,86,64,.24)}
.order-success-kicker{display:block;margin-bottom:.55rem;color:#a27a1a;font:800 .69rem/1.3 Poppins,Arial,sans-serif;letter-spacing:.16em}
.order-success-dialog h2{margin:0;color:#092e68;font:400 clamp(1.75rem,5vw,2.35rem)/1.08 Alice,serif}
.order-success-dialog p{max-width:390px;margin:.85rem auto 1.35rem;color:#5f6f85;font:500 .92rem/1.7 Poppins,Arial,sans-serif}
.order-success-progress{height:4px;overflow:hidden;border-radius:99px;background:#e8edf4}
.order-success-progress span{display:block;width:100%;height:100%;transform-origin:left;background:linear-gradient(90deg,#0b3f86,#c69b2e);animation:bnaOrderSuccessTimer 5s linear forwards}
html.order-success-open,body.order-success-open{overflow:hidden}
@keyframes bnaOrderSuccessIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes bnaOrderSuccessTimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:520px){.order-success-dialog{padding:2.4rem 1.25rem 1.6rem;border-radius:24px}.order-success-icon{width:66px;height:66px;font-size:1.55rem}.order-success-dialog p{font-size:.86rem}}
@media(prefers-reduced-motion:reduce){.order-success-dialog,.order-success-progress span{animation:none}}
