html {
  scroll-behavior: smooth;
}

.nav-item {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.25s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #2e7d32;
  background: #e9f4ea;
}

.mobile-nav-item {
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.95rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  background: #e9f4ea;
  color: #2e7d32;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.8rem;
  font-weight: 600;
}

.ngo-card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e5efe5;
  box-shadow: 0 12px 28px rgba(20, 80, 30, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ngo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 80, 30, 0.12);
}

/* Hero slider */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}

.heroSwiper {
  width: 100%;
}

.heroSwiper .swiper-slide {
  height: auto;
}

.hero-slide {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(19, 78, 28, 0.78), rgba(245, 124, 0, 0.55));
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5.5rem;
  color: #fff;
}

.hero-slide__title {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-slide__text {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: #ecfdf5;
  max-width: 42rem;
}

.hero-slide__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.hero-btn-primary {
  background: #f57c00;
  color: #fff;
}

.hero-btn-primary:hover {
  background: #ea580c;
}

.hero-btn-light {
  background: #fff;
  color: #2e7d32;
}

.hero-btn-light:hover {
  background: #ecfdf5;
}

.hero-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-swiper-prev,
.hero-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-swiper-prev {
  left: 0.75rem;
}

.hero-swiper-next {
  right: 0.75rem;
}

.hero-swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin: 0 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: #f57c00;
}

.home-testimonial-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.home-testimonial-pagination .swiper-pagination-bullet {
  background: #2e7d32;
  opacity: 0.35;
}

.home-testimonial-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (min-width: 640px) {
  .hero-slide {
    min-height: 86vh;
  }

  .hero-swiper-prev {
    left: 1.5rem;
  }

  .hero-swiper-next {
    right: 1.5rem;
  }

  .hero-swiper-prev,
  .hero-swiper-next {
    width: 3rem;
    height: 3rem;
  }
}

/* Gallery page — pill tabs (same hover + active: green bg, white text) */
.ngo-gallery--pill-tabs .gallery-tab-btn {
  color: #2e7d32;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ngo-gallery--pill-tabs .gallery-tab-btn:hover,
.ngo-gallery--pill-tabs .gallery-tab-btn.is-active {
  background-color: #2e7d32;
  color: #fff;
}

.ngo-gallery--pill-tabs .gallery-tab-btn.is-active {
  box-shadow: 0 1px 4px rgba(46, 125, 50, 0.35);
}

.footer-link {
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #f57c00;
}

.footer-social {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #1e293b;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.footer-social:hover {
  background: #f57c00;
  color: #fff;
}
