/* healthcare.css */

/* 0. CSS Variables (if not already in style.css) */
:root {
  --primary:       #198754;
  --primary-hover: #146c43;
  --card-bg:       #fff;
}

/* 1. Full-page green background & wrapper */
html, body {
  margin: 0;
  padding: 0;
}
main.about-page {
  background: var(--primary) !important;
  padding: 2rem 0 6rem;
}

/* 2. White card container */
.content-box {
  background: var(--card-bg) !important;
  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;
}

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

/* 4. Hero section */
.services-hero {
  background: url('../images/healthcare-hero.jpg') center/cover no-repeat;
  background-size: cover;
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}
.services-hero .hero-overlay {
  background: rgba(0,0,0,0.5);
  display: inline-block;
  padding: 2rem;
  border-radius: 0.5rem;
}
.services-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}
.services-hero p {
  font-size: 1.2rem;
}

/* 5. 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);
}

/* 6. Section headings & underline */
.healthcare-section {
  margin: 4rem 0;
  text-align: left;
}
.healthcare-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  color: var(--primary);
}
.healthcare-section 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;
}
.healthcare-section.animate-underline h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* 7. Body text & lists */
.healthcare-section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #333;
}
.healthcare-section ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  list-style: disc outside;
  color: #333;
}
.healthcare-section ul li {
  margin-bottom: 0.75rem;
}

/* 8. Links */
.healthcare-section ul li a {
  color: var(--primary);
  text-decoration: underline;
}
.healthcare-section ul li a:hover {
  color: var(--primary-hover);
}

/* 9. Responsive tweaks */
@media (max-width: 600px) {
  .content-box {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1rem;
    border-radius: 0;
  }
  .services-hero {
    padding: 4rem 1rem;
  }
  .services-hero .hero-overlay {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    border-radius: 0.25rem;
  }
  .services-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .services-hero p {
    font-size: 1rem;
  }
  .healthcare-section {
    margin: 2rem 0;
  }
  .healthcare-section ul {
    margin-left: 1rem;
  }
}

/* ———————————————— */
/* Keeping Everyone Safe */
/* ———————————————— */


.wrap-img {
  float: right;
  width: 500px;
  max-width: 40%;
  margin: 0 0 1rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* On small screens, stack the image above text */
@media (max-width: 600px) {
  .wrap-img {
    float: none;
    display: block;
    width: 100%;
    max-width: none;
    margin: 1rem auto;
  }
}


/* Inclusive Healthcare: flag icons */
.flag-icons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}
.flag-icons img {
  width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .flag-icons {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .flag-icons img {
    width: 40%;
  }
}
