/* Pagination Fix - Proper styling for pagination links */

/* Reset pagination container background */
.pagination .page-list {
    background: transparent !important;
}

/* Style for current/active page */
.pagination .current a,
.pagination .active a {
    color: #ffffff !important;
    background-color: #060735 !important;
    padding: 8px 14px;
    border-radius: 5px;
    border: 2px solid #060735 !important;
    font-weight: 600;
}

/* Style for inactive page links */
.pagination a {
    color: #060735 !important;
    background-color: #ffffff !important;
    padding: 8px 14px;
    margin: 0 3px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

/* Hover effect for inactive links */
.pagination a:hover {
    background-color: #00ADEF !important;
    color: #ffffff !important;
    border-color: #00ADEF !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Previous/Next buttons styling */
.pagination .previous a,
.pagination .next a {
    background-color: #f8f9fa !important;
    color: #060735 !important;
    padding: 8px 16px;
    font-weight: 500;
}

.pagination .previous a:hover,
.pagination .next a:hover {
    background-color: #060735 !important;
    color: #ffffff !important;
    border-color: #060735 !important;
}

/* Disabled state for previous/next when not available */
.pagination .disabled a {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .disabled a:hover {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    transform: none;
    box-shadow: none;
}

/* Ensure proper spacing and alignment */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 5px;
}

.pagination .page-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .pagination a {
        padding: 6px 10px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    .pagination .previous a,
    .pagination .next a {
        padding: 6px 12px;
    }
}

/* Fix for any conflicting styles */
.pagination li {
    list-style: none;
    display: inline-block;
}

/* Ensure text "Showing x-y of z results" has proper color */
.showing {
    color: #060735 !important;
}

/* Modern pagination dots for many pages */
.pagination .dots {
    color: #060735 !important;
    padding: 8px 10px;
    cursor: default;
}