
.top-bar {
    width: 100%;
    padding: 20px;
    position: static;
    top: 0;
    /* Ensure it stays at the top */
    left: 0;
    /* Align it to the left */
    z-index: 1;
    width: 100%;
    flex-wrap: wrap;
    background-color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    /*    height: 70px;*/
        overflow-x: hidden;


}

.top-bar-left {
    padding-left: 30px;

}

.top-bar-right {
    padding-left: 30px;

}



.nav-list-main li a {
    text-decoration: none;
    color: white;
    font-family: var(--primary-font);
    font-weight: 700;
}

.nav-list-main {

    padding: 0px 100px;
}



/*switch on main nav display to flex--> */

.nav-main ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /*    gap: 20px;*/


}


.nav-main ul li {
    padding: 10px;
    text-wrap: nowrap;

}

.nav-main ul li a {
    font-family: var(--primary-font);
    font-weight: 200;
    font-size: 12px;
    text-decoration: none;
    color: white
}



.nav-item-red-main a:last-of-type {
    font-weight: 700;
    background: var(--color-primary);
    margin-left: 20px;
   padding: 10px;
    color: white;
     transition: 0.3s all ease-in-out;
}

.nav-main ul li a::after {
    content: '';
    height: 2px;
    width: 0%;
    background-color: var(--color-primary);
    display: block;
    margin: auto;
    transition: 0.3s all ease-in-out;
}


.nav-main ul li a:hover::after {
    content: '';
    height: 2px;
    width: 100%;
    background-color: var(--color-primary);
    display: block;
    margin: auto;

}

.nav-item-red-main a:last-of-type::after, .nav-item-red-main a:last-of-type:hover::after {
    content: none;
}
.nav-item-red-main a:last-of-type:hover{
    background: white;
    color: var(--color-primary);
}
/*======================================
        Mobile Drop Down Menu
=======================================*/
/*switch on mobile nav--> */

.nav-Mobile {
    
        display: none;
    z-index: 100;
    
}

.dropdown-container {
    
    position: absolute;
    top: 100px;
    right: 0px;
    max-height: 100vh;
    width: 100%;
   z-index: 1;
}

#icon-checkbox {
    position: absolute;
    opacity: 0;
    top: -6px;
    right: 52px;
    height: 30px;
    width: 30px;
    z-index: 3
}


.icon::before,
.icon::after {
    content: '';
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    background-color: transparent;
    position: fixed;
    top: 40px;
    right: 60px;
    height: 7px;
    width: 30px;
    z-index: 2;
    transform: rotatey(0deg);
    transition: 0.1s all ease-in-out;
}

.icon::before {
    transform: translatey(5px)
}

.icon::after {
    transform: translatey(-4px)
}

.menu-dropdown {
    
    position: relative;
    top: -100vh;
    width: 100%;
    
    background-color: var(--color-secondary);
    transition: 0.3s all ease-in;
    opacity: 0%;

}

.nav-item-m {
    border-top: 0.5px solid white;
    text-align: center;
    padding: 25px;
    z-index: -1;


    width: 100%;

}

.nav-list li a {
    text-decoration: none;
    color: white;
    font-family: var(--primary-font);
    font-weight: 700;
}

.nav-list {

    padding: 0px 20px;

}

.nav-list .red:last-of-type {
    border-top: none;
    background-color: var(--color-primary);
}

.nav-list:first-of-type {
    border-top: none;
}

/*------------------------------
        linking checkbox
------------------------------*/

#icon-checkbox:checked ~ .icon::before {
    top: 40px;
    right: 60px;
    height: 0px;
    transform: rotatez(-45deg);
    transition: 0.1s all ease-in-out;
    background-color: white;
}

#icon-checkbox:checked ~ .icon::after {

    top: 40px;
    right: 60px;
    height: 0px;
    transform: rotatez(45deg);
    transition: 0.1s all ease-in-out;
    background-color: white;
}

#icon-checkbox:checked ~ .menu-dropdown {
    opacity: 100%;
    top: 1px;
    background-color: var(--color-secondary);
    transition: 0.3s all ease-in;
    height: 65vh;
}



