
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

/* Стрілки */
.pagination .nav-arrow {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

.pagination .nav-arrow:hover {
    background-color: #2979ff;
    color: #fff;
    transform: scale(1.05);
}

.pagination .nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Смуга цифр */
.page-numbers {
    display: flex;
    background: #ffffff;
    padding: 0 10px;
    gap: 5px;
    border-radius: 30px;
}

/* Кнопки цифр */
.page-numbers a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Hover ефект */
.page-numbers a:hover {
    background-color: #e3f2fd;
    color: #2979ff;
}

/* Активна сторінка */
.page-numbers a.active {
    background-color: #2979ff;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(41, 121, 255, 0.7);
    transform: scale(1.1);
}

/* Крапки */
.page-numbers .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #777;
    font-weight: bold;
    font-size: 1.2em;
    pointer-events: none;
}

.pagination::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
        padding: 8px 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
    }

    .pagination .nav-arrow {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .pagination .nav-arrow svg {
        width: 18px;
        height: 18px;
    }

    .page-numbers {
        display: flex;
        background: #ffffff;
        padding: 0 15px;
        border-radius: 30px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(41, 121, 255, 0.7) transparent;
    }

    .page-numbers a,
    .page-numbers .dots {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 0.85em;
        padding: 0;
        margin: 0;
    }

    .page-numbers a.active {
        border-radius: 10px;
        transform: scale(1.05);
        box-shadow: 0 0 9px rgba(41, 121, 255, 0.5);
    }

    .page-numbers::-webkit-scrollbar {
        height: 4px;
        margin: 0 20px; /* додаємо внутрішній відступ для скролбару */
    }

    .page-numbers::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(41, 121, 255, 0.7) 0%, rgba(0, 212, 255, 0.7) 100%);
        border-radius: 4px;
    }

    .page-numbers::-webkit-scrollbar-track {
        background: transparent;
    }


    /* Обгортка для керування прозорістю */
    .page-numbers {
        position: relative;
    }
}

