/* =========================================================
   WATOTO SALAMA FOUNDATION, DESIGN SYSTEM
   ========================================================= */

:root {
  /* Brand colors, official WSF Brand & Publications Manual, Edition 1.0 */
  --primary: #1888C9;        /* WSF Primary Blue */
  --primary-dark: #126694;
  --primary-light: #EBF5FB;  /* Light Blue Tint */
  --secondary: #67AD44;      /* WSF Primary Green */
  --secondary-dark: #4f8a30;
  --secondary-light: #F0F8EC; /* Light Green Tint */
  --accent: #F3A61A;         /* WSF Gold */
  --dark: #1A2E3B;           /* WSF Dark Navy */
  --brandbar: #146FA2;       /* Topbar / header / footer color */
  --text: #4A6572;           /* WSF Mid Gray (body text) */
  --text-light: #6b7f89;
  --light: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;

  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(30, 42, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 42, 50, 0.1);
  --shadow-lg: 0 16px 48px rgba(30, 42, 50, 0.14);
  --transition: 0.25s ease;
}

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}
p { margin: 0 0 var(--space-sm); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary);
  color: #fff; padding: 12px 20px; z-index: 9999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: #fff; }
.bg-primary { background: var(--primary); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  background: rgba(102, 176, 65, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.eyebrow i { color: var(--accent); }

.section-head { max-width: 680px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { color: var(--text-light); font-size: 1.05rem; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: #dc9214; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
/* ---- Top contact bar ---- */
.topbar {
  background: var(--brandbar);
  color: rgba(255,255,255,0.9);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; align-items: center; gap: var(--space-md); }
.topbar-left a {
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.topbar-left a:hover { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.topbar-right a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: var(--space-md);
}
.brand { flex-shrink: 0; }
.brand-logo {
  height: 88px;
  width: auto;
  max-width: 320px;
  flex-shrink: 0;
}

.mobile-nav-header, .mobile-nav-logo, .nav-close, .mobile-nav-cta { display: none; }

.main-nav ul { display: flex; gap: var(--space-md); }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta { flex-shrink: 0; }
.main-nav { flex-shrink: 1; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 8px;
  flex-shrink: 0;
  z-index: 2001;
  transition: background var(--transition);
}
.nav-toggle:hover, .nav-toggle:active { background: var(--light); }
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-bottom: 90px; /* room for overlapping feature strip */
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 26, 0.65) 0%, rgba(10, 20, 26, 0.55) 45%, rgba(10, 20, 26, 0.75) 100%);
  z-index: 1;
}
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 105px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
@media (max-width: 640px) {
  .hero-dots { bottom: 76px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.hero-content .eyebrow { background: rgba(255,255,255,0.15); color: #fff; margin-left: auto; margin-right: auto; }
.hero-content .eyebrow i { color: var(--accent); }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-md);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto var(--space-lg);
}
.hero-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }

.hero-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 720px;
}
.hero-badge { display: flex; align-items: center; gap: 12px; }
.hero-badge .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.hero-badge .label { font-size: 0.85rem; color: rgba(255,255,255,0.85); max-width: 120px; }

/* ---- Overlapping feature strip (sits half-in / half-out of hero bottom) ---- */
.hero-features-wrap {
  position: relative;
  z-index: 3;
  margin-top: -70px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.hero-feature:last-child { border-right: none; }
.hero-feature:hover { background: var(--primary-light); }
.hero-feature-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.15rem;
}
.hero-feature:nth-child(1) .hero-feature-icon { background: var(--primary); }
.hero-feature:nth-child(2) .hero-feature-icon { background: var(--secondary); }
.hero-feature:nth-child(3) .hero-feature-icon { background: var(--accent); }
.hero-feature:nth-child(4) .hero-feature-icon { background: var(--dark); }
.hero-feature-text strong { display: block; font-family: var(--font-display); font-size: 0.92rem; color: var(--dark); }
.hero-feature-text span { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 900px) {
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .hero-feature { border-bottom: 1px solid var(--border); }
  .hero-features-wrap { margin-top: -50px; }
}
@media (max-width: 480px) {
  .hero-features { grid-template-columns: 1fr; }
  .hero-features-wrap { margin-top: -40px; }
  .hero { padding-bottom: 60px; min-height: auto; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  padding: 7rem 0 4rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,26,0.6), rgba(10,20,26,0.72));
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: var(--space-sm); }
.breadcrumb a { color: #fff; font-weight: 600; }

/* =========================================================
   ABOUT SNAPSHOT (home)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-media-tag {
  position: absolute;
  bottom: -24px; left: -24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-media-tag i { color: var(--secondary); font-size: 1.6rem; }
.about-media-tag strong { display: block; font-family: var(--font-display); color: var(--dark); }
.about-media-tag span { font-size: 0.85rem; color: var(--text-light); }

.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.mission-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.mission-box h4 { color: var(--primary-dark); margin-bottom: 6px; }
.mission-box p { margin: 0; color: var(--text); }

/* =========================================================
   THEMATIC AREAS / PROGRAM CARDS
   ========================================================= */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.theme-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.theme-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.theme-card:nth-child(1) .theme-icon { background: var(--primary); }
.theme-card:nth-child(2) .theme-icon { background: var(--secondary); }
.theme-card:nth-child(3) .theme-icon { background: var(--accent); }
.theme-card:nth-child(4) .theme-icon { background: var(--dark); }
.theme-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.theme-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.theme-card a { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.theme-card a i { font-size: 0.8rem; margin-left: 4px; transition: transform var(--transition); }
.theme-card a:hover i { transform: translateX(4px); }

/* =========================================================
   PARTNERSHIP FEATURE
   ========================================================= */
.feature-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.feature-banner h2 { color: #fff; }
.feature-banner p { color: rgba(255,255,255,0.9); }
.feature-banner img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  height: 320px;
  width: 100%;
  object-fit: cover;
}
.feature-list { margin: var(--space-md) 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.feature-list i { color: var(--accent); margin-top: 4px; }

/* =========================================================
   GALLERY / PHOTO GRID
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-sm);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(15,32,46,0.85), transparent);
  color: #fff;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* =========================================================
   STATS
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.stat-item .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--primary);
}
.stat-item .label { color: var(--text-light); font-size: 0.9rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--secondary);
  opacity: 0.25;
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto var(--space-md); }
.cta-actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; position: relative; z-index: 1;}

/* =========================================================
   CARDS: TEAM / VALUES / TESTIMONIAL-STYLE
   ========================================================= */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.value-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--light);
}
.value-card i { font-size: 2rem; color: var(--secondary); margin-bottom: var(--space-sm); }
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* =========================================================
   PROGRAMS PAGE, DETAIL BLOCKS
   ========================================================= */
.program-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
.program-block:last-child { border-bottom: none; }
.program-block.reverse .program-media { order: 2; }
.program-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.program-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--secondary);
  letter-spacing: 0.08em;
}
.program-text h2 { margin-top: 6px; }
.program-list { margin-top: var(--space-md); display: grid; gap: 10px; }
.program-list li { display: flex; gap: 10px; align-items: flex-start; }
.program-list i { color: var(--primary); margin-top: 5px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
}
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-info-card h2 { color: #fff; font-size: 1.25rem; }
.contact-detail { display: flex; gap: 14px; margin-bottom: var(--space-md); align-items: flex-start; }
.contact-detail i {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-detail strong { display: block; margin-bottom: 2px; }
.contact-detail a, .contact-detail span { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.contact-social { display: flex; gap: 10px; margin-top: var(--space-md); }
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.contact-social a:hover { background: var(--primary); }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.contact-form-card h2 { font-size: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: 0.92rem;
}
.form-alert.success { background: rgba(102,176,65,0.12); color: var(--secondary-dark); border: 1px solid rgba(102,176,65,0.3); }
.form-alert.error { background: rgba(220,53,69,0.1); color: #b02a37; border: 1px solid rgba(220,53,69,0.3); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-lg);
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--brandbar); color: rgba(255,255,255,0.85); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-logo {
  height: 110px;
  max-width: 100%;
  width: auto;
  margin-bottom: var(--space-md);
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.footer-contact i { color: var(--accent); margin-top: 3px; }

.footer-partners {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
}
.partners-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}
.partners-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.partners-row a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  margin: 5px 14px 5px 0;
}
.partners-row a:hover { color: var(--accent); }

.footer-bottom { padding: var(--space-sm) 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-bottom-inner p { margin: 0; }
.footer-credit { margin-left: auto; }
.footer-credit a {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .footer-credit { margin-left: 0; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-logo { height: 76px; }
}

@media (max-width: 900px) {
  .about-grid,
  .feature-banner,
  .program-block,
  .program-block.reverse .program-media,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .program-block.reverse .program-media { order: 0; }
  .feature-banner img { height: 240px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 860px) {
  .brand-logo { height: 68px; }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 6px;
  }
  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .topbar-left a, .topbar-right a { font-size: 0.78rem; }
  .topbar-right { gap: 14px; }

  .main-nav {
    position: fixed;
    inset: 0;
    left: auto;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 2000;
    box-shadow: -12px 0 32px rgba(0,0,0,0.18);
  }
  .main-nav.open { transform: translateX(0); }

  /* Hide the hamburger icon while the panel is open. The panel's own
     close (X) button is the only close control needed, avoiding a
     duplicate X being shown on top of the slide-out menu. */
  .nav-toggle.open { opacity: 0; pointer-events: none; }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .mobile-nav-logo { display: block; height: 42px; width: auto; }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    color: var(--dark);
    font-size: 1.1rem;
  }
  .nav-close:hover { background: var(--border); }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 20px;
    overflow-y: auto;
    flex: 1 1 auto;
  }
  .main-nav a { display: block; padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }

  .mobile-nav-cta {
    display: flex;
    align-items: center;
    margin: var(--space-sm) 20px var(--space-lg);
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: auto;
    padding: 11px 24px;
    font-size: 0.9rem;
  }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-badges { gap: var(--space-sm); }
}

/* Backdrop behind mobile nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 46, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-backdrop.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
  .section { padding: var(--space-xl) 0; }
  .themes-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-logo { height: 84px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-content { padding: var(--space-md) 0; }
  .cta-banner { padding: var(--space-lg); }
  .feature-banner { padding: var(--space-lg); }
  .about-media-tag { left: 12px; bottom: -18px; padding: 12px 16px; }
  .about-media img { height: 320px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .brand-logo { height: 58px; }
}
