/* Adjust pagination buttons width and styling to be smaller */
.page-numbers,
.pagination .page-numbers,
.elementor-pagination .page-numbers {
    min-width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Ensure next/prev arrows behave correctly */
.page-numbers.next,
.page-numbers.prev {
    padding: 0 12px !important;
}

/* Home-page specific spacing to prevent conjoined/overlapping pagination buttons without affecting other pages */
.home .page-numbers,
.home .pagination .page-numbers,
.home .elementor-pagination .page-numbers {
    margin: 0 4px !important;
    background: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Opaque container for the homepage pagination area to block underlying overlays */
.home .pagination,
.home .elementor-pagination {
    background-color: #ffffff !important;
    padding: 10px !important;
    display: inline-flex !important;
    position: relative !important;
    z-index: 1 !important;
}
