/* ========== case-study.css — 케이스 스터디 공통 CSS ========== */

:root {
  --primary: #1B4965;
  --accent: #5FA8D3;
  --accent-light: #F0F7FA;
  --text: #1A1A2E;
  --text-gray: #555;
  --border: #D0E4EF;
  --success: #2D936C;
  --warning: #E07A24;
  --table-header: #1B4965;
  --table-alt: #F5FAFE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 메인 컨테이너 ── */
.case-study {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  word-break: keep-all;
}

/* ── Header ── */
.case-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--accent);
}
.case-header .badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.case-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 8px;
}
.case-header .subject {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}
.case-header .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-header .tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.free-badge {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  margin-right: 6px;
}

/* ── Sections ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 44px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.section-title:first-of-type {
  margin-top: 0;
}

h3.sub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 10px;
}

h4.dx-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 6px;
}

/* ── Text ── */
p { margin-bottom: 12px; }
.indent { padding-left: 16px; }
.quote-s {
  color: #2C5F7C;
  font-style: italic;
  font-weight: 500;
}
strong { font-weight: 700; }

/* ── Info Box ── */
.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0;
  line-height: 1.9;
}
.info-box strong { color: var(--primary); }

.pathophys-box {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
  font-size: 14px;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  /* 가로 스크롤바 숨기기 (기능은 유지) */
  scrollbar-width: none; /* 파이어폭스 */
  -ms-overflow-style: none; /* IE, 엣지 */
}
.table-wrap::-webkit-scrollbar {
  display: none; /* 크롬, 사파리, 오페라 */
}
table {
  width: 100%;
  min-width: 650px; /* 테이블 최소 너비 보장 -> 초과 시 가로 스크롤 활성화 */
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.6;
}
thead th {
  background: var(--table-header);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 10px 12px;
  white-space: nowrap;
}
tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:nth-child(even) { background: var(--table-alt); }
tbody tr:last-child td { border-bottom: none; }

/* ── Eval Items ── */
.eval-item {
  padding: 10px 16px;
  margin: 6px 0;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid var(--border);
  font-size: 14px;
}
.eval-item.good { border-left-color: var(--success); }
.eval-item.ongoing { border-left-color: var(--warning); }
.status-good { color: var(--success); font-weight: 700; }
.status-ongoing { color: var(--warning); font-weight: 700; }

/* ── Lists ── */
.edu-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.edu-list li {
  padding: 10px 16px;
  margin-bottom: 8px;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
}
.edu-list li strong { color: var(--primary); }

.point-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.point-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
}
.point-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ── Bottom Guide Banner ── */
.guide-banner {
  margin-top: 48px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #1B4965 0%, #2D7AA3 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}
.guide-banner .count {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}
.guide-banner .count span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
}
.guide-banner .desc {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 4px;
  line-height: 1.6;
}
.guide-banner .sub {
  font-size: 13px;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .case-study { padding: 20px 16px; font-size: 14px; }
  .case-header h1 { font-size: 22px; }
  .section-title { font-size: 18px; }
  table { font-size: 12.5px; }
  thead th, tbody td { padding: 7px 8px; }
}
