/* ==========================================================================
   FTH Lokoja — design system
   Palette: deep medical blue, teal, warm gold accent on a clean light base.
   ========================================================================== */

:root {
  --primary: #123b5d;
  --primary-dark: #0d2c47;
  --primary-soft: #1d527c;
  --teal: #138a8a;
  --teal-soft: #e6f4f4;
  --gold: #d9a441;
  --gold-soft: #faf3e3;
  --green: #21865b;
  --red: #c0392b;
  --text: #172b3a;
  --text-muted: #52687a;
  --bg: #ffffff;
  --bg-section: #f3f7fa;
  --bg-dark: #0e2940;
  --border: #dce6ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 59, 93, .06), 0 1px 6px rgba(18, 59, 93, .06);
  --shadow-md: 0 8px 24px rgba(18, 59, 93, .10);
  --shadow-lg: 0 20px 48px rgba(14, 41, 64, .16);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scroll-padding-bottom: 96px;
}
a, button, .btn, .nav-toggle, .nav-close, .mcta-call, .mcta-book {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(19, 138, 138, .18);
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; color: var(--primary); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

.icon { flex: none; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 28px; height: 28px; }
.icon-flip { transform: rotate(180deg); }

:focus-visible { outline: 3px solid rgba(19, 138, 138, .55); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--primary); color: #fff; padding: .6rem 1.1rem;
  border-radius: 0 0 8px 8px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Top information bar ---------- */
.topbar {
  background: var(--bg-dark);
  color: #cfe0ec;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar a { color: #cfe0ec; }
.topbar a:hover { color: #fff; }
.topbar-items { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar-emergency { color: #f5c56a !important; }
.topbar-emergency:hover { color: #ffd98c !important; }
.topbar-donate { color: var(--gold) !important; }
.topbar-donate:hover { color: #ffd98c !important; }
.topbar-brand {
  font-family: var(--font-head); font-weight: 800; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.topbar-brand:hover { color: var(--gold); }

/* ---------- News ticker (scrolling announcements) ---------- */
.news-ticker {
  background: var(--teal);
  color: #fff;
  font-size: .84rem;
}
.ticker-wrap {
  display: flex; align-items: center; gap: 1rem;
  padding: .38rem 0; min-width: 0;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-family: var(--font-head); font-weight: 800; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0, 0, 0, .22); border-radius: 999px; padding: .28rem .75rem;
}
.ticker-viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
  will-change: transform;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: #fff; text-decoration: none; padding: 0 .35rem; }
.ticker-item:hover { color: #ffd98c; text-decoration: underline; }
.ticker-sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin: 0 1rem; flex: none;
}
.ticker-more {
  display: inline-flex; align-items: center; gap: .3rem; flex: none;
  color: #ffd98c; font-weight: 700; font-size: .78rem; white-space: nowrap;
}
.ticker-more:hover { color: #fff; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}
@media (max-width: 576px) {
  .ticker-more span { display: none; }
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--gold);
  border-bottom: 1px solid rgba(120, 84, 20, .25);
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(14, 41, 64, .18); }
.site-header > .container { padding-top: .8rem; padding-bottom: .8rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--primary); flex: none; }
.brand:hover { color: var(--primary); }
.brand-mark {
  width: 62px; height: 68px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(14, 41, 64, .18));
}
.mobile-nav-head .brand-mark { width: 34px; height: 37px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name-compact { display: none; }
.brand-text strong { font-family: var(--font-head); font-size: .95rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand-text small { font-size: .72rem; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  color: var(--primary-dark); font-weight: 600; font-size: .92rem;
  padding: .55rem .8rem; border-radius: 8px;
}
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 2.5px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.nav-link:hover { color: var(--primary); background: rgba(18, 59, 93, .08); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary); }

/* Desktop dropdown */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  width: 340px; padding: .55rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.dropdown-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--text);
}
.dropdown-item:hover { background: var(--bg-section); color: var(--text); }
.dropdown-item .icon { color: var(--teal); margin-top: .15rem; }
.dropdown-item strong { display: block; font-size: .9rem; }
.dropdown-item small { color: var(--text-muted); font-size: .78rem; }
.dropdown-feature { background: var(--teal-soft); margin-bottom: .25rem; }
.dropdown-feature:hover { background: #d7ecec; }

/* Mega dropdown — Units & Departments */
.dropdown-mega {
  width: min(720px, calc(100vw - 2.5rem));
  padding: 1rem 1.25rem 1.15rem;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
.mega-heading {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--teal);
  margin: .45rem .55rem .5rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--teal-soft);
}
.mega-heading + .mega-heading { margin-top: 1rem; }
.mega-heading ~ .mega-heading { margin-top: 1rem; }
.mega-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .33rem .55rem; font-size: .82rem; font-weight: 600;
  color: var(--text); border-radius: 7px; line-height: 1.3;
}
.mega-link:hover { background: var(--bg-section); color: var(--primary); }
.mega-link.mega-feature { background: var(--teal-soft); color: var(--primary); font-weight: 700; }
.mega-link.mega-all { color: var(--teal); margin-top: .4rem; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn { padding: .5rem 1rem; font-size: .85rem; border-radius: 8px; }

.nav-toggle, .nav-close {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--primary); cursor: pointer;
}

/* ---------- Mobile navigation drawer ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(14, 41, 64, .55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101;
  width: min(360px, 88vw);
  background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.mobile-nav-head .nav-close { display: inline-flex; }
.mobile-nav-list { list-style: none; margin: 0; padding: .75rem 1.25rem; flex: 1; }
.mobile-nav-list a {
  display: flex; align-items: center; gap: .85rem;
  min-height: 48px; padding: .8rem .5rem; color: var(--text); font-weight: 600;
  border-bottom: 1px solid #eef3f7; border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-list a:hover { background: var(--bg-section); color: var(--primary); }
.mobile-nav-list .icon { color: var(--teal); }
.mobile-nav-foot {
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-section);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .94rem; border-radius: 10px;
  padding: .72rem 1.4rem; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-soft); color: #fff; box-shadow: 0 6px 18px rgba(18, 59, 93, .3); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: #0f7373; color: #fff; box-shadow: 0 6px 18px rgba(19, 138, 138, .3); }
.btn-gold { background: var(--gold); color: #233040; }
.btn-gold:hover, .btn-gold:focus { background: #c8922f; color: #233040; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: var(--bg-section); color: var(--primary); }
.btn-outline-white { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef3f7; color: var(--primary); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .5rem 0 .75rem; }
.section-sub { max-width: 640px; color: var(--text-muted); }
.text-center .section-sub { margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--bg-section); }
.section-dark { background: var(--bg-dark); color: #dbe7f0; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #a9bfd0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 85% -40%, rgba(19, 138, 138, .35), transparent 60%),
    radial-gradient(500px 300px at 8% 120%, rgba(217, 164, 65, .18), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%);
  color: #fff; padding: 4rem 0 3.5rem;
}
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-banner .lead { color: #c4d6e4; max-width: 640px; margin-bottom: 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  list-style: none; padding: 0; margin: 0 0 1rem;
  font-size: .84rem; color: #9db6c9;
}
.breadcrumb a { color: #cfe0ec; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #63819b; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(19, 138, 138, .14), transparent 55%),
    radial-gradient(600px 400px at 0% 100%, rgba(18, 59, 93, .08), transparent 55%),
    linear-gradient(180deg, #f6fafc 0%, #eef5f9 100%);
  padding: 4.5rem 0 7rem;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); letter-spacing: -.02em; margin: .9rem 0 1.1rem; }
.hero h1 .accent { color: var(--teal); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em;
  background: rgba(217, 164, 65, .35); z-index: -1; border-radius: 3px;
}
.hero p.lead { margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-trust .trust { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.hero-trust .icon { color: var(--teal); }

/* Hero visual — layered card composition (replace with real hospital photography) */
.hero-visual { position: relative; }
.hero-card {
  position: relative; width: 100%; border-radius: 24px; overflow: hidden;
  background: linear-gradient(150deg, var(--primary) 0%, #18567f 55%, var(--teal) 130%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
/* Hero slideshow — images crossfade inside the hero card */
.hero-card .scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-card .scene.active { opacity: 1; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 2;
  display: flex; justify-content: center; gap: .45rem;
}
.hero-dot {
  width: 9px; height: 9px; border: 0; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: background .18s, transform .18s;
}
.hero-dot.active { background: #fff; transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .hero-card .scene { transition: none; }
}

/* ---------- Quick access cards ---------- */
.quick-access { margin-top: -4.2rem; position: relative; z-index: 5; padding-bottom: 1rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; color: var(--text);
  box-shadow: var(--shadow-md); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); color: var(--text); }
.quick-card .q-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 13px; background: var(--teal-soft); color: var(--teal);
}
.quick-card:nth-child(2) .q-icon { background: #e9f1fb; color: var(--primary); }
.quick-card:nth-child(3) .q-icon { background: var(--gold-soft); color: #a97a22; }
.quick-card:nth-child(4) .q-icon { background: #e8f6ef; color: var(--green); }
.quick-card strong { display: block; font-size: .95rem; }
.quick-card small { color: var(--text-muted); font-size: .8rem; }
.quick-card .arrow { margin-left: auto; color: var(--text-muted); transition: transform .18s, color .18s; }
.quick-card:hover .arrow { transform: translateX(4px); color: var(--teal); }

/* ---------- Welcome / about snippet ---------- */
.welcome-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.5rem; align-items: center; }
.welcome-visual { position: relative; }
.welcome-photo {
  border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, #dfeaf2 0%, #cddfeb 50%, #b8d2e2 100%);
  position: relative; box-shadow: var(--shadow-md);
}
.welcome-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 15%, rgba(255, 255, 255, .35), transparent 60%);
}
.welcome-badge {
  position: absolute; right: -1rem; bottom: 2rem;
  background: var(--primary); color: #fff; border-radius: 16px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); max-width: 230px;
}
.welcome-badge strong { display: block; font-size: 1.9rem; font-family: var(--font-head); color: var(--gold); line-height: 1; }
.welcome-badge span { font-size: .8rem; color: #bcd2e2; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.check-list .icon { color: var(--green); margin-top: .2rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; height: 100%;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(19, 138, 138, .5); }
.service-card .s-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--teal-soft); color: var(--teal); margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .9rem; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .88rem; color: var(--teal); margin-top: .9rem;
}
.card-link .icon { transition: transform .18s; }
.service-card:hover .card-link .icon { transform: translateX(4px); }

/* Department card — variant with top accent */
.dept-card { border-top: 4px solid var(--teal); }
.dept-card:nth-child(4n+2) { border-top-color: var(--primary); }
.dept-card:nth-child(4n+3) { border-top-color: var(--gold); }
.dept-card:nth-child(4n+4) { border-top-color: var(--green); }
.dept-card .tagline { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }

/* ---------- Doctors ---------- */
.doctor-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; text-align: center; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(18, 59, 93, .4); }
.avatar {
  display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff;
  background: linear-gradient(140deg, var(--primary) 10%, var(--teal) 110%);
  margin-bottom: 1rem; position: relative; flex: none;
}
.avatar::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px dashed rgba(19, 138, 138, .4);
}
.avatar.avatar-sm { width: 72px; height: 72px; font-size: 1.35rem; }
.avatar.avatar-lg { width: 132px; height: 132px; font-size: 2.4rem; }
.doctor-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.doctor-card .doc-title { font-size: .8rem; font-weight: 700; color: var(--teal); }
.doctor-card .doc-bio { font-size: .85rem; color: var(--text-muted); margin: .7rem 0 1.1rem; flex: 1; }
.quals { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.qual-chip {
  font-size: .72rem; font-weight: 700; color: var(--primary);
  background: #e9f1fb; border-radius: 999px; padding: .25rem .65rem;
}

/* ---------- Mandate cards (care / training / research) ---------- */
.mandate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.mandate-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mandate-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: rgba(19, 138, 138, .5); color: var(--text);
}
.mandate-icon {
  display: grid; place-items: center; width: 72px; height: 72px;
  border-radius: 18px; margin-bottom: 1.2rem; color: #fff;
  box-shadow: 0 8px 18px rgba(14, 41, 64, .18);
}
.mandate-icon .icon { width: 34px; height: 34px; }
.m-primary { background: linear-gradient(140deg, var(--primary) 0%, #1d6a9f 100%); }
.m-teal { background: linear-gradient(140deg, #0f7373 0%, #2fa3a3 100%); }
.m-gold { background: linear-gradient(140deg, #b07d22 0%, var(--gold) 100%); }
.mandate-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.mandate-card p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.mandate-card:hover .card-link .icon { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 3rem 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat .lbl { font-size: .85rem; color: #b7cbdb; font-weight: 600; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 1.8rem; }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .f-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 12px; background: var(--teal-soft); color: var(--teal);
}
.feature strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.feature p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.why-visual {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4/4.4; position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, #1b5a83 60%, var(--teal) 140%);
  box-shadow: var(--shadow-lg);
}
.why-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.facility-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10.5; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; color: #fff;
  background: linear-gradient(150deg, var(--primary) 0%, #1c587f 70%, var(--teal) 130%);
}
.facility-tile:nth-child(3n+2) { background: linear-gradient(150deg, #0f6b6b 0%, var(--teal) 60%, #2fa3a3 130%); }
.facility-tile:nth-child(3n) { background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 60%, #2c6b96 130%); }
.facility-tile .f-icon-bg {
  position: absolute; top: 1.1rem; right: 1.1rem; opacity: .28;
}
.facility-tile .f-icon-bg .icon { width: 56px; height: 56px; }
.facility-tile strong { font-size: 1.02rem; }
.facility-tile small { color: rgba(255, 255, 255, .82); font-size: .82rem; }
.photo-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid #ecd9ae; border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .88rem; color: #6d5522;
}
.photo-note .icon { flex: none; margin-top: .15rem; color: #a97a22; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; height: 100%; position: relative;
}
.testimonial .q-icon { color: var(--gold); margin-bottom: .8rem; }
.testimonial p { font-size: .95rem; color: var(--text); }
.testimonial .who { display: flex; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.testimonial .who .avatar { width: 44px; height: 44px; font-size: .9rem; margin: 0; }
.testimonial .who .avatar::after { display: none; }
.testimonial .who strong { display: block; font-size: .88rem; }
.testimonial .who small { color: var(--text-muted); font-size: .78rem; }

/* ---------- Articles ---------- */
.article-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card .a-head {
  padding: 1.3rem 1.5rem 0;
}
.article-card .a-body { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.06rem; }
.article-card p { font-size: .88rem; color: var(--text-muted); flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: .28rem .75rem;
}
.article-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-muted); margin-top: 1rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* Article body (detail pages) */
.prose { max-width: 720px; }
.prose p { font-size: 1.02rem; color: #33506a; margin-bottom: 1.3rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .9rem; }
.prose ul { color: #33506a; }
.reviewed-by {
  display: flex; align-items: center; gap: .8rem;
  background: #eef6f1; border: 1px solid #cbe4d8; border-radius: var(--radius-sm);
  padding: .9rem 1.2rem; font-size: .87rem; color: #1f5c41;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(19, 138, 138, .3), transparent 60%),
    linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 24px; padding: 3rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #b9cde0; max-width: 520px; }

/* ---------- Location / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .c-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--teal-soft); color: var(--teal);
}
.contact-list strong { display: block; font-size: .92rem; }
.contact-list span, .contact-list a { font-size: .9rem; color: var(--text-muted); }
.map-frame {
  border: 0; border-radius: var(--radius); width: 100%; height: 100%; min-height: 340px;
  box-shadow: var(--shadow-md); background: var(--bg-section);
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--text); }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .68rem .9rem; font-size: .95rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19, 138, 138, .14); outline: none;
}
.form-control.input-validation-error, .form-select.input-validation-error {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(192, 57, 43, .12);
}
.field-validation-error { color: var(--red); font-size: .8rem; font-weight: 600; display: block; margin-top: .35rem; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }

.info-panel {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; height: 100%;
}
.info-panel h3 { font-size: 1.05rem; }
.info-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.info-steps li { counter-increment: step; display: flex; gap: .9rem; align-items: flex-start; }
.info-steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .82rem;
}
.confirm-panel {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3rem 2.2rem; box-shadow: var(--shadow-md);
}
.confirm-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.4rem;
  border-radius: 50%; background: #e8f6ef; color: var(--green);
}

/* ---------- FAQ ---------- */
.faq-search { position: relative; max-width: 560px; }
.faq-search .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.faq-search input { padding-left: 2.9rem; }
.faq-group h2 { font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.faq-group h2::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--gold); }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.3rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  list-style: none; color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--teal); transition: transform .2s; flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--bg-section); }
.faq-item .faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: .92rem; }

/* ---------- Filter bar (doctors/services) ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-sm);
}
.filter-bar .form-control, .filter-bar .form-select { flex: 1; min-width: 180px; max-width: 320px; }
.filter-count { font-size: .85rem; color: var(--text-muted); margin-left: auto; }
.empty-state {
  text-align: center; padding: 3.5rem 1rem; color: var(--text-muted);
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
}

.campus-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-top: 1.5rem; }

/* ---------- Detail page layout ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.side-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: sticky; top: 110px;
}
.side-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.side-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.side-list .icon { color: var(--teal); margin-top: .2rem; flex: none; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  background: #e9f1fb; border-radius: 999px; padding: .35rem .85rem;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-left: 2.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 3px solid var(--teal);
}
.timeline .t-year { font-weight: 800; color: var(--teal); font-family: var(--font-head); }

/* ---------- Values cards ---------- */
.value-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; height: 100%; text-align: center;
}
.value-card .v-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 16px; background: var(--teal-soft); color: var(--teal);
}
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---------- Donations ---------- */
.bank-card {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 80%);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; color: #fff;
  box-shadow: var(--shadow-md);
}
.bank-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.bank-row:last-child { border-bottom: 0; }
.bank-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb8cc; }
.bank-value { font-size: .95rem; font-weight: 600; text-align: right; }
.bank-number { display: inline-flex; align-items: center; gap: .6rem; }
.bank-number strong { font-size: 1.25rem; letter-spacing: .06em; color: var(--gold); font-family: var(--font-head); }
.copy-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 8px;
  background: rgba(255, 255, 255, .08); color: #fff;
  font-size: .74rem; font-weight: 700; padding: .3rem .6rem; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.copy-btn.copied { background: var(--green); border-color: var(--green); }

/* ---------- Emergency strip ---------- */
.emergency-strip {
  background: linear-gradient(90deg, #a53126 0%, var(--red) 100%);
  color: #fff; padding: 1.4rem 0;
}
.emergency-strip strong { font-size: 1.05rem; }
.emergency-strip p { color: rgba(255, 255, 255, .85); font-size: .9rem; }
.emergency-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #a9bfd0; padding: 4rem 0 0; }
.brand-footer .brand-text strong { color: #fff; white-space: normal; font-size: .92rem; }
.brand-footer .brand-text small { color: #8fa9bd; }
.is-admin .back-to-top { display: none; }
.footer-about { font-size: .9rem; margin-top: 1.2rem; max-width: 320px; }
.footer-heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: #a9bfd0; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.footer-contact .icon { color: var(--teal); margin-top: .15rem; flex: none; }
.footer-contact a { color: #a9bfd0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.4rem 0;
  font-size: .84rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.footer-legal a { color: #8fa9bd; }
.footer-legal a:hover { color: #fff; }

/* ---------- Mobile quick-action bar (Call / Book) ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; grid-template-columns: 1fr 1fr; gap: .7rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(14, 41, 64, .12);
}
.mobile-cta-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem .5rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
}
.mcta-call { background: var(--teal-soft); color: var(--teal); }
.mcta-call:hover { background: #d7ecec; color: var(--teal); }
.mcta-book { background: var(--primary); color: #fff; }
.mcta-book:hover { background: var(--primary-soft); color: #fff; }

@media (max-width: 900px) {
  .mobile-cta-bar { display: grid; }
  body.has-mobile-cta { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .back-to-top { right: .9rem; bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  /* The bottom bar's Book button replaces the header one on small screens */
  .has-mobile-cta .header-actions .btn-book { display: none; }
  .site-header { top: 0; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--primary); color: #fff;
  box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; transition: opacity .2s;
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { background: var(--teal); }

/* ---------- Legal / generic prose page ---------- */
.legal-prose { max-width: 760px; }
.legal-prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.legal-prose p, .legal-prose li { color: #33506a; font-size: .98rem; }
.legal-prose ul { padding-left: 1.3rem; }
.updated-note { font-size: .82rem; color: var(--text-muted); font-style: italic; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
/* Compact the nav on mid-size laptops so the full hospital name stays on one line */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-link { font-size: .85rem; padding: .55rem .55rem; }
  .header-actions .btn { padding: .45rem .8rem; font-size: .82rem; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .card-grid-4, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-name-compact { display: flex; min-width: 0; }
  .brand { gap: .6rem; min-width: 0; flex: 1 1 auto; }
  .brand-name-compact strong {
    font-size: .82rem; letter-spacing: .05em; white-space: normal; line-height: 1.2;
  }
}
@media (max-width: 900px) {
  .hero-grid, .welcome-grid, .why-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.4rem 0 5rem; }
  .hero-visual { order: -1; width: 100%; max-width: none; margin-bottom: .4rem; }
  .hero-card { width: 100%; }
  .side-card { position: static; }
  .card-grid, .facility-grid, .mandate-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .cta-band { padding: 2.2rem; }
}
@media (max-width: 640px) {
  .brand { gap: .55rem; min-width: 0; flex: 1 1 auto; }
  .brand-text { min-width: 0; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .72rem; letter-spacing: .04em; white-space: normal; line-height: 1.2; }
  .brand-mark { width: 52px; height: 57px; }
  .btn-book span, .btn-donate span { display: none; }
  .btn-book, .btn-donate { padding: .72rem .9rem; min-height: 44px; min-width: 44px; }
  .card-grid, .card-grid-4, .card-grid-2, .facility-grid, .quick-grid, .mandate-grid { grid-template-columns: 1fr; }
  .quick-access { margin-top: -3rem; }
  .section { padding: 3.2rem 0; }
  .form-card, .login-card, .card-panel { padding: 1.4rem; }
  .hero-card { aspect-ratio: 4/3; }
  .welcome-badge { right: .6rem; }
  .hero h1 .accent { white-space: normal; }
  .bank-row { flex-wrap: wrap; }

  /* Inputs ≥16px stop iOS/Android from auto-zooming the page on focus. */
  .form-control, .form-select, textarea.form-control { font-size: 16px; min-height: 48px; }

  /* Full-width, thumb-friendly call-to-actions. */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .emergency-strip .btn { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-control, .filter-bar .form-select { min-width: 0; max-width: none; width: 100%; }
  .filter-bar .btn { width: 100%; }
  .filter-count { margin-left: 0; text-align: center; }

  /* Tighter panels and banners on small screens. */
  .page-banner { padding: 2.8rem 0 2.4rem; }
  .cta-band { padding: 1.8rem 1.4rem; border-radius: 18px; }
  .confirm-panel { padding: 2rem 1.3rem; }
  .map-frame { min-height: 260px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .emergency-label { display: none; }
  .login-screen { padding: 1rem .8rem 1.4rem; min-height: 100dvh; }
  .admin-nav-links { gap: .7rem; }
  .admin-nav-links a { padding: .45rem 0; }
  .admin-row { flex-wrap: wrap; align-items: flex-start; }
  .admin-row-actions { width: 100%; }
  .admin-row-actions .btn { flex: 1; min-width: calc(50% - .5rem); }
  .detail-list > div { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .detail-list dd { text-align: left; }
}

/* ---------- News & announcements ---------- */
.chip-gold { background: var(--gold-soft); color: #8a611a; }
.news-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.news-feature-card {
  display: grid; grid-template-columns: 1fr; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: box-shadow .2s, transform .2s;
}
.news-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.news-feature-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }
.news-feature-empty {
  display: grid; place-items: center; aspect-ratio: 16/8;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%); color: rgba(255,255,255,.85);
}
.news-feature-body { padding: 1.5rem 1.6rem; }
.news-feature-body h3 { font-size: 1.2rem; }
.news-feature-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: .8rem; }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.news-card-chip { position: relative; margin-top: -2.6rem; }
.article-card .a-head.news-card-chip { padding-left: 1.3rem; min-height: auto; }
.news-article-img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1.4rem; }

/* ---------- Admin area ---------- */
.admin-nav {
  background: var(--primary); color: #dce9f2;
  padding: .6rem 0; z-index: 500;
}
.admin-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-nav-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-family: var(--font-head); color: #fff; }
.admin-nav-links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.admin-nav-links a { color: #dce9f2; font-size: .86rem; font-weight: 600; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: #fff; }
.admin-nav-links a.active { text-decoration: underline; text-underline-offset: 4px; }
.upload-bar { height: 8px; border-radius: 999px; background: #e2ecf2; overflow: hidden; }
.upload-fill { height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .15s ease; }
.admin-nav-drop { position: relative; }
.admin-nav-drop > a { display: inline-flex; align-items: center; gap: .3rem; }
.admin-nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--primary-dark); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .45rem; z-index: 60;
}
.admin-nav-drop:hover .admin-nav-drop-menu,
.admin-nav-drop:focus-within .admin-nav-drop-menu { display: block; }
.admin-nav-drop-menu a { display: block; padding: .55rem .85rem; border-radius: 8px; }
.admin-nav-drop-menu a:hover { background: rgba(255,255,255,.09); }
.admin-logout {
  background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 8px; font-size: .8rem; font-weight: 700; padding: .35rem .8rem; cursor: pointer;
}
.admin-logout:hover { background: rgba(255,255,255,.12); }
.admin-notice {
  display: flex; align-items: center; gap: .6rem;
  background: #e8f6ef; color: var(--green); border: 1px solid #bfe3d1;
  border-radius: var(--radius-sm); padding: .8rem 1.1rem; font-weight: 600; font-size: .9rem;
}
.admin-status-badge,
.admin-status-pending {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: .28rem .8rem; font-size: .78rem; font-weight: 700;
}
.admin-status-badge {
  background: #e8f6ef; color: var(--green); border: 1px solid #bfe3d1;
}
.admin-status-pending {
  background: #fff6e4; color: #8a5a12; border: 1px solid #f0d9a8;
}
.admin-status-rejected {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: .28rem .8rem; font-size: .78rem; font-weight: 700;
  background: #fdeeef; color: #a12733; border: 1px solid #f3c2c6;
}
.admin-dash { padding: 1.8rem 0 3.5rem; background: var(--bg-section); }
.admin-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%);
  color: #dbe7f0; border-radius: var(--radius); padding: 1.8rem 2rem; margin-bottom: 1.4rem;
  box-shadow: var(--shadow-md);
}
.admin-hero h1 { color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: .25rem 0 .4rem; }
.admin-hero p { margin: 0; max-width: 520px; color: #b7cbdb; }
.admin-hero-kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.admin-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .85rem; color: var(--text);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); border-color: rgba(19, 138, 138, .45); }
.stat-icon {
  grid-row: 1 / span 2; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal);
}
.stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.admin-workspace { display: grid; grid-template-columns: 1.6fr .9fr; gap: 1.2rem; margin-top: 1.4rem; align-items: start; }
.admin-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.admin-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border);
}
.admin-panel-head h2 { font-size: 1.05rem; margin: 0; }
.admin-empty {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-section); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
}
.admin-empty-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: #fff; color: var(--teal); border: 1px solid var(--border);
}
.admin-empty strong { display: block; color: var(--primary); }
.admin-empty p { margin: .2rem 0 0; font-size: .88rem; color: var(--text-muted); }
.admin-empty .btn { margin-left: auto; }
.admin-shortcuts { display: grid; gap: .55rem; }
.admin-shortcut {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .75rem; border-radius: var(--radius-sm); color: var(--text);
  border: 1px solid transparent;
}
.admin-shortcut:hover { background: var(--bg-section); color: var(--text); border-color: var(--border); }
.admin-shortcut-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 10px; background: var(--teal-soft); color: var(--teal);
}
.admin-shortcut strong { display: block; font-size: .9rem; }
.admin-shortcut small { color: var(--text-muted); font-size: .78rem; }
@media (max-width: 900px) {
  .admin-workspace { grid-template-columns: 1fr; }
}
.admin-list { display: grid; gap: .8rem; }
.admin-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.admin-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.admin-thumb-empty { display: grid; place-items: center; background: var(--bg-section); color: var(--teal); }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-main strong { display: block; }
.admin-row-meta { font-size: .82rem; color: var(--text-muted); }
.admin-row-actions { display: flex; align-items: center; gap: .5rem; flex: none; flex-wrap: wrap; }
.btn-danger-outline { color: var(--red) !important; border-color: #ecc9c4 !important; }
.btn-danger-outline:hover { background: #fdf0ee !important; }
.admin-current-image img { max-width: 220px; border-radius: 8px; border: 1px solid var(--border); }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.admin-photo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin: 0;
}
.admin-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.admin-photo figcaption { padding: .8rem; display: grid; gap: .35rem; font-size: .85rem; }
.admin-photo figcaption small { color: var(--text-muted); }
.admin-photo-actions { display: flex; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.admin-photo-actions form { margin: 0; }
.admin-photo-actions label.btn { cursor: pointer; }
.login-screen {
  min-height: 100vh; display: grid; place-items: center;
  padding: 2rem 1.2rem;
  background:
    radial-gradient(700px 340px at 90% -10%, rgba(19, 138, 138, .22), transparent 60%),
    linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #0d2c47 100%);
}
.login-shell {
  width: min(860px, 100%);
  display: grid; grid-template-columns: .95fr 1.05fr;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 20, 32, .35);
}
.login-brand {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #cfe0ec; padding: 2.4rem 2rem; display: flex; flex-direction: column; justify-content: center;
}
.login-brand img {
  width: 76px; height: 84px; object-fit: contain; margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}
.login-kicker {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .35rem;
}
.login-brand h1 { color: #fff; font-size: 1.7rem; margin: 0 0 .7rem; }
.login-brand p { margin: 0; color: #b7cbdb; font-size: .95rem; }
.login-card {
  margin: 0; background: #fff; border: 0; border-radius: 0;
  padding: 2.4rem 2.2rem; box-shadow: none;
}
.login-card h2 { font-size: 1.45rem; margin: 0 0 .3rem; }
.login-lead { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.3rem; }
.login-foot { text-align: center; margin: 1.4rem 0 0; }
.login-foot a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 1.8rem 1.6rem 1.4rem; }
  .login-card { padding: 1.6rem 1.4rem 1.8rem; }
}
.card-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.card-panel p { color: #33506a; }

/* ---------- Admin page header ---------- */
.admin-page-head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .admin-page-head .btn.ms-auto { margin-left: 0; width: 100%; }
}
.admin-page-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; border-radius: 14px;
}
.admin-page-icon .icon { width: 26px; height: 26px; }

/* ---------- Admin upload dropzone ---------- */
.upload-dropzone {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed #b9c9d6; border-radius: var(--radius);
  padding: 1.6rem 1rem; margin-bottom: 1rem; cursor: pointer;
  background: var(--bg-section); transition: border-color .2s, background .2s;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--teal); background: #ecf7f7;
}
.upload-drop-inner { display: grid; justify-items: center; gap: .3rem; }
.upload-drop-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: #fff; border: 1px solid var(--border); border-radius: 50%;
  color: var(--teal); margin-bottom: .35rem;
}
.upload-drop-icon .icon { width: 22px; height: 22px; }
.upload-drop-inner strong { font-size: .95rem; }
.upload-drop-inner small { color: var(--text-muted); }
.upload-preview {
  width: 100%; max-height: 180px; object-fit: cover;
  border-radius: var(--radius-sm); display: block;
}
.upload-file-name {
  font-size: .82rem; color: var(--teal); font-weight: 600;
  margin: -.4rem 0 .8rem; word-break: break-all;
}
.upload-note .icon { vertical-align: -.15em; color: var(--gold); margin-right: .2rem; }
.admin-photo-fields { display: grid; gap: .4rem; }
.admin-photo > a { display: block; }
.admin-photo > a:hover img { opacity: .9; }
.admin-photo-title { display: block; font-size: .9rem; }
.admin-photo-edit { margin-top: .1rem; }
.admin-photo-edit summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: .8rem; font-weight: 600; color: var(--teal);
}
.admin-photo-edit summary::-webkit-details-marker { display: none; }
.admin-photo-edit summary::before {
  content: "+"; display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-right: .35rem;
  border: 1px solid var(--teal); border-radius: 4px;
  font-size: .75rem; line-height: 1;
}
.admin-photo-edit[open] summary::before { content: "–"; }
.admin-photo-edit[open] summary { margin-bottom: .5rem; }

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-row { flex-wrap: wrap; }
}

/* ---------- Public photo gallery (swipeable slider) ---------- */
.gallery-slider { position: relative; }
.slider-track {
  display: flex; gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: .25rem .25rem .75rem; margin: -.25rem -.25rem 0;
  border-radius: var(--radius);
  cursor: grab; user-select: none;
}
.slider-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .slider-slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 640px) {
  .slider-track .slider-slide { flex-basis: calc(50% - .6rem); }
}
@media (min-width: 1000px) {
  .slider-track .slider-slide { flex-basis: calc(33.333% - .8rem); }
}
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.slider-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: #fff; color: var(--primary); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--primary); }
.slider-dots { display: flex; align-items: center; gap: .5rem; }
.slider-dot {
  width: 9px; height: 9px; border: 0; border-radius: 50%; padding: 0;
  background: #c6d6e2; cursor: pointer; transition: background .18s, transform .18s;
}
.slider-dot.active { background: var(--teal); transform: scale(1.35); }

/* ---------- Public gallery page + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery-thumb {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text); transition: box-shadow .2s, transform .2s;
}
.gallery-thumb:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.gallery-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .35s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(13, 44, 71, .88));
  color: #fff; text-align: left; display: grid; gap: .15rem;
}
.gallery-thumb-info strong { font-size: .88rem; }
.gallery-thumb-info small { color: #c4d6e4; font-size: .76rem; }
.gallery-thumb-zoom {
  position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(13, 44, 71, .8); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.gallery-thumb:hover .gallery-thumb-zoom, .gallery-thumb:focus-visible .gallery-thumb-zoom { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(8, 20, 32, .94); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox.open { opacity: 1; }
.lightbox-stage {
  margin: 0; max-width: min(92vw, 1100px); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.lightbox-img {
  max-width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lightbox-meta { color: #e8f0f6; text-align: center; display: grid; gap: .2rem; }
.lightbox-meta .lb-title { font-weight: 700; font-family: var(--font-head); }
.lightbox-meta .lb-caption { color: #a9bfd0; }
.lightbox-meta .lb-count { color: #8fa9bd; font-size: .8rem; margin-top: .3rem; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  transition: background .18s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; }
  .lightbox-btn { width: 42px; height: 42px; }
}
.photo-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 0; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.photo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-card figcaption { padding: .9rem 1rem; display: grid; gap: .2rem; }
.photo-card figcaption strong { font-size: .9rem; color: var(--primary); }
.photo-card figcaption small { color: var(--text-muted); font-size: .82rem; }

/* ---------- Leadership / CMD ---------- */
.cmd-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #eaf2f8; padding: 4rem 0;
}
.cmd-inner { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center; }
.cmd-photo-frame {
  margin: 0; width: 240px;
  border-radius: 18px; overflow: hidden;
  border: 4px solid rgba(255,255,255,.28); box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.08);
}
.cmd-photo {
  width: 240px; height: 300px; object-fit: cover; object-position: top center; display: block;
}
.cmd-photo.leader-photo-empty {
  width: 240px; height: 300px; border-radius: 18px;
  border: 4px solid rgba(255,255,255,.28);
}
.cmd-band .eyebrow { color: var(--gold); }
.cmd-quote { margin: 1rem 0 1.4rem; font-size: 1.12rem; line-height: 1.75; font-style: italic; }
.cmd-quote p { margin-bottom: .8rem; }
.cmd-sign strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.cmd-sign span { font-size: .88rem; color: #a9bfd0; }
.cmd-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  color: var(--gold); font-weight: 700; font-size: .92rem;
}
.cmd-link:hover { color: #fff; }
.leader-feature {
  display: grid; grid-template-columns: 260px 1fr; gap: 2.6rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.4rem; box-shadow: var(--shadow-sm); max-width: 960px; margin: 0 auto;
}
.leader-photo {
  width: 240px; height: 280px; border-radius: 16px; object-fit: cover; object-position: top center; display: block;
  border: 6px solid var(--teal-soft); margin: 0 auto;
}
.leader-photo-sm {
  width: 120px; height: 140px; border-radius: 12px; object-fit: cover; object-position: top center; display: block;
  border: 4px solid var(--teal-soft); margin: 0 auto;
}
.leader-photo-empty {
  display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
}
.leader-body p { color: #33506a; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; max-width: 960px; margin: 0 auto; }
.leader-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.leader-card strong { display: block; margin-top: 1rem; color: var(--primary); }
.leader-card small { color: var(--text-muted); }
.admin-thumb-round { border-radius: 50%; }
.admin-stats-4 { grid-template-columns: repeat(4, 1fr); }
.admin-stats-5 { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.admin-stats-6 { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

@media (max-width: 900px) {
  .cmd-inner, .leader-feature { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
  .cmd-photo, .cmd-photo-frame { margin: 0 auto; }
  .admin-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-5 { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .admin-stats-4 { grid-template-columns: 1fr; }
  .admin-stats-5 { grid-template-columns: 1fr; }
  .admin-stats-6 { grid-template-columns: 1fr; }
}

/* ---------- Demo login hint ---------- */
.demo-hint {
  display: grid; gap: .2rem; margin-bottom: 1.4rem; padding: .9rem 1.1rem;
  background: var(--gold-soft); border: 1px solid #e8d5ac; border-radius: var(--radius-sm);
  font-size: .86rem; color: #6d531a;
}
.demo-hint strong { font-family: var(--font-head); }
.demo-hint code { background: rgba(255,255,255,.65); padding: .1rem .4rem; border-radius: 5px; font-weight: 700; }
.demo-hint small { color: #8a6f3a; margin-top: .3rem; }

/* ---------- Donate button ---------- */
.btn-donate { background: var(--red); color: #fff; font-weight: 700; }
.btn-donate:hover, .btn-donate:focus { background: #a53126; color: #fff; box-shadow: 0 6px 18px rgba(192, 57, 43, .35); }
.btn-donate .icon { color: #ffd9d3; }
@media (max-width: 640px) {
  .btn-donate span { display: none; }
  .btn-donate { padding: .72rem .9rem; }
}
/* ---------- Mobile guards ---------- */
html, body { overflow-x: clip; }

/* Long CMS-entered titles, categories, and values must wrap instead of overflowing */
h1, h2, h3, h4, .section-title, .lead,
.article-card, .news-feature-body, .news-feature-card, .article-meta,
.prose, .legal-prose, .admin-row-main, .leader-card, .leader-body,
.card-panel, .chip, .pill-list li, .bank-value, .bank-number strong,
.footer-contact a, .footer-links a { overflow-wrap: break-word; }
.chip { max-width: 100%; }
.article-meta { flex-wrap: wrap; }

@media (max-width: 640px) {
  /* Topbar: let it wrap and drop the redundant donate link (gold button is in the header) */
  .topbar > .container { flex-wrap: wrap; row-gap: .3rem; }
  .topbar-donate { display: none; }
  .topbar-items { gap: .9rem; }
  .topbar-item .icon-sm { width: 15px; height: 15px; }
  .topbar-item { font-size: .78rem; }

  .hero-visual { width: 100%; }
}
@media (max-width: 400px) {
  .mobile-cta-bar a { font-size: .82rem; gap: .35rem; padding: .75rem .3rem; }
}
/* ---------- Student admissions portal ---------- */
.detail-list { margin: 0; }
.detail-list > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--border);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-weight: 600; color: var(--text-muted); font-size: .82rem; margin: 0; }
.detail-list dd { margin: 0; text-align: right; font-weight: 600; font-size: .88rem; }

.portal-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%);
  color: #dbe7f0; border-radius: var(--radius); padding: 1.5rem 1.8rem; margin-bottom: 1.4rem;
}
@media (max-width: 640px) {
  .portal-hero { padding: 1.2rem 1.1rem; }
  .portal-hero .btn { flex: 1 1 auto; }
}
.portal-hero h1 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: .2rem 0 .3rem; }
.portal-hero p { margin: 0; color: #b7cbdb; font-size: .92rem; }
.portal-hero-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}

.step-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.step-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .35rem .9rem;
  background: var(--bg-section); color: var(--text-muted); border: 1px solid var(--border);
}
.step-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-pill.done { background: #e8f6ef; color: var(--green); border-color: #bfe3d1; }

.status-line { font-weight: 700; }
.status-line[data-status="Submitted"], .status-line[data-status="Eligible"],
.status-line[data-status="Accepted"], .status-line[data-status="Offered Admission"] { color: var(--green); }
.status-line[data-status="Not Offered"], .status-line[data-status="Withdrawn"] { color: #b3261e; }
.status-line[data-status="Draft"], .status-line[data-status="Incomplete"],
.status-line[data-status="Payment Pending"] { color: #8a5a12; }

.qual-table { width: 100%; border-collapse: collapse; }
.qual-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); text-align: left; padding: .4rem .4rem; }
.qual-table td { padding: .3rem .3rem; }
.qual-table input, .qual-table select { font-size: .9rem; }

.slip {
  max-width: 720px; margin: 0 auto; background: #fff;
  border: 2px solid var(--primary); border-radius: var(--radius); padding: 2rem;
}
.slip-head { text-align: center; border-bottom: 2px solid var(--gold); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.slip-head img { width: 70px; height: auto; }
@media print {
  .site-header, .topbar, .mobile-cta-bar, .site-footer, .no-print { display: none !important; }
  .slip { border-width: 1px; }
}
