/* ==========================================================================
   Maxford International School
   Stylesheet. Single source of truth for the whole site.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0E2A47;
  --navy-dark: #081A2E;
  --navy-light: #1B3A5C;
  --gold: #C9A961;
  --gold-dark: #A88841;
  --gold-soft: #F4E9D2;
  --cream: #F8F4EC;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #5A5A5A;
  --border: #E5E5E5;
  --bg-soft: #F7F9FC;
  --shadow-sm: 0 1px 3px rgba(8, 26, 46, 0.06);
  --shadow-md: 0 12px 28px rgba(14, 42, 71, 0.10);
  --shadow-lg: 0 20px 48px rgba(8, 26, 46, 0.18);
  --radius: 6px;
  --header-h: 78px;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--navy);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-left a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar-left a:hover { color: var(--gold); }
.topbar-left svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }

/* Social cluster, pinned to the top right corner of every page */
.social-strip { display: flex; align-items: center; gap: 8px; }
.social-strip .follow-label {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-right: 4px;
}
.social-strip a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.09);
  transition: background .2s, transform .2s;
}
.social-strip a svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.9); }
.social-strip a:hover { background: var(--gold); transform: translateY(-2px); }
.social-strip a:hover svg { fill: var(--navy-dark); }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { width: 66px; height: auto; }
.logo-text { display: block; }
.logo-text .name, .logo-text .tagline { display: block; }
.logo-text .name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 25px; color: var(--navy); letter-spacing: 1.4px; line-height: 1.08;
}
.logo-text .tagline {
  font-size: 11.5px; color: var(--text-light);
  letter-spacing: 2.1px; text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; gap: 19px; align-items: center; }
.nav-links > li > a {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  padding: 8px 0; display: block; position: relative; transition: color .2s;
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s;
}
.nav-links > li > a:hover { color: var(--navy); }
.nav-links > li > a:hover::after { width: 100%; }
.nav-links > li > a.current { color: var(--navy); font-weight: 600; }
.nav-links > li > a.current::after { width: 100%; }

.nav-cta {
  background: var(--gold); color: var(--white) !important;
  padding: 11px 20px !important; border-radius: 4px;
  font-weight: 600 !important; font-size: 13.5px;
  transition: background .2s; white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-dark); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 4px; padding: 8px 10px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 4px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; border: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.75); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-block { display: block; width: 100%; padding: 15px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; margin-right: 7px; }

/* --------------------------------------------------------------------------
   Image placeholders. A photo layers on top when the school adds one.
   -------------------------------------------------------------------------- */
.ph {
  position: relative; overflow: hidden; background: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(201,169,97,.20) 0%, rgba(201,169,97,0) 42%),
    linear-gradient(315deg, rgba(201,169,97,.13) 0%, rgba(201,169,97,0) 46%),
    linear-gradient(160deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 11px);
  pointer-events: none;
}
.ph > .ph-label {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; gap: 6px; padding: 20px;
  color: rgba(255, 255, 255, 0.5); font-size: 11.5px;
  letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
}
.ph > .ph-label span { display: block; }
.ph > .ph-label .mark {
  font-family: 'Playfair Display', serif; font-size: 30px;
  color: rgba(201, 169, 97, 0.55); letter-spacing: 0; text-transform: none;
}
.ph > img, .ph > video, .ph > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; border: 0;
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(8,26,46,.94) 0%, rgba(14,42,71,.86) 55%, rgba(27,58,92,.82) 100%),
    radial-gradient(circle at 82% 22%, rgba(201,169,97,.30), transparent 46%),
    var(--navy);
  color: var(--white);
  padding: 66px 0 60px;
  position: relative;
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold) 0%, rgba(201,169,97,0) 65%);
}
.page-hero.has-photo { padding: 96px 0 86px; overflow: hidden; }
.page-hero-photo { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,26,46,.94) 0%, rgba(14,42,71,.86) 52%, rgba(14,42,71,.62) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--gold); letter-spacing: 3px; font-size: 11.5px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.page-hero h1 { color: var(--white); font-size: 44px; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 660px; }

.breadcrumb { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white);
  min-height: 620px; display: flex; align-items: center;
  padding: 96px 0 128px;
  background:
    linear-gradient(105deg, rgba(8,26,46,.95) 0%, rgba(14,42,71,.82) 52%, rgba(14,42,71,.55) 100%),
    radial-gradient(circle at 78% 30%, rgba(201,169,97,.34), transparent 50%),
    var(--navy);
  background-size: cover; background-position: center;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo:empty { display: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,26,46,.95) 0%, rgba(14,42,71,.82) 52%, rgba(14,42,71,.55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; }
.hero .eyebrow {
  color: var(--gold); letter-spacing: 3.4px; font-size: 12.5px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: 54px; line-height: 1.12; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 17px; max-width: 590px; margin-bottom: 32px; color: rgba(255,255,255,0.9); }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Info bar tucked under the hero */
.info-bar { position: relative; z-index: 5; margin-top: -56px; }
.info-bar-inner {
  background: var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.info-item {
  padding: 26px 20px; text-align: center; color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.info-item:last-child { border-right: none; }
.info-item svg { width: 22px; height: 22px; fill: var(--gold); margin: 0 auto 9px; display: block; }
.info-item .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55); margin-bottom: 3px;
}
.info-item .value { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.info-item a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.block { padding: 88px 0; }
.block-tight { padding: 60px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  color: var(--gold); letter-spacing: 3px; font-size: 11.5px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.grade-label {
  color: var(--gold-dark); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; margin-bottom: 4px;
}
.section-head { text-align: center; max-width: 730px; margin: 0 auto 56px; }
.section-head .eyebrow {
  color: var(--gold); letter-spacing: 3px; font-size: 11.5px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.section-head h2 { font-size: 38px; margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 16px; }
.bg-navy .section-head p { color: rgba(255,255,255,0.78); }

.section-head-left { text-align: left; margin-left: 0; }
.h-lg { font-size: 36px; margin-bottom: 18px; }
.lede { color: var(--text-light); margin-bottom: 16px; max-width: 62ch; }

.prose h2 { font-size: 30px; margin: 40px 0 14px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-light); max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose ul.ticks { margin: 18px 0 22px; }
ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 11px; color: var(--text); }
ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--gold);
  border-radius: 2px; transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   About split
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split-wide { grid-template-columns: 1fr 1.25fr; }
.split-media { height: 470px; border-radius: var(--radius); }
.split-media.tall { height: 540px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.card-icon {
  width: 54px; height: 54px; background: var(--navy); border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14.5px; }

/* Programme cards */
.program {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.program .ph { height: 175px; }
.program-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.program-body .grade {
  color: var(--gold-dark); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; margin-bottom: 6px;
}
.program-body h3 { font-size: 19px; margin-bottom: 9px; }
.program-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.program-body .link { color: var(--navy); font-size: 13px; font-weight: 600; border-bottom: 1.5px solid var(--gold); align-self: flex-start; padding-bottom: 2px; }
.program-body .link:hover { color: var(--gold-dark); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); padding: 66px 0; color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .number {
  font-family: 'Playfair Display', serif; font-size: 50px;
  font-weight: 700; color: var(--gold); line-height: 1.1; margin-bottom: 6px;
}
.stat .label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.82); }

/* --------------------------------------------------------------------------
   Leadership
   -------------------------------------------------------------------------- */
.leader-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.leader-card .ph { height: 300px; }
.leader-body { padding: 24px; }
.leader-body .role {
  color: var(--gold-dark); font-size: 11.5px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
.leader-body h3 { font-size: 20px; margin-bottom: 10px; }
.leader-body p { font-size: 14.5px; color: var(--text-light); }

.message-block { display: grid; grid-template-columns: 1fr 1.7fr; gap: 54px; align-items: center; }
.message-block .ph { height: 420px; border-radius: var(--radius); border: 4px solid var(--gold); }
.message-quote {
  font-size: 18px; line-height: 1.75; font-style: italic;
  color: rgba(255,255,255,0.92); border-left: 3px solid var(--gold);
  padding-left: 24px; margin-bottom: 22px;
}
.signature .name { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold); font-weight: 600; }
.signature .role { font-size: 13.5px; color: rgba(255,255,255,0.7); letter-spacing: .3px; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--white); padding: 32px 24px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--navy); color: var(--gold); border-radius: 50%;
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 14px 18px; font-size: 12.5px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 600;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody td:first-child { font-weight: 600; color: var(--navy); }
.table-note { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; grid-auto-flow: dense; }
.gallery-grid .g-item { height: 215px; border-radius: 4px; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.gallery-grid .g-item.big { grid-column: span 2; grid-row: span 2; height: 442px; }
.g-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 28px 16px 14px; color: var(--white);
  font-size: 14px; font-weight: 600; text-align: left;
  background: linear-gradient(to top, rgba(8,26,46,.85), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .28s, transform .28s;
}
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: translateY(0); }

.album-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.album-filter button {
  background: var(--white); border: 1px solid var(--border); color: var(--text);
  padding: 9px 20px; border-radius: 40px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.album-filter button:hover { border-color: var(--gold); color: var(--navy); }
.album-filter button.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(8, 26, 46, 0.94); place-items: center; padding: 32px;
}
.lightbox.open { display: grid; }
.lightbox-inner { max-width: 1000px; width: 100%; text-align: center; }
.lightbox-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden;
}
.lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: 14.5px; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); border: none;
  color: var(--white); width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--navy); }
.lightbox-close { top: 22px; right: 22px; font-size: 22px; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */
.event-banner {
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow-md);
}
.event-banner .ph { min-height: 380px; }
.event-banner-body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.event-flag svg { width: 13px; height: 13px; fill: currentColor; }
.event-flag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--gold); color: var(--navy-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 3px; margin-bottom: 18px;
}
.event-banner-body h2 { color: var(--white); font-size: 33px; margin-bottom: 14px; }
.event-banner-body p { color: rgba(255,255,255,0.85); margin-bottom: 22px; font-size: 15.5px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 26px; }
.event-meta div { font-size: 14px; }
.event-meta .k {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3px;
}

.event-list { display: grid; gap: 16px; }
.event-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  padding: 20px 24px; transition: transform .2s, box-shadow .2s;
}
.event-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.event-date {
  text-align: center; background: var(--cream); border-radius: 4px; padding: 10px 6px;
}
.event-date .d { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1; }
.event-date .m { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-top: 4px; }
.event-info h3 { font-size: 18px; margin-bottom: 5px; }
.event-info p { font-size: 14px; color: var(--text-light); }
.event-tag {
  font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: 3px; background: var(--gold-soft); color: var(--gold-dark);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Reels. Vertical clips as the school actually shoots them.
   -------------------------------------------------------------------------- */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: var(--navy-dark);
  box-shadow: 0 14px 34px rgba(8, 26, 46, .18);
  transition: transform .25s, box-shadow .25s;
}
.reel:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(8, 26, 46, .28); }
.reel video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--navy-dark);
}
.reel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 44px 16px 15px; color: var(--white); pointer-events: none;
  background: linear-gradient(to top, rgba(8,26,46,.92) 12%, rgba(8,26,46,.55) 55%, transparent);
  transition: opacity .25s;
}
.reel-cap .k {
  font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.reel-cap .t { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; line-height: 1.25; }
.reel.playing .reel-cap { opacity: 0; }
.reel-play {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  transition: opacity .25s;
}
.reel-play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(8, 26, 46, .55); border: 2px solid var(--gold);
  display: grid; place-items: center; backdrop-filter: blur(3px);
  transition: background .2s, transform .2s;
}
.reel-play span svg { width: 20px; height: 20px; fill: var(--gold); margin-left: 3px; }
.reel-play:hover span { background: var(--gold); transform: scale(1.06); }
.reel-play:hover span svg { fill: var(--navy-dark); }
.reel.playing .reel-play { opacity: 0; }
.reel.playing:hover .reel-play, .reel.playing .reel-play:focus-visible { opacity: 1; }
.reel-sound {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(8, 26, 46, .6); display: grid; place-items: center;
}
.reel-sound svg { width: 15px; height: 15px; fill: var(--white); }
.reel-sound:hover { background: var(--gold); }
.reel-sound:hover svg { fill: var(--navy-dark); }

/* Ten stills, two clean rows of five */
.photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.photo-strip .g-item { height: 165px; border-radius: 4px; border: 0; padding: 0; width: 100%; cursor: pointer; }

/* --------------------------------------------------------------------------
   Recent activity
   -------------------------------------------------------------------------- */
.activity-video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--navy-dark); box-shadow: var(--shadow-md);
}
.activity-video video { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-video.no-video video { display: none; }
.video-fallback {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center;
  text-align: center; gap: 10px; color: rgba(255,255,255,0.62); padding: 24px;
}
.video-fallback .play {
  width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; margin: 0 auto 6px;
}
.video-fallback .play svg { width: 22px; height: 22px; fill: var(--gold); margin-left: 3px; }
.video-fallback strong { color: var(--white); font-weight: 600; font-size: 16px; }
.video-fallback span { font-size: 13px; }

.media-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.media-split .thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-split .thumb-grid .g-item { height: 150px; border-radius: 4px; border: 0; padding: 0; width: 100%; cursor: pointer; }
.activity-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.activity-strip .g-item { height: 160px; border-radius: 4px; border: 0; padding: 0; width: 100%; cursor: pointer; }

.update-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.update-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.update-card .ph { height: 195px; }
.update-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.update-date {
  align-self: flex-start; background: var(--cream); color: var(--navy);
  padding: 4px 11px; border-radius: 3px; font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.update-body h3 { font-size: 18px; margin-bottom: 9px; }
.update-body p { font-size: 14px; color: var(--text-light); }

/* --------------------------------------------------------------------------
   Embedded sheet (the school's own fee document)
   -------------------------------------------------------------------------- */
.sheet-embed {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 0;
  box-shadow: var(--shadow-md); max-width: 980px; margin-inline: auto;
}
.sheet-embed img {
  width: 100%; height: auto; border-radius: 3px; display: block;
  border: 1px solid var(--border);
}
.sheet-embed figcaption {
  font-size: 12.5px; color: var(--text-light); text-align: center;
  padding-top: 12px;
}
.sheet-embed a { display: block; }
.sheet-embed a:hover img { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Documents / disclosure
   -------------------------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 14px; padding: 17px 20px;
  background: var(--bg-soft); border-left: 3px solid var(--gold);
  border-radius: 4px; transition: background .2s, transform .2s;
}
.doc:hover { background: var(--cream); transform: translateX(4px); }
.doc-icon {
  width: 38px; height: 38px; background: var(--navy); border-radius: 4px;
  display: grid; place-items: center; flex-shrink: 0;
}
.doc-icon svg { width: 18px; height: 18px; fill: var(--gold); }
.doc-info { flex: 1; min-width: 0; }
.doc-info .name { display: block; font-weight: 600; font-size: 14px; color: var(--navy); }
.doc-info .meta { display: block; font-size: 12px; color: var(--text-light); }
.doc .download { font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap; }

.notice-bar {
  background: var(--gold-soft); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 34px;
  display: flex; gap: 14px; align-items: flex-start;
}
.notice-bar svg { width: 20px; height: 20px; fill: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.notice-bar p { font-size: 14.5px; color: #6A5522; margin: 0; }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-head {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; font-size: 16px; font-weight: 600; color: var(--navy);
  font-family: 'Playfair Display', serif; transition: background .2s;
}
.accordion-head:hover { background: var(--bg-soft); }
.accordion-head .chev { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; transition: transform .25s; }
.accordion-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel { display: none; padding: 0 24px 22px; }
.accordion-panel p { font-size: 14.5px; color: var(--text-light); margin-bottom: 10px; }
.accordion-panel.open { display: block; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; }
.contact-info {
  background: rgba(255,255,255,0.05); padding: 34px;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12);
}
.contact-info h3 { color: var(--white); font-size: 21px; margin-bottom: 24px; }
.contact-row { display: flex; gap: 15px; margin-bottom: 21px; align-items: flex-start; }
.contact-row .ic {
  width: 40px; height: 40px; background: var(--gold); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-row .ic svg { width: 17px; height: 17px; fill: var(--navy-dark); }
.contact-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 3px; }
.contact-row .value { font-size: 15px; color: rgba(255,255,255,0.92); line-height: 1.55; }
.contact-row .value a:hover { color: var(--gold); }

.map-embed { margin-top: 26px; border-radius: var(--radius); overflow: hidden; height: 250px; }

.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); }
.contact-form h3 { font-size: 21px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14.5px; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { min-height: 118px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.form-note { font-size: 12.5px; color: var(--text-light); margin-top: 12px; text-align: center; }
.form-status { font-size: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 4px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #E8F5E9; color: #1B5E20; }
.form-status.err { background: #FDECEA; color: #B3261E; }

/* --------------------------------------------------------------------------
   CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 62px 0; text-align: center;
}
.cta-strip h2 { color: var(--white); font-size: 34px; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 28px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); padding: 62px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.footer-col h4 {
  color: var(--white); font-size: 15px; margin-bottom: 18px;
  letter-spacing: .4px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { transition: color .2s, padding-left .2s; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img {
  width: 56px; height: auto; background: var(--white);
  padding: 4px; border-radius: 6px;
}
.footer-logo .name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 21px; color: var(--white); letter-spacing: 1.3px; }
.footer-logo .tagline { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); transition: background .2s, transform .2s;
}
.footer-social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.85); }
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-social a:hover svg { fill: var(--navy-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--gold); }

/* Floating call button on small screens */
.mobile-call {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 150;
  background: var(--gold); color: var(--navy-dark);
  padding: 13px 20px; border-radius: 40px; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 24px rgba(8,26,46,.3); align-items: center; gap: 9px;
}
.mobile-call svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-links { gap: 13px; }
  .nav-links > li > a { font-size: 12.8px; }
  .logo-text .name { font-size: 21px; }
  .logo-text .tagline { font-size: 10px; letter-spacing: 1.6px; }
  .logo img { width: 56px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 88px 24px 32px; box-shadow: -12px 0 40px rgba(8,26,46,.18);
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 210;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links > li > a::after { display: none; }
  .nav-cta { margin-top: 18px; padding: 14px !important; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(8,26,46,.5);
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 190;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  .split, .split-wide, .message-block, .contact-grid, .media-split { grid-template-columns: 1fr; gap: 34px; }
  .split-media, .split-media.tall { height: 340px; }
  .message-block .ph { height: 320px; }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .info-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .info-item:nth-child(2) { border-right: none; }
  .info-item:nth-child(1), .info-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .event-banner { grid-template-columns: 1fr; }
  .event-banner .ph { min-height: 260px; }
  .event-banner-body { padding: 34px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .media-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.media-split .thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-split .thumb-grid .g-item { height: 150px; border-radius: 4px; border: 0; padding: 0; width: 100%; cursor: pointer; }
.activity-strip { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2, .h-lg { font-size: 31px; }
  .topbar-left { font-size: 12.5px; gap: 16px; }
}

@media (max-width: 720px) {
  .block { padding: 60px 0; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-item { height: 165px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip .g-item { height: 130px; }
  .gallery-grid .g-item.big { grid-column: span 2; grid-row: span 1; height: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .event-row { grid-template-columns: 76px 1fr; }
  .event-tag { grid-column: 1 / -1; justify-self: start; }
  .mobile-call { display: inline-flex; }
  .site-footer { padding-bottom: 70px; }
  .topbar .container { justify-content: center; }
  .topbar-left { justify-content: center; }
}

@media (max-width: 540px) {
  .hero { min-height: 520px; padding: 70px 0 110px; }
  .hero h1 { font-size: 33px; }
  .hero p { font-size: 15.5px; }
  .section-head h2, .h-lg { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .cards-4, .steps, .doc-grid, .media-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.media-split .thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-split .thumb-grid .g-item { height: 150px; border-radius: 4px; border: 0; padding: 0; width: 100%; cursor: pointer; }
.activity-strip { grid-template-columns: 1fr; }
  .info-bar-inner { grid-template-columns: 1fr; }
  .info-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .info-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form, .contact-info { padding: 24px; }
  .btn { width: 100%; }
  .hero-buttons, .cta-buttons { flex-direction: column; }
  .logo img { width: 50px; height: auto; }
  .logo-text { display: block; }
.logo-text .name, .logo-text .tagline { display: block; }
.logo-text .name { font-size: 15.5px; }
  .logo-text .tagline { font-size: 9px; }
  .topbar-left .hide-xs { display: none; }
}

/* --------------------------------------------------------------------------
   Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .site-header, .mobile-call, .cta-strip, .lightbox { display: none !important; }
  body { color: #000; }
  .ph { background: #EEE !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
