.top-header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 900;
    width: 100%;
    height: auto;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 1440px;
    position: relative;
}

.top-header::after {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
    z-index: 100;
    pointer-events: none;
}

.header-ci {
    left: 25px;
    margin-left: 0;
    position: absolute;
    z-index: 990;
    width: 87px;
    height: 70px;
    top: auto;
    display: flex;
    align-items: center;
}

.header-ci-img {
    height: 40px;
}

.header-nav {
    width: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    z-index: 20;
    box-sizing: border-box;
    max-width: 850px;
    padding: 0;
    margin: 0 auto;
}

.nav-main {
    width: 25%;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin: 0;
}

.nav-main span {
    display: inline-block;
    vertical-align: top;
    height: 70px;
    padding: 20px 0;
    box-sizing: border-box;
    line-height: 31px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: all .4s;
    border-bottom: 1px solid rgba(0, 0, 0, .01);
}

.nav-main:hover span {
    color: var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
}

.nav-main:hover .nav-subs {
    background-color: #e4f1ff;
}

.nav-subs.show {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
}

.nav-subs {
    list-style: none;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin: 0;
    height: calc(100% - 70px);
    max-height: 0;
    background-color: #fff;
    transition: all .4s;
    opacity: 0;
    visibility: hidden;
}

.nav-subs-item {
    display: inline-block;
    vertical-align: top;
    height: 60px;
    box-sizing: border-box;
    line-height: 31px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .4s;
    font-weight: 600;
}

.nav-subs-item a {
    text-decoration: none;
    color: rgba(0, 0, 0, .74);
}

.nav-subs-item:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.nav-subs-item:hover a {
    color: var(--primary-blue);
}

.header-sitemap {
    position: absolute;
    right: 25px;
    margin-right: 0;
    top: 21px;
    z-index: 71;
    font-size: 18px;
}

.header-sitemap a {
    text-decoration: none;
    color: #000;
}

.header-sitemap-mobile {
    display: none;
}

/* 모바일 슬라이드 메뉴 */
.mobile-sitemap-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-sitemap-menu.active {
    right: 0;
}

.mobile-sitemap-close {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 16px;
}

.mobile-sitemap-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-sitemap-nav>ul>li {
    margin-bottom: 12px;
}

.mobile-sitemap-nav span {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.mobile-sitemap-nav a {
    display: block;
    padding: 4px 0 4px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.mobile-sitemap-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sitemap-nav>ul>li {
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.mobile-sitemap-nav span {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    position: relative;
}

.mobile-sitemap-nav span::after {
    content: '›';
    position: absolute;
    right: 0;
    color: #aaa;
}

.mobile-sitemap-nav li ul li {
    padding: 6px 0 6px 0;
}

.mobile-sitemap-nav a {
    display: block;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sitemap-nav a:hover {
    background-color: #f0f0f0;
    color: #000;
}


.language-dropdown {
    position: absolute;
    display: inline-block;
    top: 20px;
    right: 60px;
}

.dropdown-toggle {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.language-dropdown:hover .dropdown-menu {
    display: block;
}

.header-language-switcher {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #000;
    font-size: 14px;
    position: absolute;
    top: 21px;
    right: 68px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 35px;
    background-color: rgb(251 251 251 / 80%);
    border-radius: 8px;
}

.header-language-switcher.mobile {
    display: none;
    z-index: 1000;
}

.header-language-switcher a {
    color: #000;
    text-decoration: none;
}

.header-language-switcher a:hover {
    transition: all .4s;
    color: #666666;
}

.header-language-switcher.white, .header-language-switcher.white a {
    color: #fff;
}

.header-language-switcher.white a:hover {
    color: #b8b8b8;
}

@media (max-width: 1023px) {
    .header-sitemap-mobile {
        display: flex;
        position: fixed;
        right: 25px;
        top: 21px;
        z-index: 71;
        font-size: 18px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, .08);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: rgb(251 251 251 / 80%);
    }

    .top-header {
        display: none;
    }

    .header-language-switcher.mobile {
        position: absolute;
        display: flex;
    }
}