@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   KZHAA — Kumasi Zongo Home & Abroad Unity Foundation
   All styles in one file: Tailwind base + custom design system
   ============================================================ */



/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --green-deep:    #0F2D1A;
  --green-dark:    #1B4332;
  --green-mid:     #2D6A4F;
  --green-light:   #52B788;
  --green-glow:    #74C69D;
  --gold:          #C9973A;
  --gold-light:    #E8B84B;
  --gold-pale:     #FBF1D8;
  --cream:         #FDF8F1;
  --cream-dark:    #F5EDD8;
  --charcoal:      #1C1C1E;
  --text-dark:     #1A2E1F;
  --text-mid:      #3D5A3E;
  --text-light:    #7A9E7E;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(15,45,26,0.08);
  --shadow-md:     0 8px 32px rgba(15,45,26,0.12);
  --shadow-lg:     0 20px 64px rgba(15,45,26,0.18);
  --shadow-gold:   0 8px 32px rgba(201,151,58,0.25);
  --transition:    cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--green-deep);
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }

/* ── Page Loader ───────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 72px; height: 72px; object-fit: contain; animation: loaderPulse 1.2s ease-in-out infinite; border-radius: 14px; }
.loader-bar {
  width: 160px; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block; height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: loaderSlide 1.4s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100%{opacity:0.6;transform:scale(0.95)} 50%{opacity:1;transform:scale(1)} }
@keyframes loaderSlide { 0%{width:0;margin-left:0} 60%{width:100%;margin-left:0} 100%{width:0;margin-left:100%} }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  transition: all 0.4s var(--transition);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(15,45,26,0.97);
  backdrop-filter: blur(20px);
  height: 68px;
  box-shadow: var(--shadow-md);
}
.navbar-logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; transition: height 0.3s; }
.navbar.scrolled .navbar-logo img { height: 40px; }

.nav-links {
  /* Desktop: overlays navbar — z-index MUST be above navbar (1000) so clicks reach it */
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  position: fixed; top: 0; right: 40px;
  height: 80px;
  z-index: 1001;
  background: transparent;
  pointer-events: auto;
  /* Mobile: overridden at 768px breakpoint */
}
.navbar.scrolled ~ .nav-links { height: 68px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.25s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.nav-links > li > a .chevron {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  list-style: none;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--transition);
  border: 1px solid rgba(15,45,26,0.06);
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-dropdown li a:hover {
  background: var(--gold-pale);
  color: var(--green-dark);
  padding-left: 22px;
}

.btn-donate-nav {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  background-image: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  box-shadow: 0 4px 15px rgba(201,151,58,0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-donate-nav:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(201,151,58,0.45) !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero / Slider ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 700px;
  overflow: hidden;
  background: var(--green-deep);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenBurns 10s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,45,26,0.85) 0%,
    rgba(15,45,26,0.5) 60%,
    rgba(15,45,26,0.3) 100%
  );
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; padding: 0 10% 0 8%;
  max-width: 800px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,151,58,0.2);
  border: 1px solid rgba(201,151,58,0.4);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
  animation: fadeSlideUp 0.8s 0.2s both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.8s 0.4s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.8s 0.6s both;
  line-height: 1.8;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.8s both;
}

/* Hero slider controls */
.hero-controls {
  position: absolute; bottom: 40px; right: 60px;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  width: 28px; border-radius: 4px;
  background: var(--gold);
}

.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: fadeIn 1s 1.5s both;
}
.hero-scroll-indicator::after {
  content: '';
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ── Section Headers ───────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--spring);
  position: relative; overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,67,50,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(27,67,50,0.4); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(201,151,58,0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Welcome / Impact Strip ────────────────────────────────── */
.impact-strip {
  background: var(--green-dark);
  padding: 36px 0;
}
.impact-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.impact-item {
  background: rgba(15,45,26,0.6);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 16px;
  transition: background 0.3s;
}
.impact-item:hover { background: rgba(15,45,26,0.8); }
.impact-icon {
  width: 48px; height: 48px;
  background: rgba(201,151,58,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.impact-icon svg { color: var(--gold-light); }
.impact-text-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.impact-text-val { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--white); font-weight: 700; }

/* ── Welcome Section ───────────────────────────────────────── */
.welcome-section { padding: 100px 0; background: var(--cream); }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.welcome-visual { position: relative; }
.welcome-img-main {
  width: 100%; border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover; height: 480px;
}
.welcome-img-accent {
  position: absolute; bottom: -32px; right: -32px;
  width: 200px; height: 200px;
  border-radius: 16px;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}
.welcome-badge {
  position: absolute; top: 32px; left: -20px;
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.welcome-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.welcome-badge-text { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

.welcome-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.feature-card {
  background: var(--white);
  border-radius: 14px; padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(201,151,58,0.1);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { color: var(--gold); }
.feature-title { font-size: 0.95rem; font-weight: 600; color: var(--green-deep); margin-bottom: 4px; }
.feature-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* ── Projects Section ──────────────────────────────────────── */
.projects-section { padding: 100px 0; background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,45,26,0.06);
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.project-card-img {
  position: relative; overflow: hidden;
  height: 220px;
}
.project-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.07); }
.project-badges {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 8px;
}
.badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-category { background: rgba(15,45,26,0.85); color: var(--white); }
.badge-status-ongoing  { background: rgba(201,151,58,0.9);  color: var(--white); }
.badge-status-upcoming { background: rgba(59,130,246,0.9);  color: var(--white); }
.badge-status-completed{ background: rgba(34,197,94,0.9);   color: var(--white); }

.project-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-card-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.project-card:hover .project-card-title { color: var(--gold); }
.project-card-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; flex: 1; }

.project-progress { margin-top: 20px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-raised { font-size: 0.88rem; color: var(--text-mid); }
.progress-pct { font-size: 0.88rem; font-weight: 600; color: var(--green-dark); }
.progress-bar { height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}
.progress-fill.animated { width: var(--target-width); }

.project-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(15,45,26,0.06);
  margin-top: auto;
}
.project-goal { font-size: 0.85rem; color: var(--text-mid); }
.project-goal strong { color: var(--green-dark); }

/* ── Stats Counter ─────────────────────────────────────────── */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .count { display: inline-block; }
.stat-num .suffix { color: var(--gold-light); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }
.stat-divider {
  width: 32px; height: 2px;
  background: var(--gold);
  margin: 12px auto;
  border-radius: 1px;
}

/* ── Events Section ────────────────────────────────────────── */
.events-section { padding: 100px 0; background: var(--cream); }
.events-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px;
}
.event-card {
  background: var(--white);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,45,26,0.06);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-card-img { height: 200px; overflow: hidden; position: relative; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.event-card:hover .event-card-img img { transform: scale(1.07); }
.event-date-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 12px; padding: 8px 14px;
  text-align: center; line-height: 1.1;
}
.event-date-day { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold-light); }
.event-date-mon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.event-card-body { padding: 24px; flex: 1; }
.event-card-title { font-size: 1.1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 12px; }
.event-meta { display: flex; flex-direction: column; gap: 8px; }
.event-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.87rem; color: var(--text-mid);
}
.event-meta-item svg { color: var(--gold); flex-shrink: 0; }

/* ── Gallery Section ───────────────────────────────────────── */
.gallery-section { padding: 100px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 56px;
}
.gallery-item {
  border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,45,26,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { color: var(--gold-light); }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.testimonials-track { overflow: hidden; position: relative; }
.testimonials-slider {
  display: flex; gap: 28px;
  transition: transform 0.6s var(--transition);
  will-change: transform;
}
.testimonial-card {
  background: var(--white);
  border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,151,58,0.1);
  width: 400px; min-width: 400px; max-width: 400px;
  flex-shrink: 0;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .testimonial-card { width: calc(100vw - 48px); min-width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 16px; right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem; line-height: 1;
  color: var(--gold-pale);
  z-index: 0;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars span { color: var(--gold); font-size: 1.1rem; }
.testimonial-text {
  font-size: 0.96rem; line-height: 1.8;
  color: var(--text-mid);
  position: relative; z-index: 1;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 600; font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--green-deep); font-size: 0.95rem; }
.testimonial-role { font-size: 0.82rem; color: var(--text-light); }

/* ── Mission Tabs ──────────────────────────────────────────── */
.mission-section { padding: 100px 0; background: var(--white); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.mission-tabs { display: flex; gap: 4px; margin-bottom: 32px; }
.mission-tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--cream);
  transition: all 0.3s;
}
.mission-tab.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.mission-tab-content { display: none; }
.mission-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.mission-tab-content h3 {
  font-size: 1.5rem; color: var(--green-deep); margin-bottom: 16px;
}
.mission-tab-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }

.mission-points { display: flex; flex-direction: column; gap: 12px; }
.mission-point {
  display: flex; gap: 12px; align-items: flex-start;
}
.mission-point-icon {
  width: 24px; height: 24px;
  background: var(--gold-pale);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.mission-point-icon svg { color: var(--gold); width: 14px; height: 14px; }
.mission-point-text { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }

.mission-visual-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 12px; height: 480px;
}
.mission-img {
  border-radius: 14px; overflow: hidden;
}
.mission-img:first-child { grid-row: span 2; }
.mission-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; }
.cta-inner p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); transform: translateY(-3px); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
}
.footer-top { padding: 80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { width: 140px; height: auto; object-fit: contain; margin-bottom: 24px; }
.footer-about { font-size: 0.92rem; line-height: 1.8; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  color: rgba(255,255,255,0.7);
}
.social-btn:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--white); font-weight: 600;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid rgba(201,151,58,0.3);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links li a::before {
  content: '→';
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.footer-links li a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-links li a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact-items { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(201,151,58,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-contact-icon svg { color: var(--gold); width: 16px; height: 16px; }
.footer-contact-text { font-size: 0.88rem; line-height: 1.6; }
.footer-contact-text a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact-text a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom-copy { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ── Donation Page ─────────────────────────────────────────── */
.donations-hero { padding: 160px 0 80px; background: var(--green-deep); text-align: center; }
.donations-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.donations-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.donate-form-section { padding: 80px 0; }
.donate-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.donate-form-card {
  background: var(--white); border-radius: 24px;
  padding: 48px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(15,45,26,0.06);
}
.donate-form-title { font-size: 1.6rem; margin-bottom: 32px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.amount-btn {
  padding: 14px;
  border: 2px solid rgba(15,45,26,0.12);
  border-radius: 12px;
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  text-align: center;
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--white);
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 14px 18px;
  border: 2px solid rgba(15,45,26,0.12);
  border-radius: 12px;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(45,106,79,0.1);
  background: var(--white);
}
.form-select { appearance: none; cursor: pointer; }

/* ── Admin Dashboard ───────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: #F0F4F1; }

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--green-deep);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
}
.admin-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-logo { width: 160px; height: auto; object-fit: contain; display: block; }
.admin-sidebar-nav { flex: 1; padding: 16px; overflow-y: auto; }
.admin-nav-group { margin-bottom: 24px; }
.admin-nav-group-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 12px; margin-bottom: 6px;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-nav-link.active { background: var(--green-mid); }
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: pointer;
}
.admin-user:hover { background: rgba(255,255,255,0.08); }
.admin-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.85rem;
}
.admin-user-name { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.admin-user-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.admin-main { margin-left: 260px; flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }

.admin-topbar {
  background: var(--white);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(15,45,26,0.08);
  position: sticky; top: 0; z-index: 50;
}
.admin-page-title { font-size: 1.15rem; font-weight: 700; color: var(--green-deep); }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(15,45,26,0.08);
}
.admin-search input {
  background: none; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--text-dark); width: 200px;
}
.admin-search input::placeholder { color: var(--text-light); }

.admin-content { padding: 32px; flex: 1; min-width: 0; overflow-x: hidden; }

/* Admin Stat Cards */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card {
  background: var(--white); border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,45,26,0.06);
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-stat-icon.green { background: rgba(27,67,50,0.1); color: var(--green-dark); }
.admin-stat-icon.gold  { background: rgba(201,151,58,0.12); color: var(--gold); }
.admin-stat-icon.blue  { background: rgba(59,130,246,0.1); color: #3B82F6; }
.admin-stat-icon.red   { background: rgba(239,68,68,0.1); color: #EF4444; }
.admin-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: var(--green-deep); line-height: 1;
}
.admin-stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.admin-stat-change { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; margin-top: 8px; }
.admin-stat-change.up { color: #22C55E; }
.admin-stat-change.down { color: #EF4444; }

/* Admin Cards / Tables */
.admin-card {
  background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,45,26,0.06);
  overflow: hidden;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15,45,26,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-title { font-size: 1rem; font-weight: 700; color: var(--green-deep); }
.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  border-radius: 0 0 14px 14px;
}
/* Thin custom scrollbar — horizontal & vertical */
.table-wrap::-webkit-scrollbar { width: 5px; height: 5px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(15,45,26,0.18); border-radius: 99px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(15,45,26,0.35); }
.table-wrap::-webkit-scrollbar-corner { background: transparent; }

/* Pagination wrapper */
.table-pagination {
  padding: 16px 24px;
  border-top: 1px solid rgba(15,45,26,0.06);
  background: var(--white);
  border-radius: 0 0 14px 14px;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--cream);
  border-bottom: 1px solid rgba(15,45,26,0.06);
}
.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(15,45,26,0.04);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-pill.ongoing   { background: rgba(201,151,58,0.12); color: var(--gold); }
.status-pill.ongoing::before { background: var(--gold); }
.status-pill.completed { background: rgba(34,197,94,0.1); color: #16A34A; }
.status-pill.completed::before { background: #22C55E; }
.status-pill.upcoming  { background: rgba(59,130,246,0.1); color: #3B82F6; }
.status-pill.upcoming::before { background: #3B82F6; }

/* Admin Chart Area */
.admin-dashboard-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 24px; margin-bottom: 24px;
}
.admin-chart-placeholder {
  padding: 32px;
  text-align: center; color: var(--text-light);
  background: var(--cream); border-radius: 12px;
  height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.admin-activity-list { display: flex; flex-direction: column; }
.admin-activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(15,45,26,0.04);
}
.admin-activity-item:last-child { border-bottom: none; }
.admin-activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.admin-activity-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }
.admin-activity-time { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }

/* ── Responsive Grid Utilities ─────────────────────────────── */
/* All page grids defined here so media queries can override them */

/* 2-column equal */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* 2-column form fields */
.grid-2col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* 3-column cards */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* 3-column compact */
.grid-3col-sm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 4-column cards */
.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* Contact page: info + form */
.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
/* Volunteer form: why + form */
.grid-volunteer {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
/* Blog: featured post image + text */
.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}
.blog-featured-body {
  padding: 40px;
}
/* Gallery masonry */
.gallery-masonry {
  columns: 4;
  column-gap: 14px;
}
/* Projects sponsor CTA */
.project-cta-inner {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.project-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Utility / Animation Classes ───────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Page hero breadcrumb */
.page-hero {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.breadcrumb a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.breadcrumb .current { font-size: 0.88rem; color: var(--gold-light); }

/* Tag / chip */
.chip {
  display: inline-block; padding: 4px 12px;
  background: var(--cream-dark);
  border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-mid);
}

/* Divider */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 20px 0;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first, comprehensive
   Breakpoints: 1024px · 768px · 576px · 480px · 360px
═══════════════════════════════════════════════════════════ */

/* ── 1024px — Tablet landscape ─────────────────────────────── */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }

  .welcome-section, .projects-section, .stats-section,
  .events-section, .gallery-section, .testimonials-section,
  .mission-section, .cta-banner { padding: 80px 0; }
  .footer-top { padding: 60px 0 48px; }

  /* Named grids */
  .welcome-grid  { grid-template-columns: 1fr; gap: 48px; }
  .welcome-visual { display: none; }
  .mission-grid  { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Utility grids */
  .grid-4col    { grid-template-columns: repeat(2, 1fr); }
  .grid-3col    { grid-template-columns: repeat(2, 1fr); }
  .grid-3col-sm { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 3; }

  /* Admin */
  .admin-stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .mission-visual-grid  { height: 360px; }
}

/* ── 768px — Tablet portrait / large phones ─────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .welcome-section, .projects-section, .stats-section,
  .events-section, .gallery-section, .testimonials-section,
  .mission-section, .cta-banner { padding: 64px 0; }
  .footer-top { padding: 48px 0 36px; }
  .page-hero  { padding: 110px 0 56px; }
  .donations-hero { padding: 120px 0 60px; }
  .donate-form-section { padding: 48px 0; }

  /* Navbar */
  .nav-links {
    /* Mobile full-screen menu — hidden by default, slides in */
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green-deep);
    flex-direction: column; align-items: flex-start;
    padding: 90px 28px 40px;
    gap: 0; overflow-y: auto; z-index: 999;
    height: auto !important;
    /* Slide-in animation */
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important; /* always in DOM, hidden via transform */
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-links > li > a {
    font-size: 1.05rem; padding: 13px 0; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%;
  }
  .nav-dropdown {
    position: static; box-shadow: none; border: none;
    background: transparent; padding: 4px 0 4px 20px;
    opacity: 1; visibility: visible; transform: none; display: none; min-width: unset;
  }
  .nav-links > li.open .nav-dropdown { display: block; }
  .nav-links > li.open > a .chevron { transform: rotate(180deg); }
  .nav-dropdown li a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
  .nav-dropdown li a:hover { background: transparent; color: var(--gold-light); padding-left: 8px; }
  .nav-toggle { display: flex; z-index: 1001; position: relative; }
  .btn-donate-nav { display: inline-flex; margin-top: 16px; width: auto; }

  /* Hero */
  .hero { min-height: 580px; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 0.9rem; }
  .hero-controls { right: 16px; bottom: 64px; }
  .hero-scroll-indicator { display: none; }

  /* Impact */
  .impact-strip-inner { grid-template-columns: 1fr 1fr; }
  .impact-item { padding: 20px; }

  /* Welcome */
  .welcome-features { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Named grids */
  .projects-grid { grid-template-columns: 1fr; }
  .events-grid   { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }

  /* Utility grids — all collapse */
  .grid-4col      { grid-template-columns: repeat(2, 1fr); }
  .grid-3col      { grid-template-columns: 1fr; }
  .grid-3col-sm   { grid-template-columns: 1fr; }
  .grid-2col      { grid-template-columns: 1fr; }
  .grid-contact   { grid-template-columns: 1fr; gap: 32px; }
  .grid-volunteer { grid-template-columns: 1fr; gap: 32px; }
  .gallery-masonry { columns: 2; }

  /* Blog featured */
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 28px; }

  /* Project sponsor CTA */
  .project-cta-inner {
    grid-template-columns: 1fr; padding: 40px 28px; gap: 24px;
  }
  .project-cta-actions { flex-direction: row; flex-wrap: wrap; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  /* Testimonials */
  .testimonial-card {
    width: calc(100vw - 72px); min-width: calc(100vw - 72px);
    max-width: calc(100vw - 72px); padding: 28px 24px;
  }

  /* Mission */
  .mission-tabs { flex-wrap: wrap; gap: 8px; }
  .mission-tab  { padding: 8px 16px; font-size: 0.85rem; }
  .mission-visual-grid { height: 260px; }

  /* Footer */
  .footer-about { max-width: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }

  /* Donate */
  .donate-grid { grid-template-columns: 1fr; }
  .donate-form-card { padding: 28px 20px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }

  /* CTA */
  .cta-inner h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .cta-actions  { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Page hero */
  .page-hero-title { font-size: clamp(1.7rem, 5vw, 2.4rem); }

  /* Admin */
  .admin-main    { margin-left: 0; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-toggle { display: flex !important; }
  .admin-topbar  { padding: 0 16px; }
  .admin-search  { display: none; }
  .admin-content { padding: 16px; }
  .admin-card { overflow-x: auto; }
  .admin-table { min-width: 600px; }

  /* Admin testimonials inline form */
  div[style*="grid-template-columns:1fr 380px"],
  div[style*="grid-template-columns: 1fr 380px"] { display: block !important; }
}

/* ── 576px — Phones ──────────────────────────────────────────── */
@media (max-width: 576px) {
  .container { padding: 0 16px; }

  .welcome-section, .projects-section, .stats-section,
  .events-section, .gallery-section, .testimonials-section,
  .mission-section, .cta-banner { padding: 52px 0; }
  .footer-top { padding: 40px 0 28px; }

  .hero { min-height: 520px; }
  .hero-tag { font-size: 0.72rem; padding: 5px 12px; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  .impact-strip-inner { grid-template-columns: 1fr 1fr; }
  .impact-item { padding: 18px 14px; gap: 10px; }
  .impact-icon { width: 36px; height: 36px; }
  .impact-text-val { font-size: 1rem; }

  .welcome-features { grid-template-columns: 1fr; }
  .feature-card { padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* All utility grids → single col at 576 */
  .grid-4col    { grid-template-columns: repeat(2, 1fr); }
  .grid-2col    { grid-template-columns: 1fr; }
  .grid-2col-form { grid-template-columns: 1fr; }
  .grid-contact { gap: 24px; }
  .gallery-masonry { columns: 2; }

  .blog-featured-body { padding: 20px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  .mission-tabs { gap: 6px; }
  .mission-visual-grid { display: none; }

  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-form-card { padding: 24px 16px; border-radius: 16px; }
  .donate-form-title { font-size: 1.3rem; margin-bottom: 20px; }

  .project-cta-inner { padding: 32px 20px; }
  .project-cta-actions { flex-direction: column; }
  .project-cta-actions .btn { text-align: center; justify-content: center; }

  .footer-grid { gap: 28px; }
  .footer-heading { margin-bottom: 16px; }
  .footer-bottom-links { gap: 12px; }

  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 12px; }
  .admin-stat-card { padding: 16px; }
  .admin-stat-num  { font-size: 1.5rem; }
}

/* ── 480px — Small phones ────────────────────────────────────── */
@media (max-width: 480px) {
  .testimonial-card {
    width: calc(100vw - 40px); min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px); padding: 24px 18px;
  }
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .gallery-masonry { columns: 2; }
  .stats-grid { gap: 16px; }
  .stat-num { font-size: clamp(2rem, 8vw, 3rem); }
  .grid-4col { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-logo img { height: 38px; }
}

/* ── 360px — Very small phones ───────────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-content { padding: 0 14px; }
  .hero-tag { display: none; }
  .navbar { padding: 0 14px; }
  .donate-form-card { padding: 20px 14px; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .grid-4col { grid-template-columns: 1fr; }
  .impact-strip-inner { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
}