:root {
      --primary: #2d6a4f;
      --primary-light: #52b788;
      --primary-dark: #1b4332;
      --accent: #f4a261;
      --accent-dark: #e76f51;
      --light-bg: #f8faf9;
      --text-dark: #1a2e25;
      --text-muted: #5a7a6a;
      --white: #ffffff;
      --border: #d8e8e0;
    }

    html, body {
      overflow-x: hidden;
      overflow-y: scroll;
    }

    section {
      padding: 0 1.5rem;
    }

    * { 
      scroll-behavior: smooth;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--text-dark);
      background: var(--white);
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-family: 'Playfair Display', serif;
    }

  /* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(45, 106, 79, 0.12);
}

.navbar .container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* BRAND */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: 38px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* NAV LINKS */
.navbar-nav {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(45, 106, 79, 0.07);
}

/* DONATE BUTTON */
.btn-donate-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.btn-donate-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244, 162, 97, 0.4);
}


/* ─── HERO ───────────────────────────────────────────── */
    .hero {
      min-height: 100vh;
      background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../images/banner.jfif) center center no-repeat;
      background-size: cover;
      position: relative;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding-top: 80px;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(82, 183, 136, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(244, 162, 97, 0.08) 0%, transparent 55%);
    }

    .hero-particles {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      border-radius: 50%;
      background: rgba(82, 183, 136, 0.12);
      animation: float linear infinite;
    }

    @keyframes float {
      0% { transform: translateY(110%) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 0.5; }
      100% { transform: translateY(-10%) rotate(720deg); opacity: 0; }
    }

    .hero-content { position: relative; z-index: 2; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(82, 183, 136, 0.18);
      border: 1px solid rgba(82, 183, 136, 0.35);
      color: var(--primary-light);
      padding: 6px 16px;
      border-radius: 50px;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero h1 {
      font-size: clamp(2.4rem, 6vw, 4.2rem);
      font-weight: 700;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 1.5rem;
    }

    .hero h1 .highlight {
      color: var(--primary-light);
    }

    .hero-desc {
      font-size: 1.15rem;
      color: rgba(255,255,255,0.75);
      line-height: 1.8;
      max-width: 560px;
      margin-bottom: 2.5rem;
    }

    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

    .btn-primary-hero {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: white;
      padding: 0.85rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-primary-hero:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(244, 162, 97, 0.45);
      color: white;
    }

    .btn-outline-hero {
      background: transparent;
      color: white;
      padding: 0.85rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      border: 2px solid rgba(255,255,255,0.35);
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .btn-outline-hero:hover {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.6);
      color: white;
    }

    .hero-stats {
      margin-top: 3.5rem;
      display: flex;
      gap: 2.5rem;
      flex-wrap: wrap;
    }

    .hero-stat {
      display: flex;
      flex-direction: column;
    }

    .hero-stat .num {
      font-size: 1.9rem;
      font-weight: 800;
      color: var(--primary-light);
      line-height: 1;
    }

    .hero-stat .label {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.55);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-top: 3px;
    }

    .hero-visual {
      position: relative;
      z-index: 2;
    }

    .hero-card-stack {
      position: relative;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
    }

    .hero-card {
      background: rgba(255,255,255,0.07);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 20px;
      padding: 1.8rem;
      color: white;
    }

    .hero-card-back {
      position: absolute;
      top: -16px;
      right: -16px;
      width: 90%;
      height: 100%;
      background: rgba(82, 183, 136, 0.1);
      border: 1px solid rgba(82, 183, 136, 0.2);
      border-radius: 20px;
      z-index: -1;
    }

    .quote-mark {
      font-size: 3.5rem;
      line-height: 0.8;
      color: var(--primary-light);
      font-family: 'Playfair Display', serif;
      margin-bottom: 0.5rem;
    }

    .hero-quote {
      font-size: 1.05rem;
      line-height: 1.7;
      color: rgba(255,255,255,0.88);
      font-style: italic;
      margin-bottom: 1.2rem;
    }

    .hero-quote-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .author-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-light), var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: white;
      font-weight: 700;
    }

    /* ─── SECTION SHARED ────────────────────────────────── */
    .section { padding: 5rem 0; }
    .section-alt { background: var(--light-bg); }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: 0.75rem;
    }

    .section-label::before {
      content: '';
      width: 28px;
      height: 2px;
      background: var(--primary-light);
      border-radius: 2px;
    }

    .section-title {
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 700;
      color: var(--text-dark);
      line-height: 1.25;
      margin-bottom: 1rem;
    }

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

    /* ─── MISSION ───────────────────────────────────────── */
    .mission-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2.2rem;
      height: 100%;
      transition: transform 0.25s, box-shadow 0.25s;
      position: relative;
      overflow: hidden;
    }

    .mission-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--primary-light));
      opacity: 0;
      transition: opacity 0.25s;
    }

    .mission-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(45, 106, 79, 0.12);
    }

    .mission-card:hover::before { opacity: 1; }

    .mission-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(45,106,79,0.1), rgba(82,183,136,0.15));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--primary);
      margin-bottom: 1.2rem;
    }

    /* ─── IMPACT ────────────────────────────────────────── */
    .impact-section {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
      padding: 5rem 0;
      position: relative;
      overflow: hidden;
    }

    .impact-section::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: rgba(82, 183, 136, 0.07);
    }

    .impact-number {
      font-size: clamp(2.8rem, 5vw, 4rem);
      font-weight: 800;
      color: var(--primary-light);
      line-height: 1;
      margin-bottom: 0.4rem;
    }

    .impact-label {
      font-size: 0.95rem;
      color: rgba(255,255,255,0.7);
      font-weight: 400;
    }

    .impact-divider {
      width: 1px;
      background: rgba(255,255,255,0.12);
      align-self: stretch;
    }

    /* ─── STORIES ───────────────────────────────────────── */
    .story-card {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: transform 0.25s, box-shadow 0.25s;
      height: 100%;
    }

    .story-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 48px rgba(45, 106, 79, 0.12);
    }

    .story-img {
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      position: relative;
      overflow: hidden;
    }

    .story-body { padding: 1.6rem; }

    .story-tag {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 50px;
      margin-bottom: 0.8rem;
    }

    /* ─── PROGRAMS ──────────────────────────────────────── */
    .program-item {
      display: flex;
      gap: 1.2rem;
      align-items: flex-start;
      padding: 1.5rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: white;
      transition: all 0.2s;
      margin-bottom: 1rem;
    }

    .program-item:hover {
      border-color: var(--primary-light);
      box-shadow: 0 4px 20px rgba(45, 106, 79, 0.1);
    }

    .program-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
    }

    /* ─── VOLUNTEER FORM ────────────────────────────────── */
    .form-section {
      background: linear-gradient(160deg, var(--light-bg), white);
    }

    .form-card {
      background: white;
      border-radius: 24px;
      box-shadow: 0 8px 48px rgba(45, 106, 79, 0.1);
      overflow: hidden;
    }

    .form-aside {
      background: linear-gradient(160deg, var(--primary-dark), var(--primary));
      padding: 3rem 2.5rem;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .form-aside h3 { color: white; }

    .form-benefit {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 1rem;
      font-size: 0.92rem;
      color: rgba(255,255,255,0.85);
    }

    .form-benefit i {
      color: var(--primary-light);
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .form-main { padding: 3rem 2.5rem; }

    .form-control, .form-select {
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 0.7rem 1rem;
      font-size: 0.93rem;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-control:focus, .form-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
    }

    .form-label {
      font-weight: 500;
      font-size: 0.88rem;
      color: var(--text-dark);
      margin-bottom: 0.4rem;
    }

    .btn-submit {
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: white;
      padding: 0.85rem 2.5rem;
      border-radius: 50px;
      font-weight: 600;
      border: none;
      font-size: 1rem;
      transition: transform 0.2s, box-shadow 0.2s;
      width: 100%;
    }

    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
      color: white;
    }

    /* ─── NEWSLETTER ────────────────────────────────────── */
    .newsletter-section {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      padding: 4.5rem 0;
    }

    .newsletter-input {
      border-radius: 50px 0 0 50px !important;
      padding: 0.8rem 1.5rem !important;
      border: none !important;
      font-size: 0.95rem;
    }

    .newsletter-btn {
      background: var(--primary-dark);
      color: white;
      border-radius: 0 50px 50px 0;
      padding: 0.8rem 2rem;
      border: none;
      font-weight: 600;
      font-size: 0.95rem;
      transition: background 0.2s;
      white-space: nowrap;
    }

    .newsletter-btn:hover { background: var(--text-dark); color: white; }

    /* ─── FOOTER ────────────────────────────────────────── */
    .footer {
      background: var(--text-dark);
      color: rgba(255,255,255,0.7);
      padding: 5rem 0 2rem;
    }

    .footer-brand .brand-name { color: white; font-size: 1.25rem; }
    .footer-brand .brand-tagline { color: rgba(255,255,255,0.45); }

    .footer h6 {
      color: white;
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 1.2rem;
    }

    .footer-link {
      display: block;
      color: rgba(255,255,255,0.6);
      text-decoration: none;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      transition: color 0.2s;
    }

    .footer-link:hover { color: var(--primary-light); }

    .footer-social {
      display: flex;
      gap: 10px;
      margin-top: 1.2rem;
    }

    .social-btn {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.7);
      font-size: 1rem;
      text-decoration: none;
      transition: all 0.2s;
    }

    .social-btn:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 2rem;
      margin-top: 3rem;
    }

    /* ─── TOAST / NOTIFICATION ──────────────────────────── */
    .toast-container { z-index: 9999; }

/* ─── RESPONSIVE TWEAKS ─────────────────────────────── */

@media (max-width: 991.98px) {

  .navbar-collapse {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);

    /* FIX: prevent horizontal overflow */
    width: 100%;
    overflow-x: hidden;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem !important;
  }

  .btn-donate-nav {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .impact-divider {
    display: none;
  }

  .form-aside {
    padding: 2.5rem 2rem;
  }

  .form-main {
    padding: 2.5rem 2rem;
  }
}

/* ─── SMALL DEVICES ─────────────────────────────── */

@media (max-width: 575.98px) {

  .hero-stats {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary-hero,
  .btn-outline-hero {
    width: 100%;
    justify-content: center;
  }

  .newsletter-input {
    border-radius: 50px !important;
    margin-bottom: 0.8rem;
  }

  .newsletter-btn {
    border-radius: 50px;
    width: 100%;
  }
}

/* ─── SCROLL ANIMATION ──────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

    