
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 70px auto;
    width: fit-content;
    background: var(--primary-color);
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pagination a:hover::before {
    opacity: 1;
}

.pagination a:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pagination .active a {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.pagination .dots {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #333;
    font-size: 20px;
    animation: pulse 1.5s infinite;
}

.pagination .prev a,
.pagination .next a {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.6);
    }
}

.pagination .active a {
    animation: glow 2s infinite;
}

/* Hover effects for different numbers */
.pagination .number:nth-child(2) a:hover::before {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
}

.pagination .number:nth-child(3) a:hover::before {
    background: linear-gradient(45deg, #4FACFE, #00F2FE);
}

.pagination .number:nth-child(4) a:hover::before {
    background: linear-gradient(45deg, #43E97B, #38F9D7);
}

.pagination .number:nth-child(5) a:hover::before {
    background: linear-gradient(45deg, #FA709A, #FEE140);
}

.pagination .number:nth-child(6) a:hover::before {
    background: linear-gradient(45deg, #667EEA, #764BA2);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .pagination-container {
        padding: 15px;
    }

    .pagination a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}