
/* =====================================================
   ELEMENTOR RESET
===================================================== */

.dis-fm-problem,
.dis-fm-problem *,
.dis-fm-problem *::before,
.dis-fm-problem *::after {
  box-sizing: border-box;
}

.dis-fm-problem {
  --fm-dark: #242b2f;
  --fm-gold: #c89644;

  position: relative;
  isolation: isolate;

  display: block;
  width: 100%;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #f5f2eb;
  color: #222a2d;

  font-family: "Montserrat", Arial, sans-serif;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

.dis-fm-problem__shell {
  width: calc(100% - 64px);
  max-width: 1400px;

  margin: 0 auto;
  padding: 110px 0 118px;
}

.dis-fm-problem__layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.04fr)
    minmax(0, .96fr);

  align-items: center;
  gap: clamp(45px, 5.5vw, 95px);
}

/* =====================================================
   TEXT
===================================================== */

.dis-fm-problem__content {
  width: 100%;
  min-width: 0;
  max-width: 725px;
}

.dis-fm-problem__eyebrow {
  display: flex;
  align-items: center;

  gap: 13px;
  margin: 0 0 24px;

  color: #a77934;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: 1px;
}

.dis-fm-problem__eyebrow-rule {
  display: block;

  flex: 0 0 45px;
  width: 45px;
  height: 2px;

  background: var(--fm-gold);
}

/* =====================================================
   HEADING
===================================================== */

.dis-fm-problem .dis-fm-problem__title {
  width: 100%;

  margin: 0;
  padding: 0;

  color: #242b2f;

  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(46px, 4.15vw, 65px);
  font-weight: 600;

  line-height: 1.11;
  letter-spacing: -.5px;

  text-align: left;
  text-transform: none;
}

.dis-fm-problem__title span {
  display: block;

  color: #a97934;
  font: inherit;
}

/* =====================================================
   HEADING DIVIDER
===================================================== */

.dis-fm-problem__divider {
  display: flex;
  align-items: center;

  gap: 9px;
  margin: 29px 0 27px;
}

.dis-fm-problem__divider span {
  display: block;

  width: 81px;
  height: 2px;

  background: var(--fm-gold);
}

.dis-fm-problem__divider i {
  display: block;

  width: 7px;
  height: 7px;

  border: 1px solid var(--fm-gold);
  transform: rotate(45deg);
}

/* =====================================================
   PARAGRAPH
===================================================== */

.dis-fm-problem .dis-fm-problem__description {
  width: 100%;
  max-width: 695px;

  margin: 0;
  padding: 0;

  color: #555f62;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;

  line-height: 1.85;
  text-align: left;
}

/* =====================================================
   CTA
===================================================== */

.dis-fm-problem__actions {
  display: flex;
  margin: 35px 0 0;
}

.dis-fm-problem .dis-fm-problem__button,
.dis-fm-problem .dis-fm-problem__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 36px;
  min-height: 61px;

  margin: 0;
  padding: 16px 23px;

  background: #242b2f;
  border: 1px solid #242b2f;
  border-radius: 0;

  color: #ffffff;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;

  line-height: 1.4;
  text-decoration: none;

  transition:
    background .22s ease,
    transform .22s ease;
}

.dis-fm-problem__button svg {
  display: block;

  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  fill: none;
  stroke: #e0b45f;
  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.dis-fm-problem .dis-fm-problem__button:hover {
  background: #344044;
  color: #ffffff;

  transform: translateY(-3px);
}

/* =====================================================
   PHOTO FRAME — MARKLAYER CROP FIX
===================================================== */

.dis-fm-problem__visual {
  position: relative;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 18px 20px 20px 0;
}

.dis-fm-problem__image-wrap {
  position: relative;

  display: block;
  width: 100%;

  /*
    OLD: fixed 565px tall image
    NEW: wider, natural-looking 4:3 frame.
  */
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #343c40;

  box-shadow:
    0 26px 55px rgba(32,40,43,.13);
}

/* =====================================================
   SOFT BLURRED BACKDROP
===================================================== */

.dis-fm-problem__image-backdrop {
  position: absolute;
  inset: -12%;
  z-index: 0;

  display: block;

  width: 124%;
  height: 124%;
  max-width: none;

  margin: 0;
  padding: 0;

  object-fit: cover;
  object-position: center;

  filter:
    blur(22px)
    brightness(.7)
    saturate(.78);

  transform: scale(1.04);
  pointer-events: none;
}

/* =====================================================
   COMPLETE FOREGROUND PHOTO
   NO CROPPING OF DOCTOR OR PATIENT
===================================================== */

.dis-fm-problem__image-main {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  /*
    KEY FIX:
    The entire original image is displayed
    instead of cropping to fill.
  */
  object-fit: contain;
  object-position: center center;

  filter: none;
  transform: none;
}

/* DELICATE FRAME */

.dis-fm-problem__image-line {
  position: absolute;
  z-index: 2;

  inset: 18px;

  border: 1px solid rgba(255,255,255,.43);
  pointer-events: none;
}

/* =====================================================
   ORIGINAL GOLD CORNERS
===================================================== */

.dis-fm-problem__corner {
  position: absolute;
  z-index: 3;

  display: block;

  width: 75px;
  height: 75px;

  pointer-events: none;
}

.dis-fm-problem__corner--top {
  top: 0;
  right: 0;

  border-top: 2px solid var(--fm-gold);
  border-right: 2px solid var(--fm-gold);
}

.dis-fm-problem__corner--bottom {
  bottom: 0;
  left: -10px;

  border-bottom: 2px solid var(--fm-gold);
  border-left: 2px solid var(--fm-gold);
}

/* =====================================================
   IMAGE LABEL
===================================================== */

.dis-fm-problem__visual-label {
  position: absolute;
  z-index: 4;

  right: 35px;
  bottom: 35px;

  padding: 12px 16px;

  background: rgba(26,33,37,.88);
  color: #e4bb72;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: .7px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .dis-fm-problem__shell {
    width: calc(100% - 44px);
    padding: 85px 0 92px;
  }

  .dis-fm-problem__layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .dis-fm-problem__content,
  .dis-fm-problem__visual {
    max-width: 780px;
  }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

  .dis-fm-problem__shell {
    width: calc(100% - 36px);
    padding: 70px 0 78px;
  }

  .dis-fm-problem__layout {
    gap: 37px;
  }

  .dis-fm-problem__eyebrow {
    font-size: 13px;
    letter-spacing: .5px;
  }

  .dis-fm-problem__eyebrow-rule {
    flex-basis: 30px;
    width: 30px;
  }

  .dis-fm-problem .dis-fm-problem__title {
    font-size: 40px;
    line-height: 1.13;
  }

  .dis-fm-problem__divider {
    margin: 24px 0 22px;
  }

  .dis-fm-problem .dis-fm-problem__description {
    font-size: 16px;
    line-height: 1.8;
  }

  .dis-fm-problem__actions {
    margin-top: 30px;
  }

  .dis-fm-problem .dis-fm-problem__button {
    width: 100%;
    min-height: 62px;
  }

  .dis-fm-problem__visual {
    padding: 12px 12px 14px 0;
  }

  /* Slightly wider mobile frame */
  .dis-fm-problem__image-wrap {
    aspect-ratio: 5 / 4;
  }

  .dis-fm-problem__image-line {
    inset: 12px;
  }

  .dis-fm-problem__corner {
    width: 53px;
    height: 53px;
  }

  .dis-fm-problem__visual-label {
    right: 24px;
    bottom: 25px;

    padding: 9px 12px;
    font-size: 13px;

    letter-spacing: .25px;
  }

}

/* =====================================================
   SMALL MOBILE — 320PX+
===================================================== */

@media (max-width: 420px) {

  .dis-fm-problem__shell {
    width: calc(100% - 30px);
  }

  .dis-fm-problem .dis-fm-problem__title {
    font-size: 35px;
  }

  .dis-fm-problem__image-wrap {
    aspect-ratio: 4 / 3;
  }

  .dis-fm-problem__visual-label {
    font-size: 12px;
    right: 20px;
    bottom: 20px;
  }

}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.dis-fm-problem a:focus-visible {
  outline: 3px solid var(--fm-gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .dis-fm-problem__button {
    transition: none;
  }
}
