.mei-categories-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 0;
}

.category-chip {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
}
/* local/meicoursesearch/css/styles.css */

/* Основной контейнер */
.meicoursesearch-simple {
    max-width: 1900px;
    margin: 70px auto 0;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.meicoursesearch-title {
    color: #004077;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #004077;
    display: inline-block;
}

/* Поисковая строка */
.search-box {
    display: flex;
    gap: 15px;

}

.search-box input {
    flex: 1;
    padding: 16px 24px;
}

.search-box input:focus {
    outline: none;
    border-color: #004077;
    box-shadow: 0 0 0 3px rgba(0,64,119,0.1);
}

.search-box input::placeholder {
    color: #aaa;
}

.search-btn {
    padding: 0 35px;
    background: #004077;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #002a50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,64,119,0.3);
}

/* Категории */
.categories-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.category-chip {
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    border: 1px solid transparent;
}

.category-chip:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.category-chip.active {
    background: #004077;
    color: white;
    box-shadow: 0 2px 8px rgba(0,64,119,0.3);
}

/* Результаты */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
    margin: 0;
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

.results-header span {
    color: #004077;
    font-weight: 700;
}

/* Сетка курсов */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* Карточка курса */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.course-card-body {
    padding: 10px 15px 5px;
}

.course-category {
    display: inline-block;
    padding: 5px 10px;
    background: #e3f2fd;
    color: #004077;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 500;
}

.course-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.course-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.course-title a:hover {
    color: #004077;
}

.course-description {
    color: #222;
    font-size: 14px;
    line-height: 1.5;
    /*margin-bottom: 15px;*/
    /*display: -webkit-box;*/
    /*-webkit-line-clamp: 2;*/
    /*-webkit-box-orient: vertical;*/
    /*overflow: hidden;*/
}

.course-description i {
    color: #aaa;
}

.course-description .py-1 {
    padding-top: 0.05rem !important;
    padding-bottom: 0.05rem !important;
}

.course-price {
    font-size: 22px;
    font-weight: 700;
    color: #004077;
    margin: 15px 0;
}

.price-free {
    color: #28a745;
}

/* Кнопки действий */
.course-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn-enroll, .btn-details {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-enroll {
    background: #004077;
    color: white;
    flex: 1;
}

.btn-enroll:hover {
    background: #002a50;
    transform: translateY(-2px);
}

.btn-details {
    background: #f0f0f0;
    color: #333;
    flex: 1;
}

.btn-details:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    background: #f5f5f5;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.page-btn:hover:not(.disabled) {
    background: #004077;
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #004077;
    color: white;
    box-shadow: 0 2px 8px rgba(0,64,119,0.3);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    padding: 10px 5px;
    color: #999;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #004077;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщения */
.alert-info {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .meicoursesearch-simple {
        padding: 0 15px;
        margin: 30px auto;
    }

    .meicoursesearch-title {
        font-size: 22px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-box input {
        border-radius: 30px;
    }

    .search-btn {
        padding: 14px;
        border-radius: 30px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-chip {
        padding: 8px 18px;
        font-size: 13px;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .course-card-body {
        padding: 16px;
    }

    .course-title {
        font-size: 16px;
    }

    .course-price {
        font-size: 18px;
    }

    .btn-enroll, .btn-details {
        padding: 8px 16px;
        font-size: 12px;
    }
}
/* Лэйаут с фильтрами */
.search-layout {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.search-filters {
    width: 320px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.search-results {
    flex: 1;
}

.filters-title {
    font-size: 22px;
    font-weight: 600;
    color: #004077;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004077;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;
}

/* Чекбоксы */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Слайдеры */
input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #004077;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.price-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}

.duration-value {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Кнопки фильтров */
.filter-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.filter-btn:first-of-type {
    background: #004077;
    color: white;
}

.filter-btn:first-of-type:hover {
    background: #002a50;
}

.filter-btn.reset {
    background: #f0f0f0;
    color: #333;
}

.filter-btn.reset:hover {
    background: #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-layout {
        flex-direction: column;
    }

    .search-filters {
        width: 100%;
        position: static;
    }
}
.filters-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-action-btn {
    flex: 1;
    padding: 8px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-action-btn:hover {
    background: #e0e0e0;
}

/* Сворачиваемые фильтры */
.filter-group {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-header:hover {
    background: #f0f0f0;
}

.filter-header .filter-label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #004077;
}

.filter-arrow {
    font-size: 12px;
    color: #004077;
    transition: transform 0.3s;
}

.filter-group.collapsed .filter-arrow {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 15px;
    background: white;
    transition: all 0.3s;
}

.filter-group.collapsed .filter-content {
    display: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .filter-header {
        padding: 12px;
    }

    .filter-content {
        padding: 12px;
    }
}
/* Самодельный слайдер с двумя ползунками */
.price-slider-wrapper {
    position: relative;
    width: 100%;
    height: 4px;
    margin: 30px 0 20px;
}

.price-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.price-slider-fill {
    position: absolute;
    height: 4px;
    background: #004077;
    border-radius: 2px;
}

.price-slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #004077;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.price-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.price-handle-min {
    left: 0%;
}

.price-handle-max {
    left: 100%;
}
