/* ==========================================================
   Stories pagination  —  append to the end of style.css
   Same tokens as the rest of the site: navy #12304D, teal #39A4B1,
   cream #FFFCF5, border #E3E3E3, pill radius 30px, Poppins.
   ========================================================== */

/* Load More is replaced by real pagination. !important so the old script
   cannot re-show it with an inline display value. */
.allStories .btnloadMore,
.allStories #loadMore { display: none !important; }

.storiesPager {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #E3E3E3;
}
.storiesPager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.storiesPager li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.storiesPager a,
.storiesPager span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #12304D;
    background: transparent;
    border: 1px solid #E3E3E3;
    border-radius: 30px;
}
.storiesPager a:hover,
.storiesPager a:focus-visible {
    color: #FFFFFF;
    background: #39A4B1;
    border-color: #39A4B1;
}
.storiesPager .is-current {
    color: #FFFCF5;
    background: #12304D;
    border-color: #12304D;
}
.storiesPager .is-disabled {
    opacity: 0.35;
}
.storiesPager .pgGap {
    min-width: 0;
    padding: 0 4px;
    border: none;
    color: #737373;
}
.storiesPager i {
    font-size: 12px;
}

/* Search results are AJAX-loaded and not paginated */
.allStories.is-searching .storiesPager { display: none; }

@media (max-width: 767px) {
    .storiesPager { margin-top: 36px; padding-top: 24px; }
    .storiesPager ul { gap: 6px; }
    .storiesPager a,
    .storiesPager span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }
}
