
.scroll-wrapper {
    scroll-behavior: smooth; /* Плавность для программной прокрутки */
    -webkit-overflow-scrolling: touch;
}

/* Убираем плавность только в момент перетаскивания ползунка, 
   чтобы он не "отставал" от мышки */
.scroll-wrapper.is-dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* Скрываем полосу прокрутки браузера */
.scroll-wrapper::-webkit-scrollbar { display: none; }

.scroll-item {
    flex: 0 0 300px; /* Ширина новости */
    scroll-snap-align: start;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.scroll-item__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scroll-item__content { padding: 15px; }

/* Ползунок */
.scroll-bar {
    top: -16px;
    width: 100%;
    height: 6px; /* Чуть увеличим для удобства */
    background: #eee;
    border-radius: 10px;
    position: relative;
    margin-top: 20px;
    cursor: pointer;
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px; /* Фиксированная ширина бегунка */
    background: #5c2d91;
    border-radius: 10px;
    cursor: grab; /* Курсор-ручка */
    transition: background 0.2s;
}

.scroll-progress:active {
    cursor: grabbing; /* Курсор при захвате */
    background: #4a2475;
}

.scroll-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.news-header {
    width: 100%;
    text-align: center; /* Центрируем текст */
    margin-bottom: 25px; /* Отступ до начала карточек */
    margin-top: 40px;    /* Отступ сверху от предыдущих блоков */
}

.news-header__title {
    font-size: 28px;     /* Размер заголовка */
    font-weight: 700;    /* Жирность */
    color: #333;         /* Цвет текста */
    position: relative;
    display: inline-block;
}

/* Опционально: небольшая декоративная линия под заголовком */
.news-header__title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #5c2d91; /* Тот же фиолетовый, что и на ползунке */
    margin: 8px auto 0;
    border-radius: 2px;
}


 /* Внешний контейнер для позиционирования стрелок */
.scroll-container-outer {
    position: relative;
    padding: 0 40px; /* Место для стрелок */
}

/* Выравнивание карточек (Убираем волны) */
.scroll-item {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column; /* Элементы внутри в колонку */
    background: #fff;
    border-radius: 12px;
    height: auto; /* Позволяет карточкам быть одной высоты */
}

.scroll-item__image-wrapper img {
    width: 100%;
    height: 180px; /* Фиксированная высота картинок */
    object-fit: cover; /* Чтобы фото не деформировалось */
    border-radius: 12px 12px 0 0;
}

.scroll-item__title {
    min-height: 3.6em; /* Резервируем место под 2-3 строки заголовка */
    margin: 15px 0 10px;
    line-height: 1.2;
}

/* Стрелки */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #5c2d91;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 0.7;
}

.nav-arrow:hover { opacity: 1; }
.prev { left: 0; }
.next { right: 0; }

/* Убираем выделение текста при перетаскивании */
.scroll-wrapper {
    user-select: none;
    cursor: grab;
}

.scroll-wrapper:active { cursor: grabbing; }

.scroll-area-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #5c2d91;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    font-size: 24px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-btn:hover { background: #4a2475; }
.arrow-btn.left { left: -20px; }
.arrow-btn.right { right: -20px; }

/* На мобилках стрелки можно скрыть, там листают пальцем */
@media (max-width: 768px) {
    .arrow-btn { display: none; }
}



.scroll-item__title {
    color: #000000 !important; /* Устанавливаем чисто черный цвет */
    text-decoration: none;     /* Убираем подчеркивание, если оно есть */
}

/* Если заголовок является ссылкой, добавим цвет и для нее */
.scroll-item__title a {
    color: #000000;
}

    .btn-more-container {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.btn-more {
    background: #5c2d91; /* Фиолетовый под ваш ползунок */
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-more:hover {
    background: #4a2475;
}

/* Скрываем стандартные номера страниц, если они появятся */
.pagination {
    display: none;
}
