/* ============================================================
   KIAS Healthcare Institute — Home Page
   Maroon + Gold theme
   ============================================================ */

:root {
  --maroon-900: #0c1838;
  --maroon-800: #12224e;
  --maroon-700: #16294f;
  --maroon-600: #1e3563;
  --maroon-grad: linear-gradient(135deg, #152850 0%, #0a1330 100%);
  --gold: #e33b2e;
  --gold-dark: #c62d22;
  --gold-grad: linear-gradient(135deg, #f4544a 0%, #e0362b 60%, #c62d22 100%);
  --cream: #ffffff;
  --cream-2: #eef3fb;
  --ink: #16233d;
  --muted: #5f6b80;
  --line: #dce4f0;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(12,24,56, 0.08);
  --shadow-md: 0 10px 30px rgba(12,24,56, 0.12);
  --shadow-lg: 0 20px 50px rgba(12,24,56, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--maroon-800);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 14px auto 0;
}

.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold {
  background: var(--gold-grad);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(210,50,40, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(210,50,40, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost {
  background: transparent;
  color: var(--maroon-700);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-2); }

/* ---------- Top Bar ---------- */
.topbar {
  background: linear-gradient(90deg, #0a1430 0%, #1c1c1c 100%);
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar .info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .info span svg { color: var(--gold); width: 16px; height: 16px; }
.topbar .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .socials { display: flex; gap: 14px; }
.topbar .socials a { opacity: .8; transition: opacity .2s; }
.topbar .socials a:hover { opacity: 1; color: var(--gold); }
.topbar .auth-btns { display: flex; gap: 9px; }
.topbar .auth-btns a {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 12.5px; padding: 4px 12px; border-radius: 8px;
  transition: .2s;
}
.topbar .auth-btns a svg { width: 14px; height: 14px; }
.topbar .auth-btns .login { color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.topbar .auth-btns .login:hover { border-color: var(--gold); color: var(--gold); }
.topbar .auth-btns .register { background: var(--gold-grad); color: #ffffff; }
.topbar .auth-btns .register:hover { filter: brightness(1.07); }
@media (max-width: 600px) {
  .topbar .info { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--maroon-grad);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand .logo {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand .name { font-size: 22px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
/* Tagline can be a long institute name — keep it to ~2 tidy lines */
.brand .tag {
  font-size: 9.5px; letter-spacing: 1px; line-height: 1.32; opacity: .8;
  text-transform: uppercase; display: block; margin-top: 3px;
  max-width: 260px; white-space: normal; text-wrap: balance;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { border-radius: 10px; padding: 9px 18px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(12,24,56,0.92) 0%, rgba(12,24,56,0.72) 45%, rgba(20,40,55,0.55) 100%),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat,
    #152a55;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(227,59,46,0.18), transparent 50%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 60px 0; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  font-size: 19px;
  opacity: .92;
  margin: 22px 0 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;   /* show the 1920x700 banners fully at any width */
  max-height: 760px;
  overflow: hidden;
  background: #0c1838;
}
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slider .container { max-width: 1200px; margin: 0 auto; padding-left: clamp(24px, 5vw, 64px); padding-right: 24px; display: block; }
.hero-slider .hero-inner {
  position: relative;
  z-index: 3;
  max-width: 714px;
  margin: 0 auto 0 0;
  padding: 60px 60px;
  text-align: left;
}
.hero-slider .hero-inner h1, .hero-slider .hero-inner p { text-align: left; }
.hero-slider h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1px;
}
.hero-slider h1 .accent { color: var(--gold); }
.hero-slider p { font-size: 19px; opacity: .94; margin: 22px 0 26px; max-width: 560px; }
.hero-slider .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-slider .slide.active h1 { animation: heroUp .8s ease both; }
.hero-slider .slide.active p { animation: heroUp .8s .12s ease both; }
.hero-slider .slide.active .hero-meta,
.hero-slider .slide.active .hero-cta { animation: heroUp .8s .24s ease both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-900); }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }

.slider-dots {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 10px; justify-content: center;
}
.slider-dots .dot {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.4); border: none; transition: .2s; padding: 0;
}
.slider-dots .dot.active { background: var(--gold); width: 30px; border-radius: 6px; }

@media (max-width: 760px) {
  /* Mobile: keep the banner's natural 1920:700 ratio so it shows FULLY (no crop/zoom).
     The old min-height forced a tall portrait box that cropped the wide banner. */
  .hero-slider { aspect-ratio: 1920 / 700; max-height: none; }
  .hero-slider .slide { background-size: cover; background-position: center; }
  .slider-arrow { width: 32px; height: 32px; font-size: 19px; border-width: 1px; }
  .slider-arrow.prev { left: 8px; } .slider-arrow.next { right: 8px; }
  .slider-dots { bottom: 9px; gap: 7px; }
  .slider-dots .dot { width: 8px; height: 8px; }
  .slider-dots .dot.active { width: 20px; border-radius: 5px; }
}
@media (max-width: 420px) {
  /* Very small phones: hide arrows (dots are enough) to keep the strip clean */
  .slider-arrow { display: none; }
}

/* ---------- Highlights / Stats band ---------- */
.highlights {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.stat .num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--maroon-700);
  line-height: 1;
}
.stat .label { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 8px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.icon-badge {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3ebf6, #d3deef);
  color: var(--maroon-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; color: var(--maroon-800); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Why Choose (dark cards) ---------- */
.why { background: var(--maroon-grad); color: #fff; }
.why .section-title { color: #fff; }
.why .section-sub { color: rgba(255,255,255,0.78); }
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .25s, background .25s;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.11); }
.why-card .icon-badge {
  background: var(--gold-grad); color: var(--maroon-900);
  margin: 0 auto 18px;
}
.why-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 14.5px; }

/* ---------- Programs (featured) ---------- */
.prog-card {
  overflow: hidden; padding: 0; display: flex; flex-direction: column;
  position: relative; color: inherit;
}
.prog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease; z-index: 4;
}
.prog-card:hover::before { transform: scaleX(1); }
.prog-card .thumb { height: 195px; position: relative; overflow: hidden; }
.prog-card .thumb-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.prog-card:hover .thumb-img { transform: scale(1.09); }
.prog-card .thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,24,56,0) 40%, rgba(12,24,56,0.45) 100%);
}
.prog-card .badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--gold-grad); color: var(--maroon-900);
  font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  letter-spacing: .3px; box-shadow: 0 4px 10px rgba(12,24,56,.2);
}
.prog-card .prog-icon {
  position: absolute; bottom: -22px; right: 20px; z-index: 3;
  width: 52px; height: 52px; border-radius: 15px;
  background: #fff; color: var(--maroon-700);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(12,24,56,.20); border: 1px solid var(--line);
  transition: transform .3s ease, background .3s, color .3s;
}
.prog-card .prog-icon svg { width: 25px; height: 25px; }
.prog-card:hover .prog-icon { transform: translateY(-4px) rotate(-6deg); background: var(--gold-grad); color: var(--maroon-900); }
.prog-card .body { padding: 30px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.prog-card .prog-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gold-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 9px;
}
.prog-card .prog-meta svg { width: 15px; height: 15px; }
.prog-card .body h3 { font-size: 18.5px; margin-bottom: 9px; line-height: 1.25; }
.prog-card .body p { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 18px; }
.prog-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 700; color: var(--maroon-700); font-size: 14.5px;
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: .25s;
}
.prog-link .arr { transition: transform .25s ease; font-size: 17px; }
.prog-card:hover .prog-link { color: var(--gold-dark); border-bottom-color: var(--gold); }
.prog-card:hover .prog-link .arr { transform: translateX(6px); }

/* ---------- Student Success ---------- */
.success { background: var(--cream-2); }
/* Testimonials — quote-first, no photos (elegant monogram) */
.testi-card { position: relative; text-align: left; padding: 30px 26px 24px; display: flex; flex-direction: column; border-top: 3px solid var(--gold); }
.testi-mark { position: absolute; top: 6px; right: 22px; font-family: Georgia, 'Times New Roman', serif; font-size: 72px; line-height: 1; color: var(--cream-2); user-select: none; }
.testi-card .quote { color: #334155; font-size: 15.5px; line-height: 1.75; margin: 4px 0 0; position: relative; border: 0; padding: 0; }
.testi-card .stars { color: var(--gold); margin: 16px 0 16px; letter-spacing: 2px; font-size: 15px; }
.testi-by { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.testi-monogram { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); color: #ffffff; font-weight: 800; font-size: 19px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(210,50,40,.32); }
.testi-meta { display: flex; flex-direction: column; }
.testi-card .who { font-weight: 800; color: var(--maroon-800); font-size: 15.5px; }
.testi-card .role { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   NEWS & EVENTS — magazine layout (home)
   ============================================================ */
.news-section { background: var(--cream); }
/* Section header with title left + action button right */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.sec-head-txt .section-title { margin: 6px 0 6px; }
.sec-head-sub { color: var(--muted); font-size: 15px; max-width: 560px; }
.sec-head-btn { flex-shrink: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 6px 13px; border-radius: 999px; }
.chip-gold { background: var(--gold-grad); color: #ffffff; text-transform: uppercase; }
.chip-glass { background: rgba(10,18,42,.55); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.28); }

.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: stretch; }

/* Featured card — image on top, floating red date badge, content below */
.news-feat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 34px rgba(12,24,56,.09); transition: transform .28s ease, box-shadow .28s ease; }
.news-feat:hover { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(12,24,56,.17); }
.news-feat-media { position: relative; height: 300px; overflow: hidden; }
.news-feat-img { position: absolute; inset: 0; background: var(--maroon-grad) center/cover no-repeat; transition: transform .55s ease; }
.news-feat:hover .news-feat-img { transform: scale(1.06); }
.news-feat-chips { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
.news-date-badge { position: absolute; right: 18px; bottom: 16px; z-index: 3; width: 62px; height: 66px; border-radius: 14px; background: var(--gold-grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(210,50,40,.42); }
.news-date-badge b { font-size: 24px; font-weight: 800; line-height: 1; }
.news-date-badge span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.news-feat-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.news-feat-meta { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .04em; }
.news-feat-meta svg { width: 15px; height: 15px; }
.news-feat-meta .dot-sep { color: var(--line); margin: 0 2px; }
.news-feat-body h3 { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.28; color: var(--maroon-800); margin: 12px 0 10px; transition: color .2s ease; }
.news-feat:hover .news-feat-body h3 { color: var(--maroon-700); }
.news-feat-body p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.news-feat-read { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 800; font-size: 14.5px; color: var(--gold); }
.news-feat-read svg { width: 18px; height: 18px; transition: transform .2s ease; }
.news-feat:hover .news-feat-read svg { transform: translateX(4px); }

/* Side list — continuous upward auto-scroll (vertical marquee) */
.news-list { position: relative; overflow: hidden; min-height: 470px; }
.news-list-track { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; animation: newsScroll 22s linear infinite; will-change: transform; }
.news-list:hover .news-list-track, .news-list.paused .news-list-track { animation-play-state: paused; }
@keyframes newsScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.news-item { position: relative; display: flex; gap: 15px; align-items: stretch; margin: 0 0 16px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.news-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.news-item:hover { box-shadow: 0 16px 34px rgba(12,24,56,.14); transform: translateX(4px); }
.news-item:hover::before { transform: scaleY(1); }
.news-item-img { position: relative; flex-shrink: 0; width: 120px; border-radius: 12px; background: var(--maroon-grad) center/cover no-repeat; overflow: hidden; }
.news-item-tag { position: absolute; left: 7px; top: 7px; background: rgba(10,18,42,.68); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(3px); }
.news-item-body { display: flex; flex-direction: column; justify-content: center; padding: 4px 6px 4px 2px; }
.news-item-date { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.news-item-date svg { width: 13px; height: 13px; }
.news-item-body strong { color: var(--maroon-800); font-size: 14.5px; line-height: 1.35; font-weight: 700; }
.news-item-read { margin-top: 8px; font-size: 12.5px; font-weight: 800; color: var(--maroon-700); }
.news-item:hover .news-item-read { color: var(--gold-dark); }
.news-photos { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(10,18,42,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.news-card .thumb { position: relative; }

/* News detail meta + gallery */
.news-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 20px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.news-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.news-meta-row svg { width: 16px; height: 16px; color: var(--gold-dark); }
.news-tag { background: var(--cream-2); color: var(--maroon-800) !important; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-weight: 700; }
.gallery-heading { color: var(--maroon-800); font-size: 20px; margin: 34px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--cream-2); }
.news-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* News cover — show the FULL poster image, never cropped */
.news-cover { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream-2); }

/* ============================================================
   CAMPUS LIFE — home tile grid + full-page masonry
   ============================================================ */
.cl-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; grid-auto-flow: dense; }
.cl-item { position: relative; padding: 0; border: 0; cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.cl-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.cl-item:hover img { transform: scale(1.08); }
.cl-item.cl-feature { grid-column: span 2; grid-row: span 2; }
.cl-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,35,0) 55%, rgba(8,15,35,.5)); opacity: 0; transition: opacity .25s ease; }
.cl-item:hover::after { opacity: 1; }
.cl-zoom { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.7); width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); color: #ffffff; display: grid; place-items: center; opacity: 0; transition: .25s ease; }
.cl-item:hover .cl-zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.cl-cap { position: absolute; z-index: 2; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.8); opacity: 0; transition: .25s ease; }
.cl-item:hover .cl-cap { opacity: 1; }

/* Full gallery page — CSS masonry */
.cl-masonry { columns: 4 220px; column-gap: 12px; }
.cl-masonry .cl-item { display: block; width: 100%; height: auto; margin: 0 0 12px; break-inside: avoid; }
.cl-masonry .cl-item img { height: auto; }

/* ============================================================
   SHARED LIGHTBOX
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(8,15,35,.92); backdrop-filter: blur(4px); }
.lb[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #ffffff; }

/* ============================================================
   INSTITUTE CAMPUS TOUR
   ============================================================ */
.tour-section { background: linear-gradient(150deg, #122145 0%, #0c1836 55%, #091026 100%); color: #eaf0f8; }
.tour-grid { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 34px; align-items: center; }
.tour-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 14px 0 14px; }
.tour-copy > p { color: #b9c6da; font-size: 15.5px; line-height: 1.7; max-width: 420px; }
.tour-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; font-size: 12.5px; letter-spacing: .16em; background: rgba(227,59,46,.12); border: 1px solid rgba(227,59,46,.35); padding: 8px 16px; border-radius: 999px; }
.tour-eyebrow .dash { width: 16px; height: 2px; background: var(--gold); border-radius: 2px; }
.tour-stats { display: flex; gap: 30px; margin: 26px 0; flex-wrap: wrap; }
.tour-stat .num { display: block; color: var(--gold); font-size: 30px; font-weight: 800; line-height: 1; }
.tour-stat .lbl { display: block; color: #9fb0c7; font-size: 13px; margin-top: 6px; }
.tour-btn { border-radius: 999px; }
.tour-main { position: relative; }
.tour-media { display: block; position: relative; width: 100%; height: 360px; border-radius: var(--radius-lg); background: #08111f center/cover no-repeat; box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; }
.tour-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,31,0) 55%, rgba(8,17,31,.35)); }
.tour-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; background: var(--gold-grad); color: #ffffff; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0,0,0,.45); transition: transform .2s ease; }
.tour-play::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(227,59,46,.4); animation: tourPulse 2.4s ease-out infinite; }
a.tour-media:hover .tour-play { transform: translate(-50%,-50%) scale(1.08); }
@keyframes tourPulse { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.tour-thumbs { display: flex; flex-direction: column; gap: 14px; width: 150px; }
.tour-thumb { position: relative; height: 78px; border-radius: 14px; background: #08111f center/cover no-repeat; border: 2px solid rgba(255,255,255,.12); overflow: hidden; transition: .2s ease; }
.tour-thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.tour-thumb span { position: absolute; left: 8px; bottom: 7px; right: 8px; color: #fff; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.9); line-height: 1.2; }
.tour-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,31,0) 45%, rgba(8,17,31,.7)); }
.tour-thumb span { z-index: 2; }

/* ---------- Admissions Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step .num-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--maroon-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  margin: 0 auto 16px;
}
.step h4 { color: var(--maroon-800); font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step:not(:last-child)::after {
  content: '→'; position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%); color: var(--gold); font-size: 22px; font-weight: 700; z-index: 2;
}

/* ---------- News ---------- */
.news-card { padding: 0; overflow: hidden; }
.news-card .thumb { height: 200px; background: var(--maroon-grad) center/cover; }
.news-card .body { padding: 22px 22px 26px; }
.news-card .date { font-size: 12.5px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.news-card h3 { font-size: 18px; margin: 8px 0 8px; }
.news-card .read { color: var(--maroon-700); font-weight: 700; font-size: 14px; }

/* ---------- Statistics band ---------- */
.statband {
  background: var(--maroon-grad);
  color: #fff;
  text-align: center;
}
.statband .stats-grid { grid-template-columns: repeat(4, 1fr); }
.statband .stat .num { color: var(--gold); }
.statband .stat .label { color: rgba(255,255,255,0.8); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .item .ic {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #e3ebf6, #d3deef); color: var(--maroon-700);
  display: grid; place-items: center;
}
.contact-info .item h4 { color: var(--maroon-800); font-size: 16px; }
.contact-info .item p { color: var(--muted); font-size: 15px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,59,46,0.15); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.alert-success {
  background: #e7f6ec; border: 1px solid #b6e0c4; color: #1f6b3a;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: var(--maroon-900); color: rgba(255,255,255,0.72); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer .brand { margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--gold); }
.footer .desc { font-size: 14.5px; max-width: 320px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  color: #fff; transition: background .2s;
}
.footer .socials a:hover { background: var(--gold); color: var(--maroon-900); }
.footer .newsletter { display: flex; gap: 8px; margin-top: 14px; }
.footer .newsletter input {
  flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-family: inherit;
}
.footer .newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; text-align: center; font-size: 13.5px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--maroon-grad);
  background-color: var(--maroon-800);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 92px 0 78px;
  text-align: center;
  overflow: hidden;
}
/* Readability overlay when a background image is set */
.page-hero.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(227,59,46,.20), transparent 46%),
    linear-gradient(90deg, rgba(12,24,56,.94) 0%, rgba(12,24,56,.82) 42%, rgba(12,24,56,.60) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-hero .crumb { color: rgba(255,255,255,0.82); margin-top: 10px; font-size: 15px; }
.page-hero .crumb a { color: var(--gold-l); }
.page-hero .crumb a:hover { color: #fff; }

.prose { max-width: 820px; margin: 0 auto; color: #334155; font-size: 16.5px; }
.prose p { margin-bottom: 16px; }
.prose h2, .prose h3 { color: var(--maroon-800); margin: 28px 0 12px; }

.value-card { text-align: center; }
.value-card .icon-badge { margin: 0 auto 16px; }

.fac-card { text-align: center; padding: 28px 22px; }
.fac-card .avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--gold); background: var(--cream-2); }
.fac-card h3 { font-size: 18px; color: var(--maroon-800); margin-bottom: 4px; }
.fac-card .desig { color: var(--gold-dark); font-weight: 600; font-size: 14px; }
.fac-card .dept { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-meta { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.detail-meta .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-meta .row:last-child { border: 0; }
.detail-meta .row .k { font-weight: 700; color: var(--maroon-800); min-width: 110px; }
.detail-hero-img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 28px; }
@media (max-width: 860px){ .detail-grid { grid-template-columns: 1fr; } .detail-meta{ position: static; } }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; list-style: none; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--maroon-700); font-weight: 600; }
.pagination .active span { background: var(--maroon-700); color: #fff; border-color: var(--maroon-700); }
.pagination [aria-disabled] span { color: #ccc; }

/* ---------- Auth pages ---------- */
.auth-section { padding: 60px 0 80px; }
.auth-card {
  max-width: 460px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-md);
}
.auth-card .logo { width: 64px; margin: 0 auto 14px; display: block; }
.auth-card h1 { text-align: center; font-size: 26px; color: var(--maroon-800); }
.auth-card .sub { text-align: center; color: var(--muted); margin: 6px 0 26px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.auth-card input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 15px; background: var(--cream);
}
.auth-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,59,46,0.15); background: #fff; }
.auth-card .alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.auth-card .alt a { color: var(--maroon-700); font-weight: 700; }
.auth-card .err-box { background: #eef3fb; color: #b3261e; border: 1px solid #f3c9c4; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .topbar .info { display: none; }
  .menu-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--maroon-800); padding: 10px 24px 20px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid, .statband .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ============================================================
   DEPARTMENTS DROPDOWN (header nav)
   ============================================================ */
.has-drop { position: relative; }
.nav-links .has-drop > .drop-toggle { display: inline-flex; align-items: center; gap: 7px; }
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .8; transition: transform .2s ease;
}
.has-drop:hover .caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(12,24,56, .20);
  padding: 18px 18px 14px; min-width: 560px;
  display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 2px 26px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
/* invisible bridge so the menu doesn't close while moving the cursor to it */
.drop-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-drop:hover .drop-menu,
.has-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-col { display: flex; flex-direction: column; }
.drop-head {
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 800; padding: 8px 10px 6px;
}
.nav-links .drop-menu a {
  color: var(--maroon-800); font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 9px; line-height: 1.35;
}
.nav-links .drop-menu a::after { display: none; }
.nav-links .drop-menu a:hover { background: var(--cream-2); color: var(--maroon-900); }
.nav-links .drop-menu a.drop-all {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--line); border-radius: 0;
  color: var(--gold-dark); font-weight: 800; text-align: center;
}
.nav-links .drop-menu a.drop-all:hover { background: transparent; color: var(--maroon-800); }

/* ============================================================
   FACULTY (grid + profile)
   ============================================================ */
.fac-card { padding: 30px 22px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.fac-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,24,56, .14); }
.fac-card .quals { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.fac-card .fac-view {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--maroon-800); border: 1.5px solid var(--line); background: var(--cream);
  transition: .2s ease;
}
.fac-card .fac-view:hover { background: var(--gold-grad); border-color: transparent; color: #fff; }
.fac-dept-head {
  display: flex; align-items: center; gap: 14px;
  margin: 42px 0 22px; color: var(--maroon-800); font-size: 20px; font-weight: 800;
}
.fac-dept-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fac-dept-head .count {
  font-size: 12px; font-weight: 700; color: var(--gold-dark);
  background: var(--cream-2); border-radius: 999px; padding: 4px 12px;
}

/* Faculty profile page */
.prof-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.prof-card { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; position: sticky; top: 96px; }
.prof-card .avatar-lg { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); margin: 0 auto 18px; display: block; background: #fff; }
.prof-card h2 { color: var(--maroon-800); font-size: 21px; margin-bottom: 4px; }
.prof-card .desig { color: var(--gold-dark); font-weight: 700; font-size: 14px; }
.prof-card .dept { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.prof-meta { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.prof-meta .row { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; }
.prof-meta .row .k { font-weight: 700; color: var(--maroon-800); min-width: 92px; }
.prof-body h3 { color: var(--maroon-800); font-size: 19px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.prof-body + .prof-body { margin-top: 30px; }
.qual-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qual-list li { background: var(--cream-2); border: 1px solid var(--line); color: var(--maroon-800); font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; }
@media (max-width: 860px) { .prof-grid { grid-template-columns: 1fr; } .prof-card { position: static; } }

/* Dropdown + faculty on mobile */
@media (max-width: 760px) {
  .has-drop { width: 100%; }
  .nav-links.open .has-drop > .drop-toggle { display: flex; justify-content: space-between; }
  .drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: block; min-width: 0; padding: 4px 0 10px 14px;
    background: transparent; border: 0; box-shadow: none;
  }
  .drop-menu::before { display: none; }
  .drop-head { color: var(--gold); padding: 10px 0 4px; }
  .nav-links .drop-menu a { color: rgba(255,255,255,.85); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-links .drop-menu a:hover { background: transparent; color: #fff; }
  .nav-links .drop-menu a.drop-all { text-align: left; border-top-color: rgba(255,255,255,.15); color: var(--gold); }
  .caret { display: none; }
}

/* ============================================================
   LEADERSHIP MESSAGES (About page)
   ============================================================ */
.msg-wrap { display: grid; gap: 28px; margin-top: 40px; }
.msg-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 42px 34px;
  box-shadow: 0 22px 55px rgba(12,24,56,.10);
}
.msg-quote {
  position: absolute; top: 16px; right: 32px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 108px; line-height: 1;
  color: var(--cream-2); user-select: none; z-index: 0;
}
.msg-title { color: var(--maroon-800); font-size: 24px; font-weight: 800; margin-bottom: 20px; position: relative; z-index: 1; }
.msg-title::after { content: ''; display: block; width: 58px; height: 3px; background: var(--gold-grad); border-radius: 3px; margin-top: 12px; }
.msg-body { color: #3a465c; line-height: 1.95; font-size: 16px; position: relative; z-index: 1; }
.msg-body br + br { content: ''; display: block; margin-top: 10px; }
.msg-sign { margin-top: 26px; padding-top: 20px; padding-left: 16px; border-top: 1px dashed var(--line); position: relative; }
.msg-sign::before { content: ''; position: absolute; left: 0; top: 20px; bottom: 4px; width: 4px; border-radius: 3px; background: var(--gold-grad); }
.msg-name { display: block; color: var(--maroon-800); font-weight: 800; font-size: 18px; }
.msg-desig { display: block; color: var(--gold-dark); font-weight: 700; font-size: 13.5px; margin-top: 3px; }
.msg-quals { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.drop-menu.drop-menu-sm { min-width: 268px; grid-template-columns: 1fr; }
/* Departments: vertical dropdown of categories, each opening a sub-menu */
.drop-menu.drop-menu-list { grid-template-columns: 1fr; min-width: 288px; gap: 0; overflow: visible; }

.drop-sub { position: relative; }
.nav-links .drop-sub > .drop-sub-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub-caret {
  width: 0; height: 0; flex-shrink: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor; opacity: .55; transition: transform .2s ease, opacity .2s ease;
}
.drop-sub:hover .sub-caret { opacity: 1; transform: translateX(2px); }
.nav-links .drop-sub:hover > .drop-sub-toggle { background: var(--cream-2); color: var(--maroon-900); }

.sub-menu {
  position: absolute; top: -10px; left: calc(100% + 8px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(12,24,56, .20);
  padding: 12px; min-width: 290px;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
/* hover bridge across the gap */
.sub-menu::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.drop-sub:hover > .sub-menu, .drop-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateX(0); }

@media (max-width: 760px) {
  .drop-menu.drop-menu-sm, .drop-menu.drop-menu-list { min-width: 0; }
  /* sub-menus expand inline on mobile */
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 6px 14px; min-width: 0;
  }
  .sub-menu::before { display: none; }
  .sub-caret { display: none; }
  .nav-links .drop-sub > .drop-sub-toggle { font-weight: 700; color: var(--gold); }
}

/* ============================================================
   FACULTY GRID — professional team cards
   ============================================================ */
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 46px; }
.fac-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.fac-item:hover { transform: translateY(-8px); box-shadow: 0 26px 54px rgba(12,24,56, .18); border-color: transparent; }
/* Photos come from the departments at mixed sizes/framing (headshots + full-body),
   so they are shown as circular avatars — a fixed-ratio crop distorted them. */
.fac-photo {
  position: relative; display: block; text-align: center;
  padding: 30px 0 26px;
  background: linear-gradient(165deg, var(--cream-2) 0%, #fff 78%);
  border-bottom: 3px solid var(--gold);
}
.fac-photo::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 28%, rgba(227,59,46,.10), transparent 62%);
}
.fac-photo img {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; object-position: center top; margin: 0 auto;
  border: 4px solid #fff; outline: 2px solid var(--gold); outline-offset: 1px;
  background: var(--cream-2); box-shadow: 0 8px 22px rgba(12,24,56, .16);
  transition: transform .35s ease;
}
.fac-item:hover .fac-photo img { transform: scale(1.06); }
.fac-ov {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; opacity: 0; transition: opacity .28s ease;
}
.fac-item:hover .fac-ov { opacity: 1; }
.fac-cta {
  color: var(--maroon-800); font-weight: 700; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; background: rgba(255,255,255,.9);
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 5px 14px;
}
.fac-info {
  padding: 20px 18px 22px; text-align: center;
  flex: 1; display: flex; flex-direction: column; align-items: center;
}
.fac-info h3 { font-size: 17px; color: var(--maroon-800); margin-bottom: 5px; line-height: 1.3; }
.fac-role { color: var(--gold-dark); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.fac-chip {
  display: inline-block; margin-top: 11px; background: var(--cream-2); border: 1px solid var(--line);
  color: var(--maroon-700); font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.fac-quals { color: var(--muted); font-size: 12.8px; line-height: 1.6; margin-top: 11px; }
.fac-link {
  margin-top: auto; padding-top: 15px; color: var(--maroon-800); font-weight: 700; font-size: 13px;
  display: inline-flex; gap: 6px; align-items: center;
}
.fac-link span { transition: transform .25s ease; }
.fac-item:hover .fac-link span { transform: translateX(4px); }
.fac-link:hover { color: var(--gold-dark); }
/* compact variant (related faculty on a profile page) */
.fac-grid.is-compact { gap: 18px; margin-top: 18px; }
.fac-grid.is-compact .fac-info { padding: 14px 12px 16px; }
.fac-grid.is-compact .fac-info h3 { font-size: 15px; }
.fac-grid.is-compact .fac-quals { display: none; }
@media (max-width: 1100px) { .fac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 520px)  { .fac-grid { grid-template-columns: 1fr; } }
.fac-grid.is-compact .fac-photo { padding: 20px 0 18px; }
.fac-grid.is-compact .fac-photo img { width: 92px; height: 92px; }

/* ============================================================
   FACULTY PROFILE — rich sections
   ============================================================ */
.exp-list { list-style: none; padding: 0; margin: 0; }
.exp-list li { position: relative; padding: 8px 0 8px 22px; color: #334155; line-height: 1.7; border-bottom: 1px dashed var(--line); }
.exp-list li:last-child { border-bottom: 0; }
.exp-list li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.exp-list li strong { color: var(--maroon-800); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: var(--cream-2); border: 1px solid var(--line); color: var(--maroon-800); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; transition: .2s; }
.tag-pill:hover { background: var(--gold-grad); border-color: transparent; color: #ffffff; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.check-list li { position: relative; padding: 6px 0 6px 26px; color: #334155; line-height: 1.55; font-size: 14.5px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; font-size: 11px; font-weight: 800; color: #fff; background: var(--gold); border-radius: 50%; display: grid; place-items: center; }
@media (max-width: 600px) { .check-list { grid-template-columns: 1fr; } }

.pub-list { margin: 0; padding-left: 0; list-style: none; counter-reset: pub; }
.pub-list li { counter-increment: pub; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); color: #334155; line-height: 1.65; font-size: 14.5px; }
.pub-list li:last-child { border-bottom: 0; }
.pub-list li::before { content: counter(pub); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; font-size: 12.5px; font-weight: 800; color: var(--maroon-800); background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.pub-count { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold-dark); background: var(--cream-2); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 6px; }

/* ============================================================
   PROGRAM DETAIL — professional sidebar
   ============================================================ */
.detail-main .prog-summary { font-size: 18px; color: var(--maroon-800); font-weight: 600; line-height: 1.6; margin-bottom: 20px; }
.kp h2.prog-anchor, .prog-anchor { scroll-margin-top: 96px; }

.detail-aside { position: relative; }
.side-stack { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card-head { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--maroon-800); font-size: 15.5px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--cream-2); }
.side-card-head .side-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--gold-grad); color: #ffffff; flex-shrink: 0; }
.side-card-head .side-ic svg { width: 17px; height: 17px; }

/* facts */
.side-facts .srow { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.side-facts .srow:last-of-type { border-bottom: 0; }
.side-facts .srow .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); }
.side-facts .srow .v { color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.side-apply { width: 100%; justify-content: center; margin-top: 16px; }
.side-enquire { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.side-enquire:hover { color: var(--maroon-800); }

/* on this page (ToC) */
.side-toc .toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-toc .toc-list li { margin: 0; }
.side-toc .toc-list a {
  display: block; position: relative; padding: 8px 10px 8px 16px; border-radius: 8px;
  color: #5f6b80; font-size: 14px; font-weight: 600; line-height: 1.4; transition: .18s ease;
  border-left: 2px solid transparent;
}
.side-toc .toc-list a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 0; background: var(--gold); transition: height .2s ease; }
.side-toc .toc-list a:hover { background: var(--cream-2); color: var(--maroon-800); }
.side-toc .toc-list a.active { color: var(--maroon-800); background: var(--cream-2); font-weight: 800; }
.side-toc .toc-list a.active::before { height: 60%; }

/* other departments */
.side-links { list-style: none; margin: 0 0 8px; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 4px; color: var(--maroon-800); font-weight: 600; font-size: 14px; transition: .18s; }
.side-links a span { color: var(--gold-dark); transition: transform .2s; }
.side-links a:hover { color: var(--gold-dark); padding-left: 8px; }
.side-links a:hover span { transform: translateX(3px); }
.side-all { display: block; text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; color: var(--gold-dark); font-size: 13.5px; }
.side-all:hover { color: var(--maroon-800); }

@media (max-width: 980px) {
  .side-stack { position: static; }
  .side-toc { display: none; }  /* ToC not useful once the sidebar drops below the content */
}

/* Leadership message card WITH portrait (chairman/principal photo) */
.msg-card.has-photo { display: grid; grid-template-columns: 320px 1fr; gap: 0; padding: 0; overflow: hidden; border-radius: 22px; }
.msg-portrait {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(160deg, #17285a 0%, #0c1838 100%);
  padding: 46px 30px 40px;
}
/* red glow + a big faint quotation-mark watermark fill the panel */
.msg-portrait::before { content: ''; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(227,59,46,.28), transparent 68%); }
.msg-portrait::after { content: '\201C'; position: absolute; bottom: -50px; left: 12px; font-family: Georgia, serif; font-size: 210px; line-height: 1; color: rgba(255,255,255,.06); }
.msg-portrait-inner { position: sticky; top: 30px; z-index: 1; }
.msg-portrait img {
  width: 158px; height: 158px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 4px solid rgba(255,255,255,.92); outline: 3px solid var(--gold); outline-offset: 3px;
  box-shadow: 0 16px 40px rgba(0,0,0,.42); margin-bottom: 20px; background: #fff;
}
.msg-portrait-name { display: block; font-weight: 800; font-size: 19px; line-height: 1.3; }
.msg-portrait-desig { display: block; font-size: 13px; opacity: .85; margin-top: 6px; line-height: 1.5; }
.msg-portrait-badge { display: inline-block; margin-top: 18px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--gold); border: 1px solid rgba(212,160,23,.45); padding: 6px 15px; border-radius: 999px; }
.msg-card.has-photo .msg-content { padding: 44px 46px 38px; position: relative; }
.msg-card.has-photo .msg-quote { top: 18px; right: 30px; }
@media (max-width: 760px) {
  .msg-card.has-photo { grid-template-columns: 1fr; }
  .msg-portrait { padding: 34px 24px 28px; }
  .msg-portrait-inner { position: static; }
  .msg-portrait img { width: 122px; height: 122px; }
  .msg-portrait::after { font-size: 150px; bottom: -30px; }
  .msg-card.has-photo .msg-content { padding: 30px 22px 26px; }
  .msg-card { padding: 28px 22px 24px; }
  .msg-quote { font-size: 72px; right: 18px; }
}

/* ============================================================
   ADMISSIONS POPUP
   ============================================================ */
body.adm-lock { overflow: hidden; }
.adm-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,18,42, .60); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .32s ease;
}
/* When hidden it must NOT capture clicks (the .adm-overlay display:flex above
   would otherwise override the `hidden` attribute and block the whole page). */
.adm-overlay[hidden] { display: none !important; }
.adm-overlay.show { opacity: 1; }
.adm-modal {
  position: relative; width: 100%; max-width: 840px;
  display: grid; grid-template-columns: 290px 1fr;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5);
  transform: translateY(26px) scale(.965); opacity: .4;
  transition: transform .38s cubic-bezier(.2,.9,.3,1.1), opacity .38s ease;
}
.adm-overlay.show .adm-modal { transform: translateY(0) scale(1); opacity: 1; }

.adm-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--maroon-800); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.adm-close:hover { background: #fff; transform: rotate(90deg); }

/* Left side panel */
.adm-side {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #152850 0%, #0a1330 100%);
  background-size: cover; background-position: center;
  color: #fff; padding: 34px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.adm-side-glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 15%, rgba(227,59,46,.35), transparent 55%); }
.adm-side > * { position: relative; z-index: 1; }
.adm-logo { width: 76px; height: 76px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.28); margin-bottom: 6px; }
.adm-logo img { width: 100%; height: 100%; object-fit: contain; }
.adm-badge {
  display: inline-block; background: var(--gold-grad); color: #ffffff;
  font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(210,50,40,.4);
}
.adm-side-name { font-size: 20px; font-weight: 800; letter-spacing: 1px; margin-top: 6px; }
.adm-side-tag { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }

/* Body */
.adm-body { padding: 40px 38px 34px; }
.adm-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.adm-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--maroon-800); line-height: 1.12; letter-spacing: -.5px; }
.adm-sub { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 12px; }
.adm-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.adm-points li { display: flex; align-items: flex-start; gap: 10px; color: #334155; font-size: 14.5px; line-height: 1.45; }
.adm-points li svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; background: var(--gold-grad); border-radius: 50%; padding: 4px; margin-top: 1px; }
.adm-deadline {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: #eef3fb; border: 1px solid #dce4f0; color: var(--maroon-800);
  font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 10px;
}
.adm-deadline svg { width: 17px; height: 17px; color: var(--gold-dark); }
.adm-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.adm-apply { border-radius: 12px; }
.adm-later { background: none; border: 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.adm-later:hover { color: var(--maroon-800); text-decoration: underline; }

@media (max-width: 680px) {
  .adm-modal { grid-template-columns: 1fr; max-width: 440px; }
  .adm-side { padding: 26px 20px 22px; flex-direction: row; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .adm-logo { width: 54px; height: 54px; margin: 0; }
  .adm-side-name, .adm-side-tag { width: 100%; }
  .adm-side-name { margin-top: 0; font-size: 17px; }
  .adm-body { padding: 26px 22px 24px; }
  .adm-points li { font-size: 13.5px; }
}

/* =========================================================================
   MOBILE FIXES  (kept at the very end so these rules win over earlier ones)
   1) Program-detail pages: the course tables are min-width:520px inside a
      .kp-tw{overflow-x:auto} wrapper, but a CSS-grid item defaults to
      min-width:auto and refuses to shrink — so the whole page grew to 520px
      and everything got clipped on phones. min-width:0 lets the wrapper
      scroll the table on its own instead of stretching the page.
   2) Mobile menu: consistent full-width rows, no duplicated captions, and it
      scrolls on its own when the department list is long.
   ========================================================================= */

/* --- 1) Program detail: contain wide content --- */
.detail-grid { min-width: 0; }
.detail-main, .detail-aside, .side-stack, .side-card,
.prose, #programContent, .kp, .kp .kp-tw { min-width: 0; max-width: 100%; }
.prose img, .kp img { max-width: 100%; height: auto; }
.detail-hero-img { max-width: 100%; }
.prose, .kp { overflow-wrap: break-word; }

@media (max-width: 760px) {
  .detail-hero-img { height: 210px; }   /* 340px is too tall on a phone */
  .detail-grid { gap: 26px; }

  /* --- 2) Mobile menu --- */
  .nav-links.open {
    align-items: stretch;                /* rows fill the width (were centred) */
    max-height: calc(100vh - 76px);      /* never taller than the screen ...   */
    overflow-y: auto;                    /* ... it scrolls inside itself       */
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 22px 40px rgba(0, 0, 0, .35);
  }
  .nav-links.open > a { width: 100%; text-align: left; }   /* Home/Faculty/Blogs/Contact */

  /* Remove the duplicated section / category captions — the tappable row above
     each list already shows the same name (e.g. "Medical & Clinical Sciences"). */
  .nav-links.open .drop-head { display: none; }

  /* Hide the "Apply Now" button on phones — keeps the header clean (Apply is in
     the menu ▸ Contact). The hamburger stays. */
  .nav-actions .btn { display: none; }
}

/* Small phones: tighten the long tagline so the hamburger has clear room */
@media (max-width: 480px) {
  .brand .name { font-size: 20px; }
  .brand .tag { max-width: 200px; font-size: 9px; letter-spacing: .5px; }
}

/* --- 3) News, Campus Life & Campus Tour responsiveness --- */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-feat-media { height: 260px; }
  .cl-grid { grid-template-columns: repeat(3, 1fr); }
  .cl-masonry { columns: 3 180px; }
  .tour-grid { grid-template-columns: 1fr; gap: 30px; }
  .tour-copy > p { max-width: none; }
  .tour-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
  .tour-thumb { flex: 1 0 130px; height: 88px; }
  .tour-media { height: 300px; }
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sec-head .section-title { text-align: left; }
}
@media (max-width: 620px) {
  .news-gallery { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .news-feat-media { height: 210px; }
  .news-feat-body { padding: 22px 20px 22px; }
  .news-item-img { width: 100px; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 9px; }
  .cl-masonry { columns: 2 140px; column-gap: 9px; }
  .cl-masonry .cl-item { margin-bottom: 9px; }
  .tour-media { height: 220px; }
  .tour-play { width: 66px; height: 66px; }
  .tour-stats { gap: 22px; }
  .tour-stat .num { font-size: 25px; }
  .lb-nav { width: 42px; height: 42px; font-size: 28px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}


/* ============================================================
   CAMPUS TOUR — video popup player
   ============================================================ */
button.tour-media { border: 0; padding: 0; font: inherit; }
a.tour-media, button.tour-media { cursor: pointer; display: block; }

.vmodal { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,10,20,.92); backdrop-filter: blur(4px); }
.vmodal[hidden] { display: none; }
.vmodal-inner { position: relative; width: min(1000px, 94vw); aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vmodal-inner video, .vmodal-inner iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; }
.vmodal-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; transition: .2s; z-index: 2; }
.vmodal-close:hover { background: var(--gold); color: #ffffff; }
@media (max-width: 620px) { .vmodal-close { top: 10px; right: 12px; width: 40px; height: 40px; } }

/* ============================================================
   WHITE HEADER / MENU — navy logo & links on a clean white bar
   (Footer keeps its white-boxed logo on the navy footer.)
   ============================================================ */
.header { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 22px rgba(12, 24, 56, .07); }
.header .brand { color: var(--maroon-800); }
.header .brand .name { color: var(--maroon-800); }
.header .brand .tag { color: var(--muted); opacity: 1; }
/* Logo sits directly on white (no box) — a touch larger for presence */
.header .brand .logo { width: 56px; height: 56px; background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
/* Top-level links + dropdown toggles → dark navy */
.header .nav-links > a,
.header .nav-links .drop-toggle { color: var(--ink); }
.header .nav-links > a:hover,
.header .nav-links > a.active,
.header .nav-links .drop-toggle:hover,
.header .nav-links .drop-toggle.active { color: var(--maroon-800); }
.header .menu-toggle { color: var(--maroon-800); }

/* Mobile drawer → white with dark links */
@media (max-width: 760px) {
  .header .nav-links.open { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 22px 40px rgba(12, 24, 56, .16); }
  .header .nav-links.open > a { border-bottom-color: var(--line); }
  .header .nav-links .drop-menu a { color: var(--ink); border-bottom-color: var(--line); }
  .header .nav-links .drop-menu a:hover { color: var(--maroon-800); }
  .header .nav-links .drop-sub > .drop-sub-toggle { color: var(--maroon-800); }
}

/* ============================================================
   OUR PROGRAMS — continuous (seamless) marquee
   Cards are rendered twice; the track slides exactly one copy
   (-50%) and loops with no jump. Trailing margin on every card
   makes the two copies line up perfectly.
   ============================================================ */
.prog-marquee { position: relative; overflow: hidden; padding: 6px 0 10px; }
/* Dark-blue fade at the left & right edges (cards emerge from / vanish into navy) */
.prog-marquee::before,
.prog-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 3; pointer-events: none;
}
.prog-marquee::before { left: 0;  background: linear-gradient(90deg,  var(--maroon-900) 0%, rgba(12,24,56,.7) 40%, transparent 100%); }
.prog-marquee::after  { right: 0; background: linear-gradient(270deg, var(--maroon-900) 0%, rgba(12,24,56,.7) 40%, transparent 100%); }
.prog-marquee-track {
  display: flex; align-items: stretch; width: max-content;
  animation: progScroll 80s linear infinite;
  will-change: transform;
}
.prog-marquee:hover .prog-marquee-track,
.prog-marquee.paused .prog-marquee-track { animation-play-state: paused; }
.prog-marquee .prog-card { flex: 0 0 330px; margin: 0 26px 0 0; }
@keyframes progScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 600px) {
  .prog-marquee .prog-card { flex-basis: 280px; margin-right: 18px; }
  .prog-marquee-track { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-marquee-track { animation: none; }
  .prog-marquee { overflow-x: auto; }
}

/* ============================================================
   ADMISSION / APPLY FORM
   ============================================================ */
.apply-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.apply-aside { position: sticky; top: 96px; }
.apply-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.apply-points li { display: flex; align-items: flex-start; gap: 10px; color: #4b5a6e; font-size: 15px; line-height: 1.45; }
.apply-points li svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; background: var(--gold-grad); border-radius: 50%; padding: 4px; margin-top: 1px; }
.apply-help { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; }
.apply-help span { font-size: 13px; color: var(--muted); font-weight: 600; }
.apply-help a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--maroon-800); font-size: 17px; }
.apply-help a svg { width: 18px; height: 18px; color: var(--gold); }

.apply-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 34px; box-shadow: var(--shadow-md); }
.apply-legend { color: var(--maroon-800); font-size: 16px; font-weight: 800; margin: 6px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--cream-2); display: flex; align-items: center; gap: 10px; }
.apply-legend:not(:first-child) { margin-top: 28px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 4px; }
.apply-form-card .field { margin-bottom: 16px; }
.apply-grid .field { margin-bottom: 0; }
.apply-form-card label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.apply-form-card label .req { color: var(--gold-dark); }
.apply-form-card input, .apply-form-card select, .apply-form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 14.5px; background: var(--cream); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.apply-form-card input:focus, .apply-form-card select:focus, .apply-form-card textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,59,46,0.14); background: #fff;
}
.apply-form-card textarea { resize: vertical; }
.apply-form-card .err { color: #b3261e; font-size: 12.5px; margin-top: 5px; }
.apply-success { display: flex; align-items: center; gap: 10px; background: #e7f6ec; border: 1px solid #b6e0c4; color: #1f6b3a; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.apply-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.apply-error { background: #fbe9e7; border: 1px solid #f3c9c4; color: #b3261e; padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }

@media (max-width: 900px) {
  .apply-wrap { grid-template-columns: 1fr; gap: 26px; }
  .apply-aside { position: static; }
}
@media (max-width: 560px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-form-card { padding: 24px 20px; }
}
