.main-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Prevent menu items from wrapping to the next line */
    overflow-x: auto; /* Enable horizontal scrolling if necessary */
}

/* Style for menu items */
.main-menu li {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Adjust margin for the first menu item */
.main-menu li:first-child {
    margin-left: 0;
}

.main-menu li a {
    text-decoration: none;
    padding-left: .725rem;
    padding-right: .725rem;
    color: #434a57;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    font-size: x-large;
}

/* Style for active menu item */
.main-menu li.active a {
    background-color: #1140a0;;
    border-radius: 10px;
    color: white !important;
    padding: 2px 2px;
}

.main-menu li a:hover {
    color: #ff0909; /* Change color for active item */
}

.flat-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Prevent menu items from wrapping to the next line */
    overflow-x: auto; /* Enable horizontal scrolling if necessary */
}

/* Style for menu items */
.flat-menu li {
    display: inline-block;
    margin-right: 20px;
}

/* Adjust margin for the first menu item */
.flat-menu li:first-child {
    margin-left: 0;
}

.flat-menu li a {
    text-decoration: none;
    padding-left: .725rem;
    padding-right: .725rem;
    color: #434a57;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    font-size: x-large;
}

/* Style for active menu item */
.flat-menu li.active a {
    background-color: #1140a0;;
    border-radius: 10px;
    color: white;
    padding: 2px 2px;
}

.flat-menu li a:hover {
    color: #ff0909; /* Change color for active item */
}