/* header */
#header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--colorF);
    transition: padding 0.2s ease-in-out, height 0.2s ease-in-out, background 0.2s ease-in-out;
    z-index: 1000;
}

/* #header.sticky{
    position: fixed !important;
} */

header #pageProgress {
    position: fixed;
    /* 스크롤 따라다니게 수정 */
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--theme);
    /* 원하는 색상 */
    opacity: 0;
    transition: width 0.2s ease;
    z-index: 9999;
}

#header.sticky #pageProgress {
    opacity: 1;
}

header .gnb-all nav>ul>li .depth2 li {
    position: relative;
}

header .search-form-wrap .inner {
    position: relative;
    max-width: 1800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

header .tlt-search {
    font-size: 25px;
    font-weight: bold;
}

header .search-wrap {
    border: 2px solid var(--theme);
    border-radius: 5rem;
    overflow: hidden;
    align-items: center;
    /* margin: 0 auto; */
    width: 50%;
    /* flex:1; */
}

header .search-close {
    display: block;
    position: relative;
    width: 35px;
    height: 45px;
    z-index: 2;
    cursor: pointer;
}

header .search-close::before,
header .search-close::after {
    content: "";
    width: 1.5px;
    height: 28px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -0.8rem;
}

header fieldset {
    position: relative;
    width: calc(100% - 20%);
}

header fieldset .search-wrap {
    width: 100%;
}

header .search-close::before {
    transform: rotate(315deg);
}

header .search-close::after {
    transform: rotate(45deg);
}


header .search-wrap .form-control {
    max-width: 100%;
    border: none;
    padding-right: 50px;
    background: var(--colorF3);
}


.back-panel {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    left: 0;
    top: 0;
    cursor: pointer;
    backdrop-filter: blur(5px);
}


header .search-form-wrap {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* 서치폼이 활성화되었을 때 스타일 */
header .search-form-wrap.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

header .search-form {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--colorF);
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 1px 12px 14px rgb(0 0 0 / 15%);
    border-top: 1px solid #eee;
    top: 0;
    padding: 40px 0;
    margin-top: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1.logo a {
    display: inline-block;
    width: 100%;
    height: auto;
}

header h1.logo a img {
    height: auto;
    object-fit: contain;
}

header .cs-top {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

header .cs-top ol {
    display: flex;
    gap: 20px;
    align-items: center;
}

header .cs-top ol>li {
    position: relative;
}

header .cs-top a img {
    position: relative;
    display: inline-block;
    font-size: 16px;
    color: var(--color0);
    width: 25px;
}

header .cs-top a:last-of-type:after {
    display: none;
}

header .cs-top .count {
    font-size: 9px;
    padding: 0px 3px 0px;
    min-width: 10px;
    text-align: center;
    position: absolute;
    top: 0;
    right: -5px;
    border-radius: 30px;
    float: none;
    min-width: 13px;
    height: 13px;
    line-height: 13px;
    box-sizing: border-box;
    background: var(--theme2);
    color: #fff;
    width: auto;
}



.logout_btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #aaa;
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout_btn img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.logout_btn:hover {
    background-color: #888;
}

header .head-bottom {
    position: relative;
    display: none;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
    max-height: 0;
    opacity: 0;
    border-radius: 10px;
    transition: max-height 0.4s ease, opacity 0.4s ease, gap 0.4s ease;
    pointer-events: none;
    padding: 0 16px;
}

header .head-bottom.active {
    display: flex;
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
    gap: 2rem;
    padding: 0 32px;
    overflow: visible;
}

header .head-bottom.no-transition {
    transition: none !important;
}


.head-bottom-inner {
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 20px;
    width: 100%;
    flex-shrink: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--theme);
    color: var(--colorF);
    border-radius: 10px;
    margin: 0;
    transition: margin 0.4s ease;
}

/* 드롭다운 메뉴가 보이도록 hover 시 overflow 변경 */
.head-bottom-inner:has(li:hover) {
    overflow: visible;
}

header .head-bottom.active .head-bottom-inner {
    margin: 10px 0;
}

.head-bottom-inner::-webkit-scrollbar {
    display: none;
}

.head-bottom-close {
    width: 30px;
    height: 30px;
    border-radius: 100px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: var(--theme);
    background: var(--color0);
    transition: all .3s;
    border: solid 1px transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.head-bottom-close:hover {
    background: var(--colorF);
    color: var(--color0);
    border: solid 1px var(--theme);
}



.ui-links {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ui-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px;
    transition: background 0.2s;
    border-radius: 5px;
    min-width: 70px;
}

.ui-links li a img {
    width: 20px;
    height: 20px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.ui-links li a.active,
.ui-links li a:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* 하단 아이콘 바 드롭다운 메뉴 */
.ui-links li {
    position: relative;
}

.ui-links li .depth2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--colorF);
    z-index: 111;
    border: 2px solid var(--theme2);
    border-radius: 5px;
    box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--color7);
    padding: 12px 0 7px 0;
    white-space: nowrap;
    width: fit-content;
    font-size: 14px;
    margin-top: 0;
    list-style: none;
}

/* 드롭다운과 아이콘 사이의 hover 영역 연결 */
.ui-links li .depth2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* 상단 장식 바 */
.ui-links li .depth2::after {
    content: '';
    background: var(--theme2);
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 6px;
    border-radius: 100px;
}

.ui-links li .depth2 li a {
    display: block;
    font-weight: 600;
    color: var(--color7);
    width: 100%;
    padding: 7px 15px;
    flex-direction: row;
    min-width: auto;
}

.ui-links li .depth2 li a img {
    filter: none;
    margin-bottom: 0;
    margin-right: 8px;
}

.ui-links li .depth2 li a:hover {
    color: var(--theme2);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}

.ui-links li:hover .depth2 {
    display: block;
}

header #gnb>ul>li>a.go-shortcut {
    background: var(--color0);
    color: var(--colorF);
    padding: 3px 10px;
    border-radius: 5px;
    border: solid 1px transparent;
    transition: all .3s;
    font-size: 15px;
}

header #gnb>ul>li>a.go-shortcut.active {
    background: var(--colorF);
    color: var(--theme);
    border: solid 1px var(--theme);
}

header #gnb>ul>li>a.go-shortcut.active i {
    transform: rotate(180deg);
}

header #gnb>ul>li>a.go-shortcut i {
    color: var(--theme);
    margin-left: 10px;
}



header ul.links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    gap: 30px;
    color: #878787;
    font-size: 14px;
}

header ul.links li a {
    white-space: nowrap;
}

header ul.links .point {
    background: var(--theme3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

header .head-top .spots {
    color: #999;
    font-size: 15px;
    line-height: 32px;
    font-weight: 700;
    transform: skew(-0.05deg);
}

header .head-top .spots::before {
    content: ' ';
    display: inline-block;
    vertical-align: top;
    width: 30px;
    height: 32px;
    margin-right: 10px;
    background: url("/layout/images/icon/icon-logo.png") center no-repeat;
}


@media screen and (min-width: 1025px) {
    header .head-top {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 1800px;
        margin: 0 auto;
        gap: 2rem;
        overflow: hidden;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, all 0.2s ease-in-out;
    }

    header .head-top-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }




    header .btn-menu-all {
        position: relative;
        width: 20px;
        height: 15px;
        display: none;
    }

    header .btn-menu-all .bar {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: -1px;
        background: var(--color0);
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }

    header .btn-menu-all::before,
    header .btn-menu-all::after {
        content: ' ';
        position: absolute;
        height: 2px;
        background: var(--color0);
        transition: all 0.2s ease-in-out;
    }


    header .btn-menu-all::before {
        top: 0px;
        left: 0;
        width: 100%;
    }


    header .btn-menu-all::after {
        bottom: 0px;
        right: 0;
        width: 50%;
    }

    header .btn-menu-all.open .bar {
        display: none;
    }

    header .btn-menu-all.open::before,
    header .btn-menu-all.open::after {
        width: 20px;
        top: 50%;
        left: 0;
        margin-top: -1px;
        background: var(--theme);
    }


    header .btn-menu-all.open::before {
        transform: rotate(45deg);
    }

    header .btn-menu-all.open::after {
        transform: rotate(-45deg);
    }

    /*// btn-menu-all 모바일에서만 사용하며 pc에서는 로고 옆 버튼 */


    /* #header.sticky .head-top {
        max-height: 0;
        opacity: 0;
        padding: 0;
    } */



    header .gnb-all nav>ul>li .dep2-more {
        content: ' ';
        position: absolute;
        top: 10px;
        right: 5px;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border: 1px solid #333;
        border-top: none;
        border-right: none;
        transform: rotate(225deg);
        transition: transform 0.1s ease-in-out;
    }

    header .gnb-all nav>ul>li .dep2-more:hover {
        color: var(--theme2);
    }


    header .gnb-all nav>ul>li .dep2-more.open {
        margin-top: 0px;
        top: 3px;
        transform: rotate(-45deg);
    }


    header .menu-all {
        position: relative;
        display: block;
        padding-left: 22px;
        height: 28px;
    }

    header .menu-all::before,
    header .menu-all::after {
        content: ' ';
        position: absolute;
        height: 2px;
        background: var(--color0);
        transition: all 0.2s ease-in-out;
    }

    header .menu-all::before {
        top: 6px;
        left: 0;
        width: 100%;
    }

    header .menu-all::after {
        bottom: 6px;
        left: 0;
        width: 50%;
    }

    header .menu-all .bar {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: -1px;
        background: var(--color0);
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }

    header .menu-all .txt {
        display: inline-block;
        vertical-align: top;

        line-height: 30px;
        color: var(--color0);
        font-weight: bold;
    }

    header .menu-all.open .txt {
        color: var(--theme);
    }

    header .menu-all.open .bar {
        opacity: 0;
    }

    header .menu-all.open::before,
    header .menu-all.open::after {
        width: 20px;
        top: 50%;
        left: 0;
        margin-top: -1px;
        background: var(--theme);
    }

    header .menu-all.open::before {
        transform: rotate(45deg);
    }

    header .menu-all.open::after {
        transform: rotate(-45deg);
    }

    header .head-cont {
        background: #fff;
        transition: all 0.2s ease-in-out;
        border-width: 1px 0;
        padding: 8px 16px;
    }

    header #gnb {
        max-width: 100%;
        display: flex;
        align-items: center;
        margin: 0 auto;
        gap: 30px;
    }

    header #gnb > ul {
        flex: 1;
    }

    .gnb-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .gnb-setting {
        display: flex;
        align-items: center;
        color: var(--color0);
        cursor: pointer;
    }

    .gnb-setting .material-icons {
        font-size: 22px;
    }

    #header #gnb .logo {
        transition: width 0.3s ease, opacity 0.3s ease;
        display: block;
    }

    /* #header.sticky #gnb .logo {
        width: var(--logo-fixed, 100px);
        opacity: 1;
        margin-right: 30px;
    } */

    @keyframes header_logo {
        0% {
            width: 0;
            opacity: 0;
            visibility: hidden;
        }

        20% {
            opacity: 0;
            visibility: hidden;
        }

        50% {
            width: 25%;
        }

        75% {
            width: 100%;
        }

        100% {
            opacity: 1;
            width: 100%;
            visibility: visible;
        }
    }

    header #gnb>ul {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    header #gnb>ul>li {
        position: relative;
        color: var(--color0);
        padding: 10px 0;
    }

    header #gnb>ul>li.active {
        color: var(--theme);
    }

    header #gnb>ul>li>a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.5;
        white-space: nowrap;
        font-weight: 700;
        cursor: pointer;
    }

    header #gnb>ul>li>a.active {
        color: var(--theme);
    }

    header #gnb>ul>li .depth2 {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 50%;
        transform: translate(-50%);
        background: var(--colorF);
        z-index: 111;
        border: 2px solid var(--theme2);
        border-radius: 5px;
        box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.3);
        text-align: left;
        color: var(--color7);
        padding: 7px 0;
        height: auto;
        white-space: nowrap;
        width: fit-content;
        font-size: 15px;
    }

    header #gnb>ul>li .depth2::before {
        content: '';
        background: var(--theme2);
        position: absolute;
        top: -3px;
        left: 50%;
        transform: translate(-50%);
        width: 20%;
        height: 6px;
        border-radius: 100px;
    }

    header #gnb>ul>li .depth2 li {
        position: relative;
    }

    header #gnb>ul>li .depth2 li.active a {
        color: var(--color0);
        font-weight: bold;
    }


    header #gnb>ul>li .depth2 li a {
        position: relative;
        display: inline-block;
        font-weight: 600;
        color: var(--color7);
        width: 100%;
        padding: 7px 15px;
    }

    header #gnb>ul>li .depth2 li a:hover {
        color: var(--theme2);
        font-weight: 700;
    }

    header #gnb>ul>li:hover .depth2 {
        display: block;
    }

    /* 개별메뉴 2번째 댑스 화살표*/
    header #gnb>ul>li:hover .depth2 .arrow>a::before {
        width: 6px;
        height: 6px;
        border-width: 1px 1px 0 0;
        border-color: #aaa;
        border-style: solid;
        position: absolute;
        display: inline-block;
        content: "";
        transform: rotate(45deg) translate(0%, -50%);
        right: 15px;
        top: 50%;
        margin-top: -1.5px;
    }

    /* 개별메뉴 3번째뎁스 */
    header #gnb>ul>li .depth2>li>.depth2_more {
        display: none;
        position: absolute;
        left: 100%;
        top: -8px;
        padding: 7px;
        background: #fff;
        z-index: 112;
        box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: left;
        color: var(--color7);
        min-width: 150px;
        padding: 7px 0;
        max-height: 450px;
        overflow: hidden;
        overflow-y: scroll;
        scroll-behavior: smooth;
        /* 스크롤을 부드럽게 처리 */
    }


    header #gnb>ul>li:hover .depth2,
    header #gnb>ul>li .depth2 li:hover .depth2_more {
        display: block;
    }

    header #gnb>ul>li>a:hover {
        color: var(--theme2);
        font-weight: bold;
    }


    header .gnb-all {
        display: none !important;
        position: absolute;
        left: 0;
        right: 0;
        background: #fff;
        transition: top 0.3s ease-in-out;
        z-index: 111;
        border-bottom: solid 1px var(--colorD);
    }


    header .gnb-all>nav {
        max-width: 1800px;
        margin: 0 auto;
        border: solid 1px blue;
    }


    header .gnb-all>nav .dep1-more {
        color: var(--theme);
    }

    header .gnb-all nav>ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1%;
    }

    header .gnb-all nav>ul>li {
        flex: 1 1 15.66%;
        max-width: 15.66%;
        text-align: left;
        margin-top: 20px;
    }

    header .gnb-all nav>ul>li .dep1-link {
        font-weight: bold;

        margin-bottom: 5px;
        display: block;
        color: var(--color0);
    }


    header .gnb-all nav>ul>li a:hover {
        color: var(--theme);
        text-decoration: underline;
        font-weight: bold;
    }

    header .gnb-all nav>ul>li .depth2 {
        display: block !important;
        margin-top: 5px;
    }

    header .gnb-all nav>ul>li .depth2>li {
        padding-right: 20px;
    }

    header .gnb-all nav>ul>li .depth2>li {
        font-size: 15px;
        margin-top: 10px;
        line-height: 1.2;
    }

    header .gnb-all nav>ul>li .depth2>li.hover {
        position: relative;
    }

    header .gnb-all nav>ul>li .depth2>li.hover::before {
        content: ' ';
        position: absolute;
        top: 10px;
        right: 5px;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border: 1px solid #333;
        border-top: none;
        border-right: none;
        transform: rotate(225deg);
        transition: transform 0.1s ease-in-out;
    }

    header .gnb-all nav>ul>li .depth2 li>a {
        display: inline-block;
        vertical-align: top;
        font-size: 14px;
        font-weight: 400;
        color: var(--color7);
        word-break: keep-all;
    }

    header .gnb-all nav>ul>li .depth2 li a:hover {
        text-decoration: underline;
        color: var(--theme);
    }

    header .gnb-all nav>ul>li .depth2 li .depth3 {
        text-align: left;
        padding: 5px;
        overflow-y: scroll;
        max-height: 400px;
        display: none;
        position: absolute;
        left: 100%;
        top: -3px;
        background: #fff;
        z-index: 112;
        box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: left;
        color: var(--color7);
        min-width: 150px;
        overflow: hidden;
        overflow-y: scroll;
        scroll-behavior: smooth;
    }

    header .gnb-all nav>ul>li .depth2 li .depth3 li {
        margin-top: 5px;
    }

    header .gnb-all nav>ul>li .depth2 li .depth3 a {
        font-size: 14px;
        text-align: left;
        width: 100%;
    }

    header .gnb-all nav>ul>li .depth2 li .depth3 a:hover {
        color: var(--theme3);
    }

    header.scroll .head-top {
        height: 80px;
    }





    header.scroll #gnb>ul>li>a {
        height: 50px;
        line-height: 50px;
    }

    header.scroll .gnb-all {
        /* top: 110px; */
    }

    header.scroll .gnb-all::before {
        height: 50px;
    }

    header.open .gnb-all {
        display: block !important;
        background: var(--colorF);
        opacity: 0.98;
        animation: slideDown 0.3s ease-out;
    }

    header.open .gnb-all .inner {
        position: relative;
        background: #fff;
        box-shadow: 1px 12px 14px rgb(0 0 0 / 15%);
        padding: 20px 0;
        z-index: 2;
        width: 100%;
    }


    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 0.95;
            transform: translateY(0);
        }
    }

    .membership {
        display: none;
    }

    .nav-tab-wrap {
        position: relative;
        max-width: 1800px;
        margin: 0 auto;
        font-size: 0;
        max-height: calc(90vh - 300px);
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 350px;
        justify-content: space-between;
        padding: 0 20px;
    }


    .nav-tab-wrap nav {
        width: 100%;
    }

    .nav-tab-wrap .boardCont {
        position: relative;

        display: block;
        margin-top: 20px;
        border-left: 1px solid #eee;
        margin-left: 1vw;
        padding-left: 1vw;
    }

    .nav-tab-wrap .tabs-list {
        padding: 10px;
        margin-bottom: 10px;
        border-bottom: solid 1px #ddd;
        padding: 10px 0;
    }

    .nav-tab-wrap .tabs-list li {
        flex: unset;
        font-size: 18px;
    }

    .nav-tab-wrap .tab-panel {
        position: relative;
    }

    .nav-tab-wrap .tab-panel.active {
        display: flex;
    }

    .nav-category-wrap {
        display: none;
    }


    /* 개별메뉴 2번째 뎁스 화살표 */
    .nav-tab-wrap nav ul.depth2 li:hover .arrow>a::before {
        width: 6px;
        height: 6px;
        border-width: 1px 1px 0 0;
        border-color: var(--color0);
        border-style: solid;
        position: absolute;
        display: inline-block;
        content: "";
        transform: rotate(45deg) translate(0%, -50%);
        right: 5px;
        top: 50%;
        margin-top: -1.5px;
    }

    /* 개별메뉴 3번째 뎁스 */
    .nav-tab-wrap nav ul.depth2 li .depth2_more {
        display: none;
        position: absolute;
        left: 100%;
        top: -10px;
        padding: 7px;
        background: #fff;
        z-index: 112;
        box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: left;
        color: var(--color7);
        min-width: 150px;
        scroll-behavior: smooth;
        /* 스크롤을 부드럽게 처리 */
    }


    /* depth2 및 depth2_more hover 시 표시 */
    .nav-tab-wrap nav ul.depth2 li:hover .depth2_more {
        display: block;
    }

    /* hover형태 추가 250501 */

    /* .nav-tab-wrap nav ul.depth2 li .depth2_more li:hover a{
        border:solid 1px blue; hover 확인용 
    } */
    header .gnb-all nav>ul>li .depth2 li.arrow {
        position: relative;
    }

    .nav-tab-wrap nav ul.depth2 li .depth2_more li .depth3_more {
        display: none;
    }

    .nav-tab-wrap nav ul.depth2 li .depth2_more li:hover .depth3_more {
        border: solid 1px red;
        position: absolute;
        display: block;
        position: absolute;
        left: 100%;
        top: -8px;
        padding: 7px;
        background: #fff;
        z-index: 112;
        box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: left;
        color: var(--color7);
        scroll-behavior: smooth;
        z-index: 1;
        width: 100%;
        white-space: nowrap;
        width: fit-content;
    }

    header .gnb-all nav>ul>li .depth2 li ol li a {
        width: 100%;
        display: block;
        padding: 0 5px;
    }


    .boardCont ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 0 20px;
        gap: 10px;
    }

    .boardCont .cateView {
        color: #222;
        display: block;
        margin: 0 0 10px;
        font-size: 15px;
        font-weight: bold;
        text-align: left;
    }

    .boardCont .cate {
        color: #777;
        display: block;
        font-size: 14px;
        transition: color .25s ease;
    }


    header.open .nav-category,
    header.open .nav-btn-group,
    header.open .nav-sns-list {
        display: none;
    }

}




@media screen and (max-width: 1366px) {
    header #gnb>ul {
        padding: 16px;
        white-space: nowrap;
        overflow-x: auto;
        display: flex;
        gap: 17px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: space-between;
    }

    header #gnb>ul::-webkit-scrollbar {
        display: none;
    }

    /* 각 항목 스냅 포인트 지정 */
    header #gnb>ul>li {
        scroll-snap-align: start;
    }

}


@media screen and (max-width: 1024px) {

    header .head-top {
        position: relative;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        border-bottom: solid 1px #e6e6e6;
        padding: 0 16px;
    }

    /* header ul.links {
        padding-right:50px;
    } */

    header .head-top .search-wrap {
        display: flex;
        border: 2px solid var(--theme);
        flex: 1;
        border-radius: 5rem;
        overflow: hidden;
        align-items: center;
        order: 2;
        padding: 0 16px;
        margin: 10px;
        background: var(--colorF3);
    }

    header .search-form {
        padding: 10px 0;
    }

    header .head-top .search-wrap .form-control {
        max-width: 100%;
        border: none;
        height: 40px;
        min-height: 40px;
    }

    /* 
    header .head-top .links {
        padding: 10px;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        order: 1;
        font-size: 14px;
        color: #878787;
        z-index: 1111;
        position: fixed;
        top: 0;
        right: 50px;
        height: 50px;
        background: #fff;
        border: solid 1px blue;
        overflow: hidden;
        overflow-x: scroll;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s;
        max-width: 350px;
    } */

    /* header.open .head-top .links {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        display: none;
    } */

    header.open .head-top .links li {
        white-space: nowrap;
    }

    header h1.logo {
        padding: 7px 16px;
        font-size: 1em;
        line-height: 1;
        background: #fff;
        order: 2;
    }

    header h1.logo.center {
        text-align: center;
    }

    header h1.logo a {
        display: inline-block;
        width: fit-content;
    }

    header .head-top .spots {
        display: none;
    }

    header .head-bottom {
        position: relative;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        border-bottom: solid 1px #e6e6e6;
        margin: 0 16px;
    }

    header .menu-all {
        display: none;
    }

    header #gnb {
        display: flex;
        padding: 0;
        overflow-x: auto;
        justify-content: center;
        align-items: center;
    }

    header #gnb>*::-webkit-scrollbar {
        display: none;
    }


    header #gnb>ul li {
        display: flex;
        align-items: center;
        gap: 20px;
        font-weight: 600;
    }

    header #gnb>ul li,
    header #gnb>ul li button {
        font-size: 15px;
    }

    header #gnb>ul li ul.depth2 {
        display: none;
    }

    header #gnb>ul li.cs-top {
        position: absolute;
        top: 10px;
        right: 50px;
    }

    header .gnb-all nav>ul>li>button {

        color: var(--theme);
        padding-bottom: 10px;
    }

    header .btn-menu-all {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 45px;
        height: 45px;
        z-index: 11111;
        display: none !important;
    }

    header .btn-menu-all.open .bar,
    header .btn-menu-all.open::before,
    header .btn-menu-all.open::after {
        background: #333;
    }

    header .btn-menu-all.open .bar {
        opacity: 0;
    }

    header .btn-menu-all.open::before {
        transform: rotate(-45deg);
        margin-top: -1px;
    }

    header .btn-menu-all.open::after {
        transform: rotate(45deg);
        margin-top: -1px;
    }

    header .btn-menu-all .bar,
    header .btn-menu-all::before,
    header .btn-menu-all::after {
        content: ' ';
        position: absolute;
        top: 50%;
        right: 12px;
        width: 22px;
        height: 2px;
        background: var(--color5);
        opacity: 1;
        transition: all 0.2s ease-in-out;
    }

    header .btn-menu-all .bar {
        /* width: 18px; */
        margin-top: -1px;
    }

    header .btn-menu-all::before {
        margin-top: -9px;
    }

    header .btn-menu-all::after {
        margin-top: 7px;
    }

    header .btn-menu-all.open {
        position: fixed;
        display: block;
    }

    header .gnb-all {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    /* active 클래스가 추가되면 보임 */
    header.open .gnb-all {
        opacity: 1;
        visibility: visible;
    }

    header .gnb-all .inner {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        height: 100%;
        background: #fff;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        width: 100%;
        max-width: 380px;
        z-index: 1111;
    }

    header.open .gnb-all .inner {
        right: 0;
    }

    header .gnb-all .membership {
        position: sticky;
        top: 0;
        left: 0;
        border-radius: 0;

        background: var(--colorF);
        z-index: 1111;
    }

    header .gnb-all .membership .member {
        padding: 20px;
        font-size: 14px;
    }

    header .gnb-all .membership .grade {
        margin-top: 5px;
    }

    header .gnb-all .membership .sc_box {
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    header .gnb-all .membership .sc_box ul {
        display: flex;
        flex-wrap: wrap;
    }


    header .gnb-all .membership .sc_box li:nth-child(1) {
        border-left: 0;
    }

    header .gnb-all .membership .sc_box li {
        flex: 1 1 33.33%;
        display: block !important;
        border-left: 1px solid #eee;
    }

    header .gnb-all .membership .sc_box a {
        display: block;
        text-align: center;
        font-size: 0.9rem;
        color: #777;
        padding: 1.2rem 0;
    }

    header .gnb-all .membership .sc_box img {
        display: block;
        margin: 0 auto 5px;
        height: 1.2rem;
    }

    header .gnb-all nav>ul {}

    header .gnb-all nav>ul>li {
        position: relative;
        border-bottom: solid 1px #ddd;
        font-weight: bold;
    }

    header .gnb-all nav>ul>li a {
        color: var(--color3);
        display: block;
        padding: 15px 20px;
        width: fit-content;

    }

    header .gnb-all nav>ul>li p.depth1 {
        display: none;
    }

    header .gnb-all nav>ul>li .dep1-more {
        content: ' ';
        position: absolute;
        top: 20px;
        right: 20px;
        width: 12px;
        height: 10px;
        margin-top: -5px;
        border: 2px solid #333;
        border-top: none;
        border-right: none;
        transform: rotate(-45deg);
        transition: transform 0.2s ease-in-out;
    }

    header .gnb-all nav>ul>li .dep1-more.open {
        margin-top: -3px;
        transform: rotate(135deg)
    }

    header .gnb-all nav>ul>li .dep1-more.open::after {
        margin-top: -3px;
        transform: rotate(135deg);
    }

    header .gnb-all nav>ul>li ul.depth2 {
        display: none;
        padding: 10px;
        border-top: 1px solid #ddd;
    }

    header .gnb-all nav>ul>li ul.depth2 li a {
        display: block;
        font-size: 14px;
        transform: skew(-0.05deg);
        font-weight: 500;
        color: var(--color7);
        display: block;
        padding: 10px;
        width: fit-content;
    }

    header .gnb-all nav>ul>li ul.depth2 ol.depth3 {
        display: none;
        padding: 10px;
        background: var(--colorF6);
        border-left: 1px solid #bbb;
        overflow-y: auto;
        max-height: 300px;
    }

    header .gnb-all nav>ul>li ul.depth2 ol.depth3 li {
        margin-top: 5px;
        padding-left: 10px;
    }


    header .gnb-all nav>ul>li ul.depth2 ol.depth3 li:first-child {
        margin-top: 0;
    }

    header .gnb-all nav>ul>li ul.depth2 ol.depth3 li a {
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: #666;
    }

    header .gnb-all nav>ul>li ul.depth2 ol.depth3 li a:hover {
        color: #333;
        text-decoration: underline;
    }

    header .gnb-all nav>ul>li .dep2-more {
        content: ' ';
        position: absolute;
        top: 18px;
        right: 10px;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border: 1px solid var(--color0);
        border-top: none;
        border-right: none;
        transform: rotate(-45deg) translate(50%, 0);
        transition: transform 0.1s ease-in-out;
    }

    header .gnb-all nav>ul>li .dep2-more.open {
        transform: rotate(135deg);
        margin-top: 0px;
        top: 15px;
        border-color: var(--theme);
    }

    header .search-form-wrap-wrap .inner {
        gap: 5px;
        justify-content: space-evenly;
    }

    header .tlt-search {
        display: none;
    }

    header .sec_line_gray {
        border-bottom: 0.5rem solid var(--colorF5) !important;
    }

    header .gnb-all nav>ul>li .depth2 li.hover {
        position: relative;
    }

    header .gnb-all nav>ul>li .depth2 li.hover .depth2_more {
        display: none;
        position: relative;
        padding-left: 10px;
    }

    header .gnb-all nav>ul>li .depth2 li.hover.active .depth2_more {
        display: block;
    }

    header .gnb-all nav>ul>li .depth2 li.hover .depth2_more .arrow {
        position: relative;
    }

    /* 아래화살표 */
    header .gnb-all nav>ul>li .depth2 li.hover .depth2_more .arrow .dep3-more {
        content: ' ';
        position: absolute;
        top: 18px;
        right: 10px;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border: 1px solid var(--color0);
        border-top: none;
        border-right: none;
        transform: rotate(-45deg) translate(50%, 0);
        transition: transform 0.1s ease-in-out;
    }

    /* arrow.open 아래화살표 → 위로 회전 */
    header .gnb-all nav>ul>li .depth2 li.hover .depth2_more .arrow.open .dep3-more {
        transform: rotate(135deg) translate(50%, 0);
    }

    header .gnb-all nav>ul>li .depth2 li.hover .depth2_more .arrow .depth3_more {
        display: none;
        padding: 10px;
        background: var(--colorF6);
        border-left: 1px solid #bbb;
        overflow-y: auto;
        max-height: 300px;
    }

    /* arrow.open  depth3_more 열기 */
    .header .gnb-all nav>ul>li .depth2 li.hover .depth2_more .arrow.open .depth3_more {
        display: block;
    }

    .nav-tab-wrap {
        position: relative;
        display: block;
    }

    .nav-tab-wrap nav {
        padding: 0;
    }

    .nav-tab-wrap .tabs-list {
        display: flex;
        gap: 0;
        padding: 16px;
    }

    .nav-tab-wrap .tabs-list li {
        flex: 1;
        text-align: center;
        cursor: pointer;
        padding: 20px 0;
        border: solid 1px var(--color1);
        display: block;
    }

    .nav-tab-wrap .tabs-list li.active {
        background: #444;
    }

    .nav-tab-wrap .tabs-list li.active a {
        color: #fff;
        width: 100%;
        height: 100%;
    }

    .nav-tab-wrap .tab-panel.active {
        display: block;
    }

    .my-page-btn {
        background-color: var(--color9);
        color: var(--colorF);
        border-radius: 10px;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 13px;
        font-weight: 500;
    }

    .nav-actions {
        width: 100%;
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }

    .nav-actions a {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        padding: 10px 0;
        letter-spacing: 1px;
        font-size: 14px;
        font-weight: 600;
        text-indent: unset;
        width: 33%;
    }

    .nav-widget {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        padding: 15px 0;
        border: 1px solid var(--colorD9);
        border-width: 1px 0;
        margin: 20px 0;
    }

    .nav-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 10px;
    }

    .nav-item {
        width: 100%;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
        font-size: 15px;
    }

    .nav-item-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        gap: 5px;
    }

    .nav-item-row {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .nav-item-row li {
        flex: 1;
    }

    .nav-item-row li a,
    .nav-item-row li button {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 75px;
    }

    .nav-label {
        color: #707070;
        font-weight: 400;
        white-space: nowrap;
    }

    .nav-count {
        color: #00A29A;
        font-weight: 600;
    }

    .nav-category-wrap {
        display: block;
    }

    .nav-category {
        position: relative;
        padding: 15px 10px;
    }

    .nav-title {

        font-weight: bold;
        margin-bottom: 10px;
    }

    .nav-category ul {
        position: relative;
        display: flex;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
        justify-content: space-around;
    }

    .nav-category ul li {
        position: relative;
        width: calc(33.333% - 10px);
        font-size: 14px;
        white-space: nowrap;
    }

    .nav-category ul li a {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 10px;

    }

    .nav-category ul li a .bg-wrap {
        background: #ecf0f2;
        padding: 10px;
        width: 75px;
        height: 75px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
    }

    .nav-category ul li img {
        position: relative;
        width: 40px !important;
        object-fit: contain;
    }

    .nav-menu {
        position: relative;
        width: 100%;
        border: 1px solid var(--colorD9);
        border-width: 1px 0;
        margin: 20px 0;
    }

    .nav-btn-group {
        position: relative;
        padding: 10px;
        display: flex;
    }

    .nav-btn-group a {
        flex: 1;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;

        font-weight: bold;
    }

    .nav-sns-list ul {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin: 10px;
    }

    .nav-sns-list ul li {
        position: relative;
    }

    .nav-sns-list ul li a {
        width: 30px;
        height: 30px;
        border-radius: 100%;
        overflow: hidden;
        display: block;
    }

    .boardCont {
        display: none;
    }

    .accordion-wrap {
        position: relative;
        margin: 20px 0;
    }

    .accordion-wrap ul.lists {
        position: relative;
        overflow: hidden;
    }

    .accordion-wrap ul.lists li {
        border: solid 1px var(--color1);
        margin: 0 20px;
        margin-bottom: 10px;
        /* border-radius: 10px; */
    }

    .accordion-wrap ul.lists>li .accord-title {
        display: block;
        position: relative;
    }

    .accordion-wrap ul.lists>li .accord-title .btn-toggle {
        display: flex;
        position: relative;
        width: 100%;
        padding: 8px;
        text-align: left;
        font-size: 13px;
        line-height: 24px;
        letter-spacing: -0.3px;
        font-weight: 500;
        word-break: keep-all;
        gap: 20px;
    }

    .accordion-wrap ul.lists>li .accord-title .btn-toggle p {
        color: var(--color6);
        font-weight: 500;
    }

    .accordion-wrap ul.lists>li .accord-title .btn-toggle::after {
        content: ' ';
        position: absolute;
        top: 50%;
        right: 25px;
        width: 10px;
        height: 10px;
        border: 2px solid #686868;
        border-top: none;
        border-left: none;
        margin-top: -8px;
        transform: rotate(45deg);
        transition: all 0.2s ease-out;
    }

    .accordion-wrap ul.lists>li .accord-cont {
        display: none;
        position: relative;
        padding: 10px;
        padding-left: 10px;
        background: var(--colorF5);
        color: var(--color0);
        font-size: 13px;
        line-height: 23px;
        letter-spacing: -0.3px;
        word-break: keep-all;
    }

    .accordion-wrap ul.lists>li.open .accord-title .btn-toggle::after {
        margin-top: -3px;
        transform: rotate(225deg);
        border-color: var(--color0);
    }

    .nav-login {
        background: var(--colorF6);
        font-size: 13px;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .nav-login a {
        color: var(--color7);
    }

}



@media screen and (max-width: 767px) {
    header.open {
        z-index: 2;
    }

    .nav-category ul {
        justify-content: space-between;
    }

    .nav-category ul li {
        width: calc(33.333% - 10px);
        text-align: center;
    }

    header .gnb-all .inner {
        width: 85%;
    }

    header.open .head-top .links {
        display: none;
    }

    .back-panel {
        top: -100px;
        height: 1000%;
    }
}

/* ── AG Grid 전역 설정 ── */
:root {
  --app-font-family: '맑은 고딕';
  --app-font-size: 12px;
  --ag-row-height: 46px;
}

.ag-theme-alpine .ag-cell,
.ag-theme-alpine .ag-header-cell,
.ag-theme-balham .ag-cell,
.ag-theme-balham .ag-header-cell,
.ag-theme-material .ag-cell,
.ag-theme-material .ag-header-cell,
[class*="ag-theme-"] .ag-cell,
[class*="ag-theme-"] .ag-header-cell {
  font-family: var(--app-font-family) !important;
  font-size: var(--app-font-size) !important;
}

body.grid-bold .ag-cell {
  font-weight: bold !important;
}

body.menu-bold .special-menu,
body.menu-bold .special-menu a,
body.menu-bold .gnb,
body.menu-bold .gnb a {
  font-weight: bold !important;
}

/* ── 연도 선택 ── */
.year-select-wrapper {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.year-select {
  padding: 4px 8px;
  padding-right: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  /* QA C4: 드롭다운 화살표 복구 — background:#fff 단축속성이 전역 select 화살표를 덮어 사라졌음 */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E") no-repeat right 6px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 120px;
}

.year-select:hover {
  border-color: #999;
}

.year-select:focus {
  outline: none;
  border-color: #4a90d9;
}
