/* =====================================
   RESET & BASE
   - Normalizes spacing and box model
   - Sets default font stack and colors
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Include padding/border in element width/height */
}

html {
  scroll-behavior: smooth;
  /* Smooth anchor scrolling */
}

.body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  /* Prevent horizontal scroll on small devices */
}

/* A centered wrapper that constrains content width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================
   TYPOGRAPHY
   - Headings and paragraphs
===================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* =====================================
   BUTTONS
   - Base .btn + variants .btn-primary and .btn-outline
===================================== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #fff;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-outline {
  background: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
}

.btn-outline:hover {
  background: #4a90e2;
  color: #fff;
  transform: translateY(-3px);
}

/* =====================================
   HEADER & NAVBAR
   - Fixed top bar with brand and links
===================================== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  /* Frosted glass effect */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  /* Vertical spacing inside header */
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Space between logo and brand name */
}

.logo {
  width: 100px;
  height: 100px;

  background: #f0f0f0;
  /* Placeholder background */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

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

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  /* For the underline hover effect */
}

.nav-link:hover {
  color: #4a90e2;
}

.nav-link::after {
  /* Animated underline on hover */
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a90e2;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.donate-btn {
  /* Prominent CTA in the nav */
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Hamburger icon; shown via media queries on small screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* =====================================
   HERO SECTION (full viewport height)
===================================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  /* Contain background layers */
  padding-top: 80px;
  /* Prevent header overlap on very small screens */
}

.hero-background {
  /* Gradient background layer */
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-image: url("/images/banner.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  /* Semi-transparent overlay to improve text contrast */
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.682);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  /* Above background layers */
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 50;
  /* Animated in */
  animation: slideUp 2s ease 0.9s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 50;
  animation: slideUp 2s ease 1s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 70;
  animation: slideUp 1s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  opacity: 70;
  animation: slideUp 1s ease 1.1s forwards;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: #fff;
  margin: 10px auto;
  animation: bounce 2s infinite;
}

/* =====================================
   STATS SECTION (KPIs)
===================================== */
.stats-section {
  background: #f8f9fa;
  padding: 80px 0;
}

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

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* =====================================
   GENERIC SECTION HEADERS
===================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================
   ABOUT SECTION (two-column layout)
===================================== */
.about-section {
  padding: 10px;
}

.about-content {
  display: grid;
  /* grid-template-columns: 2fr 1fr;
     Wider text column */
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  text-align: justify;
  line-height: 1.8rem;
  color: #666;
  font-size: 1.2rem;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
}

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



  .about-image .image-placeholder {
    background: #f0f0f0;
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    background-image: url('/images/photo3.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* =====================================
   PROGRAMS SECTION (cards grid)
===================================== */
.programs-section {
  background: #f8f9fa;
  padding: 100px 0;
}

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

.program-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-10px);
}

.program-image .image-placeholder {
  background: #e9ecef;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.program-content {
  padding: 2rem;
}

.program-content h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.program-link {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.program-link:hover {
  color: #357abd;
}

/* =====================================
   IMPACT SECTION (stories + testimonial)
===================================== */
.impact-section {
  padding: 100px 0;
}

#impact-1 {
  background: url("/images/impacts/impact-1.webp");
}

#impact-2 {
  background: url("/images/impacts/impact-2.webp");
}

#impact-1,
#impact-2 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 160px;
}

.impact-stories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.story-card {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  /* flex-wrap: wrap; */
}

.story-image,
.image-placeholder {
  /* background: #e9ecef; */

  /* width: 250px; */
  /* Fixed width thumbnail */
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 8px;
  flex: 1;
}

.story-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content h3 {
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.story-content p {
  color: #393d42c0;
}

.impact-testimonial blockquote {
  font-size: 1.2rem;
  line-height: 1.8;
  font-style: italic;
  color: #2c3e50;
  background: #f8f9fa;
  padding: 2rem;
  border-left: 4px solid #4a90e2;
  border-radius: 8px;
}

.impact-testimonial cite {
  display: block;
  margin-top: 0.75rem;
  color: #666;
}

/* =====================================
   GET INVOLVED SECTION (options grid)
===================================== */
.get-involved-section {
  padding: 100px 0;
}

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

.involvement-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.involvement-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* =====================================
   CONTACT SECTION (info + form)
===================================== */

/* =====================================
   FOOTER
===================================== */
.footer {
  background-color: white;
  margin-top: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: larger;
}

.contact-content {
  background-color: white;
  padding: 10px;
  margin: 5px;
  font-size: larger;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socials {
  a {
    display: inline-block;
    gap: 10px;

    margin: 20px;
    font-size: larger;
    color: #333;
    font-size: larger;
  }

  a i {
    margin-right: 8px;
  }

  /* Optional colors per platform */
  .facebook i {
    color: #3b5998;
  }

  .instagram i {
    color: #e1306c;
  }

  .twitter i {
    color: #000000;
  }

  /* For X, black fits best */
  .youtube i {
    color: #be0909;
  }
}

.copy_right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  height: 150px;
  align-items: center;
  font-size: larger;
  text-decoration: none;
  color: white;
  background-color: rgb(41, 37, 37);
  font-size: 18px;
}

.copy_right a {
  color: #e9ecef;
}

/* =====================================
   RESPONSIVE ADJUSTMENTS
   - Stack layouts and show hamburger menu
===================================== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 880px) {
  /* Show hamburger and hide horizontal menu by default */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    display: none;
    /* hidden until opened */
  }

  .nav-menu.open {
    display: flex;
  }

  /* toggled by JS */

  .hero-title {
    font-size: 2.4rem;
  }

  .hero {
    padding-top: 96px;
  }

  @media (max-width: 750px) {
    .story-card {
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      min-width: none;
    }

    .story-image,
    .image-placeholder {
      width: 100%;
      height: auto;
    }

    .story-content h3 {
      text-align: left;
      font-size: 1.5rem;
    }

    .story-content p {
      text-align: justify;
    }
  }
}

/* Small phones */
@media (max-width: 480px) {
  .stat-number {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* OUR TEAM */

.team-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
}

.team-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-header h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #56608d 0%, #927bab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.team-header p {
  font-size: 1.15rem;
  color: #4a5568;
  max-width: 1200px;
  text-align: center;
  margin: auto;
  line-height: 1.8;
}

.category-section {
  margin-bottom: 60px;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 5px;
}

.table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
}

.employee-table thead {
  background: linear-gradient(135deg, #56608d 0%, #927bab 100%);
}

.employee-table thead th {
  color: white;
  padding: 20px 30px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.employee-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.employee-table tbody tr:last-child {
  border-bottom: none;
}

.employee-table tbody td {
  padding: 20px 30px;
  color: #4a5568;
  font-size: 1rem;
}

.employee-table tbody td:first-child {
  font-weight: 600;
  color: #2d3748;
}

.employee-table tbody td:last-child {
  color: #627084;
  font-style: italic;
}

@media (max-width: 768px) {
  .team-section {
    padding: 50px 4%;
  }

  .team-header h1 {
    font-size: 2rem;
  }

  .team-header p {
    font-size: 1rem;
  }

  .category-title {
    font-size: 1.5rem;
    padding-left: 15px;
  }

  .table-container {
    overflow-x: auto;
  }

  .employee-table thead th,
  .employee-table tbody td {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}
