@import url("./consultation-service.css?v=20260724-1");

.lm-doctor-profile,
.lm-doctor-profile * {
  box-sizing: border-box;
}

.lm-doctor-profile {
  color: #263b42;
}

body:has(.lm-doctor-profile) .medflex-round-widget {
  display: none !important;
}

.lm-doctor-profile__breadcrumbs {
  margin: 0;
  padding: 24px 0 20px;
}

.lm-doctor-profile__hero {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 54px;
  margin-bottom: 58px;
  padding-bottom: 58px;
  border-bottom: 1px solid #dce8eb;
}

.lm-doctor-profile__photo {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 8px;
  background: #edf4f5;
}

.lm-doctor-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 0;
}

.lm-doctor-profile__summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 26px 0;
}

.lm-doctor-profile__specialty {
  max-width: 640px;
  margin: 0 0 14px;
  color: #60757b;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.lm-doctor-profile h1 {
  max-width: 780px;
  margin: 0;
  color: #1f343b;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lm-doctor-profile__experience {
  position: relative;
  margin: 24px 0 0;
  padding-left: 18px;
  color: #2d4e57;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.lm-doctor-profile__experience::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa6334;
}

.lm-doctor-profile__description {
  max-width: 690px;
  margin-top: 24px;
  color: #526b73;
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
}

.lm-doctor-profile__description p {
  margin: 0;
}

.lm-doctor-profile__description p + p {
  margin-top: 12px;
}

.lm-doctor-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.lm-doctor-profile__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid #2d4e57;
  border-radius: 7px;
  background: #2d4e57;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.lm-doctor-profile__button:hover {
  border-color: #fa6334;
  background: #fa6334;
  color: #fff;
}

.lm-doctor-profile__button--secondary {
  background: transparent;
  color: #2d4e57;
}

.lm-doctor-profile__button--secondary:hover {
  color: #fff;
}

.lm-doctor-profile__education {
  max-width: 1040px;
  margin: 0 0 68px;
}

.lm-doctor-profile__education-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.lm-doctor-profile__education-heading h2 {
  margin: 0;
  color: #1f343b;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 32px;
  line-height: 1.2;
  text-wrap: balance;
}

.lm-doctor-profile__education-heading p {
  margin: 12px 0 0;
  color: #60757b;
  font-size: 16px;
  line-height: 1.65;
}

.lm-doctor-profile__education-groups {
  display: grid;
  gap: 28px;
  max-width: 900px;
}

.lm-doctor-profile__education-group h3 {
  margin: 0 0 12px;
  color: #fa6334;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.lm-doctor-profile__education-group .lm-doctor-profile__institutions {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.lm-doctor-profile__institutions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
  color: #3d5961;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}

.lm-doctor-profile__institutions li {
  position: relative;
  padding-left: 15px;
}

.lm-doctor-profile__institutions li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fa6334;
}

.lm-doctor-profile__timeline {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #dce8eb;
  list-style: none;
}

.lm-doctor-profile__timeline li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid #dce8eb;
}

.lm-doctor-profile__timeline time {
  color: #fa6334;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.lm-doctor-profile__timeline h3 {
  margin: 0;
  color: #263b42;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 18px;
  line-height: 1.4;
  text-wrap: pretty;
}

.lm-doctor-profile__timeline p {
  margin: 5px 0 0;
  color: #60757b;
  font-size: 14px;
  line-height: 1.55;
}

.lm-doctor-profile__publications {
  max-width: 1040px;
  margin: 0 0 68px;
}

.lm-doctor-profile__publications-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.lm-doctor-profile__publications-heading h2 {
  margin: 0;
  color: #1f343b;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 32px;
  line-height: 1.2;
  text-wrap: balance;
}

.lm-doctor-profile__publications-heading p {
  margin: 12px 0 0;
  color: #60757b;
  font-size: 16px;
  line-height: 1.65;
}

.lm-doctor-publications {
  border-top: 1px solid #dce8eb;
}

.lm-doctor-publication {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid #dce8eb;
}

.lm-doctor-publication__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #edf4f5;
}

.lm-doctor-publication__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-doctor-publication__body {
  align-self: center;
}

.lm-doctor-publication__meta {
  margin: 0 0 8px;
  color: #60757b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.lm-doctor-publication h3 {
  margin: 0;
  color: #1f343b;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 23px;
  line-height: 1.25;
  text-wrap: balance;
}

.lm-doctor-publication h3 a {
  color: inherit;
  text-decoration: none;
}

.lm-doctor-publication h3 a:hover,
.lm-doctor-publication__link:hover {
  color: #fa6334;
}

.lm-doctor-publication__body > p:not(.lm-doctor-publication__meta) {
  margin: 10px 0 0;
  color: #526b73;
  font-size: 15px;
  line-height: 1.6;
}

.lm-doctor-publication__link {
  display: inline-flex;
  margin-top: 14px;
  color: #2d4e57;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .lm-doctor-profile__hero {
    grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
    gap: 36px;
  }

  .lm-doctor-profile h1 {
    font-size: clamp(36px, 5vw, 48px);
  }
}

@media (max-width: 767px) {
  .lm-doctor-profile__breadcrumbs {
    padding: 20px 0 18px;
  }

  .lm-doctor-profile__hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 42px;
    padding-bottom: 42px;
  }

  .lm-doctor-profile__photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 4.45;
  }

  .lm-doctor-profile__photo img {
    min-height: 0;
  }

  .lm-doctor-profile__summary {
    padding: 0;
  }

  .lm-doctor-profile__specialty {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .lm-doctor-profile h1 {
    font-size: 34px;
  }

  .lm-doctor-profile__experience {
    margin-top: 18px;
  }

  .lm-doctor-profile__description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .lm-doctor-profile__actions {
    width: 100%;
    margin-top: 26px;
  }

  .lm-doctor-profile__button {
    width: 100%;
  }

  .lm-doctor-profile__education {
    margin-bottom: 48px;
  }

  .lm-doctor-profile__publications {
    margin-bottom: 48px;
  }

  .lm-doctor-profile__publications-heading {
    margin-bottom: 22px;
  }

  .lm-doctor-profile__publications-heading h2 {
    font-size: 28px;
  }

  .lm-doctor-publication {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lm-doctor-publication__media {
    max-width: 100%;
  }

  .lm-doctor-publication h3 {
    font-size: 21px;
  }

  .lm-doctor-profile__education-heading {
    margin-bottom: 22px;
  }

  .lm-doctor-profile__education-heading h2 {
    font-size: 28px;
  }

  .lm-doctor-profile__timeline li {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    padding: 19px 0;
  }

  .lm-doctor-profile__timeline h3 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-doctor-profile__button {
    transition: none;
  }
}
