// Initialize tooltips document.addEventListener('DOMContentLoaded', function() { // Initialize any tooltips if needed const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); tooltipTriggerList.map(function (tooltipTriggerEl) { return new bootstrap.Tooltip(tooltipTriggerEl); }); // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); // Add animation class to course cards when they come into view const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('course-card'); observer.unobserve(entry.target); } }); }, { threshold: 0.1 }); document.querySelectorAll('#cursos .bg-white').forEach(card => { observer.observe(card); }); });