document.addEventListener('DOMContentLoaded', function () {
const cards = document.querySelectorAll('.card');
cards.forEach(card => {
card.addEventListener('click', function () {
cards.forEach(c => {
if (c !== card) {
c.classList.remove('active');
}
});
card.classList.toggle('active');
});
});
});