/* =========================================================
   Girls Cadet College Quetta — website redesign
   Palette: chocolate brown (college theme),
   khaki (cadet uniform), gold accent, warm paper background.
   ========================================================= */
:root {
  --green-950: #1f120b;
  --green-900: #2b1a10;
  --green-800: #3e2618;
  --green-700: #5a3825;
  --green-600: #7b4f33;
  --green-100: #f1e6dc;
  --khaki-700: #7a6a3f;
  --khaki-500: #b59f68;
  --khaki-200: #e8dfc7;
  --gold: #c9a24a;
  --gold-soft: #f3e6c2;
  --paper: #faf7f0;
  --paper-2: #f3eee2;
  --white: #ffffff;
  --ink: #20160f;
  --ink-2: #46362b;
  --muted: #7a6a5e;
  --line: #e2dccd;
  --danger: #b4452f;

  --ayesha: #d6457f;   /* pink */
  --hafsa: #7a3fa8;    /* purple */
  --khadija: #1f5fa8;  /* blue */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(32, 20, 12, .06), 0 8px 24px rgba(32, 20, 12, .08);
  --shadow-lg: 0 20px 50px rgba(31,18,11, .22);
  --wrap: 1200px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.urdu { font-family: var(--font-urdu); direction: rtl; line-height: 2; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--green-950); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Content still to be confirmed by the college */
.tbc { background: repeating-linear-gradient(135deg, rgba(201,162,74,.18) 0 6px, rgba(201,162,74,.08) 6px 12px); border-bottom: 1px dashed var(--gold); padding: 0 3px; border-radius: 3px; cursor: help; }
body.hide-tbc .tbc { background: none; border: 0; padding: 0; }

/* ---------- Buttons, chips ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #d8b45d; color: var(--green-950); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.chip.gold { background: var(--gold-soft); color: var(--khaki-700); }
.chip.red { background: #f7e1dc; color: var(--danger); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki-700); margin-bottom: .8em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); color: #e2d3c6; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #e2d3c6; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar .tb-right a + a { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.15); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); flex-shrink: 0; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-en { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; }
.brand-ur { font-family: var(--font-urdu); font-size: .85rem; color: var(--khaki-700); line-height: 1.9; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; white-space: nowrap; padding: 10px 11px; font-weight: 600; font-size: .93rem; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li:focus-within > a { color: var(--green-800); background: var(--green-100); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--green-800); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.main-nav .caret { width: 14px; height: 14px; opacity: .6; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.dropdown a:hover { background: var(--paper-2); color: var(--green-800); }
.dropdown small { display: block; color: var(--muted); font-size: .78rem; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.govt-logo { width: 46px; height: 46px; object-fit: contain; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-900); margin-left: auto; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: var(--green-950); font-size: .9rem; font-weight: 600; overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; min-height: 42px; }
.ticker-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--green-900); color: var(--gold); padding: 4px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.ticker-label svg { width: 14px; height: 14px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: tick 30s linear infinite; padding-left: 100%; }
.ticker-move a { color: var(--green-950); text-decoration: none; }
.ticker-move a:hover { text-decoration: underline; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--green-900); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,18,11,.92) 0%, rgba(31,18,11,.72) 42%, rgba(31,18,11,.15) 75%), linear-gradient(0deg, rgba(31,18,11,.7), transparent 45%); }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 72px; display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: end; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .hero-ur { font-family: var(--font-urdu); font-size: 1.25rem; color: var(--gold-soft); margin-bottom: 14px; direction: rtl; text-align: left; }
.hero p.lead { color: #eee3d9; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { background: rgba(250,247,240,.97); color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.hero-card h3 { margin-bottom: .3em; }
.hero-card ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.hero-card li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.hero-card li:last-child { border: 0; }
.hero-card li svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .8rem; color: #eee3d9; }
.badge svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,18,11,.95), rgba(31,18,11,.55)); }
.page-hero .wrap { position: relative; z-index: 2; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #e6dacd; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #d3c2b4; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs span { margin: 0 8px; opacity: .6; }

/* ---------- Sub-navigation (in-page) ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 84px; z-index: 40; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex-shrink: 0; padding: 14px 14px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--green-800); border-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--paper-2); }
.section.white { background: #fff; }
.section.dark { background: var(--green-900); color: #e9ddd0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head > div { max-width: 680px; }
.sec-head p { color: var(--muted); margin: 0; }
.section.dark .sec-head p { color: #d3c2b4; }
.center { text-align: center; }
.center .sec-head, .sec-head.center { justify-content: center; text-align: center; }
[id] { scroll-margin-top: 150px; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.split.top { align-items: start; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.icon-box svg { width: 26px; height: 26px; }
.icon-box.gold { background: var(--gold-soft); color: var(--khaki-700); }

.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: -48px; position: relative; z-index: 5; overflow: hidden; }
.quick a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; border-right: 1px solid var(--line); transition: background .15s; }
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--paper); color: var(--green-800); }
.quick svg { width: 30px; height: 30px; color: var(--green-600); }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1; font-weight: 600; }
.stat span { display: block; margin-top: 10px; font-size: .9rem; color: #d8c7b8; letter-spacing: .03em; }

.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.img-frame .tag { position: absolute; left: 16px; bottom: 16px; background: rgba(31,18,11,.85); color: #fff; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.img-stack { position: relative; padding: 0 0 40px 40px; }
.img-stack .img-frame:last-child { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid var(--paper); }
.img-stack .img-frame:last-child img { aspect-ratio: 1; }

.quote { position: relative; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--green-900); font-style: italic; padding-left: 28px; border-left: 3px solid var(--gold); }
.signature { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.signature .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-700); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; }
.signature b { display: block; color: var(--green-900); }
.signature small { color: var(--muted); }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--green-700), var(--green-950)); display: grid; place-items: center; color: var(--gold); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.portrait svg { width: 40%; height: 40%; opacity: .5; }
.portrait .ph-note { position: absolute; bottom: 14px; left: 14px; right: 14px; text-align: center; font-size: .8rem; color: #d8c7b8; }

/* Stages timeline */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.stages::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.stage { position: relative; padding: 0 22px; text-align: center; }
.stage .dot { width: 64px; height: 64px; white-space: nowrap; font-size: 1rem !important; margin: 0 auto 20px; border-radius: 50%; background: var(--green-800); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; position: relative; box-shadow: 0 0 0 8px var(--paper-2); }
.stage h3 { margin-bottom: .1em; }
.stage .chip { margin-bottom: 12px; }
.stage p { color: var(--muted); font-size: .95rem; }

/* Houses */
.house { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.house-top { padding: 30px 26px 24px; color: #fff; position: relative; overflow: hidden; }
.house-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.1); }
.house.ayesha .house-top { background: linear-gradient(135deg, var(--ayesha), #8e2350); }
.house.hafsa .house-top { background: linear-gradient(135deg, var(--hafsa), #47226a); }
.house.khadija .house-top { background: linear-gradient(135deg, var(--khadija), #123a69); }
.house-top h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 0; }
.house-top .shield { width: 54px; height: 54px; }
.house-body { padding: 22px 26px 26px; font-size: .95rem; }
.house-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.house-body dt { color: var(--muted); }
.house-body dd { margin: 0; font-weight: 600; }

/* Notice board & events */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.board-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.board-head h3 svg { width: 22px; height: 22px; color: var(--gold); }
.board-head a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.notice { display: flex; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .15s; }
.notice:last-child { border-bottom: 0; }
.notice:hover { background: var(--paper); }
.date { flex-shrink: 0; width: 58px; text-align: center; border-radius: 10px; background: var(--green-800); color: #fff; padding: 8px 0 6px; line-height: 1; }
.date b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.date small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.notice h4 { margin: 2px 0 4px; font-size: 1rem; color: var(--ink); }
.notice .meta { font-size: .83rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice .meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.empty { padding: 28px 24px; color: var(--muted); font-size: .95rem; }

.event-card { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.event-card img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.event-card .body { padding: 22px 24px; }

/* Mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.mosaic figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--green-800); }
.mosaic figure.big { grid-column: span 2; grid-row: span 2; }
.mosaic figure.wide { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.filters button.active, .filters button:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,8,4,.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Facilities */
.facility { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.facility .icon-box { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
.facility h4 { margin: 0 0 4px; }
.facility p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-800); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--paper); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--green-950); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; display: grid; place-items: center; }
.step h4 { margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* Key dates */
.keydates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.keydate { background: #fff; border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.keydate small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.keydate b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--green-900); margin-top: 6px; font-weight: 600; }

/* Accordion */
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.accordion summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; list-style: none; position: relative; color: var(--green-900); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > div { padding: 0 22px 20px; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row.r3 { grid-template-columns: 1fr 1fr 1fr; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid #d6cfbd; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(123,79,51,.15); }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; background: #fff; }
legend { font-family: var(--font-display); font-size: 1.15rem; color: var(--green-900); padding: 0 8px; font-weight: 600; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-weight: 600; display: none; }
.alert.show { display: block; }
.alert.warn { background: var(--gold-soft); color: var(--khaki-700); display: block; font-weight: 500; }

/* Downloads */
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc .icon-box { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.doc h4 { margin: 0; }
.doc small { color: var(--muted); }
.doc .btn { margin-left: auto; flex-shrink: 0; }

/* Routine timeline */
.routine { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.routine li { list-style: none; position: relative; padding: 0 0 18px 12px; }
.routine li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.routine b { display: inline-block; min-width: 84px; color: var(--green-800); font-variant-numeric: tabular-nums; }
.routine { margin: 0; }

/* People */
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; }
.person .ph { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(160deg, var(--green-100), var(--khaki-200)); display: grid; place-items: center; color: var(--green-700); font-family: var(--font-display); font-size: 1.6rem; }
.person h4 { margin: 0 0 2px; }
.person small { color: var(--muted); display: block; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-950)); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(201,162,74,.12); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #dccbbd; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* Map */
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); filter: saturate(.85); }

/* Portal mock */
.portal-mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.portal-mock .pm-head { background: var(--green-800); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.portal-mock .pm-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--green-950); display: grid; place-items: center; font-weight: 700; }
.portal-mock .pm-body { padding: 20px; display: grid; gap: 12px; }
.pm-bal { background: var(--paper); border-radius: 12px; padding: 16px; }
.pm-bal b { font-family: var(--font-display); font-size: 2rem; color: var(--green-800); font-weight: 600; }
.pm-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pm-row span:last-child { font-weight: 600; }
.pm-row .neg { color: var(--danger); }
.pm-row .pos { color: var(--green-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #d3c2b4; font-size: .93rem; margin-top: 0; }
.site-footer .wrap { padding: 72px 0 24px; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: .95rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d3c2b4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.f-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.f-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 4px; }
.f-brand b { color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; display: block; line-height: 1.2; }
.f-contact li { display: flex; gap: 10px; }
.f-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.iso { display: inline-flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.iso span { border: 1px solid rgba(201,162,74,.5); color: var(--gold); padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; }
.f-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .83rem; color: #a8927f; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 30px; bottom: 90px; z-index: 60; width: 40px; height: 40px; border-radius: 50%; background: var(--green-800); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }

.tbc-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .8rem; cursor: pointer; box-shadow: var(--shadow); }
.tbc-toggle i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); margin-right: 6px; }

body.nav-open .wa-float, body.nav-open .to-top, body.nav-open .tbc-toggle { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ticker-move, .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .govt-logo { display: none; }
  .main-nav > ul > li > a { padding: 10px 8px; font-size: .9rem; }
}
@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .topbar .tb-left .tb-item:nth-child(3) { display: none; }
  .header-cta .btn { display: none; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--paper); box-shadow: var(--shadow-lg); padding: 80px 18px 24px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; z-index: 70; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 12px; font-size: 1rem; }
  .main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; background: transparent; min-width: 0; }
  .dropdown small { display: none; }
  .nav-close { display: grid !important; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; display: none; }
  .nav-scrim.open { display: block; }
}
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .quick a:nth-child(3) { border-right: 0; }
  .quick a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .g4, .keydates { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 40px; }
  .subnav { top: 84px; }
}
.nav-close { display: none; position: absolute; top: 18px; right: 18px; background: none; border: 0; width: 44px; height: 44px; place-items: center; cursor: pointer; color: var(--green-900); }
.nav-close svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .tb-left .tb-item:not(:first-child), .topbar .hide-sm { display: none; }
  .topbar .tb-right a:not(:last-child) { display: none; }
  .topbar .tb-right a + a { border: 0; padding: 0; }
  .site-header .wrap { min-height: 70px; }
  .subnav { top: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand-en { font-size: 1.05rem; }
  .section { padding: 60px 0; }
  .g2, .g3, .g4, .keydates, .form .row, .form .row.r3 { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; gap: 32px; }
  .stages::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .quick a { border-bottom: 1px solid var(--line); }
  .quick a:nth-child(2n) { border-right: 0; }
  .quick a:nth-child(3) { border-right: 1px solid var(--line); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .event-card { grid-template-columns: 1fr; }
  .event-card img { max-height: 200px; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .f-grid { grid-template-columns: 1fr; }
  .img-stack { padding: 0; }
  .img-stack .img-frame:last-child { display: none; }
  .hero .wrap { padding: 80px 0 64px; }
  .hero-card { display: none; }
  .doc { flex-wrap: wrap; }
  .doc .btn { margin-left: 64px; }
}

/* ---------- Print (application form, notices) ---------- */
@media print {
  .topbar, .site-header, .ticker, .site-footer, .wa-float, .to-top, .tbc-toggle, .subnav, .page-hero, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0; }
  fieldset { break-inside: avoid; }
}

/* ---------- Photos placed by the admin editor ---------- */
.portrait > img, .person .ph > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.person .ph { overflow: hidden; }

/* ---------- Admin shortcut (only visible to a logged-in admin) ---------- */
.admin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 61; display: flex; background: var(--green-950); border-radius: 999px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .85rem; }
.admin-pill a { color: #fff; text-decoration: none; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-pill a + a { border-left: 1px solid rgba(255,255,255,.15); color: var(--gold); }
.admin-pill a:hover { background: var(--green-800); color: #fff; }
.admin-pill svg { width: 16px; height: 16px; }
body:has(.admin-pill) .tbc-toggle { bottom: 64px; }

/* =========================================================
   v3 — open, photo-led style: Montserrat, slim header,
   full-screen top, rounded photo cards, sliding strips.
   ========================================================= */
:root {
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --head-h: 84px;
}
body { font-size: 16px; line-height: 1.7; background: #fff; }
h1, h2 { font-weight: 300; letter-spacing: -.02em; }
h3 { font-weight: 600; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; font-weight: 600; color: var(--gold); }
.thin { font-weight: 300; }
h2.big { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.section.alt { background: #f6f3ec; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .02em; }
.btn-white { background: #fff; color: var(--green-900); }
.btn-white:hover { background: var(--gold-soft); color: var(--green-950); }
.card, .board, .facility, .doc, .house, .person, .table-wrap, .event-card { border-radius: var(--radius); }
.img-frame.round, .img-frame { border-radius: var(--radius); }
.quote { font-family: var(--font-body); font-weight: 300; font-style: normal; font-size: 1.4rem; }
.date b { font-family: var(--font-body); }
.stat b, .keydate b, .pm-bal b { font-family: var(--font-body); font-weight: 600; }

/* ---------- Header ---------- */
.topbar, .ticker:not(.hero-news) { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header .wrap { width: min(1360px, 100% - 48px); min-height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.site-header.over-hero:not(.solid) .brand, .site-header.over-hero:not(.solid) .top-nav a, .site-header.over-hero:not(.solid) .menu-btn { color: #fff; }
.site-header.over-hero:not(.solid) .brand-ur { color: var(--gold-soft); }
.site-header.over-hero:not(.solid)::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(15,8,4,.55), transparent); pointer-events: none; z-index: -1; }
.site-header.solid { background: rgba(255,255,255,.97); border-color: var(--line); box-shadow: 0 6px 24px rgba(31,18,11,.06); }
.brand-en { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 68px; height: 68px; transition: width .35s ease, height .35s ease, margin .35s ease, filter .35s ease; }
/* Big crest at the top of the page; shrinks back into the header once you scroll.
   The negative bottom margin lets the big logo hang below the bar without making the header taller. */
.site-header:not(.scrolled) .brand img { width: 128px; height: 128px; margin-bottom: -60px; filter: drop-shadow(0 6px 14px rgba(15,8,4,.35)); }
.top-nav { margin-left: auto; }
.top-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.top-nav a { display: block; padding: 10px 12px; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.top-nav a:hover { color: var(--green-700); background: rgba(90,56,37,.07); }
.site-header.over-hero:not(.solid) .top-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.top-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.head-cta { flex-shrink: 0; }
.menu-btn { display: inline-flex !important; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: var(--green-900); font: 600 .85rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 8px 4px; margin-left: 0; }
.burger { display: inline-grid; gap: 5px; }
.burger i { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.burger i:nth-child(2) { width: 16px; justify-self: end; }
.main-nav, .nav-scrim { display: none !important; }

/* ---------- Full-screen menu ---------- */
.mega { position: fixed; inset: 0; z-index: 120; background: linear-gradient(150deg, var(--green-900), var(--green-950)); color: #e2d3c6; overflow-y: auto; animation: megaIn .25s ease; }
.mega[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-12px); } }
.mega-inner { width: min(1360px, 100% - 48px); padding: 22px 0 40px; min-height: 100%; display: flex; flex-direction: column; }
.mega-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.brand.light { color: #fff; }
.brand.light .brand-ur { color: var(--gold); }
.mega-close { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 10px 18px; cursor: pointer; font: 600 .82rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.mega-close svg { width: 18px; height: 18px; }
.mega-close:hover { background: rgba(255,255,255,.16); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; flex: 1; }
.mega-head { display: block; color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 300; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,162,74,.35); }
.mega-head:hover { color: var(--gold); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 6px 0; color: #cdbcad; text-decoration: none; font-size: .95rem; transition: padding .15s, color .15s; }
.mega-col li a:hover { color: #fff; padding-left: 4px; }
.mega-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mega-quick { display: flex; gap: 10px; flex-wrap: wrap; }
.mega-quick a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; font-size: .85rem; }
.mega-quick a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.mega-contact { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; align-items: center; }
.mega-contact span { display: inline-flex; gap: 8px; align-items: center; }
.mega-contact svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Full-screen top: video or slideshow ---------- */
.hero.full { min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; align-items: center; background: var(--green-950); --shade: .55; }
.hero.full::after { display: none; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 8s ease-out; }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-cap { position: absolute; right: 28px; bottom: 92px; color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .04em; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 6px; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,8,4,calc(var(--shade) + .2)) 0%, rgba(15,8,4,var(--shade)) 45%, rgba(15,8,4,calc(var(--shade) * .3)) 100%), linear-gradient(0deg, rgba(15,8,4,.6), transparent 40%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: block !important; padding: calc(var(--head-h) + 40px) 0 120px !important; }
.hero-copy { max-width: 760px; }
.hero.full h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 300; line-height: 1.05; margin-bottom: .35em; }
.hero.full .lead { font-size: 1.15rem; max-width: 56ch; }
.hero-ur { font-size: 1.3rem; }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 78px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.hero-dots button.on { background: var(--gold); width: 52px; }
.hero-ctrl { position: absolute; z-index: 3; right: 24px; bottom: 78px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font-size: .8rem; }
.hero-news { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: block !important; background: var(--gold); }
.hero-news .wrap { width: min(1360px, 100% - 48px); display: flex !important; align-items: center; gap: 18px; min-height: 52px; padding: 0 !important; grid-template-columns: none; }
.hero-news .ticker-label { background: var(--green-950); color: var(--gold); border-radius: 6px; font-size: .7rem; letter-spacing: .16em; padding: 6px 12px; }
.hero-news .ticker-move a { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ticker-all { flex-shrink: 0; color: var(--green-950); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
body.ge-on .hero.full { height: auto; min-height: 90vh; }

/* ---------- Campus highlights (bento grid) ---------- */
.highlights { display: grid; grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: auto auto; grid-template-areas: "a b c" "d b e"; gap: 22px; }
.hl { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(31,18,11,.08); transition: transform .2s, box-shadow .2s; min-height: 250px; }
.hl:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,18,11,.14); }
.hl-0 { grid-area: b; } .hl-1 { grid-area: a; } .hl-2 { grid-area: d; } .hl-3 { grid-area: c; } .hl-4 { grid-area: e; }
.hl-img { display: block; flex: 1; min-height: 150px; background-size: cover; background-position: center; }
.hl-big .hl-img { min-height: 320px; }
.hl-body { display: block; padding: 16px 52px 18px 18px; position: relative; }
.hl-body small { display: block; font-size: .72rem; color: var(--khaki-700); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 4px; }
.hl-body b { display: block; font-weight: 600; line-height: 1.35; }
.hl-big .hl-body b { font-size: 1.3rem; font-weight: 500; }
.hl-body em { display: block; font-style: normal; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.hl-go { position: absolute; right: 14px; bottom: 16px; width: 30px; height: 30px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--green-700); }
.hl-go svg { width: 16px; height: 16px; }
.hl:hover .hl-go { background: var(--green-700); color: #fff; }

/* ---------- Sliding strips ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.band-counters { background: linear-gradient(120deg, var(--green-800), var(--green-950)); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.band-counters .eyebrow { color: var(--gold); }
.count-item { flex-shrink: 0; width: 230px; padding: 10px 26px; border-left: 1px solid rgba(255,255,255,.14); }
.count-item b { display: block; font-size: 3.2rem; font-weight: 300; line-height: 1; color: #fff; }
.count-item span { display: block; margin-top: 10px; color: var(--gold-soft); font-size: .85rem; letter-spacing: .04em; }

/* ---------- Welcome ---------- */
.welcome { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills a { border: 1px solid var(--green-700); color: var(--green-800); border-radius: 999px; padding: 8px 18px; font-size: .88rem; text-decoration: none; transition: .15s; }
.pills a:hover { background: var(--green-700); color: #fff; }
.welcome-side { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.welcome-side p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.crest-ring { width: 150px; height: 150px; border-radius: 50%; background: var(--green-900); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--gold-soft), 0 10px 26px rgba(31,18,11,.18); }
.crest-ring img { width: 138px; height: 138px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }

/* ---------- Big photo cards rail ---------- */
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - 1360px) / 2)) 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { position: relative; flex: 0 0 min(560px, 82vw); height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--green-800) center / cover no-repeat; scroll-snap-align: start; display: flex; align-items: flex-end; color: #fff; }
.rail-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,8,4,.82), rgba(15,8,4,.05) 60%); }
.rail-card > div { position: relative; padding: 28px; }
.rail-card h3 { color: #fff; font-size: 1.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .2em; }
.rail-card p { color: #efe4d8; margin: 0 0 16px; }
.rail-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; width: min(1360px, 100% - 48px); }
.rail-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--green-800); }
.rail-nav button:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- Boarding chips ---------- */
.house-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 26px; }
.house-chips span { padding: 6px 14px; border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 600; }
.house-chips .ayesha { background: var(--ayesha); }
.house-chips .hafsa { background: var(--hafsa); }
.house-chips .khadija { background: var(--khadija); }

/* ---------- Sports band ---------- */
.band-sports { position: relative; padding: 110px 0 40px; color: #fff; background: var(--green-900) center / cover no-repeat; text-align: center; overflow: hidden; }
.band-sports::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,8,4,.85), rgba(15,8,4,.55)); }
.band-sports .wrap { position: relative; max-width: 760px; }
.band-sports h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.band-sports p { color: #eadfd3; margin-bottom: 26px; }
.marquee.words { position: relative; margin-top: 70px; }
.marquee.words span { flex-shrink: 0; padding: 0 34px; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); letter-spacing: .02em; }
.marquee.words span:nth-child(odd) { color: rgba(201,162,74,.85); -webkit-text-stroke: 0; }

/* ---------- Inner pages ---------- */
.page-hero .wrap { padding: 90px 0 70px; }
.page-hero h1 { font-weight: 300; }
.subnav { top: var(--head-h); }
[id] { scroll-margin-top: calc(var(--head-h) + 70px); }

/* ---------- Editor ---------- */
body.ge-on .site-header { top: 54px; }
body.ge-on .site-header.over-hero { position: absolute; }
body.ge-on .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
body.ge-on .marquee-track [data-clone] { display: none; }

@media (max-width: 1240px) { .top-nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 1040px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: 1fr 1fr; grid-template-areas: "b b" "a c" "d e"; }
  .welcome { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  :root { --head-h: 70px; }
  .head-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .menu-word { display: none; }
  .brand img { width: 56px; height: 56px; }
  .site-header:not(.scrolled) .brand img { width: 88px; height: 88px; margin-bottom: -32px; }
  .site-header .brand { flex-shrink: 1; min-width: 0; gap: 10px; }
  .site-header .menu-btn { flex-shrink: 0; }
  .brand-en { font-size: .98rem; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mega-head { font-size: 1.25rem; }
  .mega-contact { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-inner { padding-bottom: 130px !important; }
  .hero-cap { display: none; }
  .hero-dots { bottom: 70px; }
  .hero-news .wrap { min-height: 46px; }
  .ticker-all { display: none; }
  .highlights { grid-template-columns: 1fr; grid-template-areas: "b" "a" "c" "d" "e"; }
  .hl-big .hl-img { min-height: 220px; }
  .count-item { width: 180px; }
  .count-item b { font-size: 2.5rem; }
  .welcome-side { grid-template-columns: 1fr; justify-items: start; }
  .crest-ring { width: 110px; height: 110px; }
  .crest-ring img { width: 100px; height: 100px; }
  .rail-card { height: 380px; }
  .band-sports { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .hero-slide { transition: opacity .3s; transform: none; } }

/* =========================================================
   v4 — warm chocolate look: cream page instead of plain white,
   soft pattern + glow on sections, cards that stand out.
   ========================================================= */
:root { --cream: #fbf6ef; --cream-2: #f3e8da; --tan: #ead9c4; }
body { background: var(--cream); }
.site-header.solid { background: rgba(251,246,239,.96); }

/* Plain sections: cream with a faint dotted pattern and a soft gold glow. */
.section:not(.alt):not(.dark):not(.white):not(.hl-band) {
  position: relative; isolation: isolate;
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(201,162,74,.13), transparent 65%),
    radial-gradient(800px 360px at 100% 100%, rgba(90,56,37,.08), transparent 65%),
    var(--cream);
}
.section:not(.alt):not(.dark):not(.white):not(.hl-band)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(90,56,37,.16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
/* "Alt" sections: deeper sand colour so the page alternates. */
.section.alt { background: linear-gradient(180deg, var(--cream-2), #efe2d1); }

/* Section headings: gold bar under the eyebrow line. */
.sec-head h2 { position: relative; }
.eyebrow { color: #9a7432; }

/* Cards stand out on cream. */
.card, .board, .facility, .doc, .house, .person, .event-card, .keydate, .table-wrap {
  background: #fff; border-color: rgba(90,56,37,.10); box-shadow: 0 2px 6px rgba(31,18,11,.04), 0 12px 30px rgba(31,18,11,.07);
}
.card, .facility, .doc, .person, .event-card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .facility:hover, .doc:hover, .person:hover, .event-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(31,18,11,.05), 0 18px 40px rgba(31,18,11,.12); }
.board-head { background: linear-gradient(90deg, var(--cream-2), #fff); }
.icon-box { background: linear-gradient(135deg, var(--cream-2), var(--tan)); color: var(--green-700); }
.icon-box.gold { background: linear-gradient(135deg, #f6e7bf, #e9cd86); color: var(--green-900); }

/* Campus highlights: light sand band, white cards lifted with soft shadows. */
.section.hl-band { position: relative; isolation: isolate; padding: 84px 0; }
.section.hl-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(rgba(90,56,37,.10) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(900px 420px at 8% 0%, rgba(201,162,74,.20), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(123,79,51,.10), transparent 60%),
    linear-gradient(180deg, #f6ecdf, #efe2cf);
}
.section.hl-band::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,162,74,.6), transparent); }
.hl { border: 1px solid rgba(90,56,37,.10); box-shadow: 0 2px 6px rgba(31,18,11,.06), 0 16px 36px rgba(31,18,11,.13); }
.hl:hover { box-shadow: 0 4px 10px rgba(31,18,11,.08), 0 24px 50px rgba(31,18,11,.20); border-color: rgba(201,162,74,.55); }
.hl-img { transform: scale(1.05); transition: transform .5s ease; }   /* also trims thin black edges some photos have */
.hl:hover .hl-img { transform: scale(1.09); }
.hl-body { position: relative; z-index: 1; background: #fff; border-top: 3px solid var(--gold); }
.hl-body small { color: #9a7432; }
.hl-go { background: var(--green-700); color: #fff; }
.hl:hover .hl-go { background: var(--gold); color: var(--green-950); }

/* Welcome: pills filled on hover with gold ring. */
.pills a { background: #fff; border-color: rgba(90,56,37,.35); box-shadow: 0 2px 8px rgba(31,18,11,.05); }
.pills a:hover { box-shadow: 0 0 0 3px rgba(201,162,74,.35); }
.rail-nav button { background: #fff; }

/* Wide photo banner (e.g. the boarding houses above the house cards). */
.img-frame.wide { margin-bottom: 32px; }
.img-frame.wide img { aspect-ratio: 21/8; transform: scale(1.06); }  /* the photo has thin black edges: crop them */
@media (max-width: 760px) { .img-frame.wide img { aspect-ratio: 16/10; } }
/* Pinned photo-card rail (site.js): the block stays on screen while the cards slide sideways. */
.rail-wrap.pinned { position: relative; }
.rail-wrap.pinned .rail-pin { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail-wrap.pinned .rail { overflow: visible; scroll-snap-type: none; will-change: transform; }

/* =========================================================
   v5 — 2026-11-18: phone layout fixes, house colours,
   admission age check, undertaking, careers / job form.
   ========================================================= */
/* Phones: never let the page pan sideways. */
html, body { overflow-x: clip; }
/* Two-column page layouts that used inline grid sizes (they stopped the phone layout from stacking). */
.split.news-split { grid-template-columns: 1.6fr 1fr; gap: 40px; }
.split.portrait-split { grid-template-columns: .75fr 1.25fr; }
.side-sticky { position: sticky; top: calc(var(--head-h) + 24px); }
@media (max-width: 1040px) {
  .split.news-split, .split.portrait-split { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
}
@media (max-width: 760px) {
  .sec-head { flex-wrap: wrap; }
  .sec-head .btn { flex-shrink: 0; }
}

/* House colour dot */
.house .swatch { display: inline-block; width: .85em; height: .85em; border-radius: 50%; margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.house.ayesha .swatch { background: var(--ayesha); }
.house.hafsa .swatch { background: var(--hafsa); }
.house.khadija .swatch { background: var(--khadija); }

/* Small helper text under a form label */
.form .hint, .hint-line { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; font-weight: 400; }

/* Age / eligibility result next to the date of birth */
.elig { display: none; margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.45; }
.elig.show { display: flex; gap: 10px; align-items: flex-start; }
.elig b.tag { flex-shrink: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; color: #fff; }
.elig.ok { background: #e3f1e6; color: #1e5a31; }
.elig.ok b.tag { background: #2f7d4f; }
.elig.bad { background: #f7e1dc; color: #8a2a1c; }
.elig.bad b.tag { background: var(--danger, #b3412f); }
.elig.warn { background: var(--gold-soft); color: var(--khaki-700); }
.elig.warn b.tag { background: #9a7432; }

/* Undertaking (English + Urdu) */
.undertaking { background: var(--cream, #fbf6ef); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: .92rem; line-height: 1.7; }
.undertaking h4 { margin: 0 0 6px; font-size: 1rem; letter-spacing: .04em; }
.undertaking p { margin: 0 0 12px; }
.undertaking .ur { direction: rtl; text-align: right; font-family: "Noto Nastaliq Urdu", serif; font-size: 1rem; line-height: 2.3; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.undertaking .ur h4 { font-family: inherit; letter-spacing: 0; }
.agree { display: flex; gap: 10px; font-weight: 600; margin-top: 14px; align-items: flex-start; }
.agree input { width: auto; margin-top: 5px; flex-shrink: 0; }
.agree .ur { font-family: "Noto Nastaliq Urdu", serif; font-weight: 500; display: block; direction: rtl; line-height: 2.2; }

/* Test pattern / vacancies tables */
.table-wrap td.num, .table-wrap th.num { text-align: center; white-space: nowrap; }
.table-wrap tr.total td { font-weight: 700; background: var(--cream-2, #f3e8da); }
.pdf-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Repeating rows in the job form (degrees, jobs) */
.rows-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rows-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 6px 6px; }
.rows-table td { padding: 4px 6px 4px 0; vertical-align: top; }
.rows-table td:first-child { width: 28px; color: var(--muted); padding-top: 14px; }
.rows-table input { margin: 0; }
.exp-block { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.exp-block h5 { margin: 0; font-size: .95rem; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; font-weight: 500; align-items: flex-start; }
.checklist input { width: auto; margin-top: 4px; flex-shrink: 0; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 10px; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.radio-row input { width: auto; margin: 0; }
@media (max-width: 760px) {
  .rows-table thead { display: none; }
  .rows-table, .rows-table tbody, .rows-table tr, .rows-table td { display: block; width: 100%; }
  .rows-table tr { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
  .rows-table td { padding: 3px 0; }
  .rows-table td:first-child { padding-top: 0; font-weight: 700; }
  .rows-table td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; color: var(--muted); }
}

/* Print only the form being submitted (not the whole page) */
@media print {
  body.print-form #main > section:not(.print-me) { display: none !important; }
  body.print-form .print-me .sec-head p, body.print-form .admin-pill { display: none !important; }
  .elig, .undertaking { break-inside: avoid; }
  .exp-block, .rows-table tr { break-inside: avoid; }
}

/* v6 — form section titles inside their white box (they sat on the border line, which looked
   broken on iPhone Safari). float + width:100% takes the legend out of the border. */
fieldset { padding: 24px; }
legend { float: left; width: 100%; padding: 0 0 12px; margin: 0 0 18px; border-bottom: 1px solid var(--line); font-size: 1.2rem; line-height: 1.3; }
legend + * { clear: both; }
@media (max-width: 760px) { fieldset { padding: 18px 16px; } }

/* =========================================================
   v7 — phone polish (2026-11-19): tidy floating buttons, one-line
   header name, equal hero buttons, swipeable highlights, tables as
   cards, 2×2 key dates, aligned timetable, consistent download cards,
   compact footer and cards.
   ========================================================= */
@media (max-width: 760px) {
  /* floating buttons: no "to confirm" pill on phones, smaller WhatsApp + back-to-top */
  .tbc-toggle { display: none !important; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 27px; height: 27px; }
  .to-top { width: 38px; height: 38px; right: 20px; bottom: 74px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

  /* header: school name on one line next to the crest */
  .site-header .brand-text { min-width: 0; }
  .site-header .brand-en { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header .brand-ur { font-size: .82rem; }
  .site-header:not(.scrolled) .brand img { width: 76px; height: 76px; margin-bottom: -26px; }

  /* hero buttons the same width */
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* campus highlights: swipe sideways instead of five tall cards */
  .highlights { display: grid; grid-template-columns: none; grid-template-rows: none; grid-template-areas: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .highlights::-webkit-scrollbar { display: none; }
  .highlights .hl { grid-area: auto !important; scroll-snap-align: start; min-height: 0; }
  .highlights .hl-img, .highlights .hl-big .hl-img { min-height: 190px; flex: none; }
  .highlights .hl-body em { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* photo card rail: first card lines up with the page edge */
  .rail { scroll-padding-inline: 20px; }

  /* key dates 2 × 2 */
  .keydates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .keydate { padding: 16px; }
  .keydate small { font-size: .7rem; letter-spacing: .06em; }
  .keydate b { font-size: 1.15rem; }

  /* cards and icon boxes a little more compact */
  .card { padding: 22px 20px; }
  .icon-box { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; }
  .facility { padding: 18px; gap: 14px; }

  /* download cards: icon left, text right, button under the text */
  .doc { display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: start; padding: 16px; }
  .doc .icon-box { width: 46px; height: 46px; }
  .doc > .btn, .doc > .chip { grid-column: 2; justify-self: start; margin: 8px 0 0 !important; }

  /* odd last number in the stats grid spans the row */
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* footer: contact full width, the two link lists side by side */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .f-grid > :nth-child(1), .f-grid > :nth-child(2) { grid-column: 1 / -1; }
  .f-brand b { font-size: 1.05rem; }
  .f-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* timetable: times in their own column, so long lines don't wrap under the time */
.routine li { display: grid; grid-template-columns: 6.2em 1fr; column-gap: 8px; align-items: baseline; }
.routine li b { min-width: 0; }

/* tables become cards on phones (site.js adds .stack + data-label); .compact tables stay tables */
.table-wrap td.rs-dup { display: none; }
@media (max-width: 760px) {
  .table-wrap:has(table.stack) { border: 0; background: none; box-shadow: none; overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { background: #fff; border: 1px solid rgba(90,56,37,.12); border-radius: 14px; margin-bottom: 12px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(31,18,11,.05); }
  table.stack td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; font-size: .93rem; text-align: left !important; white-space: normal !important; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  table.stack td:first-child { display: block; font-weight: 700; font-size: 1rem; color: var(--green-900); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  table.stack td:first-child::before { display: none; }
  table.stack td:empty, table.stack td.blank { display: none; }
  table.stack td.rs-dup { display: grid; }
  table.stack tr.total { background: var(--cream-2, #f3e8da); }
  table.compact th, table.compact td { padding: 9px 8px; font-size: .84rem; }
  table.compact th { font-size: .72rem; letter-spacing: .02em; }
}
@media (max-width: 760px) {
  table.stack td, table.stack tr:nth-child(n) td { background: transparent; }
  /* first column is just a serial number: hide it, the next cell becomes the card title */
  table.stack.num-first td:first-child { display: none; }
  table.stack.num-first td:nth-child(2) { display: block; font-weight: 700; font-size: 1rem; color: var(--green-900); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  table.stack.num-first td:nth-child(2)::before { display: none; }
}
@media (max-width: 760px) {
  .keydate { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
  .keydate small { display: block; line-height: 1.35; }
  .keydate b { margin-top: 0; }
}
@media (max-width: 760px) {
  table.compact th, table.compact td { padding: 8px 5px; font-size: .8rem; }
  table.compact th:first-child, table.compact td:first-child { padding-left: 10px; }
  table.compact th { font-size: .68rem; letter-spacing: 0; }
  table.compact .num { white-space: normal; }
}

/* =========================================================
   v8 — client changes (2026-11-20): bigger college name, round ISO
   badge, visit/map band, admission download buttons, event pages,
   organogram.
   ========================================================= */
.site-header .brand-en { font-size: 1.42rem; letter-spacing: -.015em; }
.site-header .brand-ur { font-size: .95rem; }
.mega .brand-en { font-size: 1.42rem; }

/* round ISO badge beside the college name (home page) */
.iso-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); flex-shrink: 0; }
.iso-ring { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: inset 0 0 0 3px rgba(201,162,74,.22); display: grid; place-content: center; text-align: center; line-height: 1; background: rgba(255,255,255,.06); transition: transform .2s; }
.iso-ring b { font-size: .98rem; font-weight: 800; letter-spacing: .06em; color: var(--gold); }
.iso-ring small { font-size: .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.iso-label { font-size: .72rem; font-weight: 600; line-height: 1.35; max-width: 120px; opacity: .9; }
.iso-badge:hover .iso-ring { transform: rotate(-8deg) scale(1.04); }
.site-header.over-hero:not(.solid) .iso-badge { color: #fff; }
.site-header.scrolled .iso-ring { width: 46px; height: 46px; }
.site-header.scrolled .iso-ring b { font-size: .82rem; }
.site-header.scrolled .iso-ring small { font-size: .44rem; }
/* the side text only fits on very wide screens; the round badge always shows */
.iso-label { display: none; }
.site-header.has-iso .wrap { width: min(1440px, 100% - 48px); gap: 14px; }
.site-header.has-iso .top-nav a { padding: 10px 9px; }
.site-header.has-iso .iso-ring { width: 50px; height: 50px; }
@media (min-width: 1700px) { .iso-label { display: block; } .site-header.has-iso .wrap { width: min(1600px, 100% - 64px); } }
@media (max-width: 1440px) { .site-header.has-iso .menu-word { display: none; } }
@media (max-width: 1320px) { .site-header.has-iso .top-nav { display: none; } .site-header.has-iso .head-cta { margin-left: auto; } }
@media (max-width: 760px) {
  .site-header .brand-en { font-size: 1rem; }
  .mega .brand-en { font-size: 1.05rem; }
  .iso-ring, .site-header.scrolled .iso-ring { width: 40px; height: 40px; border-width: 1.5px; }
  .iso-ring b, .site-header.scrolled .iso-ring b { font-size: .7rem; }
  .iso-ring small, .site-header.scrolled .iso-ring small { font-size: .38rem; letter-spacing: .06em; }
}
@media (max-width: 760px) {
  /* bigger name: wrap onto two lines instead of being cut off */
  .site-header .brand-en { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
  .site-header .brand-ur { line-height: 1.7; }
  .site-header.has-iso .wrap { gap: 10px; }
  .iso-badge { margin-left: auto; }
  .site-header.has-iso .menu-btn { margin-left: 0; }
}
@media (max-width: 360px) { .site-header .brand-en { font-size: .92rem; } .iso-ring, .site-header.scrolled .iso-ring { width: 34px; height: 34px; } }

/* home: visit us + address + map */
.visit-band { grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.visit-band > div { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.visit-band .actions { margin-top: 22px; }
.visit-band .map { min-height: 340px; position: relative; z-index: 1; filter: none; }
.visit-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: #e9dccf; }
.visit-list li { display: flex; gap: 10px; align-items: flex-start; }
.visit-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.visit-list a { color: #fff; }
@media (max-width: 1040px) { .visit-band { grid-template-columns: 1fr; } .visit-band .map { min-height: 300px; } }

/* admissions: download buttons */
.hero-dl { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-dl small:empty, .pdf-row small:empty { display: none; }
.hero-dl small, .pdf-row small { font-size: .75rem; opacity: .8; font-weight: 500; }
.dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.dl-btn { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--green-700); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, background .15s; }
.dl-btn.alt { background: var(--gold); color: var(--green-950); }
.dl-btn:hover { transform: translateY(-2px); background: var(--green-800); color: #fff; }
.dl-btn.alt:hover { background: #d8b45d; color: var(--green-950); }
.dl-btn svg { width: 34px; height: 34px; flex-shrink: 0; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dl-btn span { display: flex; flex-direction: column; gap: 4px; }
.dl-btn b { font-size: 1.08rem; }
.dl-btn small { font-size: .82rem; opacity: .85; }
a.disabled, a.disabled:hover { opacity: .55; cursor: not-allowed; transform: none; pointer-events: none; }
@media (max-width: 640px) { .dl-pair { grid-template-columns: 1fr; } .hero-dl .btn { flex: 1 1 100%; justify-content: center; } }

/* events: clickable cards + detail page */
a.event-card { color: inherit; }
a.event-card h3 { color: var(--green-900); }
.ev-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--green-700); margin-top: 4px; }
.ev-more svg { width: 16px; height: 16px; transition: transform .2s; }
a.event-card:hover .ev-more svg { transform: translateX(4px); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; color: #eadfd2; font-size: .95rem; }
.ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta svg { width: 16px; height: 16px; color: var(--gold); }
.ev-text { font-size: 1.06rem; line-height: 1.75; margin-bottom: 30px; }
.ev-photos-h { margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; }
.ev-photos-h small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ev-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ev-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: var(--shadow); }
.ev-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ev-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ev-photos figure:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .ev-photos { grid-template-columns: 1fr; } .ev-photos figure, .ev-photos figure:first-child { aspect-ratio: 4 / 3; } }

/* about: organogram */
.organogram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.organogram img { max-width: 100%; height: auto; display: block; margin: 0 auto; cursor: zoom-in; }
.org-empty { padding: 36px 12px; color: var(--muted); }
.org-empty svg { width: 42px; height: 42px; color: var(--khaki-500); }

/* club profiles (campus life) + teacher cards (academics) — 2026-11-20 */
.club-head, .person-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.club-head .icon-box { margin: 0; flex-shrink: 0; }
.club-head h3, .person-row h4 { margin: 0 0 2px; }
.club-head small, .person-row small { color: var(--muted); }
.club h4 { margin: 18px 0 10px; font-size: 1rem; }
.club-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: .93rem; }
.club-dl dt { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.club-dl dd { margin: 0; }
.club-acts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.club-acts li { background: var(--green-100); color: var(--green-800); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 500; }
.club-acts.long { display: grid; gap: 10px; }
.club-acts.long li { background: none; border-radius: 0; padding: 0 0 0 16px; position: relative; font-size: .93rem; color: inherit; }
.club-acts.long li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.person-row .ph { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--green-100), var(--khaki-200)); color: var(--green-700); font-family: var(--font-display); font-size: 1.2rem; overflow: hidden; }
.quals { margin: 0 0 12px; padding-left: 18px; font-size: .93rem; }
.teacher .chip a, .card h3 a { color: inherit; }
@media (max-width: 760px) { .club-profiles, .teacher-list { grid-template-columns: 1fr; } .club-dl { grid-template-columns: 1fr; gap: 2px; } .club-dl dd { margin-bottom: 8px; } }

/* principal page: photo column sticks only on wide screens; on phones it scrolls normally (2026-11-20 fix: it slid over the message) */
.portrait-side { position: sticky; top: calc(var(--head-h) + 36px); align-self: start; }
@media (max-width: 1040px) {
  .portrait-side { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: end; }
  .portrait-side > div { margin-top: 0 !important; }
}
@media (max-width: 560px) {
  .portrait-side { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portrait-side .portrait { width: min(240px, 70vw); }
  .portrait-split article .quote { font-size: 1.12rem; padding-left: 18px; }
}

/* 2026-11-20: quota table, mess menu, tick lists, coach qualifications */
.quota-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.quota-div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.quota-div h4 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.quota-div h4 span { font-size: .75rem; font-weight: 700; color: var(--khaki-700); background: var(--gold-soft); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.quota-div ul { list-style: none; margin: 0; padding: 0; }
.quota-div li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.quota-div li b { color: var(--green-700); }
.menu-table td:first-child { font-weight: 700; color: var(--green-900); white-space: nowrap; }
.menu-table td { font-size: .9rem; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.tick-list.no li::before { content: "✕"; background: #f7e1dc; color: var(--danger); }
.person small.qual { margin-top: 6px; font-size: .78rem; color: var(--khaki-700); font-weight: 600; }

/* v21: map removed for security — visit band is a single column */
.visit-band.no-map { grid-template-columns: 1fr; }
.visit-band.no-map > div { max-width: 820px; }

/* v22: compact download list, ISO pill, lab list */
.dl-list { display: grid; gap: 10px; max-width: 860px; }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.dl-row:hover { border-color: var(--gold); transform: translateY(-1px); }
.dl-row .icon-box { width: 40px; height: 40px; flex: none; }
.dl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-txt b { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.dl-txt small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.dl-go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); }
.dl-go svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .dl-row { padding: 10px 12px; gap: 12px; } .dl-txt small { display: none; } .dl-row .icon-box { width: 34px; height: 34px; } }
.iso-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; backdrop-filter: blur(6px); }
.iso-pill svg { width: 18px; height: 18px; color: var(--gold); }
.iso-pill:hover { background: rgba(255,255,255,.2); }
.lab-dl { grid-template-columns: 140px 1fr; }
@media (max-width: 560px) { .lab-dl { grid-template-columns: 1fr; } .lab-dl dd { margin-bottom: 8px; } }
@media (max-width: 560px) {
  .dl-pair { gap: 10px; }
  .dl-pair .dl-btn { padding: 14px 16px; gap: 12px; border-radius: 16px; }
  .dl-pair .dl-btn b { font-size: 1rem; line-height: 1.3; }
  .dl-pair .dl-btn small { font-size: .8rem; }
}

/* v24: Home button with the word "Home" (icon above the word on phones) */
.home-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; border-radius: 10px; color: var(--green-900); font: 600 .62rem var(--font-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; flex-shrink: 0; }
.home-btn svg { width: 24px; height: 24px; }
.home-btn:hover { background: rgba(90,56,37,.08); }
.site-header.over-hero:not(.solid) .home-btn { color: #fff; }
.site-header.over-hero:not(.solid) .home-btn:hover { background: rgba(255,255,255,.14); }
@media (max-width: 760px) {
  .home-btn { margin-left: auto; flex-direction: column; gap: 1px; padding: 4px 6px; border-radius: 10px; font-size: .62rem; letter-spacing: .04em; }
  .home-btn svg { width: 24px; height: 24px; }
  .site-header .menu-btn { margin-left: 0; }
}
/* keep the header on one line with the Home button: hide the word "Menu" and the top links earlier */
.menu-word { display: none; }
@media (max-width: 1440px) { .top-nav { display: none; } .head-cta { margin-left: auto; } }
@media (min-width: 761px) and (max-width: 1040px) { .head-cta { padding-inline: 14px; } }
@media (min-width: 1441px) { .home-btn { display: none; } }   /* Home is in the top menu there */

/* v26: admissions hero has four download buttons in a 2 x 2 grid */
.hero-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.hero-dl .btn { justify-content: center; text-align: center; }
@media (max-width: 640px) { .hero-dl { grid-template-columns: 1fr; } }
.hero-dl .btn { white-space: normal; min-width: 0; line-height: 1.3; }

/* v27: phone menu = simple list sliding in from the right */
.mdrawer { position: fixed; inset: 0; z-index: 130; }
.mdrawer[hidden] { display: none; }
.md-back { position: absolute; inset: 0; background: rgba(20, 14, 10, .55); animation: mdFade .2s ease; }
.md-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 360px); background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,.35); animation: mdIn .25s ease; }
@keyframes mdIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mdFade { from { opacity: 0; } to { opacity: 1; } }
.md-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.md-top .brand img { width: 44px; height: 44px; }
.md-top .brand-en { font-size: .95rem; color: #fff; }
.md-top .brand-ur { font-size: .9rem; color: var(--gold); }
.md-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; }
.md-close svg { width: 20px; height: 20px; }
.md-list { display: flex; flex-direction: column; padding: 14px 0; }
.md-list a { display: block; padding: 13px 24px; color: #e8ddd2; text-decoration: none; font-size: 1.05rem; font-weight: 500; border-left: 3px solid transparent; }
.md-list a:hover, .md-list a:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.md-list a[aria-current="page"] { color: #fff; font-weight: 700; border-left-color: var(--gold); background: rgba(255,255,255,.05); }
.md-foot { margin-top: auto; padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.md-foot .btn { justify-content: center; }
.md-staff { color: #cdbcad; text-align: center; font-size: .9rem; }
@media (min-width: 761px) { .mdrawer { display: none !important; } }

/* v27: gallery = masonry, every photo shown whole (no cropping) */
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--green-800); }
.masonry img { display: block; width: 100%; height: auto; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } .masonry figcaption { font-size: .78rem; padding: 24px 10px 8px; } }
.md-top .brand { flex: 1; min-width: 0; }
.md-top .brand-text { min-width: 0; }
.md-top .brand-en { white-space: normal; line-height: 1.2; }

/* ===== v28: focused pages + dropdown menus ===== */
/* desktop top menu: shown above 1240px, each group has a dropdown */
@media (min-width: 1241px) {
  .site-header .top-nav, .site-header.has-iso .top-nav { display: block; margin-left: auto; }
  .site-header .home-btn { display: none; }
}
@media (min-width: 1241px) and (max-width: 1599px) {
  .site-header .head-cta { display: none; }                 /* Admissions is in the menu there */
  .site-header .top-nav a { padding: 10px 9px; font-size: .84rem; }
  .site-header .brand-en { font-size: 1.15rem; }
}
.top-nav .has-dd { position: relative; display: flex; align-items: center; }
.top-nav .has-dd > a { padding-right: 2px; }
.dd-btn { display: grid; place-items: center; width: 22px; height: 30px; padding: 0; margin-right: 4px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 6px; }
.dd-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.dd-btn:hover { background: rgba(90,56,37,.08); }
.site-header .top-nav .dd { position: absolute; top: 100%; left: -6px; min-width: 240px; margin: 0; padding: 8px; list-style: none; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(43,26,16,.16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.top-nav .has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }   /* hover bridge */
.top-nav .has-dd:hover .dd, .top-nav .has-dd.open .dd, .top-nav .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.top-nav .has-dd:hover .dd-btn svg, .top-nav .has-dd.open .dd-btn svg { transform: rotate(180deg); }
.site-header .top-nav .dd a, .site-header.over-hero:not(.solid) .top-nav .dd a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink-2); font-size: .9rem; font-weight: 500; box-shadow: none; white-space: nowrap; }
.site-header .top-nav .dd a:hover, .site-header.over-hero:not(.solid) .top-nav .dd a:hover { background: var(--cream, #f6efe6); color: var(--green-800); }
.site-header .top-nav .dd a[aria-current="page"] { color: var(--green-800); font-weight: 700; background: rgba(201,162,74,.14); border-radius: 9px; box-shadow: none; }
.top-nav .has-dd:last-child .dd { left: auto; right: 0; }
.site-header.over-hero:not(.solid) .dd-btn:hover { background: rgba(255,255,255,.14); }

/* full-screen menu: six groups */
@media (min-width: 1241px) { .mega-grid { grid-template-columns: repeat(6, 1fr); } }

/* phone / tablet menu (up to 1240px): groups open to show their pages */
@media (min-width: 761px) { .mdrawer { display: block !important; } .mdrawer[hidden] { display: none !important; } }
@media (min-width: 1241px) { .mdrawer, .mdrawer[hidden] { display: none !important; } }
.md-list { padding: 10px 0; }
.md-list .md-link, .md-row .md-link { display: block; flex: 1; padding: 13px 24px; color: #e8ddd2; text-decoration: none; font-size: 1.05rem; font-weight: 500; border-left: 3px solid transparent; }
.md-list > .md-link[aria-current="page"], .md-row .md-link[aria-current] { color: #fff; font-weight: 700; border-left-color: var(--gold); background: rgba(255,255,255,.05); }
.md-row { display: flex; align-items: stretch; }
.md-tog { flex: none; width: 54px; border: 0; border-left: 1px solid rgba(255,255,255,.08); background: none; color: #cdbcad; cursor: pointer; display: grid; place-items: center; }
.md-tog svg { width: 18px; height: 18px; transition: transform .2s; }
.md-group.open .md-tog svg { transform: rotate(180deg); color: var(--gold); }
.md-sub { display: none; padding: 2px 0 10px; background: rgba(0,0,0,.14); }
.md-group.open .md-sub { display: block; }
.md-list .md-sub a { display: block; padding: 10px 24px 10px 40px; color: #cdbcad; font-size: .95rem; font-weight: 500; border-left: 3px solid transparent; text-decoration: none; }
.md-list .md-sub a:hover { color: #fff; }
.md-list .md-sub a[aria-current="page"] { color: var(--gold); font-weight: 700; border-left-color: var(--gold); }
.md-list a:hover { background: rgba(255,255,255,.06); }
@media (max-width: 1240px) { .site-header .top-nav { display: none; } .site-header .home-btn { display: inline-flex; margin-left: auto; } .site-header .head-cta ~ .home-btn { margin-left: 12px; } }

/* "More in …" links at the end of each sub-page */
.more-in { border-top: 1px solid var(--line); }
.more-h { font-size: 1.15rem; font-weight: 600; margin: 0 0 16px; }
.more-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.more-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s, box-shadow .15s; }
.more-links a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,26,16,.08); }
.more-links svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* v29: key date "will be announced" text is smaller so it fits the card */
.keydate b.kd-tba { font-size: 1.05rem; line-height: 1.35; }

/* v30: Faculty (name + expertise) and Departments (name + HOD + details) */
.fac-grid { gap: 14px; }
.fac-card { padding: 18px 20px; border-top: 3px solid var(--gold); }
.fac-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.fac-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.dept-card { display: flex; flex-direction: column; gap: 12px; }
.dept-head { display: flex; gap: 14px; align-items: center; }
.dept-head h3 { margin: 0; }
.dept-head .hod { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.dept-head .hod b { color: var(--ink); }
.dept-head .icon-box .ur { font-size: 1rem; font-weight: 600; }
.dept-card > p { margin: 0; color: var(--ink-2); }
@media (max-width: 1000px) { .fac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .dept-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .fac-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .fac-card { padding: 14px; } .fac-card h3 { font-size: .95rem; } .fac-card p { font-size: .84rem; } }
