/* Custom Pagination Styles - Bootstrap 5 Compatible */
.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    color: #cd1125;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #cd1125;
    border-color: #cd1125;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 17, 37, 0.3);
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #cd1125;
    border-color: #cd1125;
    box-shadow: 0 4px 12px rgba(205, 17, 37, 0.4);
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(205, 17, 37, 0.25);
    outline: none;
}

/* Previous/Next specific styling */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
}