/* ============================================
   BrainX Landing Page — Mobile-First Styles
   Uses design tokens from /css/revamp-base.css
   ============================================ */

/* --- Inline Logo (within headings) --- */
.bx-inline-logo {
    display: inline;
    height: 28px;
    vertical-align: middle;
    margin: 0 2px;
}

/* --- Hidden server control wrapper --- */
.bx-why-right-table {
    display: none;
}

/* =============================================
   HERO SECTION
   ============================================= */
.bx-hero {
    position: relative;
    overflow: hidden;
    background: var(--sc-navy);
}

.bx-hero-inner {
    position: relative;
    min-height: 360px;
    max-height: 560px;
    display: flex;
    align-items: flex-end;
}

.bx-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider (What section) */
.bx-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bx-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.bx-slider-slide.bx-slider-active {
    opacity: 1;
}

.bx-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay */
.bx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(2, 31, 105, 0.93) 0%,
        rgba(2, 31, 105, 0.7) 35%,
        rgba(2, 31, 105, 0.3) 65%,
        rgba(2, 31, 105, 0.1) 100%
    );
    z-index: 1;
}

/* Hero content (overlaid) */
.bx-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--sc-space-6) var(--sc-space-4) var(--sc-space-8);
    text-align: center;
    color: var(--sc-white);
}

.bx-hero-logo {
    height: 32px;
    margin: 0 auto var(--sc-space-3);
    display: block;
    filter: brightness(0) invert(1);
}

.bx-hero-heading {
    font-size: var(--sc-text-2xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--sc-space-2);
    color: var(--sc-white);
}

/* Override code-behind inline widths */
.bx-hero-heading[style] {
    width: auto !important;
    max-width: 100% !important;
}

.bx-hero-sub {
    font-size: var(--sc-text-base);
    opacity: 0.9;
    margin-bottom: var(--sc-space-4);
    color: var(--sc-white);
}

/* Override code-behind inline widths */
.bx-hero-sub[style] {
    width: auto !important;
    max-width: 100% !important;
}

/* Support the <red> custom tag from code-behind */
red {
    color: var(--sc-yellow);
    font-weight: 700;
}

.bx-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sc-space-2);
    margin-bottom: var(--sc-space-4);
}

.bx-hero-price {
    display: block;
    font-size: var(--sc-text-sm);
    opacity: 0.8;
    margin-top: var(--sc-space-3);
}

/* =============================================
   WHAT IS BRAINX — Feature Pills
   ============================================= */
.bx-what-section {
    background: var(--sc-bg-page);
}

.bx-features-scroll {
    display: flex;
    gap: var(--sc-space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sc-space-4);
    margin-bottom: var(--sc-space-8);
    /* Hide scrollbar but keep scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bx-features-scroll::-webkit-scrollbar {
    display: none;
}

.bx-feature-pill {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    scroll-snap-align: start;
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    padding: var(--sc-space-5) var(--sc-space-4);
    text-align: center;
    transition: all var(--sc-transition-base);
}

.bx-feature-pill:hover {
    border-color: var(--sc-blue-light);
    box-shadow: var(--sc-shadow-md);
    transform: translateY(-2px);
}

.bx-feature-pill i {
    font-size: 1.5rem;
    color: var(--sc-blue);
    display: block;
    margin-bottom: var(--sc-space-2);
}

.bx-feature-pill strong {
    display: block;
    font-size: var(--sc-text-sm);
    color: var(--sc-navy);
    margin-bottom: 2px;
}

.bx-feature-pill span {
    font-size: var(--sc-text-xs);
    color: var(--sc-text-muted);
}

/* Samples CTA */
.bx-what-cta {
    text-align: center;
    padding-top: var(--sc-space-4);
}

.bx-samples-img {
    max-width: 280px;
    margin: 0 auto var(--sc-space-4);
    border-radius: var(--sc-radius-md);
}

/* =============================================
   WHY BRAINX — Accordion / Card Grid
   ============================================= */
.bx-why-section {
    background: var(--sc-bg-section);
}

.bx-why-grid {
    display: flex;
    flex-direction: column;
    gap: var(--sc-space-3);
}

.bx-why-card {
    transition: all var(--sc-transition-base);
}

.bx-why-card:hover {
    transform: none;
    box-shadow: var(--sc-shadow-md);
}

.bx-why-card-header {
    display: flex;
    align-items: center;
    gap: var(--sc-space-3);
    width: 100%;
    padding: var(--sc-space-4) var(--sc-space-5);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--sc-text-primary);
}

.bx-why-card-header i:first-child {
    font-size: 1.2rem;
    color: var(--sc-blue);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.bx-why-card-header h3 {
    font-size: var(--sc-text-base);
    font-weight: 600;
    color: var(--sc-navy);
    margin: 0;
    flex: 1;
}

.bx-why-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--sc-text-muted);
    transition: transform var(--sc-transition-base);
    flex-shrink: 0;
}

.bx-why-card-open .bx-why-chevron {
    transform: rotate(180deg);
}

/* Accordion body — collapsed by default */
.bx-why-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--sc-transition-slow), padding var(--sc-transition-slow);
    padding: 0 var(--sc-space-5);
}

.bx-why-card-body p {
    font-size: var(--sc-text-sm);
    line-height: 1.6;
    color: var(--sc-text-secondary);
    margin: 0;
}

.bx-why-card-body a {
    color: var(--sc-blue);
    text-decoration: underline;
}

.bx-why-card-open .bx-why-card-body {
    max-height: 300px;
    padding: 0 var(--sc-space-5) var(--sc-space-5);
}

/* =============================================
   HOW IT WORKS — Stepper
   ============================================= */
.bx-how-section {
    background: var(--sc-bg-page);
}

.bx-stepper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
}

.bx-step {
    display: flex;
    gap: var(--sc-space-4);
    align-items: flex-start;
}

.bx-step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--sc-radius-full);
    background: var(--sc-navy);
    color: var(--sc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sc-text-lg);
    font-weight: 700;
    flex-shrink: 0;
}

.bx-step-content {
    flex: 1;
    padding-bottom: var(--sc-space-4);
}

.bx-step-img {
    width: 100%;
    max-width: 200px;
    border-radius: var(--sc-radius-md);
    margin-bottom: var(--sc-space-3);
}

.bx-step-content h3 {
    font-size: var(--sc-text-lg);
    color: var(--sc-navy);
    margin-bottom: var(--sc-space-2);
}

.bx-step-content p {
    font-size: var(--sc-text-sm);
    line-height: 1.6;
    color: var(--sc-text-secondary);
}

.bx-step-connector {
    width: 2px;
    height: 28px;
    background: var(--sc-gray-300);
    margin-left: 21px; /* center under 44px circle */
    flex-shrink: 0;
}

/* =============================================
   TESTIMONIALS — Swiper
   ============================================= */
.bx-testimonials-section {
    background: var(--sc-bg-section);
}

.bx-testimonial-swiper {
    padding-bottom: var(--sc-space-10);
}

.bx-testimonial-card {
    height: 100%;
}

.bx-testimonial-card:hover {
    transform: none;
}

.bx-testimonial-card .sc-card-body {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.bx-testimonial-stars {
    color: var(--sc-yellow);
    margin-bottom: var(--sc-space-3);
    font-size: 0.9rem;
}

.bx-testimonial-stars i {
    display: inline;
}

.bx-testimonial-text {
    font-size: var(--sc-text-sm);
    line-height: 1.7;
    color: var(--sc-text-secondary);
    flex: 1;
    margin-bottom: var(--sc-space-4);
    font-style: italic;
}

.bx-testimonial-author {
    font-size: var(--sc-text-xs);
    font-weight: 600;
    color: var(--sc-navy);
    border-top: 1px solid var(--sc-border);
    padding-top: var(--sc-space-3);
    margin-top: auto;
}

.bx-testimonial-pagination {
    text-align: center;
}

.bx-testimonial-pagination .swiper-pagination-bullet {
    background: var(--sc-gray-300);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.bx-testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--sc-blue);
}

/* =============================================
   TRUST BADGES
   ============================================= */
.bx-trust-section {
    background: var(--sc-bg-page);
    padding-top: var(--sc-space-8);
    padding-bottom: var(--sc-space-8);
}

.bx-trust-row {
    display: flex;
    flex-direction: column;
    gap: var(--sc-space-5);
    align-items: center;
}

.bx-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sc-space-1);
    padding: var(--sc-space-4);
}

.bx-trust-badge i {
    font-size: 1.8rem;
    color: var(--sc-blue);
    margin-bottom: var(--sc-space-2);
}

.bx-trust-badge strong {
    font-size: var(--sc-text-base);
    color: var(--sc-navy);
}

.bx-trust-badge span {
    font-size: var(--sc-text-xs);
    color: var(--sc-text-muted);
    max-width: 220px;
}

/* =============================================
   STICKY BOTTOM CTA (mobile only)
   ============================================= */
.bx-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--sc-z-sticky);
    padding: var(--sc-space-3) var(--sc-space-4);
    background: var(--sc-white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform var(--sc-transition-base);
}

.bx-sticky-cta.bx-sticky-visible {
    transform: translateY(0);
}

.bx-sticky-cta-btn {
    width: 100%;
}

/* =============================================
   TABLET — 768px+
   ============================================= */
@media (min-width: 768px) {
    .bx-hero-inner {
        min-height: 420px;
    }

    .bx-hero-logo {
        height: 38px;
    }

    .bx-hero-heading {
        font-size: var(--sc-text-3xl);
    }

    .bx-hero-sub {
        font-size: var(--sc-text-lg);
    }

    .bx-inline-logo {
        height: 32px;
    }

    /* Feature pills: 3-col grid */
    .bx-features-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }

    .bx-feature-pill {
        min-width: unset;
        max-width: unset;
    }

    /* Why grid: 2 columns */
    .bx-why-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sc-space-4);
    }

    /* Trust badges: row */
    .bx-trust-row {
        flex-direction: row;
        justify-content: center;
    }

    /* Stepper images bigger */
    .bx-step-img {
        max-width: 240px;
    }

    .bx-samples-img {
        max-width: 340px;
    }
}

/* =============================================
   DESKTOP — 1024px+
   ============================================= */
@media (min-width: 1024px) {
    .bx-hero-inner {
        min-height: 480px;
        max-height: 620px;
    }

    .bx-hero-content {
        padding: var(--sc-space-10) var(--sc-space-8) var(--sc-space-12);
    }

    .bx-hero-heading {
        font-size: var(--sc-text-4xl);
    }

    .bx-hero-logo {
        height: 42px;
    }

    .bx-inline-logo {
        height: 36px;
    }

    /* Feature pills: still 3-col but wider */
    .bx-features-scroll {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sc-space-5);
    }

    /* Why grid: 3 columns, always expanded */
    .bx-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sc-space-5);
    }

    .bx-why-card-body {
        max-height: none !important;
        overflow: visible;
        padding: 0 var(--sc-space-5) var(--sc-space-5) !important;
    }

    .bx-why-chevron {
        display: none;
    }

    .bx-why-card-header {
        cursor: default;
    }

    /* How stepper: horizontal */
    .bx-stepper {
        flex-direction: row;
        gap: 0;
        max-width: 100%;
        align-items: flex-start;
    }

    .bx-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }

    .bx-step-content {
        padding-bottom: 0;
    }

    .bx-step-img {
        max-width: 180px;
        margin: 0 auto var(--sc-space-3);
    }

    .bx-step-connector {
        display: none;
    }

    /* Show horizontal connector via pseudo-element on step number */
    .bx-step:not(:last-child) .bx-step-number::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        width: calc(100% - 44px);
        height: 2px;
        background: var(--sc-gray-300);
        transform: translateY(-50%);
    }

    .bx-step-number {
        position: relative;
        margin-bottom: var(--sc-space-4);
    }

    /* Hide sticky CTA on desktop */
    .bx-sticky-cta {
        display: none;
    }
}


/* =============================================
   =============================================
   SAMPLES PAGE STYLES
   =============================================
   ============================================= */

/* --- Samples Hero / Page Header --- */
.bx-samples-hero {
    background: linear-gradient(135deg, var(--sc-navy) 0%, var(--sc-blue) 100%);
    padding: var(--sc-space-8) var(--sc-space-4) var(--sc-space-6);
    text-align: center;
    color: var(--sc-white);
}

.bx-samples-hero-logo {
    height: 28px;
    display: inline;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    margin: 0 4px;
}

.bx-samples-hero h1 {
    font-size: var(--sc-text-2xl);
    color: var(--sc-white);
    margin-bottom: var(--sc-space-2);
    line-height: 1.3;
}

.bx-samples-hero h1 red {
    color: var(--sc-yellow);
}

.bx-samples-hero-sub {
    font-size: var(--sc-text-base);
    opacity: 0.9;
    color: var(--sc-white);
}

/* --- Main Content Layout --- */
.bx-samples-main {
    padding: var(--sc-space-6) var(--sc-space-4);
}

.bx-samples-heading-row {
    display: flex;
    align-items: center;
    gap: var(--sc-space-3);
    margin-bottom: var(--sc-space-5);
    flex-wrap: wrap;
}

.bx-samples-heading-row img {
    height: 30px;
    display: inline;
}

.bx-samples-heading-row .bx-samples-title {
    font-size: var(--sc-text-xl);
    font-weight: 700;
    color: var(--sc-navy);
}

/* =============================================
   GRADE NAVIGATION — Card Tab Design
   Code-behind generates: .grade-tab, .grade-tab--active
   Uses design system tokens throughout
   ============================================= */

.bx-samples-grades {
    margin-bottom: var(--sc-space-5);
}

.bx-samples-grades::before {
    content: "Choose Grade";
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sc-text-muted);
    margin-bottom: var(--sc-space-3);
}

/* Grade tabs container — horizontal scroll on mobile */
.grade-tabs {
    display: flex;
    gap: var(--sc-space-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--sc-space-1);
}

.grade-tabs::-webkit-scrollbar {
    display: none;
}

/* Individual grade tab — card with badge + name */
.grade-tab {
    display: flex;
    align-items: center;
    gap: var(--sc-space-2);
    padding: var(--sc-space-2) var(--sc-space-3);
    min-width: 100px;
    border-radius: var(--sc-radius-lg);
    border: 1.5px solid var(--sc-border);
    background: var(--sc-white);
    color: var(--sc-navy);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.grade-tab:hover {
    border-color: var(--sc-blue);
    box-shadow: var(--sc-shadow-sm);
    transform: translateY(-1px);
}

/* Number badge (K, 1, 2, 3...) */
.grade-tab__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--sc-radius-md);
    background: var(--sc-gray-100);
    color: var(--sc-navy);
    font-size: var(--sc-text-sm);
    font-weight: 800;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Grade name */
.grade-tab__name {
    font-size: var(--sc-text-xs);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}

/* Active state */
.grade-tab--active {
    background: var(--sc-navy);
    border-color: var(--sc-navy);
    color: var(--sc-white);
    box-shadow: 0 4px 12px rgba(2, 31, 105, 0.25);
}

.grade-tab--active .grade-tab__badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--sc-white);
}

.grade-tab--active:hover {
    transform: none;
    border-color: var(--sc-navy);
}


/* =============================================
   SHEET GRID — Responsive CSS Grid Cards
   Code-behind generates: .sheet-grid, .sheet-card
   No tables, no pagination
   ============================================= */

.bx-samples-grid-wrap {
    width: 100%;
}

/* Sheet count label */
.sheet-count {
    font-size: var(--sc-text-sm);
    color: var(--sc-text-muted);
    margin-bottom: var(--sc-space-3);
}

.sheet-count strong {
    color: var(--sc-navy);
    font-weight: 700;
}

/* CSS Grid — 2 columns on mobile */
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sc-space-3);
}

/* Individual sheet card */
.sheet-card {
    display: block;
    position: relative;
    background: var(--sc-white);
    border-radius: var(--sc-radius-lg);
    border: 1px solid var(--sc-border);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sheet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sc-shadow-lg);
    border-color: rgba(0, 114, 188, 0.3);
}

.sheet-card__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zoom overlay on hover */
.sheet-card__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 31, 105, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    color: var(--sc-white);
    font-size: 1.5rem;
}

.sheet-card:hover .sheet-card__zoom {
    opacity: 1;
}

/* --- Actions Area (Download, Buy) --- */
.bx-samples-actions {
    margin-top: var(--sc-space-5);
}

/* Style the asp:Button controls — code-behind sets class="button" */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sc-space-2);
    padding: var(--sc-space-3) var(--sc-space-6);
    font-size: var(--sc-text-base);
    font-weight: 600;
    border-radius: var(--sc-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--sc-transition-base);
    text-decoration: none;
    line-height: 1.4;
    min-height: 44px;
    background: var(--sc-blue);
    color: var(--sc-white);
    box-shadow: var(--sc-shadow-sm);
    width: 100%;
    text-align: center;
}

.button:hover {
    background: var(--sc-navy);
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-md);
}

.bx-samples-printed-link {
    display: block;
    margin-top: var(--sc-space-3);
    font-size: var(--sc-text-sm);
    color: var(--sc-blue);
    text-decoration: underline;
    cursor: pointer;
}

/* Wait div */
#waitDiv {
    min-width: unset !important;
    width: 100% !important;
    background: var(--sc-gray-200) !important;
    color: var(--sc-text-muted) !important;
}

/* --- Subscription Packages (hidden by default) --- */
.bx-samples-packages {
    margin-top: var(--sc-space-6);
}

.brainXOffers {
    background: var(--sc-gray-50);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    padding: var(--sc-space-5);
    text-align: center;
    width: 100% !important;
    position: relative;
}

.brainXOffers .offer {
    background: var(--sc-white);
    border-radius: var(--sc-radius-md);
    padding: var(--sc-space-4);
    margin: var(--sc-space-3) 0;
    border: 1px solid var(--sc-border);
}

.brainXOffers .price {
    color: var(--sc-navy);
    font-size: var(--sc-text-xl);
    font-weight: 700;
}

.brainXOffers .subtext {
    font-size: var(--sc-text-xs);
    color: var(--sc-text-muted);
    line-height: 1.4;
    margin-bottom: var(--sc-space-3);
}

.brainXOffers .buyButton {
    margin: 0;
    width: 100%;
}

/* --- Description Section --- */
.bx-samples-description {
    padding: var(--sc-space-6) 0;
    font-size: var(--sc-text-sm);
    line-height: 1.7;
    color: var(--sc-text-secondary);
}

.bx-samples-description b {
    color: var(--sc-blue);
}

.bx-samples-description a {
    color: var(--sc-blue);
    text-decoration: underline;
}

/* --- External Link --- */
.bx-samples-more-link {
    margin-bottom: var(--sc-space-6);
}

.bx-samples-more-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--sc-space-2);
    color: var(--sc-blue);
    font-size: var(--sc-text-sm);
    text-decoration: underline;
}

/* --- Unavailable Mask --- */
.unavailableMask {
    text-align: center;
    padding: var(--sc-space-8);
    color: var(--sc-text-muted);
    font-size: var(--sc-text-lg);
}

.unavailableMask div {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--sc-radius-lg);
    padding: var(--sc-space-8);
    color: var(--sc-white);
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
}

/* --- Email Notification Toast --- */
.bx-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--sc-z-modal);
    background: var(--sc-white);
    padding: var(--sc-space-8);
    border-radius: var(--sc-radius-lg);
    box-shadow: var(--sc-shadow-xl);
    border: 2px solid var(--sc-navy);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.bx-toast-close {
    position: absolute;
    top: var(--sc-space-3);
    right: var(--sc-space-3);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--sc-text-muted);
}

/* =============================================
   SAMPLES PAGE — Responsive (Tablet ≥ 768px)
   ============================================= */

@media (min-width: 768px) {

    /* Hero */
    .bx-samples-hero {
        padding: var(--sc-space-10) var(--sc-space-6) var(--sc-space-8);
    }

    .bx-samples-hero h1 {
        font-size: var(--sc-text-3xl);
    }

    .bx-samples-main {
        padding: var(--sc-space-8) var(--sc-space-6);
    }

    /* Side-by-side layout: grade sidebar + worksheet content */
    .bx-samples-browse {
        display: flex;
        gap: var(--sc-space-6);
        align-items: flex-start;
    }

    /* Grade sidebar — sticky card */
    .bx-samples-grades {
        flex-shrink: 0;
        width: 170px;
        margin-bottom: 0;
        background: var(--sc-white);
        border: 1px solid var(--sc-border);
        border-radius: var(--sc-radius-lg);
        padding: var(--sc-space-4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        position: sticky;
        top: 100px;
    }

    .bx-samples-grades::before {
        content: "Browse Grades";
    }

    /* Grade tabs — vertical stack on tablet+ */
    .grade-tabs {
        flex-direction: column;
        overflow-x: visible;
        gap: var(--sc-space-2);
    }

    /* Grade tab — full-width, left accent design */
    .grade-tab {
        min-width: unset;
        width: 100%;
        border-radius: var(--sc-radius-md);
        border-left: 3px solid transparent;
    }

    .grade-tab:hover {
        border-left-color: var(--sc-blue);
        transform: none;
        box-shadow: none;
        background: var(--sc-gray-50);
    }

    /* Active grade — navy with yellow accent */
    .grade-tab--active {
        background: var(--sc-navy);
        border-color: var(--sc-navy);
        border-left: 3px solid var(--sc-yellow);
        box-shadow: 0 2px 8px rgba(2, 31, 105, 0.2);
    }

    .grade-tab--active:hover {
        background: var(--sc-navy);
        border-left-color: var(--sc-yellow);
    }

    /* Content column */
    .bx-samples-content-col {
        flex: 1;
        min-width: 0;
    }

    /* Sheet grid — 3 columns on tablet */
    .sheet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sc-space-4);
    }

    /* Actions */
    .bx-samples-actions {
        max-width: 400px;
    }

    .button {
        width: auto;
        min-width: 280px;
    }

    .brainXOffers {
        max-width: 380px;
    }
}


/* =============================================
   SAMPLES PAGE — Responsive (Desktop ≥ 1024px)
   ============================================= */

@media (min-width: 1024px) {

    .bx-samples-hero h1 {
        font-size: var(--sc-text-4xl);
    }

    .bx-samples-hero-logo {
        height: 34px;
    }

    .bx-samples-main {
        max-width: var(--sc-container-max);
        margin: 0 auto;
        padding: var(--sc-space-10) var(--sc-space-8);
    }

    .bx-samples-grades {
        width: 180px;
    }

    /* Sheet grid — 4 columns on desktop */
    .sheet-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Larger badge on desktop */
    .grade-tab__badge {
        width: 36px;
        height: 36px;
        font-size: var(--sc-text-base);
    }

    .grade-tab__name {
        font-size: var(--sc-text-sm);
    }
}
