/*{nav-menu.css}*/
.additional-navigation {
    width: 100%;
    background-color: #45ab69;
    text-align: center;
    padding: 15px 0;
}

.additional-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Create six columns */
    grid-gap: 15px; /* Space between items */
    max-width: 1200px;
}

.nav-item {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center align items */
}

.nav-item a {
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    font-family: 'ubuntu', sans-serif;
    padding: 10px 20px;
    display: flex;
    flex-direction: column; /* Ensure icon is above text */
    align-items: center; /* Center the text below the icon */
    transition: color 0.3s ease; /* Smooth transition for text color */
}

.nav-item a i {
    margin-bottom: 15px; /* Space between icon and text */
    font-size: 36px; /* Adjust icon size as needed */
}

.nav-item a:hover, .nav-item a:focus {
    background-color: #3a945b;
    color: #FFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Shadow effect for text */
}

.nav-item a:hover i, .nav-item a:focus i {
    color: #FFF; /* Ensure icon color matches the text on hover */
}

/* Responsive adjustments for viewports less than 1100px */
@media (max-width: 1100px) {
    .additional-nav-list {
        display: grid; /* Use CSS grid to layout items */
        grid-template-columns: repeat(2, 1fr); /* Create two columns */
        grid-gap: 15px; /* Adjust gap as needed */
    }

    /* Adjustments to individual nav items for better mobile presentation */
    .nav-item a {
        padding: 10px; /* Adjust padding to better fit the grid layout */
        /* You can adjust the font-size, icon-size etc., here for mobile optimization */
    }

    /* Optionally, you can adjust the font-size of icons and text within the .nav-item a */
    .nav-item a i {
        font-size: 24px; /* Smaller icon size for mobile */
    }

    /* Similarly adjust the text size if needed */
    .nav-item a {
        font-size: 14px; /* Smaller text size for mobile */
    }
}
