/* =========================================================
   REPRODUKTOLOG
   ========================================================= */

.rp-doctors-hub {
  --rp-teal: #3ebfb3;
  --rp-teal-dark: #079c98;
  --rp-ink: #153349;
  --rp-muted: #72817e;
  --rp-line: #e0ece9;

  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 0 0 calc(50% - 50vw) !important;
  padding: 55px 16px 65px;
  background: #f4fbf9;
  overflow: hidden;
}

.rp-doctors-hub *,
.rp-doctors-hub *::before,
.rp-doctors-hub *::after {
  box-sizing: border-box;
}

/* INTRO */

.rp-doctors-hub__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 35px;
  width: 100%;
  margin: 0 auto 30px;
  padding: 0 clamp(10px, 2.5vw, 45px);
}

.rp-doctors-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--rp-teal-dark);
  font: 700 12px/1.5 Arial, sans-serif;
  letter-spacing: 2px;
}

.rp-doctors-hub__eyebrow::after {
  content: "";
  width: 85px;
  height: 1px;
  background: var(--rp-teal);
}

.rp-doctors-hub__intro h2 {
  margin: 14px 0 0;
  color: var(--rp-ink);
  font: 400 clamp(34px, 3.1vw, 53px)/1.12 Georgia, serif;
  letter-spacing: -1.1px;
}

.rp-doctors-hub__intro h2 em {
  color: var(--rp-ink);
  font-style: normal;
}

.rp-doctors-hub__intro p {
  margin: 0 0 5px;
  max-width: 600px;
  color: var(--rp-muted);
  font: 400 15px/1.7 Arial, sans-serif;
}

/* DOCTORS LIST */

.rp-doctors-hub__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ONE DOCTOR = ONE FULL-WIDTH ROW */

.rp-doctor {
  display: grid;
  grid-template-columns: minmax(0, 22%) minmax(0, 78%);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 285px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e7f0ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(28, 87, 78, .035);
}

/* PHOTO */

.rp-doctor__photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: 285px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 55%,
      #f8fdfb 0%,
      #e1f2ed 85%
    );
}

.rp-doctor__photo img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 285px !important;
  max-height: 285px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.rp-doctor__photo-badge {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 1;
  max-width: 125px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--rp-teal-dark);
  font: 600 11px/1.35 Arial, sans-serif;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .025);
}

/* ENGLISH VERSION: NO BADGES OVER PHOTOS */

.rp-doctors-hub#doctors .rp-doctor__photo-badge {
  display: none !important;
}

/* CONTENT — FOUR COLUMNS */

.rp-doctor__content {
  display: grid;
  grid-template-columns:
    minmax(0, 32fr)
    minmax(0, 25fr)
    minmax(0, 25fr)
    minmax(0, 18fr);
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 22px 24px;
}

.rp-doctor__identity,
.rp-doctor__topics,
.rp-doctor__consult,
.rp-doctor__actions {
  min-width: 0;
  max-width: 100%;
}

/* IDENTITY */

.rp-doctor__identity {
  padding-right: 15px;
}

.rp-doctor__identity h3 {
  margin: 0 0 9px;
  color: var(--rp-ink);
  font: 400 clamp(21px, 1.8vw, 29px)/1.15 Georgia, serif;
  letter-spacing: -.55px;
  overflow-wrap: break-word;
}

.rp-doctor__specialty {
  margin: 0;
  color: #677b7b;
  font: 400 13px/1.5 Arial, sans-serif;
}

/* FACTS */

.rp-doctor__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #edf2f0;
}

.rp-doctor__fact {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  color: #536864;
  font: 400 11px/1.4 Arial, sans-serif;
}

.rp-doctor__fact strong {
  color: var(--rp-ink);
  font-weight: 700;
}

.rp-doctor__fact-icon {
  flex: 0 0 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e3f7f3;
  color: var(--rp-teal-dark);
  font-size: 17px;
  line-height: 1;
}

/* INFORMATION COLUMNS */

.rp-doctor__topics,
.rp-doctor__consult {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  border-left: 1px solid var(--rp-line);
}

.rp-doctor__topics h4,
.rp-doctor__consult h4 {
  margin: 0 0 15px;
  color: #123d43;
  font: 700 12px/1.4 Arial, sans-serif;
  overflow-wrap: break-word;
}

.rp-doctor__topics ul,
.rp-doctor__consult ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-doctor__topics li,
.rp-doctor__consult li {
  position: relative;
  margin: 0;
  padding: 0 0 0 27px;
  color: #657575;
  font: 400 11.5px/1.45 Arial, sans-serif;
  overflow-wrap: break-word;
}

.rp-doctor__topics li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dff7f3;
  color: var(--rp-teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.rp-doctor__consult li::before {
  content: "✧";
  position: absolute;
  top: -1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--rp-teal-dark);
  font-size: 21px;
  line-height: 1;
}

/* ACTIONS */

.rp-doctor__actions {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
  padding: 0 0 0 12px;
}

.rp-doctor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 8px;
  border: 1px solid var(--rp-teal-dark);
  border-radius: 9px;
  font: 700 12px/1.4 Arial, sans-serif;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  transition:
    background .2s ease,
    transform .2s ease;
}

.rp-doctor__btn--primary {
  background: var(--rp-teal-dark);
  color: #fff !important;
}

.rp-doctor__btn--primary:hover {
  background: #087d79;
  color: #fff !important;
  transform: translateY(-2px);
}

.rp-doctor__btn span,
.rp-doctor__profile span {
  font-size: 17px;
}

.rp-doctor__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  color: var(--rp-teal-dark) !important;
  font: 600 11px/1.4 Arial, sans-serif;
  text-align: center;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.rp-doctor__profile:hover {
  color: #075e5b !important;
}

/* MEDIUM DESKTOP */

@media (min-width: 1051px) and (max-width: 1400px) {

  .rp-doctor {
    grid-template-columns: minmax(0, 21%) minmax(0, 79%);
  }

  .rp-doctor__content {
    grid-template-columns:
      minmax(0, 30fr)
      minmax(0, 25fr)
      minmax(0, 26fr)
      minmax(0, 19fr);
    padding: 20px 18px;
  }

  .rp-doctor__identity {
    padding-right: 12px;
  }

  .rp-doctor__identity h3 {
    font-size: clamp(20px, 1.8vw, 26px);
  }

  .rp-doctor__topics,
  .rp-doctor__consult {
    padding-left: 11px;
    padding-right: 11px;
  }

  .rp-doctor__topics li,
  .rp-doctor__consult li {
    font-size: 11px;
    padding-left: 23px;
  }

  .rp-doctor__actions {
    grid-column: auto;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 10px;
    gap: 12px;
  }

  .rp-doctor__btn {
    min-width: 0;
    font-size: 11px;
    padding: 10px 6px;
  }

  .rp-doctor__profile {
    font-size: 10.5px;
  }
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1050px) {

  .rp-doctors-hub {
    padding: 42px 14px 55px;
  }

  .rp-doctor {
    grid-template-columns: minmax(0, 29%) minmax(0, 71%);
    min-height: 0;
  }

  .rp-doctor__photo {
    min-height: 100%;
  }

  .rp-doctor__photo img {
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .rp-doctor__content {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
    gap: 18px 0;
    padding: 24px;
  }

  .rp-doctor__identity {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .rp-doctor__topics {
    border-left: 0;
    padding-left: 0;
  }

  .rp-doctor__consult {
    padding-right: 0;
  }

  .rp-doctor__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 8px 0 0;
  }

  .rp-doctor__btn {
    width: auto;
    min-width: 205px;
    padding: 12px 18px;
    font-size: 12px;
  }

  .rp-doctor__profile {
    width: auto;
    font-size: 12px;
  }
}

/* MOBILE */

@media (max-width: 767px) {

  .rp-doctors-hub {
    padding: 38px 12px 45px;
  }

  .rp-doctors-hub__intro {
    display: block;
    padding: 0 8px;
    margin-bottom: 25px;
  }

  .rp-doctors-hub__intro h2 {
    font-size: clamp(32px, 8vw, 43px);
    letter-spacing: -.6px;
  }

  .rp-doctors-hub__intro p {
    margin-top: 15px;
    font-size: 14px;
  }

  .rp-doctor {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 13px;
  }

  .rp-doctor__photo {
    min-height: 300px;
    height: 300px;
  }

  .rp-doctor__photo img {
    height: 300px !important;
    max-height: 300px !important;
    object-fit: contain !important;
  }

  .rp-doctor__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
    padding: 25px 20px 28px;
  }

  .rp-doctor__identity h3 {
    font-size: clamp(27px, 7vw, 35px);
  }

  .rp-doctor__specialty {
    font-size: 14px;
  }

  .rp-doctor__facts {
    gap: 12px;
  }

  .rp-doctor__topics,
  .rp-doctor__consult {
    border-left: 0;
    border-top: 1px solid var(--rp-line);
    padding: 19px 0 0;
  }

  .rp-doctor__topics h4,
  .rp-doctor__consult h4 {
    font-size: 14px;
  }

  .rp-doctor__topics li,
  .rp-doctor__consult li {
    font-size: 13px;
  }

  .rp-doctor__actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0;
  }

  .rp-doctor__btn {
    width: 100%;
    min-height: 52px;
    font-size: 14px;
  }

  .rp-doctor__profile {
    width: 100%;
    font-size: 13px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .rp-doctor__btn {
    transition: none;
  }
}
