/* =========================================================
   Doctors / Medical Team Page
   Standalone page styling inspired by Enfold clean team layout.
   ========================================================= */

.doctor-page-main,
.doctor-page-main * {
  box-sizing: border-box;
}

.doctor-page-main {
  color: #16323f;
  background:
    radial-gradient(circle at 10% 8%, rgba(19, 183, 165, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 42%, #eef9fb 100%);
  overflow: hidden;
}

.doctor-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.doctor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1px solid rgba(8, 120, 164, 0.14);
  border-radius: 999px;
  color: #075b82;
  background: rgba(232, 248, 251, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.doctor-page-hero {
  position: relative;
  padding: 170px 24px 104px;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 22%, rgba(19,183,165,.18), transparent 32%),
    radial-gradient(circle at 80% 14%, rgba(8,120,164,.18), transparent 34%),
    linear-gradient(180deg, #f8fdff 0%, #eef9fb 100%);
}

.doctor-hero-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  opacity: .75;
}

.doctor-hero-bg-a {
  width: 320px;
  height: 320px;
  left: 5%;
  top: 20%;
  background: rgba(19,183,165,.20);
}

.doctor-hero-bg-b {
  width: 420px;
  height: 420px;
  right: 4%;
  top: 14%;
  background: rgba(8,120,164,.16);
}

.doctor-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 38px;
  align-items: center;
}

.doctor-hero-copy h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: .92;
  letter-spacing: -.078em;
  font-weight: 900;
}

.doctor-hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #637986;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
}

.doctor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doctor-sitemap-card {
  position: relative;
  padding: 28px 28px 28px 82px;
  border: 1px solid rgba(8,120,164,.10);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,252,254,.90)),
    radial-gradient(circle at 90% 10%, rgba(19,183,165,.16), transparent 28%);
  box-shadow:
    0 36px 100px rgba(13,86,117,.13),
    inset 0 1px 0 rgba(255,255,255,.90);
  overflow: hidden;
}

.doctor-map-line {
  position: absolute;
  left: 46px;
  top: 56px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(180deg, #0878a4, rgba(19,183,165,.2));
}

.doctor-map-root,
.doctor-map-item,
.doctor-map-sub {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 0 18px;
  border: 1px solid rgba(8,120,164,.07);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(13,86,117,.07);
  color: #16323f;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.doctor-map-root {
  width: fit-content;
  min-width: 260px;
  margin-left: -34px;
  color: #321c1c;
  background: linear-gradient(135deg, #ffb4b4, #ffd0c8);
}

.doctor-map-root::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  height: 2px;
  background: #0878a4;
}

.doctor-map-item span {
  position: absolute;
  left: -33px;
  width: 33px;
  height: 2px;
  background: rgba(8,120,164,.42);
}

.doctor-map-branch {
  position: relative;
  margin: 0 0 12px 44px;
  padding-left: 42px;
}

.doctor-map-branch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -12px;
  bottom: 26px;
  width: 2px;
  background: rgba(8,120,164,.32);
}

.doctor-map-sub span {
  position: absolute;
  left: -40px;
  width: 40px;
  height: 2px;
  background: rgba(8,120,164,.42);
}

.doctor-map-item:hover,
.doctor-map-sub:hover {
  transform: translateX(10px);
  box-shadow: 0 16px 42px rgba(13,86,117,.13);
}

.doctor-find-section,
.doctor-listing-section,
.doctor-detail-section,
.rehab-team-section {
  padding: 108px 24px;
}

.doctor-find-section,
.rehab-team-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(8,120,164,.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
}

.doctor-listing-section {
  background: #ffffff;
}

.doctor-detail-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(19,183,165,.12), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.doctor-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.doctor-section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.doctor-section-heading p {
  color: #637986;
  line-height: 1.7;
  margin: 0;
}

.doctor-search-board {
  display: grid;
  grid-template-columns: 1fr 240px 210px auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(8,120,164,.10);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(13,86,117,.10);
  backdrop-filter: blur(14px);
}

.doctor-search-board input,
.doctor-search-board select {
  min-height: 56px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(8,120,164,.10);
  border-radius: 18px;
  color: #16323f;
  background: #fff;
  font-weight: 750;
  outline: none;
}

.doctor-search-board button,
.doctor-appointment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0878a4, #13b7a5);
  box-shadow: 0 18px 42px rgba(8,120,164,.22);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.doctor-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  border: 1px solid rgba(8,120,164,.08);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 38px 120px rgba(13,86,117,.12);
  background: #fff;
}

.doctor-profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 32px;
  border-right: 1px solid rgba(8,120,164,.08);
  border-bottom: 1px solid rgba(8,120,164,.08);
  overflow: hidden;
  background: #fff;
}

.doctor-profile-card.text-card {
  align-items: center;
  text-align: center;
}

.doctor-profile-card.photo-card {
  padding: 0;
  background: #f3f7f9;
}

.doctor-profile-card.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .96;
  transform: scale(1.02);
  transition: transform .35s ease, filter .35s ease;
}

.doctor-profile-card.photo-card:hover img {
  transform: scale(1.07);
  filter: grayscale(.15);
}

.doctor-profile-card.stat-card-doctor {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #f9fdff, #eef9fb);
}

.stat-card-doctor strong {
  display: block;
  color: #0878a4;
  font-size: 54px;
  line-height: .9;
  font-weight: 900;
}

.stat-card-doctor span {
  margin-top: 10px;
  color: #637986;
  font-weight: 750;
}

.doctor-role {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0878a4;
  font-size: 13px;
  font-weight: 900;
}

.doctor-profile-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.doctor-profile-card p {
  margin: 0 0 18px;
  color: #8a9aa3;
  line-height: 1.62;
  font-size: 14px;
}

.doctor-profile-card a {
  color: #0878a4;
  font-weight: 900;
  text-decoration: none;
}

.doctor-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: stretch;
}

.doctor-detail-photo {
  min-height: 620px;
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 38px 120px rgba(13,86,117,.14);
  overflow: hidden;
}

.doctor-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.9);
}

.doctor-detail-copy {
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(8,120,164,.10);
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,250,253,.92));
  box-shadow: 0 38px 120px rgba(13,86,117,.12);
}

.doctor-detail-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.058em;
}

.doctor-detail-lead {
  margin: 0 0 28px;
  color: #637986;
  line-height: 1.75;
  font-size: 17px;
}

.doctor-detail-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.doctor-detail-list div {
  padding: 18px;
  border: 1px solid rgba(8,120,164,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(13,86,117,.07);
}

.doctor-detail-list b {
  display: block;
  margin-bottom: 6px;
  color: #16323f;
}

.doctor-detail-list span {
  color: #637986;
  line-height: 1.55;
}

.rehab-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rehab-team-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(8,120,164,.10);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,250,253,.92));
  box-shadow: 0 24px 70px rgba(13,86,117,.11);
  overflow: hidden;
}

.rehab-team-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(135deg, #0878a4, #13b7a5);
  box-shadow: 0 16px 38px rgba(8,120,164,.24);
  font-weight: 950;
}

.rehab-team-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -.035em;
}

.rehab-team-card p {
  margin: 0;
  color: #637986;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .doctor-hero-grid,
  .doctor-detail-grid {
    grid-template-columns: 1fr;
  }

  .doctor-search-board {
    grid-template-columns: 1fr 1fr;
  }

  .doctor-search-board button {
    grid-column: 1 / -1;
  }

  .doctor-mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rehab-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .doctor-container {
    width: calc(100% - 36px);
  }

  .doctor-page-hero {
    padding: 150px 18px 72px;
  }

  .doctor-hero-copy h1 {
    font-size: 48px;
  }

  .doctor-sitemap-card {
    padding: 22px 18px 22px 58px;
  }

  .doctor-map-line {
    left: 33px;
  }

  .doctor-map-root {
    min-width: auto;
    margin-left: -20px;
  }

  .doctor-map-root::before {
    left: -24px;
    width: 24px;
  }

  .doctor-map-item span {
    left: -24px;
    width: 24px;
  }

  .doctor-map-branch {
    margin-left: 10px;
    padding-left: 32px;
  }

  .doctor-search-board,
  .doctor-section-heading,
  .doctor-mosaic-grid,
  .doctor-detail-grid,
  .rehab-team-grid {
    grid-template-columns: 1fr;
  }

  .doctor-mosaic-grid {
    grid-auto-rows: auto;
    border-radius: 32px;
  }

  .doctor-profile-card {
    min-height: 260px;
  }

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

  .doctor-detail-photo {
    min-height: 420px;
  }
}


/* =========================================================
   V23 Doctors Hero Motion Visual
   Replaces sitemap block with an animated doctor visual card.
   ========================================================= */

.doctor-hero-motion-card {
  position: relative;
  min-height: 620px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.80);
  border-radius: 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.78), transparent 26%),
    linear-gradient(145deg, rgba(8,120,164,.96), rgba(19,183,165,.88));
  box-shadow:
    0 52px 140px rgba(8,61,82,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.doctor-hero-motion-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 38px;
  pointer-events: none;
}

.doctor-hero-motion-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(255,255,255,.18), transparent, rgba(19,183,165,.24), transparent);
  animation: doctorHeroRotate 18s linear infinite;
  pointer-events: none;
  opacity: .7;
}

@keyframes doctorHeroRotate {
  to {
    transform: rotate(360deg);
  }
}

.doctor-hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  pointer-events: none;
  animation: doctorPulse 3.6s ease-out infinite;
}

.orbit-one {
  width: 150px;
  height: 150px;
  right: 12%;
  top: 14%;
}

.orbit-two {
  width: 108px;
  height: 108px;
  left: 10%;
  bottom: 12%;
  animation-delay: 1.2s;
}

@keyframes doctorPulse {
  0% {
    transform: scale(.76);
    opacity: .72;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.doctor-visual-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 178px;
  gap: 16px;
  height: 100%;
}

.doctor-visual-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 28px;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 20px 54px rgba(4,42,58,.12);
}

.doctor-visual-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 900;
}

.doctor-visual-tile p,
.doctor-visual-tile span {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 650;
}

.doctor-visual-photo {
  padding: 0;
  background: rgba(255,255,255,.92);
}

.doctor-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.86);
  opacity: .98;
  transform: scale(1.02);
  transition: transform .45s ease, filter .45s ease;
}

.doctor-visual-photo:hover img {
  transform: scale(1.08);
  filter: grayscale(.1);
}

.doctor-visual-photo.large {
  grid-row: span 2;
}

.doctor-visual-info.soft {
  background: rgba(255,255,255,.20);
}

.doctor-visual-stat {
  align-items: center;
  text-align: center;
}

.doctor-visual-stat strong {
  margin: 0 0 8px;
  font-size: 58px;
  line-height: .9;
}

.doctor-visual-cta {
  justify-content: center;
  background: rgba(255,255,255,.96);
}

.doctor-visual-cta strong {
  color: #0878a4;
  font-size: 34px;
}

.doctor-visual-cta span {
  color: #075b82;
  font-weight: 900;
}

.doctor-floating-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(4,42,58,.14);
  font-size: 13px;
  font-weight: 900;
  animation: doctorFloat 5.4s ease-in-out infinite;
}

.doctor-floating-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.14);
}

.chip-a {
  left: 38px;
  top: 36px;
}

.chip-b {
  right: 40px;
  top: 46%;
  animation-delay: 1.2s;
}

.chip-c {
  left: 42px;
  bottom: 36px;
  animation-delay: 2.2s;
}

@keyframes doctorFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

/* Rebalance doctor hero grid after replacing the sitemap card */
.doctor-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
}

@media (max-width: 1100px) {
  .doctor-hero-motion-card {
    min-height: 620px;
  }

  .doctor-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .doctor-hero-motion-card {
    min-height: auto;
    padding: 22px;
    border-radius: 34px;
  }

  .doctor-hero-motion-card::before {
    inset: 14px;
    border-radius: 24px;
  }

  .doctor-visual-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(170px, auto);
  }

  .doctor-visual-photo.large {
    grid-row: auto;
    min-height: 280px;
  }

  .doctor-floating-chip {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 8px 8px 0 0;
  }

  .chip-a,
  .chip-b,
  .chip-c {
    display: inline-flex;
  }
}
