/* =============================================================
   HOME PAGE — Page-specific CSS
   ============================================================= */

/* ─── 1. HERO CAROUSEL ──────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
    /* Prevent layout shift while JS initialises */
    contain: layout style;
}

/* ─── Slide Track ─── */
.hero__track {
    display: flex;
    width: 100%;
    will-change: transform;
    touch-action: pan-y;
    /* Transition set/removed dynamically by JS */
}

/* ─── Each Slide ─── */
.hero__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    /* Fluid height: 560 px on a 1440-wide screen; clamp prevents extremes */
    height: clamp(520px, 56vw, 700px);
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* ─── Background image ─── */
.hero__slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Slide 1 gets fetchpriority="high" in HTML; others get "low" */
}

/* ─── Gradient overlay ──────────────────────────────────────────
   Desktop: dark-left → transparent-right (text on left, photo on right).
   Mobile: full bottom-up tint so text on top of a darker base is legible.
   Defined as custom properties so they can be tweaked per-slide if needed.
──────────────────────────────────────────────────────────────── */
.hero__slide-overlay {
    position: absolute;
    inset: 0;
    /* Desktop overlay */
    background:
        linear-gradient(
            100deg,
            rgb(4 28 75 / 92%)  0%,
            rgb(4 28 75 / 80%)  30%,
            rgb(4 28 75 / 30%)  62%,
            transparent         85%
        );
    pointer-events: none;
}

/* ─── Slide Content Area ────────────────────────────────────────
   Desktop: left half, vertically centred.
   The inline padding uses a CSS trick so text starts at the same
   horizontal position as the .container — regardless of viewport width.
──────────────────────────────────────────────────────────────── */
.hero__slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Align left edge with the global .container */
    padding-inline-start: max(1.5rem, calc((100vw - var(--container-width)) / 2 + 1.5rem));
    padding-inline-end: max(1.5rem, 52%); /* keep text in ~48% of slide */
    padding-block: 3rem 5rem; /* extra bottom padding so dots don't overlap */
}

/* ─── Eyebrow ─── */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--color-highlight);
    font-family: var(--font-condensed);
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Decorative line before eyebrow */
.hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--color-highlight);
    flex-shrink: 0;
}

/* ─── Heading ─── */
.hero__heading {
    margin: 0 0 1.1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.2vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero__highlight {
    color: var(--color-highlight);
    font-style: italic;
}

/* ─── Description ─── */
.hero__description {
    margin-bottom: 2rem;
    color: rgb(255 255 255 / 82%);
    font-size: clamp(0.88rem, 1.35vw, 1.05rem);
    line-height: 1.7;
    max-width: 42ch;
}

/* ─── CTA Group ─── */
.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

/* ─── Buttons ─── */
.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 2rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background     220ms ease,
        color          220ms ease,
        border-color   220ms ease,
        transform      220ms ease,
        box-shadow     220ms ease;
}

.hero__btn--primary {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    box-shadow: 0 4px 18px rgb(230 31 42 / 38%);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
    background: #c41523;
    border-color: #c41523;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgb(230 31 42 / 50%);
}

.hero__btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.hero__btn--outline:hover,
.hero__btn--outline:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero__btn svg {
    flex: 0 0 auto;
    transition: transform 220ms ease;
}

.hero__btn:hover svg,
.hero__btn:focus-visible svg {
    transform: translateX(4px);
}

/* ─── Arrow Controls ────────────────────────────────────────────
   Desktop: float left/right on the slide mid-point (via position:absolute).
   Mobile : hidden from the slide overlay entirely; shown as a separate
            row beneath the slide so they never overlap the content text.
──────────────────────────────────────────────────────────────── */
.hero__controls {
    /* Desktop absolute positioning on the slide */
    position: absolute;
    /* vertically centred on the photo, NOT the whole hero */
    top: 50%;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    padding-inline: clamp(0.75rem, 2vw, 1.5rem);
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__arrow {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    pointer-events: all;
    transition:
        background    220ms ease,
        border-color  220ms ease,
        transform     220ms ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    border-color: #fff;
    transform: scale(1.1);
}

.hero__arrow svg {
    display: block;
    flex-shrink: 0;
}

/* ─── Dot Indicators ─── */
.hero__indicators {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    z-index: 6;
    display: flex;
    gap: 0.6rem;
    transform: translateX(-50%);
}

.hero__dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition:
        background   220ms ease,
        transform    220ms ease,
        width        300ms ease;
}

/* Active dot becomes a pill/capsule shape */
.hero__dot.is-active {
    width: 1.75rem;
    border-radius: 1rem;
    background: #fff;
}

.hero__dot:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* ─── Slide-in animation for text ─── */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__slide[aria-hidden="false"] .hero__eyebrow {
    animation: heroSlideUp 0.5s 0.05s both ease-out;
}

.hero__slide[aria-hidden="false"] .hero__heading {
    animation: heroSlideUp 0.55s 0.15s both ease-out;
}

.hero__slide[aria-hidden="false"] .hero__description {
    animation: heroSlideUp 0.55s 0.25s both ease-out;
}

.hero__slide[aria-hidden="false"] .hero__cta-group {
    animation: heroSlideUp 0.55s 0.35s both ease-out;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* ── Tablet (≤ 960px) ── */
@media (max-width: 960px) {
    .hero__slide {
        height: clamp(480px, 72vw, 600px);
    }

    .hero__slide-content {
        padding-inline-end: max(1.5rem, 38%);
    }

    .hero__slide-overlay {
        background: linear-gradient(
            100deg,
            rgb(4 28 75 / 94%)  0%,
            rgb(4 28 75 / 84%)  40%,
            rgb(4 28 75 / 35%)  70%,
            transparent         90%
        );
    }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────────
   Key change: arrows move OUT of the slide into a dedicated row
   below the slide so they can NEVER overlap the slide text.
────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero {
        /* Give space for the control row beneath the slide */
        padding-bottom: 0;
    }

    .hero__slide {
        height: clamp(430px, 125vw, 560px);
    }

    /* Full-coverage overlay on mobile — text is top-aligned */
    .hero__slide-overlay {
        background:
            linear-gradient(
                to bottom,
                rgb(4 28 75 / 86%)  0%,
                rgb(4 28 75 / 76%)  50%,
                rgb(4 28 75 / 66%)  100%
            );
    }

    .hero__slide-content {
        /* Full width, top aligned */
        justify-content: flex-start;
        padding-inline-start: 1.25rem;
        padding-inline-end: 1.25rem;
        padding-block: 2.25rem 4.5rem;
    }

    .hero__eyebrow {
        margin-bottom: 0.65rem;
        font-size: 0.72rem;
    }

    .hero__heading {
        font-size: clamp(1.65rem, 7.6vw, 2.3rem);
        margin-bottom: 0.85rem;
        line-height: 1.14;
        max-width: 18ch;
    }

    .hero__description {
        font-size: 0.88rem;
        max-width: 34ch;
        line-height: 1.55;
        margin-bottom: 1.35rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero__cta-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .hero__btn {
        width: auto;
        max-width: 100%;
        min-height: 2.6rem;
        padding: 0.55rem 1.15rem;
        font-size: 0.76rem;
        box-sizing: border-box;
        border-radius: 999px;
    }

    @media (max-width: 380px) {
        .hero__cta-group {
            gap: 0.5rem;
        }

        .hero__btn {
            padding: 0.48rem 0.9rem;
            font-size: 0.72rem;
            gap: 0.35rem;
        }
    }

    /* ── Hide in-slide arrows on mobile ── */
    .hero__controls {
        display: none;
    }

    /* ── Mobile control bar beneath the slide ── */
    .hero__mobile-controls {
        display: flex !important; /* overrides the desktop display:none */
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.25rem;
        background: var(--color-primary-dark);
    }

    /* Indicators sit in the middle of the mobile bar */
    .hero__indicators {
        /* Reset absolute positioning — now inline in the flex row */
        position: static;
        transform: none;
        bottom: auto;
        left: auto;
    }

    .hero__dot.is-active {
        width: 1.4rem;
    }

    /* Mobile arrow buttons (inside mobile-controls bar) */
    .hero__mobile-arrow {
        display: grid;
        width: 2.6rem;
        height: 2.6rem;
        place-items: center;
        border: 2px solid rgba(255, 255, 255, 0.55);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
        transition: background 200ms ease, border-color 200ms ease;
    }

    .hero__mobile-arrow:hover,
    .hero__mobile-arrow:focus-visible {
        background: rgba(255, 255, 255, 0.22);
        border-color: #fff;
    }
}

/* ── Desktop: hide the mobile control bar ── */
.hero__mobile-controls {
    display: none;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .hero__track {
        transition: none !important;
    }

    .hero__btn,
    .hero__arrow,
    .hero__mobile-arrow,
    .hero__dot {
        transition: none !important;
    }

    .hero__slide[aria-hidden="false"] .hero__eyebrow,
    .hero__slide[aria-hidden="false"] .hero__heading,
    .hero__slide[aria-hidden="false"] .hero__description,
    .hero__slide[aria-hidden="false"] .hero__cta-group {
        animation: none !important;
    }
}

/* =============================================================
   SHARED SECTION HELPERS
   Reusable across sections 2, 3 and beyond
   ============================================================= */

.section-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    margin: 0 0 0.9rem;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-heading--accented {
    padding-bottom: 0.9rem;
    position: relative;
}

.section-heading--accented::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.75rem;
    height: 3px;
    border-radius: 2px;
    background: var(--color-secondary);
}

/* Shared READ MORE / CTA button */
.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.4rem;
    border-radius: 2rem;
    background: var(--color-primary-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.section-btn:hover,
.section-btn:focus-visible {
    background: var(--color-secondary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgb(230 31 42 / 32%);
}

.section-btn svg {
    flex-shrink: 0;
    transition: transform 220ms ease;
}

.section-btn:hover svg,
.section-btn:focus-visible svg {
    transform: translateX(3px);
}


/* =============================================================
   2. VALUES STRIP
   ============================================================= */

.values {
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* ── Single value card ── */
.value-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    border: 1.5px solid var(--color-border);
    border-top: 3px solid var(--card-accent, var(--color-primary));
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color  240ms ease,
        box-shadow    240ms ease,
        transform     240ms ease;
}

.value-card:hover,
.value-card:focus-visible {
    border-color: var(--card-accent, var(--color-primary));
    box-shadow: 0 8px 30px rgb(0 0 0 / 11%);
    transform: translateY(-5px);
    text-decoration: none;
}

/* Per-card accent colours */
.value-card--learning   { --card-accent: #0b2475; --card-icon-bg: #e8edf8; --card-text: #0b2475; }
.value-card--creativity { --card-accent: #7b2d8b; --card-icon-bg: #f5e8fa; --card-text: #7b2d8b; }
.value-card--discovery  { --card-accent: #92400e; --card-icon-bg: #fef4e2; --card-text: #92400e; }
.value-card--diversity  { --card-accent: #166534; --card-icon-bg: #dcf5e8; --card-text: #166534; }
.value-card--innovation { --card-accent: #b45309; --card-icon-bg: #fff8e1; --card-text: #b45309; }

/* Card inner — icon + text row */
.value-card__body {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
}

/* Circular icon badge */
.value-card__icon-wrap {
    flex-shrink: 0;
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: var(--card-icon-bg);
    place-items: center;
    transition: transform 240ms ease;
}

.value-card:hover .value-card__icon-wrap,
.value-card:focus-visible .value-card__icon-wrap {
    transform: scale(1.12) rotate(-5deg);
}

.value-card__icon-wrap svg {
    width: 1.55rem;
    height: 1.55rem;
    color: var(--card-accent);
}

.value-card__text { flex: 1; min-width: 0; }

.value-card__title {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--card-text);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.value-card__desc {
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

/* Arrow at bottom-right */
.value-card__arrow {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    margin-top: 1rem;
    margin-left: auto;
    border: 1.5px solid var(--card-accent);
    border-radius: 50%;
    place-items: center;
    color: var(--card-accent);
    transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.value-card:hover .value-card__arrow,
.value-card:focus-visible .value-card__arrow {
    background: var(--card-accent);
    color: #fff;
    transform: translateX(3px);
}

.value-card__arrow svg { width: 0.9rem; height: 0.9rem; }

/* Responsive */
@media (max-width: 1120px) {
    .values__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .values__grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

@media (max-width: 540px) {
    .values__grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .value-card { padding: 1rem 0.85rem; }
}


/* =============================================================
   3. MISSION + ABOUT US
   ============================================================= */

.mission-about {
    padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
    background: var(--color-surface);
}

/* Two content columns + a 1px vertical divider */
.mission-about__grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 clamp(2.5rem, 4vw, 4.5rem);
    align-items: start;
}

.mission-about__divider {
    align-self: stretch;
    background: var(--color-border);
}

/* ── Mission (left) ── */
.mission-col {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.75rem;
    row-gap: 0;
    align-items: start;
}

/* Large icon block spans multiple rows on the left */
.mission-col__icon-wrap {
    grid-row: 1 / 5;
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
    place-items: center;
}

.mission-col__icon-wrap svg {
    width: 3.25rem;
    height: 3.25rem;
}

.mission-col .section-eyebrow  { grid-column: 2; margin-top: 0.15rem; }
.mission-col .section-heading  { grid-column: 2; }
.mission-col__text             { grid-column: 2; margin-bottom: 0; }
.mission-col .section-btn      { grid-column: 2; margin-top: 1.5rem; }

.mission-col__text {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ── About (right) ── */
.about-col { display: flex; flex-direction: column; }

.about-col__text {
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Photo */
.about-col__img-wrap {
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.about-col__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 550ms ease;
}

.about-col__img-wrap:hover img {
    transform: scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
    .mission-about__grid {
        grid-template-columns: 1fr;
        gap: 3rem 0;
    }

    .mission-about__divider { display: none; }
}

@media (max-width: 520px) {
    .mission-col {
        grid-template-columns: 1fr;
    }

    .mission-col__icon-wrap {
        grid-row: auto;
        width: 4.75rem;
        height: 4.75rem;
        margin-bottom: 1.1rem;
    }

    .mission-col .section-eyebrow,
    .mission-col .section-heading,
    .mission-col__text,
    .mission-col .section-btn {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .value-card,
    .value-card__icon-wrap,
    .value-card__arrow,
    .section-btn,
    .about-col__img-wrap img {
        transition: none !important;
    }
}


/* =============================================================
   4. OBJECTIVES SECTION
   Left panel: intro text + crest watermark + VIEW MORE button
   Right panel: 3-card sliding carousel (objectives cards)
   ============================================================= */

.objectives {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    background: var(--color-surface);
    overflow: hidden;
}

/* Two-column grid: left intro | right carousel */
.objectives__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0 clamp(2.5rem, 4vw, 5rem);
    align-items: start;
    min-width: 0;
}

/* ── Left panel ── */
.objectives__intro {
    position: relative;
    padding-top: 0.25rem;
    min-width: 0;
}

/* Faint NBA crest watermark behind the text */
.objectives__watermark {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 10rem;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
}

.objectives__intro .section-heading {
    margin-bottom: 1.25rem;
}

.objectives__intro-text {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 30ch;
}

/* ── Right panel — carousel ── */
.objectives__carousel-col {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.objectives__top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.objectives__arrows {
    display: inline-flex;
    gap: 0.5rem;
}

.objectives__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-primary);
    background: #ffffff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 36, 117, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.objectives__arrow:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 36, 117, 0.2);
}

.objectives__arrow svg {
    width: 16px;
    height: 16px;
}

.objectives__carousel-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.objectives__track {
    display: flex;
    gap: 1.25rem;
    will-change: transform;
    touch-action: pan-y;
    width: max-content;
}

/* Objective card */
.obj-card {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    box-sizing: border-box;
    transition: box-shadow 240ms ease, transform 240ms ease;
}

.obj-card:hover {
    box-shadow: 0 8px 28px rgb(0 0 0 / 10%);
    transform: translateY(-4px);
}

/* Portrait photo at top */
.obj-card__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.obj-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating circular icon badge over photo bottom edge */
.obj-card__icon-badge {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    place-items: center;
    background: var(--badge-bg, var(--color-primary));
    border: 3px solid var(--color-surface);
    z-index: 2;
}

.obj-card__icon-badge svg {
    width: 1.3rem;
    height: 1.3rem;
    color: #fff;
}

/* Card body */
.obj-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 1.25rem 1.5rem;
    text-align: center;
    border-top: 3px solid var(--card-border, var(--color-primary));
}

.obj-card__title {
    margin-bottom: 0.6rem;
    color: var(--card-title-color, var(--color-primary));
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.obj-card__desc {
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* Short red accent bar beneath description */
.obj-card__divider {
    width: 2rem;
    height: 2px;
    background: var(--color-secondary);
    margin: 0 auto 1.1rem;
}

.obj-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--card-title-color, var(--color-primary));
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap 220ms ease;
}

.obj-card__link:hover,
.obj-card__link:focus-visible {
    text-decoration: none;
    gap: 0.7rem;
}

.obj-card__link svg { flex-shrink: 0; }

/* Per-card colour variants */
.obj-card--navy  { --badge-bg: #0b2475; --card-border: #0b2475; --card-title-color: #0b2475; }
.obj-card--purple { --badge-bg: #7b2d8b; --card-border: #7b2d8b; --card-title-color: #7b2d8b; }
.obj-card--green { --badge-bg: #166534; --card-border: #166534; --card-title-color: #166534; }

/* Dot indicators for objectives carousel */
.objectives__dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.objectives__dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--color-border);
    cursor: pointer;
    transition: background 220ms ease, transform 220ms ease;
}

.objectives__dot.is-active {
    background: var(--color-primary);
    transform: scale(1.25);
}

/* Responsive */
@media (max-width: 1000px) {
    .objectives__grid {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }

    .objectives__intro-text { max-width: 100%; }

    .obj-card {
        flex: 0 0 calc(50% - 0.65rem);
        width: calc(50% - 0.65rem);
    }
}

@media (max-width: 680px) {
    .objectives__carousel-col {
        overflow: visible;
        width: 100%;
    }

    .objectives__carousel-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-block: 0.35rem 0.85rem;
        padding-inline: 4px;
        scroll-behavior: smooth;
    }

    .objectives__carousel-wrap::-webkit-scrollbar {
        display: none;
    }

    .objectives__track {
        display: flex;
        gap: 1rem;
        width: max-content;
        transform: none !important;
        transition: none !important;
        touch-action: pan-x pan-y;
    }

    .obj-card {
        flex: 0 0 255px;
        width: 255px;
        max-width: 76vw;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .obj-card__photo {
        aspect-ratio: 16 / 10;
        max-height: 160px;
    }

    .obj-card__body {
        padding: 1.85rem 1rem 1.25rem;
    }

    .obj-card__title {
        font-size: 1rem;
    }

    .obj-card__desc {
        font-size: 0.82rem;
        line-height: 1.6;
    }
}


/* =============================================================
   5. OUR CURRICULUM
   Centred heading block + 3 horizontal stage cards
   ============================================================= */

.curriculum {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    background: var(--color-surface-soft);
    /* Subtle dot-grid texture */
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Section header (centred) ── */
.curriculum__header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.curriculum__header .section-eyebrow { margin-bottom: 0.6rem; }

.curriculum__header .section-heading {
    margin-bottom: 0.85rem;
}

/* Centred red accent bar (different from left-aligned accented variant) */
.curriculum__header .section-heading::after {
    display: none; /* override the left-aligned pseudo element */
}

.curriculum__underline {
    width: 3rem;
    height: 3px;
    border-radius: 2px;
    background: var(--color-secondary);
    margin: 0 auto 1rem;
}

.curriculum__intro {
    max-width: 58ch;
    margin-inline: auto;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ── Curriculum cards grid ── */
.curriculum__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Single curriculum stage card */
.curr-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
    transition: box-shadow 240ms ease, transform 240ms ease;
}

.curr-card:hover {
    box-shadow: 0 8px 30px rgb(0 0 0 / 10%);
    transform: translateY(-4px);
}

/* Photo strip */
.curr-card__photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.curr-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 500ms ease;
}

.curr-card:hover .curr-card__photo img {
    transform: scale(1.05);
}

/* Card body */
.curr-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 1.25rem;
}

/* Icon + heading row */
.curr-card__heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.curr-card__icon {
    flex-shrink: 0;
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    background: var(--stage-icon-bg);
    place-items: center;
}

.curr-card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--stage-color);
}

.curr-card__stage-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--stage-color);
    line-height: 1.2;
}

.curr-card__desc {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

/* Year group bullet list */
.curr-card__years {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.curr-card__years li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.curr-card__years li::before {
    content: '';
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--stage-color);
    flex-shrink: 0;
}

/* Per-stage colour tokens */
.curr-card--eyfs   { --stage-color: #0b2475; --stage-icon-bg: #e8edf8; }
.curr-card--lower  { --stage-color: #7b2d8b; --stage-icon-bg: #f5e8fa; }
.curr-card--upper  { --stage-color: #166534; --stage-icon-bg: #dcf5e8; }

/* Centred CTA below cards */
.curriculum__cta {
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .curriculum__cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .obj-card,
    .curr-card,
    .curr-card__photo img,
    .objectives__dot {
        transition: none !important;
    }
}


/* ===================================================================
   6. CO-CURRICULUM
   =================================================================== */

.cocurr {
    padding-block: var(--space-section);
    background: var(--color-surface-soft);
    position: relative;
    overflow: hidden;
}

/* faint decorative backdrop dots */
.cocurr::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #c9d4e8 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
}

/* --- Header -------------------------------------------------------- */
.cocurr__header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    position: relative;
}

.cocurr__intro {
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.75;
    margin-top: 1rem;
}

/* --- 6-column grid ------------------------------------------------- */
.cocurr__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    position: relative;
}

/* --- Individual Card ----------------------------------------------- */
.cocurr-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--cc-color, var(--color-primary));
    padding: 1.75rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.cocurr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

/* Icon badge */
.cocurr-card__icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--cc-icon-bg, #e8edf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    color: var(--cc-color, var(--color-primary));
    transition: transform 0.3s ease;
}

.cocurr-card:hover .cocurr-card__icon-wrap {
    transform: rotate(10deg) scale(1.1);
}

.cocurr-card__icon-wrap svg {
    width: 26px;
    height: 26px;
}

/* Title */
.cocurr-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--cc-color, var(--color-primary));
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Red accent underline bar */
.cocurr-card__accent-bar {
    display: block;
    width: 36px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

/* Description */
.cocurr-card__desc {
    font-size: clamp(0.82rem, 1.2vw, 0.9rem);
    color: var(--color-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* Read More button */
.cocurr-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: var(--cc-color, var(--color-primary));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: auto;
    white-space: nowrap;
}

.cocurr-card__btn:hover {
    opacity: 0.88;
    transform: translateX(2px);
}

/* --- Per-card colour tokens --------------------------------------- */
.cocurr-card--chess    { --cc-color: #0b2475; --cc-icon-bg: #e8edf8; }
.cocurr-card--scrabble { --cc-color: #7b2d8b; --cc-icon-bg: #f5e8fa; }
.cocurr-card--painting { --cc-color: #92400e; --cc-icon-bg: #fdf3e8; }
.cocurr-card--robotics { --cc-color: #e61f2a; --cc-icon-bg: #fde8ea; }
.cocurr-card--debate   { --cc-color: #166534; --cc-icon-bg: #e8f5ee; }
.cocurr-card--quiz     { --cc-color: #b45309; --cc-icon-bg: #fef3e2; }

/* --- Bottom CTA --------------------------------------------------- */
.cocurr__cta {
    text-align: center;
    margin-top: clamp(2rem, 3.5vw, 3rem);
    position: relative;
}

/* --- Responsive --------------------------------------------------- */
@media (max-width: 1200px) {
    .cocurr__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cocurr__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cocurr__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cocurr-card,
    .cocurr-card__icon-wrap {
        transition: none !important;
    }
}


/* ===================================================================
   7. BIRTHDAY CELEBRANTS
   =================================================================== */

.bday {
    padding-block: var(--space-section);
    background: #fff9f0;   /* warm cream */
    position: relative;
    overflow: hidden;
}

/* --- Decorative confetti blobs ----------------------------------- */
.bday__banner {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bday__blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    animation: bday-float 6s ease-in-out infinite;
}

.bday__blob--1 { width: 120px; height: 120px; background: #e61f2a; top:  -30px; left:  5%;  animation-delay: 0s;   animation-duration: 7s; }
.bday__blob--2 { width:  80px; height:  80px; background: #f4b91f; top:  20%;   left: 15%;  animation-delay: 1s;   animation-duration: 9s; }
.bday__blob--3 { width: 100px; height: 100px; background: #0b2475; top:  -20px; right: 10%; animation-delay: 0.5s; animation-duration: 8s; }
.bday__blob--4 { width:  60px; height:  60px; background: #f4b91f; bottom: 10%; right: 5%;  animation-delay: 2s;   animation-duration: 6s; }
.bday__blob--5 { width:  90px; height:  90px; background: #e61f2a; bottom: 5%;  left: 40%;  animation-delay: 1.5s; animation-duration: 10s;}
.bday__blob--6 { width:  50px; height:  50px; background: #166534; top:   60%;  left: 75%;  animation-delay: 3s;   animation-duration: 7s; }

@keyframes bday-float {
    0%, 100% { transform: translateY(0)   scale(1); }
    50%       { transform: translateY(-20px) scale(1.06); }
}

/* --- Inner container -------------------------------------------- */
.bday__inner {
    position: relative;
    z-index: 1;
}

/* --- Header ----------------------------------------------------- */
.bday__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.bday__cake-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.bday__cake-icon svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 12px rgba(230, 31, 42, 0.22));
}

.bday__intro {
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.75;
    margin-top: 1rem;
}

/* --- Month pill ------------------------------------------------- */
.bday__month-label {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bday__month-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
}

/* --- Celebrant Grid --------------------------------------------- */
.bday__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* --- Individual Card -------------------------------------------- */
.bday-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(230, 31, 42, 0.12);
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.bday-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(230, 31, 42, 0.14);
}

/* Circular avatar */
.bday-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.bday-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--color-secondary);
    display: block;
}

/* Cake badge on avatar */
.bday-card__badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    line-height: 1;
}

/* Card text */
.bday-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bday-card__class {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bday-card__wish {
    font-size: 0.82rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* --- Warm message footer strip ---------------------------------- */
.bday__footer-strip {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3899 100%);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bday__footer-text {
    color: #fff;
    text-align: center;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.bday__footer-text strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-highlight);
}

.bday__footer-text span {
    opacity: 0.9;
}

/* --- Responsive ------------------------------------------------- */
@media (max-width: 1200px) {
    .bday__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bday__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bday__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .bday-card__avatar {
        width: 76px;
        height: 76px;
    }

    .bday__footer-strip {
        padding: 1rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bday__blob  { animation: none !important; }
    .bday-card   { transition: none !important; }
}


/* ===================================================================
   8. TESTIMONIES FROM PARENTS  +  9. NEWSLETTER
   =================================================================== */

/* --- Outer section wrapper --------------------------------------- */
.testi-news {
    padding-block: var(--space-section);
    background: var(--color-surface);
}

/* Side-by-side: 2/3 testimonials | 1/3 newsletter */
.testi-news__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* ─────────────────────────────────────────────────────────────────
   8. TESTIMONIALS
   ───────────────────────────────────────────────────────────────── */
.testi {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Header row: heading-block on left, arrows on right */
.testi__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.testi__head-info {
    flex: 1;
    min-width: 260px;
}

.testi__subtext {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.65;
    max-width: 54ch;
}

/* Arrow buttons */
.testi__arrows {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    padding-bottom: 0.25rem;
}

.testi__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(11, 36, 117, 0.2);
    background: #ffffff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.testi__arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 36, 117, 0.2);
}

.testi__arrow svg {
    width: 20px;
    height: 20px;
}

/* Viewport (clipping area) */
.testi__viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
    width: 100%;
    min-width: 0;
}

/* Flex track — JS translates this */
.testi__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    touch-action: pan-y;
}

/* ─── Individual testimonial card ─── */
.testi-card {
    min-width: 100%;
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    border: 1.5px solid rgba(11, 36, 117, 0.09);
    border-top: 4px solid var(--color-secondary);
    box-shadow: 0 10px 30px rgba(11, 36, 117, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

/* Top bar inside card: Stars + Verified Badge */
.testi-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Stars row */
.testi-card__stars {
    display: flex;
    gap: 0.25rem;
    color: #f4b91f;
}

/* Verified parent pill badge */
.testi-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    background: rgba(22, 101, 52, 0.08);
    color: #166534;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Quote text */
.testi-card__text {
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    line-height: 1.8;
    color: #243048;
    font-style: italic;
    margin: 0;
    position: relative;
}

/* Divider */
.testi-card__rule {
    border: none;
    border-top: 1px solid rgba(11, 36, 117, 0.08);
    margin: 0;
}

/* Author row */
.testi-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-card__avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-highlight));
    flex-shrink: 0;
}

.testi-card__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: #fff;
    display: block;
}

.testi-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testi-card__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.testi-card__role {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Dot indicators */
.testi__dots {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
    align-items: center;
}

.testi__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 36, 117, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

.testi__dot--active,
.testi__dot:hover {
    background: var(--color-primary);
    width: 24px;
    border-radius: 10px;
}


/* ─────────────────────────────────────────────────────────────────
   9. NEWSLETTER SIDEBAR CARD
   ───────────────────────────────────────────────────────────────── */
.newsletter {
    background: var(--color-footer, #05245e);
    border-radius: var(--radius-md);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* faint dot pattern on navy card */
.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

/* Paper plane icon circle */
.newsletter__icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.newsletter__icon-wrap svg {
    width: 28px;
    height: 28px;
}

.newsletter__eyebrow {
    color: var(--color-highlight) !important;
    position: relative;
    z-index: 1;
}

.newsletter__heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
    position: relative;
    z-index: 1;
}

.newsletter__accent-bar {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.newsletter__sub {
    color: rgba(255,255,255,0.8);
    font-size: clamp(0.88rem, 1.3vw, 0.98rem);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Form */
.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.newsletter__field-wrap {
    position: relative;
}

.newsletter__input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s ease;
    box-sizing: border-box;
}

.newsletter__input:focus {
    outline-color: var(--color-highlight);
}

.newsletter__input.is-invalid {
    outline-color: #ef4444;
    background: #fff5f5;
}

.newsletter__status {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.3s ease;
}

.newsletter__status.is-success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.newsletter__status.is-error {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.newsletter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.newsletter__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Benefits list */
.newsletter__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.newsletter__benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.newsletter__benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-highlight);
}

.newsletter__benefit-icon svg {
    width: 17px;
    height: 17px;
}

.newsletter__benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.newsletter__benefit-text strong {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.newsletter__benefit-text span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* --- Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
    .testi-news__inner {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }
}

@media (max-width: 800px) {
    .testi-news__inner {
        grid-template-columns: 1fr;
    }

    .newsletter {
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .testi__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .testi__arrows {
        padding-top: 0;
        align-self: flex-start;
    }

    .testi-card {
        padding: 1.35rem 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testi__track,
    .testi__dot,
    .testi__arrow,
    .newsletter__btn {
        transition: none !important;
    }
}
