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

.lm-doctors-page,
.lm-doctors-page * {
  box-sizing: border-box;
}

.lm-doctors-page .lm-service-intro {
  max-width: none;
  margin-bottom: 28px;
  border-bottom: 0;
}

.lm-doctors-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.lm-doctors-intro-row > p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #5e7278;
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.lm-doctors-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.lm-doctors-tab {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c5d8dc;
  border-radius: 6px;
  background: #fff;
  color: #2d4e57;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-transform: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.lm-doctors-tab:hover {
  border-color: #2d4e57;
}

.lm-doctors-tab[aria-selected="true"] {
  border-color: #2d4e57;
  background: #2d4e57;
  color: #fff;
}

.lm-doctors-tab:focus-visible {
  outline: 3px solid rgb(250 99 52 / 28%);
  outline-offset: 2px;
}

.lm-doctors-page--tabs-ready .lm-doctors-group + .lm-doctors-group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lm-doctors-page--tabs-ready .lm-doctors-group[hidden] {
  display: none !important;
}

.lm-doctors-directory {
  margin: 0 0 64px;
}

.lm-doctors-group + .lm-doctors-group {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #dce8eb;
}

.lm-doctors-group__heading {
  max-width: 760px;
  margin: 0 0 26px;
}

.lm-doctors-group__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-doctors-group__heading p {
  margin: 10px 0 0;
  color: #60757b;
  font-size: 16px;
  line-height: 1.6;
}

.lm-doctors-group__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: #60757b;
}

.lm-doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 22px;
  border-bottom: 1px solid #dce8eb;
}

.lm-doctor-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 0 30px;
  border-top: 1px solid #dce8eb;
}

.lm-doctor-card:nth-child(-n + 4) {
  padding-top: 0;
  border-top: 0;
}

.lm-doctor-card__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 4.65;
  border-radius: 8px;
  background: #edf4f5;
}

.lm-doctor-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-doctor-card__photo:hover img {
  transform: scale(1.015);
}

.lm-doctor-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 20px;
}

.lm-doctor-card__specialty {
  width: 100%;
  min-height: 2.8em;
  margin: 0 0 9px;
  color: #60757b;
  font-size: 14px;
  line-height: 1.4;
}

.lm-doctor-card h3 {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #1f343b;
  font-family: var(--wd-title-font, "Ubuntu Sans", Arial, sans-serif);
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lm-doctor-card__experience {
  position: relative;
  margin: 16px 0 0;
  padding-left: 16px;
  color: #2d4e57;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

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

.lm-doctor-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 17px;
  border-radius: 7px;
  background: #2d4e57;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

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

@media (max-width: 1199px) {
  .lm-doctors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
  }

  .lm-doctor-card:nth-child(4) {
    padding-top: 28px;
    border-top: 1px solid #dce8eb;
  }
}

@media (max-width: 900px) {
  .lm-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lm-doctor-card:nth-child(3),
  .lm-doctor-card:nth-child(4) {
    padding-top: 28px;
    border-top: 1px solid #dce8eb;
  }
}

@media (max-width: 767px) {
  .lm-doctors-intro-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .lm-doctors-intro-row > p {
    font-size: 16px;
  }

  .lm-doctors-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .lm-doctors-tab {
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }

  .lm-doctors-directory {
    margin-bottom: 44px;
  }

  .lm-doctors-group + .lm-doctors-group {
    margin-top: 44px;
    padding-top: 34px;
  }

  .lm-doctors-group__heading {
    margin-bottom: 20px;
  }

  .lm-doctors-group__heading h2 {
    font-size: 27px;
  }

  .lm-doctors-group__heading p {
    font-size: 15px;
  }

  .lm-doctors-grid {
    grid-template-columns: 1fr;
  }

  .lm-doctor-card,
  .lm-doctor-card:nth-child(3),
  .lm-doctor-card:nth-child(4) {
    padding: 24px 0 30px;
    border-top: 1px solid #dce8eb;
  }

  .lm-doctor-card:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .lm-doctor-card__photo {
    width: 100%;
    aspect-ratio: 4 / 4.25;
  }

  .lm-doctor-card__specialty {
    min-height: 0;
  }

  .lm-doctor-card h3 {
    font-size: 25px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .lm-doctor-card__photo img,
  .lm-doctor-card__button,
  .lm-doctors-tab {
    transition: none;
  }
}
