/* ==========================================================================
   IB Schools India – public site stylesheet
   Tokens first, then base, layout, components, page sections, responsive.
   Dependency-free (no framework); grid via CSS Grid, icons inline SVG.
   ========================================================================== */

:root {
    --navy: #0B1F3A;        /* hero / footer background, headings */
    --navy-700: #122B4F;
    --blue: #1D4ED8;        /* primary action colour */
    --blue-700: #1E40AF;
    --blue-50: #EEF3FF;
    --teal: #0EA5A4;        /* secondary accent (programme codes, highlights) */
    --teal-50: #E6F7F6;
    --coral: #F0623C;       /* "Featured" ribbon only */
    --ink: #111827;         /* body text */
    --muted: #5B6472;       /* secondary text */
    --line: #E3E7EF;        /* borders */
    --surface: #F4F6FB;     /* alternate section background (cool grey, not cream) */
    --white: #FFFFFF;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px -12px rgba(11, 31, 58, .18);
    --shadow-lg: 0 20px 40px -20px rgba(11, 31, 58, .35);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1180px;
    --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(11, 31, 58, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) { color: var(--ink); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav > a:not(.btn):hover { text-decoration: none; border-bottom-color: var(--blue); color: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero-bg {
    position: absolute; inset: 0; background: url("../img/home/hero-campus.jpg") center / cover no-repeat;
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11, 31, 58, .96) 0%, rgba(11, 31, 58, .88) 45%, rgba(11, 31, 58, .45) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5EEAD4; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { font-size: 1.125rem; color: rgba(255, 255, 255, .84); max-width: 600px; margin-bottom: 32px; }
.lead { font-size: 1.125rem; color: var(--muted); }

.search {
    display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    max-width: 720px;
}
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; padding: 0 14px; min-width: 0; }
.search-field svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-field input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-field input::placeholder { color: #8A93A2; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: .9375rem; color: rgba(255, 255, 255, .7); }
.chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 500; background: rgba(255, 255, 255, .06);
}
.chip:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }

.stats { display: flex; gap: 40px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); }
.stats dt { font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; }
.stats dd { margin: 6px 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .7); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 640px; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #D2D9E6; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.card-link i { font-style: normal; transition: transform .15s; }
.card:hover .card-link i, .card-link:hover i { transform: translateX(3px); }

/* Programme cards */
.programme-card { padding: 26px 24px; gap: 8px; }
.programme-code {
    display: inline-flex; align-items: center; align-self: flex-start; min-height: 30px; padding: 0 10px; border-radius: 8px;
    background: var(--teal-50); color: var(--teal); font-weight: 800; font-size: .875rem; letter-spacing: .04em;
}
.programme-card h3 { margin-top: 8px; }
.programme-age { font-size: .875rem; font-weight: 600; color: var(--muted); }
.programme-card p { color: var(--muted); font-size: .9375rem; flex: 1; }
.programme-card .card-link { margin-top: 10px; }

/* School cards */
.school-card { overflow: hidden; }
.school-media {
    position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
    color: #fff; overflow: hidden;
}
.school-media img { width: 100%; height: 100%; object-fit: cover; }
.ribbon {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
    background: var(--coral); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.school-body { padding: 20px 20px 12px; flex: 1; }
.school-body h3 a { color: var(--navy); }
.school-place { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.school-place svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { padding: 3px 9px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: .8125rem; font-weight: 700; }
.school-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .875rem; color: var(--muted); }
.school-meta span + span::before { content: "·"; margin-right: 14px; }
.school-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line); }

/* City cards */
.city-card { padding: 22px 22px; gap: 2px; }
.city-name { font-weight: 700; font-size: 1.125rem; color: var(--navy); }
.city-state { font-size: .875rem; color: var(--muted); }
.city-count { margin-top: 12px; font-size: .9375rem; font-weight: 600; color: var(--blue); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-no {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px;
    border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800;
}
.steps p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-700), var(--blue)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 1.0625rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text em { color: #5EEAD4; }
.footer-brand p { margin-top: 14px; font-size: .9375rem; max-width: 380px; }
.site-footer h4 { color: #fff; font-size: .9375rem; margin-bottom: 14px; }
.site-footer a:not(.brand-text) { display: block; color: rgba(255, 255, 255, .72); padding: 4px 0; font-size: .9375rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 16px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }
.footer-bottom span:last-child { max-width: 560px; text-align: right; }

/* Error page */
.error-page { text-align: center; padding: 96px 0; }
.error-page .eyebrow { color: var(--teal); }
.error-page h1 { margin-bottom: 12px; }
.error-page .lead { margin-bottom: 28px; }


/* Hero collage: two portrait photographs and a floating note (decorative, hidden on small screens) */
.hero-collage { position: relative; height: 520px; }
.hero-collage img { position: absolute; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); border: 3px solid rgba(255, 255, 255, .14); }
.collage-a { width: 58%; height: 72%; left: 0; top: 0; }
.collage-b { width: 52%; height: 64%; right: 0; bottom: 0; }
.collage-note {
    position: absolute; left: 6%; bottom: 4%; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px;
    background: #fff; color: var(--navy); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.collage-note-k { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--teal); }
.collage-note-v { font-size: .9375rem; font-weight: 600; }

/* Spotlight band: the admin-flagged school, image-led and larger than any card */
.spotlight { padding: 72px 0 0; }
.spotlight-inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; overflow: hidden;
    border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.spotlight-media { display: block; min-height: 420px; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px; }
.spotlight-body .eyebrow { color: var(--coral); }
.spotlight-body h2 a { color: var(--navy); }
.spotlight-body .school-place { margin-top: 10px; font-size: 1rem; }
.spotlight-tagline { margin-top: 18px; color: var(--muted); font-size: 1.0625rem; }
.spotlight-body .tags { margin-top: 20px; }
.spotlight-body .school-meta { font-size: .9375rem; }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* How it works: photo beside the steps */
.how-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.how-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.how-body .section-head { margin-bottom: 28px; }
.how-body .steps { grid-template-columns: 1fr; gap: 14px; }
.how-body .steps li { display: flex; gap: 18px; padding: 20px 22px; }
.how-body .step-no { flex: none; margin: 0; }

/* CTA band photo */
.cta-band { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: url("../img/home/cta-campus.jpg") center / cover no-repeat; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30, 64, 175, .96), rgba(29, 78, 216, .82)); }
.cta-inner { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-collage { display: none; }
    .spotlight-inner { grid-template-columns: 1fr; }
    .spotlight-media { min-height: 0; aspect-ratio: 16 / 9; }
    .spotlight-body { padding: 32px 28px; }
    .how-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: flex; }
    .site-nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .site-nav > a:not(.btn):hover { border-bottom-color: var(--line); }
    .nav-cta { margin: 14px 0 0; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .section { padding: 56px 0; }
    .hero-inner { padding-block: 48px 44px; }
    .spotlight { padding-top: 56px; }
    .spotlight-body { padding: 24px 20px 28px; }
    .spotlight-actions .btn { flex: 1 1 100%; }
    .hero .lead { font-size: 1.0625rem; }
    .search { flex-direction: column; }
    .search .btn { width: 100%; }
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .stats dt { font-size: 1.625rem; }
    .grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .city-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .city-card { padding: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 32px; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom span:last-child { text-align: left; }
}

/* ---------- Inner pages: page head, breadcrumbs, forms ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.page-head h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs-light, .crumbs-light a { color: rgba(255,255,255,.8); }
.field { display: block; margin-bottom: 14px; }
.field > span, .field > legend { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 500; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.field-error { display: block; color: #B91C1C; font-size: .875rem; margin-top: 6px; }
.field-error:empty { display: none; }
.btn-block { width: 100%; }
.small { font-size: .8125rem; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Listing ---------- */
.listing-inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
/* Sticky filter rail; never taller than the window, so every option stays reachable while it is stuck. */
.filters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 8px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.filter-head h2 { font-size: 1.0625rem; margin: 0; }
.filter-clear { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--blue); }
.filter-hint { display: none; margin: 0 0 14px; font-size: .8125rem; color: var(--muted); }
div.field > label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.search-box { position: relative; display: block; }
.search-box input { padding-right: 50px; }
.search-go { position: absolute; top: 0; right: 0; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 0 10px 10px 0; background: none; color: var(--blue); cursor: pointer; }
.search-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-go:hover { background: var(--surface); }
.search-go:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.filter-actions .btn { flex: 1; }
/* Live filters (site.js): choices apply at once, so the hint shows and the Apply row is not needed. */
.filter-form.is-live .filter-hint { display: block; }
.filter-form.is-live .filter-actions { display: none; }
.filter-form.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { background: var(--surface); border-radius: var(--radius); padding: 48px 24px; text-align: center; }
.empty-state p { margin-top: 8px; color: var(--muted); }

/* ---------- Profile ---------- */
.profile-hero { position: relative; color: #fff; background: var(--navy); min-height: 380px; display: flex; align-items: flex-end; }
.profile-media { position: absolute; inset: 0; overflow: hidden; }
.profile-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,58,.15) 0%, rgba(11,31,58,.55) 55%, rgba(11,31,58,.92) 100%); }
.profile-head { position: relative; padding: 48px 16px 36px; }
.profile-head h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 10px 0 8px; }
.profile-head .school-place { color: rgba(255,255,255,.85); font-size: 1rem; }
.profile-head .school-place svg { stroke: currentColor; }
.ribbon-static { position: static; display: inline-block; }
.tags-light { margin-top: 14px; }
.tags-light li { background: rgba(255,255,255,.16); color: #fff; }
.profile-inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.profile-main h2 { font-size: 1.375rem; margin: 32px 0 12px; }
.profile-main p + p { margin-top: 12px; }
.profile-tagline { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts > div { background: var(--surface); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fact-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fact-v { font-weight: 600; color: var(--navy); }
.contact { display: grid; gap: 10px; margin: 0; }
.contact > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact dt { font-weight: 600; color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.profile-side { position: sticky; top: 88px; }
.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.enquiry h2 { font-size: 1.25rem; margin-bottom: 6px; }
.enquiry > p, .enquiry form > p { margin-bottom: 18px; }
.enquiry .btn-block { margin-top: 4px; }

@media (max-width: 1024px) {
    .listing-inner { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
    .profile-inner { grid-template-columns: 1fr; }
    .profile-side { position: static; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .listing-inner { grid-template-columns: 1fr; }
    .filters { position: static; max-height: none; overflow: visible; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
    .profile-hero { min-height: 300px; }
    .contact > div { grid-template-columns: 1fr; gap: 2px; }
    .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Text pages (about, privacy, contact, list your school) ---------- */
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.prose h2 { font-size: 1.375rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose p { max-width: 68ch; }
.checks { display: grid; gap: 10px; margin: 6px 0 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-50); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 10px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Numbered steps inside a text page (list your school): one column, number beside the text */
.prose .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
.prose .steps li { display: flex; gap: 16px; padding: 18px 20px; }
.prose .step-no { flex: none; width: 36px; height: 36px; margin: 0; }
.prose .steps h3 { font-size: 1.0625rem; }
.prose .steps p { margin-top: 4px; max-width: none; }
.prose-side { position: sticky; top: 88px; }
@media (max-width: 1024px) { .prose-layout { grid-template-columns: 1fr; gap: 32px; } .prose-side { position: static; } }

/* ---------- SEO content blocks: FAQ accordion, landing-page text, internal links, programmes on a profile ---------- */
/* FAQ: native <details>; the question is an h3 inside <summary>, with a +/− marker drawn in CSS. */
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 52px 14px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 1.125rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover h3 { color: var(--blue); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.faq-wrap { max-width: 860px; }
.profile-main .faq { margin-top: 4px; }

/* Landing-page text beside the FAQ (stacks below 1024px). */
.seo-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.seo-inner h2 { font-size: 1.375rem; margin-bottom: 14px; }
.seo-text p { color: var(--ink); }
.seo-text p + p { margin-top: 12px; }
.seo-text h3 { font-size: 1rem; margin: 26px 0 12px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff;
    border: 1px solid var(--line); color: var(--navy); font-size: .875rem; font-weight: 600;
}
.link-chips a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 1024px) { .seo-inner { grid-template-columns: 1fr; gap: 36px; } }

/* "IB programmes at <school>": one linked row per programme the school offers. */
.prog-list { display: grid; gap: 10px; }
.prog-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; }
.prog-item:hover { border-color: var(--blue); }
.prog-item .programme-code { flex: none; min-width: 52px; justify-content: center; }
.prog-body { display: grid; gap: 2px; }
.prog-body strong { color: var(--navy); }
.prog-item:hover strong { color: var(--blue); }
.prog-text { color: var(--muted); font-size: .9375rem; }

/* ==========================================================================
   26/11/2026 restructure: ranked Top pages, About IB, blog, other curricula
   ========================================================================== */

/* Header: six links + CTA; tighten the gaps before the nav collapses at 900px. */
@media (max-width: 1180px) and (min-width: 901px) {
    .site-nav { gap: 20px; }
    .nav-cta { margin-left: 0; }
}
.footer-mail { margin-top: 14px; font-weight: 600; color: #5EEAD4 !important; }

/* Other curricula beside IB (cards, ranked rows, profile) */
.school-also { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.tags li.tag-other { background: var(--surface); color: var(--navy); font-weight: 600; border: 1px solid var(--line); }
.also-offers { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-top: 14px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; font-weight: 600; color: var(--navy); }

/* ---------- Ranked Top pages ---------- */
.top-head { position: relative; background: var(--navy); color: #fff; padding: 40px 0 44px; overflow: hidden; }
.top-head::before {
    content: ""; position: absolute; inset: 0; opacity: .22;
    background: radial-gradient(800px 320px at 85% -10%, var(--teal), transparent 60%), radial-gradient(600px 300px at 10% 120%, var(--blue), transparent 60%);
}
.top-head > .container { position: relative; }
.top-head h1 { color: #fff; font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 12px; }
.top-head .lead { color: rgba(255, 255, 255, .84); max-width: 720px; }
.top-stats { margin-top: 28px; padding-top: 22px; }
.top-chips { margin-top: 22px; }
.top-chips .chip small { margin-left: 6px; opacity: .7; font-weight: 600; }
.chip-accent { background: var(--teal); border-color: var(--teal); font-weight: 700; }
.chip-accent:hover { background: #0B8F8E; }
.top-section { padding-top: 48px; }

.rank-list { display: grid; gap: 14px; counter-reset: none; }
.rank-item {
    display: grid; grid-template-columns: 56px 200px minmax(0, 1fr) auto; gap: 20px; align-items: center;
    padding: 14px 20px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .15s, border-color .15s;
}
.rank-item:hover { box-shadow: var(--shadow); border-color: #D2D9E6; }
.rank-no {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--surface); color: var(--navy); font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em;
}
.rank-top .rank-no { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.rank-top { border-color: #CBD6F2; }
.rank-media { border-radius: 10px; aspect-ratio: 16 / 10; }
.rank-body h3 { font-size: 1.125rem; }
.rank-body h3 a { color: var(--navy); }
.rank-body .tags { margin-top: 10px; }
.rank-body .school-meta { margin-top: 8px; }
.rank-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rank-note { margin-top: 20px; }

/* Compact ranked list inside a blog post */
.rank-list-compact { margin: 22px 0 26px; gap: 10px; }
.rank-list-compact .rank-item { grid-template-columns: 44px 120px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
.rank-list-compact .rank-no { width: 40px; height: 40px; font-size: 1.0625rem; border-radius: 10px; }
.rank-list-compact .rank-actions { display: none; }
.rank-list-compact .rank-body h3 { font-size: 1rem; margin: 0; }
.rank-list-compact .tags { margin-top: 6px; }
.rank-list-compact .school-meta { display: none; }

@media (max-width: 900px) {
    .rank-item { grid-template-columns: 48px 150px minmax(0, 1fr); }
    .rank-actions { grid-column: 2 / -1; flex-direction: row; justify-content: flex-start; gap: 18px; }
}
@media (max-width: 600px) {
    .top-head { padding: 28px 0 32px; }
    .top-chips a.chip:not(.chip-accent):nth-of-type(n+5) { display: none; }
    .rank-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 14px; align-items: start; }
    .rank-no { width: 44px; height: 44px; font-size: 1.125rem; border-radius: 12px; }
    .rank-media { grid-column: 2; grid-row: 1; }
    .rank-body { grid-column: 1 / -1; }
    .rank-actions { grid-column: 1 / -1; }
    .rank-actions .btn { flex: 1; }
    .rank-list-compact .rank-item { grid-template-columns: 40px 96px minmax(0, 1fr); align-items: center; }
    .rank-list-compact .rank-media { grid-column: 2; }
    .rank-list-compact .rank-body { grid-column: 3; }
}

/* ---------- About IB ---------- */
.about-jump { margin-top: 20px; }
.about-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.learner-profile { background: var(--navy); color: rgba(255, 255, 255, .86); border-radius: 18px; padding: 28px 28px 30px; }
.learner-profile .eyebrow { margin-bottom: 8px; }
.learner-profile ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.learner-profile li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: .9375rem; }
.ib-prog { padding: 26px 24px; gap: 10px; }
.ib-prog:hover { transform: none; }
.ib-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ib-prog h3 { font-size: 1.25rem; }
.ib-prog > p { color: var(--muted); font-size: .9375rem; }
.ib-prog .checks { margin: 6px 0 8px; font-size: .9375rem; }
.ib-prog .card-link { margin-top: auto; }
.score-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row strong { font-size: 1.5rem; color: var(--navy); }
.score-total { border-bottom: 0; }
.score-total span { font-weight: 700; color: var(--navy); }
.score-total strong { font-size: 2.25rem; color: var(--blue); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface); color: var(--navy); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.compare thead th:nth-child(2) { color: var(--blue); }
.compare tbody th { width: 170px; color: var(--navy); }
.compare tbody td:nth-child(2) { background: #F8FAFF; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare-note { margin-top: 14px; }
@media (max-width: 1024px) { .about-split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Blog: cards, index ---------- */
.post-card { overflow: hidden; }
.post-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--blue)); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 20px 10px; flex: 1; }
.post-body h3 { margin-top: 8px; font-size: 1.125rem; line-height: 1.35; }
.post-body h3 a { color: var(--navy); }
.post-body p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.post-cat { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.blog-cats { margin-top: 18px; }
.blog-cats a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-lead {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 32px;
    background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.post-lead-media { display: block; min-height: 340px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.post-lead-media img { width: 100%; height: 100%; object-fit: cover; }
.post-lead-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 40px; }
.post-lead-body h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.post-lead-body h2 a { color: var(--navy); }
.post-lead-body > p { color: var(--muted); }
.post-lead-body .btn { align-self: flex-start; margin-top: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; color: var(--muted); }
.post-meta > * + *::before { content: "·"; margin-right: 14px; }
@media (max-width: 900px) {
    .post-lead { grid-template-columns: 1fr; }
    .post-lead-media { min-height: 0; aspect-ratio: 16 / 9; }
    .post-lead-body { padding: 24px 22px 28px; }
}

/* ---------- Blog: post page ---------- */
.preview-bar { background: #FEF3C7; color: #78350F; text-align: center; padding: 10px 16px; font-size: .9375rem; font-weight: 600; }
.post-head { padding: 36px 0 0; }
.post-narrow { max-width: 860px; }
.post-head h1 { font-size: clamp(1.875rem, 4.2vw, 2.875rem); margin-bottom: 14px; }
.post-head .lead { font-size: 1.1875rem; margin-bottom: 16px; }
.post-cover { margin: 28px auto 0; }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 22px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.post-content { max-width: 760px; min-width: 0; }
.quick-answer { background: var(--teal-50); border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; padding: 18px 22px; margin-bottom: 28px; }
.quick-answer-k { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.quick-answer p { color: var(--navy); font-weight: 500; font-size: 1.0625rem; }

.post-prose { font-size: 1.0625rem; line-height: 1.75; color: #1F2937; }
.post-prose > * + * { margin-top: 1.1em; }
.post-prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-top: 1.9em; scroll-margin-top: 96px; }
.post-prose h3 { font-size: 1.1875rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.post-prose ul, .post-prose ol:not(.rank-list) { padding-left: 1.4em; }
.post-prose ul { list-style: disc; }
.post-prose ol:not(.rank-list) { list-style: decimal; }
.post-prose li + li { margin-top: .4em; }
.post-prose li::marker { color: var(--teal); font-weight: 700; }
.post-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-prose .rank-list a, .post-prose .rank-list .btn { text-decoration: none; }
.post-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: var(--navy); font-size: 1.125rem; font-weight: 500; }
.post-prose img { width: 100%; height: auto; border-radius: 14px; }
.post-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.post-prose th, .post-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-prose th { background: var(--surface); color: var(--navy); }
.post-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.embed { margin: 1.6em 0; }
.embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-instagram { display: flex; justify-content: center; }
.embed-instagram .instagram-media { min-width: 0 !important; width: 100% !important; max-width: 540px !important; margin: 0 !important; }
.post-faq { margin-top: 48px; }
.post-faq h2 { font-size: 1.5rem; margin-bottom: 16px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-share span { font-weight: 700; color: var(--navy); margin-right: 4px; }
.post-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .875rem; font-weight: 600; }
.post-share a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.post-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc-k { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--navy); font-size: .9375rem; line-height: 1.4; }
.toc a:hover { color: var(--blue); }
.side-cta .btn + .btn { margin-top: 10px; }
@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; gap: 36px; }
    .post-side { position: static; }
    .post-content { max-width: none; }
}
@media (max-width: 600px) {
    .post-head { padding-top: 24px; }
    .post-cover img { aspect-ratio: 16 / 9; border-radius: 14px; }
    .post-layout { padding-top: 28px; padding-bottom: 56px; }
    .post-prose { font-size: 1rem; }
    /* Wide tables scroll sideways; a minimum cell width keeps rows from becoming one word per line. */
    .post-prose table { font-size: .875rem; }
    .post-prose th, .post-prose td { min-width: 150px; }
    .post-prose th:first-child, .post-prose td:first-child { min-width: 110px; }
}

/* List-your-school form: programme checkboxes as tappable chips (min 44px tall) */
.check-group legend { margin-bottom: 8px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; font-size: .9375rem; color: var(--navy); cursor: pointer; }
.check-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.check-chip:hover { border-color: var(--blue); }
.check-chip:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.check-chip:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.prose > p.muted { margin-top: 14px; }

/* Curriculum comparison on phones: each row becomes a card (row title, then one labelled line per curriculum),
   because the 4-column table would otherwise hide three columns behind a sideways scroll. Labels come from the
   cells' data-label attributes (Views/Pages/AboutIb.cshtml). */
@media (max-width: 600px) {
    .table-wrap:has(.compare) { overflow: visible; border: 0; background: none; }
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0; }
    .compare thead { display: none; }
    .compare tbody tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
    .compare tbody tr + tr { margin-top: 12px; }
    .compare tbody th { width: auto; padding: 12px 16px; background: var(--surface); }
    .compare td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
    .compare td::before { content: attr(data-label); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
    .compare tbody td:nth-child(2)::before { color: var(--blue); }
    .compare tbody tr:last-child th { border-bottom: 1px solid var(--line); }
    .compare tbody tr td:last-child { border-bottom: 0; }
}

/* Long single-word city names (Thiruvananthapuram) wrap inside their card instead of widening the page. */
.city-card { min-width: 0; }
.city-name { overflow-wrap: anywhere; }
