/* ==========================================================================
   Star College Jaipur — public site
   Self-contained stylesheet (no framework, no external fonts).
   Sections: tokens → base → layout → header → footer → components → pages
   ========================================================================== */

/* ============================ TOKENS ============================ */
:root {
    --brand:        #0b5cab;
    --brand-dark:   #084680;
    --brand-light:  #e8f1fb;
    --accent:       #f5a524;
    --accent-dark:  #c97f0a;

    --ink:          #101a2b;
    --ink-2:        #33415c;
    --muted:        #667287;
    --line:         #e4e8ef;
    --bg:           #ffffff;
    --bg-soft:      #f5f7fb;

    --radius:       14px;
    --radius-sm:    10px;
    --shadow:       0 2px 8px rgba(16, 26, 43, .06);
    --shadow-lg:    0 18px 44px rgba(16, 26, 43, .12);

    --container:    1200px;
    --header-h:     84px;

    /* Header */
    --nav-ink:      #1e2749;
    --topbar-bg:    #f4f3fb;
    --header-bg:    #ffffff;
}

/* ============================ BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ============================ LAYOUT ============================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 48px 0; }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.section-head--left { margin-left: 0; text-align: left; }

.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }

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

.btn--accent { background: var(--accent); color: #14203a; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-light); color: var(--brand-dark); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--brand); }

.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ============================ HEADER ============================ */
/* Two-tier bar: a light utility strip on top, then logo · centred nav ·
   Apply Now pill. Dropdowns open on hover (desktop) / tap (mobile). */

/* Utility strip */
.topbar {
    background: var(--topbar-bg);
    color: var(--nav-ink);
    font-size: .95rem;
    border-bottom: 1px solid rgba(30, 39, 73, .06);
}
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 24px;
    min-height: 46px;
    padding: 6px 0;
}
.topbar__note { color: var(--muted); font-size: .86rem; }
.topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar__nav a {
    color: var(--nav-ink);
    font-weight: 500;
    white-space: nowrap;
}
.topbar__nav a:hover { color: var(--brand); }
.topbar__nav a.is-active { color: var(--brand); font-weight: 600; }

/* Both header rows run wider than the page container so the nav has room. */
.topbar .container,
.site-header .container { max-width: 1400px; }

/* Main bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
}
.site-header__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}
.brand__logo {
    height: 48px; width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}
.brand__name { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.15; }
.brand__name small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* Nav sits in the middle, between the logo and the Apply button. */
.nav { margin: 0 auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--nav-ink);
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    transition: color .15s;
}
.nav__link:hover { color: var(--brand); }
.nav__link.is-active { color: var(--brand); font-weight: 600; }

/* Utility links and the CTA pair are drawer-only — the desktop header carries
   them in the utility strip and the Apply pill instead. */
.nav__extra, .nav__cta { display: none; }

.nav__caret {
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 1px;
    opacity: .75;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .2s, color .2s;
}
.has-drop:hover > .nav__link,
.has-drop:focus-within > .nav__link { color: var(--brand); }
.has-drop:hover > .nav__link .nav__caret,
.has-drop:focus-within > .nav__link .nav__caret {
    transform: rotate(-135deg) translate(-1px, -1px);
    color: var(--accent-dark);
    opacity: 1;
}

/* Dropdown panels */
.has-drop { position: relative; }
.drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 288px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
}
/* Panels hanging off the last nav item align to their right edge so they
   never run past the container. */
.drop--right { left: auto; right: 0; }
/* Invisible bridge over the gap so the menu survives the mouse trip
   from the nav link down to the first item. */
.drop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.has-drop:hover > .drop,
.has-drop:focus-within > .drop,
.has-drop.is-open > .drop { display: block; }

.drop__item {
    display: block;
    padding: 11px 16px;
    border-radius: 10px;
    color: var(--nav-ink);
    font-size: .96rem;
    font-weight: 500;
}
.drop__item small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.drop__item:hover { background: var(--bg-soft); color: var(--brand); }
.drop__item.is-active { color: var(--brand); font-weight: 600; }
/* Plain link lists (Policies, Legal) get hairlines between the rows. */
.drop--plain .drop__item + .drop__item { border-top: 1px solid var(--line); border-radius: 0; }
.drop--plain .drop__item:first-child { border-radius: 10px 10px 0 0; }
.drop--plain .drop__item:last-child { border-radius: 0 0 10px 10px; }

.drop__all {
    display: block;
    margin-top: 6px;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    font-weight: 700;
    color: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }

/* The dark "Apply Now" pill. */
.btn--apply {
    background: var(--nav-ink);
    color: #fff;
    border-color: var(--nav-ink);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
}
.btn--apply:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px; height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform .2s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Between the two breakpoints the nav needs to breathe a little. */
/* The six-item nav plus the logo and the pill need the full container; below
   that the wordmark drops and the links tighten up. */
@media (min-width: 992px) and (max-width: 1400px) {
    .brand__name { display: none; }
    .nav__link { padding: 10px 11px; font-size: .94rem; }
    .btn--apply { padding: 13px 22px; font-size: .95rem; }
    .brand__logo { height: 44px; }
}
@media (min-width: 992px) and (max-width: 1120px) {
    .nav__link { padding: 10px 8px; font-size: .89rem; }
    .btn--apply { padding: 12px 16px; font-size: .9rem; }
}

/* ============================ FOOTER ============================ */
.site-footer {
    background: #eaeff8;
    color: var(--ink-2);
    padding: 64px 0 0;
    font-size: .92rem;
    border-top: 1px solid var(--line);
}
.site-footer h4 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .01em;
}
.site-footer p { color: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brand); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 36px 40px;
    padding-bottom: 48px;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 11px; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand__name { color: var(--ink); }
.footer-brand .brand__name small { color: var(--muted); }

.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; line-height: 1.5; }
.footer-contact strong { color: var(--ink); font-weight: 700; display: block; font-size: .82rem; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer-bottom {
    background: #fff;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}
.footer-bottom__inner {
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }

/* ============================ HERO ============================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b5cab 0%, #084680 55%, #06325c 100%);
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero__lead { font-size: 1.08rem; color: #d6e4f5; max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero .eyebrow { background: rgba(255,255,255,.15); color: #fff; }

.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: #d6e4f5; font-size: .95rem; }
.hero__points .tick {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: grid; place-items: center;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.hero__media--empty {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: rgba(255,255,255,.08);
    border: 1px dashed rgba(255,255,255,.25);
    display: grid;
    place-items: center;
    color: #cfe0f5;
    text-align: center;
    padding: 24px;
    font-size: .9rem;
}

/* Hero slider (admin banners) */
.hero-slider { position: relative; }
.hero-slider__viewport { overflow: hidden; }
.hero-slider__track {
    display: flex;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
/* Slides sit side by side and the track scrolls between them. Only the active
   slide is visible, so the off-screen ones stay out of the tab order and the
   accessibility tree; the delayed visibility keeps the outgoing slide painted
   for the length of the slide animation. */
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    visibility: hidden;
    transition: visibility 0s linear .6s;
}
.hero-slide.is-active { visibility: visible; transition-delay: 0s; }
/* Copy fades in just behind the slide movement. */
.hero-slide > .container { opacity: 0; transition: opacity .5s ease .15s; }
.hero-slide.is-active > .container { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .hero-slider__track,
    .hero-slide,
    .hero-slide > .container { transition: none; }
    .hero-slide > .container { opacity: 1; }
}
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 0 0 22px; }
.hero-dots button {
    width: 9px; height: 9px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* Scholarship / announcement ribbon */
.ribbon {
    background: var(--accent);
    color: #14203a;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: .95rem;
}
.ribbon a { color: #14203a; text-decoration: underline; }

/* ============================ PARTNER LOGOS ============================ */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-chip {
    display: grid;
    place-items: center;
    min-width: 132px;
    height: 68px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.logo-chip img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }

a.logo-chip { text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.logo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Wordmark fallback shown until a real logo is uploaded in admin → Partners. */
.logo-chip--text {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
    min-width: 168px;
    padding: 12px 16px;
}
.logo-chip__mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 800;
    font-size: 1rem;
}
.logo-chip__name {
    font-weight: 700;
    color: var(--ink-2);
    font-size: .84rem;
    line-height: 1.25;
    text-align: left;
}

/* ============================ STATS ============================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat__value { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* ============================ CARDS ============================ */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; background: var(--brand-light); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 1.6rem; }
.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card__tag {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.card__title { font-size: 1.08rem; margin-bottom: 8px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__text { color: var(--muted); font-size: .91rem; margin-bottom: 14px; }
.card__meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--muted);
    font-size: .82rem;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.card__meta b { color: var(--ink-2); font-weight: 600; }

/* Feature (why-us) card */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.feature__icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .91rem; margin: 0; }

/* Testimonial */
.quote {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}
.quote__stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; }
.quote__text { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__name { font-weight: 700; color: var(--ink); font-size: .93rem; line-height: 1.3; }
.quote__role { color: var(--muted); font-size: .82rem; }

/* ============================ ACCORDION (FAQ) ============================ */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 650;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.acc-head::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.3rem;
    color: var(--brand);
    line-height: 1;
}
.acc-item.is-open .acc-head::after { content: "\2212"; }
.acc-body { display: none; padding: 0 20px 18px; color: var(--muted); font-size: .93rem; }
.acc-item.is-open .acc-body { display: block; }

/* ============================ CTA BAND ============================ */
.cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 44px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: #d6e4f5; margin: 0; }
.cta__actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================ PAGE HEAD ============================ */
.page-head {
    position: relative;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 44px 0;
}
.page-head h1 { margin-bottom: .4rem; }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; }
.page-head .container { position: relative; z-index: 2; }

/* With a banner uploaded from the admin: the image sits behind the text,
   under a dark gradient that keeps the heading readable on any photo. */
.page-head--image {
    border-bottom: 0;
    overflow: hidden;
    padding: 74px 0 64px;
}
.page-head__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-head--image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(8, 25, 45, .88) 0%, rgba(8, 25, 45, .68) 55%, rgba(8, 25, 45, .45) 100%);
}
.page-head--image h1 { color: #fff; }
.page-head--image p { color: #dbe6f2; }
.page-head--image .eyebrow { color: #a9c8ea; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb span[aria-current] { color: var(--ink-2); font-weight: 600; }

.page-head--image .crumb { color: #c3d5e8; }
.page-head--image .crumb a { color: #c3d5e8; }
.page-head--image .crumb a:hover { color: #fff; }
.page-head--image .crumb span[aria-current] { color: #fff; }

@media (max-width: 640px) {
    .page-head--image { padding: 52px 0 46px; }
    /* Narrow screens crop the photo hard, so darken it a little further. */
    .page-head--image::after {
        background: linear-gradient(180deg, rgba(8, 25, 45, .86) 0%, rgba(8, 25, 45, .74) 100%);
    }
}

/* ============================ FORMS ============================ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .93rem;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, .12);
}
.field .error { color: #c0392b; font-size: .8rem; margin-top: 5px; }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}
.form-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.form-card > p { color: var(--muted); font-size: .89rem; margin-bottom: 18px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }
.alert--success { background: #e7f8f0; color: #12724c; }
.alert--error { background: #fdecea; color: #b3261e; }

/* ============================ MODAL ============================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, .6); }
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}
.modal__close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.modal__close:hover { color: var(--ink); }

/* ============================ ARTICLE ============================ */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
/* Grid items default to min-width:auto, so any wide child (a data table, a
   <pre>, a long URL) stretches the track past the viewport instead of
   scrolling inside itself. */
.article-layout > * { min-width: 0; }
.article__body { font-size: 1.02rem; color: var(--ink-2); }
.article__body h2 { margin-top: 2rem; font-size: 1.5rem; }
.article__body h3 { margin-top: 1.6rem; }
.article__body img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.article__body ul, .article__body ol { margin-bottom: 1.2rem; }
.article__body li { margin-bottom: .4rem; }
.article__body blockquote {
    margin: 1.5rem 0;
    padding: 14px 20px;
    border-left: 4px solid var(--brand);
    background: var(--bg-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-2);
}
.article__body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article__body th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .86rem; margin-bottom: 22px; }

.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget h4 { font-size: .95rem; margin-bottom: 14px; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .89rem; }
.widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-list a { color: var(--ink-2); font-weight: 500; }
.widget-list a:hover { color: var(--brand); }

/* ============================ MISC ============================ */
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; list-style: none; padding: 0; }
.pagination li span, .pagination li a {
    display: grid; place-items: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: .89rem;
    background: #fff;
}
.pagination li a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled span { opacity: .45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-2);
}
.chip:hover, .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split > * { min-width: 0; }
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-list li { display: flex; gap: 14px; justify-content: space-between; padding: 12px 16px; background: #fff; font-size: .91rem; }
.spec-list dt, .spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 650; color: var(--ink); text-align: right; }

.ticklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.ticklist .tick {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: .7rem;
    font-weight: 800;
}

.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step__n {
    counter-increment: step;
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
}
.step__n::before { content: counter(step); }
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .91rem; margin: 0; }

/* Toast */
.toast {
    position: fixed;
    top: 22px; right: 22px;
    z-index: 2100;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 290px;
    max-width: calc(100vw - 44px);
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid #1aab6b;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s;
}
.toast.is-shown { transform: translateX(0); opacity: 1; }
.toast strong { display: block; color: var(--ink); font-size: .93rem; }
.toast span { color: var(--muted); font-size: .85rem; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991px) {
    .hero__inner { grid-template-columns: 1fr; padding: 52px 0; }
    .hero__media { order: -1; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-toggle { display: block; order: 3; }
    /* The strip is dropped on phones — its links move into the drawer, and the
       header can then sit flush at the top so the drawer lines up under it. */
    .topbar { display: none; }
    .nav__extra {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }
    .btn--apply { padding: 11px 18px; font-size: .92rem; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        bottom: 0;
        margin: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 16px 20px 40px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { padding: 12px 14px; font-size: 1rem; justify-content: space-between; }

    .drop {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin: 2px 0 6px 14px;
        padding: 0 0 0 8px;
        min-width: 0;
    }
    .drop::before { display: none; }
    .has-drop:hover > .drop,
    .has-drop:focus-within > .drop { display: none; }
    .has-drop.is-open > .drop { display: block; }
    .has-drop:focus-within > .nav__link .nav__caret { transform: rotate(45deg) translate(-1px, -1px); }
    .has-drop.is-open > .nav__link .nav__caret { transform: rotate(-135deg) translate(-1px, -1px); }
    .drop--right { right: auto; }
    .drop--plain .drop__item + .drop__item { border-top: 0; border-radius: 8px; }
    .drop--plain .drop__item:first-child,
    .drop--plain .drop__item:last-child { border-radius: 8px; }

    .cta { padding: 32px 26px; }
    .cta__actions { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
    .section { padding: 52px 0; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat { padding: 18px 12px; }
    .stat__value { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
    .footer-bottom nav { margin-left: 0; }
    .brand__name { font-size: .95rem; }
    .brand__logo { height: 40px; }
    .topbar__note { font-size: .8rem; }
    .modal__dialog { padding: 22px; }
    .toast { top: auto; bottom: 16px; left: 16px; right: 16px; min-width: 0; }
}

/* ==========================================================================
   RICHER UI — added for the image-led redesign
   marquee · carousel · counters · reveal · media cards · decorative sections
   ========================================================================== */

/* ---------------- Hero refinements ---------------- */
.hero { position: relative; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.10) 0 2px, transparent 2px),
        radial-gradient(circle at 72% 68%, rgba(255,255,255,.08) 0 2px, transparent 2px);
    background-size: 46px 46px, 62px 62px;
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__media img { box-shadow: none; border-radius: 0; }

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #cfe0f5;
    font-size: .85rem;
}
.hero__trust b { color: #fff; font-weight: 700; }

/* ---------------- Logo marquee ---------------- */
.marquee {
    position: relative;
    overflow: hidden;
    /* fade the strip out at both edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
    .marquee { overflow-x: auto; }
}

/* ---------------- Media (image-led) card ---------------- */
.mcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(11,92,171,.28); }

.mcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--brand-light); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mcard:hover .mcard__media img { transform: scale(1.06); }
.mcard__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(8,20,38,.55), transparent);
}
.mcard__badge {
    position: absolute;
    z-index: 2;
    top: 12px; left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--brand-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mcard__over {
    position: absolute;
    z-index: 2;
    left: 16px; right: 16px; bottom: 12px;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.mcard__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.mcard__title { font-size: 1.06rem; margin-bottom: 8px; line-height: 1.35; }
.mcard__title a { color: var(--ink); }
.mcard__title a:hover { color: var(--brand); }
.mcard__text { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.mcard__foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .82rem;
    color: var(--muted);
}
.mcard__link { font-weight: 700; color: var(--brand); white-space: nowrap; }
.mcard__link::after { content: " →"; }

/* ---------------- Counters ---------------- */
.stat { position: relative; overflow: hidden; }
.stat::after {
    content: "";
    position: absolute;
    right: -26px; top: -26px;
    width: 78px; height: 78px;
    border-radius: 50%;
    background: var(--brand-light);
    opacity: .55;
}
.stat > * { position: relative; z-index: 1; }
.stat__value { font-variant-numeric: tabular-nums; }

/* ---------------- Testimonial carousel ---------------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
    display: flex;
    gap: 24px;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.carousel__slide { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1;
    transition: background .18s, color .18s, opacity .18s;
}
.carousel__nav:hover { background: var(--brand); color: #fff; }
.carousel__nav[disabled] { opacity: .35; cursor: default; }
.carousel__nav[disabled]:hover { background: #fff; color: var(--brand); }
.carousel__nav--prev { left: -20px; }
.carousel__nav--next { right: -20px; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.carousel__dots button {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: width .25s, background .25s;
}
.carousel__dots button.is-active { width: 28px; border-radius: 999px; background: var(--brand); }

/* Quote card gets a decorative mark inside the carousel */
.quote { position: relative; }
.quote::before {
    content: "\201C";
    position: absolute;
    top: 6px; right: 18px;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--brand);
    opacity: .10;
    font-family: Georgia, "Times New Roman", serif;
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Split media block ---------------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.media-split > * { min-width: 0; }
.media-split__art { position: relative; }
.media-split__art img { border-radius: var(--radius); width: 100%; }
.media-split__art::before {
    content: "";
    position: absolute;
    left: -18px; bottom: -18px;
    width: 128px; height: 128px;
    border-radius: var(--radius);
    background: var(--accent);
    opacity: .16;
    z-index: -1;
}

/* ---------------- Steps with connector ---------------- */
.steps--line { position: relative; }
.steps--line::before {
    content: "";
    position: absolute;
    left: 39px; top: 34px; bottom: 34px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-light), var(--brand), var(--brand-light));
}
.steps--line .step { position: relative; background: #fff; }

/* ---------------- Section flourish ---------------- */
.section--pattern {
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(11,92,171,.05) 0 2px, transparent 2px),
        radial-gradient(circle at 82% 74%, rgba(245,165,36,.06) 0 2px, transparent 2px),
        var(--bg-soft);
    background-size: 44px 44px, 58px 58px, auto;
}

/* ---------------- Sticky mobile CTA ---------------- */
.mobile-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(16,26,43,.10);
}
.mobile-cta .btn { flex: 1; padding: 11px 14px; }

/* Shown, and its height reserved on <body>, in the MOBILE PASS section below. */

/* ---------------- Responsive for the new bits ---------------- */
@media (max-width: 991px) {
    .carousel__slide { flex: 0 0 calc((100% - 24px) / 2); }
    .carousel__nav--prev { left: -8px; }
    .carousel__nav--next { right: -8px; }
    .media-split { grid-template-columns: 1fr; gap: 32px; }
    .media-split__art { order: -1; }
}

@media (max-width: 640px) {
    .carousel__slide { flex: 0 0 100%; }
    .carousel__nav { display: none; }
    .steps--line::before { display: none; }
    .hero__trust { gap: 8px 16px; font-size: .8rem; }
}

/* Footer logo sits on a light background, so no white chip is needed. */
.site-footer .brand__logo {
    height: 52px;
    width: auto;
}

/* ---------------- Chip filters ---------------- */
.chips--filter { justify-content: center; margin-bottom: 32px; }
.chip span { opacity: .65; font-weight: 700; margin-left: 2px; }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Cards set display:flex/grid, which out-ranks the UA rule for [hidden]. */
[data-filter-item][hidden] { display: none !important; }

.filter-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* ---------------- Campus gallery ---------------- */
/* Uniform tiles rather than masonry: user-uploaded phone photos arrive at wildly
   different ratios, and object-fit normalises them without a JS layout pass. */
.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gphoto {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--brand-light);
    cursor: zoom-in;
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gphoto:hover img { transform: scale(1.06); }
.gphoto::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(8,20,38,.60), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.gphoto:hover::after, .gphoto:focus-visible::after { opacity: 1; }
.gphoto__cap {
    position: absolute;
    z-index: 2;
    left: 14px; right: 14px; bottom: 11px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* ---------------- Lightbox ---------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 16, 28, .93);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.lightbox__cap {
    position: absolute;
    left: 0; right: 0; bottom: 26px;
    text-align: center;
    color: #e6eefa;
    font-size: .92rem;
    padding: 0 24px;
}
.lightbox__count {
    position: absolute;
    top: 24px; left: 24px;
    color: #9fb4cd;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}
.lightbox__close, .lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background .18s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .lightbox { padding: 12px; }
    .lightbox__img { max-height: 68vh; }
    .lightbox__close, .lightbox__nav { width: 38px; height: 38px; font-size: 1.15rem; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

/* ---------------- Faculty card ---------------- */
/* Not .mcard: that is a 16:10 landscape card with a badge and a footer row,
   and forcing a portrait headshot through it decapitates people. */
.fcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform .22s, box-shadow .22s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fcard__media { aspect-ratio: 1; background: var(--brand-light); overflow: hidden; }
/* Bias the crop upward — uploaded headshots are rarely centred on the face. */
.fcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.fcard__media--empty {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-weight: 800;
    font-size: 2.4rem;
}
.fcard__body { padding: 18px 16px 22px; }
.fcard__name { font-size: 1.02rem; margin-bottom: 4px; }
.fcard__role { color: var(--brand); font-size: .84rem; font-weight: 600; margin: 0 0 8px; }
.fcard__bio { color: var(--muted); font-size: .86rem; margin: 0; }

/* ---------------- Contact map ---------------- */
/* aspect-ratio on the wrapper + explicit iframe size = no layout shift. */
.map-embed {
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) { .map-embed { aspect-ratio: 4/3; } }

/* ---------------- Mobile header fit ----------------
   The brand (logo + full college name) is flex:0 0 auto, so on a 390px screen
   it refused to shrink and pushed the Apply/menu buttons past the viewport —
   42px of horizontal overflow that cut every section off on the right. */
@media (max-width: 991px) {
    .site-header__bar { gap: 12px; }
    .brand { flex: 1 1 auto; min-width: 0; }
    .brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 480px) {
    .brand__logo { height: 32px; max-width: 92px; }
    .brand__mark { width: 32px; height: 32px; font-size: .85rem; }
    /* Wrap to two short lines rather than truncating the college name. */
    .brand__name { font-size: .78rem; line-height: 1.15; white-space: normal; }
    .brand__name small { display: none; }
    .header-actions { gap: 8px; }
    .header-actions .btn { padding: 8px 12px; font-size: .78rem; }
}

/* ==========================================================================
   MOBILE PASS
   Everything below is the phone/tablet layer. It is deliberately last in the
   file so it wins over the desktop rules above without needing !important.
   Breakpoints: 1024 tablet · 991 drawer/nav switch · 767 phone-landscape
                640 phone · 480 small phone · 380 narrow phone
   ========================================================================== */

/* ---------------- Overflow safety ----------------
   Admin-authored HTML (TinyMCE) can inject wide tables, iframes and unbroken
   URLs. Grid/flex children default to min-width:auto, so one wide child pushes
   the whole page sideways. These keep any such content inside its own box. */
.container,
.section,
.card, .mcard, .fcard, .feature, .quote, .step, .form-card, .widget { min-width: 0; }

.article__body, .prose, .card__text, .mcard__text, .quote__text { overflow-wrap: break-word; }
.footer-contact a, .spec-list .v, .article__meta, .widget-list a { overflow-wrap: anywhere; }

.article__body iframe, .prose iframe, .article__body video, .prose video,
.article__body embed, .article__body object { max-width: 100%; }

/* Admin-authored tables scroll inside themselves rather than widening the page. */
@media (max-width: 767px) {
    .article__body table, .prose table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------------- Data table (Programs & Fees) ---------------- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
}
.table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.data-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }

/* On a phone a four-column table is unreadable even with a scrollbar, so each
   row becomes a labelled card and the horizontal scroll disappears entirely. */
@media (max-width: 640px) {
    .table-scroll { overflow-x: visible; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table thead { display: none; }
    .data-table tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        margin-bottom: 12px;
        overflow: hidden;
    }
    .data-table td {
        display: grid;
        grid-template-columns: minmax(84px, 36%) 1fr;
        gap: 12px;
        align-items: baseline;
        border: 0;
        border-bottom: 1px solid var(--line);
        padding: 11px 14px;
    }
    .data-table tr td:last-child { border-bottom: 0; }
    .data-table td[data-th]::before {
        content: attr(data-th);
        color: var(--muted);
        font-size: .8rem;
        font-weight: 600;
    }
}

/* ---------------- Sticky CTA bar: reserve its height ----------------
   The bar is position:fixed, so without this the last rows of the footer sit
   underneath it. The height is published as a token so the toast can clear it
   too, and env() adds the iPhone home-indicator inset. */
:root { --mobile-cta-h: 0px; }

@media (max-width: 767px) {
    :root { --mobile-cta-h: calc(74px + env(safe-area-inset-bottom)); }
    body { padding-bottom: var(--mobile-cta-h); }
    .mobile-cta { display: flex; }
    .mobile-cta .btn { flex: 1; min-height: 46px; padding: 11px 12px; font-size: .95rem; }
    .toast { bottom: calc(14px + var(--mobile-cta-h)); }
}

/* ---------------- Forms ----------------
   iOS Safari zooms the page whenever a focused field is under 16px, and it
   never zooms back out. 16px on every touch-sized control prevents that. */
@media (max-width: 991px), (pointer: coarse) {
    .field input, .field select, .field textarea, .search-form__input {
        font-size: 16px;
        min-height: 46px;
    }
    .field textarea { min-height: 112px; }
    .field label { font-size: .88rem; }
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 32px;
}
.search-form__input {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .9rem;
    min-width: 200px;
    background: #fff;
    color: var(--ink);
}
.search-form__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, .12);
}

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

@media (max-width: 640px) {
    .search-form { justify-content: stretch; }
    .search-form__input { flex: 1 1 100%; min-width: 0; }
    .search-form .btn { flex: 1 1 auto; }
}

/* ---------------- Touch targets ----------------
   Anything tappable gets to ~44px so it can be hit with a thumb.
   Keyed on the pointer as well as the width: an iPad in landscape is 1024px
   wide and still driven by a finger, so width alone would miss it. */
@media (max-width: 991px), (pointer: coarse) {
    .btn { min-height: 44px; }
    .btn--sm { min-height: 40px; padding: 9px 16px; }
    .btn--apply { padding: 10px 18px; font-size: .92rem; min-height: 44px; }

    .nav__link { min-height: 48px; }
    .drop__item { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
    .drop__all { min-height: 44px; display: flex; align-items: center; }

    /* The link columns get their spacing from the 40px tap area instead of
       the margin; the contact column is plain text and keeps its own. */
    .footer-list:not(.footer-contact) li { margin-bottom: 2px; }
    .footer-list:not(.footer-contact) a { display: inline-flex; align-items: center; min-height: 40px; }
    .footer-bottom nav { gap: 6px 20px; }
    .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 40px; }
    .social a { width: 44px; height: 44px; }

    .pagination { gap: 8px; }
    .pagination li span, .pagination li a { min-width: 44px; height: 44px; }

    .chip { min-height: 42px; display: inline-flex; align-items: center; }
    .crumb a { display: inline-flex; align-items: center; min-height: 40px; }
    /* The utility strip survives to 991px and is still on screen on a tablet. */
    .topbar__nav a { display: inline-flex; align-items: center; min-height: 40px; }
    .crumb { margin-bottom: 6px; }
    /* Drawer utility links (Contact, Blog…) are plain <a>, not .nav__link. */
    .nav__extra a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; }
    .acc-head { min-height: 52px; }
    .mcard__link, .widget-list a, .data-table td a { display: inline-flex; align-items: center; min-height: 40px; }
    .modal__close, .lightbox__close { width: 44px; height: 44px; }

    /* Slider dots: the visible dot stays small, an invisible pad around it
       carries the touch area. The pads meet edge to edge without overlapping,
       so a tap never lands on the neighbouring slide. */
    .hero-dots, .carousel__dots { gap: 16px; }
    .hero-dots button, .carousel__dots button { position: relative; width: 11px; height: 11px; }
    .carousel__dots button.is-active { width: 30px; }
    .hero-dots button.is-active { width: 30px; }
    .hero-dots button::after, .carousel__dots button::after {
        content: "";
        position: absolute;
        left: -8px; right: -8px; top: -16px; bottom: -16px;
    }
    .hero-dots { padding-bottom: 26px; }
}

/* Kill the lift-on-hover transform on touch devices — it fires on tap and
   sticks until the next tap elsewhere. */
@media (hover: none) {
    .btn:hover, .card:hover, .mcard:hover, .fcard:hover,
    a.logo-chip:hover, .media-split__art:hover { transform: none; }
    .mcard:hover .mcard__media img, .gphoto:hover img { transform: none; }
}

/* ---------------- Header ---------------- */
@media (max-width: 991px) {
    /* A 84px bar eats a tenth of a phone screen; 64px is enough for the logo
       and the drawer positions itself off this same token. */
    :root { --header-h: 64px; }

    .site-header__bar { gap: 10px; }
    .brand__logo { height: 40px; max-width: 150px; }
    .nav-toggle { width: 44px; height: 44px; flex: 0 0 auto; }
    .brand { min-height: 44px; }

    /* Scroll inside the drawer only — without this the page behind it scrolls
       once the drawer list hits its end. */
    .nav__cta {
        display: grid;
        gap: 10px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }

    .nav {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(40px + var(--mobile-cta-h));
    }
}

@media (max-width: 640px) {
    .brand__logo { height: 36px; max-width: 120px; }
    .brand__name { font-size: .9rem; }
}

@media (max-width: 480px) {
    .brand__logo { height: 32px; max-width: 88px; }
    .brand__name { font-size: .76rem; }
    .btn--apply { padding: 9px 12px; font-size: .8rem; }
}

/* Below this the Apply pill and the burger no longer both fit next to the
   logo — the pill is already duplicated in the sticky bottom bar. */
@media (max-width: 400px) {
    .header-actions .btn--apply { display: none; }
    .brand__logo { max-width: 130px; }
    .brand__name { font-size: .86rem; }
}

/* ---------------- Hero ---------------- */
@media (max-width: 991px) {
    .hero__inner { gap: 32px; padding: 44px 0 48px; }
}

@media (max-width: 767px) {
    /* The illustration was ordered first, which pushed the headline and the
       Apply button off the first screen on a 390×844 phone. Copy leads now. */
    .hero__media { order: 0; }
    .hero__media img { max-height: 300px; width: auto; margin: 0 auto; object-fit: contain; }
    .hero__inner { gap: 26px; padding: 32px 0 40px; }
    .hero__lead { font-size: 1rem; margin-bottom: 22px; }
    .hero__points li { font-size: .92rem; }
    .hero__trust { margin-top: 20px; padding-top: 16px; }
}

@media (max-width: 400px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
}

/* ---------------- Spacing & type ---------------- */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 44px 0; }
    .section--tight { padding: 30px 0; }
    .section-head { margin-bottom: 26px; }
    .section-head p { font-size: .96rem; }
    .page-head { padding: 32px 0; }
    .cta { padding: 26px 20px; text-align: center; }
    .cta__actions { justify-content: center; width: 100%; }
    .cta__actions .btn { flex: 1 1 auto; }
    .feature, .quote, .form-card { padding: 20px 18px; }
    .card__body, .mcard__body { padding: 18px 16px; }
    .step { padding: 16px 14px; gap: 12px; }
    .article__body { font-size: 1rem; }
    .article__body h2 { font-size: 1.3rem; }
    .empty, .filter-empty { padding: 32px 16px; }
}

@media (max-width: 380px) {
    .container { padding: 0 14px; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.32rem; }
}

/* ---------------- Components ---------------- */
/* Label/value rows read better stacked once the value starts wrapping. */
@media (max-width: 560px) {
    .spec-list li { flex-direction: column; gap: 2px; }
    .spec-list .v { text-align: left; font-size: .95rem; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .logo-strip { gap: 10px; }
    .logo-chip { min-width: 108px; height: 60px; padding: 10px 14px; }
    .logo-chip img { max-height: 34px; }
    .logo-chip--text { min-width: 142px; }

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

    .chips--filter { justify-content: flex-start; margin-bottom: 24px; }

    .modal { padding: 14px; }
    /* dvh tracks the collapsing mobile URL bar; vh is the fallback. */
    .modal__dialog { max-height: 88vh; max-height: 88dvh; padding: 22px 18px 24px; }

    .article__meta { gap: 6px 14px; font-size: .82rem; }
    .quote::before { font-size: 3.4rem; top: 2px; right: 12px; }
    .fcard__body { padding: 16px 12px 20px; }
}

/* The careers cards put the button in a second column, which squeezes the
   copy to a few characters on a phone. */
@media (max-width: 640px) {
    .feature[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------------- Tablet ---------------- */
@media (min-width: 641px) and (max-width: 1024px) {
    .section { padding: 56px 0; }
    .footer-grid { gap: 30px 32px; }
}

/* ---------------- Landscape phones ----------------
   Short viewports: trim the vertical padding so something other than the
   hero is visible, and keep the drawer scrollable. */
@media (max-height: 480px) and (orientation: landscape) {
    .hero__inner { padding: 26px 0; }
    .section { padding: 34px 0; }
    .modal__dialog { max-height: 94vh; max-height: 94dvh; }
    .lightbox__img { max-height: 74vh; }
}

/* ---------------- Swipeable carousels ----------------
   Panning horizontally is handled in JS; this stops the browser from also
   scrolling the page during a horizontal drag. */
.carousel__viewport, .hero-slider__viewport { touch-action: pan-y; }
.carousel__track.is-dragging, .hero-slider__track.is-dragging { transition: none; }
