document.addEventListener('DOMContentLoaded', function() { const serviceLink = document.querySelector('li.nav-item.dropdown > a'); if (serviceLink) { serviceLink.addEventListener('click', function(e) { // If the link is clicked, prevent the default dropdown behavior window.location.href = serviceLink.href; // Go to the Services page }); } });