.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 14px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.page-link:hover:not(.disabled):not(.active) {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}

.page-link.disabled {
    color: #aaa;
    border-color: #eee;
    cursor: not-allowed;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Разрешает перенос на новую строку, если экран очень узкий */
    gap: 4px; /* Компактные отступы между кнопками */
    margin: 25px 0;
    padding: 0 10px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 2px;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

.page-link:hover:not(.active):not(.dots) {
    background-color: #f0f0f0;
}