/* =========================================================
   PATIENT EXPERIENCE — /dental-implants/patient-experience/
   Page touches on top of css/pages/design-system.css.
   Metal-free, cost, form, promos, seals and offices are shared blocks (includes/blocks.php).
   ========================================================= */

/* ---------- Hero: keep the photo's subject (right side) visible ---------- */
.page-patient-experience .pexp-hero .ds-hero-bg > img { object-position: 70% 30%; }
.page-patient-experience .pexp-hero .ds-display { max-width: 820px; }
.page-patient-experience .pexp-hero-sub {
  font-family: var(--ds-font-head);
  font-weight: 600;
  font-size: clamp(19px, calc(0.8vw + 14px), 26px);
}

/* ---------- Four pillars around the logo ---------- */
.page-patient-experience .pexp-pillars {
  --pexp-logo: clamp(150px, 15vw, 200px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-gap);
}

.page-patient-experience .pexp-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 4vw, 64px);
  text-align: center;
}

/* room for the logo in the inner corners */
.page-patient-experience .pexp-pillar:nth-child(-n+2) { padding-bottom: calc(var(--pexp-logo) / 2 + 24px); }
.page-patient-experience .pexp-pillar:nth-child(n+3) { padding-top: calc(var(--pexp-logo) / 2 + 24px); }

.page-patient-experience .pexp-pillar-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: var(--ds-gradient);
  box-shadow: 0 12px 26px rgba(0, 150, 209, 0.28);
}

.page-patient-experience .pexp-pillar-icon img { width: 56px; height: 56px; }
.page-patient-experience .pexp-pillar .ds-text { max-width: 440px; margin-top: 10px; }

.page-patient-experience .pexp-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: var(--pexp-logo);
  height: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 10px #fff, var(--ds-shadow-lg);
  translate: -50% -50%;
}

@media (max-width: 767px) {
  .page-patient-experience .pexp-pillars { grid-template-columns: minmax(0, 1fr); }
  .page-patient-experience .pexp-pillar:nth-child(-n+2),
  .page-patient-experience .pexp-pillar:nth-child(n+3) { padding: 28px 22px; }

  .page-patient-experience .pexp-logo {
    position: static;
    order: -1;
    justify-self: center;
    width: 130px;
    translate: none;
  }
}
