/* =========================================================
   قمة العلم الأهلية — Design System
   Inspired by Apple / Stripe / Framer / Notion: restraint,
   large type, generous whitespace, one accent at a time.
   ========================================================= */

@view-transition {
  navigation: auto;
}

:root {
  /* Brand — sampled from the school's own logo mark */
  --indigo-900: #1c2550;
  --indigo-700: #333f83;
  --indigo-600: #5c69ad;
  --indigo-100: #eceefa;

  --sky-500: #45b9d6;
  --sky-400: #77cfe7;
  --sky-100: #eaf8fc;

  --green-600: #3fa07d;
  --green-500: #64c29d;
  --green-100: #e9f8f2;

  --white: #ffffff;
  --ink: #14192e;
  --muted: #5c6478;
  --faint: #9099ab;
  --line: #e7e9f2;
  --bg-soft: #f7f8fc;

  --shadow-sm: 0 2px 10px rgba(28, 37, 80, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 37, 80, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 37, 80, 0.14);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-600);
  background: var(--indigo-100);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow.green { color: var(--green-600); background: var(--green-100); }
.eyebrow.sky { color: var(--sky-500); background: var(--sky-100); }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.25; position: relative; display: block; width: fit-content; }
.section-head.center h2 { margin-inline: auto; }
.section-head h2::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -12px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sky-500), var(--green-600));
  border-radius: 2px;
  transition: width .8s var(--ease) .2s;
}
.section-head.in h2::after, .promo-banner.in .section-head h2::after { width: 100%; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }

.text-lg { font-size: 20px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.32), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn-ghost::before, .btn-light::before {
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(28,37,80,.10), transparent 70%);
}
.btn-primary { background: var(--indigo-900); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--indigo-700); }

.btn-accent { background: var(--green-600); color: var(--white); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(63,160,125,.35); background: #379170; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo-600); color: var(--indigo-600); }

.btn-light { background: var(--white); color: var(--indigo-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Intro splash ---------- */
.intro-splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  overflow: hidden;
  animation: introFade 2.6s ease forwards;
}
.intro-splash::before,
.intro-splash::after,
.intro-splash .blob-3 {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
}
.intro-splash::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--sky-100), transparent 65%);
  top: 50%; left: 50%;
  margin: -260px 0 0 -420px;
  animation: introBlobIn 1.5s var(--ease) forwards, introBlobDrift1 6s ease-in-out 1.5s infinite;
}
.intro-splash::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--green-100), transparent 65%);
  top: 50%; left: 50%;
  margin: 140px 0 0 260px;
  animation: introBlobIn 1.5s var(--ease) .08s forwards, introBlobDrift2 7s ease-in-out 1.58s infinite;
}
.intro-splash .blob-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--indigo-100), transparent 65%);
  top: 50%; left: 50%;
  margin: -160px 0 0 300px;
  animation: introBlobIn 1.5s var(--ease) .16s forwards, introBlobDrift1 6.5s ease-in-out 1.66s infinite;
}
.intro-ring {
  position: absolute; z-index: 0;
  width: 220px; height: 220px;
  top: 50%; left: 50%; margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid var(--sky-400);
  opacity: 0;
  animation: introRing 2.2s var(--ease) .5s infinite;
}
.intro-particle {
  position: absolute; z-index: 1;
  border-radius: 50%;
  opacity: 0;
  animation: introParticle 2.4s ease-out infinite;
}
.intro-particle.p1 { width: 10px; height: 10px; background: var(--sky-500); top: 50%; left: 50%; margin: 40px 0 0 -170px; animation-delay: .5s; }
.intro-particle.p2 { width: 8px; height: 8px; background: var(--green-500); top: 50%; left: 50%; margin: -90px 0 0 130px; animation-delay: .75s; }
.intro-particle.p3 { width: 12px; height: 12px; background: #e8527d; top: 50%; left: 50%; margin: 100px 0 0 150px; animation-delay: 1s; }
.intro-particle.p4 { width: 7px; height: 7px; background: var(--indigo-600); top: 50%; left: 50%; margin: -130px 0 0 -110px; animation-delay: 1.25s; }
.intro-particle.p5 { width: 9px; height: 9px; background: var(--sky-500); top: 50%; left: 50%; margin: 130px 0 0 -60px; animation-delay: 1.5s; }
.intro-particle.p6 { width: 8px; height: 8px; background: #e8527d; top: 50%; left: 50%; margin: -60px 0 0 190px; animation-delay: 1.75s; }
.intro-particle.p7 { width: 11px; height: 11px; background: var(--green-500); top: 50%; left: 50%; margin: 20px 0 0 200px; animation-delay: 2s; }
.intro-particle.p8 { width: 7px; height: 7px; background: var(--indigo-600); top: 50%; left: 50%; margin: -150px 0 0 60px; animation-delay: 2.15s; }
.intro-splash img {
  position: relative; z-index: 2;
  width: 190px; height: auto;
  animation: introLogo .8s cubic-bezier(.2,1.4,.4,1) .1s forwards, introLogoPulse 2.2s ease-in-out 1s infinite;
  opacity: 0;
}
@keyframes introLogo {
  0% { opacity: 0; transform: scale(.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes introLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(69,185,214,0)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 22px rgba(69,185,214,.35)); }
}
@keyframes introBlobIn {
  0% { opacity: 0; transform: scale(.4); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes introBlobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.08); }
}
@keyframes introBlobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.06); }
}
@keyframes introRing {
  0% { opacity: 0; transform: scale(.6); }
  30% { opacity: .5; }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes introParticle {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  20% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-70px) scale(.7); }
}
@keyframes introFade {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-splash { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(20,25,46,.06);
  padding: 12px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; display: block; transition: height .4s var(--ease); }
.nav.scrolled .brand img { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 14.5px; flex-shrink: 0; }
.nav-links a { position: relative; color: var(--ink); padding: 6px 0; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 2px;
  background: var(--indigo-600); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--indigo-600); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

.mobile-panel {
  position: fixed; inset: 0; top: 76px; z-index: 90;
  background: var(--white);
  padding: 12px 32px 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-panel.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-panel a { padding: 16px 4px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 18px; }

@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn:not(.btn-sm-hide) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 900px; height: 900px;
  top: -420px; right: -280px;
  background: radial-gradient(circle, var(--sky-100), transparent 62%);
  animation: heroDrift1 22s ease-in-out infinite;
}
.hero::after {
  width: 760px; height: 760px;
  bottom: -380px; left: -260px;
  background: radial-gradient(circle, var(--indigo-100), transparent 60%);
  animation: heroDrift2 26s ease-in-out infinite;
}
@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 25px); }
}
@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-brand { display: flex; align-items: center; margin-bottom: 18px; }
.hero-brand img { height: 64px; width: auto; display: block; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--indigo-600); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 26px 0 36px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero entrance choreography (load-in, not scroll-triggered) */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * {
  opacity: 0;
  animation: heroIn .9s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .16s; }
.hero-copy > *:nth-child(3) { animation-delay: .27s; }
.hero-copy > *:nth-child(4) { animation-delay: .40s; }
.hero-copy > *:nth-child(5) { animation-delay: .52s; }
.hero-visual {
  opacity: 0;
  animation: heroIn 1.05s var(--ease) forwards;
  animation-delay: .40s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual { opacity: 1; animation: none; transform: none; }
}

.hero-visual { position: relative; perspective: 1000px; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 586 / 640;
  transition: transform .35s var(--ease);
  will-change: transform;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: heroSlideFade 20s infinite;
}
.hero-slide:nth-of-type(1) { animation-delay: 0s; }
.hero-slide:nth-of-type(2) { animation-delay: -5s; }
.hero-slide:nth-of-type(3) { animation-delay: -10s; }
.hero-slide:nth-of-type(4) { animation-delay: -15s; }
@keyframes heroSlideFade {
  0% { opacity: 0; transform: scale(1.15); }
  2% { opacity: 1; }
  23% { opacity: 1; }
  25% { opacity: 0; transform: scale(1.28); }
  100% { opacity: 0; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}
.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  transition: transform .35s var(--ease);
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}
.floating-badge .dot-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-1 { top: 6%; right: -8%; animation: floatBob 4.5s ease-in-out infinite; }
.hero-badge-2 { bottom: 6%; left: -6%; animation: floatBob 4.5s ease-in-out infinite; animation-delay: 1.1s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-1, .hero-badge-2 { animation: none; }
}

.trust-row {
  margin-top: 90px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.trust-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--muted);
}
.trust-chip svg { flex-shrink: 0; }

/* ---------- Icon tiles ---------- */
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .4s var(--ease);
}
.icon-tile.indigo { background: var(--indigo-100); color: var(--indigo-600); }
.icon-tile.sky { background: var(--sky-100); color: var(--sky-500); }
.icon-tile.green { background: var(--green-100); color: var(--green-600); }

@keyframes iconPop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.feature-card.in .icon-tile { animation: iconPop .6s var(--ease) .15s backwards; }
@media (prefers-reduced-motion: reduce) {
  .feature-card.in .icon-tile { animation: none; }
}

/* ---------- Feature grid ---------- */
.features { padding: 120px 0; position: relative; overflow: hidden; }
.features::before, .features::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.features::before {
  width: 420px; height: 420px;
  top: -160px; left: -140px;
  background: radial-gradient(circle, var(--sky-100), transparent 65%);
  animation: featuresDrift1 18s ease-in-out infinite;
}
.features::after {
  width: 380px; height: 380px;
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, var(--green-100), transparent 65%);
  animation: featuresDrift2 22s ease-in-out infinite;
}
.features .container { position: relative; z-index: 1; }
@keyframes featuresDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, -20px); }
}
@keyframes featuresDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-22px, 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .features::before, .features::after { animation: none; }
}

/* ---------- Section wave dividers ---------- */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  top: -79px;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }
.wave-divider.fill-soft path { fill: var(--bg-soft); }
.wave-divider.fill-white path { fill: var(--white); }
@media (max-width: 600px) {
  .wave-divider { height: 44px; top: -43px; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover .icon-tile { transform: rotate(-8deg) scale(1.1); }
.feature-card h3 { font-size: 20px; margin: 22px 0 10px; }
.feature-card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Split / about ---------- */
.split { padding: 120px 0; position: relative; }
.split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .container { direction: ltr; }
.split.reverse .container > * { direction: rtl; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin-bottom: 22px; }
.split-body p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }

.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-weight: 600; font-size: 15.5px; }
.check-list .tick {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}

/* ---------- Soft section bg ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--indigo-900); color: var(--white); }
.bg-navy .muted { color: rgba(255,255,255,.68); }

/* ---------- Programs / stage cards ---------- */
.stage-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 34px;
  border: 1px solid var(--line);
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stage-card .tag {
  display: inline-block; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.stage-card h3 { font-size: 24px; margin-bottom: 8px; }
.stage-card .age { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.stage-card ul { display: flex; flex-direction: column; gap: 13px; }
.stage-card ul li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.stage-card ul li::before { content: '—'; color: var(--indigo-600); font-weight: 800; flex-shrink: 0; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th, .compare-table td { padding: 18px 24px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare-table thead th { background: var(--bg-soft); font-size: 14px; font-weight: 800; }
.compare-table thead th:first-child { color: var(--ink); }
.compare-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--bg-soft); }
.compare-table tbody td { color: var(--muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: 0 32px 120px;
  max-width: calc(var(--container) - 0px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  padding: 72px 60px;
  background: linear-gradient(135deg, var(--indigo-900), #2b3568 60%, var(--indigo-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  overflow: hidden;
  position: relative;
}
.cta-banner::before {
  content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(119,207,231,.28), transparent 70%);
  top: -160px; left: -120px;
}
.cta-banner h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 520px; position: relative; }
.cta-banner p { color: rgba(255,255,255,.72); margin-top: 12px; font-size: 16px; position: relative; }
.cta-banner .ctas { display: flex; gap: 14px; flex-shrink: 0; position: relative; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-grid figure {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }

.gallery-grid figure {
  opacity: 0;
  transform: rotate(-4deg) scale(.92);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.gallery-grid.in figure { opacity: 1; transform: rotate(0deg) scale(1); }
.gallery-grid.in figure:nth-child(4n+1) { transition-delay: 0s; }
.gallery-grid.in figure:nth-child(4n+2) { transition-delay: .08s; }
.gallery-grid.in figure:nth-child(4n+3) { transition-delay: .16s; }
.gallery-grid.in figure:nth-child(4n+4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .gallery-grid figure { opacity: 1; transform: none; transition: none; }
}

.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; }
@media (max-width: 900px) { .gallery-grid-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; } }
@media (max-width: 600px) { .gallery-grid-3 { grid-template-columns: 1fr; grid-auto-rows: 260px; } }

/* ---------- Gallery lightbox ---------- */
.gallery-grid img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(20,25,46,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: scale(.92);
  transition: transform .3s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition: none; }
}

/* ---------- Footer ---------- */
footer { background: var(--indigo-900); color: rgba(255,255,255,.75); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; margin-bottom: 18px; background: var(--white); border-radius: 14px; padding: 10px 16px; box-shadow: 0 6px 16px rgba(0,0,0,.18); width: fit-content; }
.footer-brand img { height: 44px; width: auto; display: block; }
footer h4 { color: var(--white); font-size: 15px; margin-bottom: 20px; }
footer ul { display: flex; flex-direction: column; gap: 13px; font-size: 14.5px; }
footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), transform .3s var(--ease);
}
.social-row a:hover { background: var(--sky-500); transform: translateY(-3px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 90px; text-align: center; background: radial-gradient(800px 420px at 50% -10%, var(--sky-100), transparent 60%); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 20px auto 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(52px) scale(.94); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Parallax media ---------- */
.parallax-media { will-change: transform; }

/* ---------- Steps (admission) ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--indigo-900); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex-shrink: 0;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card h3 { font-size: 19px; }
.contact-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .split .container, .split.reverse .container { grid-template-columns: 1fr; direction: rtl; }
  .split.reverse .container > * { direction: rtl; }
  .split-media { order: -1; }
  .cta-banner { flex-direction: column; text-align: center; padding: 52px 32px; }
  .cta-banner .ctas { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .wide { grid-column: span 2; }
  .floating-badge { display: none; }
  .trust-row { margin-top: 56px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .step { gap: 18px; }
  .cta-banner { margin-inline: 20px; margin-bottom: 90px; }
}

/* ---------- Promo banner (top of page: text + contained image card) ---------- */
.promo-banner {
  padding: 164px 0 100px;
  background: radial-gradient(900px 500px at 50% -10%, var(--sky-100), transparent 60%);
}
.promo-banner .section-head.center .btn { margin-top: 12px; }
.promo-card {
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.promo-card-bg { display: none; }
.promo-card-fg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .promo-banner { padding-top: 136px; }
  .promo-card { max-width: 100%; }
}

/* ---------- Video tour ---------- */
.video-tour { padding: 110px 0; }
.video-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-card video { width: 100%; max-height: 70vh; display: block; }

/* ---------- Map ---------- */
.map-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open-link {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--white); color: var(--indigo-900);
  font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 100px; box-shadow: var(--shadow-md);
}
.map-open-link:hover { color: var(--indigo-600); }

.national-address-card {
  max-width: 640px;
  margin: 28px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.na-header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; color: var(--indigo-900);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.na-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.na-grid > div { display: flex; flex-direction: column; gap: 4px; }
.na-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.na-value { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .na-grid { grid-template-columns: repeat(2, 1fr); }
  .national-address-card { padding: 24px 20px; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(63,160,125,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 32px rgba(63,160,125,.55); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green-600); opacity: .55;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 600px) {
  .whatsapp-float { bottom: 18px; left: 18px; width: 52px; height: 52px; }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--indigo-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, box-shadow .3s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (max-width: 600px) {
  .back-to-top { bottom: 18px; right: 18px; width: 46px; height: 46px; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sky-500), var(--green-600));
  z-index: 300;
  transition: width .12s linear;
}

/* ---------- Hero CTA pulse ---------- */
.btn-pulse-wrap { position: relative; display: inline-flex; border-radius: 100px; }
.btn-pulse-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--green-600);
  opacity: .6;
  animation: btnPulse 1.8s ease-out infinite;
  pointer-events: none;
}
.btn-pulse-wrap .btn { position: relative; z-index: 1; }
.btn-pulse-wrap.pulse-indigo::after { background: var(--indigo-700); }
@keyframes btnPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse-wrap::after { animation: none; opacity: 0; }
}

/* ---------- Video poster Ken Burns ---------- */
.video-card { position: relative; }
.video-poster-kb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
  transition: opacity .4s var(--ease);
}
.video-card video { position: relative; z-index: 0; }
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .video-poster-kb { animation: none; }
}
.video-play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 2;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.video-play-badge svg { margin-inline-start: 5px; }
.video-play-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white);
  opacity: .55;
  animation: playPulse 2.4s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 600px) {
  .video-play-badge { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-play-badge::before { animation: none; }
}

/* ---------- Trust badges (official partners) ---------- */
.trust-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.trust-badge-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  height: 82px;
  padding: 4px 22px 4px 12px;
  box-shadow: var(--shadow-md);
}
.trust-badge-chip img { height: 74px; width: auto; }
.trust-badge-chip img.badge-ministry-img { height: 74px; }
.trust-badge-chip img.badge-invert { filter: invert(1) brightness(0.75); }
.trust-badge-chip span { color: var(--ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

@media (max-width: 600px) {
  .trust-badge-chip span { display: none; }
  .trust-badge-chip { padding: 3px 12px; height: 60px; }
  .trust-badge-chip img { height: 54px; }
  .trust-badge-chip img.badge-ministry-img { height: 50px; }
}
