/* The Banyan Tree Learning Center – site styles */
:root {
  --blue: #0E7DC1;
  --blue-dark: #0B5E94;
  --teal: #33BBAC;
  --teal-deep: #0C5C57;
  --teal-text: #0F7A71;
  --mint: #7FD8CD;
  --ink: #14262B;
  --body: #34474B;
  --muted: #566A6E;
  --line: #DCE8EA;
  --tint: #F1F8F8;
  --tint-2: #E6F6F4;
  --footer: #0F2A30;
  --wa: #1DA851;
  --sans: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); }
h3 { font-weight: 500; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { border-top: 4px solid var(--teal); border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 24px; }
.nav a { text-decoration: none; font-size: 15px; padding: 10px 0; color: var(--blue); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--teal); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 44px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 16px; padding: 13px 22px; border-radius: 6px; border: 1.5px solid transparent; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--tint); color: var(--blue-dark); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section basics ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--teal-deep); color: #fff; }
.section-deep h2, .section-deep h3 { color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: .22em; font-weight: 500; color: var(--teal-text); margin-bottom: 14px; }
.section-deep .eyebrow { color: var(--mint); }
.h2 { font-size: 40px; margin-bottom: 18px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 36em; }
.muted { color: var(--muted); }
.prose { color: var(--body); max-width: 40em; }
.prose p + p { margin-top: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { font-size: 48px; margin-bottom: 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- Home ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: 64px; line-height: 1.05; margin-bottom: 22px; }
.hero .lede { margin-bottom: 28px; }
.photo { background: var(--tint-2); border-radius: var(--radius); min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-note::before { content: ''; display: block; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 14px solid var(--teal); opacity: .5; }

.facts { background: var(--tint); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.fact-num { font-size: 34px; color: var(--blue); line-height: 1.2; }
.fact-label { font-size: 15px; color: var(--muted); }

.quote-lg { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.55; color: var(--body); margin: 0; }
.quote-src { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pillar { border-top: 3px solid var(--teal); padding-top: 16px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--body); }

.stages { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 40px; }
.stage-num { font-size: 15px; color: var(--mint); font-weight: 500; }
.stage h3 { font-size: 20px; margin: 4px 0 6px; }
.stage p { color: #D6EEEB; font-size: 16px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.card-meta { font-size: 14px; font-weight: 500; color: var(--teal-text); }
.card h3 { font-size: 22px; }
.card .when { font-size: 15px; color: var(--muted); }
.card p { color: var(--body); font-size: 16px; }
.extras { margin-top: 28px; background: var(--tint); border-radius: var(--radius); padding: 28px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.extras h3 { font-size: 18px; margin-bottom: 6px; }
.extras p { color: var(--body); font-size: 16px; }

.person h3 { font-size: 20px; margin-bottom: 4px; }
.person .legal { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.person p { color: var(--body); font-size: 16px; }

.voices { display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.voices figure { margin: 0; }
.voices blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); }
.voices figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.stack > * + * { margin-top: 28px; }
.stack h3 { font-size: 20px; margin-bottom: 6px; }
.stack p { color: var(--body); }

.band { background: var(--blue); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.band p { color: #E3F1FB; font-size: 18px; }

/* ---------- Contact & forms ---------- */
.contact-list { display: flex; flex-direction: column; gap: 14px; color: var(--body); }
.contact-list strong { color: var(--ink); font-weight: 500; display: block; font-size: 14px; letter-spacing: .04em; }
.map { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: var(--tint-2); }
.form-frame { width: 100%; border: 0; display: block; height: 2050px; background: #fff; }
.aside-box { background: var(--tint); border-radius: var(--radius); padding: 28px; }
.aside-box h2 { font-size: 24px; margin-bottom: 10px; }
.aside-box p + p, .aside-box p + .btn-row { margin-top: 14px; }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.checklist li { position: relative; padding: 0 0 22px 52px; color: var(--body); }
.checklist li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 500; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.checklist strong { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #C7D8DB; font-size: 15px; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 48px; padding-bottom: 40px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #C7D8DB; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.55; }
.legal-bar { border-top: 1px solid #23434A; font-size: 13px; color: #9DB5B9; }
.legal-bar .wrap { padding-top: 18px; padding-bottom: 28px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 500; font-size: 15px; box-shadow: 0 6px 18px rgba(15, 42, 48, .25); }
.wa-float:hover { color: #fff; background: #178C43; }
.wa-float svg { width: 26px; height: 26px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .site-header .wrap { flex-wrap: nowrap; }
  .brand img { height: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .page-head h1 { font-size: 36px; }
  .lede { font-size: 18px; }
  .photo { min-height: 260px; }
  .band h2 { font-size: 30px; }
  .form-frame { height: 2350px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Header button keeps its own colours inside the nav */
.nav a.btn-primary { color: #fff; padding: 11px 18px; box-shadow: none; }
.nav a.btn-primary:hover { color: #fff; }
@media (max-width: 640px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .fact-num { font-size: 26px; }
}

/* ---------- Step 2 additions ---------- */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ticks { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; color: var(--body); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--teal); }
.stage-list { list-style: none; margin: 0; padding: 0; counter-reset: stage; flex: 2 1 560px; }
.stage-list li { position: relative; padding: 0 0 34px 76px; border-left: 2px solid var(--line); margin-left: 24px; }
.stage-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.stage-list li::before { counter-increment: stage; content: counter(stage); position: absolute; left: -25px; top: -4px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-deep); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.stage-list h3 { font-size: 22px; margin-bottom: 8px; padding-top: 6px; margin-left: -20px; }
.stage-list p { color: var(--body); max-width: 36em; margin-left: -20px; }
.roles { gap: 40px 56px; }
.roles h3 { font-size: 21px; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid var(--teal); }
.roles p { color: var(--body); }
.card.person { gap: 4px; }

/* ---------- Policies ---------- */
.policy-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.toc { flex: 0 1 260px; position: sticky; top: 24px; font-size: 15px; background: var(--tint); border-radius: var(--radius); padding: 20px 22px; }
.toc p { font-weight: 500; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.policy { flex: 1 1 560px; min-width: 0; max-width: 46em; color: var(--body); }
.policy h2 { font-size: 26px; margin: 48px 0 14px; color: var(--ink); scroll-margin-top: 20px; }
.policy h2:first-of-type { margin-top: 20px; }
.policy h3 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 14px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
@media (max-width: 900px) { .toc { position: static; flex-basis: 100%; } }
.policy p.sub { font-weight: 500; color: var(--ink); margin-top: 16px; }
.card.person p + p { margin-top: 10px; }
.person .subjects { font-size: 14px; font-weight: 500; color: var(--teal-text); margin-bottom: 8px; }

/* ---------- Home banner (rotating photos) ---------- */
.hero-banner { position: relative; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--teal-deep); color: #fff; isolation: isolate; }
.hb-slides { position: absolute; inset: 0; z-index: -2; }
.hb-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hb-slide.is-active { opacity: 1; }
.hb-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hb-slide.is-active img { transform: scale(1); }
.hb-slide figcaption { position: absolute; right: 24px; bottom: 76px; background: rgba(15, 42, 48, .72); color: #fff; font-size: 14px; padding: 7px 14px; border-radius: 999px; max-width: calc(100% - 48px); }
.hb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 38, 44, .86) 0%, rgba(10, 38, 44, .62) 38%, rgba(10, 38, 44, .08) 72%), linear-gradient(0deg, rgba(10, 38, 44, .55) 0%, rgba(10, 38, 44, 0) 35%); }
.hb-content { width: 100%; padding-top: 96px; padding-bottom: 32px; }
.hb-content h1 { color: #fff; font-size: 72px; line-height: 1.02; margin-bottom: 18px; }
.hb-content .lede { color: #E4F3F1; max-width: 30em; margin-bottom: 22px; }
.hb-badge { display: inline-block; background: var(--teal); color: #08302C; font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.hb-controls { width: 100%; display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 22px; }
.hb-dots { display: flex; gap: 6px; }
.hb-dot { width: 32px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.hb-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); }
.hb-dot.is-active::after { background: #fff; }
.hb-arrow, .hb-pause { min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(15,42,48,.35); color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.hb-pause { font-size: 14px; padding: 0 16px; margin-left: auto; }
.hb-arrow:hover, .hb-pause:hover { background: rgba(15,42,48,.6); }

.cta-strip { background: var(--blue-dark); }
.cta-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.cta { display: flex; flex-direction: column; gap: 2px; text-decoration: none; border-radius: 8px; padding: 16px 20px; min-height: 76px; justify-content: center; background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.cta:hover { color: #fff; background: rgba(255,255,255,.18); transform: translateY(-2px); }
.cta-title { font-size: 19px; font-weight: 500; line-height: 1.25; }
.cta-sub { font-size: 14px; color: #D3E8F4; }
.cta-wa { background: var(--wa); border-color: var(--wa); }
.cta-wa:hover { background: #178C43; }
.cta-admit { background: #fff; border-color: #fff; color: var(--blue-dark); }
.cta-admit .cta-sub { color: var(--muted); }
.cta-admit:hover { background: var(--tint); color: var(--blue-dark); }

@media (max-width: 900px) {
  .cta-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-content h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .hero-banner { min-height: 560px; }
  .hb-shade { background: linear-gradient(0deg, rgba(10, 38, 44, .92) 0%, rgba(10, 38, 44, .7) 45%, rgba(10, 38, 44, .15) 80%); }
  .hb-content { padding-top: 160px; padding-bottom: 20px; }
  .hb-content h1 { font-size: 44px; }
  .hb-content .lede { font-size: 17px; }
  .hb-slide figcaption { top: 16px; bottom: auto; right: 16px; font-size: 13px; }
  .hb-dot { width: 24px; }
  .cta-strip .wrap { grid-template-columns: 1fr; gap: 10px; }
  .cta { min-height: 64px; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-slide, .hb-slide img, .cta { transition: none; }
  .hb-slide img { transform: none; }
}
.hb-content .eyebrow { color: var(--mint); }
.hb-slide figcaption { bottom: 90px; }
@media (max-width: 640px) {
  .hb-shade { background: linear-gradient(0deg, rgba(10, 38, 44, .94) 0%, rgba(10, 38, 44, .82) 50%, rgba(10, 38, 44, .25) 85%); }
  .hb-content .eyebrow { font-size: 12px; letter-spacing: .16em; }
  .hb-slide figcaption { bottom: auto; }
}

/* ---------- Blog ---------- */
.post-meta { font-size: 15px; color: var(--muted); margin-top: 14px; }
.post-meta a { color: var(--muted); }
.post .muted { color: var(--muted); font-size: 15px; }
.post-cta { background: var(--tint); border-radius: var(--radius); padding: 28px; margin-top: 48px; }
.post-cta h2 { margin-top: 0 !important; }
.post-related { margin-top: 32px; }
.post-related h2 { font-size: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.post-card h3 { color: var(--blue-dark); }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .page-head h1 { font-size: 30px; } }

/* ---------- Senior faculty ---------- */
.faculty-section { padding-top: 56px; padding-bottom: 56px; }
.faculty-card { display: flex; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; max-width: 760px; }
.faculty-photo { flex: 0 0 180px; height: 220px; border-radius: 8px; overflow: hidden; background: var(--tint-2); }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card-lg { max-width: 900px; }
.faculty-card-lg .faculty-photo { flex-basis: 260px; height: 320px; }
.faculty-text .eyebrow { margin-bottom: 8px; }
.faculty-text .h3, .faculty-text h3 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.faculty-text .legal { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.faculty-text .subjects { font-size: 14px; font-weight: 500; color: var(--teal-text); margin-bottom: 10px; }
.faculty-text p { color: var(--body); }
@media (max-width: 640px) {
  .faculty-card, .faculty-card-lg { flex-direction: column; align-items: stretch; }
  .faculty-photo, .faculty-card-lg .faculty-photo { flex-basis: auto; height: 300px; }
}

/* Senior faculty: compact, smaller than the founders */
.faculty-section { padding-top: 40px; padding-bottom: 40px; }
.faculty-card, .faculty-card-lg { max-width: 640px; gap: 20px; padding: 16px 20px; align-items: center; flex-direction: row; }
.faculty-photo, .faculty-card-lg .faculty-photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; }
.faculty-text .h3, .faculty-text h3 { font-size: 20px; }
.faculty-text p:last-child { font-size: 15px; }
@media (max-width: 640px) {
  .faculty-card, .faculty-card-lg { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; }
  .faculty-photo, .faculty-card-lg .faculty-photo { flex: 0 0 72px; width: 72px; height: 72px; }
}

/* Responsive images: <picture> wrappers should not create their own box */
picture { display: contents; }

/* ---------- Slim sticky header ---------- */
html { scroll-padding-top: 76px; }
.site-header { position: sticky; top: 0; z-index: 60; border-top-width: 3px; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 42, 48, .10); }
.site-header .wrap { padding-top: 7px; padding-bottom: 7px; }
.brand img { height: 38px; }
.nav a { padding: 6px 0; }
.nav a.btn-primary { padding: 8px 16px; font-size: 15px; }
@media (max-width: 900px) {
  .brand img { height: 34px; }
  .nav-toggle { padding: 7px 12px; min-height: 40px; }
}
/* Banner: a little taller on wide screens so faces are not cropped */
@media (min-width: 1200px) { .hero-banner { min-height: min(80vh, 720px); } }

/* ---------- Free resources ---------- */
.res-grid { margin: 18px 0 8px; }
.res-card .res-open { margin-top: auto; font-weight: 500; color: var(--blue); }
.res-page h2 { scroll-margin-top: 80px; }
@media (min-width: 900px) and (max-width: 1100px) { .nav { gap: 4px 16px; } .nav a { font-size: 14px; } }
.policy a.res-card, .policy a.res-card * { text-decoration: none; }
.policy a.res-card { display: flex; flex-direction: column; gap: 6px; color: inherit; transition: border-color .2s, transform .2s; }
.policy a.res-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.policy a.res-card p, .policy a.res-card h3 { margin: 0; }
.policy a.res-card h3 { color: var(--blue-dark); }
.policy a.res-card .res-open { margin-top: 10px; }

/* ---------- Exam-time support & counselling ---------- */
.support-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 800px) { .support-grid { grid-template-columns: 1fr 1fr; } }
.support-card { display: flex; flex-direction: column; gap: 8px; background: var(--tint); }
.support-card h3 { margin: 0; }
.support-card p { margin: 0; }
.support-card .btn-row { margin-top: auto; padding-top: 12px; }
.tag-free { display: inline-block; background: var(--teal-deep); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.post-note { border-left: 4px solid var(--teal); background: var(--tint, #eef7f6); padding: 14px 18px; border-radius: 6px; margin: 24px 0; }

.pillar h3 a, .extras h3 a { text-decoration: none; }
.pillar h3 a:hover, .extras h3 a:hover { text-decoration: underline; }

/* ---------- Social buttons ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff !important; text-decoration: none; font-size: 14px; transition: background .2s, border-color .2s; }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-btn.yt:hover { background: #FF0000; border-color: #FF0000; }
.social-btn.ig:hover { background: #D62976; border-color: #D62976; }
.social-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.policy .social-btn, main .social-btn { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ---------- Results ---------- */
.fact-n { font-size: 34px; line-height: 1.1; color: var(--blue); margin: 0 0 4px; font-weight: 500; }
.section-deep .fact-n { color: #fff; }
.res-stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 24px; }
.res-stats p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 10px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.res-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.res-table th, .res-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.res-table thead th { background: var(--tint); color: var(--ink); font-weight: 500; }
.res-table tbody tr:last-child td { border-bottom: 0; }
.res-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.subj-hi { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.subj-hi li { background: var(--tint); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; }
.subj-hi span { font-size: 14px; color: var(--muted); }
.subj-hi strong { font-size: 24px; color: var(--ink); font-weight: 500; }
.results .voices { margin-top: 20px; }
@media (min-width: 900px) and (max-width: 1180px) { .nav { gap: 4px 14px; } .nav a { font-size: 14px; } }

.steps { list-style: none; counter-reset: st; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: st; background: var(--tint); border-radius: var(--radius); padding: 18px 18px 18px 60px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(st); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.steps strong { color: var(--ink); font-weight: 500; }
.steps span { color: var(--body); font-size: 15px; }
.policy .subj-hi { padding-left: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.policy .subj-hi li { margin: 0; }
/* Collapse the menu earlier now that it has more items */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; padding: 7px 12px; min-height: 40px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.btn-primary { margin-top: 12px; border-bottom: 0; padding: 12px 16px; font-size: 16px; }
  .site-header .wrap { flex-wrap: nowrap; }
}
#week .subj-hi { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.fact-link { text-decoration: none; color: inherit; display: block; }
.fact-link:hover .fact-label { text-decoration: underline; }

/* Banner heading: keyword H1 + tagline */
.hb-content h1 { font-size: 56px; line-height: 1.08; max-width: 14em; margin-bottom: 10px; }
.hb-tagline { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--mint); margin: 0 0 18px; }
@media (max-width: 1100px) { .hb-content h1 { font-size: 46px; } }
@media (max-width: 640px) { .hb-content h1 { font-size: 32px; } .hb-tagline { font-size: 20px; margin-bottom: 14px; } }

/* Banner slides 2-5 mirrored */
.hb-slide img.hb-flip { transform: scale(-1.06, 1.06); }
.hb-slide.is-active img.hb-flip { transform: scale(-1, 1); }
@media (prefers-reduced-motion: reduce) { .hb-slide img.hb-flip, .hb-slide.is-active img.hb-flip { transform: scaleX(-1); } }

/* ---- Branded page header (2026-10-21) ---- */
.page-head{position:relative;overflow:hidden;border-bottom:0;background:linear-gradient(90deg,#33BBAC,#0E7DC1) left bottom/100% 5px no-repeat,linear-gradient(115deg,#0C5C57 0%,#0F7A71 55%,#0B5E94 100%)}
.page-head::before{content:"";position:absolute;right:-60px;top:-90px;width:420px;height:420px;border-radius:50%;border:56px solid rgba(127,216,205,.13);pointer-events:none}
.page-head::after{content:"";position:absolute;right:7%;top:50%;transform:translateY(-50%);width:200px;height:200px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22166%22%20r%3D%22105%22%20fill%3D%22none%22%20stroke%3D%22%237FD8CD%22%20stroke-width%3D%2272%22/%3E%3Crect%20x%3D%22219%22%20y%3D%22345%22%20width%3D%2273%22%20height%3D%22141%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%22178%22%20cy%3D%22414%22%20r%3D%2224%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none;opacity:.95}
.page-head .wrap{position:relative;z-index:1}
.page-head .wrap>*{max-width:800px}
.page-head h1{color:#fff}
.page-head .crumbs,.page-head .crumbs a,.page-head .post-meta,.page-head .post-meta a{color:#BFE9E3}
.page-head .lede{color:#E4F3F1}
.page-head .btn-primary{background:#fff;color:#0C5C57}
.page-head .btn-primary:hover{background:#E4F3F1;color:#0C5C57}
.page-head .btn-outline{border-color:rgba(255,255,255,.85);color:#fff;background:transparent}
.page-head .btn-outline:hover{background:rgba(255,255,255,.12);color:#fff}
.page-head a:focus-visible{outline-color:#fff}
.page-head.ph-photo{background:linear-gradient(90deg,#33BBAC,#0E7DC1) left bottom/100% 5px no-repeat,#0C5C57}
.page-head.ph-photo::before{right:0;top:0;bottom:5px;left:auto;width:62%;height:auto;border:0;border-radius:0;background-image:linear-gradient(90deg,#0C5C57 0%,rgba(12,92,87,.6) 30%,rgba(12,92,87,.15) 75%,rgba(11,94,148,.1) 100%),var(--ph);background-size:auto,cover;background-position:0 0,var(--php,center 35%);background-repeat:no-repeat}
.page-head.ph-photo::after{display:none}
@media (max-width:900px){.page-head::after{width:120px;height:120px;right:-10px;top:20px;transform:none;opacity:.3}.page-head::before{width:260px;height:260px;border-width:36px;right:-120px;top:-110px}
.page-head.ph-photo::before{width:100%;right:0;top:0;bottom:5px;background-image:linear-gradient(180deg,rgba(12,92,87,.82),rgba(12,92,87,.94)),var(--ph)}}
.page-head.ph-photo .wrap>*{max-width:620px}
.page-head.ph-photo::before{background-image:linear-gradient(90deg,#0C5C57 0%,rgba(12,92,87,.82) 22%,rgba(12,92,87,.35) 55%,rgba(11,94,148,.12) 100%),var(--ph)}
@media (max-width:900px){.page-head.ph-photo .wrap>*{max-width:none}.page-head.ph-photo::before{background-image:linear-gradient(180deg,rgba(12,92,87,.82),rgba(12,92,87,.94)),var(--ph)}}
@media (max-width:640px){.page-head::after{display:none}}
/* ---- Programme banners (2026-10-25) ---- */
.hb-copies{display:grid}
.hb-copy{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .6s ease,transform .6s ease,visibility 0s linear .6s}
.hb-copy.is-active{opacity:1;visibility:visible;transform:none;transition:opacity .6s ease .25s,transform .6s ease .25s,visibility 0s}
.hb-title{color:#fff;font-size:56px;line-height:1.08;max-width:14em;margin:0 0 14px;font-weight:400}
.hb-btns{margin-top:4px}
.hb-copy .lede{margin-bottom:18px}
.hb-copy .hb-badge{margin-bottom:16px}
@media (max-width:1100px){.hb-title{font-size:46px}}
@media (max-width:640px){.hb-title{font-size:32px}.hb-btns .btn{padding:11px 16px;font-size:15px}}
@media (prefers-reduced-motion:reduce){.hb-copy,.hb-copy.is-active{transition:none;transform:none}}
.hb-copy .eyebrow{text-transform:uppercase}
@media (max-width:640px){.hb-dots{gap:3px}.hb-dot{width:15px}.hb-controls{gap:6px}.hb-pause{padding:0 12px}}
