:root {
  --primary:        #0a4fa8;
  --primary-dark:   #073a7c;
  --primary-light:  #e8f0fb;
  --accent:         #1e90d8;
  --accent-light:   #d6eef9;
  --border:         #b8d4f0;
  --bg-light:       #f5f8fd;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(10,79,168,0.10);
  --shadow-lg:      0 20px 56px rgba(10,79,168,0.14);
}

/* ============================================================
   urology_treatment.css — 요로결석 진단 & 치료 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

.flow-section { background: var(--white); padding-bottom: 80px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-steps::before { content: ''; position: absolute; top: 36px; left: 10%; right: 10%; 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; font-weight: 800; margin-bottom: 18px; box-shadow: 0 4px 16px rgba(10,79,168,0.25); flex-shrink: 0; }
.flow-step:nth-child(2) .flow-circle { background: var(--accent); }
.flow-step:nth-child(3) .flow-circle { background: #0a4fa8; }
.flow-step:nth-child(4) .flow-circle { background: var(--accent); }
.flow-step:nth-child(5) .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; }
.flow-arrow { display: none; }

/* 02. 진단 — 상단 사진 풀 + 하단 5개 카드 */
.diagnosis-section { background: var(--bg-section); padding-bottom: 80px; }

/* 상단: 메인 사진 (풀 와이드) */
.diag-photo-wrap { margin-bottom: 32px; }
.diag-photo-main {
  width: 100%; aspect-ratio: 21/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 16px 56px rgba(10,79,168,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,79,168,0.88); backdrop-filter: blur(10px);
  padding: 18px 28px; color: #fff;
  display: flex; align-items: baseline; gap: 16px;
}
.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(4,1fr); gap: 16px; }
.diag-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 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: 8px; }
.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. 결석 크기별 치료 선택 기준표 */
.guide-section { background: var(--white); padding-bottom: 80px; }
.guide-table-wrap { overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table th { background: var(--primary); color: #fff; padding: 16px 20px; text-align: left; font-weight: 700; white-space: nowrap; }
.guide-table th:first-child { border-radius: 4px 0 0 0; }
.guide-table th:last-child { border-radius: 0 4px 0 0; }
.guide-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; line-height: 1.7; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:nth-child(even) td { background: var(--bg-light); }
.size-badge { display: inline-block; padding: 3px 10px; border-radius: 2px; font-weight: 700; white-space: nowrap; }
.size-badge.sm { background: var(--green-light); color: var(--green); }
.size-badge.md { background: #fff3e0; color: #e67e22; }
.size-badge.lg { background: var(--red-light); color: var(--red); }
.treat-badge-sm { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; padding: 4px 10px; border-radius: 2px; margin: 1px 2px; white-space: nowrap; }

/* 04. ESWL */
.eswl-section { background: var(--bg-section); padding-bottom: 80px; }
.eswl-hero { position: relative; width: 100%; min-height: 490px; border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; background: linear-gradient(135deg, #0a2a5e 0%, #0a4fa8 60%, #1e90d8 100%); box-shadow: 0 20px 56px rgba(10,79,168,0.20); }
.eswl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: 0; transition: opacity 0.3s; }
.eswl-hero-img.loaded { opacity: 1; }
.eswl-hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7,58,124,0.90) 0%, rgba(10,79,168,0.65) 44%, rgba(10,79,168,0.15) 72%, transparent 100%); }
.eswl-hero-content { position: relative; z-index: 2; padding: 60px 64px; max-width: 640px; color: #fff; }
.eswl-kicker { font-weight: 700; letter-spacing: 4px; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 14px; }
.eswl-hero-content h3 { font-size: clamp(22px, 3.2vw, 38px); 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 { opacity: 0.88; line-height: 1.85; margin-bottom: 26px; }
.eswl-points { display: flex; flex-wrap: wrap; gap: 8px; }
.eswl-point { border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.88); font-weight: 600; padding: 6px 16px; border-radius: 2px; }
.eswl-callouts { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.eswl-callout { background: rgba(255,255,255,0.96); border-radius: var(--radius); padding: 14px 20px; min-width: 170px; box-shadow: 0 6px 20px rgba(0,0,0,0.16); }
.eswl-callout strong { display: block; color: var(--primary-dark); margin-bottom: 3px; }
.eswl-callout span { color: var(--text-muted); }

/* ESWL 전후 주의사항 */
.eswl-care { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.eswl-care-card { background: var(--white); border-radius: var(--radius); padding: 28px 28px; box-shadow: var(--shadow); }
.eswl-care-card h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; 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: 10px; }
.care-item { display: flex; gap: 12px; align-items: flex-start; }
.care-num { width: 22px; height: 22px; border-radius: 50%; font-weight: 700; color: #fff; 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: 3px; }
.care-item span { color: var(--text-muted); line-height: 1.65; }
.eswl-caution { margin-top: 20px; padding: 16px 20px; background: var(--red-light); border-left: 3px solid var(--red); border-radius: var(--radius); color: #c0392b; line-height: 1.75; }
.eswl-caution strong { display: block; margin-bottom: 5px; }

/* 05. 치료법 탭 */
.treatment-section { background: var(--white); padding-bottom: 80px; }
.tabs { display: flex; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 32px; background: var(--white); }
.tab { flex: 1; padding: 17px 20px; border: none; background: transparent; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-family: inherit; border-right: 1px solid var(--border); }
.tab:last-child { border-right: none; }
.tab.is-active { background: var(--primary); color: var(--white); }
.tab:not(.is-active):hover { background: var(--bg-light); color: var(--primary); }
.panel { display: none; }
.panel.is-active { display: block; }
.treat-layout { display: grid; grid-template-columns: 480px 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); font-weight: 700; padding: 4px 12px; border-radius: 2px; margin-bottom: 14px; }
.treat-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 18px; }
.treat-points { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.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); }
/* 치료 세부 정보 */
.treat-detail { background: var(--bg-light); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.treat-detail-item strong { display: block; color: var(--text-muted); margin-bottom: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.treat-detail-item span { color: var(--text-dark); font-weight: 600; }

/* 06. 재발 예방 식이요법 */
.diet-section { background: var(--bg-section); padding-bottom: 80px; }
.diet-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.diet-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.diet-card h4 { font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.diet-card.good h4 { color: var(--green); border-color: var(--green); }
.diet-card.bad h4 { color: var(--red); border-color: var(--red); }
.diet-list { display: flex; flex-direction: column; gap: 12px; }
.diet-item { display: flex; gap: 12px; align-items: flex-start; }
.diet-mark { width: 22px; height: 22px; border-radius: 50%; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.diet-card.good .diet-mark { background: var(--green); }
.diet-card.bad .diet-mark { background: var(--red); }
.diet-item strong { display: block; color: var(--text-dark); margin-bottom: 3px; }
.diet-item span { color: var(--text-muted); line-height: 1.65; }
/* 식이 인포 테이블 */
.diet-table-wrap { overflow-x: auto; }
.diet-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.diet-table th { background: var(--primary); color: #fff; padding: 16px 20px; text-align: left; font-weight: 700; }
.diet-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.6; }
.diet-table tr:last-child td { border-bottom: none; }
.diet-table tr:nth-child(even) td { background: var(--bg-light); }
.ok { color: var(--green); font-weight: 700; }
.limit { color: #e67e22; font-weight: 700; }
.no { color: var(--red); font-weight: 700; }

/* 07. FAQ */
.faq-section { background: var(--white); padding-bottom: 88px; }
.faq-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-light); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--text-dark); text-align: left; gap: 10px; }
.faq-question:hover { background: var(--primary-light); }
.faq-icon { color: var(--primary); font-weight: 300; flex-shrink: 0; transition: transform 0.3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 20px 28px 26px; color: var(--text-mid); line-height: 1.9; border-top: 1px solid var(--border); }
.faq-item.open .faq-answer { display: block; }

/* CTA */
.cta-section { background: linear-gradient(135deg, #0a2a5e 0%, #0a4fa8 100%); padding: 80px 20px; text-align: center; }
.cta-section h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.4; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.cta-btn { display: inline-block; background: #fff; color: var(--primary-dark); font-weight: 700; padding: 17px 52px; border-radius: 2px; text-decoration: none; transition: opacity 0.2s; }
.cta-btn:hover { opacity: 0.9; }
.cta-link { display: inline-block; margin-top: 18px; color: rgba(255,255,255,0.5); text-decoration: underline; cursor: pointer; }

/* 스크린리더 전용 */
.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; }

/* FADE */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade.show { opacity: 1; transform: translateY(0); }

/* 반응형 */
@media (max-width: 1100px) {
  .inner { padding: 0 36px; }
  .diag-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .treat-layout { grid-template-columns: 1fr; }
  .treat-photo { aspect-ratio: 16/9; }
  .eswl-callouts { display: none; }
  .hero-points { display: none; }
  .flow-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .flow-steps::before { display: none; }
  .diag-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
  .diag-photo-main { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .inner { padding: 0 20px; }
  .eswl-care, .diet-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { padding: 56px 24px; flex-direction: column; }
  .eswl-hero-content { padding: 36px 24px; }
  .sec-head { padding: 52px 20px 36px; }
  .tabs { flex-wrap: wrap; }
  .treat-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .flow-steps { grid-template-columns: 1fr; }
  .diag-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
}

/* ── feature-bar 컬러 오버라이드 (요로결석 블루) ── */
.feature-bar { background: linear-gradient(135deg, #05306b 0%, #0a4fa8 100%); }




/* ── ESWL 사진 ── */
.eswl-full-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-section);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.eswl-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── feature-bar 색상 오버라이드 ── */
.feature-bar { background: linear-gradient(135deg, #05306b 0%, #0a4fa8 100%); }
.feature-bar .feature-bar-num { color: #fff; }
.feature-bar .feature-bar-item strong { color: rgba(255,255,255,0.7); }
