/* Base header and nav styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #476F85;
    color: white;
    border-bottom: 8px #FFF solid;
}

.logo img {
    width: 150px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 5px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #d6d74f;
    border-bottom: 2px solid #d6d74f;
}

/* Hamburger icon for mobile */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile-specific styles */
@media (max-width: 768px) {

    .logo img {width: 90px !important;}

    nav {
        display: none; /* Hide by default */
        flex-direction: column;
        background-color: #476F85;
        position: absolute; /* Position it above other elements */
        top: 90px;
        padding-bottom: 20px;
        left: 0;
        width: 100%;
        z-index: 1000; /* Ensure the nav has a high stacking order */
    }

    nav.show {
        display: flex; /* Show when .show class is added */
    }

    .hamburger {
        display: block; /* Show the hamburger on mobile */
        z-index: 1001;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0px;
        padding: 10px 0;
        text-align: center;
        /* border: 1px #FFF solid; */

    }

    nav ul li a:hover,
    nav ul li a.active {
        padding: 10px 50px;
        border: none;
    }




}
