@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --ink: #16233f; --ink2: #22345c; --saff: #e7a23a; --saff-l: #f6e3bd; --terra: #b9532b; --green: #2d6a58;
  --cream: #fbf7ee; --paper: #ffffff; --line: #e4dccb; --muted: #566075;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: #1d2433; background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--ink2); }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--saff); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.dim { color: var(--muted); font-size: 15px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }

/* preview + top bar */
.previewbar { background: var(--saff); color: var(--ink); padding: 8px 20px; font-size: 15px; text-align: center; position: sticky; top: 0; z-index: 60; }
.previewbar a { margin-left: 14px; color: var(--ink); font-weight: 600; }
.topbar { background: var(--ink); color: #d9e0f0; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; } .topbar a:hover { text-decoration: underline; color: #fff; }
.topbar i { display: inline-block; width: 1px; height: 12px; background: #5a6a8f; margin: 0 12px; vertical-align: middle; }

/* masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .logo { width: 68px; height: 68px; object-fit: contain; flex: none; }
.brand .ph.logo { display: grid; place-items: center; border: 2px dashed var(--line); font-size: 12px; color: var(--muted); }
.brand b { display: block; font: 600 28px/1.15 var(--serif); letter-spacing: -.01em; }
.brand small { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.pill { background: var(--saff); color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 3px; font-size: 15px; white-space: nowrap; border-bottom: 3px solid #c58718; }
.pill em { font-style: normal; font-weight: 500; opacity: .8; margin-left: 4px; }
.pill:hover { background: #f0b04f; color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; margin: auto; content: ''; }
.burger span::before { position: absolute; top: -6px; left: 0; } .burger span::after { position: absolute; top: 6px; left: 0; }

.mainnav { background: var(--ink2); position: sticky; top: 0; z-index: 50; }
.mainnav .wrap { display: flex; flex-wrap: wrap; }
.mainnav a { color: #fff; text-decoration: none; padding: 13px 18px; font-weight: 500; font-size: 16px; border-bottom: 3px solid transparent; }
.mainnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mainnav a.on { border-bottom-color: var(--saff); background: rgba(255,255,255,.06); }

/* hero */
.hero { position: relative; background: var(--ink); aspect-ratio: 16 / 6.2; overflow: hidden; }
.hero.plain { aspect-ratio: auto; padding: 70px 0; color: #fff; } .hero.plain h1 { color: #fff; font-size: 40px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide > img, .slide > .ph { width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: max(20px, calc((100vw - 1160px) / 2 + 20px)); bottom: 38px; max-width: 520px; background: rgba(22,35,63,.9); color: #fff; padding: 22px 26px; border-left: 5px solid var(--saff); }
.cap h1 { color: #fff; font-size: 30px; margin-bottom: 8px; } .cap p { margin: 0 0 14px; color: #e4e9f5; }
.ctrl { position: absolute; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: rgba(22,35,63,.75); padding: 6px 10px; border-radius: 30px; }
.ctrl button { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; margin: 0 3px; background: #8a97b6; cursor: pointer; font-size: 0; }
.dots button.on { background: var(--saff); }
.btn { display: inline-block; background: var(--saff); color: var(--ink); font: 600 16px var(--sans); padding: 10px 20px; border: 0; border-bottom: 3px solid #c58718; border-radius: 3px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #f0b04f; color: var(--ink); }
.btn.ghost { background: transparent; border: 1.5px solid var(--ink2); color: var(--ink2); margin-top: 6px; }
.btn.ghost:hover { background: var(--ink2); color: #fff; }

/* ticker */
.ticker { background: var(--saff-l); border-bottom: 1px solid #e8cf9b; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker strong { background: var(--terra); color: #fff; padding: 8px 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.track { overflow: hidden; flex: 1; }
.run { display: inline-flex; gap: 48px; white-space: nowrap; padding: 8px 0; animation: run 40s linear infinite; }
.run:hover { animation-play-state: paused; }
.run span { font-size: 15px; } .run a { color: var(--ink); } .run b { color: var(--terra); font-weight: 600; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .run { animation: none; overflow-x: auto; } .slide { transition: none; } }

/* quick tiles */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.q { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--saff); padding: 18px 54px 18px 20px; text-decoration: none; color: var(--ink); }
.q.q2 { border-top-color: var(--green); } .q.q3 { border-top-color: var(--terra); }
.q b { display: block; font: 600 20px var(--serif); } .q span { color: var(--muted); font-size: 15px; }
.q i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; transition: transform .2s; }
.q:hover { background: #fffdf8; color: var(--ink); } .q:hover i { transform: translate(5px, -50%); }

/* sections */
.sec { padding: 56px 20px; }
.sec.wrap { padding-left: 20px; padding-right: 20px; }
.band { background: #f3ecdb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
.sechead { margin-bottom: 22px; }
.sechead span, .pagehead span { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 4px; }
.sechead h2 { font-size: 32px; margin: 0; }
.sechead h2::after { content: ''; display: block; width: 54px; height: 4px; background: var(--saff); margin-top: 10px; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
.split2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.narrow { max-width: 820px; }
.lead { font-size: 19px; max-width: 760px; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; }
.pagehead { background: var(--ink); color: #fff; padding: 38px 0 34px; border-bottom: 5px solid var(--saff); }
.pagehead h1 { color: #fff; font-size: 38px; margin: 0; } .pagehead p { margin: 8px 0 0; color: #cfd8ee; }
.pagehead span { color: var(--saff); }

/* principal */
.principal { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.principal .who { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--saff); flex: none; }
.principal b { display: block; font: 600 19px var(--serif); } .principal span { color: var(--muted); font-size: 15px; }
.msg p { margin: 0 0 .8em; } .msg.clamp { max-height: 7.4em; overflow: hidden; position: relative; }
.msg.clamp::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2.4em; background: linear-gradient(transparent, #fff); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--saff); padding: 22px; }
.card.c1 { border-top-color: var(--green); } .card.c2 { border-top-color: var(--terra); } .card.c3 { border-top-color: var(--ink2); }
.card h3 { font-size: 20px; margin-bottom: 6px; } .card p { margin: 0; color: #3b4457; font-size: 16px; }
.cardimg { margin: -22px -22px 16px; width: calc(100% + 44px); max-width: none; aspect-ratio: 16/9; object-fit: cover; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.mv > div { background: var(--paper); border-left: 4px solid var(--green); padding: 16px 18px; } .mv h3 { font-size: 19px; } .mv p { margin: 0; }

/* notices + admit */
.notices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notices li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notices time { font-size: 14px; color: var(--terra); font-weight: 600; padding-top: 3px; }
.notices p { margin: 4px 0; color: #3b4457; font-size: 16px; } .notices a { font-weight: 600; font-size: 15px; }
.admit { background: var(--ink); color: #e4e9f5; padding: 30px; border-top: 6px solid var(--saff); }
.admit span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--saff); font-weight: 600; }
.admit h3 { color: #fff; font-size: 26px; margin: 6px 0 10px; }
.top { align-items: start; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.gal figure { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 8px; } .gal figure[hidden] { display: none; }
.gbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal img, .gal .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gal figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { border: 1.5px solid var(--ink2); background: #fff; color: var(--ink2); padding: 6px 16px; border-radius: 30px; font: 500 15px var(--sans); cursor: pointer; }
.chips button.on { background: var(--ink2); color: #fff; }
.ph { background: #ece4d0; color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,16,32,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 86vw; } .lightbox img { max-height: 78vh; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; padding-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lightbox .x { top: 8px; right: 10px; } .lightbox .p { left: 8px; top: 45%; } .lightbox .n { right: 8px; top: 45%; }

/* admissions */
.status { display: inline-block; padding: 8px 16px; font-weight: 600; margin-bottom: 18px; background: #e4f1ea; color: #1d4a3c; border-left: 5px solid var(--green); }
.status.closed { background: #f7e1d8; color: #7a2f12; border-left-color: var(--terra); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink2); color: #fff; display: grid; place-items: center; font: 600 17px var(--serif); }
.ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 0 0 10px 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 15px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--ink2); color: #fff; font-weight: 500; font-size: 15px; }
.docs { margin-top: 36px; }

/* forms + map */
.enq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.enq h3, .enq .full { grid-column: 1 / -1; } .enq h3 { margin: 0; }
.enq label { display: block; font-size: 15px; font-weight: 500; }
.enq input, .enq select, .enq textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 400 16px var(--sans); border: 1px solid #c9bfa8; border-radius: 3px; background: #fffefb; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; } .enq p { margin: 0; }
.map { margin-top: 22px; border: 1px solid var(--line); aspect-ratio: 16/10; background: #ece4d0; } .map iframe { width: 100%; height: 100%; border: 0; }
.split2 h3 { font-size: 19px; margin: 18px 0 2px; } .split2 h3:first-child { margin-top: 0; } .split2 p { margin: 0; }

/* footer */
.foot { background: var(--ink); color: #cfd8ee; margin-top: 30px; }
.grid4 { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 34px; padding-top: 44px; padding-bottom: 36px; }
.foot h4 { color: #fff; font-size: 18px; } .foot p { margin: 0 0 .5em; font-size: 15.5px; } .foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; } .foot a { color: #fff; } .foot a:hover { color: var(--saff); } .foot .dim { color: #94a2c4; }
.legal { background: #0f1830; font-size: 14px; color: #94a2c4; } .legal .wrap { padding-top: 12px; padding-bottom: 12px; }

/* responsive */
@media (max-width: 900px) {
  .split, .split2, .cards, .grid4 { grid-template-columns: 1fr 1fr; }
  .split, .split2 { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: 1fr; }
  .brand b { font-size: 22px; } .brand .logo { width: 54px; height: 54px; }
  .pill { display: none; }
  .burger { display: block; }
  .mainnav { display: none; } .mainnav.open { display: block; } .mainnav .wrap { flex-direction: column; padding: 0; }
  .mainnav a { border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 20px; }
  .masthead { position: relative; }
  .hero { aspect-ratio: 4 / 3; }
  .cap { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; padding: 14px 18px; border-left: 0; border-top: 4px solid var(--saff); }
  .cap h1 { font-size: 21px; } .cap p { display: none; }
  .ctrl { bottom: auto; top: 10px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards.two, .grid4, .mv, .enq { grid-template-columns: 1fr; }
  .notices li { grid-template-columns: 1fr; gap: 2px; }
  .sechead h2 { font-size: 26px; } .pagehead h1 { font-size: 30px; }
  .sec { padding-top: 38px; padding-bottom: 38px; }
}
