/* =========================================================
   Khalil Institute — Design System (2026 redesign)
   Brand colours taken from the institute logo.
   ========================================================= */

:root {
  /* Brand */
  --navy-950: #070e2b;
  --navy-900: #0b1640;
  --navy-800: #13215e;
  --navy-700: #1d2f86;
  --sky-600: #0b7fc0;
  --sky-500: #1797d6;
  --sky-100: #dff1fb;
  --sky-50:  #eff8fd;
  --orange-500: #f7941d;
  --orange-600: #e07d06;
  --orange-50: #fff4e6;

  /* Neutrals */
  --ink: #0f172a;
  --body: #3d4659;
  --muted: #667085;
  --line: #e5e8f0;
  --surface: #ffffff;
  --bg-soft: #f5f7fb;

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 48px -12px rgba(11, 22, 64, .22);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sky-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.section-head h2, .h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.text-gradient { background: linear-gradient(90deg, var(--sky-500), var(--navy-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 14px; }
.btn--primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -6px rgba(247, 148, 29, .6); }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--bg-soft); color: var(--muted); box-shadow: none; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy-700); }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .75); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar ul { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar i { color: var(--sky-500); }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(11, 22, 64, .25); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--navy-700); }
.brand-text span { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink);
}
.nav a:hover { color: var(--navy-700); background: var(--sky-50); }
.nav a.is-active { color: var(--navy-700); background: var(--sky-50); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); align-items: center; justify-content: center; font-size: 18px;
}

/* Mobile nav */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .nav .btn { display: inline-flex; margin-top: 10px; color: #fff; }
  .nav .btn:hover { color: #fff; background: var(--orange-600); }
}
@media (min-width: 1081px) { .nav .nav-cta { display: none; } }
@media (max-width: 720px) {
  .topbar .hide-sm { display: none; }
  .brand-text span { display: none; }
  .brand img { width: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: min(760px, calc(100vh - var(--header-h) - 42px));
  display: flex; align-items: center; padding: 96px 0 150px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(23, 151, 214, .35), transparent 60%),
    linear-gradient(100deg, rgba(7, 14, 43, .96) 0%, rgba(11, 22, 64, .88) 42%, rgba(11, 22, 64, .45) 100%);
}
.hero-content { max-width: 680px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; margin-bottom: 26px; color: #fff;
}
.hero .pill b { background: var(--orange-500); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: .04em; }
.hero .pill:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fd0ff, var(--sky-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges i { color: #7fd0ff; }

/* Feature cards overlapping hero */
.features { position: relative; z-index: 2; margin-top: -96px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 232, 240, .7); transition: transform .3s var(--ease), box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); }
.feature h3 { font-size: 20px; margin: 20px 0 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px;
  background: var(--sky-50); color: var(--sky-600);
}
.icon-tile--orange { background: var(--orange-50); color: var(--orange-600); }
.icon-tile--navy { background: #eceffd; color: var(--navy-700); }

/* ---------- Announcement strip ---------- */
.announce { margin-top: 56px; }
.announce-inner {
  display: flex; align-items: center; gap: 0; border-radius: 999px; background: var(--navy-900); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.announce-label {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--orange-500); font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.announce-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.announce-items { display: flex; gap: 48px; width: max-content; padding-left: 24px; animation: marquee 28s linear infinite; }
.announce-items a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.announce-items a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-500); }
.announce-items a:hover { color: #7fd0ff; }
.announce:hover .announce-items { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3.4; box-shadow: var(--shadow-lg); }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .inset {
  position: absolute; right: -28px; bottom: -36px; width: 46%; border-radius: var(--r-lg); overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.about-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.about-media .stamp {
  position: absolute; left: -24px; top: 32px; background: #fff; border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.about-media .stamp img { width: 48px; }
.about-media .stamp strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 15px; line-height: 1.3; }
.about-media .stamp span { font-size: 13px; color: var(--muted); }
.about-copy .lead { font-size: 19px; color: var(--ink); font-weight: 500; }
.check-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); font-size: 12px; margin-top: 2px; }

/* ---------- Programs ---------- */
.tabs { display: inline-flex; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; gap: 4px; margin: 0 auto 40px; box-shadow: var(--shadow-sm); flex-wrap: wrap; justify-content: center; }
.tabs-wrap { text-align: center; }
.tab {
  border: 0; background: transparent; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--muted); transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--navy-700); color: #fff; }
.tab small { font-weight: 600; opacity: .7; margin-left: 6px; }

.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program {
  position: relative; display: flex; gap: 16px; align-items: center; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.program:hover { border-color: var(--sky-500); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.program .icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 19px; flex: none; }
.program h3 { font-size: 16.5px; margin: 0 0 2px; letter-spacing: -.01em; }
.program p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.tab-panel[hidden] { display: none; }
.programs-foot { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }

/* ---------- Posters / admissions ---------- */
.poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.poster-grid .poster:first-child { grid-column: 1 / -1; }
.poster {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-md);
  border: 0; padding: 0; width: 100%;
}
.poster img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.poster:hover img { transform: scale(1.03); }
.poster .zoom {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--navy-900); box-shadow: var(--shadow-md); transition: transform .2s;
}
.poster:hover .zoom { transform: scale(1.1); }

/* ---------- Leadership ---------- */
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); align-items: start;
}
.leader-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-soft); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-tag {
  position: absolute; left: 12px; bottom: 12px; background: var(--orange-500); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px;
}
.leader .role { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 6px; }
.leader h3 { font-size: 24px; margin-bottom: 14px; }
.leader p { font-size: 15.5px; color: var(--body); }
.leader .quote-mark { font-size: 28px; color: var(--sky-100); margin-bottom: 4px; }

/* ---------- Vision & Mission ---------- */
.vm { position: relative; background: var(--navy-900); color: rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.vm::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(23, 151, 214, .28), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(247, 148, 29, .14), transparent 60%);
}
.vm h2, .vm h3 { color: #fff; }
.vm .eyebrow { color: #7fd0ff; }
.vm-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.vision-quote { font-family: var(--font-head); font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: #fff; font-weight: 600; letter-spacing: -.015em; margin: 24px 0 0; }
.vision-quote::before { content: "\201C"; display: block; font-size: 80px; line-height: .6; color: var(--orange-500); margin-bottom: 12px; }
.mission-intro { font-size: 17px; margin-bottom: 26px; }
.mission-list { display: grid; gap: 14px; counter-reset: m; }
.mission-list li {
  counter-increment: m; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s, border-color .2s;
}
.mission-list li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(127, 208, 255, .3); }
.mission-list li::before {
  content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #7fd0ff;
  width: 44px; height: 44px; border-radius: 12px; background: rgba(23, 151, 214, .15); display: grid; place-items: center;
}
.mission-list strong { display: block; color: #fff; font-family: var(--font-head); font-size: 16.5px; margin-bottom: 2px; }
.mission-list span { font-size: 14.5px; line-height: 1.6; }

/* ---------- Faculty ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.staff { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.staff:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.staff-photo { aspect-ratio: 4/4.4; overflow: hidden; background: var(--bg-soft); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s var(--ease); }
.staff:hover .staff-photo img { transform: scale(1.05); }
.staff-body { padding: 18px 20px 20px; }
.staff h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--sky-50); color: var(--sky-600); }

/* ---------- Colleges ---------- */
.college-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.college {
  position: relative; padding: 28px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden;
}
.college::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--sky-500), var(--navy-700)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.college:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.college:hover::after { transform: scaleX(1); }
.college h3 { font-size: 15.5px; line-height: 1.35; margin: 18px 0 0; letter-spacing: -.005em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery button { position: relative; border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; background: var(--navy-900); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.05); opacity: .9; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--r-xl); padding: 56px; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 50%, var(--sky-600));
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255, 255, 255, .08); z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: 140px; bottom: -170px; background: rgba(247, 148, 29, .25); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; padding: 88px 0 96px; overflow: hidden;
  background: var(--navy-900);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(23, 151, 214, .45), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(247, 148, 29, .18), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 620px; margin: 0; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 18px; color: rgba(255, 255, 255, .65); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; }
.overlap { margin-top: -48px; position: relative; z-index: 2; }

/* ---------- Cards / generic ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.card--raised { box-shadow: var(--shadow-lg); border-color: transparent; }

/* ---------- Fee table ---------- */
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.fee-table th {
  text-align: left; font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 0 20px 16px; border-bottom: 1px solid var(--line);
}
.fee-table td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table tbody tr { transition: background .15s; }
.fee-table tbody tr:hover { background: var(--sky-50); }
.fee-table .num { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-table th.num { text-align: right; }
.fee-table .prog { display: flex; align-items: center; gap: 14px; }
.fee-table .prog .icon-tile { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; flex: none; }
.fee-table .prog strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.fee-table .prog small { color: var(--muted); font-size: 13px; }
.authority { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.authority i { color: var(--sky-600); }
.currency { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 4px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); background: var(--bg-soft); }
.note i { color: var(--sky-600); margin-top: 4px; }
.note p { margin: 0; font-size: 15px; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dl { display: flex; gap: 22px; align-items: flex-start; padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.dl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dl .icon-tile { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; flex: none; }
.dl h3 { font-size: 20px; margin-bottom: 6px; }
.dl p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.dl .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge--soon { background: var(--bg-soft); color: var(--muted); }
.badge--new { background: #e7f8ef; color: #16794a; }

/* ---------- Contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info { display: flex; gap: 18px; align-items: flex-start; }
.info h3 { font-size: 17px; margin: 2px 0 4px; }
.info p, .info a { margin: 0; font-size: 15px; color: var(--body); word-break: break-word; }
.info a:hover { color: var(--sky-600); }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: 12px; padding: 13px 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(23, 151, 214, .15); }
.form-hint { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }

.hours li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li:last-child { border-bottom: 0; }
.hours strong { color: var(--ink); font-family: var(--font-head); }
.closed { color: #d92d20; font-weight: 700; }

.map { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); height: 440px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .68); padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .logo-chip { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 16px 10px 10px; margin-bottom: 20px; }
.footer-brand .logo-chip img { width: 46px; }
.footer-brand .logo-chip strong { font-family: var(--font-head); color: var(--navy-700); font-size: 16px; line-height: 1.2; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, .68); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--sky-500); margin-top: 5px; width: 16px; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.to-top { color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: 8px; }
.to-top:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .6); transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(7, 14, 43, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); width: auto; }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .college-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader-photo { aspect-ratio: 16/12; max-width: 360px; }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media { margin: 0 28px 36px 24px; }
  .program-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 200px 1fr; }
  .leader-photo { aspect-ratio: 4/5; }
  .poster-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .info-grid, .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 64px 0 140px; min-height: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .feature { padding: 26px; }
  .program-grid { grid-template-columns: 1fr; gap: 12px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .staff-body { padding: 14px; }
  .staff h3 { font-size: 15px; }
  .chip { font-size: 11.5px; }
  .college-grid { grid-template-columns: 1fr 1fr; }
  .college:last-child { grid-column: 1 / -1; }
  .leader { grid-template-columns: 1fr; padding: 20px; }
  .leader-photo { aspect-ratio: 1/1; max-width: none; }
  .tabs { border-radius: var(--r-md); width: 100%; }
  .tab { flex: 1; padding: 12px 10px; font-size: 14px; }
  .tab small { display: none; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .announce-inner { border-radius: var(--r-md); }
  .announce-label span { display: none; }
  .about-media .stamp { left: -12px; top: 16px; padding: 12px 14px; }
  .about-media .inset { right: -16px; bottom: -28px; }
  .about-media { margin: 0 16px 28px 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .cta-band { padding: 32px 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 60px 0 80px; }
  .dl { flex-direction: column; padding: 24px; }

  /* Fee table → stacked cards */
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table td { display: block; width: 100%; }
  .fee-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .fee-table tr:last-child { border-bottom: 0; }
  .fee-table td { padding: 6px 0; border: 0; }
  .fee-table td.num { display: flex; justify-content: space-between; text-align: left; }
  .fee-table td.num::before { content: attr(data-label); font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 14px; }
  .fee-table tbody tr:hover { background: none; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .topbar .container > ul:first-child { display: none; }
}
@media (max-width: 640px) {
  .program-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .program { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .program h3 { font-size: 15px; }
  .program p { font-size: 12.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .leader-photo { aspect-ratio: 4/3.4; }
  .leader-photo img { object-position: center 15%; }
}
