/* header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #ffffff;
    border-bottom: 3px solid #f9f9fb;
}


.navbar__menu {
    display: flex;
    list-style: none;
    padding-left: 0;
    width: 40%;
    font-weight: bold;
}


.navbar__menu li {
    padding: 8px 12px;
    position: relative; 
    float: left; 
    width: 100%; 
    text-align: center;
}

.navbar__menu li::after {
    content: ''; 
    display: block; 
    position: absolute; 
    left: 50%; 
    width: 0; 
    border-bottom: 2px solid #07c21f; 
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
}

.navbar__menu li:hover::after{
    left: 0%; 
    width: 100%; 
    transition: all 0.5s;
}


.navbar__menu li a{
    display: block; 
    padding: 5px 0; 
    font-size: 15px; 
    color: #000;  
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    text-decoration: none;
}

/* 드롭다운 메뉴 기본적으로 숨김 */
.dropdown__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: none;
    width: 100%;
    z-index: 100;
}

.dropdown__menu li {
    width: 90%;
}

.dropdown__menu a {
    padding: 10px;
    display: block;
    white-space: nowrap;
}

/* 드롭다운 메뉴 마우스 올렸을 때 보이게 함 */
.dropdown:hover .dropdown__menu {
    display: block;
}

.navbar__links {
    list-style: none;
    padding-left: 0;
    color: #000000;
    display: flex;
}

.navbar__links li {
    padding: 8px 12px;
}

.navbar__toggleBtn {
    display: none;
    position: absolute;
    right: 32px;
    font-size: 24px;
}

.navbar__container{
    display: flex;
    justify-content: space-around;
    width: 80%;
    align-items: center;
    margin: 0 auto;
}

.dropdown_content {
    position: absolute;
    display: none;
    margin-top: 7px;
    width: 118px;
    background: linear-gradient(to bottom, #abfab5, #00798f);
    border-radius: 5%;
    box-shadow: 4px 4px 10px #c5b0b0;
    animation: fade-in 1s ease;
    right: -14px;
    z-index: 5;
}

.dropdown_content a {
    text-align: center;
    color: #ffffff;
    padding: 0.5rem;
    text-decoration: none;
    display: block;
    font-size: 16px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
/*     .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 24px;
    } */

    .navbar {
        position: relative;
        flex-direction: column;
        align-items: center; /* 기존 flex-start에서 변경 */
    }
    .navbar__menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .navbar__menu li {
        width: 100%;
        text-align: center;
    }
    .navbar__links {
        display: none;
        justify-content: center;
        width: 100%;
    }
/*     .navbar__toggleBtn {
        display: block;
    } */

    .navbar__toggleBtn {
        display: block;
        position: absolute;
        top: 5px; /* 버튼이 내려오지 않도록 고정 */
        right: 32px;
        z-index: 100; /* 다른 요소 위에 표시되도록 설정 */
    }

    .navbar__menu.active,
    .navbar__links.active {
        display: flex;
    }

    .navbar__container{
        flex-wrap: wrap;
    }
    .dropdown_main{
        display: none;
        width: 100%;
    }

    

    .navbar__logo{
        text-align: left;
        margin-right: 40%;
    }

    .navbar__logo img{
        width: 100%;
    }

    .navbar__links li{
        width: 100%;
        text-align: center;
    }

    .dropdown_content{
        width: 100%;
        border-radius: 0px;
        right: 0;
    }
}

@media screen and (max-width: 480px) {
    .navbar__logo img{
        width: 100%;
    }

    .navbar__container{
        justify-content:flex-start;
        width: 90%;
    }

}

.dropdown_main {
    position: relative;
    display: inline-block;
    user-select: none;
}

.dropdown_bar {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    /*     font-size: 20px;
    font-weight: bold; */
}

.dropdown_bar span{
    font-weight: bold;
}

.dropdown_bar svg {
    vertical-align: middle;
    margin-left: 5px;
}



.drop_icon2 {
    display: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}