@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS 변수 (전역)
   ============================================================ */
:root {
    --primary: #6B3FA0;
    --primary-dark: #5a3188;
    --primary-light: #f3eefb;
    --primary-rgb: 107, 63, 160;
    --text-dark: #222;
    --text-mid: #555;
    --text-light: #888;
    --bg-section: #f4f5f7;
    --bg-white: #fff;
    --border: #e5e5e5;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.13);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --max-width: 1280px;
}

/* ============================================================
   기본 리셋
   ============================================================ */
* { margin:0; padding:0; box-sizing: border-box; list-style:none; word-break: keep-all !important; }
html, body { font-size:15px; line-height: 1.6; color:#333; font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
p, ul, ol, h1,h2,h3,h4,h5 { margin:0; padding:0; }
a { text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: none; }
section.sec { padding: 0; }

/* ============================================================
   상단 유틸바
   ============================================================ */
.header_topbar { background: #ece6f3; border-bottom: 1px solid #d5cce0; font-size: 14px; }
.header_topbar .inner { max-width: var(--max-width); margin: 0 auto; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.header_topbar .site_name { font-weight: 700; color: var(--primary); font-size: 15px; }
.header_topbar a { color: var(--text-mid); margin-left: 18px; font-size: 14px; font-weight: 500; }
.header_topbar a:hover { color: var(--primary); }

/* ============================================================
   상단 헤더
   ============================================================ */
.header { background: #fff !important; border: none !important; position: sticky; top:0; z-index:1000; box-shadow: 0 1px 0 var(--border); }
.header.scrolled { box-shadow: var(--shadow-card); }
.header a { color:#333; }
.header .header_wrap, .header_wrap { max-width: var(--max-width) !important; margin: 0 auto; padding: 0 20px; height: 80px; position: relative; width: 100%; }
.header .logo_box img { height: 50px; width: auto; }
.header .gnb_1 { position: static; }
.header .gnb_1 > li { position: static; }
.header .d-md-flex { position: relative; }

/* 1차 메뉴 */
.header .gnb_1 > li > a, .header_menu.gnb_1 > li > a { padding: 26px 22px !important; font-size: 18px !important; font-weight: 700; color: var(--text-dark) !important; position: relative; transition: var(--transition); display: block; }
.header .gnb_1 > li > a::before, .header_menu.gnb_1 > li > a::before { display: none !important; }
.header_menu.gnb_1 > li > a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--primary); transition: var(--transition); }
.header_menu.gnb_1 > li:hover > a::after, .header_menu.gnb_1 > li > a.active::after { width: 80%; }
.header .gnb_1 > li:hover .gnb_2 { opacity: 1; visibility: visible; }
.header .gnb_1 > li:hover > a, .header_menu.gnb_1 > li:hover > a, .header .gnb_1 > li > a.active, .header_menu.gnb_1 > li > a.active { color: var(--primary) !important; font-weight: 700; }

/* 2차 드롭다운 */
.header .gnb_2 { position:absolute; z-index:9999; opacity:0; visibility:hidden; border-top:3px solid var(--primary) !important; background:#fff !important; width:100% !important; left:0 !important; top: 100% !important; transition:0.25s ease; box-shadow:0 6px 20px rgba(0,0,0,0.1); }
.header .gnb_2 > div { min-height:auto; max-width: var(--max-width); width:100%; margin:0 auto; background: none; padding: 20px 30px; }
.header .gnb_2 > div > .row { justify-content: center; flex-wrap: nowrap; }
.header .gnb_2 > div > .d-flex { justify-content: center; }
.header .gnb_2 a { font-size:15px; font-weight:500; padding:10px 15px; border-radius:6px; display:block; }
.header .gnb_2 a:hover { color: var(--primary); background:#f3eefb; }
.header .gnb_2 a.active { color: var(--primary); }
.header .gnb-3 div { text-align: center; }

/* ============================================================
   전체메뉴 버튼
   ============================================================ */
.btn_all_menu { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary); border: none; border-radius: 8px; color: #fff; font-size: 22px; cursor: pointer; transition: var(--transition); margin-left: 15px; flex-shrink: 0; }
.btn_all_menu:hover { background: var(--primary-dark); }

/* ============================================================
   전체메뉴 오버레이 + 슬라이드 패널
   ============================================================ */
.fullmenu_overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; }
.fullmenu_overlay.active { display: block; }
.fullmenu_panel { position: fixed; top: 0; right: -450px; width: 420px; height: 100%; background: #fff; z-index: 9999; overflow-y: auto; transition: right 0.35s ease; box-shadow: -5px 0 30px rgba(0,0,0,0.15); }
.fullmenu_panel.active { right: 0; }
.fullmenu_header { background: var(--primary); color: #fff; padding: 25px 25px 20px; display: flex; justify-content: space-between; align-items: center; }
.fullmenu_header h3 { font-size: 20px; font-weight: 700; margin: 0; color: #fff; }
.fullmenu_close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.fullmenu_body { padding: 20px 25px; }
.fullmenu_body .fm_group { margin-bottom: 25px; }
.fullmenu_body .fm_group h4 { font-size: 18px; font-weight: 700; color: var(--primary); padding-bottom: 10px; border-bottom: 2px solid var(--primary); margin-bottom: 10px; }
.fullmenu_body .fm_group a { display: block; padding: 10px 12px; font-size: 16px; color: var(--text-mid); text-decoration: none; border-radius: 6px; transition: var(--transition); }
.fullmenu_body .fm_group a i { width: 24px; text-align: center; color: var(--primary); margin-right: 8px; }
.fullmenu_body .fm_group a:hover { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   서브메뉴 아이콘
   ============================================================ */
.submenu_link { display: flex !important; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; transition: all 0.2s ease; }
.submenu_link:hover { color: var(--primary) !important; background: #f8f4fd !important; }
.submenu_icon { font-size: 22px; color: var(--primary); display: block; margin-bottom: 2px; }
.submenu_link span { font-size: 15px; line-height: 1.3; word-break: keep-all; }
.submenu_link.active .submenu_icon, .submenu_link:hover .submenu_icon { color: var(--primary); transform: scale(1.1); transition: transform 0.2s ease; }

/* ============================================================
   모바일 헤더
   ============================================================ */
.mo_gnb_1 a { transition: 0.3s ease-in-out; }
.mo_gnb_1.on > a { color: var(--primary) !important; border-color: var(--primary) !important; }
.mo_gnb_2 { display:none; }
.mo_gnb_1.on .mo_gnb_2 { display:block; }

/* ============================================================
   푸터
   ============================================================ */
/* (푸터 스타일은 하단에 통합) */

/* 최상위 이동 버튼 */
.quick_up { right:25px; bottom:30px; z-index:999; cursor:pointer; display:none; }
.quick_up i.bi { width:44px; height:44px; font-size:16px; color:#fff; background: var(--primary); border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 12px rgba(0,0,0,0.07); }

/* ============================================================
   반응형 - 태블릿 (max-width: 991px)
   ============================================================ */
@media(max-width:991px) {
    .header_topbar { display: none; }
}

/* ============================================================
   반응형 - 모바일 (max-width: 767px)
   ============================================================ */
@media(max-width:767px) {
    .header_topbar { display: none; }
    .header_wrap { height: 60px; }
    .fullmenu_panel { width: 88%; }
    .fullmenu_body { padding: 15px 18px; }
    .fullmenu_body .fm_group h4 { font-size: 16px; }
    .fullmenu_body .fm_group a { font-size: 15px; padding: 9px 10px; }
    .gnb_2 { display: none !important; }
    .footer_top_2026 .inner { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .footer_top_2026 a { font-size: 13px; }
    .footer_warp { padding: 25px 15px !important; }
    .footer .d-flex.ps-3 { flex-direction: column; gap: 15px; }
    .footer .d-flex.ps-3 nav { width: 100% !important; max-width: 100% !important; flex: none !important; }
    .footer .border-start { border: none !important; padding-left: 0 !important; }
    footer .copyright { padding: 12px 15px !important; }
    footer .copyright .h14 { font-size: 12px !important; }
}

/* ============================================================
   반응형 - 소형 모바일 (max-width: 400px)
   ============================================================ */
@media(max-width:400px) {
    .fullmenu_panel { width: 92%; }
}

/* ============================================================
   콘텐츠 영역 최소 높이 (푸터 밀림 방지)
   ============================================================ */
.sub_page .content_wrap { min-height: calc(100vh - 280px); }
.bd_list .content_wrap { min-height: calc(100vh - 280px); }
.bd_view .content_wrap { min-height: calc(100vh - 280px); }

/* ============================================================
   서브메뉴 없는 메뉴 (센터장에 바란다)
   ============================================================ */
.header .gnb_1 > li.no_sub:hover .gnb_2 { display: none !important; }
.header .gnb_1 > li.no_sub > a { cursor: pointer; }

/* ============================================================
   푸터 상단 링크바
   ============================================================ */
footer.footer { background: #37374a !important; border-top: none !important; padding: 0 !important; }
.footer_top_2026 { background: #2e2e3e; padding: 14px 0; }
.footer_top_2026 .inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.footer_top_2026 a { color: #b0b0c0; font-size: 14px; text-decoration: none; transition: var(--transition); }
.footer_top_2026 a:hover { color: #fff; }

/* ============================================================
   푸터 본문
   ============================================================ */
.footer_warp { max-width: var(--max-width) !important; padding: 35px 20px !important; }
footer .h16, footer .h18, footer .h22, footer a.h16, footer p.h16 { color: #a0a0b0 !important; font-size: 14px !important; }
footer a.h16:hover { color: #fff !important; }
footer .h18 { color: #d0d0e0 !important; font-size: 16px !important; font-weight: 600; }
footer .h22 { color: #fff !important; font-size: 18px !important; font-weight: 700; }
footer .border-start { border-color: rgba(255,255,255,0.08) !important; }
footer .copyright { max-width: var(--max-width); margin: 0 auto; padding: 15px 20px !important; border-top: 1px solid rgba(255,255,255,0.06); }
footer .copyright .h14 { color: #666680 !important; font-size: 13px !important; }
.footer_news li a { color: #a0a0b0 !important; }
.footer_news li a:hover { color: #fff !important; }
