/* Menu Header Styles */
.header-nav {
    display: block;
    margin-top: 10px;
}

.header-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 10px;
}

.header-menu li {
    display: block;
}

.header-menu a {
    display: block;
    background-color: #388E3C;
    /* Slightly darker green */
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.header-menu a:hover {
    background-color: #2E7D32;
}

.menu-toggle {
    display: none;
    background-color: #388E3C;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    /* Square shape */
    transition: background-color 0.3s;
    margin: 0 auto;
}

.menu-toggle:hover {
    background-color: #2E7D32;
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
    .header-nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .header-menu {
        display: none;
        flex-direction: column;
        width: 70%;
        position: absolute;
        top: 60px;
        left: 15%;
        background-color: #4CAF50;
        z-index: 1000;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    /* When toggled (or hovered depending on JS, but hover is tricky on mobile, so we use JS + hover where possible) */
    .header-nav:hover .header-menu,
    .header-menu.active {
        display: flex;
    }

    .header-menu a {
        border-radius: 0;
        border-bottom: 1px solid #2E7D32;
        padding: 15px 20px;
        text-align: left;
    }

    .header-menu a:hover {
        background-color: #1B5E20;
    }
}