/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafaf8;
}

/* ===== HERO SECTION WITH CAROUSEL ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-top: 3rem;
  max-width: 900px;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}

.hero-overlay p {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}

.btn-primary {
  background: #8b9e7d;
  color: white;
}

.btn-primary:hover {
  background: #7a8d6c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 158, 125, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-3px);
}

/* ===== SECTION COMMON STYLES ===== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  color: #2c3e2f;
  text-align: center;
  font-weight: 700;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: #f5f3ed;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #4a4a4a;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* ===== INITIATIVES SECTION ===== */
.initiatives {
  background: #fafaf8;
}

.initiative {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.initiative.visible {
  opacity: 1;
  transform: translateY(0);
}

.initiative-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #2c3e2f;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
}

.initiative-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.initiative-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.initiative-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.initiative-image:hover {
  transform: scale(1.03);
}

.initiative-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ===== INITIATIVE CAROUSEL ===== */
.initiative-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.initiative-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition:
    opacity 0.8s ease-in-out,
    transform 0.6s ease;
}

.initiative-carousel-slide.active {
  opacity: 1;
}

.initiative-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.initiative-carousel-prev,
.initiative-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 3;
}

.initiative-carousel-prev {
  left: 12px;
}
.initiative-carousel-next {
  right: 12px;
}

.donate-btn {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

@media (max-width: 768px) {
  .initiative-carousel {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .initiative-carousel {
    height: 220px;
  }
  .initiative-carousel-prev,
  .initiative-carousel-next {
    width: 36px;
    height: 36px;
  }
}

.initiative-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
}

.initiative-text p {
  margin-bottom: 1.2rem;
}

.initiative-text ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style: none;
}

.initiative-text ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.initiative-text ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #8b9e7d;
  font-weight: bold;
}

/* ===== VOLUNTEER SECTION ===== */
.volunteer-section {
  background: #f5f3ed;
  text-align: center;
}

.volunteer-content {
  max-width: 700px;
  margin: 0 auto;
}

.volunteer-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.btn-volunteer {
  margin-top: 2rem;
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
}

/* ===== TEAM SECTION ===== */
.team {
  background: #fafaf8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e2f;
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 1rem;
  color: #8b9e7d;
  font-weight: 500;
}

/* ===== LINKEDIN HOVER OVERLAY ===== */
.team-image {
  position: relative;
  display: block;
  text-decoration: none;
}

.linkedin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 47, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.linkedin-overlay img {
  width: 58px;
  height: 58px;
}

.team-image:hover .linkedin-overlay {
  opacity: 1;
}

/* ===== FOOTER ===== */
footer {
  background: #2c3e2f;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.footer-message {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.footer-copyright {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  section {
    padding: 3rem 1.5rem;
  }

  .initiative-content {
    grid-template-columns: 1fr;
  }

  /* Default order: image first, text second */
  .initiative-content .initiative-carousel {
    order: -1;
  }

  .initiative-content .initiative-text {
    order: 1;
  }

  .initiative-images {
    order: -1;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Shrink avatars on mobile */
  .team-image {
    width: 90px;
    height: 90px;
  }

  .team-name {
    font-size: 0.95rem;
  }

  .team-role {
    font-size: 0.8rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    padding-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .initiative-images {
    grid-template-columns: 1fr;
  }
}
