/**********************************************************
                        header
***********************************************************/
.header {
    width: 100%;
    height: 35px;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 30px;
    font-size: 11px;
    gap: 52px;
    position: fixed;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid #000;
}

.header .logo img {
    height: 15px;
}

.header .logo a {
    display: inline-block;
    height: fit-content;
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    height: 46px;
}

.nav-items {
    display: flex;
    font-weight: 500;
    gap: 18px;
    align-items: center;
}

.nav-items>li {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.nav-items a:hover {
    color: #f5d84a;
}

/* Style for the submenu container */
.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #EEEEED;
    position: absolute;
    top: 99.5%;
    left: 0;
    width: 120px;
    z-index: 10;
    border: 1px solid #000;
    border-top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    max-height: 300px;
    visibility: visible;
    opacity: 1;
    padding: 10px;
}

.has-submenu {
    position: relative;
}

.has-submenu:hover .submenu {
    max-height: 300px;
    visibility: visible;
    opacity: 1;

}

.submenu li a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
}

.submenu li a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.user-items {
    display: flex;
    gap: 18px;
    font-size: 11px;
    align-items: center;
}

.user-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.user-items .user-lang {
    position: relative;
}

.user-items .tool_multi {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: #EEEEED;
}

.user-items .tool_multi li {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    padding-left: 10px;
}

.user-items .toggle2 {
    display: block;
    padding: 0 10px;
    height: 35px;
    line-height: 35px;
    color: #000;
    background: none;
    border: none;
    font-size: 11px;
}

.user-items .toggle2:after {
    width: 5px;
    height: 5px;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
    position: absolute;
    right: 7px;
    content: " ";
    top: 12px;
    transform: rotate(45deg);
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.user-item img {
    height: 20px;
}

.header.mob {
    display: none;
}

#sidebar {
    display: none;
}


/**********************************************************
                      responsive
***********************************************************/
@media screen and (max-width: 1023px) {
    .header.pc {
        display: none;
    }

    .header.mob {
        background-color: #EEEEED;
        color: #fff;
        height: 40px;
        display: block;
        box-sizing: border-box;
        padding: 0px 16px;
    }


    .header .logo img {
        height: 30px;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    #sidebar {
        display: block;
        height: calc(100% - 40px);
        width: 0;
        position: fixed;
        top: 40px;
        left: 0;
        background-color: #EEEEED;
        overflow-x: hidden;
        transition: 0.3s;
        padding-top: 20px;
        z-index: 1000;
        border-right: 1px solid #ccc;
        white-space: nowrap;

    }

    #sidebar .accordion-content a {
        padding: 10px 20px;
        text-decoration: none;
        font-size: 18px;
        color: #000;
        display: block;
        transition: 0.3s;
        margin-left: 16px;
    }

    #sidebar a:hover {
        background-color: #ddd;
    }

    .sidebar-subitem {
        padding-left: 40px;
        font-size: 16px;
        color: #777;
    }

    .bottom-links {
        bottom: 30px;
        width: 100%;
        margin-top: 80px;
    }

    .bottom-links a {
        display: flex;
        align-items: center;
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .bottom-links img {
        margin-right: 10px;
    }

    /* 검색창 */
    .search-bar {
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .search-bar input {
        width: calc(100% - 24px);
        padding: 5px;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #333;
        font-size: 1em;
        background-color: #eeeeed;
        color: #333;
        font-family: "Pretendard", sans-serif;
    }

    .search-bar input:focus {
        outline: none;
    }



    .search-bar img {
        margin-left: 10px;
        cursor: pointer;
        height: 20px;
    }

    .accordion-item {
        margin-bottom: 10px;
    }

    .accordion-button {
        background-color: transparent;
        color: #000;
        border: none;
        padding: 10px 20px;
        text-align: left;
        width: 100%;
        font-size: 14px;
        cursor: pointer;
        outline: none;
        transition: background-color 0.3s ease;
    }

    .accordion-button:hover {
        background-color: #ddd;
    }

    .accordion-button.active {
        color: #CC800D;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    .accordion-content a {
        padding: 10px 20px;
    }

    .accordion-content a:hover {
        background-color: #e2e2e2;
    }

}

@media screen and (max-width: 499px) {
    #sidebar .accordion-content a {
        font-size: 12px;
    }

    .sidebar-subitem {
        font-size: 14px;
    }
}