/* ============================================================
   전립선염 페이지 전용 컬러 오버라이드 (그린민트 계열)
   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_symptom.css — 전립선염 증상 & 원인 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* ── 01. 요로결석이란 (intro) ── */
.intro-section { background: var(--white); padding-bottom: 80px; }
.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,122,90,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(20px, 2.4vw, 28px); 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 { font-size: 17px; color: var(--text-mid); line-height: 1.95; margin-bottom: 22px; }

/* ── 02. 4가지 유형 ── */
.types-section { background: var(--bg-section); padding-bottom: 80px; }
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.type-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(10,122,90,0.14); }
.type-card-img { width: 100%; aspect-ratio: 4/3; }
.type-card-body { padding: 22px 22px 28px; }
.type-roman {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: var(--white);
  background: var(--primary); padding: 3px 10px;
  border-radius: 2px; margin-bottom: 10px;
}
.type-card.acute   .type-roman { background: var(--red); }
.type-card.chronic .type-roman { background: var(--orange); }
.type-card.cpps    .type-roman { background: var(--primary); }
.type-card.asymp   .type-roman { background: var(--text-muted); }
.type-card h4 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; line-height: 1.35; }
.type-card .type-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; font-style: italic; }
.type-card p { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.type-freq {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 2px;
}
.type-card.acute   .type-freq { background: var(--red-light);    color: var(--red); }
.type-card.chronic .type-freq { background: var(--orange-light);  color: var(--orange); }
.type-card.cpps    .type-freq { background: var(--primary-light); color: var(--primary-dark); }
.type-card.asymp   .type-freq { background: var(--bg-section);    color: var(--text-muted); }

/* 유형 비교 요약 테이블 */
.types-table-wrap { overflow-x: auto; margin-top: 36px; }
.types-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.types-table th {
  background: var(--primary); color: #fff;
  padding: 15px 20px; text-align: left; font-weight: 700; font-size: 14px;
}
.types-table th:first-child { border-radius: 4px 0 0 0; }
.types-table th:last-child  { border-radius: 0 4px 0 0; }
.types-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  color: var(--text-mid); font-size: 15px; line-height: 1.65; vertical-align: top;
}
.types-table tr:last-child td { border-bottom: none; }
.types-table tr:nth-child(even) td { background: var(--bg-light); }
.type-pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 2px; white-space: nowrap;
}
.type-pill.red    { background: var(--red-light);    color: var(--red); }
.type-pill.orange { background: var(--orange-light);  color: var(--orange); }
.type-pill.blue   { background: var(--primary-light); color: var(--primary-dark); }
.type-pill.gray   { background: var(--bg-section);    color: var(--text-muted); }

/* ── 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,122,90,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,122,90,0.88); backdrop-filter: blur(8px);
  padding: 16px 22px; color: #fff;
}
.symptom-photo-badge strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.symptom-photo-badge span   { font-size: 13px; opacity: 0.78; }
.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 { font-size: 11px; color: var(--text-muted); font-weight: 500; text-align: center; padding: 4px; }
.symptom-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,122,90,0.80); color: #fff;
  font-size: 11px; font-weight: 600; text-align: center; padding: 5px 4px;
}
/* 오른쪽: 리스트 */
.symptom-right { display: flex; flex-direction: column; gap: 10px; }
.symptom-item {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 20px 22px; 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-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.symptom-content span { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.alert-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--red); border: 1px solid var(--red);
  padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; letter-spacing: 1px;
}
/* 경고 박스 */
.symptom-warn { margin-top: 14px; }
.symptom-warn-box {
  background: var(--red-light); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 20px 26px;
}
.warn-title { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.symptom-warn-box p { font-size: 15px; color: #c0392b; line-height: 1.8; }

/* ── 04. 통증 부위별 ── */
.location-section { background: var(--bg-section); padding-bottom: 80px; }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.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: 20px 20px 24px; }
.location-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 10px;
}
.location-card h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.location-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.location-card ul li {
  font-size: 14px; color: var(--text-mid); padding-left: 14px;
  position: relative; line-height: 1.6;
}
.location-card ul li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }

/* ── 05. 원인 ── */
.cause-section { background: var(--white); padding-bottom: 80px; }
.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,122,90,0.13); }
.cause-card-img { width: 100%; aspect-ratio: 16/9; }
.cause-card-body { padding: 22px 22px 26px; border-top: 3px solid var(--primary); }
.cause-card-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.cause-card h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.cause-card p { font-size: 15px; color: var(--text-mid); line-height: 1.75; }

/* ── 06. 자가진단 체크리스트 ── */
.check-section { background: var(--bg-section); padding-bottom: 80px; }
.check-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-group h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.check-group.red h3 { border-color: var(--red); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border-radius: var(--radius); padding: 16px 18px;
  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: 20px; height: 20px; 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 { font-size: 15px; color: var(--text-mid); line-height: 1.65; }
.check-result {
  margin-top: 18px; padding: 16px 20px;
  border-radius: var(--radius); font-size: 15px; font-weight: 600; display: none;
}
.check-result.show { display: block; }
.check-result.normal  { background: var(--green-light); color: var(--green); }
.check-result.caution { background: var(--orange-light); color: var(--orange); }
.check-result.urgent  { background: var(--red-light);   color: var(--red); }

/* 스크린리더 전용 */
.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) {
  .types-grid    { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .cause-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .intro-grid, .symptom-layout, .check-layout { grid-template-columns: 1fr; gap: 32px; }
  .symptom-photo { position: static; }
  .symptom-photo-main { aspect-ratio: 16/9; }
  .prevention-grid { grid-template-columns: 1fr; }
  .cause-prevention { padding: 28px 24px; }
}
@media (max-width: 768px) {
  .types-grid    { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .cause-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .types-grid    { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
}

/* ── feature-bar 색상 오버라이드 (전립선염 그린민트) ── */
.feature-bar { background: linear-gradient(135deg, #044030 0%, #0a7a5a 100%); }
