.ifag-scroll-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.ifag-scroll-nav * {
    box-sizing: border-box;
}

.ifag-scroll-nav .ifag-tabs-menu-wrapper {
    position: sticky;
    top: 100px; /* Customizable via Elementor */
    z-index: 996;
    background: #fff;
    border-bottom: 1px solid #e1e4e8;
    width: 100%;
}

.ifag-scroll-nav .ifag-tabs-menu {
    display: flex;
    justify-content: center; /* Centered by default for better look */
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.ifag-scroll-nav .ifag-tabs-menu a {
    display: block;
    padding: 20px 30px;
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ifag-scroll-nav .ifag-tabs-menu li.active a {
    color: #d5263d;
    border-bottom-color: #d5263d;
}

/* Scroll adjustments */
html {
    scroll-behavior: smooth;
}

/* Hide horizontal scrollbar but keep functionality */
.ifag-tabs-menu::-webkit-scrollbar {
    display: none;
}
.ifag-tabs-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .ifag-scroll-nav .ifag-tabs-menu {
        justify-content: flex-start;
        padding: 0 20px;
    }
}
