content.previousElementSibling;
        content.classList.toggle('show');
        header.querySelector('.chevron').classList.toggle('collapsed');
    }

    document.addEventListener('DOMContentLoaded', function () {
        // Tag cloud functionality
        const tagCloud = document.getElementById('tagCloud');
        const hiddenSelect = document.getElementById('tags');
        const allTags = Array.from(hiddenSelect.options).map(opt => ({
            value: opt.value,
            label: opt.text
       