/* ════════════════════════════════════════════════
   MindBridge Kenya — style.css
   Theme: Deep Purple / White / Lime Green accent
   ════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ─── VARIABLES ─── */
:root {
  /* Purple palette */
  --purple-50:  #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5f4;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-deep: #3b0764;     /* hero / services bg */

  /* Accent */
  --green: #a3e635;
  --green-dark: #4d7c0f;

  /* Neutrals */
  --text-dark:  #12101f;
  --text-mid:   #4b4b6b;
  --text-muted: #9090b0;
  --white:      #ffffff;

  /* UI */
  --border:       rgba(167,139,250,0.18);
  --radius-pill:  999px;
  --radius-card:  32px;
  --shadow-sm:    0 2px 16px rgba(120,60,240,0.07);
  --shadow:       0 4px 32px rgba(120,60,240,0.10);
  --shadow-lg:    0 16px 64px rgba(120,60,240,0.16);
  --transition:   0.22s ease;
}
/* ════════════════════════════════════════════════
   DARK MODE THEME
   ════════════════════════════════════════════════ */

/* Light Mode (Default) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f3ff;
  --bg-card: #ffffff;
  --text-primary: #12101f;
  --text-secondary: #4b4b6b;
  --text-muted: #9090b0;
  --border-color: rgba(167,139,250,0.16);
  --hero-gradient: linear-gradient(135deg, #1e0540 0%, #3b0764 40%, #5b21b6 75%, #7c3aed 100%);
  --card-shadow: 0 4px 32px rgba(120,60,240,0.09);
  --card-shadow-hover: 0 16px 64px rgba(120,60,240,0.14);
}

/* Dark Mode */
:root.dark-mode {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #707080;
  --border-color: rgba(167,139,250,0.25);
  --hero-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 40%, #2d2d44 75%, #3b3b5c 100%);
  --card-shadow: 0 4px 32px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 16px 64px rgba(0,0,0,0.4);
}

/* Apply dark mode transitions */
body, .card, .navbar, .btn-cta, .service-card-new, .testimonial-card, 
.program-tile, .resource-tile, .team-member, .value-card {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode specific overrides */
.dark-mode .card {
  background: var(--bg-card);
}

.dark-mode .navbar {
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(22px);
}

.dark-mode .page-bg {
  background: radial-gradient(ellipse 90% 55% at 50% -5%, #2d2d44 0%, transparent 65%),
              radial-gradient(ellipse 55% 45% at 92% 85%, #1a1a2e 0%, transparent 60%),
              #0a0a0f;
}

.dark-mode .hero-stat-float {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.dark-mode .hero-stat-float .hsi-num {
  color: var(--purple-400);
}

.dark-mode .btn-cta-outline {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.dark-mode .btn-cta-outline:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple-500);
}

.dark-mode .section-tag {
  color: var(--purple-400);
}

.dark-mode .tag-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.dark-mode .service-item {
  border-bottom-color: rgba(255,255,255,0.1);
}

.dark-mode .service-desc {
  color: rgba(255,255,255,0.7);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  background: var(--purple-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.dark-mode-toggle:hover {
  background: var(--purple-200);
  transform: rotate(15deg);
}

.dark-mode .dark-mode-toggle {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.dark-mode .dark-mode-toggle:hover {
  background: rgba(255,255,255,0.2);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--purple-200);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Fixed ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  var(--purple-300) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 92% 85%,  var(--purple-200) 0%, transparent 60%),
    var(--purple-200);
  pointer-events: none;
}

/* Scroll container */
.scroll-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Base card */
.card {
  background: var(--white);
  position: relative;
  width: 100%;
  overflow: hidden;
}


/* ════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}

/* Logo */
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--purple-600);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--purple-100); color: var(--purple-600); }
.nav-links a.nav-active { color: var(--purple-600); background: var(--purple-100); }
.chev { font-size: 10px; opacity: 0.4; }

/* Book button */
.btn-book {
  background: var(--purple-600) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  box-shadow: 0 3px 16px rgba(124,58,237,0.28);
}
.btn-book:hover {
  background: var(--purple-700) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124,58,237,0.36) !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero-card {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1e0540 0%, #3b0764 40%, #5b21b6 75%, #7c3aed 100%);
}

/* Subtle noise-like overlay for depth */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 120%, rgba(163,230,53,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% -10%, rgba(196,181,244,0.15) 0%, transparent 50%);
  z-index: 0;
}

/* Decorative watermark — matches screenshot */
.hero-watermark {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 400;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -2px;
  user-select: none;
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 5% 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 860px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

/* Title */
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.5px;
}
.hero-title em {
  font-style: italic;
  color: var(--purple-300);
}

/* Subtitle */
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 400;
}

/* Actions row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Ghost link */
.btn-ghost {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.22);
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: white;
}

/* SOS pill — top right corner */
.sos-pill {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px 10px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition);
}
.sos-pill:hover { background: rgba(255,255,255,0.22); }

.sos-ping {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ping 1.5s infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.6); }
}

/* Floating stats strip at bottom of hero */
.hero-stat-float {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  z-index: 10;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hsi-num {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--purple-600);
  letter-spacing: -1px;
  line-height: 1;
}
.hsi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}


/* ─── SHARED BUTTONS ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}
.arrow-dot {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: #2a4d00;
  font-weight: 700;
}
.arrow-dot.dark {
  background: var(--text-dark);
  color: var(--white);
}
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px 12px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-cta-outline:hover {
  background: var(--purple-100);
  border-color: var(--purple-400);
}


/* ─── SECTION TAG ─── */
.section-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--purple-600);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.section-tag.light { color: rgba(255,255,255,0.65); }
.tag-num {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.section-tag.light .tag-num { color: rgba(255,255,255,0.45); }


/* ════════════════════════════════════════════════
   ABOUT / STATS
   ════════════════════════════════════════════════ */
.about-card {
  padding: 80px 5% 72px;
  /* Extra top padding to clear the floating hero stat strip */
  padding-top: 100px;
}
.about-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text-dark);
  max-width: 780px;
}
.about-attribution {
  font-size: 14px;
  color: var(--purple-400);
  font-style: italic;
  position: relative;
  padding-left: 18px;
  margin-top: 14px;
  display: inline-block;
}
.about-attribution::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--purple-600);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  color: var(--purple-600);
  letter-spacing: -2px;
  line-height: 1;
}
.stat-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 14px;
  margin-bottom: 6px;
}
.stat-name i { color: var(--purple-400); margin-right: 4px; }
.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════ */
.services-card {
  background: linear-gradient(145deg, #1e0540 0%, #2d0960 35%, #4c1d95 70%, #5b21b6 100%);
  padding: 72px 5%;
  color: var(--white);
}
.services-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.services-left-col { display: flex; flex-direction: column; gap: 20px; }

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px 10px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.20);
  transition: all var(--transition);
}
.btn-view-all:hover { background: rgba(255,255,255,0.22); }

.services-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 28px;
}

/* Condition pills */
.tags-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tag-pill {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}
.tag-pill i { font-size: 12px; opacity: 0.8; }
.tag-pill:hover { background: rgba(255,255,255,0.20); }

/* Service accordion list */
.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.service-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  gap: 24px;
  transition: padding var(--transition);
}
.service-item.active { padding: 22px 0 26px; }
.service-item:not(.active) .service-desc { display: none; }
.service-item-left h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-item-left h3 i { font-size: 18px; opacity: 0.7; }
.service-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 560px;
}
.service-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}
.service-arrow:hover,
.service-item.active .service-arrow {
  background: var(--white);
  color: var(--purple-600);
  border-color: var(--white);
}


/* ════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════ */
.testimonials-card { padding: 72px 5%; }
.testimonials-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.4px;
  color: var(--text-dark);
  max-width: 680px;
  margin-bottom: 48px;
}
.testimonials-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Rating block */
.rating-block {
  background: var(--purple-100);
  border-radius: 24px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
}
.rating-score { display: flex; align-items: baseline; gap: 4px; }
.rating-big {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -2px;
  line-height: 1;
}
.rating-slash { font-size: 22px; color: var(--text-muted); }
.rating-stars-row { font-size: 16px; color: #f59e0b; letter-spacing: 3px; }
.rating-avatars { display: flex; align-items: center; }
.rating-avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  margin-right: -8px;
}
.avatar-more {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-left: 10px;
}
.rating-label { font-size: 12px; color: var(--text-muted); }

/* Slider */
.testi-slider-wrap { overflow: hidden; position: relative; }
.testi-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testi-card {
  flex: 0 0 calc(50% - 10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow); }
.testi-header { display: flex; justify-content: space-between; align-items: flex-start; }
.testi-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.testi-date { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.testi-stars { font-size: 14px; color: #f59e0b; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; flex: 1; font-style: italic; }
.testi-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.testi-tags span {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--purple-100);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.slider-dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.slider-dot.active {
  background: var(--purple-600);
  width: 44px;
}


/* ════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════ */
.cta-card {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #2e0665 0%, #5b21b6 50%, #7c3aed 100%);
  overflow: hidden;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 110%, rgba(163,230,53,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% -5%,  rgba(196,181,244,0.12) 0%, transparent 50%);
  z-index: 0;
}
/* Large decorative text behind content */
.cta-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 400;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  letter-spacing: -4px;
}
.cta-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -1.2px;
}
.cta-headline em {
  font-style: italic;
  color: var(--purple-300);
}


/* ════════════════════════════════════════════════
   PROGRAMS
   ════════════════════════════════════════════════ */
.programs-card { padding: 72px 5%; }
.programs-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.3px;
  max-width: 660px;
  margin-bottom: 52px;
  color: var(--text-dark);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.program-tile {
  background: var(--purple-100);
  border-radius: 24px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.program-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}
.program-icon { margin-bottom: 22px; }
.program-icon i { font-size: 36px; color: var(--purple-600); }
.program-tile h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}
.program-tile p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 22px;
  flex: 1;
}
.program-tile a {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-600);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s, color 0.2s;
  margin-top: auto;
}
.program-tile a:hover { gap: 11px; color: var(--purple-700); }
.program-tile a i { font-size: 12px; }


/* ════════════════════════════════════════════════
   IMPACT
   ════════════════════════════════════════════════ */
.impact-card { padding: 72px 5%; }
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.impact-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.impact-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 40px;
}
.impact-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.impact-stats > div { text-align: center; flex: 1; min-width: 90px; }
.impact-num {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--purple-600);
  line-height: 1;
  letter-spacing: -1px;
  display: block;
}
.impact-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}
.impact-label i { color: var(--purple-400); margin-right: 3px; }

/* Image or placeholder */
.impact-img-wrap { position: relative; }
.impact-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.impact-img-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 28px;
  background: url('/assets/images/AT\ INTERNATIONAL\ LEADERSHIP\ UNIVERSITY\ SKILLS\ TRANSFER\ PROGRAM\ BY\ CBT\ KENYA\ ON\ THE\ 23RD\ FRIDAY\ 2025.jpeg');

  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--purple-400);
}
.impact-img-placeholder i { font-size: 64px; }
.impact-img-placeholder p { font-size: 14px; color: var(--text-muted); text-align: center; line-height: 1.5; }
.impact-img-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}
.impact-img-caption i { margin-right: 4px; }


/* ════════════════════════════════════════════════
   RESOURCES
   ════════════════════════════════════════════════ */
.resources-card {
  background: var(--purple-100);
  padding: 72px 5%;
}
.resources-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 48px;
  color: var(--text-dark);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.resource-tile {
  background: var(--white);
  border-radius: 24px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text-dark);
}
.resource-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-300);
}
.resource-icon { font-size: 30px; color: var(--purple-600); }
.resource-tile h4 { font-size: 17px; font-weight: 600; color: var(--text-dark); }
.resource-tile p { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.res-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-600);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.res-link i { font-size: 11px; }


/* ════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════ */
.contact-card { padding: 72px 5%; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
  margin-top: 24px;
}
.contact-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text-dark);
}
.contact-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 400px;
}
.contact-details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-mid);
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--purple-600);
}
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.social-btn:hover {
  background: var(--purple-600);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.28);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}
.form-group label i { color: var(--purple-400); font-size: 12px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 17px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.10);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px 14px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-submit:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.28);
}
.btn-submit.w-full { align-self: stretch; justify-content: center; }
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-note i { color: var(--purple-400); }


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer-card {
  background: var(--text-dark);
  padding: 64px 5% 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.40);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--purple-600);
  color: white;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-links-grid h5 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-links-grid ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links-grid a {
  font-size: 14px;
  color: rgba(255,255,255,0.40);
  transition: color var(--transition);
}
.footer-links-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.55); }
.footer-dev {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-dev p { font-size: 12px; color: rgba(255,255,255,0.30); }
.footer-dev a {
  color: var(--purple-400);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-dev a:hover { color: var(--purple-300); }


/* ════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18,16,31,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: 28px;
  padding: 44px 40px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--purple-600);
  margin-bottom: 16px;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-dark); }
.modal-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.modal-box > p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.helplines { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.helpline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--purple-100);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.helpline strong { font-size: 14px; color: var(--text-dark); }
.helpline a {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple-600);
  transition: color var(--transition);
}
.helpline a:hover { color: var(--purple-700); }


/* ════════════════════════════════════════════════
   COOKIE CONSENT
   ════════════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 400;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  transform: translateY(120%);
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  border: 1px solid var(--border);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-content { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.cookie-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-icon i { font-size: 22px; color: var(--purple-600); }
.cookie-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cookie-text p { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 10px; }
.cookie-links { display: flex; gap: 14px; }
.cookie-links a { font-size: 12px; color: var(--purple-600); font-weight: 500; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
  flex: 1;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}
.cookie-accept { background: var(--purple-600); color: white; }
.cookie-accept:hover { background: var(--purple-700); }
.cookie-decline { background: var(--purple-100); color: var(--text-dark); border: 1px solid var(--border); }
.cookie-decline:hover { background: var(--purple-200); }


/* ════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .programs-grid,
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .services-top,
  .impact-grid,
  .contact-grid,
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-body { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 calc(100% - 10px); }
  .hero-stat-float { gap: 20px; padding: 18px 24px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    margin: 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .btn-book { text-align: center; justify-content: center; }
  .burger { display: flex; }

  /* Hero */
  .hero-card { min-height: auto; }
  .hero-body { padding: 80px 5% 120px; }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }
  .sos-pill { font-size: 11px; padding: 8px 14px; top: 14px; right: 14px; }
  .hero-stat-float {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    margin: 0 5%;
    border-radius: 20px;
    width: calc(100% - 10%);
  }
  .about-card { padding-top: 52px; }

  /* Sections */
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .programs-grid,
  .resources-grid { grid-template-columns: 1fr; }
  .impact-stats { flex-direction: column; align-items: center; gap: 20px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Uniform section padding */
  .about-card, .services-card, .testimonials-card, .programs-card,
  .impact-card, .resources-card, .contact-card, .footer-card {
    padding: 52px 5%;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions .btn-cta,
  .hero-actions .btn-ghost { justify-content: center; }
  .hero-watermark { font-size: 40px; }
  .testi-card { flex: 0 0 100%; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .hero-stat-float { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 100%; height: 1px; }
  .cookie-consent { left: 12px; right: 12px; max-width: unset; }
}