: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_symptom.css — 요로결석 증상 & 원인 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* 01. 요로결석이란 */
.intro-section { background: var(--white); padding-bottom: 72px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-img-box { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 12px 48px rgba(10,79,168,0.10); position: relative; background: var(--bg-section); display: flex; align-items: center; justify-content: center; }
.intro-img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.intro-img-box img[src]:not([src=""]) { display: block; }
.intro-img-box svg { width: 100%; height: 100%; padding: 20px; }
.intro-text h3 { font-size: clamp(26px, 2.4vw, 26px); font-weight: 800; color: var(--text-dark); margin-bottom: 18px; line-height: 1.4; }
.intro-text h3 em { color: var(--primary); font-style: normal; }
.intro-text p { color: var(--text-mid); line-height: 1.95; margin-bottom: 20px; }
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.info-chip { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; padding: 5px 14px; border-radius: 2px; }
.info-chip.red { background: var(--red-light); color: var(--red); }

/* 통계 박스 */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-box { background: var(--bg-section); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.stat-box .stat-num { font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat-box .stat-label { color: var(--text-muted); line-height: 1.4; }

/* 02. 원인 */
.cause-section { background: var(--bg-section); padding-bottom: 72px; }
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cause-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.cause-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,79,168,0.13); }
.cause-card-img { width: 100%; aspect-ratio: 16/9; }
.cause-card-body { padding: 20px 22px 24px; border-top: 3px solid var(--primary); }
.cause-card-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 6px; }
.cause-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.cause-card p { color: var(--text-mid); line-height: 1.75; }
/* 원인별 예방 수칙 */
.cause-prevention { margin-top: 40px; background: var(--white); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.cause-prevention h3 { font-weight: 800; color: var(--text-dark); margin-bottom: 24px; }
.prevention-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prevention-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--bg-light); border-radius: var(--radius); }
.prevention-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.prevention-item strong { display: block; color: var(--text-dark); margin-bottom: 3px; }
.prevention-item span { color: var(--text-muted); line-height: 1.6; }

/* 03. 증상 */
.symptom-section { background: var(--white); padding-bottom: 80px; }
.symptom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.symptom-photo { position: sticky; top: 24px; }
.symptom-photo-main { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 56px rgba(10,79,168,0.12); position: relative; background: var(--bg-section); display: flex; align-items: center; justify-content: center; }
.symptom-photo-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 1; }
.symptom-photo-main img[src]:not([src=""]) { display: block; }
.symptom-photo-badge { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(10,79,168,0.88); backdrop-filter: blur(8px); padding: 14px 20px; color: #fff; }
.symptom-photo-badge strong { display: block; font-weight: 700; margin-bottom: 2px; }
.symptom-photo-badge span { opacity: 0.75; }
.symptom-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.symptom-thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-section); position: relative; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; display: flex; align-items: center; justify-content: center; }
.symptom-thumb.active { border-color: var(--primary); }
.symptom-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.symptom-thumb img[src]:not([src=""]) { display: block; }
.thumb-text { color: var(--text-muted); }
.symptom-thumb-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(10,79,168,0.80); color: #fff; font-weight: 600; text-align: center; padding: 5px 4px; }
.symptom-right { display: flex; flex-direction: column; gap: 8px; }
.symptom-item { background: var(--bg-light); border-radius: var(--radius); padding: 18px 20px; border-left: 3px solid var(--accent); cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.symptom-item:hover, .symptom-item.active { background: var(--primary-light); border-left-color: var(--primary); box-shadow: var(--shadow); }
.symptom-item.alert { border-left-color: var(--red); background: #fff9f9; }
.symptom-item.alert:hover, .symptom-item.alert.active { background: var(--red-light); }
.symptom-content strong { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.symptom-content span { color: var(--text-muted); line-height: 1.65; }
.alert-badge { display: inline-block; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 1px 7px; border-radius: 2px; margin-bottom: 5px; letter-spacing: 1px; }
.symptom-warn { margin-top: 12px; }
.symptom-warn-box { background: var(--red-light); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 22px; }
.warn-title { font-weight: 700; color: var(--red); margin-bottom: 5px; }
.symptom-warn-box p { color: #c0392b; line-height: 1.75; }

/* 04. 부위별 통증 차이 */
.location-section { background: var(--bg-section); padding-bottom: 72px; }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.location-card-img { width: 100%; aspect-ratio: 1; }
.location-card-body { padding: 18px 18px 22px; }
.location-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 8px; letter-spacing: 0.5px; }
.location-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.location-card ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.location-card ul li { color: var(--text-mid); padding-left: 12px; position: relative; line-height: 1.55; }
.location-card ul li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }

/* 05. 결석 크기별 증상 */
.size-section { background: var(--white); padding-bottom: 72px; }
.size-table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; }
.size-table th { background: var(--primary); color: #fff; padding: 14px 18px; text-align: left; font-weight: 700; }
.size-table th:first-child { border-radius: 4px 0 0 0; }
.size-table th:last-child { border-radius: 0 4px 0 0; }
.size-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-mid); vertical-align: top; line-height: 1.65; }
.size-table tr:last-child td { border-bottom: none; }
.size-table tr:nth-child(even) td { background: var(--bg-light); }
.size-badge { display: inline-block; padding: 3px 10px; border-radius: 2px; font-weight: 700; }
.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); }

/* 06. 자가진단 체크리스트 */
.check-section { background: var(--bg-section); padding-bottom: 72px; }
.check-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-group h3 { font-weight: 800; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.check-group.red h3 { border-color: var(--red); }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; user-select: none; border: 1px solid var(--border); transition: border-color 0.2s; }
.check-item:hover { border-color: var(--accent); }
.check-item.checked { border-color: var(--primary); background: var(--primary-light); }
.check-item.checked-alert { border-color: var(--red); background: var(--red-light); }
.check-box { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 2px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.check-item.checked .check-box { background: var(--primary); border-color: var(--primary); }
.check-item.checked-alert .check-box { background: var(--red); border-color: var(--red); }
.check-box::after { content: ''; display: none; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px, -1px); }
.check-item.checked .check-box::after,
.check-item.checked-alert .check-box::after { display: block; }
.check-item span { color: var(--text-mid); line-height: 1.6; }
.check-result { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; display: none; }
.check-result.show { display: block; }
.check-result.normal { background: var(--green-light); color: var(--green); }
.check-result.caution { background: #fff3e0; color: #e67e22; }
.check-result.urgent { background: var(--red-light); color: var(--red); }

/* CTA */
.cta-section { background: linear-gradient(135deg, #0a2a5e 0%, #0a4fa8 100%); padding: 72px 20px; text-align: center; }
.cta-section h2 { font-size: clamp(26px, 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: 15px 44px; 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: 960px) {
  .cause-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .prevention-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .inner { padding: 0 20px; }
  .intro-grid, .symptom-layout, .check-layout { grid-template-columns: 1fr; gap: 32px; }
  .symptom-photo { position: static; }
  .symptom-photo-main { aspect-ratio: 16/9; }
  .hero-inner { padding: 56px 24px; }
  .hero-deco { display: none; }
  .sec-head { padding: 52px 20px 36px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cause-prevention { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .cause-grid, .location-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

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

/* ── 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); }
