/*
==========
Styles for navigation bar.
==========
*/

.navbar-center{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.navbar-center a{
    width: max-content;
    height: max-content;
}

.navbar-center a{
    text-decoration: none;
}

.navbar-center a .icon{
    display: block;
    width: 20px;
    height: 20px;
} 

.navbar-center a .icon svg{
    fill: var(--white-color);
    width: 100%;
    height: 100%;
} 

.link, .number{
    color: var(--white-color);
    text-decoration: none;
}

/*
==========
Navigation bar top.
==========
*/

.navbar {
    width: 100%;
    min-height: 50px;
    height: auto;
    background-color: var(--darkblue-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 300px;
    font-size: 15px;
}

.arrow {
    width: 11px;
    height: 15px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

.navbar-left, .navbar-center, .navbar-right {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.navbar-center {
    text-align: center;
}

.navbar-right {
    text-align: right;
}

.link:not(:last-child)::after {
    content: " | "; 
    color: var(--white-color); 
    margin-right: 5px; 
}

.number:not(:last-child)::after {
    content: " / "; 
    color: var(--white-color); 
    margin-right: 5px;
}

.menu-left {
    display: flex;
    justify-content: center;
}



.menu-right {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1; /* It allows the menu to adjust dynamically. */
}

.nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-item {
    position: relative;
    margin-left: 15px;
}

.nav-item a {
    color: var(--black-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px 25px; 
    background-color: var(--white-color-transparent);
    border-radius: 5px; 
    transition: background-color 0.3s ease-in-out;
}

.nav-item a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: var(--yellow-color);
    bottom: 0; 
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-item a:hover {
    background-color: var(--white-color-transparent);
}

.nav-item a:hover::after {
    transform: scaleX(1);
}

.nav-item .dropdown {
    display: none;
position: absolute;
top: 100%;
left: 0;
background-color: var(--white-color);
list-style: none;
padding: 10px;
margin: 0;
box-shadow: 0 6px 12px var(--black-color-transparent);
width: max-content;
border-bottom: 3px solid var(--yellow-color); 
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 10px;
}

.dropdown li a {
    color: var(--black-color);
    text-decoration: none;
}

/* 
==========
Navigation bar.
==========
*/

.menu {
    width: 100%;
    height: 100px;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15%;
    box-shadow: 3px 0 7px var(--black-color-transparent);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all .3s ease-in-out;
}

.menu--reduce{
    width: 100%;
    height: 70px;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15%;
    box-shadow: 3px 0 7px var(--black-color-transparent);
    position: sticky; /* Pin the navigation bar. */
    top: 0; /* The navigation menu stays at the top when scrolling. */
    z-index: 1000; /* Ensures that the bar is on top of other elements. */
    transition: all .3s ease-in-out;
}

/* 
==========
Burger menu. 
==========
*/

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
}

.hamburger-icon {
    font-size: 2rem;
    color: var(--black-color);
}

.menu-logo {
    transform: scale(0.8);
    height: 70px;
}

.logo--reduce{
    transform: scale(0.8);
    transition: all .3s ease-in-out;
}

/*
==========
Screen in 1300px.
==========
*/

@media (max-width: 1300px){
    .menu{
        width: 100%;
        height: 100px;
        background-color: var(--white-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 100px;
        box-shadow: 3px 0 7px var(--black-color-transparent);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all .3s ease-in-out;
    }
}

/*
==========
Screen in 1170px
==========
*/

@media (max-width: 1170px) {
    .informatic {
        width: 100%;
        padding: 20px;
    }

    .estadistic {
        width: 100%;
        height: auto;
        background-color: var(--darkblue-color);
        display: flex;
        justify-content: center;
        padding: 0 20px;
    }

    .menu-right {   
        width: 100%;
        text-align: center;
    }

    .navbar {
        width: 100%;
        height: 50px;
        background-color: var(--darkblue-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 70px;
        padding-right: 70px;
        font-size: 15px;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        width: 100%;
    }

    .nav-item .dropdown {
        width: 100%;
    }

    .menu-toggle {
        display: block; 
    }

    .menu-right.active {
        display: block; 
    }

    .nav-list {
        display: none;
                flex-direction: column;
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                background: var(--white-color);
                box-shadow: 0 4px 6px var(--black-color-transparent);
    }
    .nav-list.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        width: 100%;
    }

    .nav-item .dropdown {
        position: relative;
        width: 100%;
        display: none;
    }
    .dropdown {
        display: none;
        list-style: none;
        padding: 0;
        position: absolute;
        background: var(--white-color);
        box-shadow: 0 4px 6px var(--black-color-transparent);
    }
    .nav-item:hover .dropdown {
        display: block;
    }
    
    .nav-item.has-dropdown:hover .dropdown {
        display: block;
    }
}

/* 
==========
Screen in 768px.
==========
*/
@media (max-width: 768px) {
    .menu-right {
        width: 100%;
        text-align: center;
    }

    .informatic {
        width: 100%;
        padding: 20px;
    }

    .estadistic {
        width: 100%;
        height: auto;
        background-color: var(--darkblue-color);
        display: flex;
        justify-content: center;
        padding: 0 20px;
    }

    .navbar-center{
        display: none;
    }

    .navbar {
        width: 100%;
        height: 50px;
        background-color: var(--darkblue-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 30px;
        padding-right: 30px;
        font-size: 15px;
    }

    .estadistic1 {
        width: 100%;
        height: 60%;
        margin-top: 60px;
        display: grid;
        justify-content: space-evenly;
    }

    .designate-driver {
        padding: 10px !important;
    }

    .img-responsive-girl {
        display: none;
    }

    .service-boxes {
        gap: 4em;
    }
}

/*
==========
Screen in 500px
==========
*/

@media (max-width: 500px) {
    .menu{
        width: 100%;
        height: 100px;
        background-color: var(--white-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        box-shadow: 3px 0 7px var(--black-color-transparent);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all .3s ease-in-out;
    }
}

/*
==========
Screen in 400px
==========
*/

@media (max-width: 450px) {
    .link:not(:last-child)::after {
        content: " "; 
        color: var(--white-color); 
    }

    .number:not(:last-child)::after {
        content: " "; 
        color: var(--white-color); 
    }

    .navbar-left{
        display: flex;
        flex-direction: column;
    }

    .navbar-right{
        display: flex;
        flex-direction: column;
    }

    .navbar {
        width: 100%;
        min-height: 50px;
        height: auto;
        background-color: var(--darkblue-color);
        display: flex;
        justify-content: center;
        gap: 1em;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
    }

    .menu{
        width: 100%;
        height: 100px;
        background-color: var(--white-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 30px;
        box-shadow: 3px 0 7px var(--black-color-transparent);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all .3s ease-in-out;
    }
}