/* ==========================================================================
   Rashmi College of Physiotherapy — site stylesheet
   Brand: indigo #0d0149 + leaf green #436a0d (shared with RIA), gold accent.
   ========================================================================== */

:root {
  --ink: #0d0149;
  --indigo-800: #170e62;
  --indigo-700: #241a7c;
  --indigo-600: #3a2f9b;
  --indigo-200: #cfcbea;
  --indigo-100: #e9e7f6;
  --indigo-50: #f4f3fb;
  --leaf: #436a0d;
  --leaf-600: #4f7d10;
  --leaf-400: #8dbd3c;
  --leaf-100: #edf4e1;
  --gold: #f5c542;
  --gold-600: #e2ad1c;
  --gold-100: #fdf3d4;
  --text: #1c1f2e;
  --muted: #565b70;
  --line: #e2e2ee;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-warm: #fbfaf5;
  --danger: #b42318;

  --font-display: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-sc: 'Marcellus SC', Georgia, 'Times New Roman', serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 1, 73, .06), 0 2px 8px rgba(13, 1, 73, .05);
  --shadow: 0 6px 24px rgba(13, 1, 73, .09), 0 2px 6px rgba(13, 1, 73, .05);
  --shadow-lg: 0 24px 60px rgba(13, 1, 73, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 56px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-stretch: 108%; color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small { font-size: .85em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.2em; }

/* ---------- Buttons & chips ---------- */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.35em; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--c); font: 600 .95rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { color: var(--c); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13, 1, 73, .18); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn-gold { --b: var(--gold); --c: var(--ink); }
.btn-gold:hover { --b: #ffd255; }
.btn-leaf { --b: var(--leaf); --c: #fff; }
.btn-leaf:hover { --b: var(--leaf-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--indigo-200); }
.btn-ghost:hover { background: var(--indigo-50); color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .86rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--indigo-700); }
.link-arrow:hover { color: var(--leaf); gap: .6em; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: 999px; background: var(--leaf-100); color: var(--leaf); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.chip-indigo { background: var(--indigo-100); color: var(--indigo-700); }
.chip-gold { background: var(--gold-100); color: #7a5a00; }
.badge-new { display: inline-block; background: #d92d20; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: .15em .5em; border-radius: 4px; vertical-align: middle; margin-left: .35em; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d9d6f3; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e8e6fa; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-links, .topbar-contact { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-links li + li, .topbar-contact li + li { margin: 0; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-affil { color: var(--leaf-400); font-family: var(--font-sc); letter-spacing: .04em; font-size: .86rem; }
@media (max-width: 900px) { .topbar-affil, .topbar-links .hide-sm { display: none; } }
@media (max-width: 640px) { .topbar .container { justify-content: center; } .topbar-links { display: none; } .topbar-contact .t-mail { display: none; } }

/* ---------- Masthead ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 60px; width: auto; }
.masthead-meta { display: flex; align-items: center; gap: 14px; }
.affil-badge { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-warm); }
.affil-badge .seal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-100); color: var(--leaf); }
.affil-badge .seal .ic { width: 22px; height: 22px; }
.affil-badge strong { display: block; font: 700 .82rem/1.2 var(--font-display); font-stretch: 105%; color: var(--ink); }
.affil-badge span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--indigo-50); border-color: var(--indigo-200); }
.icon-btn .ic { width: 20px; height: 20px; }
.burger { display: none; }
@media (max-width: 1180px) { .affil-badge.second { display: none; } }
@media (max-width: 1060px) {
  .affil-badge { display: none; }
  .brand img { height: 50px; }
  .burger { display: inline-grid; }
  .masthead { position: sticky; top: 0; box-shadow: var(--shadow-sm); }
  .masthead .container { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 639px) { .brand img { height: 54px; } }
@media (max-width: 520px) { .masthead-meta .btn-apply { display: none; } }

/* ---------- Main navigation (desktop) ---------- */
.mainnav { background: var(--indigo-800); position: sticky; top: 0; z-index: 40; transition: box-shadow .2s; }
.mainnav.is-stuck { box-shadow: 0 10px 30px rgba(13, 1, 73, .25); }
.mainnav .container { display: flex; align-items: center; justify-content: space-between; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: nowrap; }
.menu > li { position: relative; margin: 0; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 5px; height: var(--nav-h); padding: 0 13px;
  color: #ecebfb; font: 600 .89rem/1 var(--font-body); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  position: relative;
}
.menu > li > a::after, .menu > li > button::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu > li:hover > a, .menu > li:hover > button, .menu > li:focus-within > a, .menu > li:focus-within > button { color: #fff; background: rgba(255, 255, 255, .06); }
.menu > li.is-active > a::after, .menu > li.is-active > button::after, .menu > li:hover > a::after, .menu > li:hover > button::after { transform: scaleX(1); }
.menu > li.is-active > a, .menu > li.is-active > button { color: #fff; }
.menu .caret { width: 14px; height: 14px; opacity: .8; transition: transform .2s; }
.menu > li:hover .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.menu > li:last-child .submenu, .menu > li.align-right .submenu { left: auto; right: 0; }
.menu > li:hover > .submenu, .menu > li:focus-within > .submenu, .menu > li.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu li { margin: 0; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.submenu a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-200); flex: none; transition: background .2s; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--indigo-50); color: var(--ink); }
.submenu a:hover::before, .submenu a[aria-current="page"]::before { background: var(--leaf); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-search { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.nav-search:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 1280px) { .menu > li > a, .menu > li > button { padding: 0 9px; font-size: .86rem; } .menu > li > a::after, .menu > li > button::after { left: 9px; right: 9px; } }
@media (max-width: 1180px) { .nav-cta .nav-search { display: none; } .menu > li > a, .menu > li > button { padding: 0 7px; font-size: .83rem; } .menu > li > a::after, .menu > li > button::after { left: 7px; right: 7px; } .mainnav .container { padding: 0 16px; } }
@media (max-width: 1060px) { .mainnav { display: none; } }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 1, 73, .55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 34px; width: auto; }
.drawer-body { overflow-y: auto; padding: 8px 8px 24px; flex: 1; }
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu li { margin: 0; }
.drawer-menu > li { border-bottom: 1px solid var(--line); }
.drawer-menu > li > a, .drawer-menu > li > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 12px; font: 600 1rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.drawer-menu > li.is-active > a, .drawer-menu > li.is-active > button { color: var(--leaf); }
.drawer-menu .caret { width: 18px; height: 18px; transition: transform .25s; }
.drawer-menu button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer-sub { list-style: none; margin: 0; padding: 0 0 10px 12px; display: none; }
.drawer-sub.is-open { display: block; }
.drawer-sub a { display: block; padding: 9px 12px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; font-size: .94rem; }
.drawer-sub a[aria-current="page"] { border-color: var(--leaf); color: var(--leaf); font-weight: 600; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg-soft); }
.drawer-foot a.contact-line { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-size: .92rem; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-track { position: relative; height: clamp(460px, 74vh, 660px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 1, 73, .92) 0%, rgba(13, 1, 73, .78) 38%, rgba(13, 1, 73, .25) 75%, rgba(13, 1, 73, .1) 100%), linear-gradient(0deg, rgba(13, 1, 73, .55), transparent 40%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide-text { max-width: 640px; padding-bottom: 40px; }
.slide .eyebrow { color: var(--leaf-400); }
.slide h1, .slide h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: .35em; }
.slide h1 em, .slide h2 em { font-style: normal; color: var(--gold); }
.slide p { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #e4e2f7; max-width: 560px; }
.slide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.slide .slide-text > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--ease); }
.slide.is-active .slide-text > * { opacity: 1; transform: none; }
.slide.is-active .slide-text > *:nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide-text > *:nth-child(3) { transition-delay: .24s; }
.slide.is-active .slide-text > *:nth-child(4) { transition-delay: .36s; }
.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 92px; }
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 5px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: background .2s, width .3s; }
.hero-dots button[aria-current="true"] { background: var(--gold); width: 54px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(13, 1, 73, .35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero-arrows button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 720px) {
  .slide::after { background: linear-gradient(0deg, rgba(13, 1, 73, .95) 10%, rgba(13, 1, 73, .7) 55%, rgba(13, 1, 73, .35) 100%); }
  .slide-content { align-items: flex-end; }
  .slide-text { padding-bottom: 150px; }
  .hero-arrows { display: none; }
  .hero-controls { bottom: 106px; }
}

/* Quick-link tiles overlapping the hero */
.quicklinks { position: relative; z-index: 6; margin-top: -64px; }
.quicklinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quicklinks li { margin: 0; }
.quicklinks li + li { border-left: 1px solid var(--line); }
.quicklinks a { display: flex; gap: 14px; align-items: center; padding: 22px 22px; text-decoration: none; color: var(--text); height: 100%; transition: background .2s; }
.quicklinks a:hover { background: var(--indigo-50); color: var(--text); }
.quicklinks .qi { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-700); flex: none; transition: background .2s, color .2s; }
.quicklinks a:hover .qi { background: var(--ink); color: var(--gold); }
.quicklinks .qi .ic { width: 24px; height: 24px; }
.quicklinks strong { display: block; font: 700 1rem/1.25 var(--font-display); font-stretch: 105%; color: var(--ink); }
.quicklinks span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@media (max-width: 980px) { .quicklinks ul { grid-template-columns: repeat(2, 1fr); } .quicklinks li:nth-child(3) { border-left: 0; } .quicklinks li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .quicklinks a { padding: 16px 14px; gap: 10px; } .quicklinks .qi { width: 40px; height: 40px; border-radius: 11px; } .quicklinks strong + span { display: none; } .quicklinks strong { font-size: .92rem; } }

/* Notice ticker */
.ticker { margin-top: 28px; }
.ticker-inner { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-warm); }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--leaf); color: #fff; font: 700 .84rem/1 var(--font-display); font-stretch: 105%; letter-spacing: .02em; text-transform: uppercase; }
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; padding-left: 24px; animation: ticker 48s linear infinite; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { color: var(--text); text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track a::before { content: ''; width: 7px; height: 7px; background: var(--gold-600); border-radius: 2px; transform: rotate(45deg); }
.ticker-track a:hover { color: var(--leaf); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; } }
@media (max-width: 520px) { .ticker-label span { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section.soft { background: var(--bg-soft); }
.section.warm { background: var(--bg-warm); }
.section.dark { background: var(--ink); color: #dcd9f4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 .95rem/1.2 var(--font-sc); letter-spacing: .08em; color: var(--leaf); margin-bottom: .8em; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head .lead, .lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); }
.section.dark .lead { color: #c9c5ec; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > *, .grid > *, .home-intro > *, .page-wrap > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Home: about + sidebar */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1024px) { .home-intro { grid-template-columns: 1fr; } }
.intro-media { position: relative; margin: 26px 0 8px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4/3; }
.intro-media .stack { display: grid; gap: 14px; }
.intro-media .stack img { aspect-ratio: auto; height: 100%; min-height: 0; }
.intro-media .tag { position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.intro-media .tag b { font: 800 1.6rem/1 var(--font-display); color: var(--leaf); }
.intro-media .tag span { font-size: .8rem; line-height: 1.3; color: var(--muted); }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; margin: 0; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23436a0d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.feature-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; display: flex; flex-direction: column; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ink), var(--leaf)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .fi { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-700); margin-bottom: 18px; transition: background .3s, color .3s; }
.feature-card:hover .fi { background: var(--ink); color: var(--gold); }
.feature-card .fi .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.feature-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.feature-card .link-arrow { margin-top: 6px; }
.feature-card.leaf .fi { background: var(--leaf-100); color: var(--leaf); }

.img-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.img-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.img-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--indigo-100); }
.img-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.img-card:hover .media img { transform: scale(1.06); }
.img-card .media .ib { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--gold); display: grid; place-items: center; box-shadow: var(--shadow); }
.img-card .media .ib .ic { width: 24px; height: 24px; }
.img-card .body { padding: 34px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.img-card .body .media-less { padding-top: 20px; }
.img-card h3 { font-size: 1.12rem; margin-bottom: .35em; }
.img-card p { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: .8em; }
.img-card .more { font-weight: 600; color: var(--indigo-700); display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.img-card:hover .more { color: var(--leaf); }

/* Programme facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.facts > div { background: #fff; padding: 18px 18px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font: 700 1.05rem/1.3 var(--font-display); font-stretch: 104%; color: var(--ink); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }

.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow); }
.media-frame::before { content: ''; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-radius: var(--radius-lg); background: repeating-linear-gradient(-45deg, var(--leaf-100) 0 6px, transparent 6px 12px); z-index: -1; }
.media-frame .float-card { position: absolute; left: -18px; top: 24px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 250px; }
.media-frame .float-card .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-100); color: #8a6400; display: grid; place-items: center; flex: none; }
.media-frame .float-card strong { display: block; font: 700 .95rem/1.2 var(--font-display); color: var(--ink); }
.media-frame .float-card span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .media-frame .float-card { left: 10px; } }

/* Stat band */
.stats { background: linear-gradient(120deg, var(--ink) 0%, var(--indigo-700) 100%); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(141, 189, 60, .08); }
.stats .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 52px; padding-bottom: 52px; }
.stat { text-align: center; padding: 8px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat b { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); font-stretch: 112%; color: var(--gold); }
.stat span { display: block; margin-top: 8px; font-size: .93rem; color: #d4d0f1; }
@media (max-width: 720px) { .stats .container { grid-template-columns: 1fr 1fr; row-gap: 32px; } .stat:nth-child(3) { border-left: 0; } }

/* Settings / careers icon grid */
.icon-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.icon-tile { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.icon-tile .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-100); color: var(--leaf); flex: none; }
.icon-tile .fi .ic { width: 22px; height: 22px; }
.icon-tile strong { font-size: .95rem; line-height: 1.3; color: var(--ink); font-weight: 600; }
.section.dark .icon-tile { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section.dark .icon-tile strong { color: #fff; }
.section.dark .icon-tile .fi { background: rgba(141, 189, 60, .16); color: var(--leaf-400); }
@media (max-width: 1024px) { .icon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .icon-tiles { grid-template-columns: 1fr; } }

/* Message / quote */
.quote-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.quote-card .qmark { position: absolute; top: -22px; left: 32px; width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 800 2.4rem/1 Georgia, serif; }
.quote-card blockquote { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); }
.quote-card .who { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-100); color: var(--ink); font: 800 1.1rem/1 var(--font-display); flex: none; }
.who strong { display: block; color: var(--ink); font-family: var(--font-display); }
.who span { font-size: .88rem; color: var(--muted); }

/* News & events */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { margin: 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 4px; text-decoration: none; color: var(--text); align-items: start; }
.news-list a:hover { color: var(--leaf); }
.news-list .when { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--indigo-700); background: var(--indigo-50); border-radius: 8px; padding: 6px 8px; text-align: center; min-width: 74px; line-height: 1.2; }
.news-list .what { font-size: .94rem; line-height: 1.45; font-weight: 500; }
.news-list .what small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.event { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event .date { flex: none; width: 66px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.event .date span { display: block; background: var(--leaf); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
.event .date b { display: block; font: 800 1.6rem/1.5 var(--font-display); color: var(--ink); }
.event h4 { margin: 0 0 .2em; }
.event p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Side cards (home + inner pages) */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 22px; }
.side-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: var(--ink); color: #fff; }
.side-card-head h3 { color: #fff; font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.side-card-head h3 .ic { color: var(--gold); }
.side-card-head a { color: var(--gold); font-size: .82rem; font-weight: 600; text-decoration: none; }
.side-card-body { padding: 18px 20px 20px; }
.side-card.leaf .side-card-head { background: var(--leaf); }
.side-card.leaf .side-card-head h3 .ic { color: #fff; }

/* Forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .72em .9em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--indigo-600); box-shadow: 0 0 0 4px rgba(58, 47, 155, .12); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; margin: 0; cursor: pointer; }
.radio-row input { width: auto; accent-color: var(--leaf); }
.form-status { font-size: .9rem; border-radius: 10px; padding: 10px 14px; display: none; }
.form-status.ok { display: block; background: var(--leaf-100); color: #2d4a07; }
.form-status.err { display: block; background: #fdecea; color: var(--danger); }
.consent { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.side-card .form { gap: 12px; }
.side-card .field input, .side-card .field select { padding: .62em .8em; }

/* Gallery strip & gallery page */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-strip a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery-strip a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-strip a:hover img { transform: scale(1.07); }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { border: 1.5px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: .5em 1.05em; font: 600 .88rem/1 var(--font-body); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-grid figure { break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; position: relative; background: var(--indigo-50); cursor: zoom-in; }
.gallery-grid figure.is-hidden { display: none; }
.gallery-grid img { width: 100%; transition: transform .5s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(13, 1, 73, .85), transparent); color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .3s; }
.gallery-grid figure:hover figcaption, .gallery-grid figure:focus-within figcaption { opacity: 1; }
.gallery-grid button { all: unset; display: block; cursor: zoom-in; }
.gallery-grid button:focus-visible { outline: 3px solid var(--gold); }
@media (hover: none) { .gallery-grid figcaption { opacity: 1; } }
.lightbox { position: fixed; inset: 0; background: rgba(8, 2, 40, .94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; margin: 0; padding: 0 60px; font-size: .92rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(141, 189, 60, .35), transparent 60%), radial-gradient(500px 260px at 0% 120%, rgba(245, 197, 66, .22), transparent 60%); z-index: -1; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d7d3f2; margin: 0; max-width: 640px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* Reach us / map */
.reach { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.reach-info { padding: clamp(24px, 4vw, 44px); }
.reach-map { min-height: 380px; background: var(--indigo-50); }
.reach-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; margin: 0; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-700); flex: none; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--leaf); }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.page-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.page-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 1, 73, .95) 0%, rgba(13, 1, 73, .82) 45%, rgba(13, 1, 73, .45) 100%); }
.page-banner::after { content: ''; position: absolute; right: -80px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; border: 46px solid rgba(141, 189, 60, .14); z-index: -1; }
.page-banner .container { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-banner h1 { color: #fff; margin-bottom: .25em; max-width: 820px; }
.page-banner p { color: #d8d5f2; max-width: 680px; margin: 0; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .84rem; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; color: #bdb8e6; }
.breadcrumb li + li::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; margin-right: 4px; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Inner page layout ---------- */
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.page-wrap.full { grid-template-columns: minmax(0, 1fr); }
.page-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 1024px) { .page-wrap { grid-template-columns: minmax(0, 1fr); } .page-aside { position: static; } }
.side-nav { list-style: none; margin: 0; padding: 8px; }
.side-nav li { margin: 0; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .94rem; }
.side-nav a .ic { width: 16px; height: 16px; opacity: .45; transition: transform .2s, opacity .2s; }
.side-nav a:hover { background: var(--indigo-50); color: var(--ink); }
.side-nav a:hover .ic { opacity: 1; transform: translateX(2px); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav a[aria-current="page"] .ic { opacity: 1; color: var(--gold); }
.apply-card { margin-top: 22px; border-radius: var(--radius); padding: 24px; color: #fff; background: linear-gradient(150deg, var(--leaf) 0%, #2f4d07 100%); position: relative; overflow: hidden; }
.apply-card::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .1); }
.apply-card h3 { color: #fff; margin-bottom: .3em; }
.apply-card p { color: #e5f0d2; font-size: .92rem; }
.apply-card .call { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; margin-top: 12px; position: relative; z-index: 1; }

/* ---------- Prose (content typography) ---------- */
.prose { font-size: 1.02rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.8em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--leaf); }
.prose ol li::marker { color: var(--indigo-700); font-weight: 700; }
.prose .lead { margin-bottom: 1.4em; }
.prose img.wide { width: 100%; border-radius: var(--radius); margin: 1.5em 0; aspect-ratio: 16/8; object-fit: cover; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.prose figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title .num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--leaf-100); color: var(--leaf); font: 800 .95rem/1 var(--font-display); flex: none; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--indigo-50); border-left: 4px solid var(--indigo-600); margin: 1.5em 0; }
.callout .ic { color: var(--indigo-600); width: 22px; height: 22px; margin-top: 2px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.leaf { background: var(--leaf-100); border-color: var(--leaf); }
.callout.leaf .ic { color: var(--leaf); }
.callout.gold { background: var(--gold-100); border-color: var(--gold-600); }
.callout.gold .ic { color: #8a6400; }

.key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin: 1.4em 0 1.8em; }
.key { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.key::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--leaf); }
.key .ic { width: 22px; height: 22px; color: var(--leaf); margin-bottom: 8px; }
.key b { display: block; font: 800 1.35rem/1.15 var(--font-display); font-stretch: 106%; color: var(--ink); }
.key span { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.2em 0 1.8em; background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.table-wrap.wide table { min-width: 980px; }
.table-wrap caption { text-align: left; padding: 14px 16px 0; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--indigo-50); color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; position: sticky; top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: #fbfbfe; }
.table-wrap tbody tr:hover td { background: var(--leaf-100); }
.table-wrap tr.total td { background: var(--ink) !important; color: #fff; font-weight: 700; }
.table-wrap td.num, .table-wrap th.num { text-align: center; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-note { font-size: .82rem; color: var(--muted); margin-top: -1em; }

/* Tabs */
.tabs { margin: 1.2em 0 2em; }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--line); }
.tablist button { flex: 1 1 auto; border: 0; background: transparent; padding: .7em 1em; border-radius: 10px; font: 600 .92rem/1.1 var(--font-body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tablist button:hover { color: var(--ink); background: #fff; }
.tablist button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.tabpanel { padding-top: 6px; }
.tabpanel[hidden] { display: none; }

/* Accordion */
.accordion { display: grid; gap: 10px; margin: 1.2em 0 2em; }
.accordion details { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--indigo-600); border-bottom: 2px solid var(--indigo-600); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details[open] summary { background: var(--indigo-50); }
.accordion .acc-body { padding: 4px 18px 16px; }
.accordion .acc-body > :last-child { margin-bottom: 0; }

/* Steps / timeline */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4em 0 2em; display: grid; gap: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 64px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 800 1.05rem/1 var(--font-display); }
.steps > li::after { content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h4 { margin: 8px 0 .3em; }
.steps p { margin: 0; color: var(--muted); }

/* Department chips list */
.subject-list { list-style: none; padding: 0; display: grid; gap: 10px; margin: 1em 0 1.6em; }
.subject-list li { margin: 0; display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.subject-list code { font: 700 .78rem/1 var(--font-body); background: var(--ink); color: #fff; padding: 5px 8px; border-radius: 6px; flex: none; }
.subject-list span { font-weight: 600; color: var(--ink); }
.subject-list small { display: block; color: var(--muted); font-weight: 400; }

.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1em 0 1.6em; }
.pill-cloud li { margin: 0; padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 1.4em 0 2em; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.person .avatar { width: 84px; height: 84px; margin: 0 auto 14px; font-size: 1.5rem; background: linear-gradient(140deg, var(--indigo-100), var(--leaf-100)); }
.person h3 { font-size: 1.08rem; margin-bottom: .15em; }
.person p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0138; color: #b9b4df; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--leaf) 0%, var(--gold) 50%, var(--leaf) 100%); }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; }
.footer-cta p { margin: 4px 0 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); padding-top: 56px; padding-bottom: 44px; }
.footer-main h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; letter-spacing: .02em; position: relative; padding-bottom: 10px; }
.footer-main h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--leaf-400); }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin: 0 0 9px; }
.footer-main a { color: #c9c5ea; text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-main a:hover { color: var(--gold); }
.footer-about img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-about p { font-size: .92rem; line-height: 1.6; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.footer-contact .ic { color: var(--leaf-400); margin-top: 3px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; }
.socials a:hover { background: var(--gold); color: var(--ink); }
.sister { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; text-decoration: none; }
.sister:hover { border-color: var(--leaf-400); }
.sister img { height: 34px; width: auto; }
.sister span { font-size: .78rem; line-height: 1.35; color: #c9c5ea; }
.sister b { display: block; color: #fff; font-size: .86rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom a { color: #c9c5ea; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
@media (max-width: 1024px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }

/* Back to top & floating call */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); border: 2px solid rgba(255, 255, 255, .15); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--ink); }
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13, 1, 73, .08); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font-size: .72rem; font-weight: 600; color: var(--ink); text-decoration: none; }
  .mobile-bar a .ic { width: 20px; height: 20px; color: var(--leaf); }
  .mobile-bar a.primary { background: var(--gold); }
  .mobile-bar a.primary .ic { color: var(--ink); }
  body { padding-bottom: 60px; }
  .to-top { bottom: 76px; }
}

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(13, 1, 73, .6); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.search-overlay.is-open { display: flex; }
.search-box { width: min(680px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); }
.search-input-row .ic { color: var(--muted); width: 22px; height: 22px; }
.search-input-row input { flex: 1; border: 0; font: 500 1.1rem/1.4 var(--font-body); padding: 12px 0; outline: none; color: var(--text); min-width: 0; }
.search-results { max-height: 56vh; overflow-y: auto; list-style: none; margin: 0; padding: 8px; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a:focus { background: var(--indigo-50); outline: none; }
.search-results b { display: block; color: var(--ink); font-family: var(--font-display); }
.search-results small { color: var(--muted); font-size: .85rem; display: block; margin-top: 2px; }
.search-results small mark { background: var(--gold-100); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-empty { padding: 22px; color: var(--muted); text-align: center; font-size: .94rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Utilities */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.flex-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.divider-leaf { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.4rem 0; }

@media print {
  .topbar, .mainnav, .masthead-meta, .drawer, .drawer-backdrop, .to-top, .mobile-bar, .site-footer .footer-cta, .page-aside, .hero-controls { display: none !important; }
  .page-wrap { grid-template-columns: 1fr; }
  .page-banner { color: #000; background: none; }
  .page-banner h1, .page-banner p { color: #000; }
  .page-banner img.bg, .page-banner::before, .page-banner::after { display: none; }
}

/* ==========================================================================
   Departments & Campus page group (departments, dept-*, campus, laboratories,
   library, clinical-training, sports)
   ========================================================================== */
.subject-list li > div { min-width: 0; }
.subject-list code { min-width: 68px; text-align: center; }
.subject-list p { margin: 5px 0 0; font-size: .9rem; color: var(--text); line-height: 1.5; }
.pill-cloud.jump li { padding: 0; transition: background .2s, border-color .2s; }
.pill-cloud.jump a { display: block; padding: .45em .95em; text-decoration: none; font-weight: 600; color: var(--indigo-700); }
.pill-cloud.jump li:hover { background: var(--indigo-50); border-color: var(--indigo-200); }
.prose .feature-card h3, .prose .img-card h3, .prose .card h3 { margin-top: 0; }
.prose .cta-band { margin-top: 2.6rem; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.prose .cta-band h2 { margin-top: 0; padding-top: 0; }
.prose .event h4 { margin-top: 0; }
@media (max-width: 640px) {
  .cards-compact .feature-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 16px; }
  .cards-compact .feature-card .fi { width: 44px; height: 44px; margin: 0; grid-row: span 3; border-radius: 12px; }
  .cards-compact .feature-card .fi .ic { width: 22px; height: 22px; }
  .cards-compact .feature-card h3 { font-size: 1.02rem; margin-bottom: .2em; }
  .cards-compact .feature-card p { margin: 0; font-size: .9rem; }
}
