﻿/* ============================================================
   서브 페이지 전용 스타일 (sub.css)
   Bootstrap 5 기반, style.css 이후 로드
   ============================================================ */

/* 본문 바로가기 (웹접근성) */
.skip-nav {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #FFD600;
  outline-offset: 2px;
}

/* 전역 포커스 스타일 (웹접근성) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   서브 레이아웃
   ============================================================ */
#subWrap {
  padding: 48px 0 80px;
  background: #fff;
  overflow: visible;
}

#subWrap > .inner-wrap {
  overflow: visible;
}

.sub-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

/* ============================================================
   LNB — 테마 색상 변수 (서브 비주얼과 동일 팔레트)
   ============================================================ */
.lnb--1 {
  --sub-visual-bg:        #E6ECF8;
  --sub-visual-accent:    rgba(58, 123, 213, 0.26);
  --sub-visual-accent-soft: rgba(58, 123, 213, 0.08);
  --lnb-title-bg:         #1d4ed8;
  --lnb-text:             #1e3a6e;
  --lnb-text-active:      #1d4ed8;
  --lnb-border:           rgba(58, 123, 213, 0.14);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #1d4ed8;
}
.lnb--2 {
  --sub-visual-bg:        #E1E7FF;
  --sub-visual-accent:    rgba(88, 101, 242, 0.26);
  --sub-visual-accent-soft: rgba(88, 101, 242, 0.08);
  --lnb-title-bg:         #4338ca;
  --lnb-text:             #312e81;
  --lnb-text-active:      #4338ca;
  --lnb-border:           rgba(88, 101, 242, 0.14);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #4338ca;
}
.lnb--3 {
  --sub-visual-bg:        #E2F6DA;
  --sub-visual-accent:    rgba(76, 158, 92, 0.26);
  --sub-visual-accent-soft: rgba(76, 158, 92, 0.08);
  --lnb-title-bg:         #15803d;
  --lnb-text:             #14532d;
  --lnb-text-active:      #15803d;
  --lnb-border:           rgba(76, 158, 92, 0.16);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #15803d;
}
.lnb--4 {
  --sub-visual-bg:        #FEEAEB;
  --sub-visual-accent:    rgba(230, 96, 96, 0.26);
  --sub-visual-accent-soft: rgba(230, 96, 96, 0.08);
  --lnb-title-bg:         #dc2626;
  --lnb-text:             #7f1d1d;
  --lnb-text-active:      #dc2626;
  --lnb-border:           rgba(230, 96, 96, 0.14);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #dc2626;
}
.lnb--5 {
  --sub-visual-bg:        #CBE9F8;
  --sub-visual-accent:    rgba(36, 120, 196, 0.26);
  --sub-visual-accent-soft: rgba(36, 120, 196, 0.10);
  --lnb-title-bg:         #0369a1;
  --lnb-text:             #0c2d4e;
  --lnb-text-active:      #0369a1;
  --lnb-border:           rgba(36, 120, 196, 0.16);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #0369a1;
}
.lnb--6 {
  --sub-visual-bg:        #FEF8DA;
  --sub-visual-accent:    rgba(214, 168, 48, 0.30);
  --sub-visual-accent-soft: rgba(214, 168, 48, 0.10);
  --lnb-title-bg:         #b45309;
  --lnb-text:             #451a03;
  --lnb-text-active:      #b45309;
  --lnb-border:           rgba(214, 168, 48, 0.20);
  --lnb-hover-bg:         rgba(255, 255, 255, 0.60);
  --lnb-active-bg:        rgba(255, 255, 255, 0.88);
  --lnb-active-border:    #b45309;
}

/* ============================================================
   LNB (좌측 세로 서브 메뉴)
   ============================================================ */
.lnb {
  flex: 0 0 260px;
  width: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  /* 배경: 서브 비주얼과 동일한 색상 + 우하단 accent glow */
  background:
    radial-gradient(ellipse at 110% 108%, var(--sub-visual-accent, rgba(58,123,213,0.24)) 0%, transparent 46%),
    radial-gradient(circle at 92% 4%, var(--sub-visual-accent-soft, rgba(58,123,213,0.08)) 0%, transparent 38%),
    var(--sub-visual-bg, #E7EDF8);
  box-shadow:
    0 8px 28px rgba(15, 35, 70, 0.10),
    0 1px 4px rgba(15, 35, 70, 0.06);
  max-height: min(560px, calc(100vh - 220px));
}

/* 장식 링(우상단/우하단) 제거 */

/* ============================================================
   LNB 모바일 바 (기본 숨김, ≤1200px 에서만 노출)
   ============================================================ */
.lnb-bar { display: none; }

.lnb-title {
  background: var(--lnb-title-bg, var(--color-primary));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 17px 20px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.lnb-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0 14px;
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

/* 스크롤바 스타일 */
.lnb-menu::-webkit-scrollbar {
  width: 4px;
}
.lnb-menu::-webkit-scrollbar-track {
  background: transparent;
}
.lnb-menu::-webkit-scrollbar-thumb {
  background: var(--sub-visual-accent, rgba(58,123,213,0.3));
  border-radius: 2px;
}

.lnb-menu > .lnb-depth2-item {
  display: block;
  width: 100%;
  position: relative;
}

/* 구분선: 인접한 항목 사이 */
.lnb-menu > .lnb-depth2-item + .lnb-depth2-item {
  border-top: 1px solid var(--lnb-border, rgba(58, 123, 213, 0.12));
}

/* Depth2 버튼 (토글, 미사용이나 fallback) */
.lnb-depth2-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 13px 20px 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lnb-text, #1e3a6e);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.lnb-depth2-btn:hover {
  background: var(--lnb-hover-bg, rgba(255,255,255,0.6));
  color: var(--lnb-text-active, var(--color-primary));
}

/* Depth2 링크 (2DEPTH 평면) */
.lnb-depth2-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lnb-text, #1e3a6e);
  background: transparent;
  border-left: 3px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease,
    border-left-color 0.18s ease;
  line-height: 1.5;
  white-space: normal;
  word-break: keep-all;
  min-height: 46px;
  letter-spacing: -0.2px;
}

/* 아이템 앞 점 인디케이터 */
.lnb-depth2-link::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.18s, transform 0.18s;
}

.lnb-depth2-link:hover {
  background: transparent;
  color: var(--lnb-text-active, var(--color-primary));
  padding-left: 22px;
  border-left-color: var(--lnb-active-border, var(--color-primary));
}
.lnb-depth2-link:hover::before {
  opacity: 1;
  transform: scale(1.4);
}
.lnb-depth2-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.lnb-depth2-item.is-active > .lnb-depth2-link,
.lnb-depth2-link.active {
  background: transparent;
  color: var(--lnb-text-active, var(--color-primary));
  font-weight: 700;
  padding-left: 22px;
  border-left-color: var(--lnb-active-border, var(--color-primary));
}
.lnb-depth2-item.is-active > .lnb-depth2-link::before,
.lnb-depth2-link.active::before {
  opacity: 1;
  transform: scale(1.4);
}
.lnb-depth2-item.is-active > .lnb-depth2-link::after,
.lnb-depth2-link.active::after {
  opacity: 1;
  transform: translateX(0);
}

/* 우측 › 화살표 */
.lnb-depth2-link::after {
  content: '\F285'; /* bi-chevron-right */
  font-family: 'bootstrap-icons';
  font-size: 13px;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
  flex-shrink: 0;
}

.lnb-arrow {
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* has-children: 호버 시 우측 chevron-right 숨김 (자식 펼침 화살표와 중복 방지) */
.lnb-depth2-item.has-children > .lnb-depth2-link::after { content: none; }

/* 자식 펼침 chevron-down 회전 */
.lnb-depth2-item.has-children > .lnb-depth2-link .lnb-arrow {
  transform: rotate(0deg);
}
.lnb-depth2-item.is-open > .lnb-depth2-link .lnb-arrow {
  transform: rotate(180deg);
}

/* ============================================================
   Depth3 (재귀 렌더 — 활성 트레일에 있을 때만 출력됨)
   ============================================================ */
.lnb-depth3 {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--lnb-border, rgba(58,123,213,0.12));
}
.lnb-depth3-item {
  display: block;
  width: 100%;
  position: relative;
}
.lnb-depth3-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 20px 9px 34px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lnb-text, #1e3a6e);
  background: transparent;
  border-left: 3px solid transparent;
  transition: color 0.18s, background 0.18s, padding-left 0.18s, border-left-color 0.18s;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.lnb-depth3-link::before {
  content: '·';
  margin-right: 4px;
  opacity: 0.55;
  font-weight: 700;
}
.lnb-depth3-link:hover {
  color: var(--lnb-text-active, var(--color-primary));
  background: rgba(255,255,255,0.6);
  padding-left: 38px;
}
.lnb-depth3-item.is-active > .lnb-depth3-link,
.lnb-depth3-link.active {
  color: var(--lnb-text-active, var(--color-primary));
  font-weight: 700;
  background: rgba(255,255,255,0.7);
  border-left-color: var(--lnb-active-border, var(--color-primary));
}
.lnb-depth3-item.has-children > .lnb-depth3-link .lnb-arrow {
  transform: rotate(0deg);
}
.lnb-depth3-item.is-open > .lnb-depth3-link .lnb-arrow {
  transform: rotate(180deg);
}

/* ============================================================
   Depth4 (재귀 렌더 — 활성 트레일에 있을 때만 출력됨)
   ============================================================ */
.lnb-depth4 {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px;
  background: rgba(255, 255, 255, 0.30);
}
.lnb-depth4-item {
  display: block;
  width: 100%;
}
.lnb-depth4-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 20px 7px 50px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lnb-text, #1e3a6e);
  opacity: 0.92;
  background: transparent;
  border-left: 3px solid transparent;
  transition: color 0.18s, background 0.18s, padding-left 0.18s, opacity 0.18s, border-left-color 0.18s;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.lnb-depth4-link::before {
  content: '–';
  margin-right: 4px;
  opacity: 0.55;
}
.lnb-depth4-link:hover {
  color: var(--lnb-text-active, var(--color-primary));
  background: rgba(255,255,255,0.55);
  opacity: 1;
  padding-left: 54px;
}
.lnb-depth4-item.is-active > .lnb-depth4-link,
.lnb-depth4-link.active {
  color: var(--lnb-text-active, var(--color-primary));
  font-weight: 700;
  opacity: 1;
  background: rgba(255,255,255,0.7);
  border-left-color: var(--lnb-active-border, var(--color-primary));
}

/* ============================================================
   서브 본문 영역
   ============================================================ */
.sub-content {
  flex: 1;
  min-width: 0;
}

/* 페이지 헤더 (브레드크럼 + 유틸) */
.sub-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* 브레드크럼 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-sub, #555);
}
.breadcrumb-nav a {
  color: var(--color-text-sub, #555);
  transition: color 0.2s;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb-nav a:hover {
  color: var(--color-primary);
}
.breadcrumb-sep {
  color: #ccc;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb-current {
  color: var(--color-primary);
  font-weight: 500;
}

/* 유틸 버튼 (즐겨찾기, 공유, 인쇄) */
.sub-page-utils {
  display: flex;
  gap: 6px;
}
.page-util-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text-sub, #555);
  cursor: pointer;
  transition: all 0.2s;
}
.page-util-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 콘텐츠 제목 */
.content-title {
  font-size: 30px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.content-lead {
  font-size: 16px;
  color: var(--color-text-sub, #555);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* 섹션 구분 */
.stat-section,
.content-section {
  margin-bottom: 48px;
}

/* 섹션 소제목 */
.content-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.4;
}

.content-section p {
  font-size: 16px;
  color: var(--color-text, #1A1A1A);
  line-height: 1.85;
  margin-bottom: 12px;
}

.content-subtitle {
  font-size: 17px;
  border-left-width: 3px;
  margin-top: 28px;
}

/* 강조 박스 */
.info-box {
  background: #F0F5FF;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--color-text, #1A1A1A);
  line-height: 1.75;
  margin: 16px 0;
}
.info-box a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 항목 리스트 */
.info-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}
.info-list li {
  font-size: 16px;
  color: var(--color-text, #1A1A1A);
  padding: 7px 0 7px 20px;
  position: relative;
  line-height: 1.65;
  border-bottom: 1px solid #F3F5F8;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary, #5BB5A2);
}

/* Q&A 박스 */
.qa-box {
  background: #F8F8F8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid #ECEEF2;
}
.qa-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.qa-a {
  font-size: 15px;
  color: var(--color-text, #1A1A1A);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   탭 메뉴 (sub-tabs)
   ============================================================ */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 32px;
  gap: 0;
}

.sub-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-sub, #555);
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  min-height: 44px;
}
.sub-tab-btn:hover {
  color: var(--color-primary);
}
.sub-tab-btn.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.sub-tab-panel {
  display: none;
}
.sub-tab-panel.active {
  display: block;
}

/* ============================================================
   통계 카드 그리드
   ============================================================ */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 20px rgba(58, 123, 213, 0.12);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.stat-card-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-card-label {
  font-size: 13px;
  color: var(--color-text-sub, #555);
  margin-bottom: 6px;
  line-height: 1.4;
}

.stat-card-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-sub, #555);
}

.stat-card-desc {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================================
   데이터 테이블
   ============================================================ */
.data-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.data-table caption {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-align: left;
  padding: 14px 16px 10px;
  caption-side: top;
  border-bottom: 2px solid var(--color-primary);
}

.data-table th {
  background: #F0F4FA;
  color: var(--color-text, #1A1A1A);
  font-weight: 600;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--color-border);
  font-size: 13px;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--color-border);
  color: var(--color-text, #1A1A1A);
  font-size: 14px;
}

.data-table tbody th {
  background: #FAFBFD;
  text-align: left;
  font-weight: 500;
}

.data-table tbody tr:nth-child(even) td {
  background: #FAFBFD;
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: #EEF4FF;
}

.data-table td.highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* 자료 출처 */
.data-source {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ============================================================
   GNB active 표시 (서브 페이지)
   — translateX(-50%) 반드시 유지 (style.css 밑줄 중앙 정렬과 결합)
   ============================================================ */
.gnb-item.active .gnb-link {
  color: var(--color-primary);
}
.gnb-item.active .gnb-link::after {
  width: 70%;
  transform: translateX(-50%);
}

/* ============================================================
   반응형
   ============================================================ */

/* 1200px 이하: LNB 상단 전체폭 */
@media (max-width: 1200px) {
  .sub-container {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .sub-content { width: 100%; min-width: 0; }

  /* LNB 컨테이너 — 컴팩트 */
  .lnb {
    width: 100%;
    flex: none;
    max-height: none;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  /* 데스크탑 트리 숨김 */
  .lnb-title,
  .lnb > .lnb-depth2,
  .lnb > .lnb-menu {
    display: none !important;
  }

  /* ── 모바일 가로 바 (로고 청록 톤 그라데이션) ── */
  .lnb-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: linear-gradient(135deg, #4DC2C2 0%, #2D9B9B 100%);
    border-radius: 12px;
    overflow: visible;
    position: relative;
    box-shadow: 0 6px 18px rgba(45, 155, 155, 0.28);
    min-height: 52px;
  }

  /* 홈 아이콘 — 약간 더 짙은 박스 */
  .lnb-bar-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    background: rgba(0, 0, 0, 0.20);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    transition: background 0.18s;
  }
  .lnb-bar-home:hover {
    background: rgba(0, 0, 0, 0.30);
    color: #fff;
  }

  /* 패널명 — 단순 표시 (홈 다음) */
  .lnb-bar-panel-name {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  }

  /* 드롭다운 그룹 */
  .lnb-bar-group {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: 0;
  }

  /* 트리거 버튼 */
  .lnb-bar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
    transition: background 0.18s, color 0.18s;
  }
  .lnb-bar-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .lnb-bar-group.is-open .lnb-bar-trigger {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
  }
  .lnb-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  .lnb-bar-chevron {
    font-size: 12px;
    transition: transform 0.22s ease;
    flex-shrink: 0;
  }
  .lnb-bar-group.is-open .lnb-bar-chevron {
    transform: rotate(180deg);
  }

  /* 드롭다운 카드 — 동일 청록 그라데이션 */
  .lnb-bar-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    background: linear-gradient(180deg, #4DC2C2 0%, #2D9B9B 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 36px rgba(45, 155, 155, 0.36);
    z-index: 50;
    overflow: hidden;
    animation: lnbBarFadeIn 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .lnb-bar-dropdown[hidden] { display: none; }

  @keyframes lnbBarFadeIn {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .lnb-bar-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
  }
  .lnb-bar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.2px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background 0.16s, color 0.16s, padding-left 0.16s;
  }
  .lnb-bar-link > span {
    flex: 1 1 auto;
    min-width: 0;
  }
  .lnb-bar-link > .bi-chevron-right {
    flex-shrink: 0;
    font-size: 11px;
    opacity: 0.8;
    transition: opacity 0.16s, transform 0.16s;
  }
  .lnb-bar-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding-left: 22px;
  }
  .lnb-bar-link:hover > .bi-chevron-right {
    opacity: 1;
    transform: translateX(3px);
  }
  .lnb-bar-link.is-active {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-weight: 700;
    position: relative;
  }
  .lnb-bar-link.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #fff;
    border-radius: 0 3px 3px 0;
  }

  /* 자식(하위) 메뉴 보유 표시 */
  .lnb-bar-kid-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.2px;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
  }
  .lnb-bar-kid-badge i {
    font-size: 10px;
    opacity: 0.9;
  }
  .lnb-bar-link.has-children:hover .lnb-bar-kid-badge {
    background: rgba(255, 255, 255, 0.30);
  }
  .lnb-bar-link.is-active .lnb-bar-kid-badge {
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .stat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sub-visual-inner {
    grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1fr) minmax(100px, 0.9fr);
    gap: 8px 12px;
  }

  .sub-visual-deco {
    width: clamp(100px, 12vw, 150px);
    height: clamp(100px, 12vw, 150px);
  }
}

/* 767px 이하: 모바일 */
@media (max-width: 767px) {
  #subWrap {
    padding: 24px 0 48px;
  }
  .content-title {
    font-size: 22px;
  }

  /* LNB 바: 좁은 모바일에서 공간 절약 */
  .lnb-bar-panel-name { display: none; }
  .lnb-bar-trigger { padding: 0 12px; }
  .lnb-bar-label { max-width: 140px; }
  .lnb-bar-dropdown { max-width: calc(100vw - 32px); }
  .sub-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .sub-tab-btn {
    font-size: 15px;
    padding: 10px 14px;
  }
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card-value {
    font-size: 30px;
  }
  .content-section-title {
    font-size: 18px;
  }
  .lnb-depth2-btn,
  .lnb-depth2-link {
    padding: 12px 18px;
  }
  .lnb-depth2-link:hover,
  .lnb-depth2-item.is-active > .lnb-depth2-link,
  .lnb-depth2-link.active {
    padding-left: 21px;
  }
  .sub-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #subVisual {
    height: auto;
    min-height: 160px;
  }

  /* sub-visual 모바일 정렬은 파일 끝의 별도 미디어쿼리에서 처리 (cascade 우선) */

  .sub-visual-media {
    grid-column: 1;
    justify-content: center;
    align-self: center;
    height: auto;
  }

  .sub-visual-illust {
    height: clamp(80px, calc(34vw - 80px), 120px);
    max-width: min(72vw, 220px);
  }

  .sub-external-frame {
    min-height: 720px;
  }
}

/* ============================================================
   서브 비주얼 (메인 비주얼 톤 연계)
   ============================================================ */
body.page-sub {
  background: #fff;
}

/* 서브 페이지 — 주메뉴(GNB) 흰색 배경 + 어두운 로고·메뉴 */
body.page-sub #header {
  background: #fff;
  box-shadow: 0 1px 0 var(--color-border);
}

body.page-sub #header.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--color-border);
}

body.page-sub #header .header-logo img {
  filter: none;
}

body.page-sub #header:not(.scrolled) .gnb-link,
body.page-sub #header.scrolled .gnb-link {
  color: var(--color-heading);
}

body.page-sub #header:not(.scrolled) .gnb-link::after,
body.page-sub #header.scrolled .gnb-link::after {
  background: var(--color-primary);
}

body.page-sub #header:not(.scrolled) .gnb-item:hover .gnb-link,
body.page-sub #header:not(.scrolled) .gnb-item.is-active .gnb-link,
body.page-sub #header:not(.scrolled) .gnb-item.active .gnb-link,
body.page-sub #header.scrolled .gnb-item:hover .gnb-link,
body.page-sub #header.scrolled .gnb-item.is-active .gnb-link,
body.page-sub #header.scrolled .gnb-item.active .gnb-link {
  color: var(--color-primary);
}

body.page-sub #header:not(.scrolled) .util-btn,
body.page-sub #header.scrolled .util-btn {
  color: var(--color-muted);
  border-color: var(--color-border);
}

body.page-sub #header:not(.scrolled) .util-btn:hover,
body.page-sub #header.scrolled .util-btn:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

#subVisual {
  position: relative;
  margin-top: 0;
  /* 기존 대비 약 80px 낮춤: clamp(240px,30vw,320px) → 아래 값 */
  height: clamp(160px, calc(30vw - 80px), 240px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--sub-visual-bg, #E7EDF8);
  isolation: isolate;
}

#subVisual::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 좌측 장식 구역만 — 이미지 영역(우측)은 단색 배경 유지 */
  background: linear-gradient(105deg, var(--sub-visual-accent-soft, rgba(58, 123, 213, 0.06)) 0%, transparent 36%);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 78%);
  mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 78%);
}

#subVisual::after {
  display: none;
}

.sub-visual--1 {
  --sub-visual-bg: #E6ECF8; /* sub_visual_01.png 배경과 동일 */
  --sub-visual-accent: rgba(58, 123, 213, 0.28);
  --sub-visual-accent-soft: rgba(58, 123, 213, 0.08);
}
.sub-visual--2 {
  --sub-visual-bg: #E1E7FF; /* sub_visual_02.png 배경과 동일 */
  --sub-visual-accent: rgba(88, 101, 242, 0.28);
  --sub-visual-accent-soft: rgba(88, 101, 242, 0.08);
}
.sub-visual--3 {
  --sub-visual-bg: #E2F6DA; /* sub6 배경색 적용 */
  --sub-visual-accent: rgba(76, 158, 92, 0.28);
  --sub-visual-accent-soft: rgba(76, 158, 92, 0.08);
}
.sub-visual--4 {
  --sub-visual-bg: #FEEAEB; /* sub_visual_04.png 배경과 동일 */
  --sub-visual-accent: rgba(230, 96, 96, 0.28);
  --sub-visual-accent-soft: rgba(230, 96, 96, 0.08);
}
.sub-visual--5 {
  --sub-visual-bg: #CBE9F8; /* 메가메뉴 panel 5 와 동일한 소프트 파스텔 */
  --sub-visual-accent: rgba(36, 120, 196, 0.26);
  --sub-visual-accent-soft: rgba(36, 120, 196, 0.10);
}
.sub-visual--6 {
  --sub-visual-bg: #FEF8DA; /* sub3 배경색 적용 */
  --sub-visual-accent: rgba(214, 168, 48, 0.32);
  --sub-visual-accent-soft: rgba(214, 168, 48, 0.10);
}

/* 좌측 장식 도형 */
.sub-visual-deco {
  position: absolute;
  left: max(24px, calc((100% - var(--max-width)) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 14vw, 210px);
  height: clamp(140px, 14vw, 210px);
  pointer-events: none;
  z-index: 1;
}

.sub-visual-shape {
  position: absolute;
  display: block;
}

.sub-visual-shape--ring {
  top: 8%;
  left: 0;
  width: clamp(88px, 9vw, 120px);
  height: clamp(88px, 9vw, 120px);
  border: 3px solid var(--sub-visual-accent);
  border-radius: 50%;
  opacity: 0.85;
}

.sub-visual-shape--orb {
  bottom: 10%;
  left: 42%;
  width: clamp(36px, 4vw, 52px);
  height: clamp(36px, 4vw, 52px);
  border-radius: 50%;
  background: var(--sub-visual-accent);
  opacity: 0.55;
}

.sub-visual-shape--bar {
  top: 18%;
  left: 58%;
  width: clamp(54px, 6vw, 72px);
  height: clamp(12px, 1.2vw, 16px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sub-visual-accent) 0%, transparent 100%);
  transform: rotate(-28deg);
  opacity: 0.7;
}

.sub-visual-shape--dots {
  bottom: 22%;
  left: 8%;
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  background-image:
    radial-gradient(circle, var(--sub-visual-accent) 2px, transparent 2.5px);
  background-size: 14px 14px;
  opacity: 0.45;
}

.sub-visual-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100%;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(280px, 680px) minmax(120px, 1fr);
  align-items: center;
  gap: 12px 24px;
}

.sub-visual-copy {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 680px;
  justify-self: center;
  text-align: center;
}

.sub-visual-dept {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--sub-visual-accent);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sub-visual-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.sub-visual-breadcrumb {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sub-visual-breadcrumb a {
  color: var(--color-muted);
  transition: color 0.2s;
}

.sub-visual-breadcrumb a:hover {
  color: var(--color-primary);
}

.sub-visual-breadcrumb .breadcrumb-current {
  color: var(--color-heading);
  font-weight: 600;
}

.sub-visual-breadcrumb .breadcrumb-sep {
  color: var(--color-border);
}

.sub-visual-media {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--sub-visual-bg);
}

.sub-visual-illust {
  position: static;
  display: block;
  height: clamp(100px, calc(20vw - 80px), 200px);
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  /* 이미지에 CSS 필터(밝기/대비) 미적용 — 원본 색상 유지 */
}

.sub-external-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 18px 22px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.sub-external-note p {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
}

.sub-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.sub-external-link:hover {
  background: #2f6bc4;
  color: #fff;
  transform: translateY(-1px);
}

.sub-external-frame {
  width: 100%;
  min-height: 960px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

/* 게시판 목록 */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.board-count {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
}

.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-search select,
.board-search input {
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
}

.board-search input { min-width: 180px; }

.board-search-btn {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.board-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--color-heading);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.board-table th,
.board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  text-align: center;
  vertical-align: middle;
}

.board-table th {
  background: var(--color-bg-light);
  font-weight: 600;
  color: var(--color-heading);
}

.board-table td.title-cell {
  text-align: left;
}

.board-table td.title-cell a {
  color: var(--color-text);
  transition: color 0.2s;
}

.board-table td.title-cell a:hover {
  color: var(--color-primary);
}

.board-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.board-badge--notice {
  background: rgba(232, 76, 76, 0.12);
  color: var(--color-accent);
}

.board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.board-pagination .page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.board-pagination .page-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* 원문(공식 홈페이지)으로 이어지는 페이지네이션 */
.board-pagination.board-pagination--external {
  flex-wrap: wrap;
}

.board-pagination.board-pagination--external a.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.board-pagination.board-pagination--external a.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.board-pagination.board-pagination--external a.page-btn[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.board-pagination-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

.board-pagination-hint a {
  color: var(--color-primary);
  font-weight: 600;
}

.event-live-note {
  margin: 8px 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(58, 123, 213, 0.06);
  border: 1px solid rgba(58, 123, 213, 0.12);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
}

.event-live-note a {
  color: var(--color-primary);
  font-weight: 600;
}

.event-cate-inline {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(58, 123, 213, 0.12);
  color: var(--color-primary);
  vertical-align: middle;
  white-space: nowrap;
}
.check-form {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.check-form-section {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--color-border);
}

.check-form-section:last-child {
  border-bottom: none;
}

.check-form-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
}

.check-form-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--color-muted);
}

.check-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-type-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-light);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.check-type-item:has(input:checked) {
  border-color: var(--color-primary);
  background: #eef4fd;
}

.check-type-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.check-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.check-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}

.check-field input,
.check-field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
}

.check-field--full { grid-column: 1 / -1; }

.check-radio-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.check-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
}

.check-privacy {
  max-height: 180px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-light);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 14px;
}

.check-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.check-submit-wrap {
  padding-top: 8px;
  text-align: center;
}

.check-submit-btn {
  min-width: 200px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.check-submit-btn:hover {
  background: #2f6bc4;
  transform: translateY(-1px);
}

/* 교육/행사 목록 */
.event-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.event-filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.event-filter-btn.is-active,
.event-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #eef4fd;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  border-color: rgba(58, 123, 213, 0.35);
  box-shadow: 0 8px 24px rgba(58, 123, 213, 0.08);
}

.event-card.is-hidden { display: none; }

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.event-badge--open { background: #e8f5ee; color: #1d8a55; }
.event-badge--wait { background: #eef4fd; color: var(--color-primary); }
.event-badge--closed { background: #f3f4f6; color: #6b7280; }

.event-badge--cal {
  background: rgba(58, 123, 213, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(58, 123, 213, 0.22);
}

.event-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.45;
}

.event-card-meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.event-card-meta strong {
  color: var(--color-text);
  font-weight: 600;
}

.event-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.event-card-count {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 600;
}

.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .check-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-form-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card-actions { align-items: flex-start; }
}

@media (max-width: 767px) {
  .check-type-grid { grid-template-columns: 1fr; }

  /* ── 서브 비주얼: 모바일 정렬 (base 룰 이후 cascade 우선) ── */
  /* 비주얼 이미지(우측 일러스트) 숨김 */
  .sub-visual-illust { display: none; }

  /* breadcrumb 숨김 */
  .sub-visual-breadcrumb { display: none; }

  /* 데코 도형 — 화면 좌측에 작게, 잘리지 않게 */
  .sub-visual-deco {
    left: 0;
    width: 130px;
    height: 130px;
    opacity: 0.55;
    z-index: 0;
  }

  /* inner: flex로 단순화하고 전체 폭 가운데 정렬 */
  .sub-visual-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    padding: 24px 0;
    gap: 12px;
    text-align: center;
    position: relative;
    z-index: 3;
  }

  .sub-visual-copy {
    grid-column: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    justify-self: stretch;
    text-align: center;
  }

  .sub-visual-media { display: none; }

  .sub-visual-title {
    font-size: clamp(20px, 5.6vw, 26px);
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
  }

  /* 본문 박스 잘림 방지 안전망 */
  .sub-content { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
}

/* 인쇄 스타일 */
@media print {
  #topbar, #header, #megaMenu,
  #searchOverlay, #allMenuOverlay,
  .lnb, .sub-page-utils, .sub-visual-utils,
  #footer { display: none !important; }

  #subVisual {
    display: block !important;
    height: auto;
    margin: 0;
    padding: 16px 0;
    background: #fff !important;
  }

  #subVisual::before,
  #subVisual::after,
  .sub-visual-deco,
  .sub-visual-illust { display: none !important; }

  .sub-visual-title {
    color: #111 !important;
    font-size: 22pt;
    text-shadow: none;
  }

  .sub-visual-dept,
  .sub-visual-breadcrumb,
  .sub-visual-breadcrumb a,
  .sub-visual-breadcrumb .breadcrumb-current {
    color: #555 !important;
  }

  .sub-container { display: block; }
  .sub-content { width: 100%; }
  .content-title { font-size: 22pt; }
  .content-section-title { font-size: 14pt; }
  .stat-cards-grid { grid-template-columns: repeat(3, 1fr); }
  a[href]::after { content: none; }
}

/* ============================================================
   prefers-reduced-motion (KWCAG 2.3.3)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sub-visual-shape,
  .sub-visual-illust,
  .lnb-link,
  .breadcrumb-nav a {
    animation: none !important;
    transition: none !important;
  }
}
