/* Reset and CSS Variables */
:root {
  --primary-purple: #5e1062;
  --primary-purple-hover: #4c0a50;
  --primary-purple-light: #f7eff8;
  --accent-purple: #7d1c82;
  --bg-lavender: #f4ecf5;
  --border-lavender: #dfd2e3;
  --nav-active-bg: #ebe4ef;
  --text-dark: #2a252c;
  --text-light: #6d6470;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(94, 16, 98, 0.08);
  --shadow-md: 0 8px 24px rgba(94, 16, 98, 0.12);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  /* Fixed-bar metrics. The hero sections reserve exactly this much space,
     so the header height and the space reserved for it can never drift apart. */
  --asdf-topbar-h: 42px;
  --asdf-header-h: 90px;
  --asdf-header-offset: calc(var(--asdf-topbar-h) + var(--asdf-header-h));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Top Bar ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--asdf-topbar-h);
  background: linear-gradient(90deg, #1e0028 0%, #2a0038 100%);
  z-index: 1100;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.top-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar-item:hover {
  color: #ffffff;
}

.top-bar-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.3px;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-current svg {
  transition: transform 0.25s ease;
}

.lang-switcher.open .lang-current svg {
  transform: rotate(180deg);
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-lavender);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 10;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.lang-option:hover {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
}

.lang-option.active {
  color: var(--primary-purple);
  font-weight: 700;
  background-color: var(--primary-purple-light);
}

/* ── Header & Navigation ── */
.site-header {
  position: fixed;
  top: var(--asdf-topbar-h); /* sits below topbar */
  left: 0;
  width: 100%;
  height: var(--asdf-header-h);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: top 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}

/* When topbar is hidden, header slides up */
.site-header.top-hidden {
  top: 0;
}

.site-header.scrolled {
  height: 75px;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-area .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.header-logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.site-header.scrolled .header-logo-img {
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-wordmark {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-purple);
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: stretch;
  height: 100%;
}

.nav-list > li {
  display: flex;
  align-items: stretch;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 18px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-purple);
  transition: var(--transition);
  border-radius: 0;
}

.nav-item:hover {
  color: var(--primary-purple);
}

.nav-item:hover::after {
  height: 4px;
}

.nav-item.active {
  color: var(--text-dark);
  background-color: var(--nav-active-bg);
}

.nav-item.active::after {
  height: 4px;
}

.nav-item.active:hover {
  color: var(--text-dark);
  background-color: #e2dae8;
}

.nav-item.active:hover::after {
  height: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.search-trigger {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 12px;
  margin-right: 20px;
  border-radius: 50%;
  transition: var(--transition);
}

.search-trigger:hover {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
}

.donate-banner-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.donate-btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-purple);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 0 45px;
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%);
  margin-right: -40px; /* Aligns flush to edge */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.donate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.donate-btn:hover::before {
  left: 100%;
}

.donate-btn:hover {
  background-color: var(--primary-purple-hover);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Carousel Section */
.hero-slider-section {
  margin-top: var(--asdf-header-offset); /* topbar 42 + header 90 */
  position: relative;
  height: calc(100vh - var(--asdf-header-h));
  min-height: 560px;
  /* Richer base — deep midnight purple */
  background: linear-gradient(145deg, #07000d 0%, #120018 30%, #1e0030 60%, #0c0015 100%);
  overflow: hidden;
}

/* ── Layer 1: Bokeh light blooms ── */
.hero-slider-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Primary bloom — top-right, warm violet */
    radial-gradient(ellipse 52% 60% at 90% 5%,  rgba(148, 45, 210, 0.42) 0%, transparent 62%),
    /* Secondary bloom — bottom-left, deep indigo */
    radial-gradient(ellipse 38% 45% at 4%  92%,  rgba(80,  20, 140, 0.30) 0%, transparent 65%),
    /* Accent bloom — mid-left, softer magenta */
    radial-gradient(ellipse 25% 30% at 12% 30%,  rgba(180, 60, 220, 0.18) 0%, transparent 60%),
    /* Subtle center crown */
    radial-gradient(ellipse 40% 25% at 52% 0%,   rgba(200, 90, 255, 0.12) 0%, transparent 70%),
    /* Bottom-right warmth */
    radial-gradient(ellipse 30% 35% at 82% 95%,  rgba(100, 15, 160, 0.22) 0%, transparent 60%);
}

/* ── Layer 2: Grain texture + star-field ── */
.hero-slider-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Fine noise grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"),
    /* Two-scale star-field dots */
    radial-gradient(circle, rgba(255,255,255,0.55) 0.6px, transparent 0.6px),
    radial-gradient(circle, rgba(255,255,255,0.30) 0.4px, transparent 0.4px);
  background-size: 300px 300px, 90px 90px, 45px 45px;
  background-position: 0 0, 0 0, 22px 22px;
  opacity: 0.18;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1; /* sits above ::before and ::after backdrop layers */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Two-column slide inner layout */
.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6% 80px 7%;
  gap: 5%;
}

/* ── Slide entrance keyframes ── */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.88); }
  60%  { transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tagShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Left text column — individual element stagger */
.slide-text-col {
  flex: 0 0 42%;
  color: var(--white);
}

/* Each child resets between slides */
.slide-tag-row,
.slide-title,
.slide-desc,
.slide-cta {
  opacity: 0;
}

/* Active slide — staggered entrance per element */
.slide.active .slide-tag-row {
  animation: slideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.slide.active .slide-title {
  animation: slideUpFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.slide.active .slide-desc {
  animation: slideUpFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}
.slide.active .slide-cta {
  animation: slideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.74s forwards;
}

/* Tag badge — pill style with shimmer */
.slide-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.slide-tag-line {
  display: block;
  width: 32px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.slide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 5px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on active tag */
.slide.active .slide-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,0.25) 50%,
    transparent 65%);
  background-size: 200% 100%;
  animation: tagShimmer 1.4s ease 0.25s 1 forwards;
}

/* Title */
.slide-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.title-accent {
  color: #c97dd4;
}

/* Description */
.slide-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

/* CTA link */
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.slide-cta::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.slide-cta:hover {
  color: #c97dd4;
  border-color: #c97dd4;
  gap: 12px;
}

.slide-cta:hover::after {
  transform: translateX(4px);
}

/* Right image column */
.slide-image-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.slide.active .slide-image-col {
  animation: slideInRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

/* Premium image card */
.slide-image-card {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  /* layered shadow: deep ambient + close soft + purple glow */
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 60px rgba(94, 16, 98, 0.20);
}

/* Subtle inner stroke frame */
.slide-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

/* Gentle top vignette over the image */
.slide-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(94, 16, 98, 0.08) 0%,
    transparent 40%,
    rgba(0,0,0,0.15) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.slide-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

/* Slow Ken Burns zoom while slide is active */
.slide.active .slide-image-card img {
  transform: scale(1.06);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 32px;
  left: 7%;
  right: 6%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-indicators {
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1), background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.indicator.active {
  width: 56px;
  background-color: rgba(255, 255, 255, 0.35);
}

/* Animated fill on active indicator */
.indicator.active::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  animation: indicatorFill 5s linear forwards;
}

@keyframes indicatorFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

/* Our Journey Section */
.journey-section {
  padding: 120px 0;
  background-color: var(--white);
  background-image: url('../images/pattern.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Visual layout column — oval composition */
.journey-visual {
  position: relative;
  height: 580px;
}

/* Decorative SVG top-right */
.journey-deco {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 0;
  pointer-events: none;
}

/* Large oval — upper-left */
.visual-oval-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 68%;
  height: 460px;
  border-radius: 50% / 46%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

/* Small oval — lower-right */
.visual-oval-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 54%;
  height: 320px;
  border-radius: 50% / 46%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.oval-bg {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.visual-oval-large:hover .oval-bg,
.visual-oval-small:hover .oval-bg {
  transform: scale(1.05);
}

/* Yellow experience badge */
.experience-badge {
  position: absolute;
  bottom: 90px;
  left: 38%;
  transform: translateX(-50%);
  background-color: var(--primary-purple);
  border-radius: 10px;
  padding: 18px 22px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.badge-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Content layout column */
.journey-content {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--primary-purple);
  opacity: 0.4;
  border-radius: 1px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-text p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 45px;
  transition: var(--transition);
}

.read-more-btn svg {
  transition: var(--transition);
}

.read-more-btn:hover {
  color: var(--accent-purple);
}

.read-more-btn:hover svg {
  transform: translateX(5px);
}

/* Vision / Mission Row */
.vision-mission-row {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-lavender);
  padding-top: 35px;
  position: relative;
}

.vision-box,
.mission-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.icon-wrap {
  width: 60px;
  height: 60px;
  background-color: var(--primary-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: var(--transition);
}

.vision-box:hover .icon-wrap,
.mission-box:hover .icon-wrap {
  background-color: var(--primary-purple);
  transform: translateY(-3px);
}

.vision-box:hover .icon-wrap svg,
.mission-box:hover .icon-wrap svg {
  stroke: var(--white);
}

.box-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 8px;
}

.box-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.divider-line {
  width: 1px;
  background-color: var(--border-lavender);
  align-self: stretch;
}

/* OUR REACH Section */
.reach-section {
  padding: 100px 0;
  background-color: var(--bg-lavender);
}

.reach-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}

.reach-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.reach-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reach-subtitle::before,
.reach-subtitle::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--primary-purple);
  opacity: 0.4;
  border-radius: 1px;
}

/* 8-Card Grid Box */
.reach-grid-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--white);
  border: 1px solid var(--border-lavender);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(94, 16, 98, 0.05);
}

.reach-cell {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--white);
  transition: var(--transition);
  border-right: 1px solid var(--border-lavender);
  border-bottom: 1px solid var(--border-lavender);
}

/* Borders calculations for 4x2 grid on desktop */
.reach-cell:nth-child(4n) {
  border-right: none;
}

.reach-cell:nth-child(n+5) {
  border-bottom: none;
}

.reach-cell:hover {
  background-color: var(--primary-purple-light);
  transform: translateY(-2px);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(94, 16, 98, 0.06);
}

.cell-icon {
  margin-bottom: 20px;
  transition: var(--transition);
}

.cell-icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: var(--transition);
}

.reach-cell:hover .cell-icon img {
  transform: scale(1.1);
}

.cell-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 12px;
}

.cell-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Our Partners Section */
.partners-section {
  padding: 100px 0 60px 0;
  background-color: var(--white);
}

.partners-title {
  font-size: 36px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.partners-title .title-dark {
  color: var(--text-dark);
}

.partners-title .title-purple {
  color: var(--primary-purple);
}


.partners-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.partners-subtitle::before,
.partners-subtitle::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--primary-purple);
  opacity: 0.4;
  border-radius: 1px;
}

.partners-logos-wrapper {
  margin-top: 60px;
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border-lavender);
  border-bottom: 1px solid var(--border-lavender);
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Marquee track holds two identical sets side by side */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 160px;
  height: 64px;
  opacity: 1;
  filter: grayscale(0%);
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(100%);
  transform: scale(1.06);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.partner-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--primary-purple);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(94, 16, 98, 0.2);
}

.partner-cta-btn:hover {
  background-color: var(--primary-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(94, 16, 98, 0.3);
}

/* Footer Section */
.site-footer {
  background: linear-gradient(160deg, #1e0028 0%, #2a0038 50%, #180022 100%);
  padding: 60px 0 0 0;
  position: relative;
  overflow: hidden;
}

/* Halftone dot pattern overlay */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/footer-dot-pattern.png');
  background-size: cover;
  background-position: 62% 48%;
  background-repeat: no-repeat;
  opacity: 0.65;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 62% 48%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 85% at 62% 48%, black 10%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.footer-watermark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 180px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -8px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-family);
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Top row: logo left, subscribe right */
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Subscribe form */
.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.subscribe-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.subscribe-form {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.subscribe-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 13px;
  color: #fff;
  font-family: var(--font-family);
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.subscribe-btn {
  background-color: var(--primary-purple);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.subscribe-btn:hover {
  background-color: var(--accent-purple);
}

.footer-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-wordmark {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 50px;
}

/* Three-column row */
.footer-main-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-nav-col h3,
.footer-contact-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 5px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* Our Solutions Dropdown */
.nav-dropdown-wrap {
  position: relative;
  /* Shared by .nav-dropdown and the hover bridge below, so the two can't drift
     apart — the bridge has to span the full width and depth of the gap it
     guards. --asdf-dropdown-drop is the closed-state translateY, which widens
     the gap until the open transition finishes. */
  --asdf-dropdown-w: 380px;
  --asdf-dropdown-gap: 18px;
  --asdf-dropdown-drop: 8px;
}

.dropdown-trigger .chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 7px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.nav-dropdown-wrap:hover .dropdown-trigger .chevron {
  transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + var(--asdf-dropdown-gap, 18px));
  left: 50%;
  transform: translateX(-50%);
  width: var(--asdf-dropdown-w, 380px);
  background: #fff;
  border: 1px solid var(--border-lavender);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(94, 16, 98, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Hover bridge across the gap between a nav item and its dropdown.
 *
 * .nav-dropdown hangs at `top: calc(100% + 18px)`, so the cursor must cross
 * 18px of dead space to reach it. The instant it leaves the trigger,
 * .nav-dropdown-wrap loses :hover and the panel vanishes before it can be
 * touched — the menu is effectively unusable by mouse. The mega menu never had
 * this problem: it sits flush at `top: 100%` and its own 26px of padding
 * bridges the gap, which is why only the plain dropdowns misbehave.
 *
 * This invisible strip restores the same continuity. It lives on the wrapper
 * rather than the dropdown because .nav-dropdown sets `overflow: hidden` (to
 * clip its rounded corners), which would crop a pseudo-element reaching
 * upwards. Leaving the dropdown's own position untouched means the panel still
 * appears exactly where it does now — only the path to it changes.
 *
 * pointer-events stays off until the wrapper is hovered: an always-on strip
 * would be an invisible 18px band lying across the page under every nav item,
 * swallowing clicks meant for the content beneath.
 *
 * Desktop only — under 768px the dropdowns become tap-to-open accordions and
 * there is no hover path to protect.
 */
@media (min-width: 769px) {
  .nav-dropdown-wrap:not(.nav-mega-wrap)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: var(--asdf-dropdown-w, 380px);
    max-width: 100vw;
    /* Gap plus the closed-state translateY: while the panel is still animating
       in it sits 8px lower, and a bridge sized only to the settled 18px would
       leave a sliver of dead space exactly when the user is crossing it. The
       overlap with the open panel is harmless — both keep the wrapper hovered. */
    height: calc(var(--asdf-dropdown-gap, 18px) + var(--asdf-dropdown-drop, 8px));
    pointer-events: none;
  }

  .nav-dropdown-wrap:not(.nav-mega-wrap):hover::after {
    pointer-events: auto;
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-lavender);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
}

.dropdown-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dropdown-label {
  flex: 1;
}

/* Inner Page Hero (About Us, etc.) */
.inner-hero {
  margin-top: var(--asdf-header-offset);
  padding: 110px 30px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-purple);
}

/* Background photo */
.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Gradient overlay — smooth transparent theme color */
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(94, 16, 98, 0.85) 0%,
    rgba(94, 16, 98, 0.45) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* All content above the overlay */
.inner-hero-title,
.inner-hero-breadcrumb,
.inner-hero-sub {
  position: relative;
  z-index: 2;
}

/* Title — strong contrast */
.inner-hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  /* layered shadow for legibility over any image */
  text-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 4px 20px rgba(0,0,0,0.45),
    0 0 60px rgba(0,0,0,0.2);
}

/* Breadcrumb — crisp on any background */
.inner-hero-breadcrumb {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.inner-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

.inner-hero-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inner-hero-breadcrumb span {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

/* Subtitle line */
.inner-hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ── Solutions Teaser Section ── */
.solutions-teaser-section {
  padding: 100px 0;
  background-color: var(--bg-lavender);
}

.solutions-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

/* 5th card centres itself */
.solutions-teaser-grid .solution-card:last-child:nth-child(3n - 2) {
  grid-column: 2;
}

.solution-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 28px 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border-lavender);
  box-shadow: 0 2px 12px rgba(94, 16, 98, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Accent top stripe */
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(94, 16, 98, 0.12);
  border-color: var(--primary-purple-light);
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background-color: var(--primary-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.solution-card:hover .solution-card-icon {
  background-color: var(--primary-purple);
  color: #ffffff;
  transform: scale(1.08);
}

.solution-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.solution-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.solution-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.solution-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-purple);
  margin-top: 6px;
  transition: gap 0.25s ease;
}

.solution-card:hover .solution-card-link {
  gap: 10px;
}

/* ── Latest News Section ── */
.news-section {
  padding: 100px 0;
  background-color: var(--white);
}

.news-heading {
  font-size: 36px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

/* Card */
.news-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
  cursor: pointer;
}

/* Background image */
.news-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card-bg {
  transform: scale(1.06);
}

/* Inner layout */
.news-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px 26px;
  /* bottom-heavy dark gradient */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.0) 35%,
    rgba(10, 5, 20, 0.55) 62%,
    rgba(10, 5, 30, 0.92) 100%
  );
}

/* Category badge — top-left */
.news-card-top {
  display: flex;
}

.news-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px 5px 8px;
  border-radius: 20px;
}

.news-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f5d020;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(245, 208, 32, 0.7);
}

/* Bottom content */
.news-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.news-arrow {
  font-size: 15px;
  transition: transform 0.25s ease;
}

.news-card:hover .news-read-more {
  color: #ffffff;
  gap: 10px;
}

.news-card:hover .news-arrow {
  transform: translate(2px, -2px);
}

/* Shared split-colour title helpers */
.title-dark   { color: var(--text-dark); }
.title-purple { color: var(--primary-purple); }

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 0, 14, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 20px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(94,16,98,0.1);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-overlay.open .search-modal {
  transform: translateY(0) scale(1);
}

/* Input row */
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-lavender);
}

.search-icon-svg {
  color: var(--primary-purple);
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
}

.search-input-field::placeholder {
  color: #bbb;
  font-weight: 400;
}

.search-esc-hint {
  font-size: 11px;
  font-family: var(--font-family);
  color: var(--text-light);
  background: var(--bg-lavender);
  border: 1px solid var(--border-lavender);
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Results */
.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-hint {
  padding: 24px 22px;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

.search-hint strong {
  color: var(--text-dark);
}

.search-group {
  padding: 4px 0 8px;
}

.search-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 10px 20px 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.15s ease;
  cursor: pointer;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--primary-purple-light);
}

.result-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.search-result-item:hover .result-type-icon,
.search-result-item.active .result-type-icon {
  background: var(--primary-purple);
  color: #fff;
}

.result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-desc {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-arrow {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.search-result-item:hover .result-arrow,
.search-result-item.active .result-arrow {
  opacity: 1;
  color: var(--primary-purple);
}

/* Highlight matched text */
.search-result-item mark {
  background: rgba(94, 16, 98, 0.12);
  color: var(--primary-purple);
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

/* Footer hints */
.search-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-lavender);
  background: #faf9fb;
  font-size: 11px;
  color: var(--text-light);
}

.search-footer kbd {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border-lavender);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-family: var(--font-family);
  margin-right: 3px;
  box-shadow: 0 1px 0 var(--border-lavender);
}

/* Prevent body scroll when open */
body.search-open {
  overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-purple);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(94, 16, 98, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-purple-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(94, 16, 98, 0.45);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 25px;
  }
  .nav-list {
    gap: 20px;
  }
  .donate-btn {
    padding: 0 30px;
    margin-right: -25px;
  }
  
  .slide-title {
    font-size: 36px;
  }

  .slide-inner {
    padding: 0 4% 80px 4%;
    gap: 4%;
  }

  .slide-text-col {
    flex: 0 0 46%;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .journey-visual {
    height: 500px;
  }
  .visual-oval-large {
    width: 72%;
    height: 400px;
  }
  .visual-oval-small {
    width: 56%;
    height: 280px;
  }
  
  .reach-grid-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .reach-cell:nth-child(2n) {
    border-right: none;
  }
  .reach-cell:nth-child(4n) {
    border-right: 1px solid var(--border-lavender);
  }
  /* Restore right borders for cells that are odd but not last column anymore */
  .reach-cell:nth-child(odd) {
    border-right: 1px solid var(--border-lavender);
  }
  .reach-cell:nth-child(2n) {
    border-right: none;
  }
  /* bottom cells */
  .reach-cell:nth-child(n+5) {
    border-bottom: 1px solid var(--border-lavender);
  }
  .reach-cell:nth-child(n+7) {
    border-bottom: none;
  }
  
  .footer-main-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Top bar mobile — hide contact info, keep lang switcher */
  .top-bar-left {
    display: none;
  }
  .top-bar {
    justify-content: flex-end;
  }

  /* Header Mobile view */
  :root {
    --asdf-header-h: 70px;
  }

  .site-header {
    height: var(--asdf-header-h);
    top: var(--asdf-topbar-h);
  }
  .site-header.top-hidden {
    top: 0;
  }
  .site-header.scrolled {
    height: 70px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    left: auto;
    width: 320px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--white);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1), box-shadow 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 0 0 0vw rgba(0, 0, 0, 0);
  }
  
  .main-nav.active {
    right: 0;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.6), -15px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 100px 30px 40px;
    gap: 16px;
    align-items: flex-start;
    height: auto;
  }

  .nav-list > li {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-item {
    font-size: 20px;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
  }

  .nav-item.active {
    background-color: var(--nav-active-bg);
  }
  
  .header-actions {
    margin-right: 20px;
  }
  .search-trigger {
    margin-right: 0;
  }
  .donate-banner-wrapper {
    display: none; /* Hide Donate button inside header on mobile to conserve space */
  }
  
  /* Hero Carousel Mobile */
  .hero-slider-section {
    margin-top: 112px; /* 42 topbar + 70 header */
    height: auto;
    min-height: calc(100vh - 70px);
  }

  .slide-inner {
    flex-direction: column;
    padding: 40px 6% 100px;
    gap: 30px;
    justify-content: center;
  }

  .slide-text-col {
    flex: none;
    width: 100%;
  }

  .slide-image-col {
    flex: none;
    width: 100%;
  }

  .slide-image-card {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-desc {
    font-size: 14px;
  }
  
  /* Our Journey Section Mobile */
  .journey-section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 30px;
  }
  .journey-visual {
    height: 420px;
  }
  .visual-oval-large {
    width: 75%;
    height: 320px;
  }
  .visual-oval-small {
    width: 58%;
    height: 240px;
  }
  .experience-badge {
    bottom: 60px;
    left: 40%;
  }
  .vision-mission-row {
    flex-direction: column;
    gap: 30px;
  }
  .divider-line {
    width: 100%;
    height: 1px;
  }
  
  /* Reach stats section mobile */
  .reach-section {
    padding: 60px 0;
  }
  .reach-grid-box {
    grid-template-columns: 1fr;
  }
  .reach-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border-lavender) !important;
  }
  .reach-cell:last-child {
    border-bottom: none !important;
  }
  
  /* Partners section mobile */
  .marquee-set {
    gap: 40px;
    padding: 0 20px;
  }
  .partner-logo {
    width: 120px;
    height: 48px;
  }

  /* Solutions teaser tablet */
  .solutions-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-teaser-grid .solution-card:last-child:nth-child(3n - 2) {
    grid-column: auto;
  }

  /* News grid tablet */
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .news-card:last-child {
    grid-column: span 2;
    height: 400px;
  }
  
  /* Footer mobile */
  .footer-main-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  /* News grid mobile */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-card:last-child {
    grid-column: span 1;
  }
  .news-card {
    height: 380px;
  }

  .footer-watermark {
    font-size: 100px;
  }
}

/* Active hamburger toggle state */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Solutions Mega Menu ===== */
.nav-dropdown.mega-menu {
  width: min(760px, 92vw);
  padding: 20px;
  overflow: visible;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
}

.mega-col {
  border-radius: 10px;
  padding: 13px 13px 15px;
  transition: background-color 0.2s ease;
}

.mega-col:hover {
  background: var(--primary-purple-light);
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.mega-col-title:hover { color: var(--primary-purple); }

.mega-col-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-purple-light);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mega-col:hover .mega-col-icon { background: #fff; }

.mega-col-desc {
  margin: 9px 0 0 47px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-light);
}

.mega-sublist {
  list-style: none;
  margin: 10px 0 0 41px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-sublist a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mega-sublist a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  flex-shrink: 0;
}

.mega-sublist a:hover {
  background: #fff;
  color: var(--primary-purple);
  transform: translateX(3px);
}

/* Mega menu on mobile — expand inline within the slide-out nav */
@media (max-width: 768px) {
  .nav-dropdown.mega-menu {
    position: static;
    width: 100%;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    box-shadow: none;
    border: none;
    padding: 6px 0 0;
  }
  .nav-dropdown.mega-menu .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mega-col { padding: 10px 4px; }
  .mega-col-desc { display: none; }
  .mega-sublist { margin-left: 47px; }
}

/* ── Sponsor Section ── */
.sponsor-section {
  padding: 80px 0;
  background-color: #f5f4f7;
}

.sponsor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.sponsor-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.sponsor-header .section-title {
  justify-content: center;
}

.sponsor-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 16px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sponsor-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(94, 16, 98, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(94, 16, 98, 0.05);
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(94, 16, 98, 0.1);
}

.sponsor-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-purple-light);
  color: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.sponsor-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a2e;
  margin-bottom: 15px;
}

.sponsor-card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.sponsor-cta {
  background: var(--primary-purple);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 50px;
  color: #ffffff;
}

.sponsor-cta-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}

.sponsor-btn {
  display: inline-block;
  background-color: #ffffff;
  color: var(--primary-purple);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sponsor-btn:hover {
  background-color: #f5d020;
  color: #1a3a2e;
}

@media (max-width: 1024px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 32px;
  width: 46px;
  height: 46px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background-color: #128C7E;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #FFF;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px;
    right: 20px;
  }
}

/* Comprehensive Mobile Fixes */
@media (max-width: 768px) {
  .solutions-teaser-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .footer-subscribe {
    width: 100%;
    max-width: 400px;
  }

  .subscribe-form {
    flex-direction: column;
    border-radius: 6px;
  }

  .subscribe-input {
    width: 100%;
    border-radius: 6px 6px 0 0;
  }

  .subscribe-btn {
    width: 100%;
    border-radius: 0 0 6px 6px;
  }
  
  .slide-title {
    font-size: 32px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 28px;
  }
  .inner-hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  /* Fix slider container collapse on mobile */
  .slide.active {
    position: relative;
    z-index: 2;
  }

  /* Align top bar lang switcher to the right */
  .top-bar-container {
    justify-content: flex-end;
  }

  /* Align header icons compactly */
  .header-actions {
    margin-right: 0 !important;
    gap: 20px;
    justify-content: flex-end;
  }

  .menu-toggle {
    width: 30px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .menu-toggle .bar {
    width: 100% !important;
  }

  /* Fix side drawer active state */
  .nav-item.active::after {
    display: none;
  }

  /* Expand dropdowns inline on mobile */
  .nav-dropdown {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 0 0 20px !important;
    background: transparent !important;
  }
  
  .dropdown-trigger .chevron {
    display: none !important;
  }
}

/* ===================================================================
   Our Model — Community Led Development Approach
   =================================================================== */
.model-section { padding: 90px 0; background: var(--white); overflow: hidden; }
.model-tagline { font-size: 15px; font-weight: 500; color: var(--text-light); margin-top: 8px; }

.model-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-bottom: 46px;
}
.model-stage {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.model-circle {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--primary-purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-md);
}
.model-uparrow { color: #c39ac7; margin: 16px 0; line-height: 0; }
.model-points {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.model-points li {
  position: relative;
  background: var(--bg-lavender);
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 11px 7px 24px;
  border-radius: 6px;
}
.model-points li::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-purple);
}
.model-connector {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 54px;
  color: var(--accent-purple);
  line-height: 0;
}
.model-image { text-align: center; margin-bottom: 46px; }
.model-image img { max-width: 100%; height: auto; }
.model-meta {
  background: #ececec;
  border-radius: 16px;
  padding: 24px 30px;
  max-width: 920px;
  margin: 0 auto;
}
.model-meta p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dark); }
.model-meta p + p { margin-top: 12px; }
.model-meta-label { font-weight: 800; }
.model-cta { text-align: center; margin-top: 36px; }
.model-cta .read-more-btn { display: inline-flex; }

@media (max-width: 860px) {
  .model-flow { flex-direction: column; align-items: center; gap: 0; }
  .model-stage { width: 100%; max-width: 320px; margin-bottom: 6px; }
  .model-points { max-width: 320px; }
  .model-connector { align-self: center; margin: 4px 0 10px; transform: rotate(90deg); }
}

/* ===================================================================
   Full-width mega menu panel
   -------------------------------------------------------------------
   The panel used to be capped at min(760px, 92vw) with a 3-column grid.
   With 4–5 columns the tracks could not shrink below their content
   (a bare "1fr" floors at min-content), so the last column spilled out
   of the white box. It now spans the full header width and lays its
   columns out on the site's normal 1200px grid.

   .nav-mega-wrap drops position:relative so the absolutely positioned
   panel resolves against .site-header — which is position:fixed and so
   is its containing block. That gives an exact full-viewport span with
   no 100vw scrollbar overflow and no translateX centring hack.
   =================================================================== */
.nav-dropdown-wrap.nav-mega-wrap { position: static; }

.nav-dropdown.mega-menu {
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  top: 100%;
  padding: 26px 0 30px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid var(--border-lavender);
  box-shadow: 0 18px 40px rgba(94, 16, 98, 0.14);
  transform: translateY(8px);
  overflow: visible;
}

.nav-dropdown-wrap.nav-mega-wrap:hover .nav-dropdown.mega-menu {
  transform: translateY(0);
}

/* Columns sit on the same 1200px rail as every other section. */
.mega-menu .mega-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  gap: 10px 18px;
  align-items: start;
}

/* Long headings ("Skills & Knowledge Management") must wrap instead of
   forcing the track wider than its share. */
.mega-menu .mega-col { min-width: 0; }
.mega-menu .mega-col-title { overflow-wrap: anywhere; }

@media (max-width: 768px) {
  /* Inside the slide-in mobile nav the panel is just a stacked list. */
  .nav-dropdown-wrap.nav-mega-wrap { position: relative; }

  .nav-dropdown.mega-menu {
    position: static;
    width: auto;
    padding: 4px 0;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-wrap.nav-mega-wrap:hover .nav-dropdown.mega-menu { transform: none; }

  /* Beats the inline grid-template-columns the renderer writes. */
  .mega-menu .mega-grid {
    grid-template-columns: 1fr !important;
    padding: 0;
    gap: 0;
  }
}

/* ===================================================================
   Mobile header & navigation drawer
   -------------------------------------------------------------------
   Replaces the old layout where .header-container used space-between on
   three children, leaving the search icon stranded in mid-air, and the
   drawer had no close button and no real backdrop (it faked one with
   box-shadow: 0 0 0 100vw, which cannot be tapped).
   =================================================================== */
.mobile-nav-head,
.mobile-nav-foot { display: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 4, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 768px) {

  /* ---- Header row: logo left, search + burger grouped right ------- */
  .header-container {
    align-items: center;
    padding: 0 18px;
  }
  .logo-area { flex: 0 1 auto; min-width: 0; }
  .header-logo-img { height: 44px; width: auto; }

  /* margin-left:auto pins the pair to the right edge, so the search icon
     is anchored beside the burger instead of floating mid-row. */
  .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .search-trigger,
  .menu-toggle {
    width: 44px;               /* full 44px touch target */
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background-color 0.2s ease;
  }
  .search-trigger:active,
  .menu-toggle:active { background: var(--bg-lavender, #f4ecf5); }

  .menu-toggle {
    flex-direction: column;
    gap: 5px;
    margin-left: 4px;
  }
  .menu-toggle .bar {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-purple, #5e1062);
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  /* Burger morphs into a close cross while the drawer is open. */
  .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---- Drawer ----------------------------------------------------- */
  .main-nav {
    width: min(360px, 86vw);
    right: calc(-1 * min(360px, 86vw));
    padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
  }
  .main-nav.active {
    right: 0;
    /* Real backdrop element now handles the dimming, so drop the old
       0 0 0 100vw shadow hack. */
    box-shadow: -18px 0 44px rgba(20, 4, 26, 0.18);
  }

  .mobile-nav-head {
    display: flex !important; /* beats the inline display:none in header.php */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-lavender, #dfd2e3);
    position: sticky;
    top: 0;
    background: var(--white, #fff);
    z-index: 2;
  }
  .mobile-nav-head img { height: 38px; width: auto; }

  .mobile-nav-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--bg-lavender, #f4ecf5);
    color: var(--primary-purple, #5e1062);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ---- Nav list --------------------------------------------------- */
  .nav-list { padding: 6px 0 4px; }
  .nav-list > li { width: 100%; border-bottom: 1px solid #f3eef5; }
  .nav-list > li:last-child { border-bottom: 0; }

  .nav-item {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 18px;
    width: 100%;
    color: var(--text-dark, #2a252c);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-item.active { color: var(--primary-purple, #5e1062); }

  /* ---- Dropdowns become accordions -------------------------------- */
  .nav-dropdown-wrap { position: relative; }
  .dropdown-trigger .chevron {
    transition: transform 0.3s ease;
    flex: 0 0 auto;
  }
  .nav-dropdown-wrap.is-open > .dropdown-trigger .chevron { transform: rotate(-135deg); }
  .nav-dropdown-wrap.is-open > .dropdown-trigger { color: var(--primary-purple, #5e1062); }

  .main-nav .nav-dropdown {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #faf7fb;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-dropdown-wrap.is-open > .nav-dropdown { max-height: 1400px; }

  /* Hover must not open the panel on touch — only the accordion class does. */
  .nav-dropdown-wrap:hover > .nav-dropdown { max-height: 0; }
  .nav-dropdown-wrap.is-open:hover > .nav-dropdown { max-height: 1400px; }

  .main-nav .dropdown-item {
    padding: 13px 18px 13px 32px;
    font-size: 14.5px;
    border-top: 1px solid #f0eaf2;
  }

  /* Mega panel collapses to a single readable column inside the drawer. */
  .main-nav .nav-dropdown.mega-menu { padding: 4px 0 10px; }
  .main-nav .mega-grid {
    grid-template-columns: 1fr !important;
    max-width: none;
    padding: 0;
    gap: 0;
  }
  .main-nav .mega-col { padding: 12px 18px; border-top: 1px solid #f0eaf2; }
  .main-nav .mega-col-title { font-size: 14.5px; gap: 10px; }
  .main-nav .mega-col-icon { width: 30px; height: 30px; border-radius: 8px; }
  .main-nav .mega-sublist { margin: 8px 0 0 40px; gap: 0; }
  .main-nav .mega-sublist a { padding: 9px 0; font-size: 14px; }
  .main-nav .mega-col-desc { margin: 6px 0 0 40px; font-size: 12.5px; }

  /* ---- Drawer footer CTA ------------------------------------------ */
  .mobile-nav-foot {
    display: block !important; /* beats the inline display:none in header.php */
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid var(--border-lavender, #dfd2e3);
  }
  .mobile-nav-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 40px;
    background: var(--primary-purple, #5e1062);
    color: var(--white, #fff);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  .mobile-nav-donate:hover { background: var(--primary-purple-hover, #4c0a50); }

  .mobile-nav-contact {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }
  .mobile-nav-contact a {
    color: var(--text-light, #6d6470);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
  /* The dropdown parents are <li> that sized to their content, so "Our
     Solutions" / "Media" rendered ~174px wide while plain items filled the
     drawer — the highlight then looked like a stray floating pill. */
  .main-nav .nav-dropdown-wrap {
    display: block;
    width: 100%;
  }
  .main-nav .nav-list > li > .nav-item {
    width: 100%;
    box-sizing: border-box;
  }

  /* Full-bleed rows read cleaner in a drawer than rounded pills. */
  .main-nav .nav-item { border-radius: 0; }

  /* The expand affordance was hidden on mobile, so an accordion row looked
     identical to a plain link. */
  .main-nav .dropdown-trigger .chevron {
    display: inline-block !important; /* theme hides it with !important on mobile */
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    margin-left: 10px;
    opacity: 0.55;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .main-nav .nav-dropdown-wrap.is-open > .dropdown-trigger .chevron {
    transform: rotate(-135deg);
    opacity: 1;
  }
}

/* ===================================================================
   Footer social links (third column)
   Each icon lifts and fills with its own brand colour on hover, and
   reveals the account handle as a tooltip — so the handles are
   discoverable without four lines of text crowding the column.
   =================================================================== */
.footer-social { margin-top: 26px; }

.footer-social-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-5px);
  background: var(--brand, #5e1062);
  border-color: var(--brand, #5e1062);
  color: #fff;
  outline: none;
}
.social-link:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

/* Instagram has no single brand colour — use its gradient. */
.social-link.social-instagram:hover,
.social-link.social-instagram:focus-visible {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  border-color: transparent;
}

/* ---- Handle tooltip ---- */
.social-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 11px;
  border-radius: 20px;
  background: #fff;
  color: #2a252c;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 3;
}
/* Little pointer under the bubble. */
.social-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}
.social-link:hover .social-tip,
.social-link:focus-visible .social-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* The first and last bubbles would otherwise overflow the column edge. */
.social-list li:first-child .social-tip { left: 0; transform: translateX(0) translateY(4px); }
.social-list li:first-child .social-tip::after { left: 21px; }
.social-list li:first-child .social-link:hover .social-tip,
.social-list li:first-child .social-link:focus-visible .social-tip { transform: translateX(0) translateY(0); }

@media (max-width: 768px) {
  .footer-social { margin-top: 22px; }
  .social-link { width: 38px; height: 38px; font-size: 15px; }
  /* Tooltips are hover-only affordances; on touch the icons speak for themselves. */
  .social-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .social-link, .social-tip { transition: none; }
  .social-link:hover, .social-link:focus-visible { transform: none; }
}
