/* ===============================================
   CUSTOM INDUSTRY TABS - DESKTOP STYLING
   =============================================== */

/* Desktop layout - right-side navigation */
.custom-industry-tabs .nectar-sticky-tabs {
    gap: 40px !important;
}

.custom-industry-tabs .scrolling-tab-nav {
    width: 30% !important;
}

.custom-industry-tabs .nectar-sticky-tabs > .scrolling-tab-nav {
    order: 2 !important;
}

.custom-industry-tabs .nectar-sticky-tabs > .tab-content {
    order: 1 !important;
    width: 62% !important;
    flex: 0 0 62% !important;
}

.custom-industry-tabs .wpb_tabs_nav[data-spacing] li {
    margin-bottom: 15px !important;
}

.black-bg-heading h3{
    font-size: 22px !important;
}

/* Remove bullet points */
.custom-industry-tabs .nectar-sticky-tabs .tab-nav-heading::before {
    content: none !important;
    display: none !important;
}

/* Tab spacing and readability */
.custom-industry-tabs .menu-content .sub-desc {
    margin-top: 20px !important;
    display: block;
    line-height: 1.6;
}

.custom-industry-tabs ul.wpb_tabs_nav li {
    padding-bottom: 8px;
}

/* Override theme's hover opacity - keep full opacity on hover for all tabs */
.custom-industry-tabs .wpb_tabs_nav li:hover,
.custom-industry-tabs .wpb_tabs_nav li.active-tab:hover {
    opacity: 1 !important;
}

/* Active tab styling */
.custom-industry-tabs .wpb_tabs_nav li.active-tab .tab-nav-heading a span {
    color: #FF6142;
    position: relative;
}

.custom-industry-tabs .wpb_tabs_nav li.active-tab .tab-nav-heading a span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #FF6142;
    border-radius: 1px;
}

.custom-industry-tabs .wpb_tabs_nav li:not(.active-tab) .tab-nav-heading a span {
    color: inherit !important;
}

/* Desktop: Hide descriptions/content for non-active tabs */
@media (min-width: 1025px) {
    /* Add divider line below each tab item - visible on both light and dark backgrounds */
    .custom-industry-tabs ul.wpb_tabs_nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }

    /* Remove border from last tab */
    .custom-industry-tabs ul.wpb_tabs_nav li:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .custom-industry-tabs ul.wpb_tabs_nav li:not(.active-tab) .menu-content .sub-desc {
        display: none !important;
    }

    /* Show description for active tab only */
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab .menu-content .sub-desc {
        display: block !important;
    }
    
    /* Remove theme's padding-right from sub-description on desktop */
    .custom-industry-tabs .menu-content .sub-desc {
        padding-right: 0 !important;
        /*text-align: justify;*/
    }
}
/* ===============================================
   MOBILE & TABLET STICKY TABS - CLEAN ACCORDION STYLE
   =============================================== */

/* ===============================================
   TABLET VIEW (768px - 1024px)
   =============================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Full width navigation on tablet */
    .custom-industry-tabs .scrolling-tab-nav {
        width: 100% !important;
        order: 1 !important;
    }

    /* Hide the current item dropdown on tablet - show full list instead */
    .custom-industry-tabs .scrolling-tab-nav-current-item {
        display: none !important;
    }

    /* Show the full tab list on tablet - override inline display:none */
    .custom-industry-tabs ul.wpb_tabs_nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Tab item styling - ensure all tabs are visible */
    .custom-industry-tabs ul.wpb_tabs_nav li {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

    /* Tab heading styling */
    .custom-industry-tabs .tab-nav-heading {
        padding: 20px 0 !important;
        cursor: pointer;
        position: relative;
    }

    /* Show description for active tab with proper spacing */
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab .menu-content .sub-desc {
        margin-top: 16px !important;
        padding-bottom: 20px !important;
    }

    /* Show description for non-active tabs with proper spacing */
    .custom-industry-tabs ul.wpb_tabs_nav li:not(.active-tab) .menu-content .sub-desc {
        padding-bottom: 20px !important;
    }

    /* Override theme's hover opacity for active tabs */
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab,
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab:hover {
        opacity: 1 !important;
    }
}

/* ===============================================
   MOBILE VIEW (< 768px)
   =============================================== */
@media (max-width: 767px) {
    /* Full width navigation on mobile */
    .custom-industry-tabs .scrolling-tab-nav {
        width: 100% !important;
        order: 1 !important;
    }

    /* Hide the current item dropdown on mobile - show full list instead */
    .custom-industry-tabs .scrolling-tab-nav-current-item {
        display: none !important;
    }

    /* Show the full tab list on mobile - override inline display:none */
    .custom-industry-tabs ul.wpb_tabs_nav {
        flex-direction: column !important;
    }

    /* Ensure tab list is always visible, not hidden */
    .custom-industry-tabs .scrolling-tab-nav ul.wpb_tabs_nav {
        display: flex !important;
    }

    /* Tab item styling - ensure all tabs are visible */
    .custom-industry-tabs ul.wpb_tabs_nav li {
        padding-bottom: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    /* Tab heading styling */
    .custom-industry-tabs .tab-nav-heading {
        padding: 18px 0 !important;
        margin: 0 !important;
        cursor: pointer;
        position: relative;
        font-size: 16px !important;
    }

    /* Hide descriptions for non-active tabs */
    .custom-industry-tabs ul.wpb_tabs_nav li:not(.active-tab) .menu-content .sub-desc {
        display: none !important;
    }

    /* Show description for active tab */
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab .menu-content .sub-desc {
        display: block !important;
        margin-top: 12px !important;
        padding-bottom: 18px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Make content area clickable */
    .custom-industry-tabs ul.wpb_tabs_nav li .menu-content,
    .custom-industry-tabs ul.wpb_tabs_nav li .menu-content .sub-desc {
        cursor: pointer;
    }

    /* Override theme's hover opacity for mobile */
    .custom-industry-tabs ul.wpb_tabs_nav li:hover,
    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab:hover {
        opacity: 1 !important;
    }

    .custom-industry-tabs ul.wpb_tabs_nav li.active-tab .tab-nav-heading a span {
        font-weight: 600 !important;
    }

    .custom-industry-tabs ul.wpb_tabs_nav li:last-child {
        border-bottom: none !important;
    }
}