﻿.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    margin-top: 10px;
    user-select: none;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid rgba(2, 32, 121, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #022079;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    position: relative;
    box-shadow: 0 2px 8px rgba(2, 32, 121, 0.08);
}

.page-btn:hover:not(.disabled):not(.active) {
    background: white;
    border-color: #022079;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.15);
}

.page-num {
    width: 44px;
    padding: 0;
    font-weight: 600;
}

.page-btn.active {
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    border-color: #022079;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 32, 121, 0.3);
    cursor: default;
}

.page-prev,
.page-next {
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.page-prev i,
.page-next i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.page-prev:hover:not(.disabled) i {
    transform: translateX(-3px);
}

.page-next:hover:not(.disabled) i {
    transform: translateX(3px);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #022079;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.4;
}


body.dark-mode .page-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-color: rgba(250, 255, 4, 0.2);
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .page-btn:hover:not(.disabled):not(.active) {
    background: rgba(250, 255, 4, 0.1);
    border-color: #faff04;
    color: #faff04;
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.15);
}

body.dark-mode .page-btn.active {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    border-color: #faff04;
    color: #022079;
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.3);
}

body.dark-mode .page-prev:hover:not(.disabled),
body.dark-mode .page-next:hover:not(.disabled) {
    border-color: #faff04;
    color: #faff04;
}

body.dark-mode .page-ellipsis {
    color: #e0e0e0;
    opacity: 0.3;
}


@media (max-width: 640px) {
    .blog-pagination {
        gap: 4px;
        padding: 20px 10px;
    }

    .page-btn {
        padding: 8px 10px;
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 20px;
    }

    .page-num {
        width: 38px;
    }

    .page-prev span,
    .page-next span {
        display: none;
    }

    .page-prev,
    .page-next {
        padding: 8px 14px;
    }

    .page-ellipsis {
        width: 30px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        border-radius: 18px;
    }

    .page-num {
        width: 34px;
    }
}
