header {
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*box-shadow: 0 15px 15px rgba(0, 0, 0, 0.05);*/
}



.group {
    display: flex;
    align-items: center;
}

header ul {
    left: 0px;
    position: relative;
    display: flex;
    gap: 40px;
    align-items: center;
}

header ul li {
    list-style: none;
}

header ul li a {
    position: relative;
    text-decoration: none;
    font-size: 1em;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

header ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #333333;
    transform: scaleX(0);
    transition: transform 0.5s ease-in-out;
    transform-origin: right;
}

header ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

header .search {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    z-index: 10;
    cursor: pointer;
}

header .searchBox {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: #ffffff;
    align-items: center;
    padding: 0 30px;
    transition: 0.5s ease-in-out;

}

header ul li a#navbarUserName{
    text-transform: none;

}

header ul li a#navbarUserName::before {
    background: none;
    transform: none;
    /*transform-origin: right;*/
    transition: none;
}

header ul li a#navbarUserName:hover::before {
    transform: none;
}

/* ListeneRS 로고 스타일 */
header ul li a#navbarLogo {
    letter-spacing: 0;
}

header ul li a#navbarLogo::before {
    display: none;
}

header ul li a#navbarLogo span {
    transition: background 0.3s ease;
}

header ul li a#navbarLogo:hover span {
    background: linear-gradient(90deg, #9B7FEC 0%, #8BC8FC 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Active 메뉴 스타일 */
header ul li a.active {
    background: #f5f5f5;
    color: #333333;
}

header ul li a.active::before {
    display: none;
}

/* Log In 버튼 스타일 */
#modalOpenButton a {
    color: #999999 !important;
}

/* Dropdown 메뉴 스타일 */
header ul li.dropdown {
    position: relative;
}

header ul li.dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

header ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 8px;
    background: transparent;
    border-radius: 8px;
    min-width: 260px;
    z-index: 1000;
    list-style: none;
}

header ul li.dropdown:hover .dropdown-menu,
header ul li.dropdown .dropdown-menu:hover {
    display: block;
}

header ul li.dropdown .dropdown-menu::before {
    content: '';
    display: block;
    height: 8px;
    margin-bottom: 0;
}

header ul li.dropdown .dropdown-menu > li {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

header ul li.dropdown .dropdown-menu > li:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-top: 8px;
}

header ul li.dropdown .dropdown-menu > li:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-bottom: 8px;
}

header ul li.dropdown .dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

header ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #666 !important;
    font-size: 0.95em;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

header ul li.dropdown .dropdown-menu li a::before {
    display: none !important;
}

header ul li.dropdown .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #333 !important;
}