/* ===================================================================
   TBD International Academy — Public Site Styles
   Mobile-first. Shared by public-blog / about / academics /
   admissions / contact.

   Layer order:
     1. Tokens          6. Hero
     2. Base            7. Sections & cards
     3. Utilities       8. Page components
     4. Buttons         9. Footer & floating UI
     5. Navbar         10. Motion & breakpoints
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===================================================================
   1. Tokens
   The public pages do not load design-system.css, so the brand
   palette is restated here. Keep in sync with css/design-system.css.
   =================================================================== */
:root {
    /* Brand — crest navy + ribbon red */
    --brand-navy: #1E2A5A;
    --brand-navy-deep: #141C3E;
    --brand-navy-light: #2E3D7D;
    --brand-red: #E23C3C;
    --brand-red-deep: #B92E2E;
    --brand-red-light: #F06767;
    --brand-navy-rgb: 30, 42, 90;
    --brand-red-rgb: 226, 60, 60;

    /* Primary / secondary */
    --color-primary: hsl(227, 52%, 34%);
    --color-primary-dark: hsl(227, 56%, 21%);
    --color-primary-light: hsl(227, 48%, 55%);
    --color-secondary: hsl(200, 90%, 55%);
    --color-secondary-dark: hsl(200, 90%, 45%);
    --color-secondary-light: hsl(200, 90%, 65%);

    /* Extended accent family — the colour that carries the redesign */
    --color-accent: var(--brand-red);
    --color-sky: hsl(200, 90%, 52%);
    --color-sky-deep: hsl(206, 85%, 42%);
    --color-yellow: hsl(43, 96%, 52%);
    --color-amber: hsl(38, 95%, 50%);
    --color-amber-deep: hsl(30, 92%, 45%);
    --color-green: hsl(158, 68%, 40%);
    --color-emerald: hsl(158, 68%, 40%);
    --color-emerald-deep: hsl(162, 72%, 30%);
    --color-violet: hsl(262, 72%, 58%);
    --color-violet-deep: hsl(262, 66%, 46%);
    --color-teal: hsl(184, 72%, 42%);

    /* Neutrals */
    --color-white: hsl(0, 0%, 100%);
    --color-gray-50: hsl(222, 38%, 98%);
    --color-gray-100: hsl(222, 30%, 95%);
    --color-gray-200: hsl(222, 26%, 90%);
    --color-gray-300: hsl(222, 20%, 80%);
    --color-gray-600: hsl(222, 16%, 42%);
    --color-gray-800: hsl(222, 22%, 20%);
    --color-gray-900: hsl(226, 30%, 13%);

    /* Text */
    --text-primary: hsl(227, 58%, 15%);
    --text-secondary: hsl(227, 26%, 38%);
    --text-tertiary: hsl(227, 18%, 52%);
    --text-on-dark: hsla(0, 0%, 100%, 0.82);

    /* Surfaces */
    --surface: var(--color-white);
    --surface-muted: var(--color-gray-50);
    --surface-tint: hsl(224, 62%, 97%);
    --border-soft: hsla(227, 40%, 40%, 0.10);
    --border-strong: hsla(227, 40%, 40%, 0.18);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(227, 48%, 45%) 0%, hsl(227, 52%, 34%) 50%, hsl(227, 58%, 22%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(227, 54%, 27%) 0%, hsl(227, 48%, 45%) 45%, hsl(200, 90%, 50%) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 55%, var(--brand-red-deep) 100%);
    --gradient-sky: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-sky) 55%, var(--color-sky-deep) 100%);
    --gradient-amber: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-amber) 55%, var(--color-amber-deep) 100%);
    --gradient-emerald: linear-gradient(135deg, hsl(158, 62%, 52%) 0%, var(--color-emerald) 55%, var(--color-emerald-deep) 100%);
    --gradient-violet: linear-gradient(135deg, hsl(262, 78%, 68%) 0%, var(--color-violet) 55%, var(--color-violet-deep) 100%);
    --gradient-rainbow: linear-gradient(90deg, var(--brand-navy) 0%, var(--color-sky) 25%, var(--color-emerald) 50%, var(--color-amber) 75%, var(--brand-red) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(9, 14, 34, 0) 0%, rgba(9, 14, 34, 0.55) 100%);

    /* Aliases for tokens the portal stylesheet defines under different
       names. admissions.html carries inline styles inherited from the
       portal, and without these its form borders fell back to
       currentColor — heavy black rules around every input. */
    --border-primary: var(--border-strong);
    --bg-primary: var(--surface-muted);
    --bg-secondary: var(--surface-tint);

    /* Default card accent (overridden per card) */
    --accent: var(--brand-navy);
    --accent-soft: hsla(227, 52%, 40%, 0.12);
    --accent-grad: var(--gradient-primary);

    /* Shadows — layered, tinted with brand navy */
    --shadow-xs: 0 1px 2px rgba(var(--brand-navy-rgb), 0.06);
    --shadow-sm: 0 2px 8px rgba(var(--brand-navy-rgb), 0.07), 0 1px 2px rgba(var(--brand-navy-rgb), 0.04);
    --shadow-md: 0 8px 24px rgba(var(--brand-navy-rgb), 0.10), 0 2px 6px rgba(var(--brand-navy-rgb), 0.05);
    --shadow-lg: 0 18px 48px rgba(var(--brand-navy-rgb), 0.16), 0 4px 12px rgba(var(--brand-navy-rgb), 0.06);
    --shadow-xl: 0 32px 72px rgba(var(--brand-navy-rgb), 0.22);
    --shadow-glow: 0 12px 32px rgba(var(--brand-navy-rgb), 0.28);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Fluid rhythm */
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --section-space: clamp(3.5rem, 9vw, 7rem);
    --max-width: 1280px;

    /* Radii */
    --radius-sm: 0.625rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 999px;

    /* Type */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-height: 64px;
}

/* ===================================================================
   2. Base
   =================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--surface-muted);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anchor targets clear the fixed navbar. */
[id] {
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--color-sky);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(var(--brand-red-rgb), 0.2);
    color: var(--text-primary);
}

/* ===================================================================
   3. Utilities
   =================================================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hand-drawn style underline behind a word. */
.text-marker {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.text-marker::after {
    content: '';
    position: absolute;
    left: -0.1em;
    right: -0.1em;
    bottom: 0.06em;
    height: 0.32em;
    background: linear-gradient(90deg, rgba(var(--brand-red-rgb), 0.28), rgba(255, 193, 7, 0.42));
    border-radius: var(--radius-pill);
    z-index: -1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll reveal — JS adds .is-visible. */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===================================================================
   4. Buttons
   =================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    min-height: 48px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn i {
    font-size: 0.95em;
    transition: transform 0.3s var(--ease-spring);
}

.btn:active {
    transform: translateY(1px) scale(0.985);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Sheen that sweeps across on hover. */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
    z-index: -1;
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 10px 26px rgba(var(--brand-red-rgb), 0.32);
}

.btn-secondary {
    background: var(--surface);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-primary), var(--shadow-xs);
}

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

.btn-light {
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.26);
}

.btn-sm {
    padding: 0.6rem 1.15rem;
    min-height: 42px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

@media (hover: hover) {

    .btn-primary:hover,
    .btn-accent:hover,
    .btn-light:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

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

    .btn:hover i.fa-arrow-right {
        transform: translateX(4px);
    }
}

/* ===================================================================
   5. Navbar
   =================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    padding-top: env(safe-area-inset-top);
}

/* The blur lives on a pseudo-element: backdrop-filter on .navbar itself
   would make it the containing block for the position:fixed drawer. */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: background 0.3s var(--ease-out);
}

.navbar.scrolled::before {
    background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-soft);
}

/* Reading-progress bar pinned to the bottom edge of the bar. */
.navbar-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 100%;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

.navbar-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--gradient-rainbow);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    transition: transform 0.1s linear;
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem var(--gutter);
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-logo span {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.navbar-logo-icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-spring);
}

.navbar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-logo:hover .navbar-logo-icon {
    transform: rotate(-6deg) scale(1.06);
}

/* --- Mobile drawer -------------------------------------------------- */
.navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    background: #fff;
    box-shadow: -20px 0 60px rgba(var(--brand-navy-rgb), 0.25);
    padding: calc(var(--nav-height) + env(safe-area-inset-top) + 1.25rem) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.38s var(--ease-out), visibility 0.38s;
    z-index: 1001;
}

.navbar-collapse.active {
    transform: none;
    visibility: visible;
}

.navbar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding: 0.9rem 0.85rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

.navbar-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    flex: none;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
    background: var(--surface-tint);
}

.navbar-link.active::before {
    background: var(--brand-red);
    transform: scale(1.35);
}

.navbar-cta {
    margin-top: 1rem;
}

/* Contact details parked at the bottom of the drawer. */
.navbar-drawer-meta {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-soft);
}

.navbar-drawer-meta a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 40px;
}

.navbar-drawer-meta i {
    color: var(--brand-red);
    width: 1rem;
    text-align: center;
}

/* Sits just below .navbar (z-index 1000) so the bar and its close
   button stay reachable while the drawer is open. */
.navbar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 34, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
    z-index: 999;
}

.navbar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* --- Hamburger ------------------------------------------------------ */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    flex: none;
    align-items: center;
    border-radius: var(--radius-sm);
    background: var(--surface-tint);
    z-index: 1002;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--color-primary);
    transition: transform 0.3s var(--ease-out), opacity 0.2s linear, background 0.3s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Login button lives in the drawer on mobile. */
.navbar-container > .btn {
    display: none;
}

/* ===================================================================
   6. Hero
   =================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2.5rem) var(--gutter) 3rem;
    background:
        radial-gradient(90% 60% at 12% 0%, hsla(200, 92%, 62%, 0.18) 0%, transparent 60%),
        radial-gradient(70% 55% at 92% 8%, hsla(0, 78%, 62%, 0.16) 0%, transparent 62%),
        radial-gradient(80% 70% at 50% 108%, hsla(158, 68%, 48%, 0.14) 0%, transparent 60%),
        linear-gradient(165deg, hsl(224, 70%, 98%) 0%, hsl(210, 60%, 97%) 50%, hsl(28, 70%, 98%) 100%);
}

/* Faint dot grid over the wash. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--brand-navy-rgb), 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
    z-index: -2;
}

/* Drifting colour orbs. */
.hero::after {
    content: '';
    position: absolute;
    top: -18%;
    right: -22%;
    width: min(70vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.30) 0%, transparent 68%);
    animation: float 22s ease-in-out infinite;
    z-index: -1;
}

.hero-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: riseIn 0.9s var(--ease-out) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    margin-bottom: 1.25rem;
}

.hero-badge i {
    color: var(--brand-red);
    font-size: 0.7rem;
    transition: transform 0.3s var(--ease-spring);
}

/* When the badge opens the admission popup it is a <button>. */
button.hero-badge {
    min-height: 40px;
    text-align: left;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}

button.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button.hero-badge:hover i {
    transform: translateX(3px);
}

.hero-badge-dot {
    width: 9px;
    height: 9px;
    background: var(--color-emerald);
    border-radius: 50%;
    flex: none;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulseRing 2.2s ease-out infinite;
}

/* Crest lockup above the headline. */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-brand img {
    width: 54px;
    height: 54px;
    flex: none;
    filter: drop-shadow(0 6px 14px rgba(var(--brand-navy-rgb), 0.25));
}

.hero-brand-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--brand-navy);
}

.hero-brand-motto {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 600;
    color: var(--brand-red);
}

.hero-title {
    font-size: clamp(2.05rem, 7.4vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, hsl(227, 58%, 22%) 0%, hsl(227, 48%, 42%) 45%, hsl(206, 85%, 42%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.75;
    max-width: 56ch;
}

.hero-buttons,
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Trust row under the hero CTAs. */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.hero-image {
    position: relative;
    animation: riseIn 0.9s 0.15s var(--ease-out) both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--brand-navy);
}

.hero-image-wrapper img {
    width: 100%;
}

/* Floating stat card — sits below the image on phones, over it on
   larger screens (see breakpoints). */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: -2rem;
    margin-inline: 0.75rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--border-soft);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-stat:nth-child(2) .hero-stat-value {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat:nth-child(3) .hero-stat-value {
    background: var(--gradient-emerald);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 0.2rem;
}

/* ===================================================================
   7. Sections & cards
   =================================================================== */
.section {
    position: relative;
    padding: var(--section-space) var(--gutter);
}

.section-light {
    background: var(--surface);
}

.section-tint {
    background:
        radial-gradient(60% 50% at 100% 0%, hsla(200, 90%, 60%, 0.10) 0%, transparent 60%),
        radial-gradient(50% 50% at 0% 100%, hsla(0, 78%, 62%, 0.09) 0%, transparent 60%),
        var(--surface-tint);
}

.section-dark {
    background:
        radial-gradient(70% 60% at 85% 10%, hsla(0, 78%, 55%, 0.28) 0%, transparent 60%),
        radial-gradient(60% 55% at 10% 95%, hsla(200, 90%, 55%, 0.30) 0%, transparent 62%),
        linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    color: #fff;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-subtitle {
    color: var(--text-on-dark);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    box-shadow: inset 0 0 0 1px currentColor;
}

/* Colour variants for the eyebrow badge. */
.section-badge.badge-red {
    --accent: var(--brand-red);
    --accent-soft: rgba(var(--brand-red-rgb), 0.10);
}

.section-badge.badge-sky {
    --accent: var(--color-sky-deep);
    --accent-soft: hsla(200, 90%, 52%, 0.12);
}

.section-badge.badge-amber {
    --accent: var(--color-amber-deep);
    --accent-soft: hsla(38, 95%, 50%, 0.14);
}

.section-badge.badge-emerald {
    --accent: var(--color-emerald-deep);
    --accent-soft: hsla(158, 68%, 40%, 0.12);
}

.section-badge.badge-violet {
    --accent: var(--color-violet-deep);
    --accent-soft: hsla(262, 72%, 58%, 0.12);
}

.section-dark .section-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.section-title {
    font-size: clamp(1.65rem, 4.6vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 62ch;
    margin: 0 auto;
    line-height: 1.75;
}

/* --- Cards ---------------------------------------------------------- */
.card {
    position: relative;
    isolation: isolate;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 4vw, 2rem);
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

/* Accent bar that grows across the top on hover. */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--accent-grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.45s var(--ease-out);
}

/* Soft accent wash bleeding in from the top-right corner. */
.card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    z-index: -1;
}

.card.is-visible::before,
.card:focus-within::before {
    transform: scaleX(1);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 8px 20px var(--accent-soft);
    transition: transform 0.4s var(--ease-spring);
}

.card-title {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
}

.card-link i {
    transition: transform 0.3s var(--ease-spring);
}

.card-link:hover i,
.card-link:focus-visible i {
    transform: translateX(5px);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover::after {
        opacity: 1;
    }

    .card:hover .card-icon {
        transform: rotate(-6deg) scale(1.08);
    }
}

/* Accent rotation so grids read as colourful without per-card markup. */
.grid > .card:nth-child(6n + 1) {
    --accent: var(--brand-navy);
    --accent-soft: rgba(var(--brand-navy-rgb), 0.12);
    --accent-grad: var(--gradient-primary);
}

.grid > .card:nth-child(6n + 2) {
    --accent: var(--brand-red-deep);
    --accent-soft: rgba(var(--brand-red-rgb), 0.13);
    --accent-grad: var(--gradient-accent);
}

.grid > .card:nth-child(6n + 3) {
    --accent: var(--color-sky-deep);
    --accent-soft: hsla(200, 90%, 52%, 0.14);
    --accent-grad: var(--gradient-sky);
}

.grid > .card:nth-child(6n + 4) {
    --accent: var(--color-emerald-deep);
    --accent-soft: hsla(158, 68%, 40%, 0.14);
    --accent-grad: var(--gradient-emerald);
}

.grid > .card:nth-child(6n + 5) {
    --accent: var(--color-amber-deep);
    --accent-soft: hsla(38, 95%, 50%, 0.16);
    --accent-grad: var(--gradient-amber);
}

.grid > .card:nth-child(6n + 6) {
    --accent: var(--color-violet-deep);
    --accent-soft: hsla(262, 72%, 58%, 0.14);
    --accent-grad: var(--gradient-violet);
}

/* --- Grid ----------------------------------------------------------- */
.grid {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    grid-template-columns: 1fr;
}

/* ===================================================================
   8. Page components
   =================================================================== */

/* --- Marquee ticker ------------------------------------------------- */
.ticker {
    background: var(--brand-navy);
    color: #fff;
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ticker-item i {
    color: var(--brand-red-light);
}

/* --- Stat band ------------------------------------------------------ */
.stat-band {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-cell {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.25rem, 4vw, 2rem) 1rem;
    text-align: center;
    transition: background 0.3s var(--ease-out);
}

.stat-cell:hover {
    background: rgba(255, 255, 255, 0.12);
}

.stat-cell i {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    display: block;
}

.stat-cell:nth-child(1) i { color: var(--color-secondary-light); }
.stat-cell:nth-child(2) i { color: var(--brand-red-light); }
.stat-cell:nth-child(3) i { color: hsl(43, 96%, 60%); }
.stat-cell:nth-child(4) i { color: hsl(158, 62%, 58%); }

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 6vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    display: block;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-on-dark);
}

/* --- Tabs (programmes) ---------------------------------------------- */
.tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    width: max-content;
    max-width: 100%;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    min-height: 44px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.tab[aria-selected="true"] {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.tab-panel {
    display: none;
    animation: riseIn 0.5s var(--ease-out) both;
}

.tab-panel.active {
    display: block;
}

.tab-panel-inner {
    display: grid;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}

.tab-panel-visual {
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--accent-grad);
    color: #fff;
    text-align: center;
}

.tab-panel-visual i {
    font-size: clamp(2.5rem, 9vw, 3.75rem);
    margin-bottom: 0.75rem;
    display: block;
}

.tab-panel-age {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.tab-panel-body h3 {
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    margin-bottom: 0.65rem;
}

.tab-panel-body > p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--accent);
    margin-top: 0.3rem;
    flex: none;
}

/* --- Testimonials --------------------------------------------------- */
.testimonial-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 88%);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
}

.testimonial-rail::-webkit-scrollbar {
    display: none;
}

.testimonial {
    scroll-snap-align: center;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 4vw, 2rem);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: -0.18em;
    right: 0.28em;
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-soft);
    z-index: -1;
}

@media (hover: hover) {
    .testimonial:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
}

.testimonial-stars {
    color: var(--color-amber);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.testimonial-quote {
    color: var(--text-secondary);
    font-size: 0.9875rem;
    line-height: 1.8;
    flex: 1;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-soft);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: var(--accent-grad);
}

.testimonial-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Scroll-rail dots */
.rail-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.rail-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--border-strong);
    transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.rail-dot.active {
    width: 26px;
    background: var(--brand-red);
}

/* --- Steps / admissions path ---------------------------------------- */
.steps {
    display: grid;
    gap: 1rem;
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) {
    .step:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

.step-number {
    counter-increment: step;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    background: var(--accent-grad);
    box-shadow: 0 6px 16px var(--accent-soft);
}

.step-number::before {
    content: counter(step);
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.steps > .step:nth-child(4n + 1) { --accent-grad: var(--gradient-primary); --accent-soft: rgba(var(--brand-navy-rgb), 0.2); }
.steps > .step:nth-child(4n + 2) { --accent-grad: var(--gradient-sky); --accent-soft: hsla(200, 90%, 52%, 0.25); }
.steps > .step:nth-child(4n + 3) { --accent-grad: var(--gradient-amber); --accent-soft: hsla(38, 95%, 50%, 0.28); }
.steps > .step:nth-child(4n + 4) { --accent-grad: var(--gradient-accent); --accent-soft: rgba(var(--brand-red-rgb), 0.25); }

/* --- Accordion (FAQ) ------------------------------------------------ */
.accordion {
    display: grid;
    gap: 0.75rem;
    max-width: 820px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.accordion-item.open {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.1rem 1.25rem;
    min-height: 56px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.accordion-item.open .accordion-trigger {
    color: var(--color-primary);
}

.accordion-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    color: #fff;
    background: var(--brand-navy);
    transition: transform 0.35s var(--ease-spring), background 0.3s var(--ease-out);
}

.accordion-item.open .accordion-icon {
    transform: rotate(135deg);
    background: var(--brand-red);
}

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease-out);
}

.accordion-item.open .accordion-panel {
    grid-template-rows: 1fr;
}

.accordion-panel > div {
    overflow: hidden;
}

.accordion-panel p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* --- CTA panel ------------------------------------------------------ */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 6vw, 4rem) clamp(1.35rem, 5vw, 3rem);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(60% 70% at 88% 8%, hsla(0, 80%, 58%, 0.55) 0%, transparent 62%),
        radial-gradient(70% 70% at 6% 100%, hsla(200, 92%, 55%, 0.6) 0%, transparent 60%),
        linear-gradient(140deg, var(--brand-navy-light) 0%, var(--brand-navy) 55%, var(--brand-navy-deep) 100%);
    box-shadow: var(--shadow-xl);
}

.cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    z-index: -1;
}

.cta-panel h2 {
    font-size: clamp(1.5rem, 5vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.cta-panel p {
    color: var(--text-on-dark);
    max-width: 58ch;
    margin: 0 auto 1.75rem;
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Contact strip -------------------------------------------------- */
.contact-strip {
    display: grid;
    gap: 0.75rem;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) {
    .contact-chip:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }
}

.contact-chip i {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent-grad);
}

.contact-chip:nth-child(1) { --accent-grad: var(--gradient-primary); }
.contact-chip:nth-child(2) { --accent-grad: var(--gradient-accent); }
.contact-chip:nth-child(3) { --accent-grad: var(--gradient-emerald); }

.contact-chip-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.contact-chip-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* ===================================================================
   9. Footer & floating UI
   =================================================================== */
.footer {
    position: relative;
    background: linear-gradient(160deg, var(--color-gray-900) 0%, var(--brand-navy-deep) 60%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: clamp(2.5rem, 7vw, 4rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    color: var(--brand-red-light);
    margin-bottom: 0.85rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 46ch;
}

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

.footer-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--ease-spring), background 0.3s var(--ease-out), border-color 0.3s;
}

.footer-social-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-link[aria-label*="WhatsApp"]:hover {
    background: #25D366;
    border-color: #25D366;
}

.footer-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    padding: 0.45rem 0;
    min-height: 40px;
}

.footer-link i {
    color: var(--brand-red-light);
    width: 1rem;
    text-align: center;
    flex: none;
}

a.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
}

/* --- Back to top ---------------------------------------------------- */
.to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-spring), visibility 0.3s;
    z-index: 900;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    box-shadow: var(--shadow-xl);
}

/* --- Sticky mobile action bar --------------------------------------- */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 24px rgba(var(--brand-navy-rgb), 0.10);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease-out);
}

.mobile-bar.show {
    transform: none;
}

.mobile-bar .btn {
    flex: 1;
    min-height: 46px;
    font-size: 0.9rem;
    padding-inline: 0.75rem;
}

body:has(.mobile-bar) .footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

body:has(.mobile-bar.show) .to-top {
    bottom: calc(5rem + env(safe-area-inset-bottom));
}

/* ===================================================================
   9b. Admission popup
   Modelled on the school's printed admission flyer: navy crest band,
   two-tone headline, four level cards, amber vision/mission block and
   a contact footer.
   =================================================================== */
body.modal-open {
    overflow: hidden;
}

.adm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: end center;
    padding: 0;
}

/* A class selector outranks the UA [hidden] rule, so restate it here —
   otherwise the closed overlay keeps swallowing clicks page-wide. */
.adm-modal[hidden] {
    display: none;
}

/* The overlay is still painted while it fades out. Stop it intercepting
   clicks the moment it starts closing, rather than when it is removed. */
.adm-modal:not(.is-open) {
    pointer-events: none;
}

.adm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 34, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.adm-modal.is-open .adm-backdrop {
    opacity: 1;
}

.adm-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    max-height: 92svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    /* Bottom sheet on phones — see the ≥560px block for the centred card. */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -20px 60px rgba(9, 14, 34, 0.4);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

.adm-modal.is-open .adm-dialog {
    transform: none;
}

.adm-dialog:focus {
    outline: none;
}

.adm-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}

.adm-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* --- Crest band ----------------------------------------------------- */
.adm-crest-band {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    color: #fff;
    background:
        radial-gradient(70% 90% at 100% 0%, hsla(0, 78%, 55%, 0.35) 0%, transparent 62%),
        linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 55%, var(--brand-navy-deep) 100%);
}

.adm-crest-band img {
    width: 48px;
    height: 48px;
    flex: none;
}

.adm-school {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.adm-motto {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-style: italic;
    font-weight: 600;
    color: var(--brand-red-light);
}

.adm-tagline {
    flex: none;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(43, 96%, 62%);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid hsla(43, 96%, 62%, 0.45);
}

/* --- Headline ------------------------------------------------------- */
.adm-body {
    padding: 1.5rem 1.25rem;
}

.adm-headline {
    text-align: center;
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.adm-headline-1,
.adm-headline-2 {
    display: block;
}

.adm-headline-1 {
    color: var(--brand-navy);
}

.adm-headline-2 {
    color: var(--brand-red);
}

.adm-into {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0 1.25rem;
    color: var(--text-tertiary);
}

.adm-into::before,
.adm-into::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--border-strong);
}

.adm-into span {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- Level cards ---------------------------------------------------- */
.adm-levels {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
}

.adm-level {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) {
    .adm-level:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

.adm-level-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    background: var(--accent-grad);
    margin-bottom: 0.2rem;
}

.adm-level-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.adm-level-classes {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-tertiary);
}

.adm-level-blurb {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.adm-accent-amber {
    --accent: var(--color-amber-deep);
    --accent-grad: var(--gradient-amber);
}

.adm-accent-emerald {
    --accent: var(--color-emerald-deep);
    --accent-grad: var(--gradient-emerald);
}

.adm-accent-red {
    --accent: var(--brand-red-deep);
    --accent-grad: var(--gradient-accent);
}

.adm-accent-sky {
    --accent: var(--color-sky-deep);
    --accent-grad: var(--gradient-sky);
}

/* --- Vision & mission ----------------------------------------------- */
.adm-purpose {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsl(43, 96%, 94%) 0%, hsl(38, 95%, 90%) 100%);
    border: 1px solid hsla(38, 95%, 45%, 0.25);
}

.adm-purpose h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-amber-deep);
    margin-bottom: 0.5rem;
}

.adm-purpose p,
.adm-purpose li {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.adm-purpose ul {
    list-style: none;
    display: grid;
    gap: 0.3rem;
}

.adm-purpose li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.adm-purpose li::before {
    content: '\f058'; /* fa-check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--color-amber-deep);
    flex: none;
}

/* --- Actions -------------------------------------------------------- */
.adm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

/* --- Contact footer ------------------------------------------------- */
.adm-contact {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
    background:
        radial-gradient(60% 80% at 0% 0%, hsla(200, 90%, 55%, 0.22) 0%, transparent 60%),
        linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    color: #fff;
}

.adm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.adm-contact-item > i {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 0.8125rem;
    color: var(--brand-navy-deep);
    background: hsl(43, 96%, 58%);
}

.adm-contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.adm-contact-value {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.adm-contact-value a:hover {
    color: hsl(43, 96%, 62%);
}

.adm-sep {
    opacity: 0.45;
    padding: 0 0.35rem;
}

.adm-quote {
    padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom));
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: var(--brand-navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- ≥560px: centred card, wider grids ------------------------------ */
@media (min-width: 560px) {
    .adm-modal {
        place-items: center;
        padding: 1.5rem;
    }

    .adm-dialog {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        transform: translateY(24px) scale(0.97);
        opacity: 0;
        transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease-out);
    }

    .adm-modal.is-open .adm-dialog {
        transform: none;
        opacity: 1;
    }

    .adm-actions {
        flex-direction: row;
        justify-content: center;
    }

    .adm-purpose {
        grid-template-columns: 1fr 1fr;
    }

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

/* --- ≥768px: all four levels in a row ------------------------------- */
@media (min-width: 768px) {
    .adm-levels {
        grid-template-columns: repeat(4, 1fr);
    }

    .adm-crest-band,
    .adm-body,
    .adm-contact {
        padding-inline: 1.75rem;
    }

    .adm-crest-band {
        padding-right: 3.5rem;
    }
}

/* ===================================================================
   10. Motion
   =================================================================== */
@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-24px, -30px, 0) rotate(8deg); }
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================================================
   11. Breakpoints (mobile-first)
   =================================================================== */

/* --- ≥560px: two-up grids, side-by-side buttons --------------------- */
@media (min-width: 560px) {
    .hero-buttons,
    .hero-cta,
    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-actions {
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .stat-band {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-stats {
        margin-inline: 1.5rem;
    }
}

/* --- ≥768px: hero image overlay stats, wider footer ----------------- */
@media (min-width: 768px) {
    .navbar-logo {
        font-size: 1.15rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .testimonial-rail {
        grid-auto-columns: minmax(300px, 46%);
    }

    .contact-strip {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* --- ≥992px: full desktop layout ------------------------------------ */
@media (min-width: 992px) {
    :root {
        --nav-height: 76px;
    }

    /* Nav returns to a single inline row. */
    .navbar-toggle,
    .navbar-backdrop,
    .navbar-drawer-meta {
        display: none;
    }

    .navbar-container > .btn {
        display: inline-flex;
    }

    .navbar-collapse {
        position: static;
        width: auto;
        flex: 0 1 auto;
        padding: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
        transform: none;
        visibility: visible;
        flex-direction: row;
    }

    .navbar-collapse .navbar-cta {
        display: none;
    }

    .navbar-menu {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
    }

    .navbar-logo {
        flex: 0 0 auto;
    }

    .navbar-link {
        padding: 0.5rem 0.85rem;
        min-height: 40px;
        font-size: 0.95rem;
        border-radius: var(--radius-pill);
    }

    .navbar-link::before {
        display: none;
    }

    .navbar-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.15rem;
        width: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--gradient-accent);
        transform: translateX(-50%);
        transition: width 0.3s var(--ease-out);
    }

    .navbar-link:hover,
    .navbar-link.active {
        background: transparent;
    }

    .navbar-link:hover::after,
    .navbar-link.active::after {
        width: calc(100% - 1.7rem);
    }

    /* Hero goes two-column with the stat card floating on the image. */
    .hero {
        min-height: 92vh;
        min-height: 92svh;
        padding: calc(var(--nav-height) + 3rem) var(--gutter) 4rem;
    }

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

    .hero-brand img {
        width: 64px;
        height: 64px;
    }

    .hero-brand-name {
        font-size: 1.15rem;
    }

    .hero-stats {
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        margin: 0;
        padding: 1.25rem 0.75rem;
    }

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

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .tab-panel-inner {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .testimonial-rail {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
        gap: 1.5rem;
    }

    .rail-dots {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
        gap: 3rem;
    }

    .footer-grid > :first-child {
        grid-column: auto;
    }

    .mobile-bar {
        display: none;
    }

    body:has(.mobile-bar) .footer {
        padding-bottom: 1.5rem;
    }

    .to-top {
        right: 1.75rem;
        bottom: 1.75rem;
        width: 52px;
        height: 52px;
    }
}

/* --- Landscape phones: keep the hero from getting tall -------------- */
@media (max-width: 991px) and (orientation: landscape) {
    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
    }

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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .ticker-track {
        animation: none;
    }
}

/* ===================================================================
   11. Conversion & trust layer
   Added for the tbdacademy.org front-page rework: skip link, the
   parent-portal showcase, and the proof-strip sublabels that turn
   "500 pupils / 50 teachers" into the 1:10 ratio it actually is.
   =================================================================== */

/* --- Skip link -------------------------------------------------------
   Off-screen until focused. First tab stop on every public page. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* --- Proof strip sublabels ------------------------------------------
   The number alone made the reader do arithmetic; the sublabel does it
   for them. */
.stat-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    /* 0.72 keeps this above 4.5:1 even under the light radial washes
       that .section-dark lays over the navy. */
    color: rgba(255, 255, 255, 0.72);
}

.stat-value .stat-ratio-sep {
    opacity: 0.55;
    padding-inline: 0.05em;
}

/* --- Parent portal showcase -----------------------------------------
   The portal is the one thing on this site a competitor in Benue
   cannot copy this term. It gets a section, not a nav link. */
.showcase-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.showcase-copy .section-badge {
    margin-bottom: 1rem;
}

.showcase-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.showcase-copy > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 52ch;
}

.ticklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    gap: 0.75rem;
}

.ticklist li {
    position: relative;
    padding-left: 2.25rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.ticklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-emerald-deep);
    background: hsla(158, 68%, 40%, 0.14);
}

/* Phone mock — the screenshot inside is a real portal view. */
.phone-frame {
    max-width: 300px;
    margin-inline: auto;
    border: 9px solid var(--brand-navy-deep);
    border-radius: 2.25rem;
    overflow: hidden;
    background: var(--brand-navy-deep);
    box-shadow: var(--shadow-xl);
    transform: rotate(-2.5deg);
    transition: transform 0.45s var(--ease-out);
}

.phone-frame:hover {
    transform: rotate(0deg) translateY(-6px);
}

.phone-frame img,
.phone-frame svg {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Footer trust row ------------------------------------------------
   Replaces "Designed with <heart> for Excellence". A school proves it
   is a school here, not with an emoji. */
.footer-trust {
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer-trust strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.footer-bottom-links {
    margin-top: 0.35rem;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --- Map facade ------------------------------------------------------
   Stands in for the Google Maps embed until the reader asks for it. */
.map-facade {
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    border: 0;
    cursor: pointer;
    text-align: center;
    color: var(--color-primary);
    background:
        radial-gradient(60% 60% at 50% 0%, hsla(200, 90%, 55%, 0.10) 0%, transparent 70%),
        var(--surface-tint);
    transition: background 0.3s var(--ease-out);
}

.map-facade:hover {
    background:
        radial-gradient(60% 60% at 50% 0%, hsla(200, 90%, 55%, 0.18) 0%, transparent 70%),
        var(--surface-tint);
}

.map-facade i {
    font-size: 1.85rem;
}

.map-facade-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.map-facade-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* --- Proprietor / leadership block -----------------------------------
   A named, photographed leader is the highest-trust element a school
   site can carry. Portrait sits left on desktop, on top on mobile. */
.leader {
    display: grid;
    gap: clamp(1.75rem, 5vw, 3rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface-tint);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--color-amber);
}

@media (min-width: 820px) {
    .leader {
        grid-template-columns: minmax(240px, 300px) 1fr;
    }
}

.leader-portrait {
    margin: 0;
}

.leader-portrait img {
    display: block;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 22%;   /* keeps the face centred on the crop */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leader-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0.75rem 0 1rem;
    color: var(--text-primary);
}

.leader-copy p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 56ch;
}

.leader-vision {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-primary) !important;
    padding-left: 1rem;
    border-left: 3px solid var(--color-amber);
}

.leader-sign {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.leader-sign strong {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
}

/* ===================================================================
   12. School life gallery + lightbox
   Masonry via CSS columns: the photos arrive in mixed portrait and
   landscape, and cropping them all to one ratio would throw away the
   part of the frame that makes each shot worth showing.
   =================================================================== */
.gallery-wall {
    columns: 3;
    column-gap: 1rem;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
    .gallery-wall { columns: 2; }
}

@media (max-width: 540px) {
    .gallery-wall { columns: 1; }
}

.shot {
    break-inside: avoid;
    margin: 0 0 1rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.shot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.shot-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    line-height: 0;
}

.shot-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.shot-zoom {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    background: rgba(var(--brand-navy-rgb), 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}

.shot-btn:hover .shot-zoom,
.shot-btn:focus-visible .shot-zoom {
    opacity: 1;
    transform: none;
}

.shot figcaption {
    padding: 0.7rem 0.9rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Lightbox --------------------------------------------------------
   Deliberately not <dialog>: Opera Mini and older UC builds are still
   common on Nigerian Android, and this degrades to a plain overlay. */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 3vw, 2rem);
    background: rgba(8, 12, 28, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    margin: 0;
    max-width: min(100%, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    flex: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.2s var(--ease-out);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
    position: absolute;
    top: clamp(0.75rem, 3vw, 1.5rem);
    right: clamp(0.75rem, 3vw, 1.5rem);
}

/* On a phone the side arrows would crowd the photo off the screen,
   so they drop to the bottom corners instead. */
@media (max-width: 640px) {
    .lightbox-nav {
        position: absolute;
        bottom: clamp(0.75rem, 3vw, 1.5rem);
    }

    .lightbox-prev { left: clamp(0.75rem, 3vw, 1.5rem); }
    .lightbox-next { right: clamp(0.75rem, 3vw, 1.5rem); }
    .lightbox-figure img { max-height: 68vh; }
}

body.lightbox-open {
    overflow: hidden;
}

/* ===================================================================
   Fee structure (admissions.html)

   The table is rendered from js/fee-structure.js into #fee-table, one
   card per published price band. Two things drive the design: a parent
   comparing bands wants the totals to line up down the page, and a
   parent checking a single band wants the itemisation readable. So the
   totals sit on a fixed baseline at the top of every card and the items
   below them use tabular figures, which keeps the naira columns aligned
   however wide the amounts get.
   =================================================================== */

/* Segmented control — returning learners vs new intake. */
.fee-toggle {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    max-width: 26rem;
    margin: 0 auto 1rem;
    padding: 0.3rem;
    background: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
}

.fee-toggle-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
}

.fee-toggle-btn:hover {
    color: var(--text-primary);
}

.fee-toggle-btn.is-active {
    background: var(--surface);
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
}

.fee-toggle-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.fee-note {
    max-width: 46rem;
    margin: 0 auto clamp(1.75rem, 5vw, 2.75rem);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* One card per price band. auto-fit keeps six bands on three columns at
   desktop width and collapses cleanly without a breakpoint per step. */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
}

.fee-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.35rem, 3.5vw, 1.75rem);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
                border-color 0.35s var(--ease-out);
}

/* A permanent accent bar, not a hover reveal: it is the only thing
   distinguishing one band's card from the next at a glance. */
.fee-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--accent-grad);
}

.fee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

/* Walk the brand palette across the bands so each is identifiable. */
.fee-grid > .fee-card:nth-child(6n + 1) { --accent-grad: var(--gradient-violet); }
.fee-grid > .fee-card:nth-child(6n + 2) { --accent-grad: var(--gradient-amber); }
.fee-grid > .fee-card:nth-child(6n + 3) { --accent-grad: var(--gradient-sky); }
.fee-grid > .fee-card:nth-child(6n + 4) { --accent-grad: var(--gradient-primary); }
.fee-grid > .fee-card:nth-child(6n + 5) { --accent-grad: var(--gradient-emerald); }
.fee-grid > .fee-card:nth-child(6n + 6) { --accent-grad: var(--gradient-accent); }

.fee-card h3 {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.fee-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.5rem 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-navy);
    font-variant-numeric: tabular-nums;
}

.fee-total-unit {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.fee-rows {
    display: flex;
    flex-direction: column;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-soft);
}

.fee-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.fee-row + .fee-row {
    border-top: 1px solid var(--border-soft);
}

.fee-row span {
    color: var(--text-secondary);
    min-width: 0;
}

.fee-row strong {
    flex: none;
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The uniform set: charged once on admission, not every term. Tinted and
   tagged so nobody reads it as a recurring line. */
.fee-row-once {
    margin: 0.35rem -0.6rem 0;
    padding: 0.55rem 0.6rem;
    background: var(--surface-tint);
    border-top: 0;
    border-radius: var(--radius-md);
}

.fee-row-once + .fee-row,
.fee-row-once {
    border-top: 1px solid var(--border-soft);
}

.fee-row-once strong {
    color: var(--brand-navy);
}

.fee-row-tag {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-amber-deep);
}

/* Supporting panels — items to bring, and where to pay. */
.fee-extras,
.fee-bank {
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
    padding: clamp(1.35rem, 3.5vw, 1.85rem);
    background: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}

.fee-extras h3,
.fee-bank h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fee-extras p,
.fee-bank p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.fee-extras ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fee-extras li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
}

.fee-extras li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.8em;
    color: var(--color-emerald);
}

.fee-extras li strong {
    color: var(--text-primary);
}

/* Bank details: label above value, so a long account name never
   squeezes the number onto two lines on a phone. */
.fee-bank dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
    margin: 0;
}

.fee-bank dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
}

.fee-bank dd {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .fee-card,
    .fee-toggle-btn {
        transition: none;
    }

    .fee-card:hover {
        transform: none;
    }
}

/* ===================================================================
   Application fee payment (admissions.html, step 4)

   The bank account is the part of this form a parent has to copy by
   hand into a banking app, so it gets the most weight on the page:
   its own panel, one field per row, tabular figures, and a copy
   button on the account number.
   =================================================================== */

/* What is owed, before how to pay it. */
.pay-due {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.pay-due-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
}

.pay-due-amount {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-navy);
    font-variant-numeric: tabular-nums;
}

.pay-due-hint {
    flex: 1 1 14rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Method chooser — two selectable cards, not bare radios. */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.pay-methods-legend {
    padding: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pay-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out);
}

.pay-option:hover {
    border-color: var(--border-strong);
}

.pay-option.is-selected {
    border-color: var(--color-primary);
    background: var(--surface-tint);
    box-shadow: var(--shadow-sm);
}

/* The radio keeps the accessible semantics; the card carries the styling. */
.pay-option input[type="radio"] {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
}

.pay-option:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.pay-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pay-option-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pay-option-title i {
    color: var(--color-primary);
}

.pay-option-sub {
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* The account panel. */
.pay-bank {
    margin-top: 1.25rem;
    padding: clamp(1.1rem, 3vw, 1.5rem);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pay-bank-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.pay-bank-list {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
}

.pay-bank-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-soft);
}

.pay-bank-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pay-bank-row dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
}

.pay-bank-row dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* The number a parent retypes into a banking app: spaced, monospaced
   figures so digits cannot be misread or transposed. */
.pay-bank-acct {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pay-bank-acct span {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.pay-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    background: var(--surface-tint);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out);
}

.pay-copy:hover {
    color: var(--brand-navy);
    border-color: var(--color-primary);
}

.pay-copy:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.pay-copy.is-copied {
    background: hsla(158, 68%, 40%, 0.12);
    border-color: var(--color-emerald);
    color: var(--color-emerald-deep);
}

.pay-steps {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.pay-steps::marker,
.pay-steps li::marker {
    color: var(--color-primary);
    font-weight: 700;
}

.pay-note {
    display: flex;
    gap: 0.55rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    background: var(--surface-tint);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.pay-note i {
    flex: none;
    margin-top: 0.15em;
    color: var(--color-primary);
}

/* Fields inside the bank-transfer branch. */
.pay-field {
    margin-top: 1.25rem;
}

.pay-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pay-req {
    color: var(--brand-red);
}

.pay-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.pay-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px hsla(227, 52%, 34%, 0.12);
}

.pay-input-file {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

.pay-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

@media (prefers-reduced-motion: reduce) {
    .pay-option,
    .pay-copy,
    .pay-input {
        transition: none;
    }
}

/* Account strip in the "How to Apply" steps — the same account as the
   payment panel, shown early for parents who pay before they fill in. */
.pay-account-strip {
    display: grid;
    gap: clamp(1rem, 3vw, 1.75rem);
    margin-top: clamp(1.75rem, 5vw, 2.5rem);
    padding: clamp(1.15rem, 3vw, 1.6rem);
    background: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}

.pay-account-strip-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pay-account-strip-intro i {
    flex: none;
    margin-top: 0.15rem;
    font-size: 1.35rem;
    color: var(--color-primary);
}

.pay-account-strip-intro strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.pay-account-strip-intro span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pay-account-strip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
    margin: 0;
}

.pay-account-strip-list dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
}

.pay-account-strip-list dd {
    margin: 0.3rem 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
    .pay-account-strip {
        grid-template-columns: minmax(12rem, 0.8fr) 2fr;
        align-items: center;
    }
}
