/* Pagination Container Styling */
.pagination {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    padding: 1.5rem 1rem; /* Add more padding for spacing */
    margin: 0;
}

.pagination .step-links {
    display: flex;
    gap: 0.25rem; /* Reduce gap between buttons for compact layout */
}

.pagination a, 
.pagination .current {
    text-decoration: none;
    padding: 0.4rem 0.6rem; /* Smaller padding for mobile optimization */
    font-size: 0.875rem; /* Slightly smaller font size */
    border: 1px solid #343a40; /* Dark gray border */
    border-radius: 0.25rem;
    background-color: #495057; /* Darker background */
    color: #fff; /* White text */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    min-width: 2.5rem; /* Ensure buttons have consistent width */
    text-align: center;
}

/* Highlight current page */
.pagination .current {
    font-weight: bold;
    background-color: #212529; /* Even darker background for current page */
    cursor: default;
}

/* Hover effect */
.pagination a:hover {
    background-color: #6c757d; /* Slightly lighter shade on hover */
    color: #fff; /* Keep text white */
    border-color: #6c757d; /* Match hover background */
}

/* Responsive Design for Mobile */
@media (max-width: 576px) {
    .pagination {
        padding: 1rem 0.5rem; /* Reduce padding for smaller screens */
    }

    .pagination a, 
    .pagination .current {
        font-size: 0.75rem; /* Reduce font size further on small screens */
        padding: 0.3rem 0.5rem; /* Compact button padding */
    }
}