.mega-menu-item {
    max-width: 2400px; /* Limit the width of the container */
    margin: 0 auto; /* Center the container horizontally */
}
.mega-menu-item ul {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    justify-content: center; /* Center items horizontally */	
    padding: 0;
    margin: 0;
}

.mega-menu-item ul li {
    width: auto; /* Adjust width based on the number of columns */	
    list-style: none;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
	margin: 1%;
    margin-bottom: 0px; /* Add space between rows */
}

@media all and (max-width: 992px) {
    .mega-menu-item ul li {
        width: auto; /* On smaller screens, make each item take up full width */
    }
}