(function(){
const input = document.getElementById(‘vs-blog-search’);
if(!input) return;
input.addEventListener(‘input’, function(){
const q = this.value.trim().toLowerCase();
document.querySelectorAll(‘.vs-post’).forEach(card=>{
const hay = (card.dataset.title||”) + ‘ ‘ + card.textContent.toLowerCase();
card.style.display = hay.includes(q) ? ‘block’ : ‘none’;
});
});
})();

