/* ─────────────────────────────────────
   KCCI 한국신뢰도인증 — Design System
   네이비 + 골드 톤 (신뢰도 인증 기관)
   ───────────────────────────────────── */
:root {
  --kcci-navy: #0a2654;
  --kcci-navy-deep: #07193d;
  --kcci-blue: #1d4ed8;
  --kcci-blue-light: #e8f0fe;
  --kcci-gold: #c08a2a;
  --kcci-gold-light: #f5e8c8;
  --kcci-gold-bg: #fffbf2;
  --kcci-text: #1a2942;
  --kcci-text-soft: #4a5568;
  --kcci-text-mute: #8a96a3;
  --kcci-bg: #f7f9fc;
  --kcci-surface: #fff;
  --kcci-border: #e2e6ed;
  --kcci-border-soft: #eef0f3;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--kcci-text); background: var(--kcci-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--kcci-blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ─── Header (흰색 상단 + 네이비 nav 구조) ─── */
.kcci-header { background: #fff; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--kcci-border); box-shadow: 0 1px 3px rgba(10,38,84,0.06); }
.kcci-header-top { background: #fff; padding: 18px 0; border-bottom: 1px solid var(--kcci-border-soft); }
.kcci-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kcci-logo { display: flex; align-items: center; gap: 0; text-decoration: none; line-height: 1; }
.kcci-logo-img { display: block; height: 48px; width: auto; max-width: 280px; object-fit: contain; }
.kcci-header-actions { display: flex; align-items: center; gap: 12px; }
.kcci-btn-cert { display: inline-flex; align-items: center; gap: 6px; background: var(--kcci-gold); color: #fff; font-size: 13px; font-weight: 800; padding: 11px 22px; border-radius: 6px; transition: all .18s; letter-spacing: -0.01em; }
.kcci-btn-cert:hover { background: var(--kcci-navy); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,38,84,0.22); }
.kcci-btn-text { font-size: 13px; font-weight: 600; color: var(--kcci-text-soft); padding: 8px 14px; transition: color .15s; text-decoration: none; }
.kcci-btn-text:hover { color: var(--kcci-navy); }

/* ─── Nav (네이비 배경 + 흰색 폰트) ─── */
.kcci-nav { background: var(--kcci-navy); }
.kcci-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kcci-nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; }
.kcci-nav-item { position: relative; height: 56px; display: flex; align-items: center; }
.kcci-nav-link { display: inline-flex; align-items: center; gap: 6px; height: 56px; padding: 0 22px; font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -0.025em; position: relative; text-decoration: none; transition: color .2s; }
.kcci-nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--kcci-gold); transition: width .25s ease; }
.kcci-nav-item:hover > .kcci-nav-link, .kcci-nav-item.is-active > .kcci-nav-link { color: var(--kcci-gold); }
.kcci-nav-item:hover > .kcci-nav-link::after, .kcci-nav-item.is-active > .kcci-nav-link::after { width: calc(100% - 24px); }
.kcci-nav-caret { width: 11px; height: 7px; opacity: 0.7; transition: transform .22s; }
.kcci-nav-item.has-child:hover .kcci-nav-caret { transform: rotate(-180deg); opacity: 1; color: var(--kcci-gold); }
.kcci-nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 220px; background: #fff; border: 1px solid var(--kcci-border); border-radius: 12px; box-shadow: 0 14px 40px rgba(10,38,84,0.18); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .22s, visibility 0s linear .2s; z-index: 110; }
.kcci-nav-item.has-child:hover .kcci-nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity .2s, transform .22s, visibility 0s; }
.kcci-nav-dropdown ul { list-style: none; padding: 0; margin: 0; }
.kcci-nav-dropdown li a { display: block; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--kcci-text); border-radius: 7px; transition: all .15s; text-decoration: none; }
.kcci-nav-dropdown li a:hover { background: var(--kcci-blue-light); color: var(--kcci-navy); }

/* ─── 전체메뉴 트리거 ─── */
.kcci-megamenu-trigger { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; background: transparent; border: 1px solid var(--kcci-border); color: var(--kcci-text-soft); font-size: 13px; font-weight: 700; padding: 9px 15px; border-radius: 6px; cursor: pointer; letter-spacing: -0.02em; transition: all .2s; font-family: inherit; }
.kcci-megamenu-trigger:hover { border-color: var(--kcci-navy); color: var(--kcci-navy); background: var(--kcci-blue-light); }
.kcci-megamenu-trigger svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── 전체메뉴 오버레이 ─── */
.kcci-megamenu { position: fixed; inset: 0; background: rgba(7,25,61,0.6); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 64px 24px 40px; overflow-y: auto; }
.kcci-megamenu.is-open { display: flex; }
.kcci-megamenu-panel { width: 100%; max-width: 1100px; background: #fff; border-radius: 16px; padding: 40px 48px 48px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.kcci-megamenu-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; background: transparent; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--kcci-text-soft); transition: background .15s; }
.kcci-megamenu-close:hover { background: var(--kcci-blue-light); color: var(--kcci-navy); }
.kcci-megamenu-title { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 0.18em; color: var(--kcci-gold); text-transform: uppercase; margin-bottom: 8px; }
.kcci-megamenu-h2 { font-size: 24px; font-weight: 900; color: var(--kcci-navy); margin: 0 0 32px; letter-spacing: -0.02em; }
.kcci-megamenu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.kcci-megamenu-col h4 { font-size: 14px; font-weight: 800; color: var(--kcci-navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--kcci-gold); letter-spacing: -0.02em; }
.kcci-megamenu-col h4 a { color: inherit; text-decoration: none; }
.kcci-megamenu-col ul { list-style: none; padding: 0; margin: 0; }
.kcci-megamenu-col li a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--kcci-text-soft); text-decoration: none; font-weight: 400; transition: color .15s, padding .15s; letter-spacing: -0.02em; }
.kcci-megamenu-col li a:hover { color: var(--kcci-navy); padding-left: 6px; font-weight: 600; }
@media (max-width: 1100px) { .kcci-megamenu-grid { grid-template-columns: repeat(3, 1fr); } .kcci-megamenu-panel { padding: 32px 28px; } }
@media (max-width: 760px) { .kcci-megamenu-grid { grid-template-columns: repeat(2, 1fr); } .kcci-megamenu { padding: 48px 16px 24px; } }
@media (max-width: 480px) { .kcci-megamenu-grid { grid-template-columns: 1fr; } }

/* ─── Breadcrumb ─── */
.kcci-bc { background: #fff; border-bottom: 1px solid var(--kcci-border-soft); padding: 12px 0; }
.kcci-bc-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kcci-bc ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--kcci-text-mute); }
.kcci-bc li { display: inline-flex; align-items: center; gap: 8px; }
.kcci-bc a { color: var(--kcci-text-mute); text-decoration: none; }
.kcci-bc a:hover { color: var(--kcci-navy); }
.kcci-bc li.is-current span { color: var(--kcci-navy); font-weight: 700; }
.kcci-bc svg { width: 6px; height: 9px; color: #c0c8d4; }

/* ─── Main ─── */
.kcci-main { min-height: 60vh; }

/* ─── Static page wrapper ─── */
.kcci-static { background: #fff; }
.kcci-static-inner { max-width: 100%; margin: 0; padding: 0; }
/* imweb 컨테이너 호환을 위한 전역 보정 */
.kcci-static .section_wrap { width: 100%; max-width: none; }
.kcci-static [doz_type="section"] { margin: 0 auto; }
.kcci-static img { max-width: 100%; height: auto; }
.kcci-static .pc_section { display: block; }
.kcci-static .mobile_section { display: none; }
@media (max-width: 768px) {
  .kcci-static .pc_section { display: none; }
  .kcci-static .mobile_section { display: block; }
}

/* ─── Page hero (보드 / 일반 페이지용) ─── */
.kcci-hero { background: linear-gradient(135deg, #0a2654 0%, #07193d 50%, #1a3a6b 100%); padding: 64px 0 56px; position: relative; overflow: hidden; color: #fff; }
.kcci-hero::before { content: ''; position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at center, rgba(192,138,42,0.16) 0%, transparent 65%); border: 1px solid rgba(192,138,42,0.18); }
.kcci-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kcci-hero-eyebrow { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 0.22em; color: var(--kcci-gold); text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.kcci-hero-h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 14px; }
.kcci-hero-desc { font-size: 15px; color: rgba(255,255,255,0.72); line-height: 1.85; max-width: 720px; margin: 0; }

/* ─── Board listing ─── */
.kcci-board-wrap { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
.kcci-board-meta { display: flex; gap: 24px; padding: 16px 0; border-bottom: 2px solid var(--kcci-navy); margin-bottom: 0; align-items: baseline; }
.kcci-board-total { font-size: 13px; color: var(--kcci-text-soft); }
.kcci-board-total strong { color: var(--kcci-blue); font-weight: 800; font-size: 16px; margin-right: 4px; }
.kcci-post-list { list-style: none; padding: 0; margin: 0; }
.kcci-post-item { display: grid; grid-template-columns: 80px 1fr 110px; gap: 28px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--kcci-border); transition: background .15s; }
.kcci-post-item:hover { background: rgba(232,240,254,0.45); }
.kcci-post-no { font-size: 12px; color: var(--kcci-text-mute); font-weight: 600; letter-spacing: 0.04em; }
.kcci-post-body { min-width: 0; }
.kcci-post-cat { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--kcci-blue); background: var(--kcci-blue-light); padding: 3px 9px; border-radius: 3px; margin-bottom: 8px; text-transform: uppercase; }
.kcci-post-title { font-size: 16px; font-weight: 700; color: var(--kcci-navy); margin: 0 0 6px; line-height: 1.45; letter-spacing: -0.015em; }
.kcci-post-title a { color: inherit; text-decoration: none; transition: color .15s; }
.kcci-post-item:hover .kcci-post-title a { color: var(--kcci-blue); }
.kcci-post-summary { font-size: 13px; color: var(--kcci-text-soft); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcci-post-date { text-align: right; font-size: 13px; color: var(--kcci-text-soft); font-weight: 600; font-feature-settings: 'tnum'; }

/* 페이지네이션 */
.kcci-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 36px; }
.kcci-pagination a, .kcci-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--kcci-text-soft); text-decoration: none; transition: all .15s; }
.kcci-pagination a:hover { background: var(--kcci-blue-light); color: var(--kcci-navy); }
.kcci-pagination .current { background: var(--kcci-navy); color: #fff; }

/* ─── Post detail ─── */
.kcci-article { max-width: 920px; margin: 0 auto; padding: 48px 24px 80px; background: #fff; }
.kcci-article-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--kcci-blue); text-transform: uppercase; margin-bottom: 14px; }
.kcci-article-title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; color: var(--kcci-navy); line-height: 1.32; letter-spacing: -0.025em; margin: 0 0 20px; }
.kcci-article-meta { display: flex; gap: 22px; padding: 14px 0; border-top: 1px solid var(--kcci-border); border-bottom: 1px solid var(--kcci-border); font-size: 12.5px; color: var(--kcci-text-mute); margin-bottom: 36px; }
.kcci-article-meta strong { color: var(--kcci-text-soft); font-weight: 600; }
.kcci-article-body { font-size: 15px; color: var(--kcci-text); line-height: 1.85; }
.kcci-article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 14px 0; }
.kcci-article-body p { margin: 0 0 18px; }
.kcci-article-body h2, .kcci-article-body h3, .kcci-article-body h4 { color: var(--kcci-navy); margin: 32px 0 14px; letter-spacing: -0.02em; }
.kcci-article-body table { border-collapse: collapse; margin: 18px 0; max-width: 100%; }
.kcci-article-body table td, .kcci-article-body table th { border: 1px solid var(--kcci-border); padding: 8px 12px; }
.kcci-article-body blockquote { margin: 22px 0; padding: 18px 22px; background: var(--kcci-bg); border-left: 3px solid var(--kcci-gold); }
.kcci-article-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--kcci-border); text-align: center; }
.kcci-article-back a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--kcci-navy); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 700; }
.kcci-article-back a:hover { background: var(--kcci-blue); }

/* ─── Footer ─── */
.kcci-footer { background: #0a1628; color: rgba(255,255,255,0.78); padding: 48px 0 28px; margin-top: 80px; }
.kcci-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kcci-footer-top { display: grid; grid-template-columns: 320px 1fr; gap: 56px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.kcci-footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--kcci-gold); letter-spacing: 0.04em; line-height: 1; margin-bottom: 6px; font-weight: 700; }
.kcci-footer-org { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.kcci-footer-tag { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.55); margin: 0; max-width: 280px; }
.kcci-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.kcci-footer-cols h4 { font-size: 13px; font-weight: 800; color: #fff; margin: 0 0 14px; letter-spacing: -0.015em; padding-bottom: 8px; border-bottom: 2px solid var(--kcci-gold); display: inline-block; }
.kcci-footer-cols ul { list-style: none; padding: 0; margin: 0; }
.kcci-footer-cols li { margin-bottom: 9px; }
.kcci-footer-cols a { font-size: 12.5px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .15s; letter-spacing: -0.01em; }
.kcci-footer-cols a:hover { color: var(--kcci-gold); }
.kcci-footer-bottom { padding-top: 24px; }
.kcci-footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.4); margin: 0; letter-spacing: 0.02em; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .kcci-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .kcci-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .kcci-nav-inner { overflow-x: auto; }
  .kcci-nav-list { flex-wrap: nowrap; min-width: max-content; }
  .kcci-nav-link { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 640px) {
  .kcci-header-inner { flex-wrap: wrap; gap: 8px; }
  .kcci-logo-text { font-size: 14px; }
  .kcci-post-item { grid-template-columns: 1fr; gap: 8px; }
  .kcci-post-date { text-align: left; }
}
