// For desktop and mobile nav active state toggle
document.querySelectorAll('.nav-list li a').forEach(link => {
link.addEventListener('click', function(e) {
// Remove active from all links in the same menu
const parentUl = this.closest('ul');
parentUl.querySelectorAll('a').forEach(a => a.classList.remove('active'));
// Add active to the clicked link
this.classList.add('active');
});
});