/* Amarena news V24.5 — scoped pdoPage pagination UX */
#albero-news-results {
    position: relative;
    transition: opacity .18s ease;
}

#albero-news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 52px;
    min-height: 60px;
}

#albero-news-pagination:empty {
    display: none;
    min-height: 0;
    margin-top: 0;
}

#albero-news-pagination .am-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
}

#albero-news-pagination .am-pagination__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(132, 0, 0, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 34px rgba(23, 32, 47, .08);
    backdrop-filter: blur(10px);
}

#albero-news-pagination .am-pagination__pages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#albero-news-pagination .am-pagination__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(132, 0, 0, .12);
    border-radius: 50%;
    background: #fff;
    color: #202938;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(23, 32, 47, .04);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease;
}

#albero-news-pagination a.am-pagination__button:hover,
#albero-news-pagination a.am-pagination__button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(132, 0, 0, .38);
    color: #840000;
    box-shadow: 0 8px 20px rgba(132, 0, 0, .11);
    outline: none;
}

#albero-news-pagination .am-pagination__button.is-active {
    border-color: #840000;
    background: #840000;
    color: #fff;
    box-shadow: 0 8px 18px rgba(132, 0, 0, .20);
}

#albero-news-pagination .am-pagination__arrow {
    color: #840000;
}

#albero-news-pagination .am-pagination__arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

#albero-news-pagination .am-pagination__skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 44px;
    color: #8a909a;
    font-weight: 700;
}

#albero-news-results.loading {
    pointer-events: none;
}

#albero-news-results.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(132, 0, 0, .16);
    border-top-color: #840000;
    border-radius: 50%;
    animation: amarenaNewsSpin .72s linear infinite;
}

@keyframes amarenaNewsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    #albero-news-pagination {
        margin-top: 36px;
        min-height: 54px;
    }

    #albero-news-pagination .am-pagination__inner {
        gap: 7px;
        padding: 6px;
    }

    #albero-news-pagination .am-pagination__pages {
        gap: 6px;
    }

    #albero-news-pagination .am-pagination__button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 14px;
    }

    #albero-news-pagination .am-pagination__skip {
        height: 40px;
    }
}
