/*
 * Shared specialist-center presentation.
 * Page-specific files keep each center's unique layouts; this file keeps the
 * repeated hero and evolution layouts consistent. The shared gateway lives
 * in assets/css/pages/clinical-gateway.css.
 */

.ys-center-page {
  background: #f8f5ec;
}

.ys-center-page .ys-info-hero {
  padding-bottom: 0;
}

.ys-center-page .ys-info-hero__head {
  padding-top: clamp(112px, 8vw, 160px);
  padding-bottom: clamp(60px, 5vw, 80px);
}

.ys-center-page .ys-info-hero h1 {
  margin-top: 40px;
  margin-bottom: 24px;
  font-size: 52px;
}

.ys-center-page .ys-info-hero__visual {
  background-image: url("https://bienamc.com/wp-content/uploads/bg_h_002.jpg");
}

/*
 * Shared evolution/history section.
 * The surgery center is the visual source of truth; the other centers use
 * the same structure without reserving empty space for missing photography.
 */
:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-section {
  padding-top: clamp(26px, 3vw, 46px) !important;
  padding-bottom: clamp(18px, 2.4vw, 34px) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-layout {
  display: grid !important;
  grid-template-columns: minmax(320px, .34fr) minmax(0, .66fr) !important;
  gap: clamp(44px, 4.8vw, 84px) !important;
  align-items: start !important;
  border-top: 0 !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head {
  position: sticky !important;
  top: clamp(142px, 12vh, 172px) !important;
  padding-top: 18px !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head h2 {
  margin: 0 0 22px !important;
  color: #223226 !important;
  font-family: "Noto Serif KR", serif !important;
  font-size: clamp(38px, 2.9vw, 56px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -.065em !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head p {
  max-width: 520px !important;
  margin: 0 !important;
  color: rgba(34, 50, 38, .60) !important;
  font-size: clamp(15px, .96vw, 17px) !important;
  line-height: 1.76 !important;
  letter-spacing: -.03em !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-timeline {
  position: relative !important;
  display: block !important;
  padding: clamp(18px, 2.6vw, 42px) 0 0 clamp(20px, 2vw, 34px) !important;
  border: 0 !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-timeline::before {
  position: absolute !important;
  left: clamp(20px, 2vw, 34px) !important;
  top: clamp(18px, 2.6vw, 42px) !important;
  bottom: clamp(38px, 4vw, 70px) !important;
  display: block !important;
  width: 1px !important;
  height: auto !important;
  background: rgba(34, 50, 38, .105) !important;
  content: "" !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-timeline::after {
  display: none !important;
  content: none !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: start !important;
  min-height: clamp(205px, 16vw, 270px) !important;
  padding: clamp(22px, 2.5vw, 38px) 0 clamp(46px, 4.2vw, 70px) clamp(54px, 5vw, 88px) !important;
  border: 0 !important;
  background: transparent !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item.has-media {
  min-height: clamp(395px, 30vw, 520px) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item::before,
:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item::after {
  display: none !important;
  width: 0 !important;
  content: none !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-dot {
  position: absolute !important;
  left: -5px !important;
  top: clamp(36px, 3.4vw, 56px) !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: #506c44 !important;
  box-shadow: 0 0 0 8px rgba(80, 108, 68, .10) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-body {
  display: block !important;
  width: min(560px, 100%) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-season {
  display: block !important;
  margin: 0 0 16px !important;
  color: rgba(80, 108, 68, .92) !important;
  font-family: "Manrope", "Pretendard", sans-serif !important;
  font-size: clamp(24px, 1.8vw, 32px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-copy strong {
  display: block !important;
  margin: 0 !important;
  color: #223226 !important;
  font-size: clamp(25px, 2vw, 38px) !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  letter-spacing: -.06em !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-copy strong span {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-copy p {
  max-width: 560px !important;
  margin: 14px 0 0 !important;
  color: rgba(34, 50, 38, .60) !important;
  font-size: clamp(15px, .96vw, 17px) !important;
  line-height: 1.76 !important;
  letter-spacing: -.03em !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-photo {
  margin: clamp(24px, 2.4vw, 34px) 0 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, .50) !important;
  box-shadow: 0 20px 54px rgba(38, 48, 35, .08), inset 0 1px 0 rgba(255, 255, 255, .84) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-photo img {
  width: 100% !important;
  aspect-ratio: 1.85 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: filter .28s ease !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-photo:hover img {
  filter: brightness(1.03) contrast(1.03) !important;
}

:is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item:last-child {
  min-height: auto !important;
  padding-bottom: clamp(20px, 2.5vw, 34px) !important;
}

@media (max-width: 1024px) {
  .ys-center-page .ys-info-hero h1 {
    font-size: 48px;
  }

}

@media (max-width: 1180px) {
  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-layout {
    grid-template-columns: 1fr !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .ys-center-page .ys-info-hero__head {
    padding: 100px 0 30px;
  }

  .ys-center-page .ys-info-hero h1 {
    margin: 8px 0 12px;
    font-size: 32px;
    line-height: 1.2;
  }

  .ys-center-page .ys-info-hero__subtitle {
    font-size: 12px;
    line-height: 1.5;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-section {
    padding-top: 26px !important;
    padding-bottom: 18px !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head {
    padding-top: 0 !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head h2 {
    font-size: clamp(25px, 6.65vw, 31px) !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-head p,
  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-copy p {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-timeline {
    padding: 8px 0 0 !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-timeline::before {
    display: none !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item,
  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-item.has-media {
    min-height: auto !important;
    padding: 24px 0 34px !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-dot {
    display: none !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-season {
    margin-bottom: 10px !important;
    font-size: 18px !important;
    letter-spacing: .06em !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-copy strong {
    font-size: clamp(25px, 7vw, 32px) !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-photo {
    border-radius: 20px !important;
  }

  :is(#ysOdCenterV9, #ysCtmriBodyV25, #ysSiCenterV4) .ys-center-evolution-photo img {
    aspect-ratio: 1.55 / 1 !important;
  }

}
