.nav-item{
    margin: 0 5px;
    padding: 0px 10px !important;
}
.nav-item a{
    font-size: 22px !important;
}

.nav-link{
    padding: .2rem 1rem;
    display: flex;
    align-items: center;
}
nav .container,
nav li,
nav img{
    transition: all 0.5s
}

.nav_scroll img{
    width: 150px !important;
}

.nav_scroll .container{
    height: 65px !important
}

@media screen and (max-width:1000px){
    .navbar-brand{
        width:100px !important;
        position: relative !important;
    }
}

.nav-item {
    margin: 0px !important;
    padding: 0px !important;
}


.custom-link {
    display: inline-block;
    position: relative;
    color: black !important;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s;
}

.custom-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--secondary_color) !important;
    z-index: -1;
    transition: width 0.3s, background-color 0.3s;
}

.custom-link:hover {
    color: white !important;
}

.custom-link:hover::before {
    width: 100%;
    background-color: var(--primary_color) !important;
}

/* Custom style for sub-menu links */
.custom-sub-link {
    display: inline-block;
    position: relative;
    color: black !important;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s;
}

.custom-sub-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--secondary_color) !important;
    z-index: -1;
    transition: width 0.3s, background-color 0.3s;
}

.custom-sub-link:hover {
    color: white !important;
}

.custom-sub-link:hover::before {
    width: 100%;
    background-color: var(--primary_color) !important;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0 !important;
    z-index: 1000;
    min-width: 10rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    position: relative;
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s, background-color 0.3s;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--secondary_color);
    z-index: -1;
    transition: width 0.3s, background-color 0.3s;
}

.dropdown-item:hover {
    color: white !important;
    background-color: var(--primary_color) !important;
}

.dropdown-item:hover::before {
    width: 100%;
    background-color:var(--primary_color) !important;
}