/* ============================================================
   premature.css — 조루수술 페이지 전용 (완전 재작성)
   ============================================================ */

/* ── 컬러 변수 ── */
:root {
  --primary:        #1a4a7e;
  --primary-dark:   #102f54;
  --primary-light:  #edf4fb;
  --accent:         #2e6aaa;
  --accent-light:   #cce0f5;
  --border:         #b8d4ee;
  --bg-light:       #f4f8fd;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(26,74,126,0.10);
  --shadow-lg:      0 20px 56px rgba(26,74,126,0.14);
}

/* ── 그라디언트 ── */
.hero-section { background: linear-gradient(135deg, #0a1e3a 0%, #1a4a7e 55%, #2e6aaa 100%); }
.hero-overlay { background: linear-gradient(105deg, rgba(10,30,58,0.92) 0%, rgba(26,74,126,0.70) 42%, rgba(26,74,126,0.18) 75%, transparent 100%); }
.cta-section  { background: linear-gradient(135deg, #0a1e3a 0%, #1a4a7e 100%); }

/* ════════════════════════════════════════
   01. 통계 카드 3개 (30% / 1분 / 자연회복X)
════════════════════════════════════════ */
.stat-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.stat-big-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-big-card .s-num {
  display: block;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-big-card .s-desc {
  display: block;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   02. 조루증 정의 섹션
════════════════════════════════════════ */
.define-section { background: var(--white); padding-bottom: 80px; }

.define-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.define-img-box {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 12px 48px rgba(26,74,126,0.12);
  position: relative;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
}
.define-img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.define-img-box img[src]:not([src=""]) { display: block; }

.define-text h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}
.define-text h3 em { color: var(--primary); font-style: normal; }
.define-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 18px; }

/* DSM 정의 박스 */
.dsm-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.dsm-box .dsm-label {
  display: block;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.dsm-box p {
  color: var(--primary-dark);
  line-height: 1.85;
  margin: 0;
}

/* 경고 박스 */
.warn-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 22px;
}
.warn-box p {
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

/* ════════════════════════════════════════
   03. 클리닉 차별화 6카드
════════════════════════════════════════ */
.diff-section { background: var(--bg-section); padding-bottom: 80px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.diff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.diff-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-card h4 {
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.diff-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ════════════════════════════════════════
   04. 수술 히어로
════════════════════════════════════════ */
.surgery-section { background: var(--white); padding-bottom: 80px; }

.op-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #0a1e3a 0%, #1a4a7e 55%, #2e6aaa 100%);
  box-shadow: 0 24px 64px rgba(26,74,126,0.22);
}
.op-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: 0; transition: opacity 0.35s;
}
.op-hero-img.loaded { opacity: 1; }
.op-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,30,58,0.92) 0%, rgba(26,74,126,0.65) 44%, rgba(26,74,126,0.15) 72%, transparent 100%);
}
.op-hero-content {
  position: relative; z-index: 2;
  padding: 56px 64px;
  max-width: 640px;
  color: #fff;
}
.op-kicker {
  color: rgba(255,255,255,0.55); text-transform: uppercase;
  margin-bottom: 14px; display: block;
}
.op-hero-content h3 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900; line-height: 1.22; margin-bottom: 18px;
}
.op-hero-content h3 em { font-style: normal; color: #a8d4ff; }
.op-hero-content p { opacity: 0.88; line-height: 1.85; margin-bottom: 28px; }
.op-points { display: flex; flex-wrap: wrap; gap: 10px; }
.op-point {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
  padding: 8px 18px; border-radius: 2px;
}
.op-callouts {
  position: absolute; right: 56px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 3;
}
.op-callout {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius); padding: 16px 22px;
  min-width: 190px; box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}
.op-callout strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
.op-callout span   { color: var(--text-muted); }

/* ════════════════════════════════════════
   05. 수술 방법 2카드 (소대차단술 / 배부신경차단술)
════════════════════════════════════════ */
.surgery-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 48px;
}

.surgery-method-card {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.surgery-method-card h4 {
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.surgery-method-card p {
  color: var(--text-mid);
  line-height: 1.85;
}

/* ════════════════════════════════════════
   06. 수술 특징 3원형 카드
════════════════════════════════════════ */
.feature-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}
.feature-circle-card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  border: 3px solid var(--primary-light);
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-sizing: border-box;
}
.feature-circle-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-circle-card h4 {
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
}

.feature-circle-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   유틸
════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .op-callouts { display: none; }
}
@media (max-width: 900px) {
  .define-layout { grid-template-columns: 1fr; gap: 32px; }
  .surgery-methods { grid-template-columns: 1fr; }
  .op-hero-content { padding: 40px 32px; }
  .stat-big { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
  .stat-big { grid-template-columns: 1fr; }
  .feature-circles { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── 수술 방법 카드 내 핵심 포인트 ── */
.surgery-method-card .method-key-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.mkp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 16px;
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s, background 0.2s;
}
.mkp-item:hover {
  border-left-color: var(--primary);
  background: var(--primary-light);
}

.mkp-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.mkp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mkp-text strong {
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.mkp-text span {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .surgery-method-card .method-key-points { grid-template-columns: 1fr; }
}

/* ── 수술 방법 카드 이미지 ── */
.surgery-method-img {
  width: 100%;
  aspect-ratio: 12/5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.surgery-method-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.surgery-method-img img[src]:not([src=""]) { display: block; }
