@charset "utf-8";

.wrap1600{max-width: 1600px; margin: 0 auto; width: calc(100% - 30px);}
.wrap1300{max-width: 1300px; }

/* ========== 서브헤더 공통 초기화 ========== */
.sub-header .header-wrap { height: auto; border-bottom: none; }
.sub-mobile-title { display: none; }

/* ========== 최상단 바 ========== */
.sub-tnb {border-bottom: 1px solid var(--color-border); }
.sub-tnb .inner { display: flex; justify-content: flex-end; align-items: center;}
.sub-tnb-list { display: flex; align-items: center; height: 48px; margin-left:auto;}
.sub-tnb-list > li { position: relative; margin-right:10px;}
.sub-tnb-list > li:first-child { margin-right:25px;}
.sub-tnb-list > .tnb-divider{ display: inline-block; width: 1px; height: 11px; background-color: #ccc; vertical-align: middle; content: ''; }
.sub-tnb-list > li > a { font-size: 16px; color: #333; }
.sub-tnb-list > li > a:before { content: ""; width: 10px; height: 10px; border-radius: 10px; display: inline-block; position: absolute; top: 8px; right: auto; bottom: auto; left: -14px; }
.sub-tnb-list > li > a.c1:before {
    background-color: #009dd2;
}
.sub-tnb-list > li > a.c2:before {
    background-color: #72b439;
}

.sub-tnb-list > li > a img{display:inline-block; width: 19px; vertical-align: sub; margin-right: 2px;}
.sub-tnb-list > li > a:hover { text-decoration: none; }
.sub-tnb-list > li:nth-child(n+3) > a { font-weight: 600; }
.sub-tnb-menu::before { display: none !important; }
.sub-tnb-menu { display: flex; align-items: center; margin-left: 12px; }
.sub-tnb-menu .site-mgnb .sm-btn{margin-top:0;width:45px;height:45px;}

.m-sns-links{display:none;}

/* ========== 사이트명 로고 영역 ========== */
.sub-logo-area { padding: 7px 0; border-bottom: 1px solid var(--color-border);}
.sub-logo-area .inner {display: flex; justify-content: space-between; align-items: center; max-width: 1400px;}
.sub-site-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.sub-site-title a { color: var(--color-subnav); text-decoration: none; }
.sub-site-title a:hover { text-decoration: none; color: var(--color-primary); }

/* ========== GNB 영역 ========== */
.sub-gnb-wrap { }
.sub-gnb-wrap .inner { display: flex; align-items: center; height: 52px; justify-content: center; }
.sub-gnb-wrap nav { width: 100%; }

.sub-header .gnb { justify-content: center; gap: 25px; height: 52px; }
.sub-header .gnb > li { position: relative; flex: 1; width: auto; }
.sub-header .gnb > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
    padding: 0 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space:nowrap;
}
.sub-header .gnb > li > a::after { display: none; }
.sub-header .gnb > li > a:hover,
.sub-header .gnb > li.active > a { color: var(--site-title); }
.sub-header .gnb > li > a:hover { text-decoration: none; }

/* GNB 활성 하단 바 */
.sub-header .gnb > li.active > a::after,
.sub-header .gnb > li:hover > a::after {
    /*display: block;*/
    /*opacity: 1;*/
    /*width: 100%;*/
    /*bottom: 0;*/
    /*height: 3px;*/
    /*background-color: #fff;*/
    /*border-radius: 0;*/
}

/* ========== GNB 2depth (depth-area) ========== */

/* display:none 기준 — gnb-active는 opacity/visibility만 건드리므로 display에 영향 없음.
   hover 시 display:block으로 전환하면 gnb-active 명시도 충돌 없이 개별 드롭다운 동작. */
.sub-header .gnb .depth-area {
    display: none;
    position: absolute;
    top: 53px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    padding: 5px 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    z-index: 20;
    border-top:0;
}
.sub-header .gnb > li:hover > .depth-area,
.sub-header .gnb > li:focus-within > .depth-area { display: block; }

/* common.js nav hover 시 .overlay.show() 차단.
   CSS !important는 jQuery inline style보다 우선하므로 display:none 유지됨. */
body[class*="site-"] .overlay { display: none !important; }

.sub-header .gnb .depth2 > li > a {
    display: block;
    padding: 9px 20px;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}
.sub-header .gnb .depth2 > li > a:hover { color: var(--color-primary); background-color: var(--color-secondary); text-decoration: none; }
.sub-header .gnb .depth2 > li + li { margin-top: 0; }

/* sub-header는 개별 드롭다운 — mega-menu용 gnb-bg 불필요 */
.sub-header .gnb-bg { display: none; }

/* ========== 전체메뉴 팝업 꾸밈 이미지 제거 ========== */
.sub-header .site-modal .menu-wrap::after { content: none; }

/* ========== 모바일 사이트명 ========== */
.sub-mobile-site-name { padding: 0px 2px 5px; font-size: 1.1rem; font-weight: 700; color: var(--site-title); margin-bottom: 0; }
.sub-mobile-site-name a { color: inherit; }

/* ========== 서브 카테고리 ========== */
.sub-depth-category .categoty-ul{
    display: flex;
    justify-content:flex-start;
    list-style: none;
    margin: 0 0 80px 0;
    padding: 0;
    gap: 40px;
}
.sub-depth-category .categoty-ul li { display: inline-block; }
.sub-depth-category .categoty-ul li a { display: block; text-decoration: none; color: #333; font-size: 18px; padding-bottom: 10px; white-space: nowrap; /* 추가: 줄바꿈 방지 */
}
.sub-depth-category .categoty-ul li.active a { font-weight: bold; border-bottom: 3px solid var(--color-primary); }
.bbs-top .categoty-ul{margin-bottom:0px;}

/* ========================================
   반응형
   ======================================== */

/* ── 모바일 (max-width: 1279px) ── */
@media (max-width: 1279px) {
    .sub-header .header-wrap { height: auto; }

    /* 최상단 바: 재단링크·로그인·회원가입 숨김, 사이트명(좌)+햄버거(우) */
    .sub-tnb-list > li:not(.sub-tnb-menu) { display: none; }
    .sub-tnb-list > li.sub-tnb-menu::before { display: none !important; }
    .sub-tnb { background-color: #fff; border-bottom: 1px solid var(--color-border); }
    .sub-tnb .inner { justify-content: space-between; align-items: center; height: 60px; padding: 0 15px;}
    .sub-mobile-title { display: flex; align-items: center; font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--site-title);}
    .sub-mobile-title:hover { text-decoration: none; color: var(--color-primary); }
    .sub-mobile-title img{height:36px;}

    /* sub-logo-area 모바일에서 숨김 */
    .sub-logo-area { display: none; }

    /* GNB 영역 — nav는 common.css가 숨김 처리 */
    .sub-gnb-wrap { display: none; }

    .m-sns-links{display:flex; gap: 4px; margin-left:auto;}
}

/* ── PC (min-width: 1280px) ── */
@media (min-width: 1280px) {
    .sub-header .header-wrap { height: auto;}
    .sub-tnb-list > li.sub-tnb-menu { display: none; }
    .header-wrap .gnb .depth-area{height:auto;}
    .header-wrap .gnb .depth-area::before{display: none;}
    .header-wrap .gnb > li:last-child .depth-area::after{display: none;}

    .sub-header .gnb > li > a{font-size:1.2rem}
    .sub-header .gnb .depth2 > li > a{font-size: 1rem}

    .main-header{margin-bottom:40px;}
    .main-poster-container { padding: 50px 0 60px; }
    .main-header .section-title {font-size: 32px; text-align:center;}

    .sub-gnb-wrap nav{max-width:1200px;}

}