/* Custom CSS for menu alignment fixes */

/* Reduce spacing between menu items to prevent wrapping */
.tp-header-2 .main-menu > nav > ul > li:not(:last-of-type) {
    margin-right: 18px !important;
}

/* Adjust font size for better fit */
.tp-header-2 .main-menu > nav > ul > li > a {
    font-size: 15px !important;
    padding: 31px 0 27px 0;
}

/* Additional adjustments for home-6 variant */
.tp-header-2.home-6 .main-menu > nav > ul > li > a {
    font-size: 15px !important;
}

/* Ensure menu stays on one line */
.tp-header-6-left {
    flex-wrap: nowrap !important;
}

.main-menu {
    flex-shrink: 1;
}

/* Language selector - add text next to flag */
#header-bottom__lang-toggle span img {
    margin-right: 5px;
}

/* Responsive adjustments for different screen sizes */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .tp-header-2 .main-menu > nav > ul > li:not(:last-of-type) {
        margin-right: 14px !important;
    }

    .tp-header-2 .main-menu > nav > ul > li > a {
        font-size: 14px !important;
    }
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
    .tp-header-2 .main-menu > nav > ul > li:not(:last-of-type) {
        margin-right: 16px !important;
    }
}

/* Fix for very large screens */
@media only screen and (min-width: 1600px) {
    .tp-header-2 .main-menu > nav > ul > li:not(:last-of-type) {
        margin-right: 20px !important;
    }
}
