/* Navigation Alignment Fix CSS v1.0 */

/* Main navigation container alignment */
.tf-header .box-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important; /* Slightly reduced gap for better spacing */
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* Ensure menu items are properly aligned */
.tf-header .box-nav-menu .menu-item {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important; /* Prevent shrinking */
}

/* Menu item links alignment */
.tf-header .box-nav-menu .item-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    font-size: 16px !important; /* Slightly smaller for better fit */
    line-height: 20px !important;
    text-align: center !important;
    white-space: nowrap !important; /* Prevent text wrapping */
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    position: relative !important;
}

/* Fix for style-3 header specifically */
.tf-header.style-3 .item-link {
    padding-top: 20px !important;
    padding-bottom: 35px !important;
    font-size: 16px !important;
}

.tf-header.style-3.header-fixed .item-link {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Navigation container width fix */
.tf-header .box-navigation {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .tf-header .box-nav-menu {
        gap: 32px !important;
    }

    .tf-header .box-nav-menu .item-link {
        font-size: 17px !important;
    }
}

@media (min-width: 1440px) {
    .tf-header .box-nav-menu {
        gap: 36px !important;
    }

    .tf-header .box-nav-menu .item-link {
        font-size: 18px !important;
    }
}

/* Badge styling removed - no longer needed */

/* Dropdown icon alignment */
.tf-header .box-nav-menu .item-link .icon {
    font-size: 12px !important;
    margin-left: 2px !important;
}

/* Submenu positioning fix */
.tf-header .box-nav-menu .sub-menu {
    left: 50% !important;
    transform: translateX(-50%) scale(0.9) !important;
    transform-origin: top center !important;
}

.tf-header .box-nav-menu .menu-item:hover .sub-menu {
    transform: translateX(-50%) scale(1) !important;
}

/* Header container alignment */
.tf-header .header-inner .container {
    /* display: flex !important; */
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Ensure proper flex distribution */
.tf-header.style-3 .header-inner .container .row {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile menu button alignment fix */
@media (max-width: 1199px) {
    .tf-header .btn-mobile-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
