:root {
  --navy: #1e3a8a;
  --navy-2: #13295f;
  --gold: #f97316;
  --gold-soft: #fff4e8;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dfe5ef;
  --wash: #f6f8fb;
  --surface: #ffffff;
  --green: #0f8a65;
  --shadow: 0 18px 46px rgba(23, 32, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.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; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(14px);
}
.home-page .site-header:not(.is-scrolled):not(.nav-active) {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Outfit, Inter, sans-serif; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.1; overflow-wrap: anywhere; }
.brand small { margin-top: 2px; color: currentColor; font-size: .78rem; opacity: .78; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: .91rem; font-weight: 800; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--navy); background: rgba(249,115,22,.14); outline: 0; }
.portal-link { color: #fff !important; background: var(--navy) !important; }
.home-page .site-header:not(.is-scrolled):not(.nav-active) .portal-link { color: var(--navy) !important; background: #fff !important; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(30,58,138,.18); border-radius: 8px; color: currentColor; background: rgba(255,255,255,.14); }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; }

main { padding-top: 78px; }
.home-page main { padding-top: 0; }
.section, .page-hero, .feature-band, .cta-band { padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px); }
.section-inner { width: min(1160px, 100%); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; font-family: Outfit, Inter, sans-serif; line-height: 1.06; }
h1 { max-width: 900px; font-size: clamp(2.7rem, 7vw, 6.4rem); }
h2 { max-width: 830px; font-size: clamp(2rem, 4.3vw, 4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0; color: var(--muted); }
.lead { max-width: 690px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.section-head { display: grid; gap: 14px; margin-bottom: 32px; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center p { margin: 0 auto; }

.hero { position: relative; min-height: 94vh; display: grid; align-items: end; padding: 132px clamp(18px, 5vw, 72px) 54px; color: #fff; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(11,28,69,.94) 0%, rgba(11,28,69,.72) 48%, rgba(11,28,69,.26) 100%), linear-gradient(0deg, rgba(11,28,69,.76), rgba(11,28,69,.08)); }
.hero-content { position: relative; z-index: 2; width: min(1160px, 100%); margin: 0 auto; }
.hero-copy { max-width: 650px; margin-top: 22px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 900; line-height: 1.1; text-align: center; }
.button-primary { color: #fff; background: var(--gold); box-shadow: 0 12px 28px rgba(249,115,22,.3); }
.button-light { color: var(--navy); background: #fff; }
.button-outline { color: var(--navy); border-color: rgba(30,58,138,.22); background: #fff; }
.hero-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(1050px, calc(100% - 36px)); margin: -32px auto 0; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.hero-strip a, .hero-strip div { min-height: 118px; padding: 24px; border-right: 1px solid var(--line); }
.hero-strip a:last-child, .hero-strip div:last-child { border-right: 0; }
.hero-strip span, .stat span, .card-kicker { display: block; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-strip strong { display: block; margin-top: 6px; color: var(--navy); font-family: Outfit, Inter, sans-serif; font-size: 1.28rem; line-height: 1.16; }

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #244aa4 66%, #0f8a65 100%); color: #fff; }
.page-hero .section-inner { display: grid; gap: 18px; }
.page-hero p { color: rgba(255,255,255,.84); }
.breadcrumb { color: rgba(255,255,255,.76); font-size: .9rem; font-weight: 800; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }

.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.72fr); gap: clamp(28px,5vw,70px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card, .notice, .form-panel, .info-panel, .timeline li { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.card, .notice, .info-panel { padding: 24px; }
.card p, .notice p, .info-panel p { margin-top: 12px; }
.card.accent { border-top: 5px solid var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: 8px; color: #fff; background: var(--navy); }
.stat strong { display: block; margin-top: 8px; font-family: Outfit, Inter, sans-serif; font-size: 1.8rem; }
.feature-band { background: #fff; }
.image-panel { overflow: hidden; border-radius: 8px; min-height: 360px; background: var(--navy); box-shadow: var(--shadow); }
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 700; }
.check-list li::before { content: ""; position: absolute; top: .52em; left: 0; width: 15px; height: 9px; border-bottom: 3px solid var(--gold); border-left: 3px solid var(--gold); transform: rotate(-45deg); }
.program-card { min-height: 270px; background: linear-gradient(180deg,#fff,#f8fbff); }
.program-card .number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 8px; color: #fff; background: var(--navy); font-weight: 900; }
.timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.timeline li { position: relative; padding: 22px 22px 22px 68px; counter-increment: steps; }
.timeline li::before { content: counter(steps); position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--gold); font-weight: 900; }

.form-panel { padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 7px; font-weight: 900; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfcfe; }
.form-grid textarea { resize: vertical; }
.fees-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fees-table th, .fees-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees-table th { color: #fff; background: var(--navy); }
.fees-table tr:last-child td { border-bottom: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.photo-tile { position: relative; min-height: 260px; overflow: hidden; border-radius: 8px; color: #fff; background: var(--navy); }
.photo-tile.large { min-height: 430px; grid-row: span 2; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,28,69,.78), rgba(11,28,69,.04)); }
.photo-tile div { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.photo-tile p { color: rgba(255,255,255,.84); }
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.news-date { display: grid; place-items: center; min-height: 130px; border-radius: 8px; color: #fff; background: var(--navy); text-align: center; font-weight: 900; }
.news-date strong { display: block; font-family: Outfit, Inter, sans-serif; font-size: 2.4rem; line-height: 1; }
.contact-list { display: grid; gap: 10px; }
.contact-list a, .contact-list span { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-weight: 900; }
.map-panel { min-height: 330px; display: grid; place-items: center; padding: 28px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--green)); text-align: center; }
.cta-band { color: #fff; background: var(--navy-2); }
.cta-band .section-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; }
.cta-band p { color: rgba(255,255,255,.78); }
.site-footer { padding: 34px clamp(18px,5vw,72px); color: #fff; background: #101d42; }
.footer-grid { width: min(1160px,100%); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 26px; }
.footer-grid p, .footer-grid a, .footer-grid small { color: rgba(255,255,255,.78); }
.footer-grid h3 { margin-bottom: 10px; font-size: 1rem; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { width: min(1160px,100%); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 78px; left: 14px; right: 14px; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: var(--shadow); transform: translateY(-18px); visibility: hidden; opacity: 0; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .main-nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .main-nav a { min-height: 48px; }
  .portal-link { color: #fff !important; background: var(--navy) !important; }
  .grid-2, .grid-3, .stat-grid, .gallery-grid, .cta-band .section-inner, .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { min-height: 90px; }
}
@media (max-width: 720px) {
  .site-header { min-height: 70px; padding: 10px 14px; }
  main { padding-top: 70px; }
  .home-page main { padding-top: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand small { display: none; }
  .main-nav { top: 70px; }
  .hero { min-height: 92vh; padding: 110px 18px 38px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(11,28,69,.92), rgba(11,28,69,.46)); }
  .hero-strip { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .hero-strip a, .hero-strip div { min-height: 94px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-strip a:last-child, .hero-strip div:last-child { border-bottom: 0; }
  .button-row, .hero-actions { display: grid; }
  .button { width: 100%; }
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.9rem; }
  .photo-tile.large, .photo-tile { min-height: 270px; }
  .footer-bottom { display: grid; }
}

.home-hero {
  min-height: 76vh;
}

.home-directory {
  background: var(--wash);
}

.page-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-card:hover,
.page-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: var(--shadow);
  outline: 0;
}

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

.home-split .image-panel {
  min-height: 430px;
}

/* Reduce top-page hero heading scale. */
.hero h1,
.page-hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 3.2rem);
  max-width: 760px;
}

.page-hero {
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(44px, 6vw, 78px);
}

.hero-copy,
.page-hero .lead {
  max-width: 620px;
}

@media (max-width: 720px) {
  .hero h1,
  .page-hero h1 {
    font-size: 1.6rem;
  }
}

/* Site-wide top utility menu. */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  row-gap: 10px;
  min-height: 112px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.top-menu {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.14);
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-page .site-header:not(.is-scrolled):not(.nav-active) .top-menu {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.top-menu div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.top-menu a {
  opacity: 0.86;
}

.top-menu a:hover,
.top-menu a:focus-visible {
  color: var(--gold);
  outline: 0;
}

main {
  padding-top: 112px;
}

.home-page main {
  padding-top: 0;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    top: 112px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 96px;
    row-gap: 8px;
  }

  .top-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding-bottom: 6px;
    font-size: 0.72rem;
  }

  .top-menu div {
    justify-content: flex-start;
    gap: 4px 10px;
  }

  .top-menu span {
    display: none;
  }

  .main-nav {
    top: 96px;
  }

  main {
    padding-top: 96px;
  }

  .home-page main {
    padding-top: 0;
  }
}

/* Polished header and hero refresh. */
.site-header {
  gap: 12px 18px;
  padding: 10px clamp(16px, 4vw, 58px) 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  box-shadow: 0 18px 45px rgba(19, 41, 95, 0.12);
}

.home-page .site-header:not(.is-scrolled):not(.nav-active) {
  background: linear-gradient(180deg, rgba(7, 20, 50, 0.72), rgba(7, 20, 50, 0.08));
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.top-menu {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-page .site-header:not(.is-scrolled):not(.nav-active) .top-menu {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.top-menu span::before {
  content: "Private school";
  margin-right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--navy-2);
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
}

.top-menu a {
  opacity: 1;
  position: relative;
}

.top-menu a + a::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.site-header > .brand {
  align-self: center;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(19, 41, 95, 0.1);
}

.site-header > .brand .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.main-nav {
  align-self: center;
  padding: 7px;
  border: 1px solid rgba(30, 58, 138, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(19, 41, 95, 0.1);
}

.main-nav a {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #fff;
  background: var(--navy);
  transform: translateY(-1px);
}

.portal-link {
  color: #fff !important;
  background: var(--gold) !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
}

.home-page .site-header:not(.is-scrolled):not(.nav-active) .portal-link {
  color: #fff !important;
  background: var(--gold) !important;
}

.hero.home-hero {
  min-height: 84vh;
  align-items: center;
  padding-top: 170px;
  padding-bottom: 76px;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 36%, rgba(249, 115, 22, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(8, 22, 56, 0.96) 0%, rgba(19, 41, 95, 0.82) 45%, rgba(15, 138, 101, 0.34) 100%),
    linear-gradient(0deg, rgba(8, 22, 56, 0.65), rgba(8, 22, 56, 0.05));
}

.hero-content {
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 6px solid var(--gold);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.02;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-highlights span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.button {
  border-radius: 999px;
  min-height: 48px;
  padding-inline: 22px;
}

.button-primary:hover,
.button-light:hover,
.button-outline:hover {
  transform: translateY(-1px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.24), transparent 28%),
    linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 58%, var(--green) 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 96px);
  bottom: -54px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
  padding-left: clamp(16px, 3vw, 30px);
  border-left: 5px solid var(--gold);
}

@media (max-width: 1040px) {
  .main-nav {
    border-radius: 18px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.active {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 104px;
  }

  .site-header > .brand {
    padding: 6px 8px 6px 6px;
  }

  .site-header > .brand .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-menu {
    border-radius: 8px;
  }

  .top-menu::before {
    content: "Quick links";
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .hero.home-hero {
    min-height: 84vh;
    padding-top: 138px;
  }

  .hero-content,
  .page-hero .section-inner {
    padding-left: 16px;
    border-left-width: 4px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-highlights {
    display: grid;
  }
}

@media (max-width: 720px) {
  .main-nav {
    top: 104px;
  }

  main {
    padding-top: 104px;
  }

  .home-page main {
    padding-top: 0;
  }
}


.photo-card-small {
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.photo-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card:nth-child(4) .number {
  background: var(--green);
}

/* Global heading scale reduction requested: 60% smaller across the site. */
h1,
.hero h1,
.page-hero h1 {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.15;
  max-width: 620px;
}

h2,
.section-head h2,
.cta-band h2,
.map-panel h2 {
  font-size: clamp(0.95rem, 1.72vw, 1.6rem);
  line-height: 1.18;
  max-width: 620px;
}

h3,
.card h3,
.news-item h3,
.info-panel h3,
.form-panel h3,
.photo-tile h3 {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.22;
}

.lead,
.hero-copy,
.page-hero .lead {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
}

@media (max-width: 720px) {
  h1,
  .hero h1,
  .page-hero h1 {
    font-size: 1.18rem;
  }

  h2,
  .section-head h2,
  .cta-band h2,
  .map-panel h2 {
    font-size: 1.05rem;
  }
}

/* Utility strip should complement, not repeat, the main menu. */
.top-menu {
  background: #101d42;
}

.top-menu span::before {
  content: "Quick info";
}

.top-menu a:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.top-menu a + a::before {
  left: -9px;
}

@media (max-width: 720px) {
  .top-menu::before {
    content: "Pre-school � Primary � Junior Secondary";
  }
}

/* Location page and map section. */
.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
}

.location-map-card {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 8px;
  background: #dfe5ef;
  box-shadow: var(--shadow);
}

.location-map-card.compact {
  min-height: 360px;
}

.location-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.location-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.location-actions {
  display: grid;
  gap: 10px;
}

.location-facts {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.location-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.location-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .location-layout {
    grid-template-columns: 1fr;
  }

  .location-map-card {
    min-height: 360px;
  }
}

/* Maroon/red accent system to match the school sweaters. */
:root {
  --maroon: #8b1e2d;
  --maroon-dark: #651421;
  --red: #b91c1c;
  --red-soft: #fff1f2;
  --gold: var(--maroon);
  --gold-soft: var(--red-soft);
}

.button-primary,
.portal-link,
.home-page .site-header:not(.is-scrolled):not(.nav-active) .portal-link,
.program-card:nth-child(4) .number {
  background: linear-gradient(135deg, var(--maroon), var(--red)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(139, 30, 45, 0.28);
}

.eyebrow,
.hero-strip span,
.stat span,
.card-kicker,
.location-facts span {
  color: var(--maroon);
}

.hero .eyebrow,
.top-menu span::before,
.hero-highlights span::before,
.top-menu a:first-child::before,
.timeline li::before {
  background: var(--maroon);
  color: #fff;
}

.hero-content,
.page-hero .section-inner {
  border-left-color: var(--maroon);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: var(--maroon);
  color: #fff;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active,
.page-card:hover,
.page-card:focus-visible {
  border-color: rgba(139, 30, 45, 0.45);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(139, 30, 45, 0.12);
  color: var(--maroon);
}

.main-nav a.active {
  background: var(--maroon);
  color: #fff;
}

.card.accent {
  border-top-color: var(--maroon);
}

.page-hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(185, 28, 28, 0.24), transparent 28%),
    linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 58%, var(--maroon) 100%);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 36%, rgba(185, 28, 28, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(8, 22, 56, 0.96) 0%, rgba(19, 41, 95, 0.82) 45%, rgba(139, 30, 45, 0.38) 100%),
    linear-gradient(0deg, rgba(8, 22, 56, 0.65), rgba(8, 22, 56, 0.05));
}

.button-outline {
  color: var(--maroon);
  border-color: rgba(139, 30, 45, 0.25);
}

/* Increase current reduced heading scale by 30%. */
h1,
.hero h1,
.page-hero h1 {
  font-size: clamp(1.43rem, 2.08vw, 1.89rem);
  line-height: 1.14;
}

h2,
.section-head h2,
.cta-band h2,
.map-panel h2 {
  font-size: clamp(1.24rem, 2.24vw, 2.08rem);
  line-height: 1.17;
}

h3,
.card h3,
.news-item h3,
.info-panel h3,
.form-panel h3,
.photo-tile h3 {
  font-size: clamp(1rem, 1.36vw, 1.36rem);
  line-height: 1.2;
}

@media (max-width: 720px) {
  h1,
  .hero h1,
  .page-hero h1 {
    font-size: 1.53rem;
  }

  h2,
  .section-head h2,
  .cta-band h2,
  .map-panel h2 {
    font-size: 1.37rem;
  }
}

/* Academics stage cards: 2 by 2, with images in the support section. */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.program-grid .program-card {
  min-height: 230px;
}

.academic-image-stack {
  display: grid;
  gap: 16px;
}

.academic-image-stack .image-panel {
  min-height: 300px;
}

.academic-mini-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.academic-mini-images img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .program-grid,
  .academic-mini-images {
    grid-template-columns: 1fr;
  }
}

/* Force Jost across the whole site. */
:root {
  --font-main: Jost, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
a,
p,
span,
small,
strong,
label,
li,
th,
td {
  font-family: var(--font-main) !important;
}

/* Sweeter homepage directory with side statistics and infographic. */
.home-directory {
  background:
    linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

.home-directory-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.home-insight-panel {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 28, 28, 0.16), transparent 35%),
    linear-gradient(145deg, #ffffff 0%, #fff7f8 100%);
  box-shadow: var(--shadow);
}

.home-insight-panel h2 {
  color: var(--navy);
}

.stats-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid-mini div {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.stats-grid-mini strong {
  display: block;
  color: var(--maroon);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.stats-grid-mini span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
}

.pathway-meter {
  display: grid;
  gap: 10px;
}

.pathway-meter span {
  display: block;
  min-height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f3f8;
}

.pathway-meter b {
  display: flex;
  align-items: center;
  width: var(--w);
  min-width: 42%;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-size: 0.88rem;
  line-height: 1;
}

.home-directory-content .section-head {
  margin-bottom: 22px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-card-grid .page-card {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 251, 0.92));
}

.home-card-grid .page-card::after {
  content: "";
  width: 38px;
  height: 4px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--maroon);
}

@media (max-width: 1040px) {
  .home-directory-layout,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-insight-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .stats-grid-mini {
    grid-template-columns: 1fr;
  }
}

/* Stronger separation between CTA bands and footer. */
.cta-band {
  position: relative;
  margin-bottom: 0;
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(44px, 6vw, 76px);
  background:
    radial-gradient(circle at 88% 18%, rgba(185, 28, 28, 0.28), transparent 24%),
    linear-gradient(135deg, var(--navy) 0%, #203f91 58%, var(--maroon) 100%);
}

.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  height: 44px;
  border-radius: 8px;
  background: var(--wash);
  transform: translateX(-50%);
  box-shadow: 0 -16px 34px rgba(16, 29, 66, 0.14);
}

.site-footer {
  position: relative;
  margin-top: 22px;
  padding-top: clamp(48px, 7vw, 82px);
  background:
    linear-gradient(180deg, #101d42 0%, #0b1532 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.cta-band + .site-footer {
  border-top: 10px solid var(--wash);
}

/* Parent-facing homepage statistics. */
.parent-stats div {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 247, 0.92));
}

.parent-stats div::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  border: 14px solid rgba(139, 30, 45, 0.08);
  border-radius: 999px;
}

.parent-stats strong {
  font-size: clamp(1.28rem, 2.4vw, 1.9rem);
  letter-spacing: 0;
}

.parent-stats span {
  font-size: 0.95rem;
}

.parent-stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

/* More attractive enquiry forms. */
.enquiry-form {
  position: relative;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(139, 30, 45, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 28, 28, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fff8f9 100%);
}

.enquiry-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--maroon), var(--red));
}

.form-title {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 30, 45, 0.12);
}

.form-title span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-title h3 {
  color: var(--navy);
}

.form-title p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.94rem;
}

.enquiry-form label {
  gap: 9px;
  color: var(--navy-2);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  min-height: 52px;
  border: 1px solid rgba(30, 58, 138, 0.15);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.enquiry-form textarea {
  min-height: 150px;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: rgba(139, 30, 45, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 30, 45, 0.1);
  outline: 0;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: #7a8495;
  font-weight: 700;
}

.enquiry-form .button {
  margin-top: 4px;
  justify-self: start;
  min-width: 190px;
}

/* Admissions page visual support panel. */
.admissions-visual-card {
  position: relative;
  min-height: 260px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.admissions-visual-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.admissions-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.82), rgba(8, 22, 56, 0.06));
}

.admissions-visual-card div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.admissions-visual-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admissions-visual-card strong {
  display: block;
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.admissions-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admissions-mini-grid div {
  padding: 14px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  border-radius: 8px;
  background: #fff;
}

.admissions-mini-grid strong,
.admissions-mini-grid span {
  display: block;
}

.admissions-mini-grid strong {
  color: var(--maroon);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admissions-mini-grid span {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .admissions-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact admissions steps so the image aligns better with the form. */
.admissions-copy-col {
  display: grid;
  align-content: start;
}

.admissions-copy-col > h2 {
  margin-bottom: 16px;
}

.admissions-copy-col .timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admissions-copy-col .timeline li {
  min-height: 132px;
  padding: 16px 16px 16px 54px;
}

.admissions-copy-col .timeline li::before {
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.admissions-copy-col .timeline h3 {
  margin-bottom: 6px;
}

.admissions-copy-col .timeline p {
  font-size: 0.92rem;
  line-height: 1.35;
}

.admissions-copy-col .admissions-visual-card {
  margin-top: 16px;
  min-height: 230px;
}

.admissions-copy-col .admissions-visual-card img {
  min-height: 230px;
}

.admissions-copy-col .admissions-mini-grid {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .admissions-copy-col .timeline {
    grid-template-columns: 1fr;
  }
}

/* Slightly lower enquiry forms for better visual balance. */
.enquiry-form {
  margin-top: 34px;
}

@media (max-width: 1040px) {
  .enquiry-form {
    margin-top: 0;
  }
}

/* Reduce admissions photo height. */
.admissions-copy-col .admissions-visual-card {
  min-height: 170px;
}

.admissions-copy-col .admissions-visual-card img {
  min-height: 170px;
}

.admissions-visual-card {
  min-height: 190px;
}

.admissions-visual-card img {
  min-height: 190px;
}

/* Premium admissions visit-prep section. */
.visit-prep-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.visit-prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.visit-prep-copy {
  display: grid;
  gap: 16px;
}

.visit-prep-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.visit-prep-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.visit-prep-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-weight: 900;
}

.visit-prep-list h3 {
  color: var(--navy);
}

.visit-prep-list p {
  margin-top: 6px;
  line-height: 1.45;
}

.visit-prep-photo {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.visit-prep-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.visit-prep-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.82), rgba(8, 22, 56, 0.08));
}

.visit-prep-photo div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.visit-prep-photo span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.visit-prep-photo strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.15;
}

@media (max-width: 1040px) {
  .visit-prep-layout {
    grid-template-columns: 1fr;
  }

  .visit-prep-photo,
  .visit-prep-photo img {
    min-height: 330px;
  }
}

/* Academics page aligned with Admissions page design. */
.academics-main .grid-2 {
  align-items: stretch;
}

.academics-copy-col {
  display: grid;
  align-content: start;
  gap: 16px;
}

.academics-copy-col .program-grid {
  margin-top: 4px;
}

.academics-copy-col .program-card {
  min-height: 210px;
}

.academic-feature-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.academic-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.academic-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.82), rgba(8, 22, 56, 0.06));
}

.academic-feature-card div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.academic-feature-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.academic-feature-card strong {
  display: block;
  max-width: 430px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.academic-support-section .academic-image-stack .image-panel {
  min-height: 300px;
}

@media (max-width: 1040px) {
  .academic-feature-card img {
    min-height: 330px;
  }
}

/* Page polish pass for full multi-page site. */
.polished-hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.92)),
    radial-gradient(circle at 80% 10%, rgba(139, 30, 45, 0.14), transparent 34%);
}

.story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.68fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  padding: 9px 13px;
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-photo-card,
.fee-summary-card,
.contact-card,
.visit-note-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-photo-card {
  min-height: 360px;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.82), rgba(8, 22, 56, 0.04));
}

.hero-photo-card div {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.hero-photo-card span,
.news-feature span,
.fee-summary-card span,
.contact-card > span,
.visit-note-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-photo-card strong {
  display: block;
  max-width: 420px;
  font-size: 1.18rem;
  line-height: 1.16;
}

.story-card,
.fees-table-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(139, 30, 45, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}

.values-stack,
.fees-steps {
  display: grid;
  gap: 14px;
}

.values-stack article,
.fees-steps article {
  padding: 22px;
  border: 1px solid rgba(139, 30, 45, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.values-stack span,
.fees-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  color: #fff;
  font-weight: 900;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.mini-stat-row div {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(139, 30, 45, 0.13);
}

.mini-stat-row strong {
  display: block;
  color: var(--maroon);
  font-size: 1.75rem;
  line-height: 1;
}

.mini-stat-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.fee-summary-card,
.contact-card,
.visit-note-card {
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(145deg, rgba(8, 22, 56, 0.96), rgba(26, 50, 102, 0.94));
  color: #fff;
}

.fee-summary-card h2,
.contact-card h2,
.visit-note-card h2 {
  color: #fff;
}

.fee-summary-card p,
.contact-card p,
.visit-note-card p {
  color: rgba(255, 255, 255, 0.82);
}

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

.fees-image img,
.contact-image img {
  min-height: 440px;
  object-fit: cover;
}

.gallery-head {
  align-items: end;
}

.gallery-mosaic {
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
  grid-auto-rows: 250px;
}

.gallery-mosaic .photo-tile img {
  height: 100%;
}

.gallery-mosaic .large {
  grid-row: span 2;
}

.gallery-mosaic .tall {
  grid-row: span 2;
}

.gallery-mosaic .wide {
  grid-column: span 2;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.news-feature {
  position: sticky;
  top: 118px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(8, 22, 56, 0.82), rgba(8, 22, 56, 0.3)),
    url("assets/parents-meeting.png") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.news-feature h2,
.news-feature p {
  color: #fff;
}

.news-feature .button {
  margin-top: 16px;
}

.polished-news .news-item {
  background: #fff;
  border-color: rgba(139, 30, 45, 0.13);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
}

.update-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.contact-card .contact-list a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-showcase {
  align-items: start;
}

.contact-showcase .enquiry-form {
  margin-top: 0;
}

.location-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.location-showcase .location-map-card,
.location-showcase iframe {
  min-height: 560px;
}

@media (max-width: 1040px) {
  .story-hero-grid,
  .split-showcase,
  .news-layout,
  .location-showcase {
    grid-template-columns: 1fr;
  }

  .fees-steps,
  .mini-stat-row {
    grid-template-columns: 1fr;
  }

  .news-feature {
    position: relative;
    top: auto;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .gallery-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-mosaic .large,
  .gallery-mosaic .tall,
  .gallery-mosaic .wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-mosaic .photo-tile img,
  .hero-photo-card img,
  .hero-photo-card {
    min-height: 260px;
  }

  .update-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Contact detail polish. */
.footer-links a[href^="tel:"],
.footer-links a[href^="https://wa.me"],
.contact-list a[href^="tel:"],
.contact-list a[href^="https://wa.me"] {
  color: var(--maroon);
}

.contact-card .contact-list a[href^="tel:"],
.contact-card .contact-list a[href^="https://wa.me"] {
  color: #fff;
}

.site-footer .footer-links a[href^="tel:"],
.site-footer .footer-links a[href^="https://wa.me"] {
  color: #fff;
}

/* Contact page premium hero redesign. */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 118px) 20px clamp(54px, 7vw, 88px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 253, 0.96) 48%, rgba(255, 245, 246, 0.92) 100%);
}

.contact-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48px;
  bottom: 48px;
  width: 10px;
  background: linear-gradient(180deg, var(--maroon), var(--red));
}

.contact-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -30%;
  width: 46%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.16), transparent 68%);
  pointer-events: none;
}

.contact-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.contact-hero-copy {
  max-width: 740px;
}

.contact-hero .breadcrumb,
.contact-hero .breadcrumb a,
.contact-hero .lead,
.contact-hero h1 {
  color: var(--ink);
}

.contact-hero h1 {
  max-width: 760px;
}

.contact-hero .lead {
  max-width: 660px;
  color: var(--muted);
}

.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-action {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
}

.contact-action span {
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-action strong {
  align-self: end;
  color: var(--navy);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.contact-action.primary,
.contact-action.whatsapp {
  color: #fff;
  background: linear-gradient(145deg, var(--maroon), #c32335);
  border-color: transparent;
}

.contact-action.whatsapp {
  background: linear-gradient(145deg, #0e8f66, #0b6f54);
}

.contact-action.primary span,
.contact-action.whatsapp span,
.contact-action.primary strong,
.contact-action.whatsapp strong {
  color: #fff;
}

.contact-office-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 29, 66, 0.98), rgba(35, 61, 119, 0.94));
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 29, 66, 0.24);
}

.contact-office-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.office-panel-top {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.office-panel-top span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-panel-top strong {
  max-width: 420px;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.office-contact-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.office-contact-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.office-contact-list small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-contact-list b {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.office-panel-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1040px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .contact-hero::before {
    width: 6px;
  }

  .office-contact-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Simplified Contact hero after removing duplicated office panel. */
.contact-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1080px;
}

.contact-hero-copy {
  max-width: none;
}

.contact-hero-copy h1,
.contact-hero-copy .lead {
  max-width: 760px;
}

.contact-action-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  max-width: 1080px;
}

.contact-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .contact-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Tighten Contact page spacing. */
.contact-hero {
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(28px, 4vw, 46px);
}

.contact-hero::before {
  top: 24px;
  bottom: 24px;
}

.contact-hero .breadcrumb {
  margin-bottom: 10px;
}

.contact-hero h1 {
  margin-top: 4px;
  margin-bottom: 10px;
}

.contact-hero .lead {
  margin-bottom: 0;
}

.contact-action-grid {
  margin-top: 20px;
  gap: 12px;
}

.contact-action {
  min-height: 88px;
  padding: 15px 16px;
}

.contact-showcase {
  gap: clamp(22px, 3vw, 36px);
}

main > .section:has(.contact-showcase) {
  padding-top: clamp(34px, 5vw, 58px);
}

.contact-image img,
.fees-image img {
  min-height: 340px;
}

@media (max-width: 680px) {
  .contact-hero {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .contact-action {
    min-height: 76px;
  }
}

/* Remove wasted vertical space on Contact page. */
.contact-form-section {
  padding-top: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(18px, 2.5vw, 28px);
}

.contact-location-band {
  padding-top: clamp(22px, 3vw, 34px);
}

.contact-form-section .form-panel {
  margin-bottom: 0;
}

.contact-form-section .image-panel {
  min-height: 300px;
}

.contact-form-section .contact-image img {
  min-height: 300px;
}

/* About page dedicated hero. */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 254, 0.96) 58%, rgba(255, 243, 245, 0.92));
}

.about-hero::before {
  content: "";
  position: absolute;
  left: clamp(18px, 3vw, 48px);
  top: clamp(28px, 5vw, 58px);
  bottom: clamp(28px, 5vw, 58px);
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--maroon), var(--red));
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.about-hero-copy {
  padding-left: clamp(24px, 4vw, 50px);
}

.about-hero .breadcrumb,
.about-hero .breadcrumb a,
.about-hero h1 {
  color: var(--ink);
}

.about-hero .breadcrumb {
  margin-bottom: 14px;
}

.about-hero .eyebrow {
  color: var(--maroon);
}

.about-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4.5vw, 4.9rem);
  line-height: 1.02;
}

.about-hero .lead {
  max-width: 660px;
  margin-top: 16px;
  color: var(--muted);
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-stage-row span {
  padding: 9px 14px;
  border: 1px solid rgba(139, 30, 45, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font-weight: 900;
}

.about-hero-photo {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(16, 29, 66, 0.18);
}

.about-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.78), rgba(8, 22, 56, 0.02) 58%);
}

.about-hero-photo div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.about-hero-photo span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-hero-photo strong {
  display: block;
  max-width: 460px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.about-signature {
  padding-top: clamp(42px, 5vw, 70px);
}

@media (max-width: 1040px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-copy {
    padding-left: clamp(18px, 4vw, 34px);
  }
}

@media (max-width: 680px) {
  .about-hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .about-hero::before {
    left: 18px;
    width: 4px;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-hero-photo,
  .about-hero-photo img {
    min-height: 300px;
  }
}

/* Location-style top strip and readable light heroes. */
.top-menu .top-location {
  display: grid;
  gap: 1px;
  color: #fff;
  line-height: 1.05;
}

.top-menu .top-location::before {
  content: none;
}

.top-menu .top-location strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.top-menu .top-location small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

.soft-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 254, 0.96) 58%, rgba(255, 243, 245, 0.92));
}

.soft-page-hero::before {
  content: "";
  position: absolute;
  left: clamp(18px, 3vw, 48px);
  top: clamp(28px, 5vw, 58px);
  bottom: clamp(28px, 5vw, 58px);
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--maroon), var(--red));
}

.soft-page-hero .story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding-left: clamp(24px, 4vw, 50px);
  border-left: 0;
}

.soft-page-hero .breadcrumb,
.soft-page-hero .breadcrumb a,
.soft-page-hero h1 {
  color: var(--ink);
}

.soft-page-hero .breadcrumb {
  margin-bottom: 14px;
}

.soft-page-hero .eyebrow {
  color: var(--maroon);
}

.soft-page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 4vw, 4.45rem);
  line-height: 1.02;
}

.soft-page-hero .lead {
  max-width: 660px;
  margin-top: 16px;
  color: var(--muted);
}

.soft-page-hero .button-row,
.soft-page-hero .hero-badges {
  margin-top: 24px;
}

.soft-page-hero .fee-summary-card {
  align-self: stretch;
}

.soft-page-hero .hero-photo-card,
.soft-page-hero .hero-photo-card img {
  min-height: 390px;
}

.fees-steps,
.gallery-mosaic,
.news-layout {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .soft-page-hero .story-hero-grid {
    grid-template-columns: 1fr;
    padding-left: clamp(18px, 4vw, 34px);
  }
}

@media (max-width: 720px) {
  .top-menu .top-location {
    display: grid;
  }

  .top-menu::before {
    content: none;
  }
}

@media (max-width: 680px) {
  .soft-page-hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .soft-page-hero::before {
    left: 18px;
    width: 4px;
  }

  .soft-page-hero h1 {
    font-size: 2rem;
  }

  .soft-page-hero .hero-photo-card,
  .soft-page-hero .hero-photo-card img {
    min-height: 290px;
  }
}

/* End-to-end image page banners. */
.image-page-hero {
  position: relative;
  min-height: clamp(430px, 58vw, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(86px, 10vw, 140px) clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 22, 56, 0.88) 0%, rgba(8, 22, 56, 0.58) 48%, rgba(8, 22, 56, 0.16) 100%),
    var(--banner-image) center/cover no-repeat;
}

.image-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(8, 22, 56, 0.72), transparent);
  pointer-events: none;
}

.image-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 940px;
  margin-left: 0;
}

.image-page-hero .breadcrumb,
.image-page-hero .breadcrumb a,
.image-page-hero h1,
.image-page-hero p,
.image-page-hero .lead {
  color: #fff;
}

.image-page-hero .eyebrow {
  width: fit-content;
  margin-bottom: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
}

.image-page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5.4vw, 5.8rem);
  line-height: 0.98;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.image-page-hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.image-hero-actions,
.image-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.image-hero-tags span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.fees-banner {
  background-position: center;
}

.gallery-banner,
.news-banner {
  background-position: center 42%;
}

@media (max-width: 720px) {
  .image-page-hero {
    min-height: 520px;
    padding-top: 74px;
  }

  .image-page-hero h1 {
    font-size: 2.35rem;
  }
}

/* Reliable full-width image banners. */
.image-page-hero {
  position: relative;
  min-height: clamp(360px, 44vw, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(96px, 11vw, 140px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  color: #fff;
  background: var(--navy);
}

.image-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 56, 0.92), rgba(8, 22, 56, 0.62) 46%, rgba(8, 22, 56, 0.16)),
    linear-gradient(0deg, rgba(8, 22, 56, 0.68), transparent 44%);
}

.image-page-hero .image-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  display: grid;
  gap: 10px;
  margin: 0;
}

.image-page-hero .breadcrumb,
.image-page-hero .breadcrumb a,
.image-page-hero h1,
.image-page-hero p,
.image-page-hero .lead {
  color: #fff;
}

.image-page-hero .eyebrow {
  width: fit-content;
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
}

.image-page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4.5vw, 4.45rem);
  line-height: 1;
}

.image-page-hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.image-hero-actions,
.image-hero-tags {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .image-page-hero {
    min-height: 430px;
    padding-top: 86px;
  }

  .image-page-hero h1 {
    font-size: 2.1rem;
  }
}

/* Lighten top utility menu text. */
.top-menu,
.top-menu a,
.top-menu .top-location,
.top-menu .top-location small {
  font-weight: 500;
}

.top-menu .top-location strong {
  font-weight: 600;
}

.top-menu a {
  letter-spacing: 0;
}

/* Cleaner homepage parent statistics. */
.parent-stats div {
  min-height: 132px;
  background: linear-gradient(180deg, #fff, #fff8f9);
}

.parent-stats div::after {
  opacity: 0.16;
}

.parent-stats strong {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 0.95;
}

.parent-stats span {
  margin-top: 10px;
  line-height: 1.08;
}

.parent-stats small {
  line-height: 1.25;
}

/* Polished homepage quick-route cards. */
.home-card-grid {
  gap: 20px;
}

.home-card-grid .page-card {
  position: relative;
  min-height: 235px;
  padding: 28px 28px 24px;
  overflow: hidden;
  align-content: start;
  border-color: rgba(139, 30, 45, 0.14);
  background:
    radial-gradient(circle at 92% 16%, rgba(139, 30, 45, 0.1), transparent 28%),
    linear-gradient(145deg, #fff 0%, #fff8f9 100%);
  box-shadow: 0 18px 44px rgba(15, 29, 66, 0.06);
}

.home-card-grid .page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--maroon), var(--red));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-card-grid .page-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 112px;
  height: 112px;
  border: 18px solid rgba(139, 30, 45, 0.08);
  border-radius: 999px;
}

.home-card-grid .page-card:hover::before,
.home-card-grid .page-card:focus-visible::before,
.home-card-grid .page-card.featured::before {
  opacity: 1;
}

.home-card-grid .page-card:hover,
.home-card-grid .page-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(139, 30, 45, 0.34);
  box-shadow: 0 24px 58px rgba(15, 29, 66, 0.14);
}

.home-card-grid .page-card.featured {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #102354 0%, #223f86 100%);
  color: #fff;
  border-color: rgba(16, 35, 84, 0.25);
}

.home-card-grid .page-card.featured h3,
.home-card-grid .page-card.featured p,
.home-card-grid .page-card.featured .card-kicker,
.home-card-grid .page-card.featured strong {
  color: #fff;
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(139, 30, 45, 0.22);
}

.home-card-grid .page-card h3 {
  margin-top: 2px;
  font-size: clamp(1.28rem, 1.9vw, 1.65rem);
}

.home-card-grid .page-card p {
  max-width: 34rem;
  color: #53617a;
  line-height: 1.55;
}

.home-card-grid .page-card > strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--maroon);
  font-size: 0.96rem;
  font-weight: 900;
}

.home-card-grid .page-card > strong::after {
  content: "\\2192";
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.home-card-grid .page-card:hover > strong::after,
.home-card-grid .page-card:focus-visible > strong::after {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .home-card-grid .page-card {
    min-height: auto;
    padding: 24px;
  }
}

/* Full-width divider for the sticky menu after scrolling. */
.site-header.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--red), var(--navy));
  box-shadow: 0 8px 20px rgba(15, 29, 66, 0.18);
  pointer-events: none;
}

.home-page .site-header:not(.is-scrolled):not(.nav-active)::after {
  display: none;
}

/* Homepage mission, vision, and values block. */
.identity-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.identity-mini-grid article {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #fff8f9);
  box-shadow: 0 18px 38px rgba(15, 29, 66, 0.06);
}

.identity-mini-grid article::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 92px;
  height: 92px;
  border: 15px solid rgba(139, 30, 45, 0.08);
  border-radius: 999px;
}

.identity-mini-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-mini-grid p {
  position: relative;
  z-index: 1;
  color: #4f5c73;
  line-height: 1.5;
}

.identity-mini-grid ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-mini-grid li {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef3fa;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .identity-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp and chatbot tools. */
.chat-tools {
  position: fixed;
  right: clamp(14px, 2.8vw, 28px);
  bottom: clamp(14px, 2.8vw, 28px);
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: Jost, Inter, sans-serif;
}

.whatsapp-float,
.chatbot-toggle {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 29, 66, 0.22);
}

.whatsapp-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: linear-gradient(135deg, #128c4a, #25d366);
}

.whatsapp-float::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: inset -5px -5px 0 -3px #fff;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--maroon), var(--red));
}

.chatbot-toggle::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--maroon);
  background: #fff;
}

.chatbot-panel {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 29, 66, 0.24);
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #102354, #243f80);
}

.chatbot-head strong,
.chatbot-head small {
  display: block;
}

.chatbot-head small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
  padding: 16px;
  background: #f7f9fd;
}

.bot-message,
.user-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.35;
  font-weight: 600;
}

.bot-message {
  justify-self: start;
  color: #17223a;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.user-message {
  justify-self: end;
  color: #fff;
  background: var(--maroon);
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 4px;
}

.chatbot-quick button {
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--maroon);
  background: #fff8f9;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.chatbot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
}

.chatbot-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--maroon);
  text-align: center;
  font-weight: 800;
}

.chatbot-actions a:first-child {
  background: #128c4a;
}

@media (max-width: 560px) {
  .chat-tools {
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-float span,
  .chatbot-toggle span {
    display: none;
  }

  .whatsapp-float,
  .chatbot-toggle {
    width: 54px;
    padding: 0;
    justify-content: center;
  }

  .chatbot-actions {
    grid-template-columns: 1fr;
  }
}

/* About values block on the homepage directory. */
.about-values-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 14px;
  padding-top: 4px;
}

.about-values-intro h2 {
  max-width: 560px;
}

.home-directory-content > .identity-mini-grid {
  margin-top: 0;
  margin-bottom: 24px;
}

.home-directory-content > .identity-mini-grid article {
  min-height: 150px;
}

/* Mobile fixed-header clearance: prevents page text from hiding under the logo/menu. */
@media (max-width: 720px) {
  main {
    padding-top: 184px;
  }

  .home-page main {
    padding-top: 0;
  }

  .hero.home-hero {
    padding-top: 218px;
  }

  .page-hero,
  .soft-page-hero,
  .contact-hero,
  .about-hero {
    padding-top: clamp(26px, 6vw, 42px);
  }
}

@media (max-width: 380px) {
  main {
    padding-top: 196px;
  }

  .hero.home-hero {
    padding-top: 230px;
  }
}


/* Parent resources submenu and Brookhouse-inspired service pages, adapted for Jayden. */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-parent { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; border: 0; border-radius: 999px; color: var(--ink); background: transparent; font: inherit; font-size: 0.91rem; font-weight: 500; cursor: pointer; }
.nav-parent::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-parent:hover, .nav-parent:focus-visible, .nav-parent.active { color: #fff; background: var(--maroon); outline: 0; }
.submenu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 90; min-width: 210px; display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(139, 30, 45, 0.16); border-radius: 8px; background: #fff; box-shadow: 0 24px 58px rgba(15, 29, 66, 0.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .submenu a { justify-content: flex-start; min-height: 38px; border-radius: 8px; padding: 0 12px; white-space: nowrap; }
.parent-resource-grid .card { min-height: 210px; background: linear-gradient(180deg, #fff, #fff8f9); }
.text-link { display: inline-flex; margin-top: 14px; color: var(--maroon); font-weight: 900; }
.calendar-panel { align-self: start; border-color: rgba(139, 30, 45, 0.16); background: linear-gradient(145deg, #102354, #243f80); color: #fff; }
.calendar-panel h3, .calendar-panel p, .calendar-panel .card-kicker { color: #fff; }
@media (max-width: 1040px) {
  .nav-item { display: grid; }
  .nav-parent { min-height: 48px; width: 100%; border-radius: 8px; }
  .submenu {
    position: static;
    min-width: 0;
    max-height: 0;
    margin: 0 8px;
    padding: 0 10px;
    overflow: hidden;
    border-width: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.22s ease, padding 0.22s ease, margin 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
  }
  .nav-item:focus-within .submenu { opacity: 0; visibility: hidden; }
  .nav-item.is-submenu-open .submenu,
  .nav-item.is-submenu-open:focus-within .submenu {
    max-height: 420px;
    margin: 0 8px 8px;
    padding: 10px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
  }
  .nav-item.is-submenu-open .nav-parent::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }
}

/* Keep homepage card corner accents small so they never cover text. */
.home-card-grid .page-card::after {
  right: -44px;
  bottom: -44px;
  width: 92px;
  height: 92px;
  border-width: 12px;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .home-card-grid .page-card::after {
    right: -52px;
    bottom: -52px;
    width: 86px;
    height: 86px;
    border-width: 10px;
  }
}

/* Tighten homepage spacing between the directory cards and For parents section. */
.home-directory {
  padding-bottom: clamp(18px, 3vw, 34px);
}

.home-split {
  padding-top: clamp(20px, 3.2vw, 38px);
}

@media (max-width: 720px) {
  .home-directory {
    padding-bottom: 18px;
  }

  .home-split {
    padding-top: 20px;
  }
}

/* Tighten About page spacing before Everyday school life section. */
.about-signature {
  padding-bottom: clamp(18px, 3vw, 34px);
}

.about-signature + .feature-band {
  padding-top: clamp(20px, 3.2vw, 38px);
}

@media (max-width: 720px) {
  .about-signature {
    padding-bottom: 18px;
  }

  .about-signature + .feature-band {
    padding-top: 20px;
  }
}

/* Tighten Academics page spacing before Academic support section. */
.academics-main {
  padding-bottom: clamp(18px, 3vw, 34px);
}

.academics-main + .academic-support-section {
  padding-top: clamp(20px, 3.2vw, 38px);
}

@media (max-width: 720px) {
  .academics-main {
    padding-bottom: 18px;
  }

  .academics-main + .academic-support-section {
    padding-top: 20px;
  }
}

/* Tighten Admissions page spacing before visit preparation section. */
main > .section:has(.admissions-copy-col) {
  padding-bottom: clamp(18px, 3vw, 34px);
}

main > .section:has(.admissions-copy-col) + .visit-prep-section {
  padding-top: clamp(20px, 3.2vw, 38px);
}

@media (max-width: 720px) {
  main > .section:has(.admissions-copy-col) {
    padding-bottom: 18px;
  }

  main > .section:has(.admissions-copy-col) + .visit-prep-section {
    padding-top: 20px;
  }
}

/* Tighten Fees page spacing before Typical enquiries section. */
main > .section:has(.fees-steps) {
  padding-bottom: clamp(18px, 3vw, 34px);
}

main > .section:has(.fees-steps) + .feature-band {
  padding-top: clamp(20px, 3.2vw, 38px);
}

@media (max-width: 720px) {
  main > .section:has(.fees-steps) {
    padding-bottom: 18px;
  }

  main > .section:has(.fees-steps) + .feature-band {
    padding-top: 20px;
  }
}

/* News page call-to-action card. */
.news-cta-section {
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(46px, 6vw, 76px);
  background: linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
}

.news-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(139, 30, 45, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #102354 0%, #213f86 58%, #9f1d2d 100%);
  box-shadow: 0 24px 68px rgba(15, 29, 66, 0.18);
}

.news-cta-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border: 24px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.news-cta-card h2,
.news-cta-card p,
.news-cta-card .eyebrow {
  position: relative;
  z-index: 1;
  color: #fff;
}

.news-cta-card p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.news-cta-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.news-cta-actions .button-light {
  color: var(--navy);
  background: #fff;
}

.news-cta-actions .button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .news-cta-card {
    grid-template-columns: 1fr;
  }

  .news-cta-actions {
    min-width: 0;
  }
}

/* Make Location hero consistent and readable like the other page headers. */
.location-hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(185, 28, 28, 0.24), transparent 28%),
    linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 58%, var(--maroon) 100%) !important;
  color: #fff;
}

.location-hero::before {
  background: var(--maroon);
}

.location-hero .breadcrumb,
.location-hero .breadcrumb a,
.location-hero h1,
.location-hero .lead,
.location-hero .eyebrow {
  color: #fff !important;
}

.location-hero .button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.location-hero .visit-note-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 52px rgba(7, 16, 42, 0.18);
}

@media (max-width: 720px) {
  .location-hero {
    padding-top: clamp(34px, 7vw, 52px) !important;
  }
}

/* Distinct parent-support menu item. */
.nav-parent {
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(139, 30, 45, 0.2);
  color: var(--maroon);
  background: linear-gradient(180deg, #fff, #fff8f9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.nav-parent::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--maroon);
  box-shadow: 0 0 0 4px rgba(139, 30, 45, 0.1);
}

.nav-parent::after {
  margin-left: 0;
}

.nav-parent:hover,
.nav-parent:focus-visible,
.nav-parent.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  box-shadow: 0 12px 26px rgba(139, 30, 45, 0.22);
}

.nav-parent:hover::before,
.nav-parent:focus-visible::before,
.nav-parent.active::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

@media (max-width: 1040px) {
  .nav-parent {
    justify-content: center;
  }
}

/* Sweeter Parent Information page. */
.parent-info-hero .story-hero-grid {
  align-items: stretch;
}

.parent-info-hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.parent-info-hero .hero-badges span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.parent-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 54px rgba(8, 22, 56, 0.18);
}

.parent-hero-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 124px;
  height: 124px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.parent-hero-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-hero-card h2,
.parent-hero-card p,
.parent-hero-card .button {
  position: relative;
  z-index: 1;
}

.parent-hero-card p {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.82);
}

.parent-info-main {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

.parent-journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.parent-journey-strip div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(139, 30, 45, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 29, 66, 0.05);
}

.parent-journey-strip strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
}

.parent-journey-strip span {
  color: var(--navy);
  font-weight: 900;
}

.sweet-parent-grid .card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 26px;
  border-color: rgba(139, 30, 45, 0.14);
  box-shadow: 0 18px 42px rgba(15, 29, 66, 0.06);
}

.sweet-parent-grid .card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 98px;
  height: 98px;
  border: 13px solid rgba(139, 30, 45, 0.07);
  border-radius: 999px;
}

.sweet-parent-grid .feature-parent-card {
  color: #fff;
  background: linear-gradient(145deg, #102354, #243f80);
}

.sweet-parent-grid .feature-parent-card h3,
.sweet-parent-grid .feature-parent-card p,
.sweet-parent-grid .feature-parent-card .card-kicker,
.sweet-parent-grid .feature-parent-card .text-link {
  color: #fff;
}

.parent-contact-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
}

.parent-contact-cta .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.parent-contact-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.parent-contact-cta .button-light {
  color: var(--navy);
  background: #fff;
}

@media (max-width: 1040px) {
  .parent-journey-strip,
  .parent-contact-cta .section-inner {
    grid-template-columns: 1fr;
  }
}

/* Our Team page. */
.team-hero .story-hero-grid {
  align-items: stretch;
}

.team-hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.team-hero .hero-badges span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.team-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 54px rgba(8, 22, 56, 0.18);
}

.team-hero-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 124px;
  height: 124px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.team-hero-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-hero-card h2,
.team-hero-card p {
  position: relative;
  z-index: 1;
}

.team-hero-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.team-main {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

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

.team-role-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 26px;
  border-color: rgba(139, 30, 45, 0.14);
  background: linear-gradient(180deg, #fff, #fff8f9);
  box-shadow: 0 18px 42px rgba(15, 29, 66, 0.06);
}

.team-role-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 98px;
  height: 98px;
  border: 13px solid rgba(139, 30, 45, 0.07);
  border-radius: 999px;
}

.team-role-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-weight: 900;
}

.team-role-card h3,
.team-role-card p,
.team-role-card > span {
  position: relative;
  z-index: 1;
}

.feature-team-card {
  color: #fff;
  background: linear-gradient(145deg, #102354, #243f80);
}

.feature-team-card h3,
.feature-team-card p {
  color: #fff;
}

.team-support-section {
  padding-top: clamp(28px, 4vw, 52px);
}

@media (max-width: 1040px) {
  .team-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-role-grid {
    grid-template-columns: 1fr;
  }
}

/* Polished parent support pages: Term Dates, Transport, Admissions, Academics. */
.calendar-hero .story-hero-grid,
.transport-hero .story-hero-grid,
.admissions-hero .story-hero-grid,
.academics-hero .story-hero-grid {
  align-items: stretch;
}

.calendar-hero .hero-badges,
.transport-hero .hero-badges,
.admissions-hero .hero-badges,
.academics-hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.calendar-hero .hero-badges span,
.transport-hero .hero-badges span,
.admissions-hero .hero-badges span,
.academics-hero .hero-badges span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.calendar-hero-card,
.transport-hero-card,
.admissions-hero-card,
.academics-hero-card {
  align-self: stretch;
}

.calendar-main,
.transport-main,
.admissions-main-section,
.learning-values-section {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

.calendar-card-grid,
.transport-card-grid,
.admission-topic-grid,
.learning-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.calendar-card,
.transport-card,
.learning-value-grid .card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  background: linear-gradient(180deg, #fff, #fff8f9);
}

.calendar-card::after,
.transport-card::after,
.learning-value-grid .card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 126px;
  height: 126px;
  border: 24px solid rgba(139, 30, 45, 0.08);
  border-radius: 50%;
}

.calendar-card > span,
.transport-card > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  font-weight: 900;
}

.calendar-card h3,
.calendar-card p,
.calendar-card > span,
.transport-card h3,
.transport-card p,
.transport-card > span,
.learning-value-grid .card h3,
.learning-value-grid .card p,
.learning-value-grid .card span {
  position: relative;
  z-index: 1;
}

.feature-calendar-card,
.feature-transport-card,
.feature-stage-card {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
}

.feature-calendar-card h3,
.feature-calendar-card p,
.feature-transport-card h3,
.feature-transport-card p,
.feature-stage-card h3,
.feature-stage-card p {
  color: #fff;
}

.calendar-support-section,
.transport-map-section,
.admissions-support-section {
  padding-top: clamp(28px, 4vw, 52px);
}

.transport-map-section .location-map-card.compact {
  min-height: 380px;
  margin: 0;
  box-shadow: var(--shadow);
}

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

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

.feature-stage-card .number {
  background: #fff;
  color: var(--maroon);
}

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

@media (max-width: 1040px) {
  .calendar-card-grid,
  .transport-card-grid,
  .admission-topic-grid,
  .academic-stage-grid,
  .learning-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .calendar-card-grid,
  .transport-card-grid,
  .admission-topic-grid,
  .academic-stage-grid,
  .learning-value-grid {
    grid-template-columns: 1fr;
  }

  .calendar-card,
  .transport-card,
  .learning-value-grid .card {
    min-height: 0;
  }
}
/* Left-align mobile main menu items with the Parents submenu. */
@media (max-width: 1040px) {
  .main-nav a,
  .main-nav .nav-parent {
    justify-content: flex-start;
    text-align: left;
  }

  .main-nav .nav-parent {
    padding-left: 13px;
  }
}
/* Redesigned global footer. */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 72px) 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(185, 28, 28, 0.34), transparent 28%),
    linear-gradient(135deg, #0e1b3f 0%, #13295f 58%, #1b3477 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--maroon), var(--red));
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  padding-bottom: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-mark {
  background: #fff;
}

.footer-brand strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-intro p {
  max-width: 660px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-cards {
  display: grid;
  gap: 12px;
}

.footer-contact-cards a {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.footer-contact-cards span,
.footer-cta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact-cards strong {
  color: #fff;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.footer-grid {
  width: auto;
  margin: 0;
  padding: clamp(26px, 4vw, 42px) 0 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(180px, 0.6fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 54px);
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

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

.footer-cta {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.footer-cta h3 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.footer-cta p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-cta .button-row {
  margin-top: 22px;
}

.footer-bottom {
  width: auto;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-band + .site-footer {
  border-top: 0;
}

@media (max-width: 1040px) {
  .footer-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-left: 22px;
    padding-right: 18px;
  }

  .footer-contact-cards a,
  .footer-cta {
    padding: 16px;
  }

  .footer-bottom,
  .footer-bottom div {
    display: grid;
  }
}

/* Single-row desktop footer layout. */
@media (min-width: 1041px) {
  .footer-shell {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(210px, 0.9fr) minmax(130px, 0.55fr) minmax(140px, 0.6fr) minmax(250px, 1fr);
    gap: clamp(18px, 2.2vw, 34px);
    align-items: start;
  }

  .footer-intro,
  .footer-grid {
    display: contents;
  }

  .footer-intro > div:first-child,
  .footer-contact-cards,
  .footer-grid > div,
  .footer-cta {
    min-width: 0;
  }

  .footer-intro p {
    max-width: 300px;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .footer-contact-cards {
    gap: 8px;
  }

  .footer-contact-cards a {
    padding: 11px 12px;
  }

  .footer-contact-cards strong {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
  }

  .footer-grid {
    padding: 0;
  }

  .footer-links {
    gap: 7px;
  }

  .footer-links a {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .footer-cta {
    padding: 16px;
  }

  .footer-cta h3 {
    font-size: clamp(1.12rem, 1.45vw, 1.35rem);
    line-height: 1.16;
  }

  .footer-cta p {
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .footer-cta .button-row {
    margin-top: 14px;
    gap: 8px;
  }

  .footer-cta .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    grid-column: 1 / -1;
    margin-top: clamp(18px, 2.6vw, 28px);
  }
}






/* Photo cards: no empty filler space, only a slim Jayden blue rule. */
.image-panel,
.photo-card-small,
.contact-image,
.academic-image-stack .image-panel,
.contact-form-section .image-panel {
  display: flex;
  overflow: hidden;
  background: transparent !important;
  border-bottom: 2px solid var(--navy);
}

.image-panel img,
.photo-card-small img,
.contact-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: inherit;
  object-fit: cover;
}

.image-panel img {
  height: 100%;
}

/* Footer CTA buttons should feel balanced as a pair. */
.site-footer .footer-cta .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.site-footer .footer-cta .button-row .button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 420px) {
  .site-footer .footer-cta .button-row {
    grid-template-columns: 1fr;
  }
}

/* Footer contact contrast and compact email line. */
.site-footer .button-light,
.site-footer .footer-cta .button-light {
  color: var(--navy) !important;
  background: #fff !important;
  border-color: #fff !important;
}

.site-footer .button-light:hover,
.site-footer .button-light:focus-visible {
  color: var(--navy) !important;
  background: #f8fafc !important;
}

.footer-contact-cards a[href^="mailto:"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(0.64rem, 0.74vw, 0.76rem);
  line-height: 1.2;
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .footer-contact-cards a[href^="mailto:"] strong {
    font-size: clamp(0.68rem, 2.45vw, 0.82rem);
  }
}

/* Footer brand title: keep the school name to one or two neat lines. */
.footer-brand {
  gap: 10px;
}

.footer-brand strong {
  max-width: 210px;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.1;
}

@media (min-width: 1041px) {
  .footer-brand .brand-mark {
    width: 52px;
    height: 52px;
  }

  .footer-brand strong {
    max-width: 178px;
    font-size: clamp(0.98rem, 1.05vw, 1.08rem);
    line-height: 1.12;
  }

  .footer-brand small {
    font-size: 0.86rem;
  }
}

/* Tighter internal-page hero spacing so sections use vertical space better. */
.page-hero,
.soft-page-hero,
.contact-hero,
.about-hero {
  padding-top: clamp(38px, 5vw, 66px);
  padding-bottom: clamp(32px, 4.4vw, 56px);
}

.page-hero .section-inner,
.soft-page-hero .section-inner {
  gap: 12px;
}

.page-hero .breadcrumb,
.soft-page-hero .breadcrumb {
  margin-bottom: 2px;
}

.page-hero .eyebrow,
.soft-page-hero .eyebrow {
  margin-bottom: 10px;
}

.page-hero h1,
.soft-page-hero h1 {
  margin-bottom: 8px;
}

.page-hero .lead,
.soft-page-hero .lead {
  margin-top: 0;
}

.page-hero .hero-badges,
.soft-page-hero .hero-badges,
.calendar-hero .hero-badges,
.transport-hero .hero-badges,
.admissions-hero .hero-badges,
.academics-hero .hero-badges,
.parent-info-hero .hero-badges,
.team-hero .hero-badges {
  margin-top: clamp(18px, 2.8vw, 24px);
}

@media (max-width: 1040px) {
  .page-hero,
  .soft-page-hero,
  .contact-hero,
  .about-hero {
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .page-hero .section-inner,
  .soft-page-hero .section-inner {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page-hero,
  .soft-page-hero,
  .contact-hero,
  .about-hero {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .page-hero .hero-badges,
  .soft-page-hero .hero-badges,
  .calendar-hero .hero-badges,
  .transport-hero .hero-badges,
  .admissions-hero .hero-badges,
  .academics-hero .hero-badges,
  .parent-info-hero .hero-badges,
  .team-hero .hero-badges {
    margin-top: 16px;
  }
}
/* Keep internal page hero banners compact. */
.page-hero {
  padding-top: clamp(18px, 2.8vw, 34px);
  padding-bottom: clamp(18px, 2.6vw, 32px);
}

.page-hero .story-hero-grid {
  min-height: 0;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
}

.page-hero .story-hero-grid > div:first-child {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero .breadcrumb {
  margin-bottom: 4px;
}

.page-hero .eyebrow {
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

.page-hero h1 {
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

.page-hero .hero-badges,
.calendar-hero .hero-badges,
.transport-hero .hero-badges,
.admissions-hero .hero-badges,
.academics-hero .hero-badges,
.parent-info-hero .hero-badges,
.team-hero .hero-badges {
  margin-top: 0;
  padding-top: clamp(10px, 1.8vw, 18px);
}

.page-hero .team-hero-card {
  align-self: center;
}

@media (max-width: 1040px) {
  .page-hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .page-hero .story-hero-grid,
  .page-hero .story-hero-grid > div:first-child {
    min-height: 0;
  }

  .page-hero .hero-badges,
  .calendar-hero .hero-badges,
  .transport-hero .hero-badges,
  .admissions-hero .hero-badges,
  .academics-hero .hero-badges,
  .parent-info-hero .hero-badges,
  .team-hero .hero-badges {
    margin-top: 0;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .page-hero .hero-badges,
  .calendar-hero .hero-badges,
  .transport-hero .hero-badges,
  .admissions-hero .hero-badges,
  .academics-hero .hero-badges,
  .parent-info-hero .hero-badges,
  .team-hero .hero-badges {
    padding-top: 10px;
  }
}
/* Category and school management subpages. */
.category-main,
.management-main {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}

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

.category-feature,
.management-feature {
  padding-top: clamp(28px, 4vw, 52px);
}

.category-hero .team-hero-card,
.management-hero .team-hero-card {
  align-self: center;
}

@media (max-width: 1040px) {
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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