tn.style.pointerEvents = 'none';
            } else {
                nextBtn.style.opacity = '1';
                nextBtn.style.pointerEvents = 'auto';
            }
        }
        
        // Update page display and button states on load
        document.addEventListener('DOMContentLoaded', function() {
            document.querySelector('.rc-flex span').textContent = 'Page ' + currentPage + ' of ' + totalPages;
            updateButtonStates();
        });
        </script>
    </main>

    <!-- Foote