/* =====================================================================
   Jaamacadda Eaubuhodle — Public Site Stylesheet
   Theme: Deep Navy + Gold/Amber, responsive, mobile-first
   ===================================================================== */

:root {
  /* Brand palette sampled from the official EAU (East Africa University) seal:
     navy blue + red sun + light-blue shield accent.
     NOTE: the --gold-* variable names are kept for backward compatibility with
     existing class names (.btn-gold, .badge etc.) but now hold the brand RED. */
  --navy-900: #090d29;
  --navy-800: #1e2a7c;
  --navy-700: #26339a;
  --navy-600: #3141b8;
  --navy-500: #4a58c9;
  --gold-600: #c22200;
  --gold-500: #e02700;
  --gold-400: #fe2901;
  --gold-300: #ff9d80;
  --gold-050: #fff1ec;
  --blue-accent: #5c8bff;
  --ink: #1a2130;
  --ink-soft: #4b5468;
  --paper: #ffffff;
  --paper-soft: #f6f7fb;
  --paper-alt: #eef1f8;
  --border: #e3e6ef;
  --success: #1f8f5f;
  --danger: #c0392b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 26, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 26, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 26, 61, 0.16);
  --font-heading: 'Poppins', 'Noto Sans', system-ui, sans-serif;
  --font-body: 'Noto Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--navy-800); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--paper-soft); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy p { color: #fff; }
.section-navy p { color: rgba(255,255,255,.78); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline-navy:hover { background: var(--navy-700); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-contact span { margin-right: 18px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social a { margin-left: 12px; color: rgba(255,255,255,.75); font-size: .78rem; }
.topbar-social a:hover { color: var(--gold-400); }
.lang-switch a { color: rgba(255,255,255,.6); padding: 2px 4px; font-weight: 600; }
.lang-switch a.active { color: var(--gold-400); }
.lang-switch span { color: rgba(255,255,255,.3); margin: 0 2px; }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-logo-lg { width: 74px; height: 74px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-heading); color: var(--navy-800); font-size: 1.05rem; }
.brand-text small { color: var(--ink-soft); font-size: .72rem; }
.brand-footer strong { color: #fff; font-size: 1.1rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { font-weight: 600; font-size: .92rem; color: var(--navy-800); padding: 8px 2px; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy-900); }
.nav-cta { margin-left: 4px; }

/* ---------- Nav dropdown / submenu ---------- */
.main-nav ul li.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-caret {
  background: none; border: none; padding: 6px 2px; margin-left: 2px;
  color: var(--navy-800); font-size: .65rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; transition: transform .2s ease;
}
.has-dropdown.open .dropdown-caret, .has-dropdown:hover .dropdown-caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); border: 1px solid var(--border);
  padding: 8px; margin: 0; z-index: 50; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 12px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--navy-800);
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--paper-soft); color: var(--gold-500); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: none; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--navy-800); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(254,41,1,.14), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(92,139,255,.14), transparent 45%);
  pointer-events: none;
}
.hero-center { padding: 128px 0 108px; text-align: center; }
.hero-center-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero-center p.lead { max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem;
  margin-bottom: 20px; padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(254,41,1,.22);
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: #fff; margin-bottom: 18px; text-shadow: 0 2px 22px rgba(0,0,0,.35); }
.hero h1 span { color: var(--gold-400); }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat { background: rgba(255,255,255,.08); border-radius: var(--radius-md); padding: 18px; text-align: center; }
.hero-stat .num { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--gold-400); }
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; }

/* Hero entrance animation — restarts each time a slide (or the static hero) becomes visible */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide.active .hero-eyebrow, .hero-center .hero-eyebrow { animation: heroFadeUp .6s ease both; }
.hero-slide.active h1, .hero-center h1 { animation: heroFadeUp .6s .08s ease both; }
.hero-slide.active p.lead, .hero-center p.lead { animation: heroFadeUp .6s .16s ease both; }
.hero-slide.active .hero-actions, .hero-center .hero-actions { animation: heroFadeUp .6s .24s ease both; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-eyebrow, .hero-slide.active h1, .hero-slide.active p.lead, .hero-slide.active .hero-actions,
  .hero-center .hero-eyebrow, .hero-center h1, .hero-center p.lead, .hero-center .hero-actions { animation: none; }
}

/* ---------- Floating stats card (bridges the hero into the page content) ---------- */
/* z-index sits above .whatsapp-float on purpose: on short mobile screens the card's
   bottom-right stat can land under the fixed WhatsApp button — better to let the
   (readable) stat win that overlap; the button reappears the moment the page scrolls. */
.stats-float-wrap { position: relative; z-index: 195; }
.stats-float-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-top: -64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stats-float-item { padding: 30px 18px; text-align: center; position: relative; }
.stats-float-item + .stats-float-item::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border);
}
.stats-float-icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(30,42,124,.25);
}
.stats-float-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; color: var(--navy-800); line-height: 1; }
.stats-float-label { font-size: .76rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* ---------- Homepage hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-slide {
  position: relative;
  display: none;
  align-items: center;
  min-height: 540px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-900);
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,13,41,.94) 0%, rgba(9,13,41,.78) 42%, rgba(9,13,41,.38) 100%);
}
.hero-slide-noimg {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(254,41,1,.16), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(92,139,255,.16), transparent 46%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
}
.hero-slide-noimg::before { background: none; }
.hero-slide-inner { position: relative; max-width: 640px; padding: 96px 0; }
.hero-slide h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; margin-bottom: 16px; }
.hero-slide p.lead { color: rgba(255,255,255,.86); font-size: 1.08rem; margin-bottom: 30px; max-width: 560px; }
.hero-slide .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%) scale(1); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff;
  font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-slider-arrow:hover { background: var(--gold-500); border-color: var(--gold-500); transform: translateY(-50%) scale(1.06); }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }
.hero-slider-dots { position: absolute; bottom: 76px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s ease;
}
.hero-slider-dots button.active { background: var(--gold-400); width: 26px; border-radius: 6px; }

@media (max-width: 768px) {
  .hero-slide { min-height: 460px; }
  .hero-slide-inner { padding: 70px 0; }
  .hero-slider-arrow { width: 36px; height: 36px; font-size: 1.05rem; }
  .hero-slider-arrow.prev { left: 10px; }
  .hero-slider-arrow.next { right: 10px; }
  .hero-slider-dots { bottom: 56px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-800); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-video-badge {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9,13,41,.72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}

.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; background: var(--navy-900); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .78rem; color: var(--gold-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.card-title { font-size: 1.12rem; margin-bottom: 10px; }
.card-title a { color: var(--navy-800); }
.card-title a:hover { color: var(--gold-500); }
.card-text { flex: 1; font-size: .92rem; }
.card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; }
.card-link { color: var(--navy-700); font-weight: 700; font-size: .85rem; }
.card-link:hover { color: var(--gold-500); }

/* Feature/why-us icons */
.feature-card { text-align: center; padding: 32px 22px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 10px 22px rgba(30,42,124,.25);
  transition: transform .2s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.07); }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: .9rem; margin: 0; }

/* ---------- Faculty detail / list ---------- */
.faculty-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.badge { display: inline-block; background: var(--gold-050); color: var(--navy-800); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold-300); transition: transform .15s ease, box-shadow .15s ease; }
a.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.badge-navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Faculties listing — premium card treatment: a circular icon badge overlaps
   the photo/placeholder to give each faculty an identity at a glance, a
   two-line meta row (established year + program count), and a clear pair of
   actions so "learn more" and "apply" are both one click away. */
.faculty-grid { row-gap: 40px; }
.faculty-card .card-media { position: relative; overflow: visible; }
.faculty-card-icon {
  position: absolute; left: 20px; bottom: -26px; z-index: 2;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  box-shadow: 0 10px 22px rgba(9,13,41,.28), 0 0 0 4px #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.faculty-card .card-body { padding-top: 40px; }
.faculty-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.faculty-card-programs { font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.faculty-card-dean { font-size: .84rem; color: var(--ink-soft); margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.faculty-card-dean strong { color: var(--navy-800); }
.faculty-card-actions { display: flex; gap: 10px; margin-top: auto; }
.faculty-card-actions .btn { flex: 1; text-align: center; }

/* Application form (apply.php) — a professional multi-panel form (Personal /
   Contact / Academic Information), each panel numbered like a wizard step,
   with a sticky live-updating summary card alongside so applicants always
   see what they're about to submit. */
.apply-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.apply-panel { padding: 32px; margin-bottom: 24px; }
.apply-panel:last-of-type { margin-bottom: 0; }
.apply-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.apply-section-head h3 { margin: 0; }
.apply-step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.apply-submit { margin-top: 8px; font-size: 1rem; padding: 16px; }

.apply-summary { position: sticky; top: 100px; }
.apply-summary-card { padding: 28px; }
.apply-summary-card h4 { margin-bottom: 16px; }
.apply-summary-empty { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.apply-summary-list { margin: 0 0 16px; }
.apply-summary-list > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.apply-summary-list > div:last-child { border-bottom: none; }
.apply-summary-list dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.apply-summary-list dd { margin: 0; font-weight: 700; color: var(--navy-800); }
.apply-summary-hint { font-size: .82rem; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }

.apply-success {
  max-width: 620px; margin: 0 auto; text-align: center; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 56px 40px;
}
.apply-success-icon {
  width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%;
  background: #e7f7ef; color: var(--success); font-size: 2.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.apply-success-ref { font-size: 1.05rem; margin-bottom: 18px; color: var(--navy-800); }
.apply-success-ref strong { color: var(--gold-500); }
.apply-success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* Secondary page banner (About/Faculties/Academics/Admissions/Events/News/Contact + their
   detail pages) — deliberately echoes the homepage hero's gradient + radial-glow treatment
   so every page in the site feels like one consistent, designed system. */
.detail-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  padding: 68px 0 62px;
  color: #fff;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(254,41,1,.15), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(92,139,255,.15), transparent 46%);
  pointer-events: none;
}
.detail-hero .container { position: relative; }
.detail-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 0; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.detail-hero p { color: rgba(255,255,255,.82); margin: 12px 0 0; font-size: 1.02rem; }
.breadcrumb { font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.88); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb-light { color: var(--ink-soft); }
.breadcrumb-light a { color: var(--navy-700); font-weight: 600; }

/* A plain content card — used for the Admissions Requirements/Process blocks and the
   Contact page's message form. (Public-site equivalent of the admin panel's .panel.) */
.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.info-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.info-list li { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .92rem; transition: background .15s ease; }
.info-list li:hover { background: var(--paper-soft); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--ink-soft); font-weight: 600; }
.info-list .v { color: var(--navy-800); font-weight: 700; text-align: right; }

.program-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.program-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.program-row h4 { margin: 0 0 4px; font-size: 1.02rem; }
.program-row p { margin: 0; font-size: .88rem; }
.program-tags { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Timeline / values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value-pill {
  text-align: center; padding: 26px 14px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.value-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.value-pill .num {
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  font-family: var(--font-heading); color: var(--gold-400); font-weight: 800; font-size: 1.05rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(28,63,143,.14); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; font-weight: 500; }
.alert-success { background: #e7f7ef; color: var(--success); border: 1px solid #b9e6cd; }
.alert-error, .alert-danger { background: #fbe9e7; color: var(--danger); border: 1px solid #f2c2ba; }
.alert-info { background: #e9f0fb; color: var(--navy-700); border: 1px solid #c7d7f2; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
.contact-info-card h3 { color: #fff; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(254,41,1,.16); color: var(--gold-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h5 { color: var(--gold-400); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.contact-info-item p { color: rgba(255,255,255,.85); margin: 0; font-size: .92rem; }
.map-wrap { border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 15%, rgba(254,41,1,.22), transparent 45%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-col h4 { color: var(--gold-400); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col p { color: rgba(255,255,255,.68); font-size: .88rem; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { font-size: .82rem; padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.footer-social a:hover { border-color: var(--gold-400); color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.footer-admin-link a { color: rgba(255,255,255,.4); }
.footer-admin-link a:hover { color: var(--gold-400); }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 190;
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }

/* ---------- Pagination-ish / empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 14px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 48px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* =====================================================================
   Responsive breakpoints
   ===================================================================== */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-contact span:last-child { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .main-nav.open { max-height: 600px; opacity: 1; padding: 20px; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 12px 0 0; }
  .header-inner { position: relative; }

  .main-nav ul li.has-dropdown { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .main-nav ul li.has-dropdown a { flex: 1; border-bottom: none; }
  .dropdown-caret { padding: 12px 10px; font-size: .8rem; }
  .dropdown-menu {
    position: static; width: 100%; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; padding: 0; margin: 0; transition: max-height .25s ease;
  }
  .has-dropdown.open .dropdown-menu { max-height: 400px; padding: 4px 0 10px 14px; }
  .dropdown-menu a { padding: 10px 8px; color: var(--ink-soft); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  .section { padding: 52px 0; }
  .program-row { flex-direction: column; align-items: flex-start; }

  .apply-layout { grid-template-columns: 1fr; }
  .apply-summary { position: static; }
  .apply-panel { padding: 24px; }
  .apply-success { padding: 40px 24px; }
  .apply-success-actions { flex-direction: column; }
  .apply-success-actions .btn { width: 100%; }

  .hero-center { padding: 88px 0 76px; }
  .stats-float-card { grid-template-columns: repeat(2, 1fr); margin-top: -44px; }
  .stats-float-item { padding: 22px 14px; }
  .stats-float-item:nth-child(3)::before { display: none; }
  .stats-float-item:nth-child(1)::after, .stats-float-item:nth-child(2)::after {
    content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 1px; background: var(--border);
  }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 80px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-float-num { font-size: 1.6rem; }
  .stats-float-icon { width: 40px; height: 40px; font-size: 1.05rem; }
}
