/* professionals.css */

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

/* === Main Content === */
.professionals-list {
  margin: 4rem 0;
}
.professionals-list h2 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  position: relative;
  display: inline-block;
}
.professionals-list h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.fade-in.in-view .professionals-list h2::after {
  transform: scaleX(1);
}

.professionals-list p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}
.professionals-list ul {
  list-style: disc inside;
  margin: 0 0 1.5rem;
  color: #333;
}
.professionals-list ul li {
  margin-bottom: 0.75rem;
}

/* === Scroll-to-Top Button === */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
#scrollTopBtn.show {
  display: block;
  opacity: 0.8;
}
#scrollTopBtn:hover {
  opacity: 1;
}

/* === Responsive tweaks === */
@media (max-width: 600px) {
  .professional-hero {
    padding: 4rem 1rem;
  }
  .professional-hero .hero-overlay {
    width: 100%;
    padding: 1.5rem;
  }
  .professional-hero h1 {
    font-size: 2rem;
  }
  .professional-hero p {
    font-size: 1rem;
  }
}

/* ——— Two-column grid with a full-width first card ——— */
.professionals-list .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* First card spans both columns */
.professionals-list .services-grid > .service-card:first-child {
  grid-column: 1 / -1;
}

/* Collapse to one column on mobile */
@media (max-width: 600px) {
  .professionals-list .services-grid {
    grid-template-columns: 1fr;
  }
}
/* 3-column, 5-row grid for the Dietitian conditions list */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style-position: inside;
}
.conditions-grid li {
  /* ensure the bullet remains and items align nicely */
  margin: 0;
}

/* collapse to 2 columns on tablet, 1 on mobile */
@media (max-width: 900px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}
/* center the small banner images in service cards */
.service-card .card-img {
  display: block;
  padding-top: 1rem;
  margin: 1rem auto;
  max-width: 200px;    /* adjust as needed */
  height: auto;
}
