/* ==========================================================================
   신용점수 신용등급 점수표 - 표준 디자인 시스템 (Vanilla CSS)
   - 전 기기(PC·모바일) 1컬럼 중앙 정렬 표준 (본문 최대 너비 800px)
   - 헤더 확장 컨테이너 (최대 너비 1200px) 및 반응형 모바일 드로어
   - 한국어 단어 단위 줄바꿈 전역 적용 (word-break: keep-all)
   - 시각적 위계 & 역할별 카드 구분 (Info, Warning, Success, Danger)
   - 높이 제한 없는 auto 반응형 디스플레이 광고 래퍼 (.ad-placement)
   - 인터랙티브 도구 4종 전용 폼, 버튼, 결과 카드 스타일링
   - FAQ 아코디언 컴포넌트 & 관련 링크 넥서스 카드
   - 전면 현재 창 열기 원칙 준수
   ========================================================================== */

/* --- 1. CSS 변수 & 디자인 토큰 --- */
:root {
  --primary: #1e40af;        /* 신뢰의 금융 딥 블루 */
  --primary-hover: #1d4ed8;
  --primary-dark: #0f172a;   /* 슬레이트 블랙 */
  --primary-bg: #eff6ff;     /* 연한 소프트 블루 */
  
  --accent: #0284c7;         /* 스카이 블루 */
  --accent-hover: #0369a1;
  --accent-bg: #f0f9ff;
  
  --success: #10b981;        /* 에메랄드 그린 (우수/승인/안전) */
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;

  --warning: #f59e0b;        /* 앰버/골드 (주의 및 핵심 강조) */
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;

  --danger: #ef4444;         /* 레드 (저신용/하락/경고) */
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.09);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. 기본 리셋 & 타이포그래피 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 기본 목록 스타일 복원 */
ol {
  list-style-type: decimal;
  padding-left: 24px;
}

ul {
  list-style-type: disc;
  padding-left: 24px;
}

li {
  line-height: 1.7;
}

/* 본문 1컬럼 중앙 정렬 표준 컨테이너 (최대 너비 800px) */
.container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- 3. 공통 헤더 & 네비게이션 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  max-width: 1200px; /* 헤더 전용 확장 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--primary-hover);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.desktop-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-bg);
}

/* 모바일 햄버거 토글 버튼 */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  margin: 2.5px 0;
  transition: var(--transition);
}

/* --- 4. 모바일 드로어 (기본 상태 완전 숨김) --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-nav-header {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-bg);
  margin-bottom: 16px;
}

.mobile-nav-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-list .nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link.active {
  background-color: var(--primary-bg);
  color: var(--primary);
}

/* --- 5. 브레드크럼 --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 14px;
}

.breadcrumb-item {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* --- 6. 아티클 헤더 & 타이틀 --- */
.article-header {
  margin-bottom: 24px;
}

.date-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.date-badge.update-badge {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-sub);
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.ad-placement {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.ad-placement .ad-caption,
.ad-label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-placement ins.adsbygoogle {
  display: block;
}

/* --- 8. 본문 타이포그래피 (h2, h3, p, ol, ul) --- */
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* 본문 일반 목록 스타일링 */
.article-body ol,
.article-body ul {
  padding-left: 26px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body ul {
  list-style-type: disc;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 0.98rem;
  color: var(--text-sub);
  padding-left: 4px;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body ol > li::marker {
  color: var(--primary);
  font-weight: 800;
}

.article-body ul > li::marker {
  color: var(--primary);
}

.article-body li strong {
  color: var(--text-main);
  font-weight: 700;
}

.styled-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-sub);
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
}

/* 가이드 단계 (.guide-steps) */
.guide-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 20px 0;
}

.guide-steps > li,
.guide-steps .step-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.guide-steps > li::before,
.guide-steps .step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

/* --- 9. 카드 컴포넌트 & 그리드 --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 22px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-sub);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: #f8fafc;
}

/* 카드 내부 목록 및 요약 카드 (.card ol, .card ul) */
.article-body .card ol,
.card ol {
  list-style: none;
  counter-reset: card-ol-counter;
  padding-left: 0;
  margin: 6px 0;
}

.article-body .card ol > li,
.card ol > li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 0.96rem;
  color: var(--text-sub);
}

.article-body .card ol > li:last-child,
.card ol > li:last-child {
  margin-bottom: 0;
}

.article-body .card ol > li::before,
.card ol > li::before {
  content: counter(card-ol-counter);
  counter-increment: card-ol-counter;
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.article-body .card ul,
.card ul {
  list-style: none;
  padding-left: 0;
  margin: 6px 0;
}

.article-body .card ul > li,
.card ul > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 0.96rem;
  color: var(--text-sub);
}

.article-body .card ul > li:last-child,
.card ul > li:last-child {
  margin-bottom: 0;
}

.article-body .card ul > li::before,
.card ul > li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.6;
}

.article-body .card ol > li strong,
.card ol > li strong,
.article-body .card ul > li strong,
.card ul > li strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* 요약 하이라이트 박스 (.card.bg-light) */
.card.bg-light,
.card.bg-light.border-0 {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid var(--primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* 역할별 카드 (Role-based cards) */
.card-role-info {
  border-left: 5px solid var(--primary);
  background-color: #ffffff;
}
.card-role-warn {
  border-left: 5px solid var(--warning);
  background-color: #ffffff;
}
.card-role-danger {
  border-left: 5px solid var(--danger);
  background-color: #ffffff;
}
.card-role-success {
  border-left: 5px solid var(--success);
  background-color: #ffffff;
}

/* 공지 박스 (.notice-box) */
.notice-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.notice-info {
  background-color: var(--primary-bg);
  border: 1px solid #bfdbfe;
  color: var(--primary);
  border-left: 5px solid var(--primary);
}

.notice-warning {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-left: 5px solid var(--warning);
}

.notice-danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  border-left: 5px solid var(--danger);
}

.notice-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  border-left: 5px solid var(--success);
}

/* GEO/AEO 박스 */
.geo-box {
  background-color: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

.geo-box-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.geo-box-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* 공식 제도 안내 박스 */
.official-standard-box {
  background-color: #f1f5f9;
  border-left: 4px solid var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 30px 0;
}

/* --- 10. 표 컴포넌트 (.data-table) --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background-color: #f8fafc;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: var(--primary-bg);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- 11. 인터랙티브 도구 4종 UI --- */
.tool-section {
  margin: 28px 0;
}

.tool-section .card {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.tool-section .card.border-primary { border: 2px solid var(--primary) !important; }
.tool-section .card.border-secondary { border: 2px solid #334155 !important; }
.tool-section .card.border-success { border: 2px solid #059669 !important; }
.tool-section .card.border-info { border: 2px solid #0284c7 !important; }
.tool-section .card.border-dark { border: 2px solid #0f172a !important; }
.tool-section .card.border-warning { border: 2px solid #d97706 !important; }
.tool-section .card.border-danger { border: 2px solid #dc2626 !important; }

.tool-section .card-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* 카드 헤더 테마 & 배경색 유틸리티 */
.bg-primary {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.bg-accent {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}

.bg-secondary {
  background-color: #334155 !important;
  color: #ffffff !important;
}

.bg-success {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.bg-info {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

.bg-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

.bg-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
  color: #ffffff !important;
}

/* 카드 헤더 내 텍스트 컬러 보장 */
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-dark,
.card-header.bg-warning,
.card-header.bg-danger {
  color: #ffffff !important;
}

.card-header.bg-primary .card-title,
.card-header.bg-secondary .card-title,
.card-header.bg-success .card-title,
.card-header.bg-info .card-title,
.card-header.bg-dark .card-title,
.card-header.bg-warning .card-title,
.card-header.bg-danger .card-title {
  color: #ffffff !important;
}

/* 폼 컨트롤 */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
}

.form-row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

select.form-control {
  cursor: pointer;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 10px 20px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--text-sub);
  border: 1.5px solid #cbd5e1;
}

.btn-outline-secondary:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  height: 52px;
  padding: 12px 28px;
  font-size: 1.05rem;
}

/* 배지 (.badge) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.badge-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.badge-warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.badge-danger {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

/* 도구 결과 박스 */
.tool-result-header {
  background-color: var(--primary-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  text-align: center;
}

.result-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.stat-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- 12. 자주 묻는 질문 (FAQ 아코디언) --- */
.faq-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.section-title-wrap {
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
}

.faq-question:hover {
  color: var(--primary);
  background-color: var(--primary-bg);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: 12px;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: #f8fafc;
}

.faq-answer-inner {
  padding: 18px 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid var(--border-color);
}

/* --- 13. 연관 링크 섹션 (.related-links-section) --- */
.related-links-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.related-link-card {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  transition: var(--transition);
  height: 100%;
}

.related-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.related-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.related-card-action {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- 14. 푸터 (.site-footer) --- */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 48px 0 28px;
  margin-top: 60px;
  font-size: 0.9rem;
}

.site-footer .container {
  max-width: 1200px;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-subheading {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer {
  border-top: 1px solid #334155;
  padding-top: 20px;
  margin-top: 28px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.65;
}

/* --- 15. 부트스트랩 호환 그리드 & 유틸리티 클래스 --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

.col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-sm-3 { flex: 0 0 25%; max-width: 25%; }
.col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-dark { color: var(--text-main) !important; }
.text-white { color: #ffffff !important; }
.text-secondary, .text-muted { color: var(--text-muted) !important; }
.font-weight-bold { font-weight: 700 !important; }
.underline { text-decoration: underline !important; }
small, .small { font-size: 0.85rem !important; }

/* 배경색 & 테두리 유틸리티 */
.bg-light { background-color: #f8fafc !important; }
.bg-white { background-color: #ffffff !important; }
.bg-secondary { background-color: #334155 !important; color: #ffffff !important; }
.bg-success { background-color: #059669 !important; color: #ffffff !important; }
.bg-info { background-color: #0284c7 !important; color: #ffffff !important; }
.bg-warning { background-color: #d97706 !important; color: #ffffff !important; }
.bg-danger { background-color: #dc2626 !important; color: #ffffff !important; }

.border-0 { border: none !important; }
.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: #cbd5e1 !important; }
.border-success { border-color: #059669 !important; }
.border-info { border-color: #0284c7 !important; }
.border-warning { border-color: #d97706 !important; }
.border-danger { border-color: #dc2626 !important; }

/* 버튼 */
.btn-secondary {
  background-color: #334155;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #059669;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 마진 유틸리티 */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 36px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 36px !important; }

.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 18px !important; margin-bottom: 18px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-5 { margin-top: 36px !important; margin-bottom: 36px !important; }

.mr-2 { margin-right: 8px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* 패딩 유틸리티 */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px 8px !important; }
.p-2 { padding: 10px 14px !important; }
.p-3 { padding: 20px 24px !important; }
.p-4 { padding: 26px 30px !important; }
.p-5 { padding: 36px 40px !important; }

.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }

.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 32px !important; padding-right: 32px !important; }

.pt-3 { padding-top: 16px !important; }
.pb-2 { padding-bottom: 8px !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.h-100 { height: 100% !important; }

/* 폼 라디오/체크 인라인 */
.form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  cursor: pointer;
}
.form-check-input {
  margin-right: 6px;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- 16. 반응형 미디어 쿼리 --- */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.55rem;
  }
  
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-sm-5, .col-sm-4, .col-sm-3, .col-sm-2 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .result-stat-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-steps > li,
  .guide-steps .step-item {
    padding-left: 40px;
  }
  
  .guide-steps > li::before,
  .guide-steps .step-item::before {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .p-3 {
    padding: 16px 16px !important;
  }

  .p-4 {
    padding: 20px 18px !important;
  }

  .article-body .card ol > li,
  .card ol > li {
    padding-left: 32px;
    font-size: 0.94rem;
    margin-bottom: 14px;
  }

  .article-body .card ol > li::before,
  .card ol > li::before {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    top: 3px;
  }

  .article-body ol,
  .article-body ul {
    padding-left: 22px;
  }
}
