k="previousPage()"]');
            const nextBtn = document.querySelector('a[onclick="nextPage()"]');
            
            if (currentPage <= 1) {
                prevBtn.style.opacity = '0.5';
                prevBtn.style.pointerEvents = 'none';
            } else {
                prevBtn.style.opacity = '1';
                prevBtn.style.pointerEvents = 'auto';
            }
            
            if (currentPage >= totalPages) {
                nextBtn.style.opacity = '0.5';
                nextB