/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🚩 GLOBAL FIX: Safety rule to prevent horizontal scrolling 🚩 */
img, iframe {
    max-width: 100%;
    height: auto;
}

:root {
  --primary-color: #d2691e;
  --secondary-color: #2c3e50;
  --accent-color: #e67e22;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* FIX: Remove vertical padding to let nav-wrapper define height */
  padding: 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* DESKTOP HEIGHT: Your preferred 90px height */
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  /* DESKTOP SIZE: Your preferred 185px height */
  height: 185px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
  background-color: rgba(210, 105, 30, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #b8541a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* -------------------------------------- */
/* HERO SECTION CSS (For Full-Width Image) */
/* -------------------------------------- */

/* 1. The Parent Container (Crucial for positioning children) */
.hero {
  position: relative; /* Establishes a positioning context for absolute children */
  height: 70vh; /* Set a substantial height for the section */
  min-height: 500px;
  display: flex;
  align-items: center; /* Vertically centers the content */
  justify-content: center;
  text-align: center;
  color: var(--text-light); /* Ensures text is readable over the image */
  padding-bottom: 150px; /* Make space for the stats bar at the bottom */
}

/* 2. Full-bleed Image Container */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Puts the image at the back layer */
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This forces the image to cover the entire container without distortion */
  object-position: center; /* Ensures the most important part of the image is visible */
}

/* 3. Semi-transparent Overlay (Ensures text readability) */
/* 3. Semi-transparent Overlay (Ensures text readability) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darkens the image slightly and adds a strong bottom gradient */
  background-color: rgba(0, 0, 0, 0.4); /* Darkens the image slightly */
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 70%); /* Adds a strong bottom gradient */
  z-index: 2; /* Sits between the image (z-index: 1) and the content (z-index: 3) */
}

/* 4. Hero Content (Text, Titles, Buttons) */
.hero .container {
  position: relative;
  z-index: 3; /* Must be the highest z-index to be clickable and visible */
}

.hero-content {
    position: relative;
    z-index: 3; /* Ensure content is on top of overlay */
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
    line-height: 1.8;
}

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

/* 5. Hero Stats Bar (Positioned at the very bottom of the Hero) */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  z-index: 4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--text-light);
}


/* Section Styles */
.programs-section, .services-section, .impact-section {
  padding: 5rem 0;
}

.programs-section {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.program-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.program-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.program-duration {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.program-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.program-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.program-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card > p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-details {
  margin-bottom: 1.5rem;
}

.service-details h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 1rem 0 0.5rem;
}

.service-details ul {
  list-style: none;
  padding-left: 0;
}

.service-details li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.service-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Service Process */
.service-process {
  margin: 4rem 0;
  text-align: center;
}

.service-process h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.process-step h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #666;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--text-light);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 3rem;
}

.cta-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.cta-box .btn-outline {
  border-color: var(--text-light);
  color: var(--text-light);
}

.cta-box .btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.cta-box .btn-primary {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.cta-box .btn-primary:hover {
  background-color: var(--bg-light);
}

/* Impact Section */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.impact-stat {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.impact-stat:hover {
  transform: translateY(-5px);
}

.impact-stat h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.impact-stat h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.impact-stat p {
  color: #666;
}

.impact-story {
  background-color: var(--bg-light);
  padding: 3rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.impact-story h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.impact-story p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.impact-story h4 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 1.5rem 0 1rem;
}

.impact-story ul {
  list-style: none;
  padding-left: 0;
}

.impact-story li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.impact-story li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Social Feed */
.social-feed {
  text-align: center;
  padding: 3rem;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.social-feed h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.social-feed p {
  color: #666;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}




/* This media query block contains all fixes for tablet and larger phone sizes */
@media (max-width: 768px) {
    
  .logo img {
    height: 50px !important; /* Use !important to override 185px */
    width: auto;
  }

    /* Ensure nav bar shrinks correctly on mobile */
    .nav-wrapper {
        height: 70px !important; /* Reduces header bar height on mobile */
    justify-content: space-around; /* Distribute space evenly */
    padding: 0 15px; /* Add some side padding */
    }
    
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
    
  .hero-subtitle {
    font-size: 1rem;
  }
    
  .section-header h2 {
    font-size: 2rem;
  }
    
    /* FIX: Ensures all grids stack to a single column */
  .programs-grid,
  .services-grid,
    .impact-grid,
    .team-container,
  .content-grid,
    .sdg-grid,
    .impact-pillars-grid,
    .contact-info,
    .process-steps {
    grid-template-columns: 1fr;
  }
    
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
    
  .btn-lg {
    width: 100%;
    max-width: 300px;
  }
    
    /* Responsive adjustments from the original file */
    .page-header h1 {
    font-size: 2rem;
  }
  .content-grid.reverse {
    direction: ltr;
 s }
  .content-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .stat-item h3 {
    font-size: 2rem;
  }
  .impact-stat h3 {
    font-size: 2rem;
  }
}



/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Content Section */
.content-section {
  padding: 5rem 0;
}

.content-section.bg-light {
  background-color: var(--bg-light);
}

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

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.content-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* SDG Grid */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ------------------------------------------------ */
/* TEAM SECTION STYLES: 3-per-Row Square Grid  */
/* ------------------------------------------------ */
.team-section {
  padding: 60px 0; /* Add top/bottom spacing */
}

.team-container {
  /* Sets up the grid structure */
  display: grid;
  /* Creates 3 columns of equal size (1fr) */
  grid-template-columns: repeat(3, 1fr);  
  /* Spacing between the columns and rows */
  gap: 30px;  
  margin-top: 40px;
}

.team-member-card {
  text-align: center;
  padding: 20px;
}

/* Photo Wrapper ensures the image container is a perfect square */
.photo-wrapper {
  /* Forces the container to have a 1:1 aspect ratio (a perfect square) */
  aspect-ratio: 1 / 1;   
  overflow: hidden;   
  margin-bottom: 15px;
  border-radius: 50%; /* Optional: Makes the photos circular */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  /* Fills the entire container, cropping the image if necessary */
  object-fit: cover;  
  display: block;
}

.team-member-card h3 {
  margin: 5px 0;
  font-weight: 700;
  font-size: 1.2em;
}

.team-member-card p {
  color: #555; /* Slightly darker than main body text for roles */
  font-size: 0.95em;
  margin: 0;
}

/* ------------------------------------------------ */
/* MOBILE RESPONSIVENESS for Team Section     */
/* ------------------------------------------------ */
@media (max-width: 992px) {
  .team-container {
    /* On medium screens, switch to 2 members per row */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .team-container {
    /* On small mobile screens, switch to 1 member per row */
    grid-template-columns: 1fr;
  }
}

.sdg-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.sdg-card:hover {
  transform: translateY(-5px);
}

.sdg-card img {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.sdg-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.sdg-card p {
  color: #666;
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  text-align: center;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #666;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-card a:hover {
s  text-decoration: underline;
}

/* --- Impact Pillars for Visual Interest --- */
.impact-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.impact-pillar {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
}

.impact-pillar h3 {
  color: var(--primary-color, #007bff); /* Use your primary color variable */
  margin-top: 10px;
  font-size: 1.3em;
}

/* CSS for the embedded Google Form (Makes it responsive and full width) */
.google-form-embed iframe {
  width: 100%;
  height: 1250px;  
  border: 1px solid #ccc; /* Adds a subtle border to contain the form */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Add this new block to your styles.css */
.google-form-embed {
  /* Centres the block element (the iframe) horizontally */
  display: flex;
  justify-content: center;
  /* Optional: adds some margin above/below the form */
  margin: 20px 0;
}

/* -------------------------------------- */
/* HERO SECTION CSS (For Full-Width Image) */
/* -------------------------------------- */


/* 2. Full-bleed Image Container */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Puts the image at the back layer */
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* **This is the key:** It forces the image to cover the entire container without distortion, allowing it to be "extra large" */
  object-position: top; /* Ensures the most important part of the image is visible */
}

/* 3. Semi-transparent Overlay (Ensures text readability) */
/* REMOVED: Deleted the duplicate .hero-overlay block */

/* 4. Hero Content (Text, Titles, Buttons) */
.hero .container {
  position: relative;
  z-index: 3; /* Must be the highest z-index to be clickable and visible */
}

/* REMOVED: Deleted the duplicate .hero-title and .hero-subtitle blocks */

/* 5. Hero Stats Bar (Positioned at the very bottom of the Hero) */
/* REMOVED: Deleted the duplicate .hero-stats and .stats-grid blocks */