:root {
  --primary: #651e1a;
  --secondary: #f4a460;
  --light: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.header {
  background: var(--light);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  height: 52px;
  width: auto;
}
nav {
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-list li {
  position: relative;
}
.nav-list > li > a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus {
  background: var(--secondary);
  color: var(--light);
}
.has-submenu > a i {
  margin-left: 5px;
  font-size: 0.9em;
}
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  background: var(--light);
  box-shadow: var(--shadow);
  min-width: 210px;
  border-radius: 5px;
  z-index: 10;
  padding: 0.5rem 0;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}
.submenu li {
  position: relative;
}
.submenu a {
  display: block;
  padding: 10px 22px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s;
}
.submenu a:hover,
.submenu a:focus {
  background: var(--secondary);
  color: var(--light);
}
.submenu-right {
  left: 100%;
  top: 0;
}
@media (max-width: 900px) {
  .header-flex {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .logo {
    height: 48px;
  }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--light);
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    z-index: 99;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list > li > a {
    padding: 15px 22px;
    border-radius: 0;
  }
  .submenu {
    position: static;
    box-shadow: none;
    min-width: 100%;
    border-radius: 0;
    padding: 0;
  }
  .submenu-right {
    left: 0;
    top: 0;
  }
}
section {
  min-height: 100px;
  padding: 40px 0;
}

/* Hero Section Styling */
/* CSS */
:root {
  --maroon: #651e1a;
  --text-dark: #333333;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.image-section {
  background: #f5f5f5;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section {
  padding: 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

h1 {
  font-size: 4vw;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.maroon {
  color: var(--maroon);
}

.cta-button {
  background: var(--maroon);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  .split-hero {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr;
  }
  
  .image-section {
      height: 50vh;
  }
  
  h1 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
  }
  
  .content-section {
      padding: 2rem;
      align-items: center;
      text-align: center;
  }
}
/* Section Hero Section End */

/* section  Project Overview (Animated Reveal) */
/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section Styling */
.project-overview {
  padding: 4rem 0;
  background: #fff8f6;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(101,30,26,0.08);
}

.stats-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #651e1a;
  border-radius: 8px;
  min-width: 180px;
}
/*-- Goals & Objectives Section */
.goals-section {
  background: #fff8f6;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.2rem;
  color: #651e1a;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.goal-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(101,30,26,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
  cursor: pointer;
  min-height: 340px;
}

.goal-card:hover, .goal-card:focus {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 48px rgba(101,30,26,0.15);
  z-index: 2;
}

.card-icon {
  margin-bottom: 1.2rem;
}

.card-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(101,30,26,0.10));
  transition: transform 0.4s;
}

.goal-card:hover .card-icon img {
  transform: rotate(-8deg) scale(1.15);
}

.goal-card h3 {
  font-size: 1.25rem;
  color: #651e1a;
  margin-bottom: 0.7rem;
  font-family: 'Inter', sans-serif;
}

.goal-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.25,.8,.25,1), transform 0.7s cubic-bezier(.25,.8,.25,1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
  .goal-card {
    min-height: 0;
  }
}

/* Key Activities Section */
.activities-section {
  background: #fff8f6;
  padding: 4rem 0;
}

.activities-title {
  color: #651e1a;
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}

/* Horizontal scrollable grid with 3 cards per row (desktop) */
.activities-grid-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 1fr);
  grid-auto-columns: minmax(320px, 1fr);
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0 1rem 2vw;
  -webkit-overflow-scrolling: touch;
}

.activity-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(101,30,26,0.10);
  padding: 2rem 1.3rem 1.2rem 1.3rem;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-width: 320px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activity-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 48px rgba(101,30,26,0.15);
}

.card-icon {
  margin-bottom: 1.2rem;
}
.card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(101,30,26,0.10));
  transition: transform 0.4s;
}
.activity-card:hover .card-icon img {
  transform: rotate(-8deg) scale(1.15);
}

.activity-card h3 {
  font-size: 1.15rem;
  color: #651e1a;
  margin-bottom: 0.7rem;
  font-family: 'Inter', sans-serif;
}
.activity-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.activities-grid-scroll::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.activities-grid-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Responsive: 2 cards per row on tablet, 1 on mobile */
@media (max-width: 900px) {
  .activities-grid-scroll {
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .activities-grid-scroll {
    grid-auto-columns: minmax(90vw, 1fr);
    gap: 1rem;
  }
  .activity-card {
    min-width: 90vw;
    max-width: 95vw;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}


.impact-beneficiaries-section {
  background: #fff;
  padding: 4rem 0 4rem 0;
  text-align: center;
}

.impact-title {
  color: #651e1a;
  font-size: 2.3rem;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}

.impact-stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.impact-stat {
  background: #fff8f6;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(101,30,26,0.08);
  padding: 2rem 2.5rem;
  min-width: 170px;
  margin-bottom: 1.5rem;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  color: #651e1a;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.stat-label {
  color: #444;
  font-size: 1.08rem;
}

.impact-testimonials {
  max-width: 600px;
  margin: 0 auto;
}

.impact-testimonials h3 {
  color: #651e1a;
  margin-bottom: 1.2rem;
}

.testimonial-slider {
  position: relative;
  min-height: 120px;
}

.testimonial {
  display: none;
  font-size: 1.1rem;
  color: #333;
  padding: 1.5rem 1rem;
  background: #fff8f6;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(101,30,26,0.07);
  min-height: 100px;
  transition: opacity 0.4s;
}

.testimonial.active {
  display: block;
}

.testimonial-author {
  display: block;
  margin-top: 1rem;
  color: #651e1a;
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-controls {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.testimonial-controls button {
  background: #f4a460;
  color: #651e1a;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}

.testimonial-controls button:hover {
  background: #ffd700;
}

/* Responsive */
@media (max-width: 700px) {
  .impact-stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .impact-stat {
    min-width: 120px;
    padding: 1.2rem 1rem;
  }
}

/* Gallery (Animated Lightbox) Section*/
/* gallery.css */
.masonry-gallery {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

.gallery-item {
  break-inside: avoid;
  position: relative;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(101, 30, 26, 0.8);
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 8px 8px;
}

.gallery-item:hover .caption-overlay {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 90%;
  max-height: 90vh;
}

#lightboxImage {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(101, 30, 26, 0.5);
  border-radius: 50%;
}

.prev { left: 2%; }
.next { right: 2%; }

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}
/*-- Partners & Support Section --*/
.partners-section {
  background: #fff;
  padding: 4rem 0;
  text-align: center;
}
.partners-title {
  color: #651e1a;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.partner-card {
  background: #fff8f6;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(101,30,26,0.09);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 340px;
  min-width: 260px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 36px rgba(101,30,26,0.13);
}
.partner-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.partner-card h3 {
  color: #651e1a;
  font-size: 1.18rem;
  margin-bottom: 0.7rem;
  font-family: 'Inter', sans-serif;
}
.partner-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}
.partner-highlight {
  color: #f4a460;
  font-weight: 600;
}
@media (max-width: 900px) {
  .partners-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .partner-card {
    max-width: 95vw;
    min-width: 0;
  }
}




/* Section 10: Footer */
.footer-section {
  background: #651e1a;
  color: #fff;
  padding: 48px 0 18px 0;
  font-size: 1rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  width: 100%;
  justify-content: center;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}

.footer-org-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-org-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer-org-address,
.footer-org-contact {
  font-size: 0.97rem;
  color: #f4eaea;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0 0.5rem 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.footer-links a:hover,
.footer-links a:focus {
  background: #fff;
  color: #651e1a;
  outline: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.footer-social-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  transition: box-shadow 0.2s;
}
.footer-social-icon:hover img,
.footer-social-icon:focus img {
  box-shadow: 0 2px 10px #fff5;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.footer-newsletter input[type="email"] {
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  width: 70%;
  outline: none;
}
.newsletter-btn {
  background: #fff;
  color: #651e1a;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.newsletter-btn:hover,
.newsletter-btn:focus {
  background: #f9f8fb;
  color: #a13e3a;
}

.footer-bottom {
  margin-top: 1.2rem;
  font-size: 0.97rem;
  color: #f4eaea;
  text-align: center;
  width: 100%;
}

/* Visually hidden for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .footer-newsletter {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
}

/* ===== back-to-top ===== */
/* Back to Top Button Styles */
.back-to-top {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: #651e1a;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 50px;
  padding: 0.7rem 1.5rem 0.7rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(101,30,26,0.17);
  cursor: pointer;
  opacity: 0.92;
  transition: background 0.2s, opacity 0.2s, transform 0.18s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.back-to-top:hover,
.back-to-top:focus {
  background: #a13e3a;
  opacity: 1;
  transform: translateY(-4px) scale(1.04);
  outline: 2px solid #fff;
}
.back-to-top-icon {
  font-size: 1.35rem;
  display: inline-block;
  vertical-align: middle;
}
.back-to-top-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* Responsive: smaller on mobile */
@media (max-width: 600px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
    padding: 0.6rem 1rem 0.6rem 0.8rem;
  }
  .back-to-top-icon { font-size: 1.1rem; }
  .back-to-top-text { font-size: 0.96rem; }
}

/* ===== Who We Are Section ===== */

/* ===== What We Do (Programs & Projects) ===== */

/* =====  Impact & Success Stories Section ===== */

/* ===== Knowledge Bank Section ===== */

/* ===== Connect With Us Section ===== */

/* ===== Footer Section ===== */


/* ===== New Section ===== */
/* ===== New Section ===== */
/* ===== New Section ===== */
/* ===== New Section ===== */