/* Atepi Schools website. Colours from the Atepi crest (brand kit): royal blue, red, pale yellow. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/jost-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/jost-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/open-sans-300-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/open-sans-300-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --royal: #14238F;
  --royal-dark: #0C1563;
  --royal-deep: #080E45;
  --red: #BD2018;
  --red-dark: #9A1912;
  --yellow: #F2EF7A;
  --yellow-soft: #FBFAD9;
  --ink: #1B2140;
  --slate: #5A6080;
  --line: #E3E5EF;
  --mist: #F5F6FB;
  --radius: 14px;
}

body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--ink); font-size: 16px; line-height: 1.7; background: #fff; }
h1, h2, h3, h4, h5, .display-font { font-family: 'Jost', system-ui, sans-serif; color: var(--royal-deep); font-weight: 600; line-height: 1.2; }
a { color: var(--royal); }
a:hover { color: var(--red); }
img { max-width: 100%; }
.text-slate { color: var(--slate); }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-mist { background: var(--mist); }
.bg-yellow-soft { background: var(--yellow-soft); }

/* Small heading above section titles */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'Jost', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.kicker::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }
.section-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; }
.lead-text { font-size: 18px; color: var(--slate); }

/* Buttons */
.btn { font-family: 'Jost', sans-serif; font-weight: 600; border-radius: 999px; padding: 12px 26px; font-size: 16px; }
.btn-red { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-royal { background: var(--royal); color: #fff; border: 2px solid var(--royal); }
.btn-royal:hover { background: var(--royal-dark); border-color: var(--royal-dark); color: #fff; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--royal); }
.btn-yellow { background: var(--yellow); color: var(--royal-deep); border: 2px solid var(--yellow); }
.btn-yellow:hover { background: #fff; border-color: #fff; color: var(--royal); }
.btn-sm { padding: 7px 16px; font-size: 14px; }

/* Top bar + header */
.topbar { background: var(--royal-deep); color: rgba(255,255,255,.85); font-size: 14px; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
/* Yellow buttons always use dark royal text, even inside the top bar and footer whose links are white */
a.btn-yellow, a.btn-yellow:hover, a.btn-yellow:focus,
.topbar a.btn-yellow, .site-footer a.btn-yellow, .cta-band a.btn-yellow { color: var(--royal-deep); }
.site-footer a.btn-yellow:hover { background: #fff; border-color: #fff; color: var(--royal); }
.topbar .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar .contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand .name { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 22px; color: var(--royal); line-height: 1.05; }
.brand .motto { display: block; font-size: 12.5px; font-weight: 500; color: var(--red); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a { display: block; padding: 10px 12px; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 16px; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-radius: 8px; }
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--royal); background: var(--mist); }
.main-nav .dropdown-list { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(12,21,99,.12); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.main-nav li:hover > .dropdown-list, .main-nav li:focus-within > .dropdown-list { opacity: 1; visibility: visible; transform: none; }
.dropdown-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.dropdown-list a:hover { background: var(--mist); color: var(--royal); }
.dropdown-list small { color: var(--slate); }
.menu-toggle { display: none; border: 0; background: var(--mist); width: 46px; height: 46px; border-radius: 10px; font-size: 24px; color: var(--royal); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background-color: var(--royal-deep); background-size: cover; }
/* Slideshow: pictures fade into each other with a slow zoom; the words fade with them */
.hero-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; opacity: 0;
  transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-bg.active { opacity: 1; transform: scale(1); }
.hero-copies { display: grid; }
.hero-copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .9s ease .3s, transform .9s ease .3s, visibility 0s linear 1.2s; }
.hero-copy.active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease .3s, transform .9s ease .3s, visibility 0s; }
.hero .h1-like { color: #fff; font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: width .3s ease, background .3s ease; }
.hero-dots button.active { width: 34px; background: var(--yellow); }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: grid; place-items: center; font-size: 18px; }
.hero-arrow:hover { background: #fff; color: var(--royal); }
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-copy { transition: none; transform: none; } }
.hero::before { z-index: 1; }
.hero::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,14,69,.88) 0%, rgba(8,14,69,.62) 38%, rgba(8,14,69,.08) 72%),
              linear-gradient(0deg, rgba(8,14,69,.55) 0%, rgba(8,14,69,0) 40%); }
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 96px; }
.hero-copy { max-width: 620px; }
.hero .kicker { color: var(--yellow); }
.hero .kicker::before { background: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em; background: var(--red); z-index: -1; border-radius: 4px; }
.hero p { font-size: 19px; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge { position: absolute; right: 32px; bottom: 96px; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); color: var(--royal-deep); border-radius: 999px; padding: 8px 18px 8px 8px; font-family: 'Jost', sans-serif; font-weight: 600; }
.hero-badge img { width: 44px; height: auto; }
.hero-badge small { display: block; font-weight: 500; font-size: 12.5px; color: var(--red); }

/* Page banner (inner pages) */
.page-banner { position: relative; color: #fff; background: var(--royal) center/cover no-repeat; padding: 92px 0 72px; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,69,.9), rgba(20,35,143,.55)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin: 0 0 10px; }
.page-banner p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 640px; margin: 0; }
.crumbs { font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.crumbs a { color: var(--yellow); text-decoration: none; }

/* Quick-link strip under the hero */
.quick-links { position: relative; z-index: 2; margin-top: -54px; }
.quick-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(12,21,99,.12); text-decoration: none; color: var(--ink); height: 100%; transition: .2s ease; border: 1px solid var(--line); }
.quick-card:hover { transform: translateY(-3px); color: var(--ink); }
.quick-card .icon { flex: 0 0 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--mist); color: var(--royal); }
.quick-card.red .icon { background: #FBE9E8; color: var(--red); }
.quick-card.yellow .icon { background: var(--yellow-soft); color: #8A7F0A; }
.quick-card h3 { font-size: 19px; margin: 0 0 2px; }
.quick-card p { margin: 0; font-size: 14.5px; color: var(--slate); line-height: 1.5; }

/* School cards */
.country-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--royal-deep); }
.country-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.school-card { position: relative; display: block; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; min-height: 440px; background: var(--royal-deep); }
.school-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.school-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,14,69,.92) 0%, rgba(8,14,69,.35) 55%, rgba(8,14,69,0) 80%); }
.school-card:hover img { transform: scale(1.05); }
.school-card .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.school-card .country-label { background: rgba(255,255,255,.92); }
.school-card h3 { color: #fff; font-size: 26px; margin: 12px 0 6px; }
.school-card p { color: rgba(255,255,255,.86); font-size: 15px; margin: 0 0 14px; line-height: 1.55; }
.school-card .meta { display: flex; gap: 16px; font-size: 14px; color: var(--yellow); font-weight: 600; }
.school-card .go { position: absolute; top: 20px; right: 20px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; font-size: 20px; transition: .2s ease; }
.school-card:hover .go { background: var(--yellow); color: var(--royal-deep); }

/* Welcome / about */
.photo-stack { position: relative; padding: 0 40px 40px 0; }
.photo-stack .main { border-radius: 20px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-stack .small { position: absolute; right: 0; bottom: 0; width: 46%; border-radius: 16px; border: 6px solid #fff; aspect-ratio: 1; object-fit: cover; }
.photo-stack .since { position: absolute; left: -14px; top: 28px; background: var(--red); color: #fff; border-radius: 16px; padding: 14px 18px; font-family: 'Jost', sans-serif; text-align: center; line-height: 1.1; }
.photo-stack .since strong { display: block; font-size: 30px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 26px; }
.tick-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.tick-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--red); font-size: 20px; }

/* Numbers band */
.numbers { background: var(--royal); color: #fff; border-radius: 22px; padding: 40px 28px; position: relative; overflow: hidden; }
.numbers::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(242,239,122,.12); }
.numbers .num { font-family: 'Jost', sans-serif; font-size: 44px; font-weight: 700; color: var(--yellow); line-height: 1; }
.numbers .label { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 6px; }

/* Cards: news, events, gallery */
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: .2s ease; }
.card-soft:hover { box-shadow: 0 16px 36px rgba(12,21,99,.1); transform: translateY(-2px); }
.card-soft .thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; }
.card-soft .body { padding: 22px; }
.card-soft h3 { font-size: 20px; margin: 8px 0; }
.card-soft h3 a { color: var(--royal-deep); text-decoration: none; }
.card-soft h3 a:hover { color: var(--red); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--royal); }
.tag.red { background: #FBE9E8; color: var(--red-dark); }
.date-line { font-size: 14px; color: var(--slate); }

.event-row { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-date { flex: 0 0 70px; text-align: center; border-radius: 12px; background: var(--royal); color: #fff; padding: 10px 6px; font-family: 'Jost', sans-serif; line-height: 1.05; }
.event-date .d { font-size: 26px; font-weight: 700; display: block; }
.event-date .m { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.event-row h4 { font-size: 18px; margin: 2px 0 4px; }
.event-row p { margin: 0; font-size: 14.5px; color: var(--slate); }

.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-card .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-family: 'Jost', sans-serif; font-weight: 600;
  background: linear-gradient(0deg, rgba(8,14,69,.85), rgba(8,14,69,0)); }
.album-card .cap small { display: block; font-weight: 400; font-size: 13px; color: rgba(255,255,255,.8); }
.photo-grid { columns: 3 280px; column-gap: 16px; }
.photo-grid figure { break-inside: avoid; margin: 0 0 16px; }
.photo-grid img { border-radius: 12px; width: 100%; cursor: zoom-in; }
.photo-grid figcaption { font-size: 14px; color: var(--slate); margin-top: 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,14,69,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 10px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; }

/* Admissions call-to-action band */
.cta-band { position: relative; border-radius: 22px; overflow: hidden; color: #fff; background: var(--red); padding: 56px 48px; }
.cta-band::before { content: ''; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin: 0; }
.cta-band .container-inner { position: relative; }

/* Steps */
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; height: 100%; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--royal); color: var(--yellow); display: grid; place-items: center;
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--slate); font-size: 15px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 16px 40px rgba(12,21,99,.07); }
.form-label { font-weight: 600; font-size: 14.5px; color: var(--royal-deep); margin-bottom: 6px; }
.form-control, .form-select { border-radius: 10px; border-color: #D5D9E8; padding: 11px 14px; font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--royal); box-shadow: 0 0 0 .2rem rgba(20,35,143,.15); }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--red); font-size: 14px; }
.alert-thanks { background: #EAF6EE; border: 1px solid #BFE3CB; color: #18603A; border-radius: 12px; padding: 14px 18px; }

/* Info boxes */
.info-box { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-box:last-child { border-bottom: 0; }
.info-box i { font-size: 22px; color: var(--red); }
.info-box h4 { font-size: 16px; margin: 0 0 2px; }
.info-box p, .info-box a { margin: 0; color: var(--slate); text-decoration: none; }
.side-card { background: var(--mist); border-radius: 18px; padding: 26px; }
.prose p { margin-bottom: 1.1em; }
.prose { font-size: 17px; }

/* Director's message + head teacher */
.director-photo { position: relative; margin: 0; }
.director-photo img { width: 100%; border-radius: 20px; aspect-ratio: 4/5; object-fit: cover; object-position: top; display: block; }
.director-photo::before { content: ''; position: absolute; left: -16px; top: 24px; bottom: -16px; right: 24px; border-radius: 20px; background: var(--yellow-soft); z-index: -1; }
.director-photo figcaption { position: absolute; left: 20px; bottom: 20px; background: var(--royal); color: rgba(255,255,255,.85); border-radius: 14px; padding: 12px 18px; font-size: 14px; }
.director-photo figcaption strong { display: block; color: #fff; font-family: 'Jost', sans-serif; font-size: 18px; }
.director-quote { position: relative; font-family: 'Jost', sans-serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.3; color: var(--royal-deep);
  margin: 6px 0 26px; padding-left: 26px; border-left: 5px solid var(--red); border-radius: 0; }
.director-sign { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.director-sign img { width: 52px; height: auto; }
.director-sign span { color: var(--slate); font-size: 14.5px; line-height: 1.45; }
.director-sign strong { display: block; color: var(--royal-deep); font-family: 'Jost', sans-serif; font-size: 18px; }
.director-sign em { display: block; color: var(--red); font-style: normal; font-size: 13.5px; }
.director-strip { display: flex; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.director-strip img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 120px; border: 4px solid var(--yellow-soft); }
.director-strip blockquote { font-family: 'Jost', sans-serif; font-size: 22px; font-weight: 600; color: var(--royal-deep); margin: 0 0 8px; line-height: 1.35; }
.director-strip p { margin: 0; color: var(--slate); }
.head-teacher { display: flex; gap: 14px; align-items: center; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.head-teacher img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--yellow); }
.head-teacher h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 0 0 2px; }
.head-teacher p { margin: 0; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 18px; color: var(--royal-deep); }
@media (max-width: 575.98px) { .director-strip { flex-direction: column; text-align: center; } }

/* Head teacher's message, FAQ */
.head-message { display: flex; gap: 20px; align-items: flex-start; background: var(--yellow-soft); border-radius: 18px; padding: 24px; }
.head-message img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center 25%; flex: 0 0 110px; border: 4px solid #fff; }
.faq-list .accordion-button { font-family: 'Jost', sans-serif; font-weight: 600; color: var(--royal-deep); font-size: 17px; }
.faq-list .accordion-button:not(.collapsed) { background: var(--mist); color: var(--royal); box-shadow: none; }
.faq-list .accordion-item { border-color: var(--line); }
@media (max-width: 575.98px) { .head-message { flex-direction: column; } }

/* School anthem */
.anthem-player { display: flex; gap: 16px; align-items: flex-start; background: var(--mist); border-radius: 16px; padding: 18px 20px; }
.anthem-player > i { font-size: 30px; color: var(--red); }
.anthem-words { text-align: center; font-family: 'Jost', sans-serif; font-size: 20px; line-height: 1.7; color: var(--royal-deep); }
.anthem-verse { margin-bottom: 28px; display: flex; flex-direction: column; }
.anthem-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.anthem-placeholder { text-align: center; background: var(--yellow-soft); border-radius: 18px; padding: 40px 24px; }
.anthem-placeholder img { width: 72px; height: auto; margin-bottom: 12px; }

/* Fees, what to bring, results */
.fee-block { margin: 26px 0; }
.fee-table-wrap { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.fee-table th, .fee-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fee-table thead th { background: var(--royal); color: #fff; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 14px; }
.fee-table thead th:first-child { border-top-left-radius: 13px; }
.fee-table thead th:last-child { border-top-right-radius: 13px; }
.fee-table tbody th { text-align: left; color: var(--royal-deep); font-family: 'Jost', sans-serif; }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table td.tot, .fee-table th.tot { font-weight: 700; color: var(--royal-deep); background: var(--yellow-soft); }
.fee-table thead th.tot { background: var(--red); color: #fff; }
.fee-note { margin-top: 10px; color: var(--slate); font-size: 14.5px; }
.fee-ask { background: var(--mist); border-radius: 14px; padding: 18px 20px; }
.bring-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; height: 100%; }
.bring-item i { font-size: 22px; color: var(--red); }
.bring-item strong { display: block; color: var(--royal-deep); }
.bring-item small { display: block; color: var(--slate); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; height: 100%; }
.result-card h3 { font-size: 21px; margin: 6px 0 14px; }
.result-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.result-figures div { background: var(--mist); border-radius: 12px; padding: 12px; text-align: center; }
.result-figures strong { display: block; font-family: 'Jost', sans-serif; font-size: 24px; color: var(--royal); line-height: 1.1; }
.result-figures span { font-size: 13px; color: var(--slate); }

/* Maps */
.map-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.schools-map { height: 460px; border-radius: 18px; border: 1px solid var(--line); z-index: 0; }
.schools-map .leaflet-popup-content { font-family: 'Open Sans', sans-serif; font-size: 14px; }
.schools-map .leaflet-popup-content strong { font-family: 'Jost', sans-serif; color: var(--royal-deep); font-size: 15px; }
@media (max-width: 575.98px) { .map-frame iframe { height: 280px; } .schools-map { height: 360px; } }

/* Our teachers (school pages) */
.team-photo { margin: 0 0 18px; border-radius: 16px; overflow: hidden; position: relative; }
.team-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.team-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 10px; color: #fff; font-size: 14px;
  background: linear-gradient(0deg, rgba(8,14,69,.8), rgba(8,14,69,0)); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.staff-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.staff-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; display: block; }
.staff-card figcaption { padding: 10px 12px; font-size: 13.5px; line-height: 1.35; color: var(--slate); }
.staff-card figcaption strong { display: block; color: var(--royal-deep); font-family: 'Jost', sans-serif; font-size: 15px; }

/* Downloads */
.doc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); }
.doc-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 4/3; background: var(--mist);
  color: var(--red); text-decoration: none; font-size: 64px; line-height: 1; }
.doc-icon span { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 15px; color: var(--royal); letter-spacing: .08em; }
.doc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.doc-body h3 { font-size: 19px; margin: 0 0 6px; }
.doc-body p { color: var(--slate); font-size: 15px; margin: 0 0 14px; }
.doc-body .btn { margin-top: auto; align-self: flex-start; }
.form-download { display: flex; gap: 14px; align-items: center; background: var(--yellow-soft); border: 1px solid #ECE79A; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.form-download i { font-size: 30px; color: var(--red); }
.form-download strong { display: block; color: var(--royal-deep); }
.form-download small { color: var(--slate); }

/* History timeline (About page): a line down the middle, years in red, cards left and right */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1040px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #D5D9E8; border-radius: 3px; }
.tl-item { position: relative; width: 50%; padding: 0 44px 40px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 40px 44px; }
.tl-year { position: absolute; top: 14px; right: -40px; z-index: 1; width: 80px; text-align: center; font-family: 'Jost', sans-serif; font-weight: 700;
  font-size: 17px; color: #fff; background: var(--red); border-radius: 999px; padding: 5px 0; box-shadow: 0 0 0 5px var(--mist); }
.tl-item:nth-child(even) .tl-year { right: auto; left: -40px; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(12,21,99,.06); }
.tl-card figure { margin: 0; position: relative; }
.tl-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; filter: saturate(.92); }
.tl-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 8px; font-size: 13px; color: #fff;
  background: linear-gradient(0deg, rgba(8,14,69,.8), rgba(8,14,69,0)); }
.tl-body { padding: 18px 22px 20px; }
.tl-body h3 { font-size: 20px; margin: 0 0 6px; }
.tl-body p { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.6; }
.tl-item.no-photo .tl-card { border-top: 4px solid var(--royal); }

/* Footer */
.site-footer { background: var(--royal-deep); color: rgba(255,255,255,.78); padding: 72px 0 0; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .motto { color: var(--yellow); }
.site-footer .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: 6px; font-size: 18px; }
.site-footer .social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding: 20px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.2); text-decoration: none; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

.pagination .page-link { color: var(--royal); border-radius: 8px; margin: 0 3px; }
.pagination .active .page-link { background: var(--royal); border-color: var(--royal); }

/* Phones and tablets */
/* Header: the full school name needs room, so the menu becomes a button below 1200px */
.header-cta { white-space: nowrap; }
.brand { flex-shrink: 0; }
.brand .name { white-space: nowrap; }
.site-footer .brand { flex-shrink: 1; }
.site-footer .brand .name { white-space: normal; }
@media (max-width: 1199.98px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; box-shadow: 0 18px 30px rgba(12,21,99,.1); }
  .main-nav-wrap.open { display: block; }
  .main-nav { flex-direction: column; align-items: stretch; }
  .main-nav .dropdown-list { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .header-cta { margin-left: auto; margin-right: 10px; }
}
@media (max-width: 991.98px) {
  .header-cta { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: 640px; }
  .hero::before { background: linear-gradient(0deg, rgba(8,14,69,.92) 0%, rgba(8,14,69,.55) 55%, rgba(8,14,69,.2) 100%); }
  .hero-badge { display: none; }
  .photo-stack { padding: 0 24px 24px 0; }
  .cta-band { padding: 40px 26px; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 56px; }
  .tl-item .tl-year, .tl-item:nth-child(even) .tl-year { left: 0; right: auto; top: 0; width: 42px; font-size: 13px; padding: 4px 0; }
  .tl-body { padding: 16px 18px; }
}
@media (max-width: 575.98px) {
  .topbar .hide-sm { display: none; }
  .brand img { height: 46px; }
  .brand .name { font-size: 19px; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
  .hero p { font-size: 17px; }
  .school-card { min-height: 380px; }
  .form-card { padding: 22px; }
}
