/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
    display: flex;          /* Makes body a flex container */
  flex-direction: column; /* Stack content vertically */
  min-height: 100vh;      /* Ensure body fills the viewport */
  font-family: 'Poppins', sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Container & Section ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.section {
  padding: 40px 0;
}

/* ===== Navbar ===== */
.navbar {
  background: #0b5a3f;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo img {
  width: 45px;
  height: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links li a,
.nav-links li a:visited {
  color: #fff;   /* default white text */
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
  padding: 6px 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #f0a500; /* highlight color */
}

/* hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 6px;
}

/* ===== Hero (index) ===== */
.hero {
  background: white url('img/hero-bg.jpg') center/cover no-repeat;
  color: #355E3B;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
   position: relative;
  z-index: 1;
  min-height: 60vh;

  /* Hero background zoom animation for all devices */
  animation: heroZoom 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 5; /* ensures text is above any accidental overlap */
}

.hero .overlay {
  z-index: 1;
}

.hero .hero-logo {
  max-width: 120px;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: 32px;
  color: #0b5a3f;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 18px;
  color: #355E3B;
  margin-top: 0;
}

.hero-image {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  position: relative;
  z-index: 0; /* Always under hero section */
  padding: 0;             /* remove extra padding */
  background: transparent; /* let image show fully */
  text-align: center;      /* center the image */
  flex-shrink: 0; /* don’t let it shrink */
  margin-bottom: 40px;
  margin-top: 20px;
}

.under-hero-img {
  display: block;
  width: 100%;          /* stretch across container */
  max-width: 900px;     /* don’t let it be too wide */
  height: auto;         /* keep proportions */
  max-height: 400px;    /* limit height */
  margin: 0px auto;    /* center + spacing below hero */
  margin-top: 10px;  /* tighten spacing on mobile */
}


/* ===== Page hero (About / section headers) ===== */
.page-hero {
  text-align: center;
    margin-bottom: 0;       /* no outside spacing */
  padding: 40px 0 20px;   /* top/bottom padding balanced */
}

.page-hero h1 {
  margin-bottom: 0;       /* kill default h1 margin */
}

/* ===== About Section ===== */
.about {
  padding: 20px 0;
  background: #fff;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  color: #0b5a3f;
  margin-bottom: 8px;
}

.about p {
  max-width: 900px;
  margin: 10px auto 0;
  text-align: justify;
  line-height: 1.6;
}

.about .btn {
  display: inline-block;
  margin-top: 16px;
  background: #f0a500;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
}

/* Founder biography */
.founder {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 0 10px;
}

.founder img {
  width: 220px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.founder-content {
  max-width: 760px;
}

.founder-bio {
  max-width: 900px;
  margin: 24px auto 0;
  line-height: 1.7;
  padding: 0 6px;
}

.founder-bio h3 {
  margin-bottom: 12px;
  color: #18c3a3;
}

/* ===== Mission & Vision Section ===== */
.mission {
  padding: 60px 0;
  background: #f9f9f9;
}

.mission h2 {
  text-align: center;
  font-size: 28px;
  color: #0b5a3f;
  margin-bottom: 24px;
}

.mission-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.mission-box {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  flex: 1 1 320px;
  max-width: 500px;
}

.mission-box h3 {
  color: #f0a500;
  margin-bottom: 12px;
}

/* ===== Core Values Section ===== */
.core-values {
  padding: 35px 15px;
  background: #f9f9f9;
  text-align: center;
}

.core-values h2 {
  font-size: 30px;
  color: #0b5a3f;
  margin-bottom: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.value-card h3 { color: #0b5a3f; margin-bottom: 10px; }
.value-card p { color: #555; line-height: 1.55; }

/* ===== Expectations / Work Items ===== */
.expectations {
  padding: 60px 0;
}

.expectations h2 {
  text-align: center;
  color: #0b5a3f;
  margin-bottom: 12px;
}

.work-item {
  background: #fff;
  border-left: 5px solid #18c3a3;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* ===== Team Section ===== */
.team {
  padding: 60px 0;
  background: #f9f9f9;
}

.team h2 {
  text-align: center;
  font-size: 28px;
  color: #0b5a3f;
  margin-bottom: 20px;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center !important;
  text-align: center;
}

.member {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  width: 240px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 4px solid #f0a500;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Contact ===== */
.contact {
  padding: 60px 0;
  text-align: center;
}

.contact h2 {
  font-size: 28px;
  color: #0b5a3f;
  margin-bottom: 12px;
}

.cta-inline {
  display: flex;
  justify-content: center;
  gap: 30px;            /* space between items */
  margin: 30px 0;
  flex-wrap: wrap;      /* ensures they stack if screen is too small */
}

.cta-inline span {
  font-size: 18px;
  font-weight: 600;
  color: #0b5a3f;
  position: relative;
  padding-bottom: 4px;
  cursor: default;
}

/* subtle underline on hover */
.cta-inline span:hover {
  color: #f0a500;
  border-bottom: 2px solid #f0a500;
}


/* ===== Images (global) ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Headings color system ===== */
h1, h2 { color: #0b5a3f; }
h3 { color: #18c3a3; }
h4, h5, h6 { color: #0b5a3f; }

/* ===== Footer fix ===== */
footer {
text-align: center;
  margin-top: auto;   /* Pushes footer to the bottom */
  padding: 20px 0;
  background: #0b5a3f;  /* Optional: match your navbar/footer color */
  color: #fff;           /* Optional: text color */
}

.hero h1 {
  font-size: 32px;  /* desktop size */
  color: #0b5a3f;
  margin-bottom: 8px;
  line-height: 1.2; /* optional */
}

/* ===== Hero Animations ===== */
.hero-content {
  animation: floatUp 3s ease-out forwards;
}

.animate-hero {
  animation: fadeIn 1.2s ease-in-out forwards;
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.6s ease forwards;
}

.fade-in-up:nth-child(2) { animation-delay: 0.6s; }
.fade-in-up:nth-child(3) { animation-delay: 1s; }

/* ===== Keyframes ===== */
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  0%, 100% { background-size: 100%; }
  50% { background-size: 110%; }
}



/* ===== Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Navbar */
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 58px;
    right: 12px;
    background: #0b5a3f;
    flex-direction: column;
    width: 220px;
    padding: 14px;
    border-radius: 8px;
    display: none;
    box-shadow: 0 6px rgba(0,0,0,0.15);
  }
  .nav-links.active { display: flex; }

  /* Hero */
  .hero {
    padding: 40px 14px 0;  /* tighten bottom padding */
    margin-bottom: 0;
  }
  .hero h1 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .hero .tagline {
    font-size: 15px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.1;
  }
  .hero-title .mobile-break {
    display: block;
  }
  .hero-image {
    margin-top: 10px;
    margin-bottom: 0;
  }

  /* Under-hero image */
  .under-hero-img {
    margin-top: 0;
    margin-bottom: 10px;
    max-height: 200px;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Page hero (About, Mission, etc.) */
  .page-hero {
    margin-bottom: 0;
    padding: 20px 0 10px;
  }
  .page-hero h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
  }

  /* Founder bio */
  .founder-bio {
    padding: 20px 12px;
    margin-top: 20px;
  }
  .founder-bio p {
    margin-bottom: 14px;
  }

  /* Organogram branches */
  .org-branches {
    flex-direction: column;
    align-items: center;
  }

  .organogram .branches::before {
    display: none;
  }
  .organogram .center::after {
    height: 20px;
  }
}

/* ===== Core Values Page ===== */
.core-values {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.core-values h2 {
  font-size: 30px;
  color: #0b5a3f;
  margin-bottom: 30px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  color: #0b5a3f;
  margin-bottom: 10px;
}

.value-card p {
  color: #555;
  line-height: 1.55;
}

/* ===== Programs Page (Organogram Style) ===== */
.organogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.org-box {
  background: #0b5a3f;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  margin: 10px;
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.org-box.main {
  font-size: 20px;
  font-weight: bold;
  background: #f0a500;
  color: #fff;
}

.org-branches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.org-branches .org-box {
  flex: 1 1 200px;
  margin: 15px;
}


/* ===== Programs Page (Organogram Style) ===== */
.programs {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

.programs h2 {
  font-size: 30px;
  color: #0b5a3f;
  margin-bottom: 40px;
}

/* Organogram wrapper */
.organogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.organogram .center {
  margin-bottom: 40px;
  position: relative;
}

/* Branches container */
.organogram .branches {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}

/* Line connecting center to branches */
.organogram .center::after {
  content: "";
  width: 2px;
  height: 40px;
  background: #0b5a3f;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

/* Line under branches */
.organogram .branches::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0b5a3f;
}

/* Each program box */
.program-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .3s ease;
  text-align: center;
  width: 220px;
}

.program-item:hover {
  transform: translateY(-6px);
}

.program-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 12px;
}

.program-item h3 {
  font-size: 18px;
  color: #0b5a3f;
}

