:root {
  --brand: #0f4c5c;
  --brand-dark: #0a3540;
  --accent: #e36414;
  --accent-soft: #fbe3d2;
  --gold: #f2b134;
  --ink: #1d2730;
  --muted: #5b6770;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 76, 92, 0.08);
  --max: 1180px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; color: var(--brand-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c9550f; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* Top bar + header */
.topbar { background: var(--brand-dark); color: #d7e6ea; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .badge { background: var(--gold); color: var(--brand-dark); padding: 2px 10px; border-radius: 999px; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-dark); }
.logo-mark { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.logo-text strong { display: block; font-family: "Playfair Display", serif; font-size: 1.15rem; line-height: 1.1; }
.logo-text small { color: var(--muted); font-size: .75rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a:not(.btn) { display: block; padding: 10px 14px; color: var(--brand-dark); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav .has-sub > a::after { content: " ▾"; font-size: .7em; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--brand-dark); }

/* Hero */
.hero { position: relative; color: #fff; background:
  radial-gradient(circle at 85% 20%, rgba(242,177,52,.35), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(227,100,20,.35), transparent 45%),
  linear-gradient(135deg, var(--brand-dark), var(--brand)); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding: 100px 0 70px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; max-width: 620px; color: #dbeaee; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 2rem; font-family: "Playfair Display", serif; color: var(--gold); }
.stat span { font-size: .9rem; color: #dbeaee; }

.page-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 70px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #d7e6ea; max-width: 680px; margin: 0; }
.crumbs { font-size: .85rem; color: #a9c6cd; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card a.more { font-weight: 600; text-decoration: none; color: var(--accent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.tag-list li { background: var(--accent-soft); color: #9a3f08; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.visual { aspect-ratio: 4/3; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--accent)); position: relative; overflow: hidden; box-shadow: var(--shadow); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 4rem; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.award { text-align: center; padding: 24px 18px; }
.award .medal { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #f7d27b); display: grid; place-items: center; font-size: 1.8rem; }
.award h3 { font-size: 1rem; font-family: inherit; }
.award p { font-size: .85rem; color: var(--muted); margin: 0; }

.feature { display: flex; gap: 18px; }
.feature .num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--bg-alt); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 10px 12px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.placeholder-tile { display: grid; place-items: center; color: #fff; font-size: 2.4rem; background: linear-gradient(135deg, var(--brand), #2c7a7b); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit; }
.filters button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 100; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* News & events */
.news-card .date { font-size: .8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.event { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event .cal { flex: none; width: 64px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.event .cal span { display: block; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 0; }
.event .cal strong { display: block; font-size: 1.5rem; padding: 4px 0; color: var(--brand-dark); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfd8dd; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .radio-group { display: flex; gap: 18px; font-weight: 400; }
.form .radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.form .radio-group input { width: auto; }
.req { color: var(--accent); }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 500; display: none; }
.alert.show { display: block; }
.alert.ok { background: #e3f6ec; color: #17633b; }
.alert.err { background: #fde8e8; color: #9b1c1c; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

table.doc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.doc-table th, .doc-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc-table th { background: var(--brand); color: #fff; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--accent), #f08a3e); color: #fff; border-radius: 22px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #fff3ea; }

/* Footer */
.site-footer { background: #0b2a33; color: #b9cdd2; padding: 64px 0 0; margin-top: 0; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: inherit; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #b9cdd2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

.float-enquire { position: fixed; right: 18px; bottom: 18px; z-index: 40; box-shadow: 0 10px 24px rgba(227,100,20,.4); }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); background: #fff; flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: var(--shadow); }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { color: var(--brand-dark); font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .dropdown a:not(.btn) { color: var(--muted); font-size: .95rem; }
  .nav a.active:not(.btn) { color: var(--accent); }
  .nav > ul { flex-direction: column; }
  .nav .dropdown { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nav .has-sub > a::after { content: ""; }
  .nav .btn { margin-top: 12px; justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .stats, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { padding: 32px 24px; }
  .topbar .hide-sm { display: none; }
}

/* Hero with school photo */
.hero.hero-photo { background:
  linear-gradient(100deg, rgba(10,53,64,.94) 0%, rgba(10,53,64,.82) 45%, rgba(10,53,64,.45) 100%),
  url("/images/school-front.jpg") center / cover no-repeat; }
.hero.hero-photo::after { display: none; }
.campus .stat strong, #infrastructure .stat strong { color: var(--brand-dark); }
#infrastructure .stat { background: var(--bg-alt); border-color: var(--line); }
#infrastructure .stat span { color: var(--muted); }
