/* =========================================
   Doctor profile page
   Scope: .doctor-profile
   ========================================= */

.doctor-profile {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--text, #111827);
}

/* Hero */
.doctor-profile-hero {
  padding: 28px 0 42px;
}

.doctor-profile-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.doctor-profile-photo-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: var(--shadow, 0 10px 25px rgba(2, 8, 23, 0.08));
}

.doctor-profile-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.08), transparent 45%);
  pointer-events: none;
}

.doctor-profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.doctor-profile-intro h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text, #111827);
}

.doctor-profile-role {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark, #155e75);
}

.doctor-profile-lead {
  max-width: 66ch;
  margin-bottom: 1.2rem;
  color: var(--muted, #4b5563);
  font-size: 1.05rem;
  line-height: 1.75;
}

.doctor-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 1.35rem;
}

.doctor-profile-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(79, 179, 191, 0.28);
  background: rgba(79, 179, 191, 0.08);
  color: var(--primary-dark, #155e75);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Sections */
.doctor-profile-section {
  padding-left: 0;
  padding-right: 0;
}

.doctor-profile-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.doctor-profile-main-card,
.doctor-profile-info-card,
.doctor-profile-service-card,
.doctor-profile-check-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  box-shadow: var(--shadow, 0 10px 25px rgba(2, 8, 23, 0.08));
}

.doctor-profile-main-card {
  padding: 1.35rem;
}

.doctor-profile-main-card p {
  margin-top: 0;
  color: var(--muted, #4b5563);
  line-height: 1.75;
}

.doctor-profile-main-card p:last-child {
  margin-bottom: 0;
}

.doctor-profile-info-card {
  padding: 1.25rem;
}

.doctor-profile-info-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.doctor-profile-info-list {
  display: grid;
  gap: 0.85rem;
}

.doctor-profile-info-list div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.doctor-profile-info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.doctor-profile-info-list span {
  display: block;
  color: var(--muted, #4b5563);
  font-size: 0.85rem;
}

.doctor-profile-info-list strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text, #111827);
}

/* Service cards */
.doctor-profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.doctor-profile-service-card {
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doctor-profile-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 179, 191, 0.35);
  box-shadow: 0 16px 36px rgba(31, 45, 61, 0.12);
}

.doctor-profile-service-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text, #111827);
}

.doctor-profile-service-card h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, #4fb3bf, rgba(79, 179, 191, 0.25));
  border-radius: 99px;
}

.doctor-profile-service-card p {
  margin-bottom: 0;
  color: var(--muted, #4b5563);
}

/* Split section */
.doctor-profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.doctor-profile-split h2 {
  margin: 0.4rem 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.18;
}

.doctor-profile-split p {
  color: var(--muted, #4b5563);
  line-height: 1.75;
}

.doctor-profile-check-card {
  padding: 1.25rem;
}

.doctor-profile-check-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.doctor-profile-check-card li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text, #111827);
}

.doctor-profile-check-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary, #0e7490);
  font-weight: 800;
}

/* Final CTA */
.doctor-profile-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #eef5f7 0%, #ffffff 100%);
  border: 1px solid rgba(79, 179, 191, 0.22);
  box-shadow: var(--shadow, 0 10px 25px rgba(2, 8, 23, 0.08));
}

.doctor-profile-final-cta h2 {
  margin: 0.3rem 0 0.5rem;
}

.doctor-profile-final-cta p {
  margin: 0;
  color: var(--muted, #4b5563);
}

/* Tablet */
@media (max-width: 980px) {
  .doctor-profile-hero-grid,
  .doctor-profile-content-grid,
  .doctor-profile-split {
    grid-template-columns: 1fr;
  }

  .doctor-profile-photo-card {
    max-width: 480px;
  }

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

/* Mobile */
@media (max-width: 760px) {
  .doctor-profile {
    padding: 0 10px 32px;
  }

  .doctor-profile-hero {
    padding: 18px 0 30px;
  }

  .doctor-profile-hero-grid {
    gap: 20px;
  }

  .doctor-profile-photo-card {
    max-width: none;
    border-radius: 20px;
  }

  .doctor-profile-photo {
    aspect-ratio: 4 / 4.8;
  }

  .doctor-profile-badges {
    gap: 0.5rem;
  }

  .doctor-profile-badges span {
    font-size: 0.88rem;
  }

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

  .doctor-profile-final-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .doctor-profile-final-cta .btn {
    width: 100%;
  }
}