.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 2;
}

.navbar, .buttons{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.brand{
    font-weight: bolder;
    font-size: 1.5em;
}

.brand:hover{
    font-weight: bolder;
    color: #428aff;
}

button{
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn{
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    background: #428aff;
    padding: 0.5em 1.3em;
    border-radius: 16px;
    color: #fff;
}

.btn:hover{
    background: #3877db;
}

.menu-btn{
    margin-left: 1em;
    background: none;
    display: inline-block;
}

.menu-btn span{
    font-size: 2.3em;
}
.sub-dropdown{
    margin-bottom: 0 !important;
}
#dropdown > div, .sub-dropdown > div {
    cursor: pointer;
}

#dropdown .menu a:hover{
    /* color: #9b9b9b; */
}

@media screen and (min-width: 800px) {
    .navbar{
        padding: 15px 1.5em;
    }
    #dropdown > div{
        padding: 1.5em 1em;
        color: #000;
    }
    .mega-menu{
        display: flex;
        justify-content: center;
    }
    .menu-btn{
        display: none;
    }
    .menu{
        background: #fff;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        padding: 0 2em;
        overflow-y: scroll;
        transition: 0.4s ease-in-out;
        display: flex;
        justify-content: space-evenly;
        /* align-items: center; */
        gap: 0em;
    }

    .menu > li:first-child{
        font-size: 16px;
        /* font-weight: bold; */
        margin: 0;
    }

    .sub-dropdown > div span:first-child{
        font-weight: bold;
    }
    
    #dropdown > div{
        border-bottom: 3px #fff solid;
        transition: 0.3s;
    }

    #dropdown:hover > div{
        border-color: #FF4438;
    }

    #dropdown li{
        margin-bottom: 1em;
        margin-right: -5px;
    }

    #dropdown > div span:last-child, 
    .sub-dropdown > div{
        display: none;
    }

    /* Width */
    .menu::-webkit-scrollbar{
        width: 8px;
    }
    /* Track */
    .menu::-webkit-scrollbar-track{
        background: #f1f1f1;
    }
    /* Handle */
    .menu::-webkit-scrollbar-thumb{
        background: #888;
    }

    /* Handle on hover */
    .menu::-webkit-scrollbar-thumb:hover{
        background: #555;
    }

    /* Hide menu */
    .menu{
        height: 0;
    }
    #dropdown:hover .menu{
        height: max-content;
        padding: 2em 0 0em;
        background: #d12023;
    }
    /* .sub-menu li a{
        color: #fff;
    } */
    .sub-menu li  .hover-text {
        position: relative;
        display: inline-block;
        /* font-size: 24px; */
        /* font-weight: bold; */
        color: #fff;
        transition: color 0.3s ease;
        cursor: pointer;
    }
    
    .sub-menu li .hover-text::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: 0;
        left: 0;
        background-color: #FFD700; /* Highlight color */
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease-in-out;
    }
    
    .sub-menu li .hover-text:hover {
        color: #FFD700;
        transform: scale(1.2);
        font-weight: bold;
        transition: all 0.3s ease-in-out;

    }
    
    .sub-menu li .hover-text:hover::before {
        visibility: visible;
        transform: scaleX(1);
    }
    
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .navbar{
        padding: 1em 1.5em;
    }
    .menu-container{
        background: #fff;
        position: absolute;
        top: 4.4em;
        left: 0;
        width: 100%;
        overflow-y: hidden;
        transition: 0.3s ease-in-out;
    }

    /* Width */
    .mega-menu::-webkit-scrollbar{
        width: 8px;
    }
    /* Track */
    .mega-menu::-webkit-scrollbar-track{
        background: #f1f1f1;
    }
    /* Handle */
    .mega-menu::-webkit-scrollbar-thumb{
        background: #888;
    }
    /* Handle on hover */
    .mega-menu::-webkit-scrollbar-thumb:hover{
        background: #555;
    }
    .mega-menu{
        padding: 0 1em 1em 1em;
        height: 100%;
        overflow-y: scroll;
    }
    .mega-menu li{
        font-weight: bold;
        font-size: 1.1em;
        width: 100%;
    }
    .mega-menu li > div{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5em;
    }
    .menu li{
        padding: 0 1em;
        font-size: 1em;
        font-weight: 400;
    }
    .menu a{
        display: block;
        margin: 0.8em 0;
    }
    .menu{
        display: none;
    }
    /* Toggle class for Javascript */
    .menu-show{
        display: block;
    }
    .material-symbols-outlined{
        transition: 0.3s;
    }
    /* Toggle class for javascript */
    .icon-rotated{
        transform: rotate(90deg);
    }
    #dropdown>div, .sub-dropdown > div{
        cursor: pointer;
        padding: 0.5em;
    }
    .sub-menu{
        font-size: 0.9em;
        display: none;
    }
    /* Toggle class for Javascript */
    .sub-menu-show{
        display: block;
    }
    #dropdown:hover>div, .sub-dropdown:hover>div{
        background: #dbdbdb;
    }
    /* Hide menu */
    .menu-container{
        height: 0;
    }
    /* Toggle class for javascript */
    .mega-menu-show{
        height: 50vh;
    }
}

.brand img{
    max-height: 70px;
}
ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: #000;
}

/* mobile nav */

.logo-hamburger{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    position: relative;
}

.menu-btn {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 30px;
}

.menu-btn__burger {
    width: 25px;
    height: 2px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    width: 25px;
    height: 2px;
    background-color: #fff;
    border-radius: 5px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

.menu-btn.open .menu-btn__burger {
    transform: rotate(45deg);
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(90deg);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(90deg);
}

.nav {
    display: none;
    flex-direction: column;
    background-color: #f3f3f3;
    position: absolute;
    top: 89px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__item {
    border-bottom: 1px solid #e4e4e4;
}

.nav__link {
    color: #000;
    text-decoration: none;
    display: block;
    padding: 15px;
    position: relative;
}

.nav__link .arrow {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: solid #FF4438;
    border-width: 0 2px 2px 0;
    padding: 3px;
}

.nav__item > .nav__link .arrow {
    display: inline-block;
}

.nav__item.open > .nav__link .arrow {
    transform: translateY(-50%) rotate(45deg);
}

.sub-menu-mobile {
    display: none;
    background-color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu-mobile__item {
    border-bottom: 1px solid #555;
}

.sub-menu-mobile__link {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

.nav__item.open > .sub-menu-mobile {
    display: block;
}

.menu-btn.open + .nav {
    display: flex;
}