/**
 * Header GamiPress Elements - ReadyLaunch Compatibility
 * Ensures GamiPress points, level, and coins display correctly in header when ReadyLaunch is enabled
 */

/* ====================================================================
   BASE STYLES (Works with and without ReadyLaunch)
   ==================================================================== */

/* Progress bar container */
.hdr-progress-bar {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-right: 15px !important;
}

.hdr-progress-bar .gamification {
    display: flex !important;
    align-items: center !important;
    margin-right: 8px !important;
}

/* Trophy/rank image container */
.hdr-progress-bar .trophy {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.hdr-progress-bar .trophy img {
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
}

/* Level and points info container */
.hdr-progress-bar .gamification > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 10px !important;
    min-width: 190px !important;
}

/* Level and points text row */
.hdr-progress-bar .gamification > div:last-child > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    color: #17191b !important;
}

.hdr-progress-bar .gamification > div:last-child > div:first-child > div:first-child {
    margin-right: 40px !important;
}

.hdr-progress-bar .gamification > div:last-child > div:first-child > div:last-child {
    padding-right: 3px !important;
}

/* Points display */
.hdr-progress-bar #points {
    color: blue !important;
}

/* Progress bar wrapper */
.hdr-progress-bar .gamification > div:last-child > div:last-child {
    padding-top: 3px !important;
}

/* Progress bar background */
.hdr-progress-bar .gamification > div:last-child > div:last-child > div {
    height: 8px !important;
    background-color: #EBF0F4 !important;
    border-radius: 10px !important;
}

/* Progress bar fill */
.hdr-progress-bar .progress_bar {
    height: 8px !important;
    border-radius: 10px !important;
    background: #3f7bf9 !important;
    max-width: 100% !important;
}

/* Coins container */
.hdr-coins {
    display: flex !important;
    align-items: center !important;
    margin-right: 5px !important;
    text-decoration: none !important;
}

.hdr-coins > div:first-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
}

.hdr-coins img {
    width: 30px !important;
    height: 30px !important;
}

.hdr-coins > div:last-child {
    font-size: 14px !important;
    padding-left: 10px !important;
    font-weight: 600 !important;
    color: #17191b !important;
}

/* ====================================================================
   READYLAUNCH-SPECIFIC FIXES
   ==================================================================== */

/* Force header-aside to display with ReadyLaunch */
.bb-readylaunch-template #header-aside,
#header-aside {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bb-readylaunch-template #header-aside .header-aside-inner,
#header-aside .header-aside-inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

/* Force GamiPress elements to display */
.bb-readylaunch-template .hdr-progress-bar,
.bb-readylaunch-template .hdr-coins,
.hdr-progress-bar,
.hdr-coins {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Fix potential z-index issues */
.bb-readylaunch-template .hdr-progress-bar,
.bb-readylaunch-template .hdr-coins {
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure visibility with ReadyLaunch */
.bb-readylaunch-template .hdr-progress-bar,
.bb-readylaunch-template .hdr-coins,
.bb-readylaunch-template .hdr-progress-bar *,
.bb-readylaunch-template .hdr-coins * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix any potential flex issues in ReadyLaunch */
.bb-readylaunch-template .hdr-progress-bar .gamification,
.bb-readylaunch-template .hdr-progress-bar .trophy,
.bb-readylaunch-template .hdr-coins {
    flex-wrap: nowrap !important;
}

/* Ensure text doesn't get hidden */
.bb-readylaunch-template .hdr-progress-bar .gamification > div:last-child > div,
.bb-readylaunch-template .hdr-coins > div:last-child {
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Fix tooltip compatibility with ReadyLaunch */
.bb-readylaunch-template [data-balloon]:before,
.bb-readylaunch-template [data-balloon]:after {
    z-index: 1000 !important;
}

/* ====================================================================
   RESPONSIVE STYLES
   ==================================================================== */

@media (max-width: 1024px) {
    .hdr-progress-bar .gamification > div:last-child {
        min-width: 160px !important;
    }

    .hdr-progress-bar .gamification > div:last-child > div:first-child {
        font-size: 10px !important;
    }
}

@media (max-width: 768px) {
    /* Hide progress bar on mobile to save space */
    .hdr-progress-bar,
    .bb-readylaunch-template .hdr-progress-bar,
    #header-aside .hdr-progress-bar,
    .header-aside .hdr-progress-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Override any theme styles that might hide GamiPress elements on larger screens */
@media (min-width: 769px) {
    .hdr-progress-bar,
    .hdr-coins {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ====================================================================
   CATEGORY BREAKDOWN TOOLTIP
   ==================================================================== */

/* Tooltip container - hidden by default */
.gamipress-category-tooltip {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    min-width: 280px !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
}

/* Show tooltip on hover */
.hdr-progress-bar:hover .gamipress-category-tooltip,
.gamipress-category-tooltip:hover {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
}

/* Extra specificity to ensure tooltip stays hidden */
.bb-readylaunch-template .hdr-progress-bar .gamipress-category-tooltip,
.header-aside .hdr-progress-bar .gamipress-category-tooltip,
#header-aside .hdr-progress-bar .gamipress-category-tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Extra specificity to show on hover */
.bb-readylaunch-template .hdr-progress-bar:hover .gamipress-category-tooltip,
.header-aside .hdr-progress-bar:hover .gamipress-category-tooltip,
#header-aside .hdr-progress-bar:hover .gamipress-category-tooltip,
.bb-readylaunch-template .gamipress-category-tooltip:hover,
.header-aside .gamipress-category-tooltip:hover,
#header-aside .gamipress-category-tooltip:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Tooltip arrow */
.gamipress-category-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

/* Tooltip header */
.gamipress-category-tooltip .tooltip-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #17191b;
}

/* Categories container */
.gamipress-category-tooltip .tooltip-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual category item */
.gamipress-category-tooltip .category-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Category info row (name + points) */
.gamipress-category-tooltip .category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

/* Category name */
.gamipress-category-tooltip .category-name {
    font-weight: 600;
    color: #17191b;
}

/* Category points */
.gamipress-category-tooltip .category-points {
    font-size: 10px;
    color: #666;
}

/* Category progress bar background */
.gamipress-category-tooltip .category-bar {
    height: 6px;
    background-color: #EBF0F4;
    border-radius: 3px;
    overflow: hidden;
}

/* Category progress bar fill */
.gamipress-category-tooltip .category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3f7bf9 0%, #5b8efb 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    min-width: 2px;
}

/* Different colors for different categories (optional) */
.gamipress-category-tooltip .category-item:nth-child(1) .category-bar-fill {
    background: linear-gradient(90deg, #3f7bf9 0%, #5b8efb 100%); /* Blue - Listening */
}

.gamipress-category-tooltip .category-item:nth-child(2) .category-bar-fill {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%); /* Purple - Expression */
}

.gamipress-category-tooltip .category-item:nth-child(3) .category-bar-fill {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%); /* Green - Vocabulary */
}

.gamipress-category-tooltip .category-item:nth-child(4) .category-bar-fill {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%); /* Red - Speaking */
}

.gamipress-category-tooltip .category-item:nth-child(5) .category-bar-fill {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%); /* Orange - Grammar */
}

.gamipress-category-tooltip .category-item:nth-child(6) .category-bar-fill {
    background: linear-gradient(90deg, #0891b2 0%, #22d3ee 100%); /* Cyan - Reading */
}

.gamipress-category-tooltip .category-item:nth-child(7) .category-bar-fill {
    background: linear-gradient(90deg, #db2777 0%, #f472b6 100%); /* Pink - Writing */
}

/* Dark mode support for ReadyLaunch */
.bb-rl-dark-mode .gamipress-category-tooltip {
    background: #1f2937;
    border-color: #374151;
}

.bb-rl-dark-mode .gamipress-category-tooltip .tooltip-header {
    color: #f9fafb;
    border-bottom-color: #374151;
}

.bb-rl-dark-mode .gamipress-category-tooltip .category-name {
    color: #f9fafb;
}

.bb-rl-dark-mode .gamipress-category-tooltip .category-points {
    color: #9ca3af;
}

.bb-rl-dark-mode .gamipress-category-tooltip .category-bar {
    background-color: #374151;
}

.bb-rl-dark-mode .gamipress-category-tooltip::before {
    border-bottom-color: #1f2937;
}

/* Hide on very small screens if necessary */
@media (max-width: 480px) {
    .hdr-progress-bar,
    .hdr-coins {
        display: none !important;
    }
}

/* ====================================================================
   READYLAUNCH COURSE FILTER STYLES
   ==================================================================== */

/* Filter container - horizontal layout at top */
#secondary-rl.course-filter-sidebar {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 80px;
}

/* Filter items container - horizontal layout */
.bb-course-filters-sidebar .bb-filter-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Search bar - full width */
.bb-course-filters-sidebar .bb-filter-items > .bb-filter-item:first-child {
    grid-column: 1 / -1;
}

/* Filter checkbox groups */
.bb-filter-checkbox-group {
    border: 1px solid #e9eaf2;
    padding: 15px;
    border-radius: 5px;
    margin-top: 0;
}

.bb-filter-checkbox-group .bb-filter-group-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.bb-filter-checkbox-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}

.bb-filter-checkbox-group ul li {
    margin-bottom: 6px;
}

.bb-filter-checkbox-group ul li:last-child {
    margin-bottom: 0;
}

.bb-filter-checkbox-group ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.bb-filter-checkbox-group input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    margin: 0 !important;
}

/* Extra specificity for ReadyLaunch */
#secondary-rl.course-filter-sidebar .bb-filter-checkbox-group input[type="checkbox"],
.bb-readylaunch-template .bb-filter-checkbox-group input[type="checkbox"],
#secondary-rl input[type="checkbox"],
.course-filter-sidebar input[type="checkbox"],
form#courses-directory-form-sidebar-rl input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    background: white !important;
    border: 1px solid #999 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    position: static !important;
}

/* Force checkboxes to be visible - nuclear option */
#secondary-rl.widget-area.course-filter-sidebar input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

/* "Available On" - now vertical like other filters */
.bb-filter-checkbox-group ul.horizontal-list {
    display: block;
    max-height: 150px;
    overflow-y: auto;
}

.bb-filter-checkbox-group ul.horizontal-list li {
    margin-bottom: 6px;
}

.bb-filter-checkbox-group ul.horizontal-list li:last-child {
    margin-bottom: 0;
}

/* Filter title and controls */
.filter-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 15px;
}

.filter-title-wrapper .filter-title {
    margin: 0;
    font-size: 16px;
}

.filter-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title-wrapper .top-reset-link {
    background-color: #f0f2f5;
    color: #53585f;
    border: 1px solid #e9eaf2;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.filter-title-wrapper .top-reset-link:hover {
    background-color: #e2e7ed;
    color: #1e2125;
}

/* Accordion toggle button */
.filter-toggle-btn {
    background: #f0f2f5;
    border: 1px solid #e9eaf2;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #53585f;
}

.filter-toggle-btn:hover {
    background-color: #e2e7ed;
    color: #1e2125;
}

.filter-toggle-btn .toggle-text {
    white-space: nowrap;
}

.filter-toggle-btn i {
    font-size: 14px;
    line-height: 1;
}

/* Filter items with animation */
.bb-filter-items {
    transition: all 0.3s ease;
    margin-top: 15px;
}

/* Remove old bottom wrapper styles */
.filter-title-wrapper-bottom {
    display: none;
}

/* Close filter button for mobile */
.close-filter-panel {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #53585f;
}

/* Mobile filter button */
.bb-mobile-filter-btn {
    display: none;
}

/* Mobile filter overlay */
.mobile-filter-overlay {
    display: none;
}

/* ReadyLaunch grid layout adjustments - vertical stack */
.bb-rl-courses-list.filters-loaded {
    display: block;
}

.bb-rl-courses-list.filters-loaded .bb-rl-courses-grid {
    width: 100%;
    transition: opacity 0.3s ease;
    position: relative;
}

/* Loading state */
.bb-rl-courses-grid[style*="opacity: 0.5"] {
    position: relative;
}

.bb-rl-courses-grid[style*="opacity: 0.5"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bb-primary-color, #3f7bf9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* No courses found message */
.bb-no-courses-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--bb-alternate-text-color);
}

.bb-no-courses-found p {
    font-size: 16px;
    margin: 0;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .bb-course-filters-sidebar .bb-filter-items {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .bb-course-filters-sidebar .bb-filter-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .close-filter-panel {
        display: block;
    }

    .bb-mobile-filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        position: fixed !important;
        bottom: 80px !important;
        right: 20px !important;
        background: var(--bb-primary-color, #3f7bf9) !important;
        color: white !important;
        border: none !important;
        padding: 0 16px !important;
        border-radius: 25px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 999 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        line-height: 40px !important;
        height: 40px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: 110px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-direction: row !important;
        vertical-align: middle !important;
    }

    .bb-mobile-filter-btn i {
        font-size: 16px !important;
        line-height: 40px !important;
        flex-shrink: 0 !important;
        width: auto !important;
        height: auto !important;
        display: inline-block !important;
        align-items: center !important;
        vertical-align: middle !important;
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .bb-mobile-filter-btn i:before {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
    }

    .bb-mobile-filter-btn span {
        font-size: 14px !important;
        line-height: 40px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-filter-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    #secondary-rl.course-filter-sidebar {
        position: fixed;
        top: 63px;
        left: 0;
        height: calc(100vh - 120px);
        width: 85%;
        max-width: 350px;
        margin: 0;
        border-radius: 0;
        border: none;
        background: #ffffff !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    #secondary-rl.course-filter-sidebar.is-visible {
        transform: translateX(0);
    }

    /* Add padding to inner content instead of sidebar */
    #secondary-rl.course-filter-sidebar .bb-course-filters-sidebar {
        padding: 15px;
        padding-top: 0px;
        padding-bottom: 15px;
        min-height: 100%;
        box-sizing: border-box;
        background: #ffffff;
    }

    #secondary-rl.course-filter-sidebar form {
        display: block;
        width: 100%;
    }

    .bb-rl-courses-list.filters-loaded {
        display: block;
    }

    /* Mobile: Single column layout for filters */
    #secondary-rl.course-filter-sidebar .bb-filter-items {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-top: 10px !important;
        margin-bottom: 20px;
    }

    /* Reduce padding in filter groups */
    #secondary-rl.course-filter-sidebar .bb-filter-checkbox-group {
        padding: 10px;
        margin-top: 0;
    }

    #secondary-rl.course-filter-sidebar .bb-filter-checkbox-group .bb-filter-group-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    #secondary-rl.course-filter-sidebar .bb-filter-checkbox-group ul {
        max-height: 100px;
    }

    #secondary-rl.course-filter-sidebar .bb-filter-checkbox-group ul li {
        margin-bottom: 4px;
    }

    #secondary-rl.course-filter-sidebar .bb-filter-checkbox-group ul li label {
        font-size: 12px;
    }

    /* Smaller search input */
    #secondary-rl.course-filter-sidebar .bb-filter-item input[type="text"] {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Filter title wrapper adjustments */
    #secondary-rl.course-filter-sidebar .filter-title-wrapper {
        padding-bottom: 10px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        border-bottom: 1px solid #e9eaf2;
    }

    #secondary-rl.course-filter-sidebar .filter-title-wrapper .filter-title {
        font-size: 16px;
        margin: 0;
        flex: 1;
    }

    #secondary-rl.course-filter-sidebar .filter-title-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #secondary-rl.course-filter-sidebar .filter-title-wrapper .top-reset-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    #secondary-rl.course-filter-sidebar .filter-toggle-btn {
        display: none !important;
    }

    #secondary-rl.course-filter-sidebar .close-filter-panel {
        display: flex !important;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
        font-size: 28px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        color: #53585f;
        background: transparent;
        padding: 0;
        margin: 0;
        line-height: 1;
        cursor: pointer;
        border: none;
        transition: color 0.2s ease;
    }

    #secondary-rl.course-filter-sidebar .close-filter-panel:hover {
        color: #1e2125;
    }

    /* On mobile, always show filters (no accordion) */
    #secondary-rl.course-filter-sidebar .bb-filter-items {
        display: grid !important;
        margin-top: 0;
    }

    /* Ensure search input is visible */
    #secondary-rl.course-filter-sidebar .bb-filter-item input[type="text"] {
        width: 100%;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* CRITICAL: Hide progress bar on mobile - highest specificity override */
    .bb-readylaunch-template #header-aside .header-aside-inner .hdr-progress-bar,
    #header-aside .header-aside-inner .hdr-progress-bar,
    .header-aside-inner .hdr-progress-bar,
    body .hdr-progress-bar,
    .hdr-progress-bar,
    a.hdr-progress-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}