: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. Logos === */
.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 & 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%;
}
.about-location address {
  font-style: normal;
  line-height: 1.5;
  margin: 2rem 0;
  color: var(--primary);
  font-weight: 600;
}
.about-location address a.btn-primary {
  display: inline-block;
  margin-top: 2rem;
}

/* === 6. 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);
}
/* 6. Patient Feedback */
.about-feedback {
  margin: 4rem 0;
  text-align: center;      /* ← center all inline-level children (your h2 is inline-block) */
}

.about-feedback h2 {
  /* you can leave this as inline-block (inherited from .about-page h2) */
  /* but override its margin-bottom if you like: */
  margin-bottom: 1.5rem;
}

.feedback-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
  text-align: left;        /* ← force all paragraphs back to left */
}

.feedback-text p {
  margin-bottom: 1.5rem;
}


/* === 7. Facilities === */
.about-facilities {
  margin: 4rem 0;
  text-align: center;             /* center the h2 */
}

.about-facilities h2 {
  /* inline-block + parent text-align center = perfectly centered */
  margin-bottom: 1.5rem;
  position: relative;             /* keeps your underline animation */
}

.facilities-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
  text-align: left;               /* body text stays left-aligned */
}

.facilities-text p {
  margin-bottom: 1.5rem;
}

/* === 8. Privacy & Email Policy === */
.about-privacy {
  margin: 4rem 0;
  text-align: center;             /* center the h2 */
}

.about-privacy h2 {
  margin-bottom: 1.5rem;
  position: relative;             /* for the underline effect */
}

.privacy-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
  text-align: left;               /* keep policy text left-aligned */
}

/*  Patient Rights centering tweak  */
/* .about-rights .rights-text {
  text-align: center;
} */

.about-rights .patient-entitlements {
  display: inline-block;     /* shrink to fit the list */
  margin: 1rem auto;         /* auto-center the UL itself */
  padding-left: 1.25rem;     /* keep a little indent for bullets */
  text-align: left;          /* left-align the LI text inside */
  list-style-position: outside;
}

/*  Nested sub-lists indent slightly more  */
.about-rights .patient-entitlements li ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
  padding-left: 0;
}

/* Center the Patient Rights title */
.about-rights h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 1) Make the section itself center its inline content */
.about-rights {
  text-align: center;
}

/* 2) Override the <h2> to shrink-wrap and sit in the center */
.about-rights h2 {
  display: table;       /* shrink-wrap to its text width */
  margin: 0 auto 1rem;  /* auto left/right to center; 1rem bottom spacing */
}

.rights-text p{
  text-align: center;
}

/* Center only the H2 heading */
.about-rights h2 {
  display: table;       /* shrink-wrap to its content */
  margin: 0 auto 1rem;  /* auto center horizontally, 1rem below */
}

.rights-text {
  text-align: center;
}

.about-Responsibilities {
  margin: 4rem 0;
  text-align: center;             /* center the h2 */
}

.about-Responsibilities h2 {
  margin-bottom: 1.5rem;
  position: relative;             /* for the underline effect */
}

.Responsibilities-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
  text-align: left;               /* keep policy text left-aligned */
}
