/* ==========================================================================
   National Education System - Stylesheet

   Contents (search for the banner text):
     1. Design tokens            6. Homepage sections (about, academics, ...)
     2. Reset & base             7. Buttons
     3. Header & navigation      8. Section styles, cards, stats, CTA banner
     4. Eyebrow / badge          9. Forms, testimonials, alerts, FAQ
     5. Hero                    10. Footer
                                11. Responsive overrides
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   Edit colours here only. theme_helper.php re-emits --primary / --accent from
   the active theme row in the database, so the admin theme still wins.
   ========================================================================== */
:root {
    /* Brand palette: National Education System (official palette; change colours here only) */
    --navy: #001C3E;             /* primary navy: header, footer, hero overlays, headings */
    --navy-dark: #0B2A4A;        /* dark navy: body text, gradients */
    --cyan: #00B4FF;             /* accent cyan: buttons, links, active states, icons */
    --gold-brand: #E1A10B;       /* golden yellow: Apply Now, premium highlights, dividers */
    --red-brand: #E53935;        /* red: sparing highlights only */
    --light-blue: #E6F4FF;       /* light blue: tinted sections and cards */
    --slate: #64748B;            /* soft gray: secondary text */
    --bg-main: #F8FAFC;          /* main page background */
    --cyan-text: #00679E;        /* cyan darkened for small text on white (derived; #00B4FF is only 2.4:1 there) */
    --gold-hover: #C48A06;       /* gold hover (derived) */

    --primary: var(--navy);
    --primary-dark: var(--navy);        /* header, navbar, dark sections, footer */
    --primary-darker: var(--navy-dark); /* second stop of navy gradients */
    --secondary: var(--cyan);
    --accent: var(--gold-brand);        /* gold CTAs (use --on-accent for text on it) */
    --accent-dark: var(--gold-hover);
    --gold: var(--gold-brand);
    --gold-text: #8A5A00;        /* gold dark enough for text on white (6:1) */
    --on-accent: var(--navy);    /* text on gold and cyan backgrounds */
    --green: var(--cyan);        /* legacy name: now the cyan accent */
    --red: var(--red-brand);
    --blue: var(--cyan);
    --cream: var(--bg-main);     /* page background */
    --text: var(--navy-dark);    /* main text */
    --soft-sage: var(--light-blue);
    --border: #DCE6F0;
    --white: #FFFFFF;
    --primary-rgb: 0, 28, 62;    /* RGB triplets of the brand colours, for translucent shadows and overlays */
    --accent-rgb: 225, 161, 11;
    --cyan-rgb: 0, 180, 255;

    /* Supporting neutrals and RGB triplets (for translucent overlays) */
    --text-light: var(--slate);
    --muted: var(--slate);
    --ink-rgb: 11, 42, 74;
    --overlay-rgb: 0, 28, 62;    /* navy used over photos */
    --primary-line: rgba(var(--primary-rgb), 0.35);

    /* Feedback colours (form alerts) */
    --success: #07823D;
    --success-bg: #E9F6EE;
    --success-border: #BFE3CC;
    --error: #C5161D;
    --error-bg: #FDECEC;
    --error-border: #F8CFCC;
    --success-text: #0B5A2B;     /* dark text on the light success / error tints */
    --error-text: #8B1017;

    /* Legacy names: aliases of the tokens above, kept so existing rules and
       inline styles keep working. Prefer the short names in new code. */
    --primary-color: var(--primary);
    --secondary-color: var(--white);     /* text colour used on --primary backgrounds */
    --accent-color: var(--accent);
    --primary-soft: var(--soft-sage);
    --sage: var(--cyan);                 /* light accent used on dark navy */
    --sage-soft: var(--soft-sage);
    --ink: var(--text);
    --text-dark: var(--text);
    --border-color: var(--border);
    --bg-light: var(--cream);
    --surface: var(--white);

    /* Typography */
    --font-display: 'Poppins', 'Segoe UI', Tahoma, sans-serif;   /* headings, navigation, buttons */
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 8px;        /* buttons, chips: subtle rounding, not pills */

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(var(--ink-rgb), 0.05), 0 2px 8px rgba(var(--ink-rgb), 0.04);
    --shadow-sm: 0 4px 14px rgba(var(--ink-rgb), 0.07);
    --shadow-md: 0 10px 26px rgba(var(--ink-rgb), 0.10);
    --shadow-lg: 0 18px 44px rgba(var(--ink-rgb), 0.14);
    --shadow: var(--shadow-sm);
    --shadow-lg-legacy: var(--shadow-md);

    /* Layout */
    --container-width: 1240px;
    --transition: var(--dur-base) var(--ease-in-out);
    /* ---- Merged from the later blocks of this file (one token source) ---- */
    --font-serif: var(--font-display);   /* legacy name: headings now use Poppins */
    --radius-xl: 16px;
    --ease-premium: var(--ease-out);
    --shadow-card: 0 1px 2px rgba(var(--primary-rgb), .05), 0 8px 24px -6px rgba(var(--primary-rgb), .10);
    --shadow-card-hover: 0 2px 4px rgba(var(--primary-rgb), .06), 0 22px 44px -10px rgba(var(--primary-rgb), .22);
    --fs-small: var(--step-n1);
    --fs-body: var(--step-0);
    --fs-h4: var(--step-1);
    --fs-h3: var(--step-2);
    --fs-h2: clamp(var(--step-5), 3vw, var(--step-8));
    --fs-h1: clamp(var(--step-6), 4vw, var(--step-10));

    /* ---- Motion tokens: every duration and curve in this file comes from here ---- */
    --dur-fast: 160ms;          /* hover / press feedback */
    --dur-base: 300ms;          /* state changes, menus */
    --dur-slow: 600ms;          /* entrances, image settle */
    --dur-reveal: 900ms;        /* scroll reveals, line draws */
    --ease-out: cubic-bezier(.22, .61, .36, 1);     /* things arriving */
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);      /* things moving between states */

    /* ---- Type scale: modular, ratio 1.25 split in half steps (1.118), base 16 px ---- */
    --step-n3: .75rem;          /* 12   captions, tags */
    --step-n2: .8rem;           /* 12.8 small labels */
    --step-n1: .894rem;         /* 14.3 secondary text */
    --step-0: 1rem;             /* 16   body */
    --step-1: 1.118rem;         /* 17.9 lead text */
    --step-2: 1.25rem;          /* 20   h4 / card titles */
    --step-3: 1.398rem;         /* 22.4 */
    --step-4: 1.563rem;         /* 25   h3 */
    --step-5: 1.75rem;          /* 28 */
    --step-6: 1.953rem;         /* 31.3 h2 small */
    --step-7: 2.188rem;         /* 35 */
    --step-8: 2.441rem;         /* 39 */
    --step-9: 2.75rem;          /* 44 */
    --step-10: 3.052rem;        /* 49 hero */

    /* ---- Spacing (8 pt scale) ---- */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
    --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h4, h5, h6 {
    font-weight: 600;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

ul {
    list-style: none;
}

p {
    color: var(--text-light);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header & Navigation
   Two tiers: a white top bar (brand, contact, Apply Online) and a dark
   olive navbar with centred uppercase links, dropdowns and a coloured
   top-line on hover / current page. Sticky as one unit on every page.
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

/* ---- Tier 1: top bar ---- */
.edu-topbar {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(var(--ink-rgb), 0.04);
}

.edu-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 9px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0%;
    min-width: 0;
}

.brand-logo {
    height: 66px;
    width: auto;            /* keep the logo's own proportions, never stretch or crop */
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-0);
    color: var(--primary-dark);
}

.brand-text small {
    font-size: var(--step-n3);
    color: var(--text-light);
    letter-spacing: .02em;
}

.edu-topbar-info-group,
.edu-topbar-actions {
    flex-shrink: 0;
}

.edu-topbar-info-group {
    display: flex;
    align-items: center;
    gap: 28px;
}

.edu-topbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.edu-topbar-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: var(--step-n1);
    transition: background var(--transition);
}

.edu-topbar-info:hover .edu-topbar-info-icon {
    background: var(--accent);
    color: var(--on-accent);
}

.edu-topbar-info small {
    display: block;
    font-size: var(--step-n3);
    color: var(--text-light);
}

.edu-topbar-info strong {
    display: block;
    font-size: var(--step-n2);
    color: var(--text);
    white-space: nowrap;
}

.edu-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-topbar-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-n2);
    transition: transform var(--transition), background var(--transition);
}

.edu-topbar-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
    color: var(--on-accent);
}

.edu-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: var(--step-n2);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.28);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.edu-apply-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.38);
    color: var(--on-accent);
}

/* ---- Tier 2: dark navbar ---- */
.edu-navbar {
    background: var(--primary-dark);
}

.edu-navbar-inner {
    display: flex;
    justify-content: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav > a,
.nav-dropdown-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 18px 17px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-n2);
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: color var(--transition);
}

.site-nav > a:focus-visible,
.nav-dropdown-trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -4px;
}

/* coloured line that slides across the top on hover and marks the current page */
.site-nav > a::after,
.nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    top: 0;
    height: 3px;
    background: var(--cyan);
    transition: right var(--transition);
    color: var(--on-accent);
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.is-active .nav-dropdown-trigger {
    color: var(--cyan);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown.is-active .nav-dropdown-trigger::after {
    right: 0;
}

.nav-caret {
    font-size: 10px;
    opacity: .75;
    transition: transform var(--transition);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown-panel a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: var(--step-n1);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a.is-active {
    background: var(--soft-sage);
    color: var(--primary-dark);
}

/* the in-menu Apply button only appears inside the mobile drawer */
.site-nav > a.header-apply-btn {
    display: none;
}

/* ---- Hamburger + drawer backdrop ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1202;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(var(--ink-rgb), 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity var(--transition);
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .edu-topbar-info-group { display: none; }
}

/* eight menu items: tighten the spacing on narrower desktops so the bar never wraps */
@media (min-width: 901px) and (max-width: 1100px) {
    .site-nav > a,
    .nav-dropdown-trigger { padding-inline: 10px; font-size: var(--step-n3); letter-spacing: .03em; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    /* the dark navbar collapses; its menu becomes a slide-in drawer from the right */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 84px 22px 28px;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--dur-base) var(--ease-in-out);
        z-index: 1201;
    }

    .site-nav.is-open { transform: translateX(0); }
    .nav-backdrop.is-open { display: block; opacity: 1; }

    .site-nav > a,
    .nav-dropdown-trigger {
        width: 100%;
        min-height: 48px;
        padding: 0 4px;
        justify-content: space-between;
        color: var(--text) !important;
        font-size: var(--step-n1);
        text-transform: none;
        letter-spacing: normal;
        border-bottom: 1px solid var(--border-color);
    }

    .site-nav > a.is-active,
    .nav-dropdown.is-active .nav-dropdown-trigger {
        color: var(--primary-dark) !important;
        box-shadow: inset 3px 0 0 var(--accent);
        padding-left: 12px;
    }

    .site-nav > a::after,
    .nav-dropdown-trigger::after { display: none; }

    .nav-caret { color: var(--text); opacity: .7; }

    .nav-dropdown { width: 100%; }

    .nav-dropdown-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 4px 0 8px 14px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-dropdown.is-open .nav-dropdown-panel { display: flex; }
    .nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
    .nav-dropdown:hover .nav-dropdown-panel { transform: none; }

    .nav-dropdown-panel a { min-height: 42px; display: flex; align-items: center; }

    .site-nav > a.header-apply-btn {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        min-height: 48px;
        color: var(--on-accent) !important;
        border-bottom: none;
        box-shadow: none;
    }
}

@media (max-width: 700px) {
    .brand-text strong { font-size: var(--step-n1); }
}

@media (max-width: 600px) {
    .edu-apply-btn,
    .edu-topbar-social { display: none; }
    .brand-logo { height: 48px; width: auto; max-width: 110px; }
    .brand-text small { display: none; }
    .edu-topbar-inner { padding-block: 6px; }
}

/* ========================================
   Eyebrow / Badge
   ======================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: var(--step-n2);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow.on-dark {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: var(--primary-dark);
    color: var(--secondary-color);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.08;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
    color: var(--white);
}

.hero .tagline {
    font-size: clamp(var(--step-1), 2vw, var(--step-3));
    margin-bottom: 26px;
    color: var(--sage);
    font-weight: 600;
}

.hero p {
    font-size: var(--step-1);
    margin-bottom: 34px;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inner-page hero: left-aligned text over a photo that fades to dark olive on the left.
   Breadcrumb, label, title, accent line and subtitle rise in one after another on load,
   and the photo drifts in slowly. Visitors who ask for reduced motion get it static. */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 380px;
    padding: 72px 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-dark);
    border-bottom: 4px solid var(--accent);
}

.page-hero.is-compact {
    min-height: 320px;
    padding: 58px 0;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform-origin: 75% center;
    animation: pageHeroZoom 22s ease-out forwards;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(var(--overlay-rgb), 0.95) 0%, rgba(var(--overlay-rgb), 0.84) 42%, rgba(var(--overlay-rgb), 0.38) 100%);
}

.page-hero .container {
    width: 100%;
}

.page-hero-content {
    max-width: 700px;
    text-align: left;
}

.page-hero-content > *:not(.page-hero-line) {
    opacity: 0;
    animation: pageHeroIn var(--dur-reveal) var(--ease-out) forwards;
}

.page-hero-content > :nth-child(1) { animation-delay: .10s; }
.page-hero-content > :nth-child(2) { animation-delay: .24s; }
.page-hero-content > :nth-child(3) { animation-delay: .38s; }
.page-hero-content > :nth-child(5) { animation-delay: .70s; }

/* breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: var(--step-n2);
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--white);
    font-weight: 600;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb i.fa-chevron-right {
    font-size: 9px;
    opacity: .6;
}

.breadcrumb [aria-current] {
    color: var(--gold);
    font-weight: 600;
}

.page-hero .eyebrow {
    margin-bottom: 0;
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(var(--step-6), 4.4vw, var(--step-10));
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
}

.page-hero-line {
    display: block;
    width: 0;
    height: 4px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: var(--accent);
    animation: pageHeroLine var(--dur-reveal) .55s var(--ease-out) forwards;
}

.page-hero p {
    max-width: 620px;
    margin: 0;
    font-size: var(--step-1);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pageHeroIn {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes pageHeroLine {
    to { width: 72px; }
}

@keyframes pageHeroZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

@media (max-width: 768px) {
    .page-hero,
    .page-hero.is-compact {
        min-height: 280px;
        padding: 50px 0;
    }

    .page-hero::before {
        background: rgba(var(--overlay-rgb), 0.82);
    }

    .page-hero p { font-size: var(--step-0); }
    .breadcrumb { margin-bottom: 14px; font-size: var(--step-n2); }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-bg { animation: none; }
    .page-hero-content > *:not(.page-hero-line) { opacity: 1; animation: none; }
    .page-hero-line { width: 72px; animation: none; }
}


/* ==========================================================================
   6. Homepage sections: hero, about, academics, facilities, campus life,
      news & events, admissions, closing call to action
   ========================================================================== */

/* Homepage hero: single full-width image with a dark-olive overlay */
.hero-main {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(680px, calc(100vh - 125px));
    padding: 100px 0;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--overlay-rgb), 0.9) 0%, rgba(var(--overlay-rgb), 0.72) 55%, rgba(var(--overlay-rgb), 0.5) 100%);
}

.hero-main .container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-main-content {
    max-width: 680px;
}

.hero-main h1 {
    font-size: clamp(var(--step-6), 4.4vw, var(--step-10));
    font-weight: 700;
    line-height: 1.15;
    margin: 18px 0 20px;
    color: var(--white);
}

.hero-main p {
    font-size: var(--step-1);
    line-height: 1.75;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-main .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 768px) {
    .hero-main { padding: 72px 0; min-height: 0; }
    .hero-main p { font-size: var(--step-0); }
    .hero-main::before { background: rgba(var(--overlay-rgb), 0.8); }
}

/* Home slider: full-width photo slides (1920x800 artwork) with a caption on top.
   The slide artwork already has a calm dark panel on the left for the text, so no extra
   overlay is needed on desktop; on narrow screens an olive tint keeps the text readable. */
.hero-slider {
    --hero-interval: 5000ms;
    min-height: clamp(540px, 42vw, 740px);
    padding: 76px 0 96px;
    background: var(--primary-dark);
    overflow: hidden;
}

/* navy overlay, strongest behind the text on the left, so captions stay readable on any photo */
.hero-slider::before {
    display: block;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--overlay-rgb), 0.82) 0%, rgba(var(--overlay-rgb), 0.55) 45%, rgba(var(--overlay-rgb), 0.12) 100%);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--dur-reveal) var(--ease-out);
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide picture,
.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    object-fit: cover;
    object-position: right center;
    transform: scale(1);
}

/* slow zoom on the visible slide keeps the photos alive between changes */
.hero-slide.is-active img {
    animation: heroZoom calc(var(--hero-interval) + 1600ms) ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

.hero-slider .hero-main-inner {
    position: relative;
    z-index: 2;
}

/* captions: every slide's text sits in the same grid cell; only the active one is visible */
.hero-captions {
    display: grid;
}

.hero-caption {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility var(--dur-fast) linear 700ms;
}

.hero-caption.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 250ms, 250ms, 0s;
}

.hero-main .hero-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(var(--step-6), 3.7vw, var(--step-10));
    font-weight: 700;
    line-height: 1.15;
    margin: 18px 0 20px;
    color: var(--white);
}

.hero-main .hero-text {
    font-size: var(--step-1);
    line-height: 1.75;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.92);
}

/* keep the text column clear of the photo cards that are part of the slide artwork */
.hero-slider .hero-main-content {
    max-width: min(540px, 44vw);
}

.hero-caption .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* side arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(var(--ink-rgb), 0.35);
    color: var(--white);
    cursor: pointer;
    font-size: var(--step-n1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.06);
    color: var(--on-accent);
}

/* bottom controls: dots */
.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    color: var(--white);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border-radius: 3px;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-dot.is-active {
    background: var(--white);
    width: 52px;
}

/* thin progress line along the bottom edge: fills over one slide interval */
.hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.18);
}

.hero-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    color: var(--on-accent);
}

.hero-slider.is-running .hero-progress span {
    animation: heroProgress var(--hero-interval) linear forwards;
}

.hero-slider.is-hovered .hero-progress span {
    animation-play-state: paused;
}

@keyframes heroProgress {
    from { width: 0; }
    to   { width: 100%; }
}

.hero-dot:focus-visible,
.hero-arrow:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* the side arrows only fit beside the text on wide screens; dots, pause and swipe work everywhere */
@media (max-width: 1400px) {
    .hero-arrow { display: none; }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 560px;
        padding: 56px 0 96px;
    }

    .hero-slider .hero-slides::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        background: rgba(var(--overlay-rgb), 0.72);
    }

    .hero-slide img { object-position: 70% center; }
    .hero-slider .hero-main-content { max-width: none; }
    .hero-main .hero-text { font-size: var(--step-0); margin-bottom: 26px; }
}

/* Reduced-motion visitors still get the automatic slideshow, just without fades, zoom and sliding text */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-caption { transition: none; }
    .hero-slide.is-active img { animation: none; }
    .hero-caption { transform: none; }
}

/* Homepage About section: image + text split */
.about-split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: center;
}

.about-media {
    position: relative;
    isolation: isolate;
}

/* offset navy frame behind the photo, and a small commitment card overlapping its corner */
.about-media::before {
    content: '';
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 2px solid var(--cyan);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-badge {
    position: absolute;
    left: -20px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 290px;
    padding: 16px 20px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gold-brand);
}

.about-badge-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(var(--cyan-rgb), .16);
    color: var(--cyan);
    font-size: var(--step-1);
}

.about-badge strong { display: block; font-size: var(--step-n1); line-height: 1.3; }
.about-badge small { display: block; margin-top: 2px; font-size: var(--step-n2); line-height: 1.4; color: rgba(255, 255, 255, .78); }

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-copy h2 {
    font-size: clamp(var(--step-5), 3.4vw, var(--step-8));
    font-weight: 700;
    color: var(--ink);
    margin: 14px 0 16px;
    line-height: 1.2;
}

.about-lead {
    font-size: var(--step-1);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 28px;
}

.about-points {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.about-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.about-point-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-1);
}

.about-point h3 {
    font-size: var(--step-1);
    margin-bottom: 4px;
    color: var(--ink);
}

.about-point p {
    font-size: var(--step-n1);
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.about-values {
    margin-bottom: 32px;
}

.about-values h3 {
    font-size: var(--step-n1);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.about-values ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-values li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: var(--step-n1);
    font-weight: 600;
    color: var(--primary-dark);
}

.about-values li i {
    color: var(--green);
    font-size: var(--step-n2);
}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-media img {
        aspect-ratio: 16 / 10;
    }

    .about-media::before { inset: 14px -8px -14px 8px; }
    .about-badge { left: 12px; bottom: 16px; max-width: 250px; padding: 12px 16px; }
}

/* Why Choose Us: 3-column feature cards with a soft icon tile that fills on hover */
.card-grid.why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-grid .card {
    padding: 32px 28px;
    overflow: hidden;
}

.why-grid .card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: inset 0 3px 0 var(--accent-color), var(--shadow-md);
}

.why-grid .card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    box-shadow: none;
    font-size: var(--step-3);
    transition: background var(--transition), color var(--transition);
}

.why-grid .card:hover .card-icon {
    background: var(--primary-color);
    color: var(--white);
}

.why-grid .card h3 {
    font-size: var(--step-2);
    margin-bottom: 8px;
}

.why-grid .card p {
    font-size: var(--step-n1);
    line-height: 1.7;
    color: var(--text-light);
}

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

@media (max-width: 600px) {
    .card-grid.why-grid { grid-template-columns: 1fr; }
}

/* Academics: four level cards */
.card-grid.level-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card.level-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
}

.level-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.level-card .card-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: var(--step-2);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.level-stage {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: var(--step-n3);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.level-card h3 {
    font-size: var(--step-2);
    margin-bottom: 8px;
}

.level-card p {
    flex: 1;
    font-size: var(--step-n1);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.level-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: var(--step-n1);
    color: var(--primary-dark);
    transition: color var(--transition), gap var(--transition);
}

.level-link:hover,
.level-card:hover .level-link {
    color: var(--gold-text);
    gap: 12px;
}

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

@media (max-width: 600px) {
    .card-grid.level-grid { grid-template-columns: 1fr; }
}

/* Admissions CTA panel */
.admissions-section {
    background: var(--primary-soft);
}

.admissions-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.admissions-intro {
    padding: 56px 48px;
    color: var(--white);
}

.admissions-intro h2 {
    color: var(--white);
    font-size: clamp(var(--step-5), 3.2vw, var(--step-8));
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0;
}

.admissions-intro > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--step-1);
    line-height: 1.75;
    margin-bottom: 28px;
}

.admissions-intro .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.admissions-contact {
    display: grid;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.admissions-contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--step-n1);
    color: rgba(255, 255, 255, 0.92);
}

.admissions-contact i {
    width: 18px;
    text-align: center;
    color: var(--sage);
}

.admissions-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.admissions-details {
    background: var(--surface);
    padding: 48px;
}

.admissions-details h3 {
    font-size: var(--step-1);
    color: var(--ink);
    margin-bottom: 18px;
}

.admissions-steps {
    list-style: none;
    counter-reset: adm-step;
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.admissions-steps li {
    counter-increment: adm-step;
    position: relative;
    padding-left: 52px;
}

.admissions-steps li::before {
    content: counter(adm-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admissions-steps strong {
    display: block;
    color: var(--ink);
    font-size: var(--step-0);
}

.admissions-steps span {
    font-size: var(--step-n1);
    color: var(--text-light);
    line-height: 1.6;
}

.admissions-docs {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.admissions-docs li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--step-n1);
    color: var(--text-dark);
}

.admissions-docs i {
    color: var(--primary-color);
    margin-top: 4px;
}

.admissions-note {
    font-size: var(--step-n2);
    color: var(--muted);
}

@media (max-width: 960px) {
    .admissions-panel { grid-template-columns: 1fr; }
    .admissions-intro,
    .admissions-details { padding: 36px 24px; }
}

/* Campus Life tiles */
.campus-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.campus-tile {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 32px 28px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition);
}

.campus-tile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    color: var(--on-accent);
}

.campus-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.campus-tile:hover::after {
    transform: scaleX(1);
}

/* large faint glyph in the corner; swap for a photo once real campus images are available */
.campus-tile-bg {
    position: absolute;
    right: -14px;
    bottom: -18px;
    font-size: 130px;
    color: rgba(255, 255, 255, 0.07);
    transition: transform var(--transition);
}

.campus-tile:hover .campus-tile-bg {
    transform: scale(1.06);
}

.campus-tile-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-2);
    margin-bottom: 20px;
}

.campus-tile h3 {
    position: relative;
    color: var(--white);
    font-size: var(--step-2);
    margin-bottom: 8px;
}

.campus-tile p {
    position: relative;
    max-width: 90%;
    font-size: var(--step-n1);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.campus-life-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

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

@media (max-width: 600px) {
    .campus-life-grid { grid-template-columns: 1fr; }
    .campus-tile { min-height: 0; }
}

/* News & Events cards */
.card-grid.update-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card.update-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.update-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-soft);
}

.update-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.update-card:hover .update-media img {
    transform: scale(1.04);
}

.update-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-9);
    color: var(--primary-color);
    opacity: .55;
}

.update-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.update-category {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--step-n3);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.update-category.is-news { background: var(--primary-soft); color: var(--primary-dark); }
.update-category.is-event { background: var(--accent-color); color: var(--on-accent); }

.update-date {
    font-size: var(--step-n2);
    color: var(--text-light);
}

.update-body h3 {
    font-size: var(--step-1);
    line-height: 1.4;
    margin-bottom: 8px;
}

.update-body h3 a:hover {
    color: var(--primary-color);
}

.update-body p {
    flex: 1;
    font-size: var(--step-n1);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 18px;
}

.update-body .level-link {
    margin-top: auto;
}

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

@media (max-width: 600px) {
    .card-grid.update-grid { grid-template-columns: 1fr; }
}

/* anchored entries on events.php should clear the sticky header */
[id^="event-"], [id^="news-"] {
    scroll-margin-top: 150px;
}

/* Closing call to action: full-width dark olive band with a maroon rule */
.cta-band {
    background: var(--primary-dark);
    border-top: 5px solid var(--accent-color);
    padding: 80px 0;
    text-align: center;
}

.cta-band-inner {
    max-width: 760px;
    margin: 0 auto;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(var(--step-5), 3.6vw, var(--step-9));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--step-1);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-band .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (max-width: 600px) {
    .cta-band { padding: 56px 0; }
}

/* Campus Life photo cards (one per gallery category) */
.life-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.life-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    background: var(--soft-sage);
    transition: box-shadow var(--transition), transform var(--transition);
}

.life-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.life-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--overlay-rgb), 0.82) 0%, rgba(var(--overlay-rgb), 0) 55%);
}

.life-photo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.life-photo:hover img {
    transform: scale(1.04);
}

.life-photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    color: var(--white);
}

.life-photo-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step-1);
    line-height: 1.3;
}

.life-photo-caption small {
    font-size: var(--step-n2);
    opacity: .85;
}

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

@media (max-width: 480px) {
    .life-photo-caption strong { font-size: var(--step-n1); }
}

/* ==========================================================================
   Courses page: academic path, stage sections, course cards, requirements
   ========================================================================== */
.path-section {
    background: var(--white);
    padding-bottom: 40px;
}

.path-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 22px;
    counter-reset: path;
    position: relative;
}

.path-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 30px 18px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.path-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-line);
}

.path-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: var(--step-n1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--white);
}

.path-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    font-size: var(--step-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: transform var(--dur-base) var(--ease-out);
}

.path-step:hover .path-icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.08);
}

.path-step strong {
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--ink);
}

.path-step small {
    font-size: var(--step-n2);
    color: var(--text-light);
}

/* connecting line between the steps on wide screens */
@media (min-width: 900px) {
    .path-steps::before {
        content: '';
        position: absolute;
        left: 8%;
        right: 8%;
        top: 1px;
        border-top: 2px dashed var(--border);
        z-index: 0;
    }
    .path-step { z-index: 1; }
}

.stage-section {
    scroll-margin-top: 140px;
}

/* course cards */
.course-list {
    display: grid;
    gap: 26px;
}

.course-list.is-multi {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.course-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.course-card.is-wide {
    grid-template-columns: 1.05fr 1fr;
}

/* side-by-side cards: the subject lists start on the same line whatever the title length */
.course-list.is-multi .course-card {
    grid-template-rows: 1fr auto;
}

.course-main {
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
}

.course-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.course-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    font-size: var(--step-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-base) var(--ease-out);
}

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

.course-head h3 {
    font-size: var(--step-2);
    line-height: 1.25;
    margin: 0 0 6px;
}

.course-classes {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--soft-sage);
    color: var(--primary-dark);
    font-size: var(--step-n2);
    font-weight: 700;
    letter-spacing: .02em;
}

.course-desc {
    flex: 1;
    font-size: var(--step-0);
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 22px;
}

.course-apply {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: var(--step-n1);
    color: var(--primary-dark);
    transition: color var(--transition), gap var(--transition);
}

.course-apply:hover {
    color: var(--gold-text);
    gap: 14px;
}

.course-side {
    padding: 32px;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.course-card.is-wide .course-side {
    border-top: 0;
    border-left: 1px solid var(--border);
}

.course-side h4 {
    font-size: var(--step-n2);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.course-subjects {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

.course-subjects li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: var(--step-n1);
    line-height: 1.45;
    color: var(--text);
}

.course-subjects i {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-list.is-multi .course-subjects {
    grid-template-columns: 1fr;
}

/* admission requirements */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 26px;
    max-width: 760px;
    margin: 0 auto;
}

.req-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.req-head .card-icon {
    margin: 0;
    width: 50px;
    height: 50px;
    font-size: var(--step-2);
}

.req-head h3 {
    margin: 0;
}

.req-list {
    list-style: none;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--step-n1);
}

.req-list li:last-child {
    border-bottom: 0;
}

.req-list i {
    color: var(--primary);
}

@media (max-width: 900px) {
    .course-card.is-wide { grid-template-columns: 1fr; }
    .course-card.is-wide .course-side { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 520px) {
    .course-main, .course-side { padding: 24px 22px; }
    .course-subjects { grid-template-columns: 1fr; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--step-n1);
    letter-spacing: .01em;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: 2px;
}

/* Primary: olive (dark olive keeps white text above 4.5:1 contrast) */
.btn-primary {
    background: var(--cyan);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary: maroon, for conversion actions such as Apply Now */
.btn-secondary {
    background: var(--accent-color);
    color: var(--on-accent);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--on-accent);
}

/* Outline on light backgrounds: olive border */
.btn-outline-dark {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

.btn-outline-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Outline on dark olive sections: white border (an olive border would disappear) */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Safety net: an olive primary button on a dark olive section would vanish, so it inverts to white */
.hero-main .btn-primary,
.page-hero .btn-primary,
.cta-banner .btn-primary,
.cta-band .btn-primary,
.admissions-intro .btn-primary {
    background: var(--cyan);
    color: var(--navy);
}

.hero-main .btn-primary:hover,
.page-hero .btn-primary:hover,
.cta-banner .btn-primary:hover,
.cta-band .btn-primary:hover,
.admissions-intro .btn-primary:hover {
    background: var(--white);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(var(--step-5), 3.4vw, var(--step-8));
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: var(--step-1);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light { background: var(--bg-light); }

/* Generic responsive grid utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px; }

/* ========================================
   Cards
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border: 1px solid var(--border-color);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--step-3);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--ink);
    font-size: var(--step-2);
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    line-height: 1.75;
}

/* Compact feature row card (icon + text inline) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
    border: 1px solid var(--border-color);
}

.feature-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-line);
}

.feature-row .feature-icon {
    min-width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--step-3);
    flex-shrink: 0;
}

.feature-row h3,
.feature-row h4 {
    color: var(--ink);
    margin: 0 0 4px 0;
    font-size: var(--step-0);
    font-weight: 700;
}

.feature-row p {
    color: var(--text-light);
    font-size: var(--step-n2);
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: var(--primary-dark);
    color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 8px 0;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.stat-item h3 {
    font-size: var(--step-9);
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-item p {
    font-size: var(--step-n1);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .stat-item + .stat-item::before { display: none; }
    .stat-item h3 { font-size: var(--step-8); }
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    background: var(--primary-dark);
    color: var(--white);
    padding: 64px clamp(20px, 5vw, 48px);
    text-align: center;
    border-radius: var(--radius-lg);
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(var(--step-4), 3vw, var(--step-7));
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: var(--step-1);
    margin-bottom: 30px;
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--step-n1);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--step-n1);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
    font-family: inherit;
    background: var(--surface);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Testimonial Carousel
   ======================================== */
.testimonial-carousel {
    position: relative;
    padding: 0 10px;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 6px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.testimonial-card {
    position: relative;
    flex: 0 0 360px;
    scroll-snap-align: start;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 30px 28px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-mark {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: var(--step-6);
    color: var(--primary-soft);
    color: var(--border-color);
}

.testimonial-stars {
    color: var(--gold-text);
    margin-bottom: 14px;
    font-size: var(--step-n1);
    letter-spacing: 2px;
}

.testimonial-quote {
    margin: 0 0 24px;
    color: var(--text-dark);
    font-size: var(--step-0);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--step-1);
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    color: var(--ink);
    font-size: var(--step-n1);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: var(--step-n2);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--step-1);
    z-index: 2;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.testimonial-nav.prev {
    left: -14px;
}

.testimonial-nav.next {
    right: -14px;
}

@media (max-width: 768px) {
    .testimonial-nav {
        display: none;
    }

    .testimonial-card {
        flex-basis: 290px;
    }
}

/* ========================================
   Alerts (form success/error feedback)
   ======================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert i {
    font-size: var(--step-3);
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item.is-open {
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-0);
    color: var(--ink);
    cursor: pointer;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.is-open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-base) var(--ease-out);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
}

/* ==========================================================================
   Motion system (OmniForge upgrade). Dial 2 on inner pages, dial 3 on the home hero.
   Hidden start states exist only inside html.js and only on elements main.js has marked.
   main.js lands every one of them three ways (observer, scroll check, timer), so nothing
   can stay invisible; without JavaScript, and with reduced motion, everything is simply shown.
   All durations and curves are tokens; animation is transform / opacity (clip-path on frames).
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transition: opacity var(--dur-reveal) var(--ease-out) var(--delay, 0s),
                transform var(--dur-reveal) var(--ease-out) var(--delay, 0s),
                clip-path var(--dur-reveal) var(--ease-out) var(--delay, 0s);
    will-change: opacity, transform;          /* promoted to its own layer only while it waits to appear; released when it settles */
}
.js .reveal-rise  { transform: translate3d(0, 22px, 0); }                 /* cards and list items: rise in a wave */
.js .reveal-left  { transform: translate3d(-36px, 0, 0); }                /* text blocks: slide in from their own side */
.js .reveal-right { transform: translate3d(36px, 0, 0); }
.js .reveal-frame { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius-lg)); }   /* photos open like a frame ... */
.js .reveal-frame img { transform: scale(1.12); transition: transform var(--dur-reveal) var(--ease-out) var(--delay, 0s); }   /* ... and settle inside it */
.js .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .reveal-frame.is-visible img { transform: none; }

/* section headings arrive as three beats: label, title, line of text; the gold rule then draws */
.js .section-header.reveal { opacity: 1; transform: none; }
.js .section-header.reveal > * {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .section-header.reveal > :nth-child(2) { transition-delay: .09s; }
.js .section-header.reveal > :nth-child(3) { transition-delay: .18s; }
.js .section-header.reveal.is-visible > * { opacity: 1; transform: none; }

/* on narrow screens nothing slides in sideways (it would widen the page); it rises instead */
@media (max-width: 900px) {
    .js .reveal-left,
    .js .reveal-right { transform: translate3d(0, 22px, 0); }
}

/* the gold rule under every section title draws itself */
.section-header h2 { position: relative; padding-bottom: 18px; }
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width var(--dur-reveal) var(--ease-out) .35s;
}
.section-header.is-visible h2::after,
.section-header:not(.reveal) h2::after { width: 64px; }

/* statistics: the dividers draw downward, the numbers count up (real figures, final value is in the page text) */
.stat-item + .stat-item::before { transform-origin: top; transition: transform var(--dur-reveal) var(--ease-out) calc(var(--delay, 0s) + .2s); }
.js .stat-item.reveal:not(.is-visible)::before { transform: scaleY(0); }

/* the academic path: a line draws through the four stages as the reader descends */
.level-grid[data-draw] { position: relative; }
.level-grid[data-draw] > * { position: relative; z-index: 1; }
.level-grid[data-draw]::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 12%;
    right: 12%;
    top: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--accent));
    transform-origin: left center;
    transform: scaleX(var(--draw, 1));
}
@media (max-width: 1100px) {
    .level-grid[data-draw]::before { display: none; }          /* two or one column: the stage tags carry the order */
}

/* the admission steps: a line draws down the numbered steps */
.admissions-steps[data-draw] { position: relative; }
.admissions-steps[data-draw] li { z-index: 1; }
.admissions-steps[data-draw]::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--accent));
    transform-origin: top center;
    transform: scaleY(var(--draw, 1));
}

/* home hero depth layer: one slow layer, desktop only (main.js moves it from the shared scroll loop) */
@media (min-width: 901px) {
    .hero-slides[data-depth] { inset: -90px 0 0 0; will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal-rise,
    .js .reveal-left,
    .js .reveal-right,
    .js .reveal-frame,
    .js .section-header.reveal > * {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }
    .js .reveal-frame img { transform: none; transition: none; }
    .section-header h2::after { width: 64px; transition: none; }
    .js .stat-item.reveal::before { transform: none; }
    .stat-item + .stat-item::before { transition: none; }
    .level-grid[data-draw]::before, .admissions-steps[data-draw]::before { transform: none; }
    .hero-slides[data-depth] { inset: 0; transform: none !important; }
}

/* small micro-interactions on hover */
.card .card-icon,
.quick-card .quick-icon,
.about-point-icon {
    transition: transform var(--dur-base) var(--ease-out), background var(--transition);
}

.card:hover .card-icon,
.quick-card:hover .quick-icon,
.about-point:hover .about-point-icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.08);
}

.about-values li {
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.about-values li:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* a soft light sweep across filled buttons on hover */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-160%) skewX(-20deg);
    transition: transform var(--dur-slow) var(--ease-out);
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    transform: translateX(330%) skewX(-20deg);
}

/* the main "Apply" calls to action breathe gently to draw the eye */
.cta-band .btn-secondary,
.admissions-intro .btn-secondary {
    animation: ctaPulse 2.8s ease-in-out infinite;
}

.cta-band .btn-secondary:hover,
.admissions-intro .btn-secondary:hover {
    animation: none;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
    50%      { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-band .btn-secondary,
    .admissions-intro .btn-secondary { animation: none; }
}

/* reading-progress line at the very top of the page */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1300;
    background: linear-gradient(90deg, var(--cyan), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

/* back-to-top button */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1150;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--white);
    font-size: var(--step-0);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}

.back-to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ==========================================================================
   Quick links strip (under the hero)
   ========================================================================== */
.quick-strip {
    padding: 40px 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-line);
}

.quick-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-2);
}

.quick-card:hover .quick-icon {
    background: var(--accent);
    color: var(--on-accent);
}

.quick-text {
    flex: 1;
    min-width: 0;
}

.quick-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step-0);
    color: var(--ink);
    margin-bottom: 2px;
}

.quick-text span {
    display: block;
    font-size: var(--step-n2);
    line-height: 1.5;
    color: var(--text-light);
}

.quick-arrow {
    color: var(--primary);
    font-size: var(--step-n1);
    transition: transform var(--transition), color var(--transition);
}

.quick-card:hover .quick-arrow {
    transform: translateX(5px);
    color: var(--gold-text);
}

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

@media (max-width: 600px) {
    .quick-strip { padding: 28px 0; }
    .quick-grid { grid-template-columns: 1fr; gap: 14px; }
    .back-to-top { right: 14px; bottom: 14px; }
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--ink);
    color: var(--white);
    padding: 72px 0 24px;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 76px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo strong {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 700;
    line-height: 1.25;
}

.footer-logo small {
    display: block;
    color: var(--sage);
    font-size: var(--step-n2);
    margin-top: 2px;
}

.footer-section h3,
.footer-section .footer-heading {
    color: var(--white);
    margin-bottom: 22px;
    font-size: var(--step-0);
    font-weight: 700;
    letter-spacing: .02em;
}

.footer-section ul li {
    margin-bottom: 2px;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
    font-size: var(--step-n1);
}

.footer-section ul a {
    display: inline-block;
    transition: color var(--transition), transform var(--transition);
}

.footer-section ul a:hover {
    transform: translateX(3px);
}

.footer-section p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.footer-section p i {
    color: var(--sage);
    width: 18px;
    margin-top: 6px;
    flex-shrink: 0;
    text-align: center;
}

.footer-brand > p {
    display: block;
}

.footer-section a:hover {
    color: var(--sage);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--step-0);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--on-accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: var(--step-n2);
}

.footer-bottom p {
    color: inherit;
}

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
}

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

/* Responsive Design */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 clamp(16px, 3vw, 24px);
    }

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

    .hero h1 {
        font-size: var(--step-9) !important;
    }

    .hero p {
        font-size: var(--step-1) !important;
    }

    .hero .container {
        padding: 0 20px !important;
    }

    .nav-links a {
        padding: 15px 13px;
        font-size: var(--step-n3);
    }

    .brand-text small {
        display: none;
    }
}

/* Tablet Portrait and Below (768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 60px 0 !important;
        min-height: 440px !important;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: var(--step-6) !important;
    }

    .hero .tagline {
        font-size: var(--step-2) !important;
    }

    .hero p {
        font-size: var(--step-0) !important;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px !important;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Grid utilities */
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: var(--step-7);
    }

    .stat-item p {
        font-size: var(--step-n1);
    }

    /* Section Headers */
    .section-header h2 {
        font-size: var(--step-4);
    }

    .section-header p {
        font-size: var(--step-0);
    }

    /* Card Grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Legacy inline-style pages - two column layouts collapse on mobile */
    section [style*="grid-template-columns: 1fr 1fr"],
    section [style*="grid-template-columns: 350px 1fr"],
    section [style*="grid-template-columns: 1fr 350px"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Campus detail rows (campuses.php) - class-based, not tied to a
       specific pixel value like the legacy attribute-selector rules above */
    .campus-row {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Keep the image first on mobile regardless of desktop left/right order */
    .campus-row-reverse > div:first-child {
        order: 2;
    }

    .campus-row-reverse > div:last-child {
        order: 1;
    }

    section [style*="grid-template-columns: 1fr 350px"] > div:first-child {
        order: 2;
    }

    section [style*="grid-template-columns: 1fr 350px"] > div:last-child {
        order: 1;
    }

    section [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Only (480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--step-4) !important;
    }

    .hero .tagline {
        font-size: var(--step-1) !important;
    }

    .hero p {
        font-size: var(--step-n1) !important;
    }

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

    .section-header h2 {
        font-size: var(--step-4);
    }

    .btn {
        padding: 12px 25px !important;
        font-size: var(--step-n1) !important;
    }

    .card {
        padding: 24px 20px;
    }

    .card h3 {
        font-size: var(--step-2);
    }

    section [style*="width: 250px; height: 250px"] {
        width: 180px !important;
        height: 180px !important;
        font-size: 60px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--step-0); /* Prevents zoom on iOS */
    }

}

.download-row:hover {
    background: var(--bg-light) !important;
}

/* Utilities */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* ==========================================================================
   Homepage polish: section rhythm, notice bar, philosophy band, campuses,
   FAQ + contact pairing
   ========================================================================== */

/* Two neighbouring sections with the same background read as one block,
   so the second one drops its top padding instead of doubling the gap */
.bg-light + .bg-light,
section:not([class]) + section:not([class]) {
    padding-top: 0;
}

.stats { padding: clamp(44px, 5vw, 64px) 0; }

/* Scrolling notices under the quick links */
.notice-bar {
    display: flex;
    align-items: stretch;
    background: var(--soft-sage);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.notice-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: var(--step-n2);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notice-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.notification-ticker {
    display: flex;
    white-space: nowrap;
    animation: notice-scroll 30s linear infinite;
}

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

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.notice-item i { font-size: 6px; color: var(--gold-text); }
a.notice-item:hover { color: var(--primary-dark); }

@keyframes notice-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .notification-ticker { animation: none; }
}

/* Philosophy statement band */
.philosophy-band {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--white);
}

.philosophy-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(var(--cyan-rgb), 0.12), transparent 50%);
    pointer-events: none;
}

.philosophy-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-inner .philosophy-mark {
    display: block;
    margin-bottom: 18px;
    font-size: var(--step-8);
    color: var(--gold);
    opacity: .7;
}

.philosophy-inner h2 {
    color: var(--white);
    font-size: clamp(var(--step-5), 3.4vw, var(--step-8));
    margin-bottom: 20px;
}

.philosophy-inner p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(var(--step-1), 1.6vw, var(--step-2));
    line-height: 1.85;
}

/* Campus cards */
.campus-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.campus-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.campus-card-tagline {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.campus-card-link { margin-top: auto; padding-top: 18px; }

/* Campus Life: a few categories sit centred instead of hugging the left */
.life-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
    justify-content: center;
}

/* FAQs beside the contact form */
.faq-contact {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.faq-contact .faq-list { max-width: none; margin: 0; }

.faq-contact-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.faq-contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-light);
}

.faq-contact-list .info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--soft-sage);
    color: var(--primary-dark);
}

.faq-form-card { padding: 36px; }
.faq-form-card:hover { transform: none; }
.faq-form-card h3 { font-size: var(--step-4); margin-bottom: 10px; }
.faq-form-text { color: var(--text-light); margin-bottom: 24px; }

@media (max-width: 900px) {
    .faq-contact { grid-template-columns: 1fr; }
    .faq-form-card { padding: 28px 22px; }
}

@media (max-width: 600px) {
    .notice-label { font-size: var(--step-n3); padding: 10px 14px; }
}

/* ==========================================================================
   Leadership messages (includes/leadership_section.php)
   ========================================================================== */
.leader-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
    padding: 50px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.leader-card:last-child { margin-bottom: 0; }

/* Photo on the right for every second message */
.leader-card-reverse { grid-template-columns: 1fr 300px; }
.leader-card-reverse .leader-profile { order: 2; }

.leader-profile { text-align: center; }

.leader-photo {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Fallback icon, covered by the photo when one loads */
.leader-photo .fa-user-tie { font-size: 72px; color: var(--white); }

.leader-profile h3 {
    color: var(--primary-dark);
    font-size: var(--step-3);
    margin-bottom: 4px;
}

.leader-name {
    color: var(--text);
    font-weight: 700;
    font-size: var(--step-2);
    margin-bottom: 4px;
}

.leader-designation {
    color: var(--text-light);
    font-size: var(--step-n1);
    line-height: 1.6;
}

.leader-message {
    position: relative;
    padding-left: 30px;
    border-left: 4px solid var(--accent);
}

.leader-quote {
    position: absolute;
    top: -10px;
    left: -20px;
    font-size: var(--step-8);
    color: var(--gold-text);
    opacity: .3;
}

.leader-text {
    font-size: var(--step-0);
    line-height: 1.8;
    color: var(--text);
}

.leader-sign {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.leader-sign img { height: 50px; margin-bottom: 10px; }

.leader-sign-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: var(--step-0);
}

/* ==========================================================================
   Assessment block (home)
   ========================================================================== */
.assessment-copy h2 { margin-bottom: 20px; }
.assessment-copy p { margin-bottom: 15px; line-height: 1.8; color: var(--text-light); }
.assessment-copy p:last-of-type { margin-bottom: 25px; }

.assessment-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.assessment-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.assessment-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: var(--step-3);
}

.assessment-item strong {
    display: block;
    color: var(--white);
    font-size: var(--step-1);
    margin-bottom: 4px;
}

.assessment-item span { color: rgba(255, 255, 255, 0.8); font-size: var(--step-n1); }

/* ==========================================================================
   Responsive layer
   Laptop (≤1180) · Tablet (≤960) · Small tablet / large phone (≤768) · Phone (≤600)
   ========================================================================== */

/* Laptop: slightly tighter two-column blocks */
@media (max-width: 1180px) {
    .leader-card { grid-template-columns: 240px 1fr; gap: 36px; padding: 40px; }
    .leader-card-reverse { grid-template-columns: 1fr 240px; }
    .leader-photo { width: 200px; height: 200px; }
    .grid-2 { gap: 36px; }
}

/* Tablet: four-across grids become two-across */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .card-grid.level-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .faq-contact { grid-template-columns: 1fr; }
}

/* Small tablet / large phone: stack the leadership cards, photo first */
@media (max-width: 768px) {
    .leader-card,
    .leader-card-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }

    .leader-card-reverse .leader-profile { order: 0; }
    .leader-photo { width: 170px; height: 170px; }

    /* Quote mark sits above the text instead of eating the left margin */
    .leader-message { padding-left: 18px; }
    .leader-quote { position: static; display: block; font-size: var(--step-6); margin-bottom: 8px; }
    .leader-text { font-size: var(--step-0); line-height: 1.75; }

    .assessment-panel { padding: 28px 22px; gap: 22px; }
}

/* Phone */
@media (max-width: 600px) {
    /* Stats: 2 × 2 instead of one long column */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 12px; }
    .stat-item h3 { font-size: var(--step-6); }
    .stat-item p { font-size: var(--step-n3); letter-spacing: .04em; }

    /* Feature cards: icon beside the text, so the list is half as long */
    .why-grid .card,
    .grid-4 .card:not(.text-center) {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 16px;
        padding: 22px 20px;
    }

    .why-grid .card .card-icon,
    .grid-4 .card:not(.text-center) .card-icon {
        grid-row: span 2;
        width: 48px;
        height: 48px;
        font-size: var(--step-2);
        margin: 0;
    }

    .why-grid .card h3 { font-size: var(--step-1); margin-bottom: 4px; }
    .why-grid .card p { font-size: var(--step-n1); }

    .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .card-grid.level-grid { grid-template-columns: 1fr; }

    .philosophy-inner p { font-size: var(--step-0); }
    .faq-question { padding: 16px 18px; font-size: var(--step-n1); }
    .faq-answer p { padding: 0 18px 16px; }
    .faq-form-card { padding: 24px 18px; }
}

/* Fee card (admission.php) */
.fee-card { max-width: 700px; margin: 0 auto; padding: 40px; }
.fee-amount { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }

@media (max-width: 600px) {
    /* Older pages set large paddings inline; give phones their width back */
    .card[style*="padding: 40px"],
    .fee-card,
    .campus-row {
        padding: 24px 18px !important;
    }

    .fee-card li { font-size: var(--step-n1); }
    .cta-banner { padding: 44px 20px; }
}

/* Events: news cards */
@media (max-width: 600px) {
    .news-body { padding: 22px 18px !important; }
    .news-head h3 { font-size: var(--step-2); }
}

/* Downloads: each row becomes a small card on phones */
@media (max-width: 600px) {
    .downloads-table thead { display: none; }
    .downloads-table,
    .downloads-table tbody,
    .downloads-table tr,
    .downloads-table td { display: block; width: 100%; }
    .downloads-table tr { padding: 14px 4px; }
    .downloads-table td { padding: 6px 14px !important; text-align: left !important; }
    .downloads-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: var(--step-n3);
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 2px;
    }
    .downloads-table .download-action .btn { width: 100%; justify-content: center; }
}

/* Tablets (601–768px): buttons keep their natural width and sit side by side;
   only phones get full-width stacked buttons */
@media (min-width: 601px) and (max-width: 768px) {
    .btn { width: auto; }
    .btn-group { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .downloads-table td[colspan] { text-align: center !important; padding: 32px 16px !important; }
}

/* ==========================================================================
   Consistency layer: shared components used across inner pages
   ========================================================================== */

/* Every form control uses the site font (some forms sit outside .form-group) */
input, select, textarea, button { font-family: inherit; }

/* Empty list placeholder (renderEmptyState) */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--soft-sage);
    color: var(--primary-dark);
    font-size: var(--step-4);
}

.empty-state h3, .empty-state-title { font-size: var(--step-2); font-weight: 700; margin: 0 0 6px; color: var(--text); font-family: var(--font-display); }
.empty-state p { color: var(--text-light); max-width: 420px; margin: 0 auto; }

/* Admission requirements (courses.php): all three cards in one row on wide screens */
.req-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    max-width: none;
}

/* Visible keyboard focus everywhere, in the brand colour */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Photo gallery, lightbox and videos (gallery.php)
   ========================================================================== */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: var(--step-n1);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.gallery-filter span {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--soft-sage);
    color: var(--primary-dark);
    font-size: var(--step-n3);
}

.gallery-filter:hover { border-color: var(--primary); }

.gallery-filter.is-active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.gallery-filter.is-active span { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 18px;
}

.gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--soft-sage);
    box-shadow: var(--shadow-xs);
}

.gallery-item[hidden] { display: none; }

.gallery-link { display: block; position: relative; }

.gallery-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-link:hover .gallery-img,
.gallery-link:focus-visible .gallery-img { transform: scale(1.06); }

.gallery-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: var(--step-n1);
    opacity: 0;
    transform: scale(.8);
    transition: opacity var(--transition), transform var(--transition);
}

.gallery-link:hover .gallery-zoom,
.gallery-link:focus-visible .gallery-zoom { opacity: 1; transform: none; }

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(var(--overlay-rgb), 0.85), transparent);
    color: var(--white);
    font-size: var(--step-n1);
    font-weight: 600;
    pointer-events: none;
}

/* Lightbox */
body.lightbox-open { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 56px 16px 24px;
    background: rgba(var(--overlay-rgb), 0.95);
}

.lightbox[hidden] { display: none; }

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

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.lightbox-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--step-n1);
}

.lightbox-count { color: rgba(255, 255, 255, 0.6); white-space: nowrap; }

.lightbox-close,
.lightbox-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: var(--step-1);
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--accent);
    color: var(--on-accent);
}

.lightbox-close { position: absolute; top: 14px; right: 14px; }

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item { border-radius: var(--radius-md); }
    .gallery-caption { font-size: var(--step-n3); padding: 20px 10px 8px; }
    .gallery-zoom { display: none; }
    .gallery-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
    .gallery-filters::-webkit-scrollbar { display: none; }
    .gallery-filter { flex: 0 0 auto; padding: 8px 14px; font-size: var(--step-n1); }

    /* Arrows sit at the bottom corners on phones; swiping also works */
    .lightbox { padding: 56px 8px 84px; }
    .lightbox-arrow { position: absolute; bottom: 18px; }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
}

/* Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

.video-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.video-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity var(--transition), transform var(--dur-slow) var(--ease-out); }
.video-frame:hover img { opacity: 1; transform: scale(1.04); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-size: var(--step-4);
    padding-left: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition);
}

.video-frame:hover .video-play { transform: scale(1.08); }

.video-body { padding: 18px 20px 20px; }
.video-body h3 { font-size: var(--step-1); margin-bottom: 4px; }
.video-body p { color: var(--text-light); font-size: var(--step-n1); margin: 0; }

/* Text for screen readers and search engines only (keeps the heading outline complete) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Working hours list (contact.php, edited under Page Content) */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-day { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hours-day i { color: var(--primary-color); width: 18px; text-align: center; }
.hours-closed { color: var(--error); font-weight: 600; }

/* Spam trap field on public forms: hidden from people (and screen readers), seen by bots */
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer: bottom links on every size, and a compact mobile layout
   ========================================================================== */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    text-align: left;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a { color: rgba(255, 255, 255, 0.7); }
.footer-legal a:hover { color: var(--gold); }
.footer-legal span { color: rgba(255, 255, 255, 0.35); }

/* Call / Apply buttons: phones only (on desktop the header already has them) */
.footer-actions { display: none; }

@media (max-width: 768px) {
    footer { padding: 44px 0 20px; }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        margin-bottom: 20px;
        padding-bottom: 28px;
    }

    /* Brand block: centred, logo above the name */
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-brand .footer-logo {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
    }

    .footer-brand .footer-logo img { width: 72px; height: 72px; }
    .footer-brand .footer-logo strong { font-size: var(--step-2); }
    .footer-brand > p { font-size: var(--step-n1); line-height: 1.75; max-width: 440px; margin: 0 auto; }
    .footer-brand .social-links { justify-content: center; }

    /* Quick Links and Explore side by side, left-aligned */
    .footer-section.footer-links { text-align: left; }

    .footer-section .footer-heading {
        position: relative;
        margin-bottom: 14px;
        padding-bottom: 10px;
        font-size: var(--step-n1);
    }

    .footer-section .footer-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 28px;
        height: 2px;
        border-radius: 2px;
        background: var(--accent);
    color: var(--on-accent);
}

    .footer-links ul li { margin: 0; }

    .footer-links ul a {
        display: block;
        padding: 7px 0;
        font-size: var(--step-n1);
        line-height: 1.4;
    }

    /* Contact: a card with one tappable row per detail */
    .footer-contact {
        grid-column: 1 / -1;
        text-align: left;
        padding: 20px 18px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
    }

    .footer-contact p {
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: var(--step-n1);
        line-height: 1.5;
    }

    .footer-contact p:last-of-type { border-bottom: 0; }

    .footer-contact p i {
        width: 36px;
        height: 36px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(var(--cyan-rgb), 0.14);
        font-size: var(--step-n1);
    }

    .footer-contact p a { flex: 1; color: rgba(255, 255, 255, 0.85); word-break: break-word; }

    .footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .footer-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        border-radius: var(--radius-pill);
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        color: var(--white) !important;
        font-weight: 600;
        font-size: var(--step-n1);
    }

    .footer-action.is-primary { background: var(--accent); border-color: var(--gold-text);
    color: var(--on-accent) !important;
}
    .footer-action:only-child { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        font-size: var(--step-n2);
    }
}

@media (max-width: 360px) {
    .footer-content { gap: 28px 14px; }
    .footer-links ul a { font-size: var(--step-n1); }
}


/* ==========================================================================
   12. Premium layer
   Refinement on top of the base design: serif display headings, softer
   purple-tinted shadows, consistent 20px card radius, gold ornaments, lift
   and shine on hover. Everything here is cosmetic; remove this block to get
   the plain design back.
   ========================================================================== */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Typography: serif for headlines, clean sans for everything else */
.hero-main h1,
.page-hero h1,
.section-header h2,
.cta-band h2,
.about-home h2,
.admissions-section h2,
.leader-message h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.18;
}
.section-header h2 { color: var(--primary); }

/* Section titles get a small gold ornament */
.section-header h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: var(--accent);
}
.section-header { margin-bottom: clamp(36px, 5vw, 60px); }
.section-header p { line-height: 1.75; }

/* Alternate section background: a soft tint instead of flat grey */
.bg-light { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 140%); }

/* Cards */
.card,
.quick-card,
.leader-message,
.card.level-card,
.card.update-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(var(--primary-rgb), .08);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur-base) var(--ease-premium), box-shadow var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium);
}
.card:hover,
.quick-card:hover,
.card.level-card:hover,
.card.update-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(var(--accent-rgb), .55);
}

/* Quick-access strip floats over the hero edge */
.quick-strip { background: transparent; border: 0; }
.quick-card { background: var(--white); }

/* Eyebrow label: purple chip with a gold dot */
.eyebrow {
    letter-spacing: .14em;
    font-weight: 700;
    border: 1px solid rgba(var(--primary-rgb), .12);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

/* Buttons */
.btn {
    position: relative;
    overflow: hidden;
    padding: 15px 34px;
    box-shadow: 0 6px 18px -6px rgba(var(--primary-rgb), .35);
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform var(--dur-slow) var(--ease-premium);
    pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(var(--primary-rgb), .45); }
.btn:hover::after { transform: translateX(120%); }
.btn-outline, .btn-outline-dark { box-shadow: none; }
.edu-apply-btn { box-shadow: 0 6px 16px -4px rgba(var(--accent-rgb), .55); }

/* Navigation: soft shadow under the sticky header */
.edu-navbar { box-shadow: 0 6px 22px -10px rgba(var(--overlay-rgb), .45); }

/* Hero: deeper purple wash so the text always reads, with a gold base line */
.hero-main::after,
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--accent);
    z-index: 3;
    pointer-events: none;
}
.hero-main h1 { text-shadow: 0 2px 24px rgba(var(--overlay-rgb), .45); }

/* Images: rounded with a layered frame */
.about-home img,
.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 50px -16px rgba(var(--primary-rgb), .35);
}

/* Stats band: purple with a quiet radial glow, gold numbers */
.stats {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(var(--accent-rgb), .12), transparent 55%),
        var(--primary);
}
.stat-item h3 { font-family: var(--font-serif); color: var(--accent); }

/* Closing call to action */
.cta-band {
    background:
        radial-gradient(ellipse at 85% 0%, rgba(var(--accent-rgb), .16), transparent 55%),
        var(--primary-dark);
}
.cta-band h2 { color: var(--white); }

/* Footer: deepest purple, gold hairline on top */
footer {
    background: var(--navy);
    border-top: 4px solid var(--accent);
}

/* Form fields */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], select, textarea {
    border-radius: 12px;
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}

/* Smooth anchor scrolling, and respect reduced-motion preferences */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    .card, .quick-card, .btn, .btn::after { transition: none !important; }
    .card:hover, .quick-card:hover, .btn:hover { transform: none; }
    html { scroll-behavior: auto; }
}


/* ==========================================================================
   13. Responsive refinements (mobile-first additions)
   Base rules above are written for phones; the min-width queries below only
   add what larger screens need. Touch targets follow the 44px guideline.
   ========================================================================== */

/* Never let a sliding reveal animation or a wide child create sideways scrolling */
html, body { max-width: 100%; overflow-x: clip; }
section, footer, .hero-main, .page-hero { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }

/* Long words and emails wrap instead of pushing the layout wide */
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
.edu-nav a, .btn { overflow-wrap: normal; }

/* Phones and small tablets */
@media (max-width: 1024px) {
    /* Footer links: easy to hit with a thumb */
    footer .footer-section ul a,
    footer .footer-legal a,
    footer .footer-section p a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    footer .footer-section ul li { margin: 0; }
    .social-links a,
    .edu-topbar-social a { width: 44px; height: 44px; }

    /* Text links used as call-to-actions */
    .level-link,
    .course-apply {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* Slider dots: tiny bars, but a 44px-tall tap area */
    .hero-dot { position: relative; }
    .hero-dot::before {
        content: '';
        position: absolute;
        inset: -20px -6px;
    }
}

@media (max-width: 768px) {
    /* 16px prevents iOS Safari from zooming in when a field is focused */
    input, select, textarea { font-size: var(--step-0); }
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
    input[type="date"], input[type="password"], select { min-height: 48px; }
    .btn { min-height: 48px; }

    /* Full-width stacked buttons are easier to tap */
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { width: 100%; }

    /* Calmer vertical rhythm */
    .section-header { margin-bottom: 32px; }
    .section-header p { font-size: var(--step-0); }
    .card, .quick-card, .leader-message { border-radius: 18px; }
}

@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .hero-main h1 { font-size: clamp(var(--step-5), 8.5vw, var(--step-7)); }
    .page-hero h1 { font-size: clamp(var(--step-4), 8vw, var(--step-7)); }
    .stat-item h3 { font-size: var(--step-7); }
}

/* Large screens: keep line length comfortable */
@media (min-width: 1600px) {
    :root { --container-width: 1360px; }
}

/* Touch devices: no sticky hover lift */
@media (hover: none) {
    .card:hover, .quick-card:hover, .btn:hover { transform: none; }
}

@media (max-width: 1024px) {
    .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The menu button must stay above the open drawer so it can close it */
@media (max-width: 900px) {
    .edu-topbar { z-index: auto; }
    .nav-toggle.is-open .nav-toggle-bar { background: var(--text); }
}


/* ==========================================================================
   14. Homepage: Islamic values and Student achievements
   ========================================================================== */
.values-section {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(var(--cyan-rgb), .08), transparent 50%),
        var(--cream);
}
.values-card { position: relative; border-top: 3px solid var(--green); }
.values-card .card-icon { background: var(--green); color: var(--white); }
.values-card:hover { border-color: var(--accent); border-top-color: var(--green); }
.values-card h3 { color: var(--primary); }

.achievement-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 22px;
    color: inherit;
    text-decoration: none;
}
.achievement-img {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--soft-sage);
}
.achievement-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-premium); }
.achievement-card:hover .achievement-img img { transform: scale(1.06); }
.achievement-img.is-empty { display: grid; place-items: center; font-size: var(--step-9); color: var(--accent); background: var(--primary); }
.achievement-meta {
    padding: 0 8px;
    font-size: var(--step-n3);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
}
.achievement-card h3 { padding: 0 8px; margin: 0; font-size: var(--step-1); color: var(--primary); }

/* Inner pages */
.cta-banner h2 { font-family: var(--font-serif); letter-spacing: -.01em; }
.facilities-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }


/* ==========================================================================
   15. UX and accessibility
   Skip link, focus rings, admission buttons, loading and empty states.
   ========================================================================== */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; outline: 3px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }

/* One clear keyboard focus ring everywhere (gold on dark areas, purple on light) */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.edu-navbar :focus-visible, footer :focus-visible, .stats :focus-visible, .cta-band :focus-visible,
.hero-main :focus-visible, .page-hero :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }

/* Admission buttons: gold, with an arrow that slides and a soft attention pulse in the header */
.btn-secondary,
.edu-apply-btn,
.header-apply-btn {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    font-weight: 800;
}
.btn-secondary:hover,
.edu-apply-btn:hover,
.header-apply-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn i.fa-arrow-right, .btn i.fa-arrow-right-long { transition: transform var(--dur-base) var(--ease-premium); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-right-long { transform: translateX(5px); }
@media (prefers-reduced-motion: no-preference) {
    .edu-apply-btn { animation: applyPulse 3.2s ease-in-out infinite; }
    .edu-apply-btn:hover { animation: none; }
}
@keyframes applyPulse {
    0%, 100% { box-shadow: 0 6px 16px -4px rgba(var(--accent-rgb), .55), 0 0 0 0 rgba(var(--accent-rgb), .45); }
    50%      { box-shadow: 0 6px 16px -4px rgba(var(--accent-rgb), .55), 0 0 0 10px rgba(var(--accent-rgb), 0); }
}

/* Loading state: a button shows a spinner while its form is being sent */
.btn.is-loading, button.is-loading { position: relative; color: transparent !important; cursor: progress; }
.btn.is-loading > *, button.is-loading > * { visibility: hidden; }
.btn.is-loading::before, button.is-loading::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, .4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::before { border-color: rgba(var(--ink-rgb), .25); border-top-color: var(--on-accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Images load onto a soft tinted placeholder instead of a blank gap */
.gallery-img, .achievement-img img, .card img, .about-home img { background-color: var(--soft-sage); }

/* Gallery: captions slide up on hover for a cleaner grid */
@media (hover: hover) {
    .gallery-caption { transform: translateY(100%); transition: transform var(--dur-base) var(--ease-premium); }
    .gallery-item:hover .gallery-caption, .gallery-item:focus-within .gallery-caption { transform: none; }
}
.gallery-item { border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }

/* Empty states match the card style */
.empty-state { border-radius: var(--radius-xl); background: var(--cream); border-color: rgba(var(--primary-rgb), .18); }
.empty-state-icon { background: var(--white); color: var(--primary); box-shadow: var(--shadow-card); }


/* ========================================
   16. Home hero: premium text, highlight and entrance animation
   ======================================== */
.hero-slider .hero-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(var(--overlay-rgb), .82) 0%, rgba(var(--overlay-rgb), .55) 34%, rgba(var(--overlay-rgb), 0) 66%),
        linear-gradient(0deg, rgba(var(--overlay-rgb), .55) 0%, rgba(var(--overlay-rgb), 0) 30%);
}
.hero-slider { min-height: clamp(560px, 44vw, 780px); }
.hero-slider .hero-main-content { max-width: min(450px, 33vw); }

.hero-main .eyebrow.on-dark {
    background: rgba(var(--accent-rgb), .16);
    color: var(--gold);
    border: 1px solid rgba(var(--accent-rgb), .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 9px 20px;
    margin-bottom: 4px;
}

.hero-main .hero-title {
    font-size: clamp(var(--step-6), 3.2vw, var(--step-10));
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 18px 0 14px;
    text-shadow: 0 3px 28px rgba(var(--overlay-rgb), .6);
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.hero-title .w > span { display: inline-block; }
.hero-title .w.hl { filter: drop-shadow(0 2px 14px rgba(var(--overlay-rgb), .55)); }
.hero-title .w.hl > span {
    background: linear-gradient(100deg, var(--accent) 0%, #FFE2A0 40%, var(--accent) 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    text-shadow: none;
}

.hero-rule {
    display: block;
    width: 84px;
    height: 4px;
    margin: 0 0 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .15));
}

.hero-main .hero-text {
    font-size: clamp(var(--step-0), 1.35vw, var(--step-2));
    max-width: 420px;
    color: rgba(255, 255, 255, .94);
    text-shadow: 0 1px 14px rgba(var(--overlay-rgb), .6);
}

.hero-caption .btn-secondary {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 10px 26px -8px rgba(var(--accent-rgb), .7);
}
.hero-caption .btn-secondary:hover { background: #FFC24F; transform: translateY(-2px); }
.hero-caption .btn-secondary i { margin-left: 8px; transition: transform var(--dur-base) var(--ease-out); }
.hero-caption .btn-secondary:hover i { transform: translateX(4px); }
.hero-caption .btn-outline {
    border: 2px solid rgba(255, 255, 255, .85);
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-caption .btn-outline:hover { background: var(--white); color: var(--primary-dark); }

/* entrance animation, replayed every time a caption becomes active */
.hero-caption { transform: none; }
.hero-caption .w > span { transform: translateY(115%); }
.hero-caption .eyebrow,
.hero-caption .hero-text,
.hero-caption .btn-group { opacity: 0; }
.hero-caption .hero-rule { transform: scaleX(0); transform-origin: left; }

.hero-caption.is-active .eyebrow { animation: heroFadeDown .7s .15s ease forwards; }
.hero-caption.is-active .w > span { animation: heroWord var(--dur-reveal) calc(.3s + var(--i) * .1s) var(--ease-out) forwards; }
.hero-caption.is-active .w.hl > span { animation: heroWord var(--dur-reveal) calc(.3s + var(--i) * .1s) var(--ease-out) forwards, heroShine 4.5s 1.4s ease-in-out infinite; }
.hero-caption.is-active .hero-rule { animation: heroRule var(--dur-reveal) .85s var(--ease-out) forwards; }
.hero-caption.is-active .hero-text { animation: heroFadeUp .8s 1s ease forwards; }
.hero-caption.is-active .btn-group { animation: heroFadeUp .8s 1.2s ease forwards; }

@keyframes heroWord { from { transform: translateY(115%); } to { transform: none; } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroFadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes heroRule { to { transform: scaleX(1); } }
@keyframes heroShine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

@media (max-width: 768px) {
    .hero-slider .hero-slides::after {
        background: linear-gradient(180deg, rgba(var(--overlay-rgb), .55) 0%, rgba(var(--overlay-rgb), .72) 45%, rgba(var(--overlay-rgb), .9) 100%);
    }
    .hero-main .hero-title { font-size: clamp(var(--step-6), 9vw, var(--step-8)); }
    .hero-slider .hero-main-content { max-width: none; }
    .hero-caption .btn-group .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-caption .w > span,
    .hero-caption .eyebrow,
    .hero-caption .hero-text,
    .hero-caption .btn-group { opacity: 1; transform: none; animation: none !important; }
    .hero-caption .hero-rule { transform: none; animation: none !important; }
}


/* ========================================
   17. About page
   ======================================== */
.about-story {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.about-story-text h2 { font-size: clamp(var(--step-5), 3.2vw, var(--step-8)); margin-bottom: 20px; color: var(--text); }
.about-story-text p { line-height: 1.85; margin-bottom: 16px; color: var(--text-light); }
.about-story-text p.about-story-lead { font-size: var(--step-1); color: var(--text); }

.about-highlights {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
    font-size: var(--step-n1);
    color: var(--text);
}
.about-highlights i {
    width: 36px; height: 36px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: var(--gold);
    font-size: var(--step-n1);
}

.about-story-media { position: relative; margin: 0; }
.about-story-media::before {
    content: '';
    position: absolute;
    inset: 22px -18px -18px 22px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    z-index: 0;
}
.about-story-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-hover);
}
.about-story-badge {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: -20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 36px);
    padding: 13px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 14px;
    border-bottom: 3px solid var(--accent);
    font-size: var(--step-n1);
    font-weight: 600;
    box-shadow: 0 14px 30px -10px rgba(var(--primary-rgb), .55);
}
.about-story-badge i { color: var(--gold); font-size: var(--step-1); }

/* mission and vision */
.about-mv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.about-mv-card {
    position: relative;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.about-mv-card h3 { font-family: var(--font-serif); font-size: var(--step-4); margin: 0 0 14px; color: var(--primary); }
.about-mv-card p { line-height: 1.85; margin: 0; color: var(--text-light); }
.about-mv-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--gold);
    font-size: var(--step-4);
}
.about-mv-card.is-mission {
    background: linear-gradient(150deg, var(--primary) 0%, var(--primary-darker) 100%);
    border-color: transparent;
    border-top-color: var(--accent);
}
.about-mv-card.is-mission h3 { color: var(--white); }
.about-mv-card.is-mission p { color: rgba(255, 255, 255, .9); }
.about-mv-card.is-mission .about-mv-icon { background: rgba(var(--accent-rgb), .18); }

/* quick links to the related pages */
.about-explore {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.about-explore-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-light);
    font-size: var(--step-n1);
    line-height: 1.4;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.about-explore-card > i:first-child {
    flex: none;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--cream);
    color: var(--primary);
    font-size: var(--step-2);
}
.about-explore-card span { flex: 1; min-width: 0; }
.about-explore-card strong { display: block; color: var(--text); font-size: var(--step-0); margin-bottom: 2px; }
.about-explore-go { color: var(--primary); transition: transform var(--dur-base) var(--ease-out); }
.about-explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--accent-rgb), .7); }
.about-explore-card:hover .about-explore-go { transform: translateX(4px); }

/* fallback principal card */
.about-principal {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}
.about-principal-head { text-align: center; margin-bottom: 26px; }
.about-principal-head img,
.about-principal-avatar {
    width: 150px; height: 150px;
    margin: 0 auto 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-card);
}
.about-principal-avatar { display: grid; place-items: center; background: var(--primary); color: var(--gold); font-size: 56px; }
.about-principal-head h3 { color: var(--primary); margin: 0 0 4px; }
.about-principal-head p { color: var(--muted); margin: 0; }
.about-principal p { line-height: 1.85; margin-bottom: 16px; }
.about-principal-quote { font-size: var(--step-1); font-style: italic; color: var(--text); }

@media (max-width: 900px) {
    .about-story { grid-template-columns: 1fr; }
    .about-story-media { order: -1; margin-bottom: 26px; }
    .about-story-media::before { inset: 14px -10px -10px 14px; }
    .about-story-media img { aspect-ratio: 16 / 11; }
    .about-mv { grid-template-columns: 1fr; }
    .about-explore { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .about-highlights { grid-template-columns: 1fr; }
    .about-story-badge { position: relative; left: 0; bottom: 0; margin-top: -22px; margin-left: 12px; font-size: var(--step-n2); }
    .about-mv-card h3 { font-size: var(--step-3); }
}

@media (max-width: 520px) {
    .about-story-text p.about-story-lead { font-size: var(--step-0); line-height: 1.75; }
    .about-story-text p { line-height: 1.75; }
    .about-story-media::before { inset: 12px -6px -8px 12px; }
}

.edu-topbar-social a.is-whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }

/* ==========================================================================
   Academic Excellence cards (home): navy headings, cyan highlights, quiet hover
   ========================================================================== */
.card.level-card {
    position: relative;
    overflow: hidden;
    padding: 30px 26px 26px;
}

/* cyan line that grows across the top edge on hover */
.card.level-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-premium);
}

.card.level-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--cyan-rgb), .45);
}

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

.level-card .card-icon {
    background: var(--light-blue);
    color: var(--navy);
    transition: background var(--transition), color var(--transition);
}

.level-card:hover .card-icon {
    background: var(--navy);
    color: var(--cyan);
}

.level-stage {
    background: var(--light-blue);
    color: var(--cyan-text);
}

.level-card h3 { color: var(--navy); }

.level-link { color: var(--navy); }

.level-link:hover,
.level-card:hover .level-link {
    color: var(--cyan-text);
}

/* ==========================================================================
   Why Choose Us (home): light-blue section, white cards, navy icon tiles
   ========================================================================== */
.why-section { background: var(--light-blue); }

.why-section .section-header h2 { color: var(--navy); }

.why-grid .card {
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), .08);
    box-shadow: var(--shadow-card);
}

.why-grid .card-icon {
    background: var(--navy);
    color: var(--cyan);
}

.why-grid .card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--cyan-rgb), .45);
    box-shadow: inset 0 3px 0 var(--gold-brand), var(--shadow-card-hover);
}

.why-grid .card:hover .card-icon {
    background: var(--cyan);
    color: var(--navy);
}

.why-grid .card h3 { color: var(--navy); }

/* ==========================================================================
   Facilities cards and Gallery polish
   ========================================================================== */
.facilities-grid .card {
    position: relative;
    overflow: hidden;
    padding: 34px 30px 30px;
    background: var(--white);
}

.facilities-grid .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-premium);
}

.facilities-grid .card:hover { transform: translateY(-4px); border-color: rgba(var(--cyan-rgb), .45); }
.facilities-grid .card:hover::before { transform: scaleX(1); }

.facilities-grid .card-icon {
    background: var(--navy);
    color: var(--cyan);
    transition: background var(--transition), color var(--transition);
}

.facilities-grid .card:hover .card-icon { background: var(--cyan); color: var(--navy); }
.facilities-grid .card h3 { color: var(--navy); }

/* Gallery: same-size tiles, quiet lift on hover, cyan accents */
.gallery-grid { gap: 20px; }

.gallery-item {
    border: 1px solid rgba(var(--primary-rgb), .08);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur-base) var(--ease-premium), box-shadow var(--dur-base) var(--ease-premium);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-img { height: 100%; aspect-ratio: 4 / 3; }

.gallery-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--overlay-rgb), 0);
    transition: background var(--dur-base) var(--ease-premium);
    pointer-events: none;
}

.gallery-link:hover::after,
.gallery-link:focus-visible::after { background: rgba(var(--overlay-rgb), .25); }

.gallery-zoom {
    z-index: 1;
    top: 50%;
    right: auto;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    background: var(--cyan);
    color: var(--navy);
}

.gallery-link { overflow: hidden; }

.gallery-filter:hover { border-color: var(--cyan); }
.gallery-filter span { background: var(--light-blue); }
.gallery-filter.is-active { background: var(--navy); border-color: var(--navy); }
.gallery-filter.is-active span { background: var(--cyan); color: var(--navy); }

.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--cyan); color: var(--navy); }

@media (max-width: 640px) {
    .gallery-grid { gap: 10px; }
    .gallery-item:hover { transform: none; }
}

/* ==========================================================================
   News & Events cards, closing admissions band, footer finish
   ========================================================================== */
.card.update-card { position: relative; background: var(--white); }

.card.update-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-base) var(--ease-premium);
    z-index: 2;
}

.card.update-card:hover { transform: translateY(-4px); border-color: rgba(var(--cyan-rgb), .45); }
.card.update-card:hover::before { transform: scaleX(1); }

.update-media img { transition: transform var(--dur-slow) var(--ease-premium); }
.update-card:hover .update-media img { transform: scale(1.05); }

.update-placeholder { background: var(--navy); color: var(--cyan); }

.update-category.is-news { background: var(--light-blue); color: var(--cyan-text); }
.update-category.is-event { background: rgba(var(--accent-rgb), .16); color: var(--gold-text); }
.update-date { color: var(--slate); }
.update-body h3 a { color: var(--navy); }
.update-body h3 a:hover { color: var(--cyan-text); }

/* closing band: navy with a gold rule; the gold button is static (no looping pulse) */
.cta-band { background: var(--navy); }
.cta-band .btn-secondary,
.admissions-intro .btn-secondary,
.edu-apply-btn { animation: none; }

/* footer */
footer .footer-heading { color: var(--white); }
footer .footer-section a:hover { color: var(--cyan); }
.social-links a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

/* Campus Life cards: an incomplete last row is centred instead of left-aligned */
.life-photo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.life-photo-grid > .life-photo { flex: 0 1 280px; }


/* ==========================================================================
   Typography: Poppins for headings, navigation and buttons; Inter for body text
   Scale: body 16px / 1.7, small 14px, h4 18, h3 20, h2 26-38, h1 30-48
   ========================================================================== */

body { font-size: var(--fs-body); font-weight: 400; line-height: 1.7; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -.01em; }
h1, h2 { font-weight: 700; line-height: 1.2; }
h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }

.hero-main h1,
.page-hero h1,
.section-header h2,
.cta-band h2,
.about-home h2,
.admissions-section h2,
.cta-banner h2,
.leader-message h3,
.about-mv-card h3,
.stat-item h3 { font-family: var(--font-display); }

.section-header h2 { font-size: var(--fs-h2); }
.page-hero h1 { font-size: var(--fs-h1); }
.hero-main .hero-title { font-size: clamp(var(--step-5), 3.3vw, var(--step-9)); line-height: 1.18; }
.card h3, .level-card h3, .update-body h3 { font-size: var(--fs-h3); font-weight: 600; }

/* navigation: Poppins 500, current page 600 */
.site-nav > a,
.nav-dropdown-trigger { font-family: var(--font-display); font-weight: 500; }
.site-nav > a.is-active,
.nav-dropdown.is-active .nav-dropdown-trigger { font-weight: 600; }
.nav-dropdown-panel a { font-family: var(--font-display); font-weight: 500; }

/* buttons: Poppins 600 */
.btn,
.edu-apply-btn,
.header-apply-btn,
.footer-action,
.gallery-filter,
button.btn { font-family: var(--font-display); font-weight: 600; }

/* Accessibility: readable text on light-blue sections, visible focus on the scrollable review track */
.why-section .section-header p,
.admissions-section .section-header p { color: var(--navy-dark); }
.testimonial-track:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: var(--radius-md); }

/* Leadership message: breathing room on the right edge of the text */
.leader-message { padding-right: 32px; }

/* ==========================================================================
   Campus directory (campuses.php) and campus profile (campus.php)
   ========================================================================== */
.campus-search { position: relative; max-width: 520px; margin: 0 auto 36px; }
.campus-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.campus-search input { width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); font: inherit; font-size: var(--step-n1); color: var(--text); }
.campus-search input:focus { outline: 3px solid rgba(var(--cyan-rgb), .35); border-color: var(--cyan); }
.campus-no-match { text-align: center; color: var(--slate); margin-top: 24px; }

.campus-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.campus-dir-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--dur-base) var(--ease-premium), box-shadow var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium); }
.campus-dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--cyan-rgb), .45); }
.campus-dir-card[hidden] { display: none; }
.campus-dir-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-blue); }
.campus-dir-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-premium); }
.campus-dir-card:hover .campus-dir-media img { transform: scale(1.05); }
.campus-dir-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: var(--navy); color: var(--cyan); font-size: var(--step-10); }
.campus-dir-fallback-logo { width: 46%; height: auto !important; max-height: 80%; object-fit: contain !important; }
.campus-dir-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.campus-dir-logo { position: absolute; top: -34px; right: 22px; width: 64px; height: 64px; object-fit: contain; padding: 6px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.campus-dir-city { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--cyan-text); font-size: var(--step-n3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.campus-dir-body h3 { font-size: var(--fs-h3); line-height: 1.3; margin-bottom: 6px; }
.campus-dir-body h3 a { color: var(--navy); }
.campus-dir-body h3 a:hover { color: var(--cyan-text); }
.campus-dir-tagline { color: var(--slate); font-size: var(--step-n1); margin-bottom: 14px; }
.campus-dir-info { list-style: none; padding: 14px 0 0; margin: 0 0 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: var(--step-n1); color: var(--text); flex: 1; }
.campus-dir-info li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.campus-dir-info i { color: var(--cyan); width: 16px; margin-top: 4px; text-align: center; flex-shrink: 0; }
.campus-dir-info a:hover { color: var(--cyan-text); }
.campus-dir-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.campus-dir-actions .btn { padding: 10px 18px; font-size: var(--step-n1); }
.campus-dir-site { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--navy); transition: background var(--transition), color var(--transition); }
.campus-dir-site:hover { background: var(--cyan); color: var(--navy); }

/* profile page */
.campus-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.campus-profile-main { display: grid; gap: 28px; }
.campus-profile-side { display: grid; gap: 28px; position: sticky; top: 150px; }
.campus-panel { background: var(--white); border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 30px; }
.campus-panel h2 { font-size: var(--step-3); color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--gold-brand); display: inline-block; }
.campus-about { line-height: 1.85; color: var(--text); }
.campus-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.campus-tags li { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--navy); font-weight: 500; font-size: var(--step-n1); }
.campus-tags i { color: var(--cyan); }
.campus-highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.campus-highlights li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.campus-highlights i { color: var(--cyan); margin-top: 4px; }
.campus-map { aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--light-blue); border: 1px solid var(--border); }
.campus-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.campus-contact-logo { display: block; max-width: 150px; max-height: 90px; width: auto; height: auto; margin: 0 0 16px; object-fit: contain; }
.campus-facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.campus-facts li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; font-size: var(--step-n1); }
.campus-facts i { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: var(--radius-sm); background: var(--navy); color: var(--cyan); font-size: var(--step-n1); }
.campus-facts strong { display: block; font-size: var(--step-n3); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 1px; }
.campus-facts a:hover { color: var(--cyan-text); }
.campus-side-actions { display: grid; gap: 10px; }
.campus-side-actions .btn { width: 100%; }
.campus-head-card { display: flex; gap: 16px; align-items: center; }
.campus-head-card img, .campus-head-fallback { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-brand); flex-shrink: 0; }
.campus-head-fallback { display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-size: var(--step-6); }
.campus-head-card strong { display: block; color: var(--navy); font-size: var(--step-1); }
.campus-head-card span { display: block; color: var(--slate); font-size: var(--step-n1); margin-bottom: 6px; }
.campus-head-card a { display: block; font-size: var(--step-n1); word-break: break-word; }
.campus-head-card a:hover { color: var(--cyan-text); }
.campus-dir-grid-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mt-20 { margin-top: 20px; }

@media (max-width: 1000px) {
    .campus-profile-grid { grid-template-columns: 1fr; }
    .campus-profile-side { position: static; }
}
@media (max-width: 600px) {
    .campus-panel { padding: 22px; }
    .campus-highlights { grid-template-columns: 1fr; }
    .campus-dir-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Admission inquiry: form extras, printable slip, status tracking
   ========================================================================== */
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.inquiry-radios { display: flex; gap: 12px; flex-wrap: wrap; }
.inquiry-radio { position: relative; flex: 1 1 120px; cursor: pointer; }
.inquiry-radio input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.inquiry-radio span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; color: var(--text); transition: border-color var(--transition), background var(--transition), color var(--transition); }
.inquiry-radio:hover span { border-color: var(--cyan); }
.inquiry-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.inquiry-radio input:focus-visible + span { outline: 3px solid rgba(var(--cyan-rgb), .45); outline-offset: 2px; }
.inquiry-track-hint { margin: 10px 0 0; color: var(--slate); font-size: var(--step-n1); }
.inquiry-track-hint a { color: var(--cyan-text); font-weight: 600; text-decoration: underline; }

.inquiry-slip { padding: 36px; }
.inquiry-slip-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 3px solid var(--gold-brand); }
.inquiry-slip-head img { width: 64px; height: 64px; object-fit: contain; }
.inquiry-slip-head strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--navy); line-height: 1.2; }
.inquiry-slip-head span { color: var(--slate); font-size: var(--step-n1); letter-spacing: .06em; text-transform: uppercase; }
.inquiry-ref { text-align: center; padding: 20px; margin-bottom: 24px; background: var(--light-blue); border-radius: var(--radius-md); }
.inquiry-ref span { display: block; font-size: var(--step-n2); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.inquiry-ref strong { display: block; font-family: var(--font-display); font-size: clamp(var(--step-4), 5vw, var(--step-7)); color: var(--navy); letter-spacing: .04em; margin: 4px 0; word-break: break-all; }
.inquiry-ref small { color: var(--slate); }
.inquiry-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 24px; }
.inquiry-details > div { padding: 11px 0; border-bottom: 1px solid var(--border); }
.inquiry-details dt { font-size: var(--step-n3); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.inquiry-details dd { margin: 2px 0 0; color: var(--navy); font-weight: 500; word-break: break-word; }
.inquiry-status-box { padding: 18px 20px; margin-bottom: 22px; background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--cyan); border-radius: var(--radius-md); }
.inquiry-status-box p { margin: 10px 0 0; color: var(--text); }
.inquiry-note { padding: 12px 14px; background: var(--light-blue); border-radius: var(--radius-sm); }
.inq-pill { display: inline-block; padding: 5px 14px; border-radius: var(--radius-sm); color: #fff; font-size: var(--step-n2); font-weight: 600; letter-spacing: .02em; }
.inquiry-h3 { font-size: var(--step-0); color: var(--navy); margin: 0 0 12px; }
.inquiry-timeline { list-style: none; margin: 0 0 24px; padding: 0 0 0 4px; }
.inquiry-timeline li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 0 0 16px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.inquiry-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.inquiry-timeline .dot { position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.inquiry-timeline time { color: var(--slate); font-size: var(--step-n2); }
.inquiry-slip-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
@media (max-width: 640px) {
    .inquiry-slip { padding: 22px; }
    .inquiry-details { grid-template-columns: 1fr; }
    .inquiry-slip-actions .btn { flex: 1 1 100%; }
}

/* printing: only the slip (or the admin inquiry sheet) comes out, on a clean page */
@media print {
    body * { visibility: hidden !important; }
    .inquiry-slip, .inquiry-slip *, .print-sheet, .print-sheet * { visibility: visible !important; }
    .inquiry-slip, .print-sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .no-print { display: none !important; }
    .inquiry-ref, .inquiry-note { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .inq-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   Notices & circulars: notice board, notice page, home panel, printing
   ========================================================================== */
.print-only { display: none; }

.notice-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-sm); color: #fff; font-size: var(--step-n3); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

.notice-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.notice-views { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.notice-views a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--step-n1); color: var(--navy); }
.notice-views a.is-active { background: var(--navy); color: var(--white); }
.notice-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice-search select, .notice-search-box input { padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: var(--step-n1); color: var(--text); }
.notice-search-box { position: relative; }
.notice-search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.notice-search-box input { padding-left: 38px; min-width: 220px; }
.notice-search .btn { padding: 11px 22px; font-size: var(--step-n1); }

.notice-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.notice-cats a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-weight: 500; font-size: var(--step-n1); transition: border-color var(--transition), background var(--transition), color var(--transition); }
.notice-cats a span { padding: 1px 8px; border-radius: var(--radius-sm); background: var(--light-blue); font-size: var(--step-n3); font-weight: 600; }
.notice-cats a:hover { border-color: var(--cyan); }
.notice-cats a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.notice-cats a.is-active span { background: var(--cyan); color: var(--navy); }

.notice-list { display: grid; gap: 16px; }
.notice-card { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; background: var(--white); border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease-premium), box-shadow var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium); }
.notice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--cyan-rgb), .45); }
.notice-card.is-pinned { border-left: 4px solid var(--gold-brand); }
.notice-date { flex: 0 0 66px; text-align: center; padding: 10px 6px; border-radius: var(--radius-md); background: var(--navy); color: var(--white); line-height: 1.1; }
.notice-date strong { display: block; font-family: var(--font-display); font-size: var(--step-4); }
.notice-date span { font-size: var(--step-n3); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); }
.notice-main { min-width: 0; flex: 1; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.notice-flag, .notice-audience { font-size: var(--step-n2); color: var(--slate); display: inline-flex; gap: 6px; align-items: center; }
.notice-flag { color: var(--gold-text); font-weight: 600; }
.notice-card h3 { font-size: var(--step-2); line-height: 1.35; margin: 0 0 6px; }
.notice-card h3 a { color: var(--navy); }
.notice-card h3 a:hover { color: var(--cyan-text); }
.notice-card p { margin: 0 0 12px; color: var(--text); font-size: var(--step-n1); line-height: 1.65; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.notice-link { font-weight: 600; font-size: var(--step-n1); color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.notice-link:hover { color: var(--cyan-text); }
.notice-file { display: inline-flex; gap: 7px; align-items: center; padding: 5px 12px; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--navy); font-weight: 600; font-size: var(--step-n2); }
.notice-file i { color: var(--red-brand); }
.notice-file:hover { background: var(--cyan); }
.notice-card.is-compact { padding: 16px 20px; }
.notice-card.is-compact h3 { font-size: var(--step-1); margin-bottom: 8px; }
.notice-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; color: var(--slate); }
.notice-pager a { padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-weight: 600; }
.notice-pager a:hover { border-color: var(--cyan); }

/* notice page */
.notice-sheet { padding: 36px; }
.notice-facts { list-style: none; margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px 32px; }
.notice-facts li { display: flex; gap: 12px; align-items: center; font-size: var(--step-n1); }
.notice-facts i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--navy); color: var(--cyan); font-size: var(--step-n1); flex-shrink: 0; }
.notice-facts strong { display: block; font-size: var(--step-n3); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.notice-lead { font-size: var(--step-1); line-height: 1.7; color: var(--navy); font-weight: 500; margin-bottom: 18px; }
.notice-body { line-height: 1.85; color: var(--text); font-size: var(--step-0); overflow-wrap: anywhere; }
.notice-body a { color: var(--cyan-text); text-decoration: underline; }
.notice-files { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.notice-files h2 { font-size: var(--step-1); color: var(--navy); margin-bottom: 14px; }
.notice-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notice-files li { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-main); }
.notice-files li > i { font-size: var(--step-5); color: var(--red-brand); }
.notice-files li > span:nth-of-type(1) { flex: 1; min-width: 160px; }
.notice-files strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.notice-files small { color: var(--slate); }
.notice-file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice-file-actions .btn { padding: 9px 16px; font-size: var(--step-n2); }
.notice-sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.notice-letterhead { align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid #E1A10B; }
.notice-letterhead img { object-fit: contain; }
.notice-letterhead strong { display: block; font-size: var(--step-2); color: #001C3E; }
.notice-letterhead span { color: #64748B; font-size: var(--step-n2); text-transform: uppercase; letter-spacing: .06em; }
.notice-print-title { font-size: var(--step-4); margin: 0 0 14px; color: #001C3E; }

/* home page panel */
.home-notices { padding: 70px 0; }
.home-notices-grid { display: grid; gap: 14px; }
.home-notices-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

@media (max-width: 700px) {
    .notice-card { gap: 14px; padding: 18px; }
    .notice-date { flex-basis: 54px; }
    .notice-date strong { font-size: var(--step-3); }
    .notice-sheet { padding: 22px; }
    .notice-search-box input { min-width: 0; width: 100%; }
    .notice-search { width: 100%; }
    .notice-search-box { flex: 1 1 180px; }
    .notice-file-actions .btn, .notice-sheet-actions .btn { flex: 1 1 100%; }
}

@media print {
    .print-only { display: flex !important; }
    h2.print-only { display: block !important; }
    p.print-only { display: block !important; }
    .notice-sheet { font-size: var(--step-n2); }
    .notice-facts i { background: #001C3E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .notice-files li { border: 1px solid #cbd5e1 !important; }
    .notice-files li > i { color: #C5161D !important; }
}

/* ==========================================================================
   Contact page: campus-wise contacts, map switcher, social links
   ========================================================================== */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.cc-card { display: flex; flex-direction: column; padding: 26px; background: var(--white); border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease-premium), box-shadow var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium); }
.cc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--cyan-rgb), .45); }
.cc-card header { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 3px solid var(--gold-brand); }
.cc-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: var(--radius-md); background: var(--navy); color: var(--cyan); font-size: var(--step-2); }
.cc-card h3 { font-size: var(--step-2); line-height: 1.3; margin: 0 0 2px; }
.cc-card h3 a { color: var(--navy); }
.cc-card h3 a:hover { color: var(--cyan-text); }
.cc-city { font-size: var(--step-n2); color: var(--slate); font-weight: 500; }
.cc-info { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; flex: 1; font-size: var(--step-n1); }
.cc-info li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; line-height: 1.5; }
.cc-info i { color: var(--cyan); width: 16px; margin-top: 4px; text-align: center; flex-shrink: 0; }
.cc-info li > span, .cc-info li > a:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cc-info li > a:not(:first-of-type) { flex-basis: 100%; padding-left: 28px; }
.cc-info a:hover { color: var(--cyan-text); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { padding: 10px 18px; font-size: var(--step-n1); }

.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.map-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font: inherit; font-weight: 500; font-size: var(--step-n1); cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.map-tab:hover { border-color: var(--cyan); }
.map-tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.map-tab:focus-visible { outline: 3px solid rgba(var(--cyan-rgb), .45); outline-offset: 2px; }
.contact-map { height: 380px; margin-bottom: 14px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--light-blue); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours-note { margin: 14px 0 0; font-size: var(--step-n2); color: var(--slate); }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--navy); font-weight: 600; font-size: var(--step-n1); transition: background var(--transition), color var(--transition); }
.social-list a:hover { background: var(--navy); color: var(--white); }
.social-list i { color: var(--cyan-text); font-size: var(--step-0); }
.social-list a:hover i { color: var(--cyan); }
@media (max-width: 600px) {
    .contact-map { height: 300px; }
    .cc-actions .btn { flex: 1 1 100%; }
}

/* Campus cards: professional, balanced framing (homepage + directory) */
.campus-dir-grid > .campus-dir-card { height: 100%; }
.campus-dir-media { aspect-ratio: 4 / 3; position: relative; }
.campus-dir-media img { object-position: center 28%; }   /* portrait building photos keep their signboard in frame */
.campus-dir-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(0, 28, 62, .38), transparent); pointer-events: none; }
.campus-dir-fallback { background: linear-gradient(135deg, var(--navy), #0B2A4A); }
.campus-dir-body h3 { min-height: 2.6em; display: flex; align-items: flex-start; }
.campus-dir-actions { margin-top: auto; }
.campus-dir-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; white-space: nowrap; }
.campus-dir-actions .campus-dir-site { flex: 0 0 42px; }
/* One campus per row: photo on the left, details on the right */
@media (min-width: 768px) {
    .campus-dir-media > img { position: absolute; inset: 0; width: 100%; height: 100%; }   /* the photo fills the card, it never decides its height */
    .campus-dir-media .campus-dir-fallback { position: absolute; inset: 0; }
}
.campus-dir-grid, .campus-dir-grid--four { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1040px; margin-inline: auto; }
.campus-dir-card { flex-direction: row; min-height: 320px; }
.campus-dir-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 100%; }
.campus-dir-media::after { inset: 0; height: auto; background: linear-gradient(to right, transparent 70%, rgba(0, 28, 62, .18)); }
.campus-dir-body { padding: 34px 38px; justify-content: center; }
.campus-dir-body h3 { min-height: 0; font-size: clamp(var(--step-4), 2.4vw, var(--step-6)); }
.campus-dir-logo { top: 28px; right: 32px; width: 72px; height: 72px; }
.campus-dir-desc { color: var(--text); font-size: var(--step-n1); line-height: 1.7; margin: 0 0 14px; }
.campus-dir-info { flex: 0 0 auto; }
.campus-dir-actions { margin-top: 4px; }
.campus-dir-actions .btn { flex: 0 0 auto; }
@media (max-width: 767px) {
    .campus-dir-card { flex-direction: column; min-height: 0; }
    .campus-dir-media { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
    .campus-dir-media::after { inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(0, 28, 62, .38), transparent); }
    .campus-dir-body { padding: 22px 20px; }
    .campus-dir-logo { top: -32px; right: 18px; width: 60px; height: 60px; }
    .campus-dir-actions .btn { flex: 1 1 100%; }
}
.campus-hero-bg { background-position: center 62%; }   /* tall building photos: show the signboard, not just the windows */

/* Campuses page: at-a-glance strip, filters, calmer section rhythm */
.campus-glance-wrap { position: relative; z-index: 2; padding: 0; margin-top: -44px; }
.campus-glance { list-style: none; margin: 0 auto; padding: 22px 28px; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 20px 28px; align-items: center; background: var(--white); border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius-xl); box-shadow: var(--shadow-card-hover); }
.campus-glance li { display: flex; align-items: center; gap: 14px; color: var(--slate); font-size: var(--step-n1); line-height: 1.35; }
.campus-glance strong { display: block; font-family: var(--font-heading, 'Poppins', sans-serif); font-size: var(--step-5); line-height: 1.1; color: var(--navy); }
.campus-glance-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--light-blue); color: var(--cyan-text); font-size: var(--step-2); }
.campus-glance-cta { justify-content: flex-end; }
.campus-directory-section { padding-top: 70px; }
.campus-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 1040px; margin: 0 auto 32px; }
.campus-toolbar .campus-search { margin: 0; flex: 1 1 300px; max-width: 420px; }
.campus-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.campus-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy); font: 600 14px/1 var(--font-heading, 'Poppins', sans-serif); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.campus-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--light-blue); color: var(--cyan-text); font-size: var(--step-n3); }
.campus-chip:hover { border-color: var(--cyan); }
.campus-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.campus-chip.is-active span { background: var(--cyan); color: var(--navy); }
.campus-chip:focus-visible { outline: 3px solid rgba(var(--cyan-rgb), .45); outline-offset: 2px; }
@media (max-width: 900px) {
    .campus-glance { grid-template-columns: repeat(3, 1fr); }
    .campus-glance-cta { grid-column: 1 / -1; justify-content: stretch; }
    .campus-glance-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .campus-glance-wrap { margin-top: -28px; }
    .campus-glance { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
    .campus-directory-section { padding-top: 50px; }
    .campus-toolbar .campus-search { max-width: none; flex-basis: 100%; }
    .campus-filters { width: 100%; }
}

/* Campus photo: shown complete (object-fit: contain) on a soft blurred copy of itself */
.campus-dir-photo { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--navy); }
.campus-dir-photo::before { content: ''; position: absolute; inset: -24px; background: var(--photo) center / cover; filter: blur(22px) brightness(.85); transform: scale(1.05); }
.campus-dir-photo img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.campus-dir-card:hover .campus-dir-media img { transform: none; }
.campus-dir-media:has(.campus-dir-photo)::after { display: none; }
@media (min-width: 768px) {
    .campus-dir-card { min-height: 420px; }
    .campus-dir-media { flex-basis: 40%; }
}
@media (max-width: 767px) {
    .campus-dir-media { aspect-ratio: 4 / 5; max-height: 460px; position: relative; }
}

/* Two campuses per row on larger screens (one per row on phones) */
.campus-dir-grid, .campus-dir-grid--four { max-width: 1190px; }
@media (min-width: 768px) {
    .campus-dir-grid, .campus-dir-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .campus-dir-card { flex-direction: column; min-height: 0; }
    .campus-dir-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; position: relative; }
    .campus-dir-body { padding: 26px 28px 28px; justify-content: flex-start; flex: 1; }
    .campus-dir-logo { top: -34px; right: 22px; width: 64px; height: 64px; }
    .campus-dir-body h3 { font-size: clamp(var(--step-3), 2vw, var(--step-4)); }
    .campus-dir-info { flex: 1 1 auto; }
    .campus-dir-actions { margin-top: 6px; }
}

/* Campus cards, final layout: photo left with a gold corner, details right (two cards per row on wide screens) */
.campus-dir-photo.is-wide img { object-fit: cover; }
.campus-dir-card .campus-dir-media::after { display: block; content: ''; position: absolute; inset: auto 0 0 auto; width: 64px; height: 64px; background: var(--gold-brand); border-radius: 100% 0 0 0; pointer-events: none; z-index: 2; }
.campus-dir-actions .btn-primary { background: var(--navy); color: var(--white); box-shadow: none; }
.campus-dir-actions .btn-primary:hover { background: #0B2A4A; color: var(--white); }
.campus-dir-actions .btn-outline-dark { background: var(--white); border-width: 1.5px; }
@media (min-width: 600px) {
    .campus-dir-grid, .campus-dir-grid--four { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .campus-dir-card { flex-direction: row; min-height: 250px; }
    .campus-dir-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
    .campus-dir-body { padding: 26px 26px 24px; justify-content: center; flex: 1; min-width: 0; }
    .campus-dir-body h3 { min-height: 0; font-size: clamp(var(--step-2), 2vw, var(--step-4)); }
    .campus-dir-logo { top: 20px; right: 20px; width: 48px; height: 48px; padding: 4px; }
    .campus-dir-info { flex: 0 0 auto; margin-bottom: 18px; }
    .campus-dir-actions { margin-top: 0; flex-wrap: wrap; }
    .campus-dir-actions .btn { padding: 10px 16px; font-size: var(--step-n2); flex: 0 0 auto; }
}
@media (min-width: 1000px) {
    .campus-dir-grid, .campus-dir-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .campus-dir-media { min-height: 0; }
}

/* ==========================================================================
   Pass 3: layout and responsive (OmniForge upgrade)
   ========================================================================== */
/* Desktop: the logo bar scrolls away, the menu bar stays. Saves about 85 px of every screen while reading.
   --topbar-h is measured by main.js (fallback below). Phones keep the whole bar: it holds the menu button. */
@media (min-width: 901px) {
    .site-header { top: calc(-1 * var(--topbar-h, 67px)); }
}
html { scroll-padding-top: 72px; }               /* anchor jumps clear the sticky menu bar */

/* slider dots: a comfortable pointer and touch target around the thin bars */
.hero-dot { position: relative; }
.hero-dot::before { content: ''; position: absolute; inset: -10px -4px; }
.hero-dots { align-items: center; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero-pause {
    width: 28px; height: 28px; margin-left: 6px; padding: 0;
    display: inline-grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
    background: rgba(var(--primary-rgb), .35); color: var(--white); font-size: var(--step-n3); cursor: pointer;
    transition: background var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
.hero-pause:hover { background: rgba(var(--primary-rgb), .65); border-color: var(--white); }
.hero-pause:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

/* phone numbers and email addresses are tap targets */
a[href^="tel:"], a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 24px; }

/* ==========================================================================
   Pass 4: states (rest / hover / focus / active / disabled / loading / invalid / empty) and fallback media
   ========================================================================== */
.btn:active, .edu-apply-btn:active, .header-apply-btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"], button:disabled, input:disabled, select:disabled, textarea:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
input:disabled, select:disabled, textarea:disabled { background: var(--light-blue); }
.btn:disabled:hover { transform: none; }

/* a field the visitor has filled in wrongly (shown after they leave it, never on a fresh form) */
input:user-invalid, select:user-invalid, textarea:user-invalid,
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(197, 22, 29, .12);
}

/* news and events without a photo: the school's navy with its gold corner, never a flat grey tile */
.update-media .update-placeholder {
    position: relative;
    opacity: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--cyan);
}
.update-media .update-placeholder::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 100% 0 0 0;
}

/* ==========================================================================
   Leadership messages: the whole portrait, a clean quote, names shown once
   ========================================================================== */
.leader-card {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(24px, 4vw, 52px);
    align-items: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(var(--primary-rgb), .08);
}
.leader-card-reverse { grid-template-columns: 1fr minmax(240px, 320px); }

/* the portrait is shown whole (never cropped: many are framed portraits with a name caption) inside a navy frame with a gold outline */
.leader-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 26px;
    border: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    box-shadow: var(--shadow-card-hover);
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}
.leader-photo img { object-fit: contain; object-position: center; }
.leader-photo .fa-user-tie { color: var(--cyan); }

.leader-profile h3 {
    font-size: var(--step-n2);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 8px;
}
.leader-name { font-size: var(--step-3); color: var(--navy); line-height: 1.25; }
.leader-designation { font-size: var(--step-n1); color: var(--slate); }

/* the message: a clean quote, not a box inside a box */
.leader-message,
.leader-message:hover {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
.leader-quote {
    position: static;
    display: block;
    margin-bottom: 14px;
    font-size: var(--step-8);
    line-height: 1;
    color: var(--accent);
    opacity: 1;
}
.leader-text { font-size: var(--step-1); line-height: 1.85; color: var(--text); max-width: 64ch; }
.leader-sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.leader-sign-name { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy); }

@media (max-width: 768px) {
    .leader-card,
    .leader-card-reverse { grid-template-columns: 1fr; gap: 28px; text-align: left; }
    .leader-card-reverse .leader-profile { order: 0; }
    .leader-profile { text-align: center; }
    .leader-photo { max-width: 260px; width: 100%; height: auto; }
    .leader-quote { font-size: var(--step-6); }
    .leader-text { font-size: var(--step-0); }
}
