;
  
        const start = (page - 1) * cardsPerPage;
        const end = start + cardsPerPage;
  
        for (let i = start; i < end && i < cards.length; i++) {
          cards[i].style.display = 'block';
        }
  
        document.getElementById('pageIndicator').innerText = `Page ${currentPage}`;
        document.getElementById('prevPage').disabled = page === 1;
        document.getElementById('nextPage').disabled = page === totalPages;
      }
  
      function prevPage() {
        if (currentPage > 