/* ============================================================
   AmeriDuo — Modern Design System (v2)
   ============================================================
   Mobile-first. Base rules target the smallest viewport (320px+);
   wider screens add capability via min-width media queries.

   Breakpoints (semantic):
     --bp-sm:  480px   small phones+ / large phones
     --bp-md:  768px   tablet portrait+
     --bp-lg: 1024px   tablet landscape / small desktop+
     --bp-xl: 1280px   standard desktop+

   Conventions:
     - Layout uses CSS grid + auto-fit/minmax where the design allows
     - Typography is fluid via clamp(); breakpoints are reserved for
       layout shifts (column count, hero stack→side-by-side, etc.)
     - Spacing scales with viewport via clamp() to keep proportions
       balanced across phone, tablet, and desktop

   Class prefix: .ad2-  to avoid collisions with legacy v1 styles
   (which still serve the downloads/registration backend pages —
   preserved further down in this file).
   ============================================================ */

/* ----------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------- */
:root {
    /* Legacy v1 palette — kept for downloads/registration pages */
    --primary-color:   #2563eb;
    --secondary-color: #1e40af;
    --accent-color:    #3b82f6;
    --success-color:   #10b981;
    --text-dark:       #1f2937;
    --text-light:      #6b7280;
    --bg-light:        #f9fafb;
    --border-color:    #e5e7eb;

    /* v2 palette — calm, restrained, brand-coded */
    --navy:            #0b1f3a;
    --navy-soft:       #142a4a;
    --blue-cta:        #2563eb;
    --ai-cyan:         #06b6d4;
    --ai-cyan-soft:    #ecfeff;
    --robotics-orange: #f97316;
    --robotics-soft:   #fff7ed;

    /* Ink scale */
    --ink:             #0f172a;
    --ink-2:           #475569;
    --ink-3:           #94a3b8;

    /* Surfaces */
    --line:            #eef2f7;
    --line-strong:     #e2e8f0;
    --surface:         #ffffff;
    --surface-2:       #f1f5f9;
    --surface-3:       #f1f5f9;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Spacing scale (fixed-rung) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-10: 80px;
    --sp-12: 96px;

    /* Fluid spacing — used at the section/container level */
    --gutter:        clamp(16px, 4vw, 32px);
    --section-y:     clamp(48px, 7vw, 112px);
    --section-y-tight: clamp(32px, 4.5vw, 72px);

    /* Shadows — almost imperceptible by default; lift only when needed */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

    /* Fluid type — every heading scales smoothly between mobile and desktop */
    --fs-display: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);   /* 30 → 48 */
    --fs-h2:      clamp(1.5rem,   1.2rem + 1.4vw, 2.125rem); /* 24 → 34 */
    --fs-h3:      clamp(1.125rem, 1rem   + 0.6vw, 1.4rem);   /* 18 → 22 */
    --fs-lead:    clamp(1.02rem,  0.95rem + 0.3vw, 1.18rem); /* 16 → 19 */
    --fs-body:    1rem;                                      /* 16 (WCAG min) */
    --fs-small:   0.92rem;

    /* Status colors — single source of truth for success/error/warning. */
    --success:        #16a34a;
    --success-soft:   #ecfdf5;
    --success-text:   #166534;
    --error:          #dc2626;
    --error-soft:     #fef2f2;
    --error-text:     #b91c1c;
    --warning:        #d97706;
    --warning-soft:   #fef3c7;

    /* Container widths — narrow/medium/wide variants of the default container. */
    --container-narrow: 880px;
    --container-medium: 980px;
    --container-wide:   1080px;

    /* Focus ring — single source of truth for keyboard a11y. */
    --focus-ring:    0 0 0 3px rgba(6, 182, 212, 0.35);
    --focus-outline: 2px solid var(--ai-cyan);
}

/* Global keyboard-only focus policy.
   :focus-visible is opt-in for users navigating by keyboard so mouse users
   don't see distracting outlines on click. */
.ad2-body :focus { outline: none; }
.ad2-body a:focus-visible,
.ad2-body button:focus-visible,
.ad2-body summary:focus-visible,
.ad2-body [tabindex]:focus-visible,
.ad2-btn:focus-visible,
.ad2-card a:focus-visible,
.ad2-faq summary:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}
.ad2-body input:focus-visible,
.ad2-body select:focus-visible,
.ad2-body textarea:focus-visible {
    outline: none;
    border-color: var(--ai-cyan);
    box-shadow: var(--focus-ring);
}

/* ----------------------------------------------------------------
   2. Reset / base document
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Body styles target only v2 pages (which set class="ad2-body") so
   legacy backend pages keep their existing typography. */
.ad2-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    font-size: var(--fs-body);
    line-height: 1.65;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Mobile-first safety nets — apply at all sizes */
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive media — every image/video respects its container */
.ad2-body img,
.ad2-body video,
.ad2-body picture,
.ad2-body svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------------------
   3. Layout primitives
   ---------------------------------------------------------------- */

/* Container — fluid horizontal padding, capped width */
.ad2-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Section — fluid vertical rhythm */
.ad2-section {
    padding-block: var(--section-y);
}

.ad2-section--tight   { padding-block: var(--section-y-tight); }
.ad2-section--surface { background: var(--surface); }
.ad2-section--alt     { background: var(--surface-2); }
.ad2-section--navy    { background: var(--navy); color: #fff; }
.ad2-section--navy h1,
.ad2-section--navy h2,
.ad2-section--navy h3 { color: #fff; }

/* Hero modifier — extra top padding to clear the sticky header on
   .ad2-section-based heroes (programs, competitions, resources, about,
   book-assessment). The .ad2-hero component (used on index, project-mentorship)
   has its own padding rules and does not need this. */
.ad2-section--hero { padding-top: var(--sp-8); }

/* Container width modifiers — for content-heavy sections that read better
   at a constrained measure. Replace inline max-width overrides. */
.ad2-container--narrow { max-width: var(--container-narrow); }
.ad2-container--medium { max-width: var(--container-medium); }
.ad2-container--wide   { max-width: var(--container-wide); }

/* CTA row utility — horizontal layout for hero/section CTA pairs.
   Stacks on mobile; centered horizontal row on tablet+. */
.ad2-cta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.ad2-cta-row--center { justify-content: center; align-items: center; }
@media (min-width: 640px) {
    .ad2-cta-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--sp-2);
    }
}

/* ----------------------------------------------------------------
   4. Typography
   ---------------------------------------------------------------- */
.ad2-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0891b2;
    margin-bottom: var(--sp-2);
}

.ad2-h1 {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 var(--sp-3);
    text-wrap: balance;            /* progressively-enhanced — better headline wrapping */
}

.ad2-h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 var(--sp-2);
    text-wrap: balance;
}

.ad2-h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 var(--sp-2);
    line-height: 1.3;
}

.ad2-lead {
    font-size: var(--fs-lead);
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 60ch;               /* readable line length, in characters */
    text-wrap: pretty;
}

/* Section heading block — centered, max-width, generous space below */
.ad2-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--sp-6);
}
.ad2-section-head .ad2-lead {
    margin-inline: auto;
}

@media (min-width: 768px) {
    .ad2-section-head { margin-bottom: var(--sp-8); }
}

/* ----------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------- */
.ad2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.96rem;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease,
                border-color .15s ease, box-shadow .15s ease;
    /* Touch target — 44px high comfortably */
    min-height: 44px;
}

.ad2-btn:hover { text-decoration: none; }

.ad2-btn--primary {
    background: var(--ink);
    color: #fff;
}
.ad2-btn--primary:hover { background: var(--navy); color: #fff; }

.ad2-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.ad2-btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }

.ad2-btn--on-navy {
    background: #fff;
    color: var(--navy);
}
.ad2-btn--on-navy:hover { background: rgba(255,255,255,0.9); }

.ad2-btn--ghost-on-navy {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.ad2-btn--ghost-on-navy:hover { border-color: rgba(255,255,255,0.7); }

.ad2-btn--lg {
    padding: 14px 26px;
    font-size: 1rem;
    min-height: 48px;
}

/* Cyan accent button — for in-card and form-nav contexts where the dark
   .ad2-btn--primary would look heavy. Pairs with the AI track tone. */
.ad2-btn--accent {
    background: var(--ai-cyan);
    color: #fff;
}
.ad2-btn--accent:hover { background: #0891b2; color: #fff; }

/* Small button — for tight contexts like card CTAs. */
.ad2-btn--sm {
    padding: 9px 16px;
    font-size: 0.92rem;
    min-height: 38px;
}

/* Block button — full-width within its container. Useful in modals and
   mobile sticky bars. */
.ad2-btn--block {
    display: flex;
    width: 100%;
}

/* ----------------------------------------------------------------
   6. Header & navigation (mobile-first)
   ---------------------------------------------------------------- */
.ad2-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.ad2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding-block: 12px;
    position: relative;
}

.ad2-nav__brand {
    display: inline-flex;
    align-items: center;
}
.ad2-nav__brand img {
    height: 30px;
    width: auto;
}

/* Toggle button — visible by default (mobile); hidden at desktop. */
.ad2-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    color: var(--ink);
    cursor: pointer;
}
.ad2-nav__toggle:hover { border-color: var(--ink); }

/* Nav list — collapsed off-canvas style by default (mobile);
   becomes inline at desktop. */
.ad2-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    /* Mobile dropdown panel: full-width, anchored below header */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) var(--gutter) var(--sp-3);
}
.ad2-nav__list.is-open { display: flex; }

.ad2-nav__list a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 8px;
    border-radius: var(--r-sm);
    transition: color .15s ease;
    display: block;
}
.ad2-nav__list a:hover { color: var(--ink); }
.ad2-nav__list li.is-active a {
    color: var(--ink);
    font-weight: 600;
}

/* Higher specificity (.ad2-nav__list .ad2-nav__cta) wins over .ad2-nav__list a
   without needing !important. */
.ad2-nav__list .ad2-nav__cta {
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}
.ad2-nav__list .ad2-nav__cta:hover { background: var(--navy); color: #fff; }

/* Ghost-style nav CTA — used for the secondary "Register" action next to the primary "Book Assessment".
   Transparent + cyan border so it reads as "peer action, secondary priority" without competing with the primary CTA. */
.ad2-nav__list .ad2-nav__cta--ghost {
    background: transparent;
    color: var(--ai-cyan);
    border: 1.5px solid var(--ai-cyan);
}
.ad2-nav__list .ad2-nav__cta--ghost:hover {
    background: var(--ai-cyan);
    color: #fff;
    border-color: var(--ai-cyan);
}

/* Desktop nav — inline horizontal layout */
@media (min-width: 1024px) {
    .ad2-nav__toggle { display: none; }

    .ad2-nav__list,
    .ad2-nav__list.is-open {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .ad2-nav__list a {
        padding: 8px 12px;
        font-size: 0.92rem;
    }
    .ad2-nav__list .ad2-nav__cta {
        padding: 9px 16px;
        margin-top: 0;
        margin-left: 8px;
    }
}

/* ----------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------- */
.ad2-hero {
    padding-block: var(--section-y) clamp(32px, 5vw, 80px);
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(37, 99, 235, 0.06), transparent 60%),
        var(--surface);
}

.ad2-hero__grid {
    display: grid;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

/* Hero visual — block at top on mobile, side-by-side at desktop.
   Default: photo background with dark overlay (legacy behavior).
   Variant `.ad2-hero__visual--art`: hosts an inline/object SVG illustration
   on a clean light backdrop instead. */
.ad2-hero__visual {
    background: var(--navy);
    border-radius: var(--r-xl);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background-image:
        linear-gradient(135deg, rgba(11, 31, 58, 0.5), rgba(11, 31, 58, 0.85)),
        url('../img/Robot_Running_On_Globe.JPG');
    background-size: cover;
    background-position: center;
}
.ad2-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 31, 58, 0.45));
}

/* Variant for hosting an SVG illustration */
.ad2-hero__visual--art {
    background: transparent;
    background-image: none;
    box-shadow: none;
    aspect-ratio: 5 / 4;
}
.ad2-hero__visual--art::after { display: none; }
.ad2-hero__visual--art > svg,
.ad2-hero__visual--art > img,
.ad2-hero__visual--art > object {
    width: 100%;
    height: 100%;
    display: block;
}
/* Raster images need object-fit so they scale to the container's
   aspect-ratio without stretching. SVG/object handle this via viewBox. */
.ad2-hero__visual--art > img {
    object-fit: cover;
    object-position: center;
    border-radius: var(--r-xl);
}

/* Photo variant — keeps the BASE .ad2-hero__visual aspect ratios
   (16:10 mobile, 4:3 desktop) and the rounded corners + shadow,
   but swaps the default photo background for a clean foreground <img>.
   Background matches the page surface so transparent SVGs blend in
   instead of showing the default navy behind their empty regions. */
.ad2-hero__visual--photo {
    background: var(--surface);
    background-image: none;
    box-shadow: none;
}
.ad2-hero__visual--photo::after { display: none; }
.ad2-hero__visual--photo > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Hero CTAs — stack full-width on mobile, inline on tablet+ */
.ad2-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--sp-3);
}
.ad2-hero__ctas .ad2-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .ad2-hero__ctas {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--sp-2);
        margin-top: var(--sp-4);
    }
    .ad2-hero__ctas .ad2-btn {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .ad2-hero__grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .ad2-hero__visual {
        aspect-ratio: 4 / 3;
    }
}

/* ----------------------------------------------------------------
   8. Trust bar — hidden on mobile, shown on tablet+
   ---------------------------------------------------------------- */
.ad2-trustbar {
    display: none;
}
@media (min-width: 768px) {
    .ad2-trustbar {
        display: block;
        background: var(--surface);
        padding-block: var(--sp-3);
    }
    .ad2-trustbar__row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px var(--sp-4);
        justify-content: center;
        align-items: center;
        color: var(--ink-3);
        font-size: 0.84rem;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.01em;
    }
    .ad2-trustbar__row span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .ad2-trustbar__row i {
        color: var(--ink-3);
        font-size: 0.86em;
    }
}

/* ----------------------------------------------------------------
   9. Grids — mobile-first columns add capability with breakpoints
   ---------------------------------------------------------------- */
.ad2-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 32px);
    grid-template-columns: 1fr;     /* mobile default: single column */
}

/* 2-column grid: 1col mobile → 2col tablet+ */
.ad2-grid--2 {}
@media (min-width: 768px) {
    .ad2-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* 3-column grid: 1col mobile → 2col tablet → 3col desktop */
.ad2-grid--3 {}
@media (min-width: 640px) {
    .ad2-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ad2-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* 4-column grid: 1col mobile → 2col phone-large → 4col desktop */
.ad2-grid--4 {}
@media (min-width: 480px) {
    .ad2-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ad2-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------------
   10. Cards — mobile-first
   ---------------------------------------------------------------- */
.ad2-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Hover: only when the card actually has a CTA inside */
.ad2-card:has(.ad2-card__cta):hover,
.ad2-card:has(a):hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.ad2-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: var(--sp-3);
    background: var(--surface-3);
    color: var(--navy);
    flex-shrink: 0;
}

/* Track-coded variants — only when track meaning matters */
.ad2-card--ai .ad2-card__icon       { background: var(--ai-cyan-soft);  color: var(--ai-cyan); }
.ad2-card--robotics .ad2-card__icon { background: var(--robotics-soft); color: var(--robotics-orange); }
.ad2-card--elem .ad2-card__icon     { background: var(--surface-3);     color: var(--navy); }

.ad2-card h3 {
    margin: 0 0 var(--sp-1);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ad2-card p {
    color: var(--ink-2);
    margin: 0 0 var(--sp-2);
    font-size: 0.98rem;
    line-height: 1.6;
}

.ad2-card__meta {
    font-size: 0.8rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}

.ad2-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-2);
}
.ad2-card__list li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--ink-2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ad2-card__list li::before {
    content: "✓";
    color: var(--ai-cyan);
    font-weight: 600;
    flex-shrink: 0;
}
.ad2-card--robotics .ad2-card__list li::before { color: var(--robotics-orange); }

.ad2-card__cta {
    margin-top: auto;
    color: var(--blue-cta);
    text-decoration: none;
    font-weight: 600;
    padding-top: var(--sp-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ad2-card__cta:hover { text-decoration: underline; }

.ad2-card--featured {
    border: 1px solid var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.ad2-card__badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: var(--sp-2);
}

/* ----------------------------------------------------------------
   11. Mentorship spotlight
   ---------------------------------------------------------------- */
.ad2-spotlight {
    background: var(--navy);
    color: #fff;
    border-radius: var(--r-xl);
    padding: clamp(24px, 4vw, 64px) clamp(20px, 3.5vw, 48px);
    display: grid;
    gap: clamp(24px, 3vw, 48px);
    background-image:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(6, 182, 212, 0.18), transparent 60%);
}

/* Headings inside the DARK navy spotlight must always render white,
   regardless of heading tag or .ad2-h* size class. The :not() guards
   skip these rules when an article opts into the light-surface variant
   (.ad2-spotlight--surface) used by Programs 1, 2, 5 on programs.php. */
.ad2-spotlight:not(.ad2-spotlight--surface) :is(h1, h2, h3, h4, h5, h6),
.ad2-spotlight:not(.ad2-spotlight--surface) .ad2-h1,
.ad2-spotlight:not(.ad2-spotlight--surface) .ad2-h2,
.ad2-spotlight:not(.ad2-spotlight--surface) .ad2-h3 { color: #fff; margin-bottom: var(--sp-3); }
.ad2-spotlight:not(.ad2-spotlight--surface) p { color: rgba(255,255,255,0.78); font-size: 1.02rem; line-height: 1.65; }

.ad2-spotlight ul {
    list-style: none;
    padding: 0;
    margin: var(--sp-4) 0;
}
.ad2-spotlight ul li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
}
/* Light-on-dark text only on the dark spotlight variant.
   Light-surface spotlights (.ad2-spotlight--surface) keep dark text. */
.ad2-spotlight:not(.ad2-spotlight--surface) ul li { color: rgba(255,255,255,0.85); }
.ad2-spotlight ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ai-cyan);
}

.ad2-spotlight__panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
}
.ad2-spotlight__panel h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.ad2-spotlight__panel p { font-size: 0.96rem; }

.ad2-spotlight__price {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    margin: var(--sp-3) 0 0;
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 1024px) {
    .ad2-spotlight {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

/* ----------------------------------------------------------------
   12. Roadmap — quiet horizontal flow, 2 → 4 → 8 columns
   ---------------------------------------------------------------- */
.ad2-roadmap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
    position: relative;
}

.ad2-roadmap__step {
    background: transparent;
    border: 0;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 36px;
}

.ad2-roadmap__step::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 2px solid var(--ink-3);
}

.ad2-roadmap__step strong {
    display: block;
    color: var(--ink);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-weight: 600;
}
.ad2-roadmap__step span {
    font-size: 0.86rem;
    color: var(--ink-2);
    line-height: 1.45;
    display: block;
    padding-inline: 4px;
}

@media (min-width: 480px) {
    .ad2-roadmap { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .ad2-roadmap {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--sp-2);
    }
    /* Connecting line through the row of dots — only when laid out in one row */
    .ad2-roadmap::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 14px;
        height: 1px;
        background: var(--line-strong);
        z-index: 0;
    }
}

/* ----------------------------------------------------------------
   13. FAQ
   ---------------------------------------------------------------- */
.ad2-faq {
    max-width: 820px;
    margin: 0 auto;
}
.ad2-faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: 12px;
    transition: box-shadow .15s ease;
}
.ad2-faq details[open] { box-shadow: var(--shadow-sm); }

.ad2-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-2);
    padding-block: 6px;
    font-size: 1rem;
}
.ad2-faq summary::-webkit-details-marker { display: none; }
.ad2-faq summary::after {
    content: "+";
    color: var(--ai-cyan);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.ad2-faq details[open] summary::after { content: "−"; }
.ad2-faq details p {
    margin: 12px 0 6px;
    color: var(--ink-2);
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   14. Final CTA — navy band with subtle radial glow + dot pattern overlay
   ---------------------------------------------------------------- */
.ad2-cta-final {
    background-color: var(--navy);
    background-image:
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(37, 99, 235, 0.18), transparent 70%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: auto, 28px 28px;
    color: #fff;
    text-align: center;
    padding-block: var(--section-y);
}
.ad2-cta-final h2 {
    color: #fff;
    margin-bottom: var(--sp-3);
}
.ad2-cta-final p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto var(--sp-5);
    line-height: 1.65;
}

/* CTA buttons stack full-width on mobile, inline at tablet+ */
.ad2-cta-final .ad2-btn {
    width: 100%;
    max-width: 360px;
}
@media (min-width: 640px) {
    .ad2-cta-final .ad2-btn { width: auto; max-width: none; }
}

/* ----------------------------------------------------------------
   15. Footer
   ---------------------------------------------------------------- */
.ad2-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--sp-8) 0 var(--sp-4);
    font-size: 0.9rem;
}

.ad2-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.ad2-footer h4 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0 0 var(--sp-2);
}
.ad2-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ad2-footer li { padding: 4px 0; }
.ad2-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color .15s ease;
}
.ad2-footer a:hover { color: rgba(255, 255, 255, 0.95); }

.ad2-footer__brand img {
    height: 28px;
    margin-bottom: var(--sp-2);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.ad2-footer__brand p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 280px;
    line-height: 1.6;
}

.ad2-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

@media (min-width: 640px) {
    .ad2-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-5);
    }
    .ad2-footer__brand { grid-column: 1 / -1; }
    .ad2-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: var(--sp-2);
    }
}

@media (min-width: 1024px) {
    .ad2-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--sp-6);
    }
    .ad2-footer__brand { grid-column: auto; }
}

/* ----------------------------------------------------------------
   16. Project example cards
   ---------------------------------------------------------------- */
.ad2-project {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ad2-project:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.ad2-project__cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    position: relative;
}
.ad2-project__cover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--ai-cyan);
}
.ad2-project--robotics .ad2-project__cover::after { background: var(--robotics-orange); }

/* Cover modifier for cards that use a real photo instead of an icon.
   The <img> fills the existing 16:9 area; the cyan underline accent
   remains via the ::after rule above. */
.ad2-project__cover--img { background: var(--navy); padding: 0; }
.ad2-project__cover--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad2-project__body {
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ad2-project__tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--ai-cyan);
    margin-bottom: 8px;
}
.ad2-project--robotics .ad2-project__tag { color: var(--robotics-orange); }
.ad2-project h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}
.ad2-project p {
    color: var(--ink-2);
    margin: 0 0 var(--sp-2);
    font-size: 0.94rem;
    flex: 1;
    line-height: 1.55;
}
.ad2-project__grade {
    font-size: 0.82rem;
    color: var(--ink-3);
    font-weight: 500;
}

/* ----------------------------------------------------------------
   17. Form (book-assessment + contact)
   ---------------------------------------------------------------- */
.ad2-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-sm);
}

.ad2-form__row {
    display: grid;
    grid-template-columns: 1fr;       /* mobile-first: single column */
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}
@media (min-width: 640px) {
    .ad2-form__row {
        grid-template-columns: 1fr 1fr;
    }
}
/* Higher-specificity selector to win over .ad2-form .ad2-form__row at desktop. */
.ad2-form .ad2-form__row.ad2-form__row--full { grid-template-columns: 1fr; }

.ad2-form__group label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.94rem;
    margin-bottom: 6px;
}
.ad2-form__group .ad2-required { color: var(--robotics-orange); }

.ad2-form__group input,
.ad2-form__group select,
.ad2-form__group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    font-size: 16px;                  /* iOS Safari requires ≥ 16px to skip focus zoom */
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ad2-form__group input:focus,
.ad2-form__group select:focus,
.ad2-form__group textarea:focus {
    outline: none;
    border-color: var(--blue-cta);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Radio chips — stack on mobile, inline on tablet+ */
.ad2-form__radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ad2-form__radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.94rem;
    cursor: pointer;
    font-weight: 500;
}
.ad2-form__radios input[type="radio"] {
    accent-color: var(--blue-cta);
    margin: 0;
}
@media (min-width: 640px) {
    .ad2-form__radios {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--sp-2);
    }
}

.ad2-form__error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: var(--r-md);
    margin-bottom: var(--sp-3);
}
.ad2-form__error ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.ad2-help {
    font-size: 0.86rem;
    color: var(--ink-3);
    margin-top: 4px;
}

/* ----------------------------------------------------------------
   18. Steps (book-assessment intro & thank-you "what's next")
   ---------------------------------------------------------------- */
.ad2-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
.ad2-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
    counter-increment: step;
}
.ad2-step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--ai-cyan-soft);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}
.ad2-step h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}
.ad2-step p {
    color: var(--ink-2);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .ad2-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------------------------------
   18b. Trust strip — competition/credential row
   ---------------------------------------------------------------- */
.ad2-trust-strip {
    text-align: center;
}
.ad2-trust-strip__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    font-weight: 600;
    margin: 0 0 var(--sp-3);
}
.ad2-trust-strip__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px var(--sp-3);
}
.ad2-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.ad2-trust-strip__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ink-3);
}
.ad2-trust-strip__item--ai::before       { background: var(--ai-cyan); }
.ad2-trust-strip__item--robotics::before { background: var(--robotics-orange); }

/* ----------------------------------------------------------------
   18c. Tech-pattern utility — subtle SVG dot grid for backgrounds
        Used as: <section class="ad2-section ad2-section--navy ad2-tech-pattern">
   ---------------------------------------------------------------- */
.ad2-tech-pattern {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
/* Pattern variant for light backgrounds */
.ad2-tech-pattern--light {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Spotlight already has a glow gradient; add a subtle dot pattern on top of it
   for extra tech-feel without competing with the glow. */
.ad2-spotlight {
    background-image:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(6, 182, 212, 0.18), transparent 60%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: auto, 28px 28px;
}

/* (Final CTA background pattern moved into the main .ad2-cta-final
   declaration in section 14 — no duplicate rule needed here.) */

/* ----------------------------------------------------------------
   18d. Homepage-specific components
        Added per UI/UX review (2026-05) to improve conversion flow:
          - hero helper line under CTAs
          - trust-stats row above competitions strip
          - .ad2-trust-strip--quiet variant
          - .ad2-choice decision-helper cards
          - .ad2-cta-band mid-page bands
          - .ad2-mentor mini cards
          - .ad2-sticky-cta mobile bottom bar
   ---------------------------------------------------------------- */

/* Hero helper line — small CTA-supporting copy */
.ad2-hero__helper {
    margin-top: var(--sp-3);
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--ink-3);
    max-width: 460px;
    line-height: 1.55;
}

/* Trust stats row — proof points above the competitions strip */
.ad2-trust-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    text-align: center;
    margin-bottom: var(--sp-5);
}
.ad2-trust-stats__item strong {
    display: block;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.96rem;
    letter-spacing: -0.005em;
}
.ad2-trust-stats__item span {
    display: block;
    color: var(--ink-3);
    font-size: 0.84rem;
    margin-top: 2px;
}
@media (min-width: 640px) {
    .ad2-trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
    }
}
@media (min-width: 1024px) {
    .ad2-trust-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--sp-4);
    }
}

/* Quieter trust strip variant — used when stats already lead the section */
.ad2-trust-strip--quiet {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
}
.ad2-trust-strip--quiet .ad2-trust-strip__label {
    font-size: 0.74rem;
    margin-bottom: var(--sp-2);
}
.ad2-trust-strip--quiet .ad2-trust-strip__item {
    font-size: 0.82rem;
    background: transparent;
    padding: 6px 12px;
}

/* Choice cards — decision helper "where does your child fit" */
.ad2-choice {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 28px);
    text-decoration: none;
    color: var(--ink);
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    /* Mobile Safari: opt out of link auto-detection / blue tap highlight on
       the card itself so it behaves as a single tap target. */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
/* Mobile Safari quirk: when an <a> wraps block descendants like <h3>,
   text-decoration: none on the link does not always propagate to those
   descendants, leaving them rendered with default link underline + color.
   Force the override on every descendant so the card never renders as
   a stack of blue underlined text. */
.ad2-choice * { text-decoration: none; }
/* Reset color on block descendants only — spans (.ad2-choice__label and
   .ad2-choice__cta) keep their explicit colors via their own class rules. */
.ad2-choice :is(h1, h2, h3, h4, h5, h6, p) { color: inherit; }
.ad2-choice:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--ink);
    transform: translateY(-2px);
}
.ad2-choice__label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 8px;
    font-weight: 600;
}
.ad2-choice h3 {
    margin: 0 0 var(--sp-1);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.ad2-choice p {
    margin: 0 0 var(--sp-3);
    color: var(--ink-2);
    font-size: 0.94rem;
    line-height: 1.55;
    flex: 1;
}
.ad2-choice__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-cta);
    font-weight: 600;
    font-size: 0.94rem;
    margin-top: auto;
}

/* Track-coded variants */
.ad2-choice--ai       { border-top: 3px solid var(--ai-cyan); }
.ad2-choice--robotics { border-top: 3px solid var(--robotics-orange); }

/* Featured (assessment) — dark inverted card stands out */
.ad2-choice--featured {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.ad2-choice--featured h3 { color: #fff; }
.ad2-choice--featured p { color: rgba(255,255,255,0.78); }
.ad2-choice--featured .ad2-choice__label { color: rgba(255,255,255,0.5); }
.ad2-choice--featured .ad2-choice__cta { color: #fff; }
.ad2-choice--featured:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Mid-page CTA band — quiet decision checkpoint between sections */
.ad2-cta-band {
    background: var(--surface-3);
    padding-block: var(--sp-5);
}
.ad2-cta-band__row {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    align-items: flex-start;
}
.ad2-cta-band__title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.ad2-cta-band__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.96rem;
    line-height: 1.5;
}
.ad2-cta-band .ad2-btn {
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .ad2-cta-band__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-4);
    }
}

/* Mentor mini cards — homepage version of the about-page instructor block */
.ad2-mentor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.ad2-mentor__photo {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--sp-3);
    background: var(--surface-3);
    flex-shrink: 0;
}
.ad2-mentor__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ad2-mentor__role {
    display: inline-block;
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.ad2-mentor__role--robotics {
    background: var(--robotics-soft);
    color: var(--robotics-orange);
}
.ad2-mentor h3 {
    margin: 0 0 var(--sp-2);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}
.ad2-mentor p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Spotlight panel variants
   --media: minimal padding so an embedded SVG/image fills the frame */
.ad2-spotlight__panel--media {
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.ad2-spotlight__caption {
    font-size: 0.78rem;
    color: var(--ink-3);
    margin: 8px 4px 0;
    text-align: center;
    font-style: italic;
}

/* Testimonial section + cards
   Used by partials/testimonial-section.php once you add real parent quotes. */
.ad2-testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 32px);
}
@media (min-width: 768px) {
    .ad2-testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ad2-testimonials { grid-template-columns: repeat(3, 1fr); }
}
.ad2-testimonial {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
}
.ad2-testimonial__mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    line-height: 0.5;
    color: var(--ai-cyan);
    margin: 4px 0 8px;
    user-select: none;
}
/* Closing-quote variant — mirrors the opening mark, right-aligned.
   Sits flush with the end of the quote text (no top margin). */
.ad2-testimonial__mark--close {
    text-align: right;
    margin: 0 0 var(--sp-3);
}
.ad2-testimonial__quote {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.65;
    /* No flex: 1 — closing mark must sit immediately under the text.
       Author block uses margin-top: auto to push itself to the card bottom. */
}
.ad2-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.ad2-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.96rem;
    flex-shrink: 0;
}
.ad2-testimonial__name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.2;
    display: block;
}
.ad2-testimonial__meta {
    color: var(--ink-3);
    font-size: 0.84rem;
    line-height: 1.2;
    display: block;
    margin-top: 2px;
}

/* Student success story cards
   Used by partials/student-story-section.php once you add real stories. */
.ad2-stories {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 32px);
}
@media (min-width: 768px) {
    .ad2-stories { grid-template-columns: repeat(2, 1fr); }
}
.ad2-story {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ad2-story__cover {
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    position: relative;
}
.ad2-story__cover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--ai-cyan);
}
.ad2-story--robotics .ad2-story__cover::after { background: var(--robotics-orange); }
.ad2-story__body {
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ad2-story__tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--ai-cyan);
    margin-bottom: 4px;
}
.ad2-story--robotics .ad2-story__tag { color: var(--robotics-orange); }
.ad2-story h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}
.ad2-story__meta {
    color: var(--ink-3);
    font-size: 0.86rem;
    margin: 0 0 var(--sp-2);
}
.ad2-story__body p {
    color: var(--ink-2);
    font-size: 0.96rem;
    margin: 0 0 var(--sp-2);
    line-height: 1.6;
}
.ad2-story__outcome {
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--ink);
}
.ad2-story__outcome strong { color: var(--navy); }

/* ----------------------------------------------------------------
   Student Success Story cards — outcome-first layout per UX review.
   Grid container is .ad2-success-stories; cards are .ad2-success-story.
   Anatomy (top → bottom):
     eyebrow (e.g. STUDENT SUCCESS · 2024)
     headline (h3, outcome-driven)
     quote (parent words)
     attribution (Parent of X · Program · Grade)
     details (definition list of project, publication, etc.)
     badges (3 outcome chips with cyan/amber tones)
   ---------------------------------------------------------------- */
.ad2-success-stories {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 1024px) {
    .ad2-success-stories { grid-template-columns: repeat(3, 1fr); }
}
.ad2-success-story {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ai-cyan);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.ad2-success-story--robotics { border-top-color: var(--robotics-orange); }
.ad2-success-story--amber    { border-top-color: #d97706; }

.ad2-success-story__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--ai-cyan);
    margin: 0 0 10px;
}
.ad2-success-story--robotics .ad2-success-story__eyebrow { color: var(--robotics-orange); }
.ad2-success-story--amber    .ad2-success-story__eyebrow { color: #d97706; }

.ad2-success-story__headline {
    margin: 0 0 var(--sp-3);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ad2-success-story__quote {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding-left: 14px;
    border-left: 3px solid var(--ai-cyan-soft);
}
.ad2-success-story--robotics .ad2-success-story__quote { border-left-color: var(--robotics-soft); }
.ad2-success-story--amber    .ad2-success-story__quote { border-left-color: #fef3c7; }

.ad2-success-story__attribution {
    margin: 0 0 var(--sp-3);
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.4;
}
.ad2-success-story__attribution strong {
    color: var(--navy);
    font-weight: 600;
}

.ad2-success-story__details {
    margin: 0 0 var(--sp-3);
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    font-size: 0.86rem;
    line-height: 1.5;
}
.ad2-success-story__details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0;
}
.ad2-success-story__details dt {
    color: var(--ink-3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding-top: 2px;
}
.ad2-success-story__details dd {
    margin: 0;
    color: var(--ink);
    font-style: italic;
}
.ad2-success-story__details dd em { color: var(--ink); font-style: italic; }

.ad2-success-story__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--sp-2);
}
.ad2-success-story__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
}
.ad2-success-story__badge--orange { background: var(--robotics-soft); color: var(--robotics-orange); }
.ad2-success-story__badge--amber  { background: #fef3c7;              color: #d97706; }
.ad2-success-story__badge--navy   { background: var(--surface-3);     color: var(--navy); }
.ad2-success-story__badge i { font-size: 0.7rem; }

/* ----------------------------------------------------------------
   18e. Programs page components
        Added per UI/UX review (2026-05) for programs.php:
          - .ad2-program-accent--* coloured top borders for each program
          - .ad2-program__subhead reusable section subhead
          - .ad2-best-for refined sidebar pattern (replaces underfilled .ad2-card sidebars)
          - .ad2-compare-table responsive comparison
          - .ad2-progress-grid 2-col Parent Visibility layout
   ---------------------------------------------------------------- */

/* Subtle 3px coloured top accent on program detail cards.
   Uses inset box-shadow so the accent respects the card's border-radius. */
.ad2-program-accent--elem     { box-shadow: inset 0 3px 0 0 #7c3aed; }
.ad2-program-accent--ai       { box-shadow: inset 0 3px 0 0 var(--ai-cyan); }
.ad2-program-accent--robotics { box-shadow: inset 0 3px 0 0 var(--robotics-orange); }
.ad2-program-accent--comp     { box-shadow: inset 0 3px 0 0 #f59e0b; }

/* Consistent sub-heading inside program detail cards */
.ad2-program__subhead {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin: var(--sp-3) 0 var(--sp-2);
    font-weight: 600;
}

/* Refined "Best for" sidebar — replaces the underfilled .ad2-card sidebar.
   Pattern: icon + tiny label + 1-line description + outcome pill. */
.ad2-best-for {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
}
.ad2-best-for__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--surface-3);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.ad2-best-for--ai .ad2-best-for__icon { background: var(--ai-cyan-soft); color: var(--ai-cyan); }
.ad2-best-for--comp .ad2-best-for__icon { background: #fef3c7; color: #d97706; }
.ad2-best-for__label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    font-weight: 600;
}
.ad2-best-for__text {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 500;
}
.ad2-best-for__outcome {
    margin-top: auto;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--ink-2);
    font-weight: 500;
    line-height: 1.4;
}
.ad2-best-for__outcome i { color: var(--ai-cyan); margin-right: 4px; }

/* Compare programs table — clean grid on desktop, horizontal-scrollable on mobile */
.ad2-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.ad2-compare-wrap:focus { outline: 2px solid var(--blue-cta); outline-offset: 2px; }

.ad2-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
    min-width: 720px;            /* forces horizontal scroll on phones, keeps cells readable */
}
.ad2-compare-table th,
.ad2-compare-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.ad2-compare-table thead th {
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.ad2-compare-table tbody th {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}
.ad2-compare-table tbody td {
    color: var(--ink-2);
    line-height: 1.5;
}
.ad2-compare-table tbody tr:last-child th,
.ad2-compare-table tbody tr:last-child td { border-bottom: 0; }
.ad2-compare-table tbody tr:hover {
    background: var(--surface-2);
}

.ad2-compare__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}
.ad2-compare__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-cta);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    white-space: nowrap;
}
.ad2-compare__cta:hover { text-decoration: underline; }

.ad2-compare__hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-3);
    margin: 8px 0 0;
}
@media (min-width: 880px) {
    .ad2-compare__hint { display: none; }   /* no scroll needed at desktop */
}

/* Parent-Visible Progress — 2-col on desktop, stacks on mobile */
.ad2-progress-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}
.ad2-progress-grid__media {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(12px, 2vw, 20px);
}
.ad2-progress-grid__media object {
    border-radius: var(--r-md);
}
@media (min-width: 880px) {
    .ad2-progress-grid {
        grid-template-columns: 1fr 1.1fr;
    }
}

/* ----------------------------------------------------------------
   18f. Project Mentorship page components
        Added per UI/UX review (2026-05) for project-mentorship.php:
          - .ad2-outcome-strip hero deliverables row
          - .ad2-page-nav sticky in-page section nav
          - .ad2-compare-blocks regular-class vs mentorship comparison
          - .ad2-checklist readiness self-check
          - .ad2-track-guide AI vs Robotics quick recommender
   ---------------------------------------------------------------- */

/* Outcome strip — small chips of deliverables under the hero lead */
.ad2-outcome-strip {
    list-style: none;
    padding: 0;
    margin: var(--sp-3) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ad2-outcome-strip li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
}
.ad2-outcome-strip li i {
    color: var(--ai-cyan);
    font-size: 0.78em;
}

/* In-page section nav — sticky thin bar below the hero on desktop;
   hidden on mobile (the sticky CTA serves the same purpose). */
.ad2-page-nav {
    display: none;
}
@media (min-width: 880px) {
    .ad2-page-nav {
        display: block;
        position: sticky;
        top: 60px;            /* header is sticky too — stack below it */
        z-index: 50;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: saturate(180%) blur(10px);
        -webkit-backdrop-filter: saturate(180%) blur(10px);
        border-bottom: 1px solid var(--line);
    }
    .ad2-page-nav__list {
        list-style: none;
        margin: 0;
        padding: 12px 0;
        display: flex;
        gap: var(--sp-1);
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    .ad2-page-nav__list a {
        color: var(--ink-2);
        text-decoration: none;
        font-size: 0.86rem;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: var(--r-sm);
        transition: color .15s ease, background .15s ease;
    }
    .ad2-page-nav__list a:hover {
        color: var(--ink);
        background: var(--surface-3);
    }
}

/* Compare blocks — regular classes vs AmeriDuo mentorship */
.ad2-compare-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
@media (min-width: 768px) {
    .ad2-compare-blocks { grid-template-columns: 1fr 1fr; }
}
.ad2-compare-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
}
.ad2-compare-block h3 {
    margin: 0 0 var(--sp-3);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--line);
}
.ad2-compare-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ad2-compare-block ul li {
    padding: 8px 0;
    color: var(--ink-2);
    font-size: 0.96rem;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ad2-compare-block ul li::before {
    content: "·";
    color: var(--ink-3);
    font-weight: 700;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
}

/* The "AmeriDuo" side gets a subtle accent treatment */
.ad2-compare-block--us {
    border-color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.ad2-compare-block--us h3 {
    color: var(--ink);
}
.ad2-compare-block--us ul li::before {
    content: "✓";
    color: var(--ai-cyan);
}
.ad2-compare-block--neutral h3 {
    color: var(--ink-3);
}

/* Readiness checklist — clean checkbox-style list with subtle background */
.ad2-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.ad2-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.5;
}
.ad2-checklist li:last-child { border-bottom: 0; }
.ad2-checklist li i {
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.ad2-checklist__note {
    font-size: 0.94rem;
    color: var(--ink-3);
    text-align: center;
    margin: var(--sp-3) 0 0;
    font-style: italic;
}

/* Track guide — quick "AI vs Robotics" recommender, two columns */
.ad2-track-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
}
@media (min-width: 768px) {
    .ad2-track-guide { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}
.ad2-track-guide__col {
    padding-top: 4px;
}
.ad2-track-guide__col + .ad2-track-guide__col {
    padding-top: 4px;
}
@media (min-width: 768px) {
    .ad2-track-guide__col + .ad2-track-guide__col {
        padding-top: 4px;
        padding-left: var(--sp-5);
        border-left: 1px solid var(--line);
    }
}
.ad2-track-guide__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--sp-2);
}
.ad2-track-guide__col--ai .ad2-track-guide__label { color: var(--ai-cyan); }
.ad2-track-guide__col--robotics .ad2-track-guide__label { color: var(--robotics-orange); }

.ad2-track-guide__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ad2-track-guide__col ul li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.5;
}
.ad2-track-guide__col ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ai-cyan);
}
.ad2-track-guide__col--robotics ul li::before { background: var(--robotics-orange); }

/* Sticky mobile CTA — fixed bottom bar with dismiss
   Hidden on desktop; visible on phones to keep "Book a Free Assessment"
   one tap away regardless of scroll position. */
.ad2-sticky-cta { display: none; }

@media (max-width: 880px) {
    .ad2-sticky-cta {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        z-index: 90;
        background: var(--ink);
        color: #fff;
        border-radius: 12px;
        padding: 4px 4px 4px 8px;
        box-shadow: var(--shadow-lg);
    }
    .ad2-sticky-cta__btn {
        flex: 1;
        text-align: center;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.96rem;
        padding: 12px;
        border-radius: 8px;
        line-height: 1;
    }
    .ad2-sticky-cta__dismiss {
        background: rgba(255, 255, 255, 0.12);
        border: 0;
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.4rem;
        line-height: 1;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .ad2-sticky-cta__dismiss:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    /* Add bottom padding to body so the sticky bar doesn't cover footer content */
    .ad2-body { padding-bottom: 76px; }
}

/* ----------------------------------------------------------------
   19. Misc utilities
   ---------------------------------------------------------------- */
.ad2-divider {
    height: 1px;
    background: var(--line);
    margin: var(--sp-6) 0;
    border: 0;
}
.ad2-text-center { text-align: center; }
.ad2-mt-3 { margin-top: var(--sp-3); }
.ad2-mt-4 { margin-top: var(--sp-4); }

/* ============================================================
   END — AmeriDuo v2 mobile-first design system
   ============================================================ */


/* ============================================================
   LEGACY v1 component classes — preserved verbatim.
   Used by the backend pages that were NOT refactored into v2:
     /downloads/*.php        (course-materials login + downloads)
     /registration/*.php     (legacy registration confirmation)
     /books/*.php            (book lead-capture)
   These pages still load this stylesheet and rely on the .hero-section,
   .cta-button, .track-card, .feature-item, .curriculum-stage,
   .course-list, .comparison-table, .path-step, .stat-*, .track-badge,
   and .section-title-modern classes below. Do NOT delete unless
   those backend pages have been retired or refactored.
   ============================================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--secondary-color);
    text-decoration: none;
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.track-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.track-card.featured {
    border-color: var(--border-color);
    border-width: 3px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.track-card.featured:hover {
    border-color: var(--primary-color);
}

.track-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.track-badge.secondary {
    background: var(--success-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.curriculum-stage {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.course-list {
    list-style: none;
    padding: 0;
}

.course-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    width: 20px;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin: 40px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.path-visualization {
    text-align: center;
    padding: 60px 0;
    background: var(--bg-light);
}

.path-step {
    display: inline-block;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 0 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.path-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.path-step:last-child::after {
    display: none;
}

.section-title-modern {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title-modern p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stat-item {
    display: inline-block;
    margin: 0 40px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================================
   19. Promoted page components
   ------------------------------------------------------------
   Originally lived in $pageExtraStyles heredocs on individual
   pages. Promoted to global CSS in the consistency pass so:
     - rules can be reused across pages
     - duplicate rules between pages are eliminated
     - page templates stay focused on markup
   ============================================================ */

/* ---------- 19a. Resource cards (resources.php) ---------- */
.ad2-resource {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ad2-resource:hover {
    border-color: var(--ink-3);
    box-shadow: var(--shadow-sm);
}
.ad2-resource__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: var(--sp-2);
}
.ad2-resource__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ad2-resource--orange .ad2-resource__icon { background: var(--robotics-soft); color: var(--robotics-orange); }
.ad2-resource--amber  .ad2-resource__icon { background: var(--warning-soft);  color: var(--warning); }

.ad2-resource__status-pill {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    flex-shrink: 0;
}
.ad2-resource__status-pill--available  { background: var(--success-soft); color: var(--success-text); }
.ad2-resource__status-pill--coming-soon { background: var(--surface-3);   color: var(--ink-3); }

.ad2-resource__pages {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--ink-3);
    margin: 0 0 6px;
}
.ad2-resource h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.ad2-resource__bestfor {
    color: var(--ink-2);
    font-size: 0.92rem;
    margin: 0 0 var(--sp-2);
    line-height: 1.5;
}
.ad2-resource__bestfor strong { color: var(--ink); font-weight: 600; }
.ad2-resource__inside {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-3);
    font-size: 0.88rem;
    color: var(--ink-2);
    flex: 1;
}
.ad2-resource__inside li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}
.ad2-resource__inside li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ai-cyan);
    font-weight: 600;
    font-size: 0.84rem;
}
.ad2-resource--orange .ad2-resource__inside li::before { color: var(--robotics-orange); }
.ad2-resource--amber  .ad2-resource__inside li::before { color: var(--warning); }

.ad2-resource__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}
/* (Resource card CTAs now use .ad2-btn .ad2-btn--primary .ad2-btn--sm.) */
.ad2-resource__related {
    color: var(--blue-cta);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ad2-resource__related:hover { text-decoration: underline; }

/* Featured guide — wider, 2-col, visually highlighted */
.ad2-featured-guide {
    background: var(--surface);
    border: 1px solid var(--ink);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}
@media (min-width: 768px) {
    .ad2-featured-guide { grid-template-columns: 1.1fr 1fr; }
}
.ad2-featured-guide__label {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: var(--sp-2);
}
.ad2-featured-guide h2 {
    margin: 0 0 var(--sp-2);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.015em;
}
.ad2-featured-guide__inside {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 28px);
}
.ad2-featured-guide__inside h3 {
    margin: 0 0 var(--sp-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    font-weight: 700;
}
.ad2-featured-guide__inside ul { list-style: none; padding: 0; margin: 0; }
.ad2-featured-guide__inside li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.5;
}
.ad2-featured-guide__inside li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--ai-cyan);
    font-weight: 700;
}

/* ---------- 19b. Modal (resources.php email-capture dialog) ---------- */
.ad2-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}
.ad2-modal.is-open { display: flex; }
.ad2-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.ad2-modal__panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 36px);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    max-height: calc(100vh - 4 * var(--gutter));
    overflow-y: auto;
}
.ad2-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 0;
    color: var(--ink-2);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ad2-modal__close:hover { background: var(--line-strong); color: var(--ink); }
.ad2-modal__eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    font-weight: 700;
    margin: 0 0 8px;
}
.ad2-modal h2 {
    margin: 0 0 var(--sp-2);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
    padding-right: 36px;
}
.ad2-modal p.ad2-modal__intro {
    margin: 0 0 var(--sp-3);
    color: var(--ink-2);
    font-size: 0.94rem;
    line-height: 1.55;
}
.ad2-modal__form { margin: 0; }
.ad2-modal__form label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.ad2-modal__form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
/* Modal submit — visual styling provided by .ad2-btn .ad2-btn--primary
   .ad2-btn--lg .ad2-btn--block. Hook class .ad2-modal__submit retained
   for JS targeting and the disabled/loading state. */
.ad2-modal__submit:disabled { opacity: 0.6; cursor: wait; }
.ad2-modal__privacy {
    margin: 8px 0 var(--sp-3);
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.5;
}
.ad2-modal__status {
    min-height: 22px;
    margin-top: 12px;
    font-size: 0.92rem;
    text-align: center;
    color: var(--ink-3);
}
.ad2-modal__status--success { color: var(--success-text); font-weight: 600; }
.ad2-modal__status--error   { color: var(--error-text); }
.ad2-modal__honeypot { position: absolute; left: -10000px; }

/* ---------- 19c. Conversion-page minimal header (book-assessment.php) ---------- */
.ad2-header--minimal { background: #fff; border-bottom: 1px solid var(--line); }
.ad2-nav-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}
.ad2-nav-minimal__trust {
    display: none;
    font-size: 0.875rem;
    color: var(--ink-2);
    font-weight: 500;
}
.ad2-nav-minimal__trust .fa-lock { color: var(--ai-cyan); margin-right: 6px; }
.ad2-nav-minimal__back {
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
}
.ad2-nav-minimal__back:hover { background: var(--surface-2); color: var(--navy); }
@media (min-width: 768px) {
    .ad2-nav-minimal__trust { display: inline-flex; align-items: center; }
}

/* ---------- 19d. Hero reassurance subhead ---------- */
.ad2-hero-reassure {
    margin: 0 auto 12px;
    max-width: 720px;
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.55;
    text-align: center;
}
.ad2-hero-reassure strong { color: var(--navy); }

/* ---------- 19e. "Why parents book" trust strip + value box + mentor row ---------- */
.ad2-why-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 auto var(--sp-5);
    max-width: 920px;
}
.ad2-why-strip h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.ad2-why-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px 24px;
}
@media (min-width: 768px) {
    .ad2-why-strip ul { grid-template-columns: 1fr 1fr; }
}
.ad2-why-strip li {
    position: relative;
    padding-left: 26px;
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.45;
}
.ad2-why-strip li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ai-cyan);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.85rem;
}

.ad2-value-box {
    background: linear-gradient(180deg, var(--ai-cyan-soft) 0%, #f0fbfc 100%);
    border: 1px solid #a5f3fc;
    border-radius: 16px;
    padding: 24px 26px;
    margin: 0 auto var(--sp-5);
    max-width: 920px;
}
.ad2-value-box__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ai-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.ad2-value-box h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 700;
}
.ad2-value-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px 24px;
}
@media (min-width: 768px) {
    .ad2-value-box ul { grid-template-columns: 1fr 1fr; }
}
.ad2-value-box li {
    position: relative;
    padding-left: 26px;
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.45;
}
.ad2-value-box li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0891b2;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.95rem;
}

/* Seasonal registration banner — sits at the very top of every page (above .ad2-header).
   Toggled via $regBannerActive in partials/header.php. Skipped on minimal-header pages.
   Cyan-accent treatment so the banner reads as an informational seasonal notice
   (distinct from the navy header below) rather than a promotional ad strip.
   Dismissals persist for the visitor's browser session via sessionStorage. */
.ad2-reg-banner {
    background: var(--ai-cyan-soft);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
    border-bottom: 2px solid var(--ai-cyan);
}
.ad2-reg-banner__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 12px;
    flex-wrap: wrap;
    text-align: center;
}
.ad2-reg-banner__msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.ad2-reg-banner__msg i { color: var(--ai-cyan); font-size: 1rem; }
.ad2-reg-banner__msg strong { color: var(--navy); font-weight: 700; }
.ad2-reg-banner__msg a {
    color: var(--ai-cyan);
    text-decoration: underline;
    font-weight: 700;
}
.ad2-reg-banner__msg a:hover { color: var(--navy); }
.ad2-reg-banner__dismiss {
    background: transparent;
    border: 0;
    color: var(--ink-3);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}
.ad2-reg-banner__dismiss:hover { color: var(--navy); }
@media (max-width: 640px) {
    .ad2-reg-banner { font-size: 0.85rem; }
    .ad2-reg-banner__row { padding: 8px 10px; gap: 6px; }
    .ad2-reg-banner__dismiss { margin-left: 4px; }
}

/* Mentor strip embedded inside index.php trust section — adds faces to the existing trust signals
   without creating a standalone mentor section. Sits below the 4 stat items, above the competitions strip. */
.ad2-trust-mentors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
    text-align: left;
}
.ad2-trust-mentors__avatars {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.ad2-trust-mentors__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
    background: var(--surface);
}
.ad2-trust-mentors__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad2-trust-mentors__text {
    margin: 0;
    font-size: 0.94rem;
    color: var(--ink-2);
    line-height: 1.45;
    max-width: 540px;
}
.ad2-trust-mentors__text strong { color: var(--navy); }
.ad2-trust-mentors__text a { color: var(--ai-cyan); font-weight: 600; }

/* Prereq notice band — info-styled callout used on programs.php and programs-secondary.php
   to flag prerequisites, separate offerings, or other contextual notices. */
.ad2-prereq-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--ai-cyan-soft);
    border: 1px solid var(--ai-cyan);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: var(--sp-3);
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.5;
}
.ad2-prereq-notice i {
    color: var(--ai-cyan);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.ad2-prereq-notice strong { color: var(--navy); }
.ad2-prereq-notice a { color: var(--ai-cyan); font-weight: 600; }

/* Mentor trust card — book-assessment.php "Who you'll talk to" block.
   Visually matches .ad2-why-strip above it: white bordered card, uppercase eyebrow heading, structured list. */
.ad2-mentor-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 auto var(--sp-5);
    max-width: 920px;
}
.ad2-mentor-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
}
.ad2-mentor-card__intro {
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.5;
    margin: 0 0 16px;
}
.ad2-mentor-card__intro strong { color: var(--navy); }
.ad2-mentor-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.ad2-mentor-card__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ad2-mentor-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}
.ad2-mentor-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad2-mentor-card__list strong {
    display: block;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.97rem;
}
.ad2-mentor-card__list span {
    display: block;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ---------- 19f. Multi-step form: stepper + form-step + form-nav (book-assessment.php) ---------- */
.ad2-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}
.ad2-stepper__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 500;
}
.ad2-stepper__num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}
.ad2-stepper__step.is-active { color: var(--navy); font-weight: 700; }
.ad2-stepper__step.is-active .ad2-stepper__num {
    background: var(--ai-cyan);
    color: #fff;
    border-color: var(--ai-cyan);
}
.ad2-stepper__step.is-done .ad2-stepper__num {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.ad2-stepper__bar {
    width: 28px;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
}
@media (min-width: 768px) {
    .ad2-stepper__bar { width: 48px; }
}
.ad2-stepper__label-mobile {
    text-align: center;
    color: var(--ink-2);
    font-size: 0.9rem;
    margin-bottom: var(--sp-3);
}

.ad2-form-step { display: none; }
.ad2-form-step.is-active { display: block; }
.ad2-form-step__heading {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 6px;
}
.ad2-form-step__intro {
    color: var(--ink-2);
    font-size: 0.95rem;
    margin: 0 0 var(--sp-3);
}
.ad2-required-note {
    color: var(--ink-2);
    font-size: 0.85rem;
    margin: 0 0 var(--sp-3);
    text-align: right;
}

.ad2-form-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
}
/* Form nav buttons — to be replaced by .ad2-btn variants in a follow-up. */
.ad2-form-nav__back {
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line);
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}
.ad2-form-nav__back:hover { background: var(--surface-2); color: var(--navy); }
.ad2-form-nav__continue,
.ad2-form-nav__submit {
    margin-left: auto;
    background: var(--ai-cyan);
    color: #fff;
    border: 0;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(6,182,212,0.25);
}
.ad2-form-nav__submit { background: var(--navy); box-shadow: 0 1px 2px rgba(11,31,58,0.3); }
.ad2-form-nav__continue:hover { background: #0891b2; }
.ad2-form-nav__submit:hover { background: #061427; }

/* ---------- 19g. Compact segmented controls (None / Some / Strong) ---------- */
.ad2-segmented {
    border: 0;
    margin: 0 0 var(--sp-3);
    padding: 0;
}
.ad2-segmented legend {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.ad2-segmented__optional {
    color: var(--ink-2);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 6px;
}
.ad2-segmented__group {
    display: grid;
    gap: 8px;
}
@media (min-width: 480px) {
    .ad2-segmented__group { grid-template-columns: repeat(3, 1fr); }
}
.ad2-segmented__option {
    position: relative;
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    min-height: 48px;
}
.ad2-segmented__option:hover { border-color: var(--ai-cyan); }
.ad2-segmented__option input { position: absolute; opacity: 0; pointer-events: none; }
.ad2-segmented__option input:focus-visible + .ad2-segmented__label {
    outline: var(--focus-outline);
    outline-offset: 2px;
}
.ad2-segmented__option:has(input:checked) {
    border-color: var(--ai-cyan);
    background: var(--ai-cyan-soft);
}
.ad2-segmented__label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.ad2-segmented__hint {
    display: block;
    color: var(--ink-2);
    font-size: 0.82rem;
    line-height: 1.35;
}

/* ---------- 19h. Inline form-field error + has-error state (shared) ---------- */
.ad2-form__group .ad2-form__error-msg {
    display: none;
    margin-top: 6px;
    color: var(--error-text);
    font-size: 0.85rem;
    font-weight: 500;
}
.ad2-form__group.has-error input,
.ad2-form__group.has-error select,
.ad2-form__group.has-error textarea {
    border-color: var(--error);
    background: var(--error-soft);
}
.ad2-form__group.has-error .ad2-form__error-msg { display: block; }

/* ---------- 19i. Privacy reassurance block + soft alternative + sticky mobile bar ---------- */
.ad2-privacy-block {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    margin: var(--sp-3) 0 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ad2-privacy-block i { color: var(--ai-cyan); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.ad2-privacy-block strong { color: var(--navy); }

.ad2-soft-alt {
    text-align: center;
    margin: var(--sp-5) 0 0;
    color: var(--ink-2);
    font-size: 0.95rem;
}
.ad2-soft-alt a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ai-cyan);
    text-underline-offset: 3px;
}
.ad2-soft-alt a:hover { color: var(--ai-cyan); }

.ad2-mobile-continue { display: none; }
@media (max-width: 768px) {
    .ad2-mobile-continue {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 50;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        gap: 10px;
        align-items: center;
    }
    .ad2-mobile-continue__progress {
        font-size: 0.85rem;
        color: var(--ink-2);
        font-weight: 500;
        flex-shrink: 0;
    }
    .ad2-mobile-continue__btn {
        flex: 1;
        background: var(--ai-cyan);
        color: #fff;
        border: 0;
        padding: 13px 18px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.98rem;
        cursor: pointer;
    }
    .ad2-mobile-continue__btn--submit { background: var(--navy); }
    /* Push form footer above the sticky bar */
    .ad2-form { padding-bottom: 90px; }
    /* Hide the inline form-nav buttons on mobile — sticky bar replaces them */
    .ad2-form-nav { display: none; }
}

/* ---------- 19j. About page: trust strip, founder, mission bullets ---------- */
.ad2-about-trust {
    margin-top: var(--sp-5);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    display: grid;
    gap: 14px 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ad2-about-trust { grid-template-columns: repeat(4, 1fr); } }
.ad2-about-trust__item { text-align: center; }
.ad2-about-trust__item strong {
    display: block;
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
}
.ad2-about-trust__item span {
    display: block;
    color: var(--ink-2);
    font-size: 0.85rem;
    margin-top: 4px;
    line-height: 1.35;
}

.ad2-founder {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
}
@media (min-width: 768px) { .ad2-founder { grid-template-columns: 200px 1fr; } }
.ad2-founder__photo {
    width: 100%;
    aspect-ratio: 1;
    max-width: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface-2);
    margin: 0 auto;
}
.ad2-founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad2-founder__quote {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--navy);
    font-weight: 600;
    border-left: 3px solid var(--ai-cyan);
    padding-left: 14px;
}
.ad2-founder__body p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.65; }
.ad2-founder__attr {
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 500;
}

.ad2-mission-bullets {
    list-style: none;
    margin: var(--sp-3) 0 0;
    padding: 0;
    display: grid;
    gap: 10px 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ad2-mission-bullets { grid-template-columns: 1fr 1fr; } }
.ad2-mission-bullets li {
    position: relative;
    padding-left: 26px;
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.45;
}
.ad2-mission-bullets li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ai-cyan);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.85rem;
}

/* ---------- 19k. Instructor cards (about.php) + "How they help" block ---------- */
.ad2-instructor {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--sp-4);
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    margin-bottom: var(--sp-3);
}
.ad2-instructor__photo {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1;
    background: var(--surface-3);
}
.ad2-instructor__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad2-instructor__role {
    display: inline-block;
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.ad2-instructor h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.ad2-instructor__bio { margin: 0; color: var(--ink-2); line-height: 1.65; }
.ad2-instructor__helps {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.ad2-instructor__helps-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 8px;
}
.ad2-instructor__helps ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .ad2-instructor__helps ul { grid-template-columns: 1fr 1fr; }
}
.ad2-instructor__helps li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.4;
}
.ad2-instructor__helps li::before {
    content: '\f0a9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ai-cyan);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.78rem;
}

/* Read-more button for mobile bio. Order matters: hide by default,
   then show inside the mobile media query. */
.ad2-instructor__readmore {
    display: none;
    margin-top: 8px;
    background: transparent;
    border: 0;
    color: var(--ai-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 0;
    cursor: pointer;
}
.ad2-instructor__readmore:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .ad2-instructor { grid-template-columns: 1fr; }
    .ad2-instructor__photo { max-width: 200px; margin: 0 auto; }
    .ad2-instructor__bio {
        max-height: 4.8em;
        overflow: hidden;
        position: relative;
        transition: max-height 0.25s ease;
    }
    .ad2-instructor__bio::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 1.6em;
        background: linear-gradient(180deg, transparent, var(--surface));
        pointer-events: none;
    }
    .ad2-instructor.is-expanded .ad2-instructor__bio { max-height: 60em; }
    .ad2-instructor.is-expanded .ad2-instructor__bio::after { display: none; }
    .ad2-instructor__readmore { display: inline-block; }
}

/* ---------- 19l. Video actions + outcomes grid + partner card ---------- */
.ad2-video-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: var(--sp-3);
}
.ad2-video-actions a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ad2-video-actions a:hover { color: var(--ai-cyan); text-decoration: underline; }

.ad2-outcomes-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) { .ad2-outcomes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ad2-outcomes-grid { grid-template-columns: repeat(3, 1fr); } }
.ad2-outcome-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 20px;
    transition: border-color 0.18s, transform 0.18s;
}
.ad2-outcome-tile:hover { border-color: var(--ai-cyan); transform: translateY(-1px); }
.ad2-outcome-tile__icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ai-cyan-soft);
    color: var(--ai-cyan);
    border-radius: 12px;
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.ad2-outcome-tile--orange .ad2-outcome-tile__icon { background: var(--robotics-soft); color: var(--robotics-orange); }
.ad2-outcome-tile h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.ad2-outcome-tile p  { margin: 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }

.ad2-partner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-4);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
}
.ad2-partner__logo {
    background: var(--surface-2);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad2-partner__logo img { max-width: 100%; height: auto; }
@media (max-width: 768px) { .ad2-partner { grid-template-columns: 1fr; } }
.ad2-partner__relevance {
    font-style: italic;
    color: var(--ink);
    background: var(--ai-cyan-soft);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 var(--sp-2);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- 19m. Contact grid (about.php) ---------- */
.ad2-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--sp-4);
}
@media (max-width: 768px) { .ad2-contact-grid { grid-template-columns: 1fr; } }
.ad2-contact-info {
    background: var(--navy);
    color: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-4);
}
.ad2-contact-info h3 { color: #fff; margin: 0 0 var(--sp-3); font-size: 1.2rem; }
.ad2-contact-info__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: var(--sp-2) 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.ad2-contact-info__item:first-of-type { border-top: 0; }
.ad2-contact-info__item i {
    color: var(--ai-cyan);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
}
.ad2-contact-info__item strong {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.ad2-contact-info__item a, .ad2-contact-info__item address a {
    color: #fff;
    text-decoration: none;
    font-style: normal;
}
.ad2-contact-info__item a:hover { color: var(--ai-cyan); }
.ad2-contact-info address { font-style: normal; color: #fff; line-height: 1.5; }
.ad2-contact-info__choose {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.78);
    font-size: 0.85rem;
    line-height: 1.5;
}
.ad2-contact-info__choose strong { color: #fff; display: inline; font-size: inherit; text-transform: none; letter-spacing: 0; margin: 0; }

/* Legacy v1 mobile overrides — class-scoped only.
   Global element selectors and [style*="..."] rules were removed
   in the mobile-fix pass because they broke v2 ad2-* pages. */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3.2rem !important;
        margin-bottom: 20px;
    }
    .hero-section .subtitle {
        font-size: 1.5rem !important;
        margin-bottom: 30px;
    }
    .section-title-modern h2 {
        font-size: 2.8rem !important;
        margin-bottom: 15px;
    }
    .section-title-modern p {
        font-size: 1.4rem !important;
    }
    .cta-button {
        font-size: 1.2rem !important;
        padding: 18px 40px;
    }
    .track-card h3 { font-size: 1.8rem !important; }
    .track-card h4 { font-size: 1.4rem !important; }
    .track-card p  { font-size: 1.15rem !important; }
    .feature-item h4 { font-size: 1.5rem !important; }
    .feature-item p  { font-size: 1.15rem !important; }
    .curriculum-stage h3 { font-size: 1.8rem !important; }
    .curriculum-stage h4 { font-size: 1.4rem !important; }
    .course-list li { font-size: 1.15rem !important; }
    .path-visualization { padding-bottom: 100px !important; }
    .path-step {
        display: block;
        margin: 15px 0 60px 0;
        z-index: 1;
        font-size: 1.2em !important;
    }
    .path-step strong { font-size: 1.5rem !important; }
    .path-step span   { font-size: 1.3rem !important; }
    .path-step small  { font-size: 1.2rem !important; }
    .path-step::after {
        content: '↓';
        right: 50%;
        top: 100%;
        bottom: auto;
        margin-top: 15px;
        transform: translateX(50%);
        z-index: 10;
        font-size: 2rem;
        color: var(--primary-color);
        background: white;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .path-step:last-child { margin-bottom: 15px; }
    .stat-number { font-size: 3rem !important; }
    .stat-label  { font-size: 1.3rem !important; }
    .track-badge {
        font-size: 1.1rem !important;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero-section h1       { font-size: 3.5rem !important; }
    .hero-section .subtitle{ font-size: 1.6rem !important; }
    .section-title-modern h2 { font-size: 3rem !important; }
    .section-title-modern p  { font-size: 1.5rem !important; }
    .cta-button {
        font-size: 1.3rem !important;
        padding: 20px 45px;
    }
    .track-card h3 { font-size: 2rem !important; }
    .track-card h4 { font-size: 1.6rem !important; }
    .track-card p  { font-size: 1.3rem !important; }
    .feature-item h4 { font-size: 1.7rem !important; }
    .feature-item p  { font-size: 1.3rem !important; }
    .curriculum-stage h3 { font-size: 2rem !important; }
    .curriculum-stage h4 { font-size: 1.6rem !important; }
    .course-list li { font-size: 1.3rem !important; }
    .path-step strong { font-size: 1.7rem !important; }
    .path-step span   { font-size: 1.5rem !important; }
    .path-step small  { font-size: 1.4rem !important; }
    .stat-number { font-size: 3.5rem !important; }
    .stat-label  { font-size: 1.5rem !important; }
    .track-badge {
        font-size: 1.2rem !important;
        padding: 10px 18px;
    }
}
