);
                    paginationContainer.appendChild(firstButton);
                }

                // Add prev button
                if (currentPage > 1) {
                    const prevButton = createPaginationButton('‹', () => {
                        currentPage--;
                        displayCurrentPage();
                        updatePagination();
                        window.scrollTo(0, 0);
                    });
                    paginationContainer.appendChild(prevButton);
        