.tab-item{
    border-left: 1px solid #FFF;
}
.submenu_new{
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}
.inner_submenu_width{
    width: 100%;
    max-width: 1280px;
    display: flex;
    border-bottom: 4px solid grey;
    align-items: flex-end;
    flex-wrap: nowrap;
    margin: 0 40px;
    overflow-x: hidden;
}

.submenu_width{
    width: 20% !important;
    transition: all 0.3s;
}

.submenu_width:hover {
    width: 18% !important;
}

/* Base tab style */
.tab-item2 {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: transparent;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    flex: 1 1 0%;
    transition: 0.3s ease-in;
    margin-top: 10px;
    text-align: center;
    white-space: nowrap;
}

.tab-item2 p {
    margin-bottom: 0;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

/* ✅ Hover style DESKTOP ONLY — mobile override handled later */
@media (min-width: 769px) {
    .tab-item2:hover {
        background-color: #2d2d2d;
        color: #000 !important;
        border-radius: 15px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 90% !important;
    }
}

.tab-item2:active {
    color: #000 !important;
}

/* Active tab */
.tab-item2.border-bottom.border-2.border-white {
    background-color: #d9d9d9;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* border-bottom: 4px solid white !important; */
}

.tab-item2.border-bottom.border-2.border-white p {
    color: black;
    font-weight: 600;
}

.tab-item2 .line {
    height: 4px;
    background: transparent;
    width: 100%;
}

/* ========== ✅ MOBILE FIX (below 768px) ========== */
@media (max-width: 768px) {
    .submenu_new {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .submenu_new::-webkit-scrollbar {
        display: none;
    }

    .inner_submenu_width {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        margin: 0;
        padding: 0 10px;
        gap: 10px;
        overflow-x: auto;
    }

    .submenu_width {
        width: auto !important;
        min-width: max-content;
        flex-shrink: 0;
    }

    .tab-item2 {
        flex: 0 0 auto;
        padding: 10px 14px;
        min-width: max-content;
        width: auto !important;
        border-radius: 10px 10px 0 0;
    }

    .tab-item2:hover {
        background-color: #2d2d2d;
        color: #000 !important;
        /* No width expansion here */
    }

    .tab-item2 p {
        font-size: 13px;
    }
}


