@charset "UTF-8";
@import url('/common/css/board.css');

/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul, ol, li {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
    Header Base Styles (Fixed Header for Scrolling)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* White Header State (Subpage, on Hover, Scrolled, Search Open, All-Menu Open) */
header.sub_header,
header.header_white,
header.is_hover,
header.scrolled,
header.search_open,
header.allmenu_open,
header:hover {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
    Top Shortcut Bar
   -------------------------------------------------------------------------- */
.h_shortcut {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.h_shortcut > p {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color 0.3s ease;
}

.h_shortcut > a {
    display: inline-flex;
    align-items: center;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-position: right center;
    background-repeat: no-repeat;
    transition: opacity 0.2s ease;
}

.h_shortcut > a:hover {
    opacity: 0.8;
}

.h_shortcut > a > p {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Shortcut Dark Mode Transition on Header Hover & Scroll & Subpage */
header.sub_header .h_shortcut,
header.header_white .h_shortcut,
header.is_hover .h_shortcut,
header.scrolled .h_shortcut,
header.search_open .h_shortcut,
header.allmenu_open .h_shortcut,
header:hover .h_shortcut {
    border-bottom: 1px solid #ebebeb;
}

header.sub_header .h_shortcut > p,
header.header_white .h_shortcut > p,
header.is_hover .h_shortcut > p,
header.scrolled .h_shortcut > p,
header.search_open .h_shortcut > p,
header.allmenu_open .h_shortcut > p,
header:hover .h_shortcut > p {
    color: #cccccc;
}

header.sub_header .h_shortcut > a,
header.header_white .h_shortcut > a,
header.is_hover .h_shortcut > a,
header.scrolled .h_shortcut > a,
header.search_open .h_shortcut > a,
header.allmenu_open .h_shortcut > a,
header:hover .h_shortcut > a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

header.sub_header .h_shortcut > a > p,
header.header_white .h_shortcut > a > p,
header.is_hover .h_shortcut > a > p,
header.scrolled .h_shortcut > a > p,
header.search_open .h_shortcut > a > p,
header.allmenu_open .h_shortcut > a > p,
header:hover .h_shortcut > a > p {
    color: #666666;
}

header.sub_header .h_shortcut > a > p:hover,
header.header_white .h_shortcut > a > p:hover,
header.is_hover .h_shortcut > a > p:hover,
header.scrolled .h_shortcut > a > p:hover,
header.search_open .h_shortcut > a > p:hover,
header.allmenu_open .h_shortcut > a > p:hover,
header:hover .h_shortcut > a > p:hover {
    color: #111111;
}

/* --------------------------------------------------------------------------
    Head (Logo, Nav, Icons)
   -------------------------------------------------------------------------- */
.head {
    position: relative;
    padding: 0 30px;
    width: 100%;
    height: 90px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}

header.sub_header .head,
header.header_white .head,
header.is_hover .head,
header.scrolled .head,
header.search_open .head,
header.allmenu_open .head,
header:hover .head {
    border-bottom: 1px solid #ebebeb;
}

/* Logo Area */
.logo_area {
    width: 305px;
    height: 45px;
    display: flex;
    align-items: center;
}

.logo_area > a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* 불펌 방지 투명 쉴드 오버레이 */
.logo_area > a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.logo_area > a img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
    pointer-events: none;       /* 우클릭 메뉴 및 터치 차단 */
    -webkit-user-drag: none;    /* 드래그 앤 드롭 저장 차단 */
    user-select: none;          /* 선택 방지 */
    -webkit-user-select: none;
}

.logo_area > a > .logo {
    display: block;
}

.logo_area > a > .logo2 {
    display: none;
}

/* Logo Switch on Hover, Scroll & Subpage (logo_w -> logo_c) */
header.sub_header .logo_area > a > .logo,
header.header_white .logo_area > a > .logo,
header.is_hover .logo_area > a > .logo,
header.scrolled .logo_area > a > .logo,
header.search_open .logo_area > a > .logo,
header.allmenu_open .logo_area > a > .logo,
header:hover .logo_area > a > .logo {
    display: none;
}

header.sub_header .logo_area > a > .logo2,
header.header_white .logo_area > a > .logo2,
header.is_hover .logo_area > a > .logo2,
header.scrolled .logo_area > a > .logo2,
header.search_open .logo_area > a > .logo2,
header.allmenu_open .logo_area > a > .logo2,
header:hover .logo_area > a > .logo2 {
    display: block;
}

/* GNB Navigation (Desktop 1024px 이상) */
.nav {
    width: 750px;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav > a {
    color: #ffffff;
    width: 150px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
    transition: color 0.3s ease;
}

.nav > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background-color: #005bac;
    transition: transform 0.25s ease;
}

.nav > a:hover::after,
.nav > a.on::after {
    transform: translateX(-50%) scaleX(1);
}

/* GNB Hover, Scrolled & Subpage State Colors */
header.sub_header .nav > a,
header.header_white .nav > a,
header.is_hover .nav > a,
header.scrolled .nav > a,
header.search_open .nav > a,
header.allmenu_open .nav > a,
header:hover .nav > a {
    color: #222222;
}

header.sub_header .nav > a:hover,
header.header_white .nav > a:hover,
header.is_hover .nav > a:hover,
header.scrolled .nav > a:hover,
header.search_open .nav > a:hover,
header.allmenu_open .nav > a:hover,
header:hover .nav > a:hover {
    color: #005bac;
}

/* Icon Area */
.icn_area {
    width: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.top_icn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top_icn:hover {
    transform: scale(1.08);
}

.top_search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.top_ham {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

header.sub_header .top_search,
header.header_white .top_search,
header.is_hover .top_search,
header.scrolled .top_search,
header.search_open .top_search,
header.allmenu_open .top_search,
header:hover .top_search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

header.sub_header .top_ham,
header.header_white .top_ham,
header.is_hover .top_ham,
header.scrolled .top_ham,
header.search_open .top_ham,
header.allmenu_open .top_ham,
header:hover .top_ham {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* ==========================================================================
    SNB 
   ========================================================================== */
.snb_wrap {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
}

header.is_hover .snb_wrap,
header:hover .snb_wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

header.search_open .snb_wrap,
header.allmenu_open .snb_wrap {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.snb_inner {
    padding: 30px 30px 45px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.snb_spacer {
    width: 305px;
    flex-shrink: 0;
}

.snb_nav {
    width: 750px;
    display: flex;
    justify-content: space-around;
}

.snb_icn_spacer {
    width: 150px;
    flex-shrink: 0;
}

.snb_col {
    width: 150px;
    padding: 0 10px;
    text-align: center;
}

.snb_col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snb_col li a {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #555555;
    letter-spacing: -0.3px;
    line-height: 1.4;
    position: relative;
    padding: 2px 0;
}

.snb_col li a:hover {
    color: #005bac;
    font-weight: 700;
}

/* ==========================================================================
        통합검색창
   ========================================================================== */
.search_wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    padding: 40px 20px 50px;
    z-index: 110;
}

.search_wrap.active {
    display: block;
    animation: searchSlideDown 0.3s ease-out forwards;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search_box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search_input {
    width: 100%;
    height: 58px;
    border-radius: 30px;
    border: 2px solid #222222;
    padding: 0 65px 0 30px;
    font-size: 16px;
    color: #111111;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search_input:focus {
    border-color: #005bac;
    box-shadow: 0 0 0 4px rgba(0, 91, 172, 0.12);
}

.search_input::placeholder {
    color: #999999;
}

.btn_search_submit {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.btn_search_submit:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
        전체메뉴(사이트맵) - 2번 시안 완벽 일치 (크고 시원한 와이드 그리드)
   ========================================================================== */
/* ==========================================================================
        전체메뉴(사이트맵) - 1320px 정 가운데 위치 & 상단 햄버거박스 위치 일치 닫기버튼
   ========================================================================== */
.allmenu_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.allmenu_wrap.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: allmenuFadeIn 0.25s ease-out forwards;
}

@keyframes allmenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 데스크톱: 컨텐츠 전체가 1320px 규격으로 화면 정 가운데(가로·세로 정중앙) 위치 */
.allmenu_inner {
    max-width: 1320px;
    width: 100%;
    margin: auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 1025px) and (max-height: 800px) {
    .allmenu_wrap.active {
        align-items: flex-start;
    }
    .allmenu_inner {
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

.allmenu_top {
    position: static;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.allmenu_logo {
    display: none;
}

/* 닫기 X 버튼 (상단 햄버거 버튼과 위치·크기 완벽 일치) */
.allmenu_close {
    position: fixed;
    top: 69px;
    right: 30px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #d5dbe2;
    border-radius: 2px;
    z-index: 10001;
    box-sizing: border-box;
    padding: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.allmenu_close:hover {
    border-color: #111111;
    background-color: #f8fafc;
    transform: rotate(90deg);
}

.allmenu_close::before,
.allmenu_close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 1.5px;
    background-color: #222222;
    border-radius: 1px;
}

.allmenu_close::before {
    transform: rotate(45deg);
}

.allmenu_close::after {
    transform: rotate(-45deg);
}

.allmenu_content {
    width: 1320px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: static;
    transform: none;
    box-sizing: border-box;
}

.allmenu_row {
    display: flex;
    align-items: flex-start;
    padding: 38px 0;
    border-bottom: 1px solid #ebebeb;
    width: 100%;
    box-sizing: border-box;
}

/* 시안 일치: 1행 상단 라인 없음, 4행 하단 라인 없음 */
.allmenu_row:first-child {
    border-top: none;
}

.allmenu_row:last-child {
    border-bottom: none;
}

/* 1depth 대분류 카테고리 (충북학연구소, 충북학자료실, 충북학연구, 커뮤니티) */
.allmenu_cate {
    width: 240px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.5px;
    line-height: 1.35;
    padding-top: 2px;
}

/* 2depth 서브메뉴 전체 영역 (4개 컬럼 균등 배치) */
.allmenu_sub {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.allmenu_col {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 2depth 링크 */
.allmenu_col > a {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.4px;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.allmenu_col > a:hover {
    color: #005bac;
}

/* 2depth 서브 타이틀 (발간도서, 미디어 자료실) */
.allmenu_sub_title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.4px;
    line-height: 1.4;
    margin-bottom: 16px;
    white-space: nowrap;
}

/* 3depth 세로 목록 */
.allmenu_sub_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.allmenu_sub_list a {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    letter-spacing: -0.3px;
    line-height: 1.5;
    transition: color 0.2s ease, font-weight 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.allmenu_sub_list a:hover {
    color: #005bac;
    font-weight: 700;
}

/* ==========================================================================
    Top Button
   ========================================================================== */
.btn_top {
    position: fixed;
    right: 35px;
    bottom: 45px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #222222;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.btn_top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn_top:hover {
    background-color: #005bac;
    color: #ffffff;
    border-color: #005bac;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 91, 172, 0.35);
}

.btn_top i {
    font-size: 13px;
    line-height: 1;
    margin-bottom: 2px;
}

.btn_top span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* ==========================================================================
    Footer
   ========================================================================== */
.footer {
    position: relative;
    width: 100%;
    background-color: #0d0f13;
    color: #8892a0;
    padding: 55px 0 50px;
    border-top: 1px solid #1a1e26;
    z-index: 10;
}

.footer_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer_logo {
    width: 260px;
    display: flex;
    align-items: center;
}

.footer_logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.footer_right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer_links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer_links a {
    font-size: 14px;
    color: #8892a0;
    transition: color 0.2s ease;
}

.footer_links a:hover {
    color: #ffffff;
}

/* 패밀리 사이트 드롭다운 */
.family_site_wrap {
    position: relative;
}

.family_select {
    background-color: #151921;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 9px 36px 9px 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.family_select:hover,
.family_select:focus {
    border-color: #005bac;
    color: #ffffff;
    background-color: #1a202c;
}

.family_select option {
    background-color: #151921;
    color: #ffffff;
}

/* 하단 정보 */
.footer_bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 26px;
    gap: 24px;
}

.footer_info {
    font-size: 13px;
    line-height: 1.7;
    color: #727d8e;
}

.footer_info .info_sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.15);
}

.footer_info strong {
    color: #94a3b8;
    font-weight: 600;
}

.footer_copy {
    font-size: 12px;
    color: #556274;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ==========================================================================
    서브비주얼 (Sub Visual Banner - #svb)
   ========================================================================== */
/*   메인 페이지(#mainvis 존재 또는 body.main)에서는 서브비주얼 및 서브타이틀 자동 숨김 */
body:has(#mainvis) #svb,
body:has(#mainvis) .sub_visual,
body:has(#mainvis) .sub_page_head,
body:has(#mainvis) .svb-wrap,
body.main #svb,
body.main .sub_visual,
body.main .sub_page_head,
body.main .svb-wrap {
    display: none !important;
}

#svb,
.sub_visual {
    position: relative;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    height: 640px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a2a3a;
    display: block !important;
    overflow: hidden;
    clear: both;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
    서브비주얼 배경 이미지 (/images/layout/svb1.jpg ~ svb4.jpg)
   ========================================================================== */
.sub_visual.svb_1 {
    /* 1. 연구소 소개 */
    background-image: url('/images/layout/svb1.jpg');
}

.sub_visual.svb_2 {
    /* 2. 충북학자료실  */
    background-image: url('/images/layout/svb2.jpg');
}

.sub_visual.svb_3 {
    /* 3. 충북학연구  */
    background-image: url('/images/layout/svb3.jpg');
}

.sub_visual.svb_4 {
    /* 4. 커뮤니티  */
    background-image: url('/images/layout/svb4.jpg');
}

.svb_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.svb_wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
    margin: 0 auto;
}

/* 1depth 대메뉴 타이틀 (중앙 정렬) */
.svb_title_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.svb_title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    font-family: 'Pretendard', sans-serif;
    margin: 0;
}

/* 1depth 타이틀 아래 로케이션 경로 (Breadcrumb) */
.svb_location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.svb_location a.loc_home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.svb_location a.loc_home:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.svb_location .loc_sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
}

.svb_location .loc_depth {
    font-family: 'pretendard', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 1em;
    line-height: 1;
}

.svb_location .loc_depth.loc_current {
    font-family: 'pretendard', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 1em;
    line-height: 1;
}

/* 2depth 탭 메뉴 (하단 페이지 링크 이동형) */
.svb_tabs_area {
    background-color:rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(40px);
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.svb_tab_list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.svb_tab_item {
    flex: 1;
    min-width: 120px;
    max-width: 240px;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    text-align: center;
    list-style: none;
}

.svb_tab_item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.3px;
    white-space: nowrap;
    text-decoration: none;
}

.svb_tab_item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.svb_tab_item:hover a {
    color: #ffffff;
}

/* 활성화(현재 페이지) 탭 스타일 */
.svb_tab_item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-top: 2px solid #1FB330;
}

.svb_tab_item.active a {
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
    서브 본문 상단 2depth 타이틀 영역
   ========================================================================== */
.sub_page_head,
.svb-wrap {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    flex: 0 0 100% !important;
    clear: both !important;
    display: block !important;
    padding-top: 120px;
    padding-bottom: 45px;
    text-align: center;
    box-sizing: border-box;
}

.sub_page_tit,
.second-menu-name {
    font-size: 34px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -1px;
    text-align: center;
    margin: 0;
}

/* =============================================================
   검색 페이지: 서브비주얼 제거 및 헤더 화이트 유지 / 상단 여백
   ============================================================= */
body.page-search header,
body:has(#search-result) header,
body:has(.search_page_wrap) header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #ebebeb !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body.page-search header .h_shortcut,
body:has(#search-result) header .h_shortcut,
body:has(.search_page_wrap) header .h_shortcut {
    border-bottom: 1px solid #ebebeb !important;
}

body.page-search header .h_shortcut > p,
body:has(#search-result) header .h_shortcut > p,
body:has(.search_page_wrap) header .h_shortcut > p {
    color: #cccccc !important;
}

body.page-search header .h_shortcut > a,
body:has(#search-result) header .h_shortcut > a,
body:has(.search_page_wrap) header .h_shortcut > a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") !important;
}

body.page-search header .h_shortcut > a > p,
body:has(#search-result) header .h_shortcut > a > p,
body:has(.search_page_wrap) header .h_shortcut > a > p {
    color: #666666 !important;
}

body.page-search header .head,
body:has(#search-result) header .head,
body:has(.search_page_wrap) header .head {
    border-bottom: 1px solid #ebebeb !important;
}

body.page-search header .logo_area > a > .logo,
body:has(#search-result) header .logo_area > a > .logo,
body:has(.search_page_wrap) header .logo_area > a > .logo {
    display: none !important;
}

body.page-search header .logo_area > a > .logo2,
body:has(#search-result) header .logo_area > a > .logo2,
body:has(.search_page_wrap) header .logo_area > a > .logo2 {
    display: block !important;
}

body.page-search header .nav > a,
body:has(#search-result) header .nav > a,
body:has(.search_page_wrap) header .nav > a {
    color: #222222 !important;
}

body.page-search header .top_search,
body:has(#search-result) header .top_search,
body:has(.search_page_wrap) header .top_search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
}

body.page-search header .top_ham,
body:has(#search-result) header .top_ham,
body:has(.search_page_wrap) header .top_ham {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
}

body.page-search #svb,
body.page-search .sub_visual,
body.page-search .sub_page_head,
body.page-search .sub_page_tit,
body.page-search .second-menu-name,
body:has(#search-result) #svb,
body:has(#search-result) .sub_visual,
body:has(#search-result) .sub_page_head,
body:has(#search-result) .sub_page_tit,
body:has(#search-result) .second-menu-name,
body:has(.search_page_wrap) #svb,
body:has(.search_page_wrap) .sub_visual,
body:has(.search_page_wrap) .sub_page_head,
body:has(.search_page_wrap) .sub_page_tit,
body:has(.search_page_wrap) .second-menu-name {
    display: none !important;
}

body.page-search .container-section,
body:has(#search-result) .container-section,
body:has(.search_page_wrap) .container-section {
    padding-top: 130px;
}

@media (max-width: 1023px) {
    body.page-search .container-section,
    body:has(#search-result) .container-section,
    body:has(.search_page_wrap) .container-section {
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    body.page-search .container-section,
    body:has(#search-result) .container-section,
    body:has(.search_page_wrap) .container-section {
        padding-top: 65px;
    }
}

.sub_content_wrap {
    padding-bottom: 100px;
}

/* ==========================================================================
   반응형 미디어쿼리 (Responsive Media Queries)
   - 태블릿 (Tablet): 768px ~ 1023px
   - 모바일 (Mobile): 0px ~ 767px
   ========================================================================== */

/* 태블릿 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .h_shortcut {
        padding: 8px 20px;
    }

    .head {
        padding: 0 20px;
        height: 75px;
    }

    .logo_area {
        width: 230px;
        height: 38px;
    }

    .nav {
        width: 480px;
    }

    .nav > a {
        font-size: 16px;
        width: 120px;
    }

    .snb_inner {
        padding: 24px 20px 35px;
    }

    .snb_spacer {
        width: 230px;
    }

    .snb_nav {
        width: 480px;
    }

    .snb_col {
        width: 120px;
    }

    .snb_icn_spacer {
        width: 120px;
    }

    .allmenu_wrap {
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .allmenu_inner {
        padding: 0;
        min-height: auto;
        display: block;
    }

    .allmenu_top {
        position: sticky;
        top: 0;
        background-color: #ffffff;
        z-index: 20;
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ebebeb;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .allmenu_logo {
        display: flex;
        align-items: center;
    }

    .allmenu_logo img {
        height: 32px;
    }

    .allmenu_close {
        position: static;
        width: 44px;
        height: 44px;
    }

    .allmenu_close::before,
    .allmenu_close::after {
        width: 22px;
    }

    .allmenu_content {
        position: static;
        transform: none;
        max-width: 768px;
        width: 100%;
        margin: 0 auto 50px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .allmenu_row {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #ebebeb;
    }

    .allmenu_row:first-child {
        border-top: none;
    }

    .allmenu_cate {
        width: 100%;
        padding: 18px 4px;
        font-size: 17px;
        font-weight: 700;
        color: #222222;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease;
    }

    .allmenu_cate::after {
        content: '';
        display: inline-block;
        width: 9px;
        height: 9px;
        border-right: 2px solid #777777;
        border-bottom: 2px solid #777777;
        transform: rotate(45deg);
        transition: transform 0.25s ease, border-color 0.2s ease;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .allmenu_row.open .allmenu_cate,
    .allmenu_row.active .allmenu_cate {
        color: #0357A2;
    }

    .allmenu_row.open .allmenu_cate::after,
    .allmenu_row.active .allmenu_cate::after {
        transform: rotate(-135deg);
        border-color: #0357A2;
    }

    .allmenu_sub {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 10px 16px 18px 16px;
        background-color: #f8fafc;
        border-radius: 8px;
        margin-bottom: 14px;
        box-sizing: border-box;
    }

    .allmenu_row.open .allmenu_sub,
    .allmenu_row.active .allmenu_sub {
        display: flex;
        animation: sitemapSlideDown 0.22s ease-out forwards;
    }

    @keyframes sitemapSlideDown {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .allmenu_col {
        width: 100%;
    }

    .allmenu_col > a {
        font-size: 15px;
        font-weight: 500;
        color: #444444;
        padding: 5px 0;
        display: block;
    }

    .allmenu_col > a:hover {
        color: #0357A2;
        font-weight: 700;
    }

    .allmenu_sub_title {
        font-size: 15px;
        font-weight: 700;
        color: #222222;
        margin: 8px 0 6px;
    }

    .allmenu_sub_list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-left: 10px;
        border-left: 2px solid #e2e8f0;
        margin-bottom: 6px;
    }

    .allmenu_sub_list a {
        font-size: 14px;
        color: #666666;
        padding: 3px 0;
        display: block;
    }

    .allmenu_sub_list a:hover {
        color: #0357A2;
        font-weight: 600;
    }

    .footer_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer_right {
        width: 100%;
        justify-content: space-between;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn_top {
        right: 20px;
        bottom: 25px;
    }

    /* 서브비주얼 태블릿 */
    #svb,
    .sub_visual {
        height: 330px;
    }

    .svb_title {
        font-size: 32px;
    }

    .svb_tab_item a {
        height: 48px;
        font-size: 14px;
        padding: 0 10px;
    }

    .sub_page_head {
        padding-top: 50px;
        padding-bottom: 35px;
    }

    .sub_page_tit {
        font-size: 28px;
    }
}

/* 모바일 (0px ~ 767px) */
@media (max-width: 767px) {
    .wrap {
        padding: 0 16px;
    }

    /* 상단 숏컷 숨김 */
    .h_shortcut {
        display: none;
    }

    /* 헤더 컴팩트 높이 & 로고 */
    .head {
        padding: 0 16px;
        height: 60px;
    }

    .logo_area {
        width: 190px;
        height: 38px;
    }

    /* 모바일에서는 상단 네비게이션 숨기고 전체메뉴(햄버거) 버튼 사용 */
    .nav {
        display: none;
    }

    /* 마우스 호버형 SNB 비활성화 */
    .snb_wrap {
        display: none !important;
    }

    .icn_area {
        width: auto;
        gap: 10px;
    }

    .top_icn {
        width: 28px;
        height: 28px;
        background-size: 20px 20px;
    }

    /* 모바일 검색창 */
    .search_wrap {
        padding: 20px 16px 26px;
    }

    .search_input {
        height: 48px;
        font-size: 14px;
        padding: 0 48px 0 18px;
    }

    .btn_search_submit {
        right: 16px;
        width: 22px;
        height: 22px;
    }

    /* 모바일 전체메뉴 (스크롤 최적화) */
    .allmenu_wrap {
        padding: 0;
    }

    .allmenu_top {
        padding: 12px 16px;
        height: auto;
        border-bottom: 1px solid #ebebeb;
    }

    .allmenu_logo img {
        height: 26px;
    }

    .allmenu_close {
        width: 36px;
        height: 36px;
    }

    .allmenu_close::before,
    .allmenu_close::after {
        width: 18px;
    }

    .allmenu_content {
        margin: 0 0 50px;
        padding: 0 16px;
    }

    .allmenu_row {
        padding: 0;
    }

    .allmenu_cate {
        font-size: 16px;
        padding: 16px 2px;
    }

    .allmenu_sub {
        padding: 8px 14px 16px 14px;
        gap: 10px;
    }

    .allmenu_col > a {
        font-size: 14px;
        padding: 4px 0;
    }

    .allmenu_sub_title {
        font-size: 14px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .allmenu_sub_list {
        gap: 6px;
        padding-left: 8px;
    }

    .allmenu_sub_list a {
        font-size: 13px;
        padding: 2px 0;
    }

    /* 모바일 푸터 */
    .footer {
        padding: 34px 0 28px;
    }

    .footer_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer_logo {
        width: auto;
    }

    .footer_logo img {
        height: 32px;
    }

    .footer_right {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px 12px;
    }

    .footer_links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 14px;
    }

    .footer_links a {
        font-size: 13px;
        color: #94a3b8;
        font-weight: 500;
        white-space: nowrap;
    }

    .footer_links a:hover {
        color: #ffffff;
    }

    .family_site_wrap {
        width: auto;
        flex-shrink: 0;
    }

    .family_select {
        width: auto;
        padding: 6px 26px 6px 10px;
        font-size: 12.5px;
        color: #ffffff;
        background-color: #13171f;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 4px;
        background-position: right 9px center;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 22px;
    }

    .footer_info {
        font-size: 13px;
        line-height: 1.75;
        color: #94a3b8;
        word-break: keep-all;
    }

    .footer_info .info_org_addr {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer_info .info_sep_oa {
        display: none;
    }

    .footer_info .info_org {
        color: #e2e8f0;
        font-weight: 500;
    }

    .footer_info .info_addr {
        color: #94a3b8;
    }

    .footer_info .info_contact_email {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 6px;
        gap: 0;
    }

    .footer_info .info_tel {
        margin-right: 18px;
    }

    .footer_info .info_fax {
        margin-right: 0;
    }

    .footer_info .info_sep_tf {
        display: none;
    }

    .footer_info .info_sep_fe {
        display: none;
    }

    .footer_info .info_email {
        display: block;
        width: 100%;
        margin-top: 5px;
        color: #94a3b8;
    }

    .footer_info strong {
        color: #ffffff;
        font-weight: 700;
        margin-right: 4px;
    }

    .footer_copy {
        font-size: 11.5px;
        color: #475569;
        white-space: normal;
        line-height: 1.45;
        word-break: keep-all;
    }

    .btn_top {
        right: 16px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }

    .btn_top i {
        font-size: 11px;
    }

    .btn_top span {
        font-size: 9px;
    }

    /* 서브비주얼 모바일 */
    #svb,
    .sub_visual {
        height: 260px;
    }

    .svb_title {
        font-size: 18px;
    }

    .svb_tabs_area {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .svb_tabs_area::-webkit-scrollbar {
        display: none;
    }

    .svb_tab_list {
        width: auto;
        min-width: 100%;
        justify-content: flex-start;
    }

    .svb_tab_item {
        flex: none;
        min-width: auto;
        padding: 0 16px;
    }

    .svb_tab_item a {
        height: 42px;
        font-size: 13px;
        padding: 0;
    }

    .sub_page_head {
        padding-top: 40px;
        padding-bottom: 25px;
    }

    .sub_page_tit {
        font-size: 22px;
    }
}

/* -------------------------------------------------------------
    4. 소형 모바일 (max-width: 480px)
   ------------------------------------------------------------- */
@media (max-width: 480px) {
    .footer {
        padding: 28px 0 24px;
    }
    .footer_top {
        gap: 14px;
        padding-bottom: 16px;
    }
    .footer_right {
        gap: 8px 10px;
    }
    .footer_links {
        gap: 4px 10px;
    }
    .footer_links a {
        font-size: 11.5px;
    }
    .family_select {
        font-size: 11px;
        padding: 5px 22px 5px 8px;
        background-position: right 7px center;
    }
    .footer_bottom {
        gap: 16px;
        padding-top: 18px;
    }
    .footer_info {
        font-size: 11.5px;
        line-height: 1.65;
    }
    .footer_info .info_tel {
        margin-right: 12px;
    }
    .footer_copy {
        font-size: 10.5px;
        line-height: 1.4;
    }
}
