:root {
  --primary:       #198754;
  --primary-hover: #146c43;
  --card-bg:       #fff;      /* white content box */
}

/* === Wrapper to center content and show green sidebars === */
.about-page {
  background: var(--primary);
  padding: 2rem 0 6rem;       /* extra bottom padding for green strip */
}

/* === White content box === */
.content-box {
  background: var(--card-bg);
  width: 98%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 4rem;
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === 1. Hero === */
.about-hero {
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  position: relative;
  color: #fff;
  text-align: center;
}
.hero-overlay {
  background: rgba(0,0,0,0.5);
  display: inline-block;
  padding: 2rem;
  border-radius: 0.5rem;
}
.about-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}
.about-hero p {
  font-size: 1.2rem;
}

/* === 2. Our Story === */
.about-story {
  text-align: center;
  margin: 4rem 0;
}
.story-text {
  max-width: 800px;
  margin: 0 auto;
}
.story-image {
  display: none;
}
.story-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

/* === 3. Our Values === */
.about-values {
  margin: 4rem 0;
  text-align: center;
}
.about-values h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
}
.value-card {
  background: #fff;
  border-radius: .5rem;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.value-card:hover {
  transform: translateY(-5px);
}
.value-card img {
  width: 48px;
  margin-bottom: 1rem;
}
.value-card h3 {
  color: var(--primary);
  margin-bottom: .5rem;
}

/* === 4. Accreditation & Affiliations === */
.about-logos {
  margin: 4rem 0;
  text-align: center;
}
.about-logos h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.logos-row img {
  max-height: 60px;
  opacity: 0.8;
}
.logo-caption {
  margin-top: .5rem;
  font-size: .95rem;
  color: var(--primary);
  text-align: center;
  font-weight: 600;
}

/* === 5. Location & Contact CTA === */
.about-location {
  margin: 4rem 0;
  text-align: center;
}
.about-location h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 3rem;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
}
/* <--- Force the address text to pure black: ---*/
.about-location address {
  font-style: normal;
  line-height: 1.5;
  margin: 2rem 0;
  color: #000 !important;
  font-weight: 600;
}
.about-location address a.btn-primary {
  display: inline-block;
  margin-top: 2rem;
}

/* === Pill-shaped CTA buttons === */
.about-cta {
  text-align: center;
  margin: 4rem 0;
}
.about-cta .btn-primary,
.about-location .btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: .75rem 2.5rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.about-cta .btn-primary:hover,
.about-location .btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* === Responsive tweaks === */
@media (max-width: 600px) {
  .content-box {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1rem;
    border-radius: 0;
  }
  .about-hero {
    padding: 4rem 1rem;
  }
  .hero-overlay {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    border-radius: .25rem;
  }
  .about-hero h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
  }
  .about-hero p {
    font-size: 1rem;
  }
  .values-grid {
    gap: 1rem;
  }
  .about-location .map-embed {
    margin-bottom: 2rem;
  }
  .about-location address {
    margin: 1.5rem 0;
  }
  .about-location .btn-primary {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
  }
  .about-cta {
    margin-top: 2rem;
  }
  .about-cta .btn-primary {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
  }
}

/* === Fade-in utility === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Scroll-triggered underline on <h2> === */
.about-page h2 {
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
  color: var(--primary);
}
.about-page h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.2s ease-out;
}
.about-page h2.animate-underline::after {
  transform: translateX(-50%) scaleX(1);
}
