﻿
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0 20px;
    direction: rtl;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
}

.pagination a {
    color: #fff;
    background: #2196f3;
    border: 1px solid #2196f3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination a:hover {
    color: #fff;
    background: #333;
    border-color: #333;
}

.pagination .active {
    color: #fff;
    background: #333;
    border: 1px solid #333;
    font-weight: 700;
}

.pagination .dots {
    color: #777;
    background: transparent;
    border: none;
    cursor: default;
}

.pagination a:first-child,
.pagination a:last-child {
    width: auto;
    min-width: 65px;
    padding: 0 14px;
}

/* موبایل */
@media (max-width: 576px) {

    .pagination {
        gap: 5px;
        margin: 25px 0 15px;
    }

    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        border-radius: 7px;
        font-size: 13px;
    }

    .pagination a:first-child,
    .pagination a:last-child {
        min-width: 55px;
        padding: 0 10px;
    }
}
