/* nav.css */

/* Header styles */
.main-header {
    display: flex;
    justify-content: center;
    background-color: #E6F3FF;
    margin: -8px -8px;
    padding: 20px;
    width: 100%;
}

/* Navigation container */
.main-nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Navigation list */
.nav-list {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Logo styles */
.nav-item:first-child {
    flex-shrink: 0;
    margin-right: auto;
}

.nav-item:first-child img {
    max-width: 200px;
    height: auto;
    width: 100%;
    transition: max-width 0.3s ease;
}

/* Menu link styles */
.nav-item:not(:first-child) {
    margin-left: 20px;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .nav-item:first-child img {
        max-width: 150px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #f8f8f8;
        padding: 1rem;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item:not(:first-child) {
        margin-left: 0;
        margin-top: 10px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media screen and (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-item:first-child img {
        max-width: 100px;
    }
}