* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9faf8;
  color: #1c2b24;
  line-height: 1.5;
}

h1, h2, h3, h4, .logo, .caption h2, .welcome-heading, .section-title {
  font-family: 'DM Serif Display', serif;
}

/* === navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 70px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 30, 10, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #cb9e6b;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1f5e4a;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* nav-links: single flex row, all items vertically centered */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
  flex-wrap: nowrap;
}

/* every direct child of nav-links is a flex item */
.nav-links > a,
.nav-links > .nav-dropdown {
  display: flex;
  align-items: center;
  height: 40px;
}

/* base link style */
.nav-links > a {
  padding: 0 0.75rem;
  text-decoration: none;
  color: #1e3d35;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}
.nav-links > a:hover,
.nav-links > a.active,
.nav-links .dropdown-toggle.active {
  color: #1f5e4a;
  border-bottom-color: #1f5e4a;
}

/* dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* dropdown toggle — same look as a plain link */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 40px;
  padding: 0 0.75rem;
  text-decoration: none;
  color: #1e3d35;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}
.dropdown-toggle i {
  font-size: 0.65rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.nav-dropdown:hover .dropdown-toggle {
  color: #e8c832;
  border-bottom-color: #e8c832;
}

/* dropdown panel */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #e8c832;
  border-radius: 8px;
  padding: 0.6rem 0;
  min-width: 260px;
  box-shadow: 0 8px 24px #0002;
  z-index: 200;
  margin-top: 10px;
}
/* invisible bridge to prevent hover gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  height: 18px;
}
/* arrow */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: #e8c832;
  border-top: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.4rem;
  color: #1c2b24 !important;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: none !important;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: #d4b520; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* donate button */
.donate-btn {
  display: flex !important;
  align-items: center !important;
  height: 36px !important;
  padding: 0 1.4rem !important;
  margin-left: 0.5rem;
  background: #922d02 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-decoration: none;
  line-height: 1 !important;
  box-shadow: 0 3px 10px #1f9e5a30;
  transition: background 0.2s, transform 0.2s !important;
  flex-shrink: 0;
}
.donate-btn:hover {
  background: #177a45 !important;
  border-bottom: none !important;
  transform: translateY(-1px);
}

/* hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #1f5e4a;
  cursor: pointer;
  z-index: 200;
  height: 40px;
  width: 40px;
}

/* mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 30px -10px rgba(0,40,20,0.2);
  border-bottom: 3px solid #cb9e6b;
  z-index: 99;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.mobile-menu a {
  padding: 0.85rem 0;
  text-decoration: none;
  color: #1f5e4a;
  font-weight: 600;
  border-bottom: 1px solid #d4e8da;
  font-size: 1.1rem;
  line-height: 1.4;
}
.mobile-menu a:last-child { border-bottom: none; }

/* === hero slider === */
.hero-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 90vh;
  min-height: 600px;
}

.slider-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: scrollSlider 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.slide {
  width: 25%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4rem 5rem;
  position: relative;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, #0f3327d9 0%, transparent 70%);
}

.caption {
  position: relative;
  z-index: 5;
  max-width: 700px;
  color: white;
  text-shadow: 0 4px 12px #1a3429;
}

.caption h2 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  border-left: 12px solid #cb9e6b;
  padding-left: 2rem;
}

.caption p {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.caption i {
  background: #cb9e6b;
  padding: 0.5rem 1.5rem;
  border-radius: 60px;
  font-style: normal;
  font-weight: 600;
  color: #1e422f;
  display: inline-block;
  font-size: 1.2rem;
}

.slide1 { background-image: linear-gradient(0deg, #1d4e3d80, #3f6a4f80), url('../images/hero.jpg'); }
.slide2 { background-image: linear-gradient(0deg, #1d4e3d80, #3f6a4f80), url('../images/hero2.jpg'); }
.slide3 { background-image: linear-gradient(0deg, #1d4e3d80, #3f6a4f80), url('../images/hero3.jpg'); }
.slide4 { background-image: linear-gradient(0deg, #1d4e3d80, #3f6a4f80), url('../images/hero4.jpg'); }

@keyframes scrollSlider {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(0); }
  25%  { transform: translateX(-25%); }
  45%  { transform: translateX(-25%); }
  50%  { transform: translateX(-50%); }
  70%  { transform: translateX(-50%); }
  75%  { transform: translateX(-75%); }
  95%  { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}

/* container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1b4b3e;
  border-left: 10px solid #cb9e6b;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* === welcome section === */
.welcome-section {
  display: flex;
  align-items: center;
  background: #ffffff;
  min-height: 480px;
}

.welcome-text {
  flex: 1;
  padding: 4rem 4rem 4rem 5rem;
}

.welcome-heading {
  font-size: 3.8rem;
  font-weight: 800;
  color: #1f9e5a;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.welcome-sub {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1c2b24;
  margin-bottom: 1.2rem;
}

.welcome-desc {
  font-size: 1rem;
  color: #3a5244;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.welcome-btn {
  display: inline-block;
  background: #e8c832;
  color: #1c2b24;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.welcome-btn:hover { background: #d4b520; }

.welcome-image {
  flex: 1;
  height: 480px;
  overflow: hidden;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}
.welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === vision mission core values === */
.vmc-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px -20px #1f5e4a;
}

.vmc-card {
  padding: 3rem 2.5rem;
  background: #1d3f33;
  color: #f0ede3;
  border-right: 1px solid #2e5c47;
}
.vmc-card:last-child { border-right: none; }
.vmc-card:nth-child(2) { background: #1f5e4a; }
.vmc-card:nth-child(3) { background: #163328; }

.vmc-icon { font-size: 2.2rem; color: #cb9e6b; margin-bottom: 1rem; }
.vmc-card h3 { font-size: 1.8rem; color: #e9cba7; margin-bottom: 1rem; }
.vmc-card p { font-size: 1rem; line-height: 1.7; color: #c8ddd0; }
.vmc-card ul { list-style: none; margin: 0; padding: 0; }
.vmc-card li { padding: 0.5rem 0; color: #c8ddd0; display: flex; gap: 0.8rem; border-bottom: 1px solid #2e5c47; font-size: 1rem; }
.vmc-card li:last-child { border-bottom: none; }
.vmc-card li i { color: #cb9e6b; width: 1.2rem; }

/* === programs & projects === */
.programs-section { padding: 3rem 0; }

.programs-title {
  font-size: 2.4rem;
  text-align: center;
  color: #1c2b24;
  margin-bottom: 2.5rem;
  font-family: 'DM Serif Display', serif;
}

.programs-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cb9e6b #f0ede3;
}

.programs-grid::-webkit-scrollbar { height: 6px; }
.programs-grid::-webkit-scrollbar-track { background: #f0ede3; border-radius: 10px; }
.programs-grid::-webkit-scrollbar-thumb { background: #cb9e6b; border-radius: 10px; }

.program-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px #1f5e4a40;
  transition: transform 0.2s, box-shadow 0.2s;
}
.program-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px -12px #1f5e4a60; }

.program-img { width: 100%; height: 200px; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.program-card:hover .program-img img { transform: scale(1.05); }
.program-card h3 { font-size: 1.15rem; color: #1c2b24; padding: 1.2rem 1.2rem 0.5rem; font-family: 'DM Serif Display', serif; }
.program-card p { font-size: 0.95rem; color: #3a5244; padding: 0 1.2rem 1.5rem; line-height: 1.6; }

/* === why us === */
.why-us-section { display: flex; gap: 4rem; padding: 4rem 0; align-items: stretch; }

.why-us-image { flex: 0 0 420px; border-radius: 16px; overflow: hidden; }
.why-us-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.why-us-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.why-us-eyebrow { font-size: 0.85rem; font-weight: 600; color: #888; letter-spacing: 1px; margin-bottom: 0.5rem; }
.why-us-heading { font-size: 2.8rem; color: #1f9e5a; line-height: 1.15; font-family: 'DM Serif Display', serif; }
.why-us-right { flex: 1; display: flex; flex-direction: column; gap: 2.5rem; }

.why-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.why-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 2px solid #1f5e4a; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #1f5e4a; }
.why-item h4 { font-size: 1.2rem; font-weight: 700; color: #1c2b24; margin-bottom: 0.5rem; font-family: 'DM Serif Display', serif; }
.why-item p { font-size: 0.98rem; color: #3a5244; line-height: 1.7; }

/* === strategic positioning === */
.strategic-section { padding: 4rem 0; }
.strategic-header { text-align: center; margin-bottom: 3rem; }
.strategic-eyebrow { font-size: 0.9rem; color: #888; letter-spacing: 1px; margin-bottom: 0.4rem; }
.strategic-title { font-size: 2.6rem; font-weight: 800; color: #1c2b24; letter-spacing: 2px; }
.strategic-body { display: flex; align-items: center; gap: 3rem; }
.venn-wrap { flex: 1; position: relative; height: auto; }
.strategic-text { flex: 1; }
.strategic-text h3 { font-size: 2rem; color: #1f9e5a; margin-bottom: 1.2rem; line-height: 1.2; }
.strategic-text p { font-size: 1rem; color: #3a5244; line-height: 1.8; margin-bottom: 1.5rem; }
.strategic-learn { color: #1c2b24; font-weight: 700; text-decoration: underline; font-size: 1rem; }

/* === impact stats === */
.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  padding: 3.5rem 2rem;
  margin: 3rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px -15px #1f5e4a30;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; flex: 1 1 120px; }
.stat-number { font-family: 'DM Serif Display', serif; font-size: 4rem; font-weight: 700; color: #1f9e5a; line-height: 1; }
.stat-label { font-size: 1rem; color: #3a5244; }
.stat-icon { font-size: 2rem; color: #1c2b24; margin-top: 0.5rem; }

/* === why us section === */
.why-us-section { display: flex; gap: 4rem; padding: 4rem 0; align-items: stretch; }

/* === partners logo strip === */
.partners-section {
  background: #e4f0e9;
  border-radius: 8px;
  padding: 3rem 2rem;
  margin: 4rem 0 0;
  overflow: hidden;
}

.partners-track-wrap { overflow: hidden; position: relative; margin-top: 2rem; }

.partners-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: scrollPartners 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partners-track img { height: 60px; width: auto; object-fit: contain; filter: grayscale(30%); opacity: 0.85; transition: opacity 0.2s, filter 0.2s; }
.partners-track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scrollPartners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === footer === */
.footer {
  background: #1d3f33;
  color: #f0ede3;
  padding: 3rem 2rem 2rem;
  margin-top: 0;
  border-radius: 70px 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col h4 { color: #e9cba7; font-size: 1.3rem; margin-bottom: 1.3rem; border-left: 4px solid #cb9e6b; padding-left: 1rem; }
.footer-col p, .footer-col a { color: #dbebdd; text-decoration: none; display: block; margin-bottom: 0.7rem; font-size: 0.98rem; }
.footer-col i { width: 1.8rem; color: #cb9e6b; }
.social-icons { display: flex; gap: 1.2rem; font-size: 1.6rem; margin-top: 0.8rem; }
.copyright { text-align: center; padding-top: 3rem; font-size: 0.9rem; color: #bccfc1; }

/* === responsive === */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-text { padding: 3rem 2rem; }
  .welcome-heading { font-size: 2.8rem; }
  .welcome-image { width: 100%; height: 300px; flex: none; }
  .strategic-body { flex-direction: column; }
  .venn-wrap { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.show { display: flex; }
  .caption h2 { font-size: 2.8rem; }
  .caption p { font-size: 1.3rem; }
  .slide { padding: 2rem; }
  .why-us-section { flex-direction: column; gap: 2rem; }
  .why-us-image { flex: none; height: 280px; }
  .vmc-section { grid-template-columns: 1fr; }
  .vmc-card { border-right: none; border-bottom: 1px solid #2e5c47; }
  .vmc-card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .hero-section { height: 70vh; min-height: 500px; }
  .caption h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
