/* Individual doctor profile */

.page-hero--compact {
  padding-bottom: 24px;
}

.page-hero--compact .page-hero__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 4px;
}

/* Achievement stats banner */
.doc-stats {
  padding: 0 0 32px;
  background: var(--page-bg);
}

.doc-stats--inline {
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
}

.doc-stats--inline .doc-stat {
  min-height: 160px;
  padding: 22px 12px 18px;
}

.doc-stats--inline .doc-stat__value {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.doc-stats--inline .doc-stat__prefix,
.doc-stats--inline .doc-stat__suffix {
  font-size: 12px;
}

.doc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.doc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px 24px;
  color: var(--white);
  min-height: 180px;
}

.doc-stat--indigo { background: linear-gradient(160deg, #646efa 0%, #5568e8 100%); }
.doc-stat--blue { background: linear-gradient(160deg, #4593ff 0%, #2d7ef0 100%); }
.doc-stat--lilac { background: linear-gradient(160deg, #a578ff 0%, #8f5cf0 100%); }

.doc-stat__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-stat__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.doc-stat__prefix,
.doc-stat__suffix {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
  font-weight: 500;
}

.doc-stat__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
}

.doc-profile {
  padding: 32px 0 56px;
  background: var(--page-bg);
}

.doc-profile__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.doc-profile__card {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.doc-profile__photo {
  background: var(--surface);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.doc-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-profile__card-body {
  padding: 24px 22px 22px;
}

.doc-profile__degree-wrap {
  margin: -24px -22px 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(69, 147, 255, 0.12) 0%, rgba(100, 110, 250, 0.14) 50%, rgba(165, 120, 255, 0.12) 100%);
  border-bottom: 2px solid var(--blue);
}

.doc-profile__degree {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.doc-profile__meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.doc-profile__meta span {
  font-weight: 700;
  color: var(--ink);
}

.doc-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.doc-profile__section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.doc-profile__section:last-child {
  margin-bottom: 0;
}

.doc-profile__section-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-soft);
}

.doc-profile__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.doc-profile__text p {
  margin-bottom: 12px;
}

.doc-profile__text p:last-child {
  margin-bottom: 0;
}

.doc-profile__list {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  list-style: disc;
}

.doc-profile__list li {
  margin-bottom: 8px;
}

.doc-profile__list li:last-child {
  margin-bottom: 0;
}

/* Price list */
.doc-price {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-price__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}

.doc-price__title {
  font-weight: 600;
  color: var(--ink);
}

.doc-price__dots {
  border-bottom: 2px dotted var(--line);
  min-width: 24px;
  transform: translateY(-2px);
}

.doc-price__value {
  font-weight: 800;
  color: var(--blue-dark);
  white-space: nowrap;
}

/* Timeline */
.doc-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--blue-soft);
  margin-left: 8px;
}

.doc-timeline__item {
  position: relative;
  padding: 0 0 20px 24px;
}

.doc-timeline__item:last-child {
  padding-bottom: 0;
}

.doc-timeline__item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.doc-timeline__period {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.doc-timeline__place {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.doc-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s, transform 0.2s;
}

.doc-profile__back:hover {
  color: var(--blue-dark);
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .doc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-profile__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc-profile__card {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .doc-profile__section {
    padding: 22px 20px;
  }
}

@media (max-width: 600px) {
  .doc-stats__grid {
    grid-template-columns: 1fr;
  }

  .doc-stat {
    min-height: 140px;
    padding: 20px 16px;
  }

  .doc-profile {
    padding-bottom: 40px;
  }

  .doc-profile__card {
    max-width: none;
  }

  .doc-price__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .doc-price__dots {
    display: none;
  }
}
