* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #f9fdfb;
    
    
    
    position: fixed;  /* make it fixed */
    top: 0;           /* stick to top */
    width: 100%;      /* full width */
    z-index: 1000;    /* keep it above other content */
}
body {
    padding-top: 100px; /* adjust this based on header height */
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 35px;
    height: 35px;
}

.logo span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2f4f4f;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a,
.nav-links button {
    text-decoration: none;
    color: #555;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* .nav-links a.active {
    color: #008065;
    font-weight: 600
} */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.donate-btn {
    background: #008065;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 15px 0;
        transition: left 0.3s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links a,
    .nav-links button {
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }
}
header {
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 25px 2%; /* Increased from 15px to 25px */
    background: #f9fdfb;
}

.logo img {
    width: 45px; /* Increased size */
    height: 45px;
}

.logo span {
    font-size: 1.6rem; /* Slightly bigger text */
    font-weight: bold;
    color: #2f4f4f;
}

.nav-links a,
.nav-links button {
    font-size: 1.1rem; /* Slightly bigger nav text */
}

/*  */

/* /index section/ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 100px 9%; */
    background: #b6ccc0;
    flex-wrap: wrap;
}

.hero-image {
    flex:1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    padding-left: 40px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #24423f;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: #008065;
    color: white;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.btn-outline {
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #b6ccc0; /* dark blue on hover */
    color: #333;
}

/* Filled Button */
.btn-filled {
    border: none;
    background-color: #ff5722;
    color: #fff;
}

.btn-filled:hover {
    background-color: #b6ccc0;
    color: #333; /* darker orange on hover */
}
/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
    }

    .hero-text {
        padding-left: 0;
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 8%;
    background-color: #f9fdfb;
}

.feature-card {
    flex: 1 1 calc(25% - 20px);
    background-color: #d3e3dc;
    border-radius: 12px;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background-color: #1f8a70;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.feature-card p {
    font-size: 15px;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .feature-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .feature-card {
        flex: 1 1 100%;
    }
}


/* PHOTO SLIDER STYLING */
.photo-slider {
    width: 100%;
    height: 70vh; /* same size as hero */
    overflow: hidden;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


.about-us {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 8%;
    gap: 60px;
    background-color: #b6ccc0;
}

.about-content {
    flex: 1 1 50%;
    margin-right: 30px;
}

.section-subtitle {
    color: #1f8a70;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-content .btn {
    display: inline-block;
    background-color: #1f8a70;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-decoration: none;
}


.about-text {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.what-we-do h3 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.what-we-do ul {
    list-style: none;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 10px;
}

.what-we-do li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.what-we-do i {
    color: #1f8a70;
    margin-right: 8px;
}

/* Right Image with Floating Card */
.about-image {
    flex: 1 1 40%;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
    height: 350px;
}

.floating-card {
    position: absolute;
    top: 15%;
    left: -20%;
    background-color: #d3e3dc;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 280px;
}

.volunteer-images {
    display: flex;
    margin-bottom: 10px;
}

.volunteer-images img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    margin-right: -10px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-us {
        flex-direction: column;
    }
    .about-image {
        order: -1;
        text-align: center;
    }
    .floating-card {
        position: static;
        margin-top: 15px;
    }
}


.causes-section {
  background-color: #fff;
  padding: 50px 8%;
}

.section-subtitle {
  color: #0d6b4d;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 2.8rem;
  color: #2e3c37;
  max-width: 600px;
}

.section-header .btn {
  background-color: #007b5e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.causes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cause-card {
  background: #e0ebe5;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.cause-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.cause-card h3 {
  font-size: 1.3rem;
  margin: 15px 0 10px;
  color: #333;
  line-height: 1.6;
}

.cause-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: auto;
}

.cause-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #0d6b4d;
  margin-top: 15px;
}

.cause-meta i {
  margin-right: 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .section-header .btn {
    margin-top: 15px;
  }
}
/* Mission Section */
.mission-section {
  padding: 40px 8%;
  background: #e0ebe5;
  text-align: left;
}

.section-subtitle {
  color: #0c8b6f;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

.mission-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* Responsive */
}

.mission-image {
  flex: 1;
  min-width: 200px;
}

.mission-image img {
  width: 70%;
  border-radius: 10px;
  height: auto;
}

.mission-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.mission-item {
  border-bottom: 1px solid #ddd;
  padding: 25px 0;
}

.mission-item h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 8px;
}

.mission-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.1rem;
  }

  .mission-container {
    flex-direction: column;
    text-align: center;
  }

  .mission-content {
    text-align: center;
  }
}
/*impact section*/

/* Base layout */
.impact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: left;
  justify-content: space-between;
  padding: 55px 8%;
  background: #fff;
}

.impact-text {
  flex: 1 1 40%;
  text-align: left;
}

.impact-cards {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.impact-card {
  background: #e0ebe5;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.impact-card h3 {
  margin: 15px 0 10px;
  font-size: 18px;
}

.impact-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.impact-card strong {
  font-size: 24px;
  color: #0a7d5a;
}
.impact-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Icon Hover Pop */
.impact-card:hover .icon {
  transform: scale(1.3) rotate(10deg);
}
/* ✅ Mobile Responsive Fix */
@media (max-width: 768px) {
  .impact-section {
    flex-direction: column;
    padding: 40px 5%;
  }

  .impact-text {
    flex: 1 1 100%;
    text-align: left;
    margin-bottom: o;
  }

  .impact-cards {
    grid-template-columns: 1fr;  /* stack cards in one column */
    width: 100%;
  }

  .impact-card {
    padding: 15px;
  }

  .impact-card strong {
    font-size: 20px;
  }
}

/*faq section*/

/* FAQ Section */
.faq-section {
  padding: 50px 8%;
  background-color: #e0ebe5;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.faq-text {
  flex: 1;
  color: #0c8b6f;
  font-weight: bold;
}
.faq-title{
    color: #333;
    font-size: 2.2rem;
}

.faq-side {
  flex: 1;
  text-align: right;
}

.faq-side p {
  margin-bottom: 15px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(245, 243, 243, 0.04);
  /* margin-bottom: 24px;    */
  /* padding: 0;
  display: flex;
  flex-direction: column; */
  overflow: hidden;
}



.faq-item span {
  font-size: 20px;
  font-weight: bold;
}

.faq-answer {
    
  padding: 0 20px; /* Top/Right/Bottom/Left */
  color: #444;
  font-size: 1rem;
  transition: all 0.3s;
  overflow: hidden;
  background:#fff;
  transition: max-height 0.4s ease, padding 0.3s ease;
  max-height: 0;
}
.faq-answer p{
  margin: 15px 0;
}
.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust based on content */
  padding: 15px 20px;
}
.faq-item.active .faq-question .icon{
  transform: rotate(45deg);
  color:#333
}
.faq-question {
    width: 100%;
  cursor: pointer;
  font-weight: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border: none;
  background: #fff;
  font-size: 16px;
  text-align: left; /* Top/Right/Bottom/Left */
}
.faq-question span {
  font-size: 1.5em;
  margin-left: 10px;
  transition: transform 0.2s;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .faq-header {
    flex-direction: column;
    text-align: left;
  }

  .faq-side {
    text-align: left;
  }

  .faq-list {
    grid-template-columns: 1fr; 
  }
}

/* FAQ Main Flex Container */
.faq-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

/* Left Side - FAQ list */
.faq-list {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* FAQ items */
.faq-item {
  background: #e3ece7;
  border-radius: 8px;
  padding: 5px 20px;
  cursor: pointer;
}
.faq-question {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.faq-answer {
  display: none;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
  max-height: 300px;
  padding: 15px 20px;
}
.faq-answer p {
  margin: 15px 0;
}

/* Right Side - Image */
.faq-image {
  flex: 1;
}
.faq-image img {
  width: 100%;
  max-width: 400px;
  height: 553px;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
  .faq-container {
    flex-direction: column;
  }
  .faq-image {
    margin-top: 20px;
  }
   .faq-title {
    font-size: 1.1rem;
  }

  .faq-question {
    font-size: 14px;
    padding: 12px 15px;
  }

  .faq-question .icon {
    font-size: 18px;
  }

  .faq-answer {
    font-size: 13px;
    padding: 0 15px;
  }

  .faq-answer p {
    margin: 10px 0;
  }
}

/* join volunteer */
.hero-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-content p {
  margin-bottom: 20px;
  color: #444;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn-outline {
  border: 1px solid #007b5e;
  background: #007b5e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-filled {
  background: #007b5e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

/* ✅ Gallery Styles */
.hero-gallery {
  position: relative;
  margin-top: 25px;
  overflow: hidden;
  width: 100%;
}

.gallery-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Show 3 full images on desktop */
.gallery-wrapper img {
  width: calc(100% / 3);
  flex: 0 0 calc(100% / 3);
  border-radius: 10px;
  object-fit: cover;
}

/* Navigation Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

/* ✅ Responsive (Mobile) */
@media (max-width: 768px) {
  .gallery-wrapper img {
    width: 100%;        /* Full width image */
    flex: 0 0 100%;     /* Show only 1 image at a time */
  }
}
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.1rem;
  }
  /* .hero-content p {
    font-size: 0.95rem;
  }
  .btn-outline, .btn-filled {
    padding: 8px 15px;
    font-size: 0.9rem;
  } */
}

/* ...existing code... */

/* Responsive: Hero Section */
@media (max-width: 576px) {
    .hero {
        padding: 20px 2%;
    }
    .hero-text h1 {
        font-size: 1.3rem;
    }
    .hero-text p {
        font-size: 0.95rem;
    }
    .btn {
        padding: 10px 14px;
        font-size: 1rem;
    }
}

/* Responsive: Features Section */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        gap: 15px;
        padding: 30px 4%;
    }
    .feature-card {
        max-width: 100%;
        padding: 22px 10px;
    }
}
@media (max-width: 400px) {
    .feature-card {
        padding: 15px 5px;
        font-size: 0.95rem;
    }
}

/* Responsive: About Us Section */
@media (max-width: 768px) {
    .about-us {
        flex-direction: column;
        gap: 20px;
        padding: 30px 4%;
    }
    .about-content h2 {
        font-size: 1.5rem;
    }
    .about-image img {
        max-width: 95vw;
    }
    .floating-card {
        max-width: 95vw;
        padding: 12px 10px;
    }
    .volunteer-images img {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 400px) {
    .about-content h2 {
        font-size: 1.1rem;
    }
    .about-content .btn {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}

/* Responsive: What We Do List */
@media (max-width: 576px) {
    .what-we-do ul {
        grid-template-columns: 1fr;
    }
}

/* Responsive: Photo Slider */
@media (max-width: 768px) {
    .photo-slider {
        height: 40vh;
    }
}
@media (max-width: 576px) {
    .photo-slider {
        height: 28vh;
    }
}