/* Pagination Styling */
.pagination,
.navigation.pagination {
    margin-top: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 5px;
    /* Minimal padding for numbers */
    background-color: #fff;
    color: #2c5f8d;
    /* Matching local template primary blue */
    border: 1px solid #e1e8ed;
    border-radius: 50%;
    /* Circle for numbers */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific style for Prev/Next which are pills, not circles */
.page-numbers.next,
.page-numbers.prev {
    width: auto;
    border-radius: 50px;
    padding: 0 25px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.page-numbers i {
    font-size: 12px;
}

.page-numbers.prev i {
    margin-right: 8px;
}

.page-numbers.next i {
    margin-left: 8px;
}

.page-numbers:not(.current):hover {
    background-color: #e8b44f;
    /* Accent Gold */
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(232, 180, 79, 0.3);
    border-color: #e8b44f;
    text-decoration: none;
}

.page-numbers.current {
    background-color: #2c5f8d;
    /* Primary Blue */
    color: #fff;
    border-color: #2c5f8d;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.3);
    cursor: default;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .nav-links {
        gap: 8px;
    }

    .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .page-numbers.next,
    .page-numbers.prev {
        padding: 0 15px;
        font-size: 12px;
    }
}