/* Client pagination — minimal forest-green style (shared across pages) */
.pagination-home {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0;
}

.pagination-custom {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
}

.page-item-custom {
    margin: 0;
    display: flex;
    align-items: center;
}

.page-link-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-poppins, "Poppins", sans-serif);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Prev / Next — forest green text */
.page-link-custom--nav {
    color: var(--footer-emerald, #006f45);
    padding: 0.25rem 0;
    min-width: auto;
    height: auto;
    white-space: nowrap;
}

a.page-link-custom--nav:hover {
    color: var(--color-green, #129756);
    text-decoration: none;
}

.page-link-custom--nav.is-disabled {
    color: var(--color-brown, #999999);
    cursor: not-allowed;
    opacity: 0.55;
}

/* Page numbers — dark text */
.page-link-custom--number {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.25rem;
    color: var(--color-black, #003521);
    font-weight: 500;
    border-radius: 50%;
    box-sizing: border-box;
}

a.page-link-custom--number:hover {
    color: var(--footer-emerald, #006f45);
    text-decoration: none;
}

/* Active page — circle outline only */
.page-item-custom.active .page-link-custom--number {
    color: var(--color-black, #003521);
    border: 1px solid var(--footer-emerald, #006f45);
    background: transparent;
    cursor: default;
}

/* Ellipsis */
.page-link-custom--ellipsis {
    min-width: 1.5rem;
    height: 2.25rem;
    color: var(--color-black-light, #484647);
    cursor: default;
    padding: 0 0.125rem;
}

@media (max-width: 768px) {
    .pagination-custom {
        gap: 0.375rem 0.75rem;
    }

    .page-link-custom--nav {
        font-size: 0.875rem;
    }

    .page-link-custom--number {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}
