nav {
    display: flex;
    align-items: center;
    background-color: #4CAF50;
    padding: 10px;
    border-radius: 10px;
}

.logo {
    flex: 0 0 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 40px;
    border-radius: 5px;
}

.menu {
    flex: 0 0 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu a {
    flex: 1;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

/* Responsive layout for mobile (<= 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        /* stack logo and menu */
        align-items: stretch;
        /* full width */
    }

    .logo {
        flex: 0 0 auto;
        margin-bottom: 10px;
    }

    .menu {
        flex: 0 0 auto;
        flex-direction: column;
        /* stack menu items */
        gap: 10px;
        /* space between links */
    }

    .menu a {
        flex: none;
        text-align: center;
        padding: 10px;
        width: 100%;
        /* full width buttons */
        background-color: #228B22;
        /* darker green for contrast */
        border-radius: 5px;
    }
}