/**
 * FIX SUBCATEGORY TABS - Training/Rehab/Assess
 * Remove hover effects and ensure tabs are properly laid out on mobile
 */

/* All screens - base fixes */
.pathway-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    /* Remove any floating/hover positioning */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.pathway-tabs::-webkit-scrollbar {
    display: none !important;
}

.pathway-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
    margin-bottom: -1px !important;
    transition: color 0.2s, border-color 0.2s !important;
    flex-shrink: 0 !important;
    /* Remove any hover/floating behavior */
    position: static !important;
    transform: none !important;
}

/* Active state */
.pathway-tab.active {
    color: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #c8a03c !important;
}

/* Remove hover effect - user said "not hover" */
.pathway-tab:hover {
    color: rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
}

.pathway-tab.active:hover {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Mobile specific - larger touch targets */
@media (max-width: 768px) {
    .pathway-tabs {
        padding: 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .pathway-tab {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.25rem !important;
        min-width: auto !important;
        /* Ensure no overlap or floating */
        position: static !important;
        display: inline-block !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .pathway-tabs {
        padding: 0 1rem !important;
    }

    .pathway-tab {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.5rem !important;
    }
}

/* Ensure panels below tabs are properly positioned */
.pathway-panels {
    position: relative !important;
    margin-top: 1.5rem !important;
}

.pathway-panel {
    position: relative !important;
    display: none !important;
}

.pathway-panel.active {
    display: block !important;
}
