/* Local components inherit SFERA's green surface and foreground tokens. */
.doctors-section {
  background: var(--forest);
  background-image: var(--gradient-green);
  color: var(--paper);
}
.doctors-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 42px;
}
.doctors-intro p {
  color: var(--on-forest);
  margin: 22px 0 0;
  max-width: 58ch;
}
.doctors-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.doctors-count {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--on-forest);
  margin-right: 12px;
  min-width: 62px;
}
.doctor-arrow {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-on-forest);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.doctor-arrow-prev .icon { transform: rotate(180deg); }
.doctor-play-icon { display: none; }
.doctor-autoplay[data-paused="true"] .doctor-pause-icon { display: none; }
.doctor-autoplay[data-paused="true"] .doctor-play-icon { display: block; }
.doctor-arrow[aria-disabled="true"], .doctor-arrow:disabled {
  color: #99bca5;
  border-color: #99bca5;
  cursor: default;
}
.doctor-arrow:focus-visible, .doctors-track:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}
.doctors-track {
  --doctor-gap: 28px;
  --doctor-width: calc((100% - var(--doctor-gap) * 2) / 3);
  display: flex;
  gap: var(--doctor-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  list-style: none;
  margin: 0;
  padding: 0;
}
.doctors-track::-webkit-scrollbar { display: none; }
.doctor-card {
  flex: 0 0 var(--doctor-width);
  min-width: 0;
  scroll-snap-align: start;
}
.doctor-photo {
  overflow: hidden;
  border-radius: 14px;
  background: var(--pale);
  aspect-ratio: 6 / 5;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform .65s var(--ease);
}
.doctor-info { padding-top: 24px; }
.doctor-info h3 {
  font-size: clamp(21px, 1.55vw, 25px);
  
  line-height: 1.3;
}
.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 4px;
  margin: 10px 0 17px;
  font-size: 14px;
  color: var(--on-forest);
}
.doctor-meta span:last-child { color: var(--on-forest); }
.doctor-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-forest);
  max-width: 43ch;
  margin: 0;
}
.doctors-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 23px;
  font-size: 12px;
  color: var(--on-forest);
}
.doctors-footer p { margin: 0; max-width: 78ch; }
.doctors-swipe { display: none; align-items: center; gap: 10px; white-space: nowrap; }
.doctors-swipe .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .doctor-arrow:not([aria-disabled="true"]):not(:disabled):hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--forest);
  }
  .doctor-card:hover .doctor-photo img { transform: scale(1.025); }
}
@media (max-width: 1100px) {
  .doctors-track {
    --doctor-gap: 24px;
    --doctor-width: calc((100% - var(--doctor-gap)) / 2);
  }
  .doctors-heading { gap: 24px; }
}
@media (max-width: 760px) {
  .doctors-heading { align-items: flex-start; flex-direction: column; gap: 25px; margin-bottom: 28px; }
  .doctors-intro p { font-size: 15px; margin-top: 19px; }
  .doctors-controls { width: 100%; }
  .doctors-count { margin-right: auto; }
  .doctor-arrow { width: 46px; height: 46px; }
  .doctors-track { --doctor-gap: 18px; --doctor-width: 88%; }
  /* Preserve the same gap/peek at the end so the last card snaps to its start. */
  .doctors-track::after { content: ""; flex: 0 0 calc(12% - var(--doctor-gap)); }
  .doctor-photo { aspect-ratio: 1 / 1; }
  .doctor-info { padding-top: 20px; }
  .doctor-info h3 { font-size: 22px; }
  .doctor-meta { column-gap: 12px; font-size: 13px; margin-bottom: 15px; }
  .doctor-description { font-size: 14px; }
  .doctors-footer { align-items: flex-start; flex-direction: column-reverse; gap: 17px; margin-top: 19px; }
  .doctors-swipe { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .doctor-photo img, .doctor-arrow { transition: none; }
  .doctor-card:hover .doctor-photo img { transform: none; }
}
