/* St. Joseph's School, Kompally
   Layout modelled on a clean clinic site: pale sky page, white rounded cards,
   navy pill buttons, one big rounded photo up top, floating contact buttons.
   Tokens:
   --sky   page background     --navy  headings, buttons
   --ink   body text           --mist  tinted panels
   --line  card borders        --tbc   amber for [bracketed] facts the school must supply */
:root {
  --sky: #F0F8FF; --navy: #0A2343; --navy2: #1A2940; --ink: #4E5763; --mist: #D9EEFB;
  --white: #fff; --line: #DCE7F2; --gold: #F5B301; --tbc-bg: #FFF4CC; --tbc: #7A5A00;
  --r: 28px; --r-sm: 16px; --shadow: 0 10px 30px rgba(10, 35, 67, .07);
  --w: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.tbc { background: var(--tbc-bg); color: var(--tbc); border-radius: 6px; padding: 0 .3em; font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 30px; z-index: 99; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid #3B82F6; outline-offset: 3px; }

/* Preview banner */
.preview { background: var(--navy); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(240, 248, 255, .86); backdrop-filter: blur(12px); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; line-height: 1.15; }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo small { display: block; font-weight: 400; font-size: 12px; color: var(--ink); }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--navy2); padding: 12px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px; background: var(--navy); transition: right .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 100px; background: var(--navy); color: #fff; font: 600 14px Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: #12345f; transform: translateY(-2px); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 0; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 8px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hdr .btn { display: none; }
}

/* Hero: one big rounded photo that settles into its frame as you scroll */
.hero { padding: 8px 0 0; }
.stage { position: relative; height: min(78vh, 720px); border-radius: var(--r); overflow: hidden; transform-origin: 50% 0; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s, transform 6s linear; }
.stage img.on { opacity: 1; transform: scale(1); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 35, 67, 0) 35%, rgba(10, 35, 67, .78)); }
.stage .cap { position: absolute; z-index: 2; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 5vw, 56px); color: #fff; }
.stage h1 { color: #fff; max-width: 15ch; }
.stage p { max-width: 46ch; font-size: 17px; opacity: .92; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 13px; color: #fff; margin-bottom: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.photo-note { position: absolute; z-index: 2; top: 16px; right: 16px; font-size: 12px; color: #fff; background: rgba(10, 35, 67, .55); padding: 4px 12px; border-radius: 100px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-row .btn.ghost { background: rgba(255, 255, 255, .95); border: 0; }

/* Reels row: three tall cards, like the clinic's short videos */
.reels { display: flex; justify-content: center; gap: 16px; margin: 28px auto 0; }
.reel { position: relative; flex: 0 1 150px; min-width: 0; margin: 0; aspect-ratio: 9 / 13; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.reel:hover img { transform: scale(1.06); }
.reel span { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.reel::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.reel span { z-index: 1; }

/* Feature card */
.feature { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); max-width: 720px; margin: 28px auto 0; }
.feature img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-sm); }
.feature h2 { font-size: 22px; }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r); padding: 20px 28px; margin-top: 28px; box-shadow: var(--shadow); }
.stat { display: flex; align-items: center; gap: 14px; padding: 6px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; color: var(--navy); flex: none; }
.stat b { display: block; font-size: 24px; color: var(--navy); line-height: 1.1; }
.stat small { font-size: 13px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; padding: 12px 20px; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } .stat { padding: 12px 0; } }

/* Sections */
.sec { padding: clamp(56px, 8vw, 96px) 0 0; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy2); margin-bottom: 12px; }
.eyebrow img { width: 20px; height: 20px; object-fit: contain; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.panel { background: var(--mist); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }

/* Programme cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--r-sm); padding: 14px 14px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s; }
.card:hover { transform: translateY(-6px); }
.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.card h3 { margin-bottom: 4px; }
.card p { font-size: 14px; flex: 1; }
.card .btn { align-self: flex-start; min-height: 40px; font-size: 13px; padding: 0 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Pill list, like the clinic's procedure list */
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; background: #fff; border-radius: 14px; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; transition: background .2s, transform .2s; }
.pill:hover { background: var(--navy); color: #fff; transform: translateX(4px); }
.pill::after { content: "\2192"; font-weight: 400; }
@media (max-width: 800px) { .pills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pills { grid-template-columns: 1fr; } }
.book-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-size: 14px; }
.book-line .tag { background: var(--navy); color: #fff; border-radius: 100px; padding: 2px 12px; font-weight: 600; }
.book-line a { font-weight: 600; color: var(--navy); }

/* Photo strip: scrolls sideways on its own, pauses on hover */
.strip { overflow-x: auto; margin-top: clamp(40px, 6vw, 72px); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 16px; width: max-content; }
.js .strip { overflow: hidden; }
.js .strip-track { animation: slide 50s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip figure { margin: 0; width: 280px; height: 340px; border-radius: 22px; overflow: hidden; position: relative; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* People */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.person { width: 240px; background: #fff; border-radius: 22px; padding: 10px 10px 16px; box-shadow: var(--shadow); }
.person .ph { position: relative; aspect-ratio: 1 / 1.05; border-radius: 16px; overflow: hidden; background: var(--mist); display: grid; place-items: center; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person .ph .badge { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 100px; font-size: 12px; font-weight: 600; padding: 2px 10px; color: var(--navy); }
.person h3 { margin: 12px 6px 2px; font-size: 16px; }
.person p { margin: 0 6px; font-size: 13px; color: #C0392B; }
.person .ph .silhouette { width: 70%; height: auto; object-fit: contain; }

/* Results row */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result { background: #fff; border-radius: 22px; padding: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; box-shadow: var(--shadow); }
.result img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.result b { display: block; font-size: 28px; color: var(--navy); line-height: 1; }
.result small { display: block; font-size: 13px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* Voices, two rows sliding opposite ways */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.badges span { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--navy); }
.voices { overflow-x: auto; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.voices-track { display: flex; gap: 16px; width: max-content; padding: 6px 0; }
.js .voices { overflow: hidden; }
.js .voices-track { animation: slide 70s linear infinite; }
.voices-track.rev { animation-direction: reverse; margin-top: 16px; }
.voices:hover .voices-track { animation-play-state: paused; }
.voice { width: 330px; background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); flex: none; }
.voice header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.voice img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.voice b { display: block; color: var(--navy); font-size: 14px; }
.voice small { font-size: 12px; }
.voice p { font-size: 14px; margin: 0; }

/* Enquiry band */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--navy); color: #cfe0f5; border-radius: var(--r); padding: clamp(24px, 5vw, 56px); }
.band h2 { color: #fff; }
.band .btn { background: #fff; color: var(--navy); }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form select, .form textarea { min-height: 48px; border-radius: 14px; border: 1px solid var(--line); padding: 10px 14px; font: inherit; color: var(--navy); background: #fff; width: 100%; }
.form textarea { min-height: 96px; }
.form .note { font-size: 13px; }
.form .msg { display: none; padding: 12px 16px; border-radius: 14px; background: #E7F7EE; color: #1E6B4B; font-size: 14px; }
.form .msg.show { display: block; }
.band .form label { color: #fff; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }

/* Inner page header */
.page-hero { padding: 40px 0 0; }
.page-hero .panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: #fff; box-shadow: var(--shadow); }
.page-hero img { width: 100%; height: 300px; object-fit: cover; border-radius: 20px; }
.crumbs { font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--ink); }
@media (max-width: 800px) { .page-hero .panel { grid-template-columns: 1fr; } .page-hero img { height: 220px; } }

/* Timeline of the eight schools */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tl { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.tl img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.tl div { padding: 12px 14px 16px; }
.tl b { color: var(--navy); font-size: 22px; display: block; }
.tl small { display: block; font-size: 13px; }
.tl.new { outline: 2px dashed var(--navy); background: var(--mist); }
.tl.new .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--navy); font-weight: 600; background: #fff; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* Steps, FAQ, info */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: 14px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; color: var(--navy); list-style: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 15px; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info > div { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.info h3 { font-size: 16px; }
.info p { margin: 0; font-size: 15px; }
@media (max-width: 800px) { .info { grid-template-columns: 1fr; } }
.map { height: 360px; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.quote { font-size: clamp(20px, 2.4vw, 26px); color: var(--navy); font-weight: 500; line-height: 1.4; }
.list { padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { background: #fff; border-radius: 14px; padding: 12px 16px; display: flex; gap: 10px; }
.list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; margin-top: 9px; }

/* Footer, like the clinic's tinted footer card */
.foot { margin-top: clamp(56px, 8vw, 96px); padding-bottom: 24px; }
.foot .panel { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 17px; font-weight: 500; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.foot ul a { display: inline-block; padding: 6px 0; }
.foot p { font-size: 14px; }
.foot .bottom { grid-column: 1 / -1; border-top: 1px solid rgba(10, 35, 67, .15); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
@media (max-width: 860px) { .foot .panel { grid-template-columns: 1fr; } }

/* Floating contact buttons */
.float { position: fixed; right: 16px; bottom: 20px; z-index: 50; display: grid; gap: 10px; }
.float a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s; }
.float a:hover { transform: scale(1.1); }
.float svg { width: 22px; height: 22px; }
.f-call { background: #3B82F6; }
.f-wa { background: #25D366; }
.f-mail { background: var(--navy); }

/* Reveal on scroll (only once JS has added .js) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .stage img { transform: none; }
}
.result strong, .tl strong { display: block; color: var(--navy); font-size: 15px; }

/* Inner pages */
.src { font-size: 13px; color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin: 0 0 8px; }
.meta span { background: var(--sky); border-radius: 100px; padding: 2px 10px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 600 14px Inter, sans-serif; cursor: pointer; }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-tags].hide { display: none; }
.ccards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ccard { display: grid; grid-template-columns: 180px 1fr; gap: 18px; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.ccard img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 14px; }
.ccard details summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.ccard details p { font-size: 14px; }
@media (max-width: 900px) { .ccards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ccard { grid-template-columns: 1fr; } .ccard img { height: 170px; } }
.day { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.day li { background: #fff; border-radius: 20px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.day b { display: block; font-size: 26px; color: var(--navy); }
@media (max-width: 800px) { .day { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; max-width: calc(100% - 20px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.swatches div { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.swatches i { display: block; height: 48px; border-radius: 10px; margin-bottom: 8px; }
.swatches b { display: block; color: var(--navy); }
.swatches small { font-size: 13px; }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.medals { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.medal { background: #fff; border-radius: 20px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow); }
.medal i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 22px; color: #fff; }
.medal.gold i { background: linear-gradient(135deg, #F7D774, #C99A1E); }
.medal.silver i { background: linear-gradient(135deg, #E3E8EF, #9AA5B4); }
.medal.bronze i { background: linear-gradient(135deg, #E7A774, #A8642E); }
.medal b { display: block; color: var(--navy); font-size: 14px; }
.medal small { font-size: 12px; }
@media (max-width: 1000px) { .medals { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .medals { grid-template-columns: repeat(2, 1fr); } }
.schools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.school { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.school img, .school .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.school .ph { display: grid; place-items: center; background: var(--mist); color: var(--navy); font-weight: 600; text-align: center; padding: 12px; }
.school > div { padding: 16px 18px 20px; }
.school .yr { font-size: 13px; font-weight: 600; color: #C0392B; }
.school p { font-size: 14px; }
.school.new { outline: 2px dashed var(--navy); }
@media (max-width: 900px) { .schools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .schools { grid-template-columns: 1fr; } }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quotes .voice { width: auto; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.upcoming article { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.upcoming time { display: block; margin-bottom: 10px; font-weight: 600; }
.upcoming p { font-size: 14px; margin: 0; }
@media (max-width: 860px) { .upcoming { grid-template-columns: 1fr; } }
.cal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.cal li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; }
.cal span { background: var(--navy); color: #fff; border-radius: 12px; text-align: center; font-weight: 600; font-size: 13px; padding: 8px 4px; }
.cal b { display: block; color: var(--navy); font-size: 15px; }
.cal small { font-size: 13px; }
@media (max-width: 760px) { .cal { grid-template-columns: 1fr; } }
.post-card { text-decoration: none; }
.post-card h3 { flex: 1; }
.post-card .more { font-weight: 600; color: var(--navy); font-size: 14px; }
.posts { display: grid; gap: 24px; max-width: 900px; }
.post { display: grid; grid-template-columns: 240px 1fr; gap: 24px; background: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.post img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.post h2 { font-size: 24px; }
.post .back { font-size: 14px; font-weight: 600; color: var(--navy); display: inline-block; padding: 10px 0; }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } }

/* Eight nav links need the menu button earlier than the first build did */
@media (max-width: 1180px) and (min-width: 1081px) { .nav { gap: 18px; } .nav a { font-size: 13px; } }
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 0; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 8px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border: 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hdr .btn { display: none; }
}

/* Privacy page and the note under each form */
.prose { max-width: 760px; background: #fff; border-radius: var(--r); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.prose h2 { font-size: 20px; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.form .note a { font-weight: 600; }
.band .note, .band .note a { color: #cfe0f5; }

/* Spam trap field, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg.fail a { font-weight: 600; text-decoration: underline; }
.form .msg.fail { background: #FDECEA; color: #8A1C12; }
