/* ===========================
   SECTION COLOR FLOW (FINAL FIX)
=========================== */

/* 1. Awareness */
#mission.section {
  background: #eef6f2;
}

/* 2. Book */
#book.section {
  background: var(--light);
}

/* 3. About */
#about.section {
  background: #eef6f2;
}

/* 4. Initiatives */
#initiatives.section {
  background: var(--light);
}

/* 5. Impact */
#impact.section {
  background: #eef6f2;
}

/* 6. Events */
#events.section {
  background: var(--light);
}

/* ===========================
   GRID CARDS
=========================== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  color: var(--dark);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* ===========================
   IMPACT SECTION
=========================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.impact-item {
  background: #fff;
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.impact-item i {
  font-size: 2.4rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.impact-item h4 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}

.impact-item p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===========================
   EVENTS & UPDATES
=========================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-content {
  padding: 1.8rem;
  text-align: left;
}

.event-content h4 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.event-meta {
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0.8rem;
}

.event-meta i {
  color: var(--secondary);
  margin-right: 6px;
}

.event-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

#events h4,
#events .event-meta,
#events p {
  text-align: left !important;
}

/* ===========================
   TESTIMONIALS
=========================== */
#testimonials {
  padding: 60px 20px;
  background: #eef6f2;
  text-align: center;
}

#testimonials .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.testimonial-slider {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 12px;
  max-width: 520px;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

/* ===========================
   GALLERY
=========================== */
#gallery {
  background: var(--light);
  padding: 3rem 0;
}

#gallery .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

#gallery .gallery-slider {
  max-width: 960px;
  margin: 0 auto;
}

#gallery .swiper-slide {
  width: 500px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================
   CONTACT
=========================== */
#contact {
  background: var(--light);
  text-align: center;
}

.contact-box {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  max-width: 650px;
  margin: 0 auto;
}

.contact-box form {
  width: 100%;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 2.5rem;
}

.footer p,
.footer-contact {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-contact {
  line-height: 1.7;
}

.footer-contact a {
  color: #e5e5e5;
  text-decoration: underline;
}

.socials {
  margin-top: 0.5rem;
}

.socials a {
  margin: 0 12px;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--secondary);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  body {
    padding-top: 60px;
  }

  .logo img {
    height: 30px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .event-content {
    padding: 1.2rem;
  }

  .event-content h4 {
    font-size: 1.2rem;
  }

  .event-image img {
    height: 200px;
  }
}

/* ===========================
   404 PAGE
=========================== */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.error-404 .container {
  max-width: 700px;
  margin: auto;
}

.error-404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.error-404 p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ===========================
   RESOURCES & DOWNLOADS
=========================== */
#downloads {
  background: #eef6f2;
  padding: 4.5rem 0;
  text-align: center;
}

#downloads .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

#downloads .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.download-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  padding: 2.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.download-card i {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.download-card h4 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.download-card p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 90%;
  text-align: center;
}

.download-card .btn.btn-small {
  display: inline-block;
  font-size: 0.95rem;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-card .btn.btn-small:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* BOOK SECTION */
#book .book-wrapper {
  display: flex;
  align-items: center;
  gap: 80px; /* breathing space like other sections */
}

/* LEFT IMAGE */
#book .book-image {
  flex: 0 0 auto;
}

#book .book-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

/* RIGHT CONTENT */
#book .book-content {
  flex: 1;
}

/* TITLE spacing */
#book .section-title {
  margin-bottom: 20px; /* increased gap */
}

/* DESCRIPTION */
#book .book-content p {
  line-height: 1.7;
  margin-bottom: 15px;
}

/* BUTTON CENTERED */
#book .book-button {
  text-align: center;
  margin-top: 25px;
}

/* MOBILE */
@media (max-width: 768px) {
  #book .book-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  #book .book-image img {
    max-width: 220px;
  }

}