/* Horizontal Tabs Section Styles */
#features-tabs .nav-tabs {
    border-bottom: none;
    gap: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

#features-tabs .nav-link {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#features-tabs .nav-link i {
    width: 20px;
    height: 20px;
}

#features-tabs .nav-link:hover {
    background-color: #f1f3f5;
    transform: translateY(-2px);
}

#features-tabs .nav-link.active {
    background-color: #2163e8;
    color: #fff;
    border-color: #2163e8;
    box-shadow: 0 5px 15px rgba(33, 99, 232, 0.2);
}

#features-tabs .nav-link.active i,
.nav-tabs .nav-link.active i,
.desktop-tabs .nav-link.active i {
    color: #fff !important;
    stroke: #fff !important;
}

#features-tabs .tab-content {
    padding: 40px 0;
}

#features-tabs .fbox-img img {
    transition: all 0.5s ease;
}

#features-tabs .tab-pane.active .fbox-img img {
    transform: translateY(0);
}

#features-tabs .tab-pane .fbox-img img {
    transform: translateY(20px);
}

#features-tabs .simple-list {
    list-style: none;
    padding-left: 0;
}

#features-tabs .simple-list li {
    display: flex;
    align-items: flex-start;
}

/* Mobile Dropdown Styles */
.mobile-tabs-dropdown {
    display: none;
    margin: 0 auto 30px;
    max-width: 100%;
}

.mobile-tabs-dropdown .form-select {
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-tabs-dropdown .form-select:focus {
    border-color: #2163e8;
    box-shadow: 0 0 0 0.25rem rgba(33, 99, 232, 0.25);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    #features-tabs .nav-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    /* Show dropdown on tablets and below */
    .mobile-tabs-dropdown {
        display: block;
    }
    
    /* Hide desktop tabs on tablets and below */
    .desktop-tabs, 
    .tabs--theme .nav-tabs,
    #featuresTabs,
    #industryTabs,
    #howItWorksTabs {
        display: none !important;
    }
    
    /* Hide all tab content except the active one */
    .tab-content .tab-pane {
        display: none !important;
    }
    
    .tab-content .tab-pane.active,
    .tab-content .tab-pane.show.active {
        display: block !important;
    }
    
    /* Hide specific tab-related elements in the content area */
    .tab-pane .simple-list a[data-bs-toggle="tab"],
    .tab-pane a[data-bs-toggle="tab"],
    .tab-pane button[data-bs-toggle="tab"],
    .tab-pane [data-lucide] + a,
    .tab-pane [data-lucide] + span:not(.text-content) {
        display: none !important;
    }
    
    /* Hide the feature icons and links in mobile view */
    .tab-pane [data-lucide="file-text"],
    .tab-pane [data-lucide="headphones"],
    .tab-pane [data-lucide="bar-chart-3"],
    .tab-pane [data-lucide="layers"],
    .tab-pane [data-lucide="dumbbell"],
    .tab-pane [data-lucide="message-square-text"] {
        display: none !important;
    }
    
    /* Hide feature links in content area */
    .tab-content a.feature-link,
    .tab-content .feature-icon,
    .tab-content .feature-text {
        display: none !important;
    }
    
    /* Show only the active tab's content */
    .tab-content .tab-pane.active .fbox-txt,
    .tab-content .tab-pane.active .fbox-img {
        display: block !important;
    }
    
    /* Additional specific selectors for the feature links */
    #scoring-tab ~ a,
    #transcripts-tab ~ a,
    #agent-tab ~ a,
    #tracking-tab ~ a,
    #routing-tab ~ a,
    .tab-pane + a,
    .tab-pane + div > a {
        display: none !important;
    }
    
    #features-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    #features-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    #features-tabs .nav-link i {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 767px) {
    #features-tabs .row {
        flex-direction: column-reverse;
    }
    
    #features-tabs .fbox-img {
        margin-bottom: 30px;
    }
    
    #features-tabs .tab-content {
        padding: 20px 0;
    }
    
    /* Enhance mobile dropdown styling */
    .mobile-tabs-dropdown {
        margin-bottom: 25px;
    }
    
    .mobile-tabs-dropdown .form-select {
        padding: 10px 15px;
        font-size: 15px;
    }
}
