Navigation with Enhanced CTA document .querySelector(".close-button") .addEventListener("click", function () { document.getElementById("menu-toggle").checked = false; }); // Close menu on menu item click document.querySelectorAll(".menu a").forEach((link) => { link.addEventListener("click", function () { document.getElementById("menu-toggle").checked = false; }); });