/* ===================================
   COURSES LISTING — SIDEBAR FILTER STYLES
   Used by frontend.course.index
   =================================== */

.courses-listing-page {
    padding: 28px 0 60px;
}

.courses-listing-page .section-title h2 {
    font-size: 32px;
}

/* Sidebar container */
.courses-filter-sidebar {
    background: #fff;
    border: 1px solid rgba(145, 68, 255, 0.10);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.courses-filter-offcanvas .offcanvas-body .courses-filter-sidebar {
    border: none;
    box-shadow: none;
    padding: 0;
    position: static;
}

.courses-filter-offcanvas {
    width: min(86vw, 340px);
}

/* Filter groups */
.filter-group {
    padding: 14px 0;
    border-bottom: 1px solid #eef0f4;
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child  { border-bottom: 0; padding-bottom: 0; }

.filter-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #0B0019;
    margin: 0 0 12px 0;
}

/* Individual option row */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-bottom: 2px;
}
.filter-option:hover { background: #f6f1ff; }

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: #9144ff;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.filter-option-label {
    flex: 1;
    color: #1f2233;
    font-size: 14px;
    line-height: 1.3;
}

.filter-option-count {
    background: #f1ecfb;
    color: #6b21a8;
    font-size: 12px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
}

/* Results meta strip above grid */
.results-meta {
    color: #555;
    font-size: 14px;
}

.clear-filters-link {
    color: #9144ff;
    font-size: 14px;
    font-weight: 600;
}
.clear-filters-link:hover { color: #7c3aed; }

/* Mobile toggle button */
.courses-mobile-filter-btn {
    border-color: #9144ff;
    color: #9144ff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 14px;
}
.courses-mobile-filter-btn:hover,
.courses-mobile-filter-btn:focus {
    background: #9144ff;
    color: #fff;
}
.courses-mobile-filter-btn .badge { font-weight: 700; }

@media (max-width: 991.98px) {
    .courses-filter-sidebar { position: static; }
}

@media (max-width: 575.98px) {
    .courses-listing-page { padding: 16px 0 40px; }
    .filter-heading { font-size: 12px; }
    .filter-option-label { font-size: 13px; }
}
