/* ============================================================
   전립선염 페이지 전용 컬러 오버라이드 (그린민트 계열)
   common.css의 블루 변수를 덮어씁니다
   ============================================================ */
:root {
  --primary:        #0a7a5a;
  --primary-dark:   #065c43;
  --primary-light:  #e6f7f2;
  --accent:         #1ab88a;
  --accent-light:   #d0f2e8;
  --border:         #c8ece3;
  --bg-light:       #f2fbf8;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(10,122,90,0.10);
  --shadow-lg:      0 20px 56px rgba(10,122,90,0.14);
}

/* ── 그라디언트·하드코딩 컬러 오버라이드 (common.css 덮어쓰기) ── */

/* Hero 배경 그라디언트 */
.hero-section {
  background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 55%, #1ab88a 100%);
}
/* Hero 오버레이 */
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(6,61,42,0.92) 0%,
    rgba(10,122,90,0.70) 42%,
    rgba(10,122,90,0.18) 75%,
    transparent 100%
  );
}
/* CTA 섹션 */
.cta-section {
  background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 100%);
}
/* flow-circle 색상 재정의 */
.flow-step:nth-child(1) .flow-circle { background: #0a7a5a; }
.flow-step:nth-child(2) .flow-circle { background: #1ab88a; }
.flow-step:nth-child(3) .flow-circle { background: #085e45; }
.flow-step:nth-child(4) .flow-circle { background: #1a9e5f; }
/* ESWL 히어로 */
.eswl-hero {
  background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 60%, #1ab88a 100%);
}
.eswl-hero-overlay {
  background: linear-gradient(
    108deg,
    rgba(6,61,42,0.92) 0%,
    rgba(10,122,90,0.68) 44%,
    rgba(10,122,90,0.15) 72%,
    transparent 100%
  );
}
/* 진단 사진 뱃지 */
.diag-photo-badge {
  background: rgba(10,122,90,0.88);
}
/* symptom photo badge */
.symptom-photo-badge {
  background: rgba(10,122,90,0.88);
}
/* symptom thumb label */
.symptom-thumb-label {
  background: rgba(10,122,90,0.80);
}
/* shadow rgba 재정의 */
.hero-point {
  box-shadow: 0 8px 28px rgba(6,61,42,0.18);
}

/* ============================================================
   prostatitis_treatment.css — 전립선염 진단 & 치료 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* ── 01. 치료 과정 플로우 ── */
.flow-section { background: var(--white); padding-bottom: 80px; }
.flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.flow-steps::before {
  content: ''; position: absolute;
  top: 36px; left: 12%; right: 12%;
  height: 2px; background: var(--border); z-index: 0;
}
.flow-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative; z-index: 1; padding: 0 16px;
}
.flow-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(10,122,90,0.25);
}
.flow-step:nth-child(2) .flow-circle { background: var(--accent); }
.flow-step:nth-child(3) .flow-circle { background: #085e45; }
.flow-step:nth-child(4) .flow-circle { background: var(--green); }
.flow-step h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.flow-step p  { color: var(--text-muted); line-height: 1.65; }

/* ── 02. 진단 — 상단 풀사진 + 하단 카드 ── */
.diagnosis-section { background: var(--bg-section); padding-bottom: 80px; }
.diag-photo-wrap { margin-bottom: 28px; }
.diag-photo-main {
  width: 100%; aspect-ratio: 21/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 16px 56px rgba(10,122,90,0.15);
  position: relative; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}
.diag-photo-main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.4s;
}
.diag-photo-main img.active-img { opacity: 1; }
.diag-photo-badge {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(10,122,90,0.88); backdrop-filter: blur(10px);
  padding: 18px 32px; color: #fff;
  display: flex; align-items: baseline; gap: 18px;
}
.diag-photo-badge strong { font-weight: 700; white-space: nowrap; }
.diag-photo-badge span   { opacity: 0.8; }
.diag-photo-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--text-muted);
  width: 100%; height: 100%; padding: 32px;
}
.diag-photo-placeholder .ph-box {
  width: 56px; height: 56px; border: 1.5px dashed var(--border); border-radius: 2px;
}
/* 하단 진단 카드 5개 */
.diag-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.diag-card {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  border-top: 3px solid var(--accent); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.diag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.diag-card.active { border-top-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); }
.diag-card-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.diag-card.active .diag-card-num { color: var(--primary); }
.diag-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.35; }
.diag-card p  { color: var(--text-muted); line-height: 1.7; }

/* ── 03. 체외충격파 — impo99 plus 히어로 ── */
.eswl-section { background: var(--white); padding-bottom: 80px; }

/* 장비 사진 풀히어로 */
.eswl-hero {
  position: relative; width: 100%; min-height: 520px;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 52px;
  background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 55%, #1ab88a 100%);
  box-shadow: 0 24px 64px rgba(10,122,90,0.22);
}
/* ★ impo99 plus 장비 사진 — src="" 에 경로 입력 */
.eswl-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  opacity: 0; transition: opacity 0.35s;
}
.eswl-hero-img.loaded { opacity: 1; }
.eswl-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    108deg,
    rgba(6,61,42,0.92) 0%,
    rgba(10,122,90,0.68) 44%,
    rgba(10,122,90,0.15) 72%,
    transparent 100%
  );
}
.eswl-hero-content {
  position: relative; z-index: 2;
  padding: 60px 64px; max-width: 640px; color: #fff;
}
.eswl-kicker {
  color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 14px;
}
.eswl-hero-content h3 {
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 900;
  line-height: 1.22; margin-bottom: 18px; letter-spacing: -0.5px;
}
.eswl-hero-content h3 em { font-style: normal; color: #7fd4ff; }
.eswl-hero-content p {
}
.eswl-points { display: flex; flex-wrap: wrap; gap: 10px; }
.eswl-point {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9); font-weight: 600;
  padding: 8px 18px; border-radius: 2px; backdrop-filter: blur(4px);
}
/* 우측 말풍선 */
.eswl-callouts {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 3;
}
.eswl-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);
}
.eswl-callout strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
.eswl-callout span   { color: var(--text-muted); }

/* 작용 원리 3단 카드 */
.mechanism-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; }
.mechanism-card {
  background: var(--bg-section); border-radius: var(--radius);
  padding: 32px 28px; border-top: 3px solid var(--primary);
}
.mechanism-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.mechanism-card h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.mechanism-card p  { color: var(--text-mid); line-height: 1.8; }

/* 시술 단계 */
.procedure-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 52px; }
.procedure-step {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow); text-align: center;
  border-bottom: 3px solid var(--accent);
}
.procedure-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.procedure-step h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.procedure-step p  { color: var(--text-muted); line-height: 1.7; }

/* 시술 전후 주의사항 */
.eswl-care { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.eswl-care-card { background: var(--bg-section); border-radius: var(--radius); padding: 32px 32px; }
.eswl-care-card h4 {
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.eswl-care-card.before h4 { border-color: var(--accent); }
.eswl-care-card.after  h4 { border-color: var(--green); }
.care-list { display: flex; flex-direction: column; gap: 14px; }
.care-item { display: flex; gap: 14px; align-items: flex-start; }
.care-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.eswl-care-card.before .care-num { background: var(--accent); }
.eswl-care-card.after  .care-num { background: var(--green); }
.care-item strong { display: block; color: var(--text-dark); margin-bottom: 4px; }
.care-item span   { color: var(--text-muted); line-height: 1.7; }

/* ── 04. 병행 치료 탭 ── */
.other-section { background: var(--bg-section); padding-bottom: 80px; }
.treat-layout { display: grid; grid-template-columns: 460px 1fr; gap: 56px; align-items: start; }
.treat-photo { aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow); }
.treat-badge {
  display: inline-block; background: var(--accent-light); color: var(--primary-dark);
}
.treat-text h4 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--text-dark); margin-bottom: 14px; line-height: 1.35; }
.treat-text p  { color: var(--text-mid); line-height: 1.9; margin-bottom: 20px; }
.treat-points { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.treat-point {
  background: var(--bg-light); border: 1px solid var(--border);
  color: var(--text-mid); font-weight: 600;
  padding: 7px 16px; border-radius: 2px;
}
.treat-point.blue { background: var(--primary-light); border-color: var(--accent-light); color: var(--primary-dark); }

/* ── 05. 추천 대상 ── */
.recommend-section { background: var(--white); padding-bottom: 80px; }

/* ── 06. FAQ ── */
/* common.css의 .faq-section 그대로 사용 */

/* 스크린리더 전용 */
.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) {
  .diag-cards { grid-template-columns: repeat(3, 1fr); }
  .eswl-callouts { display: none; }
}
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .flow-steps::before { display: none; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .procedure-steps { grid-template-columns: repeat(2, 1fr); }
  .eswl-care { grid-template-columns: 1fr; }
  .treat-layout { grid-template-columns: 1fr; }
  .treat-photo { aspect-ratio: 16/9; }
  .diag-photo-main { aspect-ratio: 16/9; }
  .eswl-hero-content { padding: 40px 32px; }
}
@media (max-width: 768px) {
  .diag-cards { grid-template-columns: repeat(2, 1fr); }
  .procedure-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .diag-cards { grid-template-columns: 1fr; }
  .procedure-steps { grid-template-columns: 1fr; }
}
