erver.observe(card);
      });

      // Search & Category Filter Functionality
      const searchBar = document.getElementById("search-bar");
      const templateCards = document.querySelectorAll(".template-card");
      const noResultsMsg = document.querySelector(".no-results"); // Added a "no results" div to your HTML

      function filterTemplates() {
        const query = searchBar.value.trim().toLowerCase();
        let visibleCount = 0;

        templateCards.forEach((card) => {
          const titl