:root{
  --navDark:#071a43;
  --navMid:#0B235A;
  --navBright:#194E8B;
  --brand:#102B68;
  --ink:#071329;
  --silver: rgba(255,255,255,.80);
  --shadow: 0 18px 50px rgba(7, 19, 41, 0.22);
  --container: min(1120px, 92%);
  --glow: 0 0 0 2px rgba(120,168,255,.10), 0 0 24px rgba(120,168,255,.30);
  /* Animation system */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-fast: 0.2s var(--ease-out-quart);
  --blur-nav: 16px;
  --accent-glow: #4a9eff;
}

/* Animated gradient angle for border effects */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Accessible focus states */
*:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.15s ease;
}
.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.3);
}

/* Reduced motion master override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-particles, .orb { display: none !important; }
}

/* === SCROLL REVEAL SYSTEM === */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
[data-reveal="fade-up"]    { transform: translateY(40px); }
[data-reveal="fade-left"]  { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="scale-up"]   { transform: scale(0.92); }
[data-reveal="fade-in"]    { transform: none; }
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:#fff;
  text-rendering: optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:var(--container); margin:0 auto; }
.section{ padding:70px 0; }
.center{ text-align:center; }
.white{ color:#fff !important; }
.white-muted{ color: var(--silver) !important; font-size: 17px; line-height: 1.6; max-width: 60ch; margin: 10px auto 0; }
.darkp{ color:#22315e; line-height: 1.85; font-size: 16px; letter-spacing: 0.01em; }

.page{ display:none; opacity: 0; }
.page.is-active{
  display:block;
  animation: pageEnter 0.5s var(--ease-out-expo) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Site Loader ===== */
.site-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #071a43, #0B235A);
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out-expo);
}
.site-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.site-loader-inner { text-align: center; }
.site-loader-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.30));
  animation: loaderLogoIn 0.8s var(--ease-out-expo) both;
}
@keyframes loaderLogoIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.site-loader-bar {
  width: 120px;
  height: 3px;
  margin: 24px auto 0;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.site-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a9eff, #8fd0ff);
  border-radius: 999px;
  animation: loaderFill 1s var(--ease-out-expo) forwards;
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* TOP NAV */
.topbar{
  color:#fff;
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(90deg, rgba(7,26,67,0.95), rgba(11,35,90,0.95) 40%, rgba(25,78,139,0.95));
  backdrop-filter: blur(var(--blur-nav));
  -webkit-backdrop-filter: blur(var(--blur-nav));
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.topbar.scrolled{
  background: linear-gradient(90deg, rgba(7,26,67,0.95), rgba(11,35,90,0.95) 40%, rgba(25,78,139,0.95));
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
  border-bottom-color: rgba(255,255,255,.06);
}
.nav-inner{
  width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:14px;
  padding:16px 0;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.brand--logoonly{ gap:0; }
.brand-logo{
  height:32px;
  width:auto;
  object-fit:contain;
  transition: transform 0.3s var(--ease-spring), filter 0.3s ease;
}
.brand:hover .brand-logo{
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(74,158,255,0.3));
}

.nav-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  font-weight:600;
  min-width:0;
}
.nav-link{
  opacity:.94;
  padding:6px 2px;
  position:relative;
  font-size: 14px; /* ✅ slightly smaller to prevent overlap */
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a9eff, #8fd0ff);
  border-radius: 999px;
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}
.nav-link:hover{ opacity:1; }
.nav-link:hover::after { width: 100%; left: 0; }
.nav-link + .nav-link{ margin-left:20px; }
.nav-link + .nav-link::before{
  content:"|";
  position:absolute;
  left:-20px;
  top:50%;
  transform:translateY(-50%);
  opacity:.65;
  font-weight:600;
}

/* Dropdown */
.nav-dropdown{ position:relative; display:inline-block; }
.nav-link-btn{
  background:transparent;
  border:0;
  color:#fff;
  font:inherit;
  cursor:pointer;
}
.chev{ opacity:.85; margin-left:6px; }
.dropdown-menu{
  position:absolute;
  top:44px;
  left:50%;
  transform:translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: rgba(7,26,67,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  padding:10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.nav-dropdown.open .dropdown-menu{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:#fff;
  opacity: 0;
  transform: translateY(-6px);
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.nav-dropdown.open .dropdown-menu a{
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown.open .dropdown-menu a:nth-child(1){ transition-delay: 0.03s; }
.nav-dropdown.open .dropdown-menu a:nth-child(2){ transition-delay: 0.06s; }
.nav-dropdown.open .dropdown-menu a:nth-child(3){ transition-delay: 0.09s; }
.nav-dropdown.open .dropdown-menu a:nth-child(4){ transition-delay: 0.12s; }
.nav-dropdown.open .dropdown-menu a:nth-child(5){ transition-delay: 0.15s; }
.dropdown-menu a:hover{
  background: rgba(255,255,255,.10);
}

.nav-icons{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.icon-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  background: rgba(255,255,255,.10);
  transition: transform .25s var(--ease-spring), box-shadow .3s ease, filter .3s ease;
}
.icon-btn:hover{ transform: translateY(-2px) scale(1.05); box-shadow: var(--glow); }
.icon-btn:active{ transform: translateY(0) scale(0.98); }

/* Instagram gradient */
.icon-btn.ig{
  color:#fff;
  background:
    radial-gradient(circle at 30% 110%,
      #feda75 0%,
      #fa7e1e 25%,
      #d62976 55%,
      #962fbf 75%,
      #4f5bd5 100%);
}

/* LinkedIn: white "L" on blue */
.icon-btn.li{
  background:#0A66C2;
  border-color: rgba(255,255,255,.25);
  color:#fff;
}
.li-letter{
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* Buttons glow */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.05em;
  transition: transform .2s var(--ease-spring), filter .2s ease, box-shadow .3s ease;
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  text-transform:uppercase;
  border-radius:6px;
  position: relative;
  overflow: hidden;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--glow);
  filter: brightness(1.05);
}
.btn:active{ transform: translateY(0) scale(0.98); }
/* Ripple effect */
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }

.burger{
  display:none;
  width:40px;
  height:40px;
  border-radius:12px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
  position: relative;
  padding: 0;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  margin:4px auto;
  border-radius:999px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
  transform: scaleX(0);
}
.burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer{
  border-top:1px solid rgba(255,255,255,.14);
  padding:14px 0 18px;
}
.mobile-drawer a{
  display:block;
  width:var(--container);
  margin:0 auto 10px;
  padding:12px;
  border-radius:12px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
}
.mobile-accordion{
  width:var(--container);
  margin:0 auto 10px;
  border-radius:12px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  padding:10px 12px;
}
.mobile-accordion summary{ cursor:pointer; font-weight:700; }
.mobile-sub{ padding-top:10px; }
.mobile-sub a{ margin:0 0 8px; }

/* HERO */
.hero{
  position:relative;
  min-height:480px;
  height:90vh;
  display:grid;
  align-items:center;
  overflow:hidden;
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  transform: scale(1.1);
  will-change: transform;
}
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(7,19,41,.15), rgba(7,19,41,.08));
}

/* subtle dark fade from the bottom so the CTA sits on a darker band */
.hero-overlay::after{
  content: "";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:180px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(7,19,41,0), rgba(7,19,41,0.65));
}
.hero-content{
  position:relative;
  z-index:2;
  color:#fff;
  padding:70px 0;
  text-align:center;
}
.hero-logo{
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  height:42px; /* ✅ slightly smaller */
  width:auto;
  margin:0;
  z-index: 3;
}
.hero h1{
  margin:0 0 18px;
  font-size:clamp(28px,3vw,48px);
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.02em;
  max-width: none;
}
.hero-sub{ margin: 18px 0 0; opacity:0; animation: heroCtaIn 0.6s 1.3s var(--ease-out-expo) forwards; }
.pillars-strong{ color: rgba(255,255,255,.96); font-weight:800; }

/* Hero text word-by-word reveal */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.hero h1 .word.visible { opacity: 1; transform: translateY(0); }

/* Hero CTA entrance */
.hero-content .btn-row { opacity: 0; transform: translateY(15px); animation: heroCtaIn 0.6s 1s var(--ease-out-expo) forwards; }
@keyframes heroCtaIn { to { opacity: 1; transform: translateY(0); } }

/* Floating gradient orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; will-change: transform; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, #194E8B, transparent); top: -10%; left: -5%; animation: orbFloat1 12s ease-in-out infinite alternate; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, #4a9eff, transparent); bottom: -10%; right: -5%; animation: orbFloat2 15s ease-in-out infinite alternate; }
.orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, #8fd0ff, transparent); top: 40%; left: 60%; animation: orbFloat3 10s ease-in-out infinite alternate; }
@keyframes orbFloat1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes orbFloat2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, -30px) scale(1.1); } }
@keyframes orbFloat3 { from { transform: translate(0, 0) scale(0.9); } to { transform: translate(-40px, 50px) scale(1.2); } }

/* Particles canvas */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; animation: scrollFadeIn 1s 2s var(--ease-out-expo) both; }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-dot { width: 4px; height: 8px; background: rgba(255,255,255,0.8); border-radius: 999px; animation: scrollDot 1.5s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes scrollFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.btn-row.left{ display:flex; justify-content:flex-start; }
.btn-row.center{ display:flex; justify-content:center; }

.hero-cta{
  width:min(520px, 92%);
  padding:18px 22px;
  font-size:18px;
  background: linear-gradient(180deg, var(--navDark), var(--navMid), var(--navBright));
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

/* Headings */
.h2{
  margin:0 0 14px;
  font-size:clamp(24px,2.6vw,36px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height: 1.2;
  color: var(--brand);
}

/* Mission */
.slab{
  background: linear-gradient(90deg, var(--navDark), var(--navMid), var(--navBright));
  color:#fff;
}
.quote-strong{
  background: linear-gradient(90deg, #4A90E2, #5BA0F2, #78C3FF, #4A90E2);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight:700;
  animation: shimmerText 4s ease-in-out infinite;
}
@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mission-text{
  color: rgba(255,255,255,.92);
  line-height: 1.85;
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  text-align:center;
  letter-spacing: 0.01em;
}
.mission-panel{
  margin: 18px auto 0;
  padding: 26px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
  max-width: 80ch;
  text-align: center;
}
.mission-divider{
  width: 110px;
  height: 3px;
  border-radius: 999px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(120,168,255,.85));
  opacity: .85;
  transform-origin: center;
  transform: scaleX(0);
}
.mission-divider.is-visible{
  animation: dividerGrow 0.8s 0.3s var(--ease-out-expo) forwards;
}
@keyframes dividerGrow { to { transform: scaleX(1); } }

/* gap between Impact and Programmes */
.impact-section{ 
  padding-bottom: 34px; 
  background: var(--navDark);
  color: #fff;
}
.programmes-section{ padding-top: 34px; }

/* Programme cards */
.scroller{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap:14px;
  padding:22px 0 10px;
}
.prog-card{
  display: flex;
  justify-content: center;
  align-items: center;
  flex:0 0 260px;
  height:330px;
  border-radius:14px;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.prog-card:hover{
  box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(143,208,255,0.15);
}
.prog-card .img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.prog-card .img.placeholder{
  background:
    linear-gradient(135deg, rgba(25,78,139,.35), rgba(16,43,104,.25)),
    linear-gradient(180deg, rgba(7,26,67,1), rgba(11,35,90,1));
}
.prog-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.62));
}
/* .prog-card .label{
  position:absolute;
  bottom:16px;
  left:16px;
  right:16px;
  color:#fff;
  font-weight:900;
  font-size:18px;
} */
 .prog-card .label {
  /* Make text pure white */
  color: #ffffff;
  font-weight: 700; 
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
  
  /* Optional: Add some spacing if it's too close to the edge */
  margin-bottom: 10px;
}
.plus{
  position:absolute;
  top:12px;
  right:12px;
  width:30px;
  height:30px;
  border-radius:50%;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
}
.plus::before,
.plus::after{
  content:"";
  position:absolute;
  inset:50%;
  width:12px;
  height:2px;
  background:#fff;
  transform:translate(-50%,-50%);
}
.plus::after{ transform:translate(-50%,-50%) rotate(90deg); }

/* Impact */
.impact{
  margin: 0 auto;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  position:relative;
}

/* .impact .bg.placeholder{
  background:
    radial-gradient(900px 520px at 70% 20%, rgba(25,78,139,.35), transparent 60%),
    linear-gradient(180deg, rgba(7,26,67,1), rgba(11,35,90,1));
} */
.impact::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.64));
}
.impact-inner{ position:relative; padding:40px 26px 34px; color:#fff; }
.impact-title{ font-size: clamp(28px, 3vw, 44px); font-weight:900; margin:0 0 18px; text-align: center; }
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

/* .stat:hover{ transform: translateY(-3px); filter: brightness(1.03); box-shadow: var(--glow), 0 18px 40px rgba(0,0,0,.18); } */
.cap{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  background: rgba(7,26,67,.75);
  border:1px solid rgba(255,255,255,.16);
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
  color: var(--silver);
}
.num{ margin:0; font-size:52px; font-weight:900; color:#ffffff; transition: text-shadow 0.3s ease; }
.num.counting{ text-shadow: 0 0 30px rgba(74,158,255,0.6), 0 0 60px rgba(74,158,255,0.3); }
.num.done{ text-shadow: 0 0 20px rgba(74,158,255,0.4); animation: numPulse 2s ease-in-out infinite; }
@keyframes numPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(74,158,255,0.3); }
  50% { text-shadow: 0 0 40px rgba(74,158,255,0.6), 0 0 80px rgba(74,158,255,0.2); }
}
.sub{ margin:8px auto 0; color: var(--silver); font-size:14px; line-height: 1.5; max-width: 34ch; }

/* Stats container */
.stat {
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
  border-radius: 10px; /* optional for smooth edges */
}

/* Hover effect: quick pop + dark blue highlight */
.stat:hover {
  transform: scale(1.15); /* slight enlargement */
  background-color: rgba(15, 63, 133, 0.85); /* dark blue highlight */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 12px rgba(15,168,255,0.45); /* subtle glow */
}


/* ✅ Our Programmes section WHITE */
.programmes-section{
  background:#fff;
}
.programmes-section .h2{
  color: var(--brand);
}

/* OUR VALUES */
.values-section{
  padding: 70px 0;
  background: linear-gradient(90deg, var(--navDark), var(--navMid), var(--navBright));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.values-sub{
  margin: 12px auto 0;
  max-width: 60ch;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
  font-size: 17px;
}
.values-icons {
  display: flex;           /* Flex container */
  flex-wrap: wrap;         /* Wrap items to new rows */
  justify-content: center; /* Center items in every row */
  gap: 34px 40px;          /* Matches your previous grid gaps */
  margin-top: 34px;
  align-items: flex-start; /* Align items to top of row */
}


.value-icon{
  margin:0;
  width:100%;
  max-width: 340px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;

}
.value-icon-media{
  width: 240px;
  height: 170px;
  display:grid;
  place-items:center;
}
.value-icon img{
  max-width: 220px;
  max-height: 160px;
  width:auto;
  height:auto;
  object-fit: contain;
  display:block;
  margin:0 auto;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 16px 34px rgba(0,0,0,.28));
  animation: iconFloat 4s ease-in-out infinite;
}
.value-icon:nth-child(1) img { animation-delay: 0s; }
.value-icon:nth-child(2) img { animation-delay: 0.5s; }
.value-icon:nth-child(3) img { animation-delay: 1s; }
.value-icon:nth-child(4) img { animation-delay: 1.5s; }
.value-icon:nth-child(5) img { animation-delay: 2s; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.value-icon:hover img{ transform: translateY(-4px); }

/* Value icon hover glow ring */
.value-icon-media{ position: relative; }
.value-icon-media::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.value-icon:hover .value-icon-media::after{
  border-color: rgba(143,208,255,0.3);
  box-shadow: 0 0 30px rgba(143,208,255,0.15);
}

.value-icon figcaption{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.v-title{
  color:#fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing:-.01em;
  line-height:1.2;
  text-align:center;
}
.v-sub{
  color: #8fd0ff;
  font-weight: 900;
  letter-spacing:.04em;
  text-align:center;
}


/* EVENTS */
.events-section{
  padding: 70px 0;
  background: linear-gradient(180deg, rgba(7,26,67,1), rgba(11,35,90,1));
}
.events-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items:center;
}
.events-card{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
}
.events-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.events-card::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(var(--gradient-angle, 0deg), #4a9eff, rgba(143,208,255,0.5), transparent, transparent);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate { to { --gradient-angle: 360deg; } }
.events-img-wrap{ background: rgba(255,255,255,.10); }
.events-card img{ width:100%; height:auto; display:block; }
.events-card-meta{
  padding: 16px 18px 18px;
  background: rgba(0,0,0,.78);
  color:#fff;
}
.events-card-title{ font-weight: 900; margin-bottom: 8px; }
.events-card-sub{
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.events-site{
  color: rgba(255,255,255,.75);
  font-weight: 800;
  font-size: 13px;
}
.events-copy{ text-align:left; color:#fff; }
.events-heading{
  margin:0 0 16px;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #bfe0ff;
  text-shadow: 0 16px 36px rgba(0,0,0,.30);
}
.events-text{
  margin:0 0 20px;
  max-width: 44ch;
  color: rgba(255,255,255,.90);
  line-height: 1.75;
  font-size: 18px;
}
.events-btn{
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}

/* ✅ Worked with WHITE */
.worked-with{
  padding: 44px 0 26px;
  background:#fff;
}
.worked-title{
  font-weight:900;
  font-size:24px;
  color: var(--brand);
  margin-bottom:16px;
}

/* Brand carousel */
.brand-carousel{
  position:relative;
  overflow:hidden;
  border-radius: 18px;
  padding: 12px 0;
  background: #f6f8ff;
  border: 1px solid rgba(16,43,104,.14);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brand-carousel-reverse{ margin-top: 14px; }
.brand-track{
  display:flex;
  gap:14px;
  align-items:center;
  width:max-content;
  padding: 14px 18px;
  animation: brandScroll 50s linear infinite;
}
.brand-track-reverse{
  animation: brandScrollReverse 50s linear infinite;
}
.brand-carousel:hover .brand-track{ animation-play-state: paused; }
@keyframes brandScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes brandScrollReverse{
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.brand-tile{
  min-width: 260px;
  height: 104px;
  border-radius:16px;
  border:1px solid rgba(16,43,104,.14);
  background:#fff;
  display:grid;
  place-items:center;
  padding:14px 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.brand-tile img{ max-height: 62px; width:auto; object-fit:contain; }

/* Final CTA */
.final-cta{
  background: linear-gradient(90deg, var(--navDark), var(--navMid), var(--navBright));
  color:#fff;
  padding: 70px 0;
}
.footer-logo {
  height: 32px;
  margin: 0;
  padding: 0;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}
.lets-gradient{
  margin:0;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff, #cfe2ff, #78a8ff, #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientSlide 4s ease-in-out infinite;
}
@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.final-cta .footer-logo{
  animation: breatheGlow 3s ease-in-out infinite;
}
@keyframes breatheGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(143,208,255,0.2)); }
  50% { filter: drop-shadow(0 0 25px rgba(143,208,255,0.5)); }
}
.partner-btn{
  margin-top:18px;
  padding: 14px 18px;
  background: rgba(7,26,67,.88);
  border-color: rgba(255,255,255,.14);
}
.email{ margin-top:14px; color: var(--silver); }

/* Inner pages */
.page-head{
  padding:80px 0 50px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,158,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(143,208,255,0.1) 0%, transparent 50%),
    linear-gradient(90deg, var(--navDark), var(--navMid), var(--navBright));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.10);
  overflow: hidden;
  position: relative;
}
.page-head::after{
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(143,208,255,0.08), transparent);
  border-radius: 50%;
  animation: meshFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshFloat { from { transform: translate(0, 0); } to { transform: translate(-30px, 20px); } }
.page-head h1{
  margin:0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight:900;
  line-height: 1.15;
  letter-spacing: -.02em;
  opacity: 0;
  animation: pageHeadIn 0.6s 0.1s var(--ease-out-expo) forwards;
}
.page-head .white-muted{
  opacity: 0;
  animation: pageHeadIn 0.6s 0.25s var(--ease-out-expo) forwards;
}
@keyframes pageHeadIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-body{ padding:50px 0 80px; }
.card{
  background:#fff;
  border-radius:18px;
  padding: 32px 30px;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.dark-btn{
  background: linear-gradient(180deg, rgba(25,78,139,.95), rgba(7,26,67,.95));
  padding: 12px 14px;
  border-radius: 6px;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--navBright), #8fd0ff, var(--navBright), transparent);
  border-radius: 999px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-content: space-between;
  align-items: start;
}

/* Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Headings */
.footer-heading {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navMid);
  margin-bottom: 8px;
}

/* Links */
.footer-col a {
  font-size: 14.5px;
  color: rgba(7,19,41,.70);
  transition: color .2s ease;
  position: relative;
  display: inline-block;
  line-height: 1.5;
}
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--navBright);
  transition: width 0.3s var(--ease-out-expo);
}
.footer-col a:hover {
  color: var(--navBright);
}
.footer-col a:hover::after { width: 100%; }

/* Brand column tweaks */
.brand-col {
  gap: 6px;
  align-items: flex-start;
  text-align: left;
}


.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left section */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Right section */
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ihsaan-slogan {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: rgba(7,19,41,.55);
  line-height: 1.4;
}

.foot-silver{ font-size: 13px; color: rgba(7,19,41,.70); }
.foot-links{ display:flex; align-items:center; gap:10px; }
.foot-links a{ font-weight:800; color:#2d438d; }
.sep{ opacity:.45; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Responsive */
@media(max-width:1100px){
  .nav-link{ font-size: 13px; }
  .brand-logo{ height:30px; }
}
@media(max-width:900px){
  .nav-inner{ grid-template-columns: 1fr auto; }
  .nav-links,.nav-icons{ display:none; }
  .burger{ display:block; justify-self:end; }

  .hero-content{ text-align:center; }
  .hero h1{ max-width:none; }
  .btn-row.left{ justify-content:center; }

  .stats{ grid-template-columns:1fr; }

  .impact-section { padding: 80px 20px; }

  .programmes-section{ padding-top: 24px; }

  .events-grid{ grid-template-columns:1fr; gap:20px; }
  .events-copy{ text-align:center; }
  .events-text{ margin: 0 auto 20px; }

  .values-icons{ flex-direction: column; align-items: center; }
  .value-icon-media{ width: 260px; height: 160px; }

  .hero-logo{ height:40px; top:12%; }
}

.events-img-wrap iframe {
    width: 100%;
    aspect-ratio: 4 / 3;  /* keeps the 600x450 ratio */
    border: 1px solid #bfcbda88;
    border-radius: 4px;
    display: block;
}
.prog-card[data-route="career-conferences"] .img {
  background: url('images/career-conferences.png') center/cover no-repeat;
}

.prog-card[data-route="faithful-talent"] .img {
  background: url('images/faithful_talent.png') center/cover no-repeat;
}

.prog-card[data-route="opportunities-tracker"] .img {
  background: url('images/oppTracker.png') center/cover no-repeat;
}

.prog-card[data-route="haqqathons"] .img {
  background: url('images/Haqqathons.png') center/cover no-repeat;
}

.prog-card[data-route="career-guides"] .img {
  background: url('images/career-guides.png') center/cover no-repeat;
}
.prog-card[data-route="my-muslim-mentor"] .img {
  /* You didn't show this file in your screenshot list, so check the filename! */
  background: url('images/mmm.png') center/cover no-repeat;
}

/* --- IMPACT SECTION FIX --- */

/* 1. Make the SECTION handle the background image, not a div inside it */
.impact-section {
  position: relative;
  background-image: url('images/ImpactNoDB.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  /* Ensure no other background color overrides it */
  background-color: transparent !important; 
}

/* 2. Add the dark overlay so white text is readable */
.impact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Adjust darkness here */
  z-index: 1;
}

/* 3. Bring content above the overlay */
.impact-section .container {
  position: relative;
  z-index: 2;
}

/* 4. REMOVE THE BOXES around the stats */
.stat {
  background: transparent !important; /* Forces transparency */
  border: none !important;            /* Removes border */
  box-shadow: none !important;        /* Removes shadow */
  backdrop-filter: none !important;   /* Removes blur */
  padding: 0 !important;              /* Removes padding inside box */
}

/* 5. Style the Blue Labels ("Event Attendees") */
.stat .cap {
  background-color: #0f3f85 !important; /* Solid blue */
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important; /* Sharp corners */
  padding: 10px 20px !important;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* 6. Style the Numbers */
.stat .num {
  font-size: 80px; /* Make them HUGE */
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

/* 7. Style the Subtext */
.stat .sub {
  font-size: 18px;
  color: #e2e8f0;
  margin-top: 10px;
  font-weight: 500;
}

.donate-strip {
  background: linear-gradient(135deg, #ffffff, #f0f5ff, #e8f0ff, #ffffff);
  background-size: 300% 300%;
  animation: donateGradient 8s ease infinite;
  padding: 30px 0;
  border-top: 1px solid rgba(16,43,104,.10);
  border-bottom: 1px solid rgba(16,43,104,.10);
}
@keyframes donateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.container-donate-inner {
  display:flex;
  align-items:center;
  justify-content:center; 
  gap:72px;               
  flex-wrap:wrap;         
}

.donate-text{
  margin:0;
  font-size: 22px;
  font-weight:900;
  letter-spacing:-.01em;
  line-height: 1.4;
  background: linear-gradient(90deg, var(--navMid), var(--navBright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-btn{
  padding: 14px 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--navDark), var(--navMid), var(--navBright));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(7,26,67,.18);
  border: 1px solid rgba(255,255,255,.16);
  font-weight:900;
  text-transform:uppercase;
}

.donate-btn{
  animation: donatePulse 2s ease-in-out infinite;
}
@keyframes donatePulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(7,26,67,0.18); }
  50% { box-shadow: 0 14px 34px rgba(7,26,67,0.18), 0 0 20px rgba(74,158,255,0.25); }
}
.donate-btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--glow), 0 18px 40px rgba(0,0,0,.18);
}

.haqqathon-events {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  position: relative;
  padding-left: 30px;
}
/* Vertical timeline connector */
.haqqathon-events::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4a9eff, rgba(143,208,255,0.3));
  border-radius: 999px;
}

.haqqathon-card {
  background: linear-gradient(145deg, #0b132b, #1c2541);
  color: #f0f0f0;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-bottom: 2rem;
}
/* Timeline dot */
.haqqathon-card::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4a9eff;
  border: 3px solid #0b132b;
  box-shadow: 0 0 10px rgba(74,158,255,0.5);
  z-index: 1;
}
/* Horizontal connector */
.haqqathon-card::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 36px;
  width: 16px;
  height: 2px;
  background: rgba(74,158,255,0.5);
}

.haqqathon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.haqqathon-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.haqqathon-card .participants {
  font-weight: 500;
  margin-bottom: 1rem;
  color: #a0a0a0;
}

.haqqathon-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.haqqathon-card ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.haqqathon-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  font-size: 15px;
}

.haqqathon-link {
  text-align: center;
  margin-top: 2.5rem;
}

.haqqathon-link a {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700, #ffdd57);
  color: #0b132b;
  font-weight: bold;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(255, 221, 87, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.haqqathon-link a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 221, 87, 0.6);
}

.haqqathon-follow {
  text-align: center;
  margin-top: 3rem;
}

.haqqathon-follow p {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--navDark);
  font-size: 1.1rem;
}

.haqqathon-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--navMid), var(--navBright));
  color: #ffffff;
  font-weight: bold;
  margin: 0 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(96, 179, 247, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.haqqathon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 221, 87, 0.6);
}

/* ---------- HERO CTA ALT (outline variant) ---------- */
.hero-cta-alt{
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: none;
}
.hero-cta-alt:hover{
  background: rgba(255,255,255,.12) !important;
  border-color: #fff;
}

/* ---------- MEET THE TEAM ---------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media(max-width:900px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:540px){
  .team-grid{ grid-template-columns: 1fr; }
}

.team-card{
  text-align: center;
  padding: 28px 18px;
  border-radius: 16px;
  background: #f4f7fb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.team-photo{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navMid), var(--navBright));
  opacity: .35;
}

.team-name{
  font-weight: 700;
  font-size: 16px;
  color: var(--navDark);
  margin-bottom: 4px;
}

.team-role{
  font-size: 14px;
  color: #556a99;
  margin-bottom: 10px;
}

.team-linkedin{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navBright);
  color: #fff;
  transition: transform 0.2s ease;
}
.team-linkedin:hover{
  transform: scale(1.12);
}

/* ---------- MINI STATS (inline stats grid) ---------- */
.mini-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 8px 0;
}

.mini-stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4ff, #f0f6ff);
  transition: transform 0.2s ease;
}
.mini-stat:hover{
  transform: translateY(-3px);
}

.mini-num{
  font-size: 28px;
  font-weight: 800;
  color: var(--navDark);
  line-height: 1.1;
}

.mini-label{
  font-size: 13px;
  color: #556a99;
  margin-top: 4px;
  text-align: center;
}

/* ========================================================
   MOBILE OPTIMISATIONS — TABLET (≤900px)
   ======================================================== */
@media (max-width: 900px) {

  /* --- Hero --- */
  .hero { min-height: 400px; height: 75vh; }
  .hero-content { padding: 50px 0 40px; }
  .hero h1 { font-size: clamp(24px, 5.5vw, 36px); }
  .hero-logo { height: 34px; }
  .hero-cta { width: min(400px, 88%); padding: 15px 18px; font-size: 16px; }
  .scroll-indicator { bottom: 18px; }

  /* --- Mission --- */
  .mission-text { font-size: 15.5px; max-width: 58ch; }
  .mission-panel { padding: 22px 18px; }

  /* --- Programme cards --- */
  .prog-card { flex: 0 0 220px; height: 280px; }

  /* --- Events --- */
  .events-heading { font-size: clamp(30px, 5vw, 48px); }
  .events-text { font-size: 16px; }

  /* --- Brand carousel --- */
  .brand-tile { min-width: 200px; height: 85px; }
  .brand-tile img { max-height: 44px; }

  /* --- Page head --- */
  .page-head h1 { font-size: clamp(26px, 5vw, 40px); }
  .page-body { padding: 36px 0 60px; }

  /* --- Cards --- */
  .card { padding: 26px 22px; }

  /* --- Donate --- */
  .container-donate-inner { gap: 30px; }
  .donate-text { font-size: 19px; text-align: center; }
}

/* ========================================================
   MOBILE OPTIMISATIONS — PHONE (≤600px)
   ======================================================== */
@media (max-width: 600px) {

  /* --- Base --- */
  :root { --container: min(1120px, 88%); }
  .section { padding: 50px 0; }
  .h2 { font-size: clamp(20px, 5vw, 28px); }
  .darkp { font-size: 15px; line-height: 1.75; }
  .white-muted { font-size: 15px; }

  /* --- Nav --- */
  .nav-inner { padding: 12px 0; }
  .brand-logo { height: 26px; }
  .burger { width: 36px; height: 36px; }

  /* --- Mobile drawer --- */
  .mobile-drawer { padding: 12px 0 16px; }
  .mobile-drawer a {
    padding: 14px 16px;
    font-size: 15px;
    margin-bottom: 8px;
  }
  .mobile-accordion {
    padding: 14px 16px;
    font-size: 15px;
  }
  .mobile-sub a {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* --- Hero --- */
  .hero { min-height: 360px; height: 70vh; }
  .hero-content { padding: 40px 0 30px; }
  .hero h1 { font-size: clamp(22px, 6vw, 32px); margin-bottom: 14px; }
  .hero-logo { height: 28px; top: 8%; }
  .hero-sub { font-size: 14px; margin-top: 14px; }
  .hero-cta {
    width: 90%;
    padding: 14px 16px;
    font-size: 15px;
  }
  .scroll-indicator { bottom: 14px; }
  .scroll-mouse { width: 20px; height: 32px; }

  /* --- Mission --- */
  .slab { padding: 40px 0; }
  .mission-text { font-size: 14.5px; line-height: 1.75; max-width: none; }
  .mission-panel { padding: 20px 16px; border-radius: 12px; }
  .mission-divider { width: 80px; }

  /* --- Programme cards --- */
  .programmes-section { padding-top: 20px; }
  .scroller { gap: 10px; padding: 16px 0 8px; }
  .prog-card {
    flex: 0 0 calc(50% - 5px);
    height: 200px;
  }
  .prog-card .label { font-size: 13px; margin-bottom: 6px; }
  .plus { width: 24px; height: 24px; top: 8px; right: 8px; }
  .plus::before, .plus::after { width: 10px; }

  /* --- Impact --- */
  .impact-section { padding: 60px 10px; }
  .impact-title { font-size: clamp(22px, 5.5vw, 34px); margin-bottom: 14px; }
  .stat .num, .num { font-size: 42px !important; }
  .stat .cap, .cap { font-size: 11px !important; padding: 6px 14px !important; }
  .stat .sub, .sub { font-size: 13px; max-width: 28ch; }
  .stats { gap: 24px; }

  /* --- Values --- */
  .values-section { padding: 50px 0; }
  .values-sub { font-size: 15px; }
  .values-icons { gap: 24px 20px; }
  .value-icon { max-width: 280px; }
  .value-icon-media { width: 180px; height: 130px; }
  .value-icon img { max-width: 160px; max-height: 120px; }
  .v-title { font-size: 16px; }
  .v-sub { font-size: 12px; }

  /* --- Events --- */
  .events-section { padding: 50px 0; }
  .events-heading { font-size: clamp(26px, 6vw, 40px); }
  .events-text { font-size: 15px; line-height: 1.65; margin: 0 auto 16px; }
  .events-btn { width: 100%; text-align: center; padding: 14px; }
  .events-card-sub { font-size: 13.5px; }

  /* --- Brand carousel --- */
  .worked-with { padding: 34px 0 20px; }
  .worked-title { font-size: 20px; margin-bottom: 12px; }
  .brand-carousel { border-radius: 12px; padding: 8px 0; }
  .brand-track { padding: 10px 12px; gap: 10px; }
  .brand-tile { min-width: 160px; height: 72px; border-radius: 12px; }
  .brand-tile img { max-height: 36px; }
  .brand-carousel-reverse { margin-top: 10px; }

  /* --- Footer --- */
  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; }
  .footer-col { text-align: center; }
  .footer-col a { font-size: 14px; }
  .footer-heading { font-size: 12px; }
  .footer-logo { margin: 0 auto; height: 28px; }
  .ihsaan-slogan { text-align: center; }
  .foot-silver { text-align: center; display: block; }

  /* --- Page heads (programme pages) --- */
  .page-head { padding: 60px 0 40px; }
  .page-head h1 { font-size: clamp(22px, 6vw, 34px); }
  .page-head .white-muted { font-size: 14px; }
  .page-body { padding: 28px 0 50px; }

  /* --- Cards (programme pages) --- */
  .card { padding: 22px 18px; border-radius: 14px; }
  .card .darkp ul { padding-left: 16px; }

  /* --- Mini stats --- */
  .mini-stats { gap: 10px; }
  .mini-stat { min-width: 90px; padding: 12px 14px; border-radius: 10px; }
  .mini-num { font-size: 22px; }
  .mini-label { font-size: 11.5px; }

  /* --- Meet the Team --- */
  .team-grid { gap: 16px; }
  .team-card { padding: 22px 14px; }
  .team-photo { width: 70px; height: 70px; margin-bottom: 12px; }
  .team-name { font-size: 15px; }
  .team-role { font-size: 13px; }

  /* --- Donate --- */
  .donate-strip { padding: 24px 0; }
  .container-donate-inner { gap: 20px; flex-direction: column; text-align: center; }
  .donate-text { font-size: 18px; }
  .donate-btn { width: 100%; text-align: center; padding: 14px 18px; }

  /* --- Haqqathon cards --- */
  .haqqathon-events { padding-left: 20px; }
  .haqqathon-card { padding: 20px 16px; }
  .haqqathon-card ul li { font-size: 14px; }
}

/* ========================================================
   MOBILE OPTIMISATIONS — SMALL PHONE (≤400px)
   ======================================================== */
@media (max-width: 400px) {
  :root { --container: min(1120px, 92%); }

  .hero { min-height: 320px; height: 65vh; }
  .hero h1 { font-size: 20px; }
  .hero-logo { height: 24px; }
  .hero-cta { font-size: 14px; padding: 12px 14px; }

  .prog-card { flex: 0 0 100%; height: 180px; }
  .prog-card .label { font-size: 14px; }

  .stat .num, .num { font-size: 34px !important; }
  .impact-title { font-size: 20px; }

  .events-heading { font-size: 22px; }

  .brand-tile { min-width: 130px; height: 60px; }
  .brand-tile img { max-height: 30px; }

  .page-head { padding: 50px 0 30px; }
  .page-head h1 { font-size: 20px; }
  .card { padding: 18px 14px; }
  .mini-num { font-size: 20px; }

  .team-grid { grid-template-columns: 1fr; }
}

