/* ============================================================
   ASTER CLINICS KSA - Doctors Sections
   ============================================================ */

.section-doctors {
  padding: 64px 0;
  background:
    linear-gradient(180deg, rgba(232, 240, 251, 0.72), rgba(255, 255, 255, 0.96)),
    var(--bg-light);
  overflow: hidden;
}

.doctors-section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.doctors-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(14, 180, 141, 0.28);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--aster-teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.doctor-branch-panel {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(19, 77, 146, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  /* box-shadow: 0 18px 44px rgba(19, 77, 146, 0.08); */
  box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.12),0 0.125rem 0.25rem rgba(0, 0, 0, 0.14);
}

.doctor-branch-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--aster-teal);
}

.doctor-branch-munsiyah::before {
  background: var(--aster-blue);
}

[dir="rtl"] .doctor-branch-panel::before {
  right: 0;
  left: auto;
}

.doctor-branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.doctor-branch-label {
  margin: 0 0 0.2rem;
  color: var(--aster-teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.doctor-branch-munsiyah .doctor-branch-label {
  color: var(--aster-blue);
}

.doctor-branch-head h3 {
  margin: 0;
  color: var(--aster-blue);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}

.doctor-slider-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.doctor-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--aster-blue);
  font-size: 1.1rem;
  transition: var(--transition);
}

.doctor-nav:hover {
  border-color: var(--aster-teal);
  background: var(--aster-teal);
  color: #fff;
  transform: translateY(-1px);
}

.doctor-swiper {
  overflow: hidden;
}

.doctor-swiper .swiper-slide {
  height: auto;
}

.doctor-card {
  height: 100%;
  min-height: 348px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 230, 0.95);
  border-radius: 4px;
  background: #fff;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
    cursor: pointer;
}

.doctor-card:hover {
  border-color: rgba(14, 180, 141, 0.55);
  box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.12),0 0.125rem 0.25rem rgba(0, 0, 0, 0.14);
  transform: translateY(-4px);
}

.doctor-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--aster-blue-light);
  overflow: hidden;
}

.doctor-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(19, 77, 146, 0), rgba(19, 77, 146, 0.12));
  pointer-events: none;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
}

.doctor-card h4 {
  margin: 0 0 0.45rem;
  color: var(--aster-blue);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.doctor-specialty {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.doctor-specialty i {
  margin-top: 0.15rem;
  color: var(--aster-teal);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.doctor-branch-munsiyah .doctor-specialty i {
  color: var(--aster-blue);
}

[dir="rtl"] .doctor-card,
[dir="rtl"] .doctor-branch-head {
  text-align: right;
}

[dir="rtl"] .doctor-specialty {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
html[dir="rtl"] .doctor-nav i {
    display: inline-block;
    transform: rotate(180deg);
}
@media (max-width: 767.98px) {
  .section-doctors {
    padding: 44px 0;
  }

  .doctor-branch-panel {
    padding: 1rem;
  }

  .doctor-branch-head {
    align-items: flex-start;
  }

  .doctor-nav {
    width: 38px;
    height: 38px;
  }

  .doctor-card {
    min-height: 320px;
  }
}

@media (max-width: 420px) {
  .doctor-branch-head {
    flex-direction: column;
  }
}
