 // Add event listeners to checkboxes
                document.querySelectorAll('.filter-checkbox input').forEach(checkbox => {
                    checkbox.addEventListener('change', () => {
                        if (checkbox.dataset.group) {
                            if (checkbox.checked) {
                                activeThematicFilters.push(checkbox.dataset.group);
                            } else {
                                activeThematicFilters = activeThematicFilters.filter(g => g !