/* ===========================
   Hero Section
   =========================== */
.hero {
  background: #f9f9f9;
  padding: 80px 20px;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 50%;
  padding: 20px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #004d40;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  margin-right: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: #ffcc00;
  color: #004d40;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #004d40;
  color: #004d40;
}

.hero-visual {
  flex: 1 1 45%;
  padding: 20px;
  text-align: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-visual {
    flex: 1 1 100%;
  }
}

/* ===========================
   Why It Matters Section
   =========================== */
.why {
  background: #fff;
  padding: 60px 20px;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why h2 {
  font-size: 2rem;
  color: #004d40;
  margin-bottom: 40px;
}

.why-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-item {
  flex: 1 1 250px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.why-item i {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

.why-item h3 {
  font-size: 1.2rem;
  color: #004d40;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 1rem;
  color: #555;
}
.hero-visual img {
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-text .expanded {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #444;
  line-height: 1.5;
}
/* ====== Breakpoints ====== */

/* Portrait phones (max 480px) */
@media (max-width: 480px) {
   .hero, .hierarchy {
    padding: 20px 14px !important;
   }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    order: -1; /* image on top */
  }

  .hero-visual img {
    height:auto; /* smaller portrait height */
  }

  .hero-buttons a {
    display: block;
    width: 100%; /* full width buttons */
    margin: 10px 0;
  }
}

/* Landscape phones (481px–767px) */
@media (min-width: 481px) and (max-width: 767px) {
     .hero {
    padding: 20px 14px;
   }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    height: 320px; /* slightly taller for landscape */
  }

  .hero-buttons a {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
}

/* Tablets (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
     .hero {
    padding: 20px 14px;
   }
  .hero-container {
    flex-direction: row; /* keep two columns */
    align-items: center;
  }

  .hero-visual img {
    height: auto; /* medium height for tablets */
  }

  .hero-buttons a {
    display: inline-block;
    width: auto; /* side-by-side buttons */
    margin-right: 12px;
  }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
   
  .hero-container {
    flex-direction: row;
    align-items: center;
  }

  .hero-visual img {
    height: 360px; /* full hero height */
  }

  .hero-buttons a {
    display: inline-block;
    width: auto;
    margin-right: 12px;
  }
}
.hierarchy-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.step {
  flex: 1 1 200px;
  margin: 10px;
  padding: 20px;
  background: #f0f8f5;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: #004d40;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
}

.link svg {
  width: 40px;
  height: 40px;
  fill: #004d40;
  margin-bottom: 8px;
}

.link span {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.hierarchy {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.hierarchy h2 {
  font-size: 2rem;
  color: #004d40;
  margin-bottom: 20px;
}

.hierarchy p {
  max-width: 800px;
  margin: 0 auto 10px auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
  position: relative;
}

.link svg {
  width: 40px;
  height: 40px;
  fill: #004d40;
  margin-bottom: 8px;
}

.link span {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.connector {
  width: 24px;
  height: 2px;
 
  margin: 0 10px;
}
.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.link {
  flex: 1 1 16%;   /* fixed proportion: 6 items = ~16% each */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.link svg {
  width: 50px;
  height: 50px;
  fill: #004d40;
  margin-bottom: 8px;
}

.link span {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Tablet view */
@media (max-width: 992px) {
  .link {
    flex: 1 1 30%;   /* 2–3 per row */
    margin-bottom: 20px;
  }
}

/* Mobile view */
@media (max-width: 576px) {
  .link {
    flex: 1 1 48%;  /* stack vertically */
    margin-bottom: 20px;
  }
}
.visionary {
  background: #f0f8f5;
  padding: 60px 20px;
  text-align: center;
}

.visionary h2 {
  font-size: 2rem;
  color: #004d40;
  margin-bottom: 20px;
}

.visionary p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;
}
.tagline {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #004d40;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tagline em {
  font-style: italic;
  color: #00695c;
}
.program-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  margin: 30px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.program-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.column {
  flex: 1 1 33%;
  padding: 20px;
  text-align: center;
}

.column img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.column img:hover {
  transform: scale(1.05);
}

.column.text h3 {
  font-size: 1.4rem;
  color: #004d40;
  margin-bottom: 10px;
}

.column.text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.donate-btn {
  background: #004d40;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
  background: #00695c;
  transform: translateY(-2px);
}

.learn-more {
  display: inline-block;
  margin-top: 10px;
  color: #00695c;
  text-decoration: none;
  font-weight: 600;
}

.learn-more:hover {
  text-decoration: underline;
}
.column.impact ul {
  list-style: none;          /* remove default bullets */
  padding-left: 0;           /* reset default padding */
  margin: 0;                 /* clean spacing */
  text-align: left;          /* enforce left alignment */
}

.column.impact ul li {
  display: flex;             /* keeps emoji + text aligned */
  align-items: flex-start;   /* aligns emoji with first line of text */
  margin-bottom: 0.5em;      /* spacing between items */
  text-align: left;          /* ensures text stays left-aligned */
}

.column.impact ul li::before {
  content: "";               /* no extra bullet */
}
/* Tablet view */
@media (max-width: 992px) {
  .program-card {
    flex-direction: column;
  }
  .column {
    flex: 1 1 100%;
    padding: 15px;
  }
}

/* Mobile view */
@media (max-width: 576px) {
  .column.text h3 {
    font-size: 1.2rem;
  }
  .column.text p {
    font-size: 0.95rem;
  }
  .donate-btn {
    width: 100%;
  }
}

.column.text {
  flex: 1 1 40%;   /* slightly larger share than image/graphic */
  padding: 20px;
  text-align: left;
}

.column.text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333;
}

.column.image, .column.graphic {
  flex: 1 1 30%;   /* slightly smaller to give text more space */
}
.program-card {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  margin: 30px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.program-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.column {
  flex: 1 1 33%;
  padding: 20px;
  box-sizing: border-box;
}

.food .column.image img {
  width: 100%;
  height: 250px !important;       /* fixed height for consistency */
  object-fit: cover;   /* crop to fit nicely */
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.impact-description {
  text-align: left;
  margin-bottom: 0.5em;
  font-size: 0.95em; /* slightly smaller for subtlety */
  line-height: 1.4;  /* improves readability */
  color: #333;       /* keeps it consistent with body text */
}
.impact-description:last-of-type {
  margin-bottom: 1em;     /* slightly larger space before the bullet list */
}


.column.image img:hover {
  transform: scale(1.05);
}

.column.text h3 {
  font-size: 1.4rem;
  color: #004d40;
  margin-bottom: 10px;
}

.column.text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

.donate-btn {
  background: #004d40;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.donate-btn:hover {
  background: #00695c;
  transform: translateY(-2px);
}

.learn-more {
  display: inline-block;
  margin-top: 10px;
  color: #00695c;
  text-decoration: none;
  font-weight: 600;
}

.learn-more:hover {
  text-decoration: underline;
}

.column.impact ul {
  list-style: none;      /* remove default bullets */
  padding: 0;
  margin: 0;
}

.column.impact li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.column.impact li::before {
  margin-right: 8px;
}
.expanded {
  text-align: left;       /* ensures consistent alignment */
  margin-bottom: 0.45em;  /* small breathing space between paragraphs */
  font-size: 1em;         /* keeps it readable */
  line-height: 1.6;       /* improves readability, especially on mobile */
  color: #333;            /* neutral, accessible text color */
}
.expanded:last-of-type {
  margin-bottom: 1.25em;   /* extra space before the package cards */
}

.column.image h3 { display: none; }
.column.text h3 { display: block; }


/* Tablet view */
@media (max-width: 992px) {
  .column.image h3 {
    display: block;
    font-size: 1.2rem;
    color: #004d40;
    margin-bottom: 10px;
    text-align: left;

  }
  .column.text h3 {
    display: none;
  }
  .program-card {
    flex-wrap: wrap;
  }
  .column {
    flex: 1 1 100%;
    padding: 15px;
  }
  .food .column.image img {
    height: 200px;
  }
}

/* Mobile view */
@media (max-width: 576px) {
  .column.text h3 {
    font-size: 1.2rem;
  }
  .column.text p {
    font-size: 0.95rem;
  }
  .donate-btn {
    width: 100%;
  }
}
.column.text p.short-desc {
  font-style: italic;
  color: #555;
  margin-top: 10px;
  line-height: 1.6;
}
