	<script>
	// FAQ Click Handler Script
$(document).ready(function() {
    // Initialize all FAQ accordions as collapsed except first one
    $('.accordion-collapse').not('#collapseOne').collapse('hide');
    $('#collapseOne').collapse('show');

    // FAQ click handler with enhanced animations
    $('.accordion-button').on('click', function(e) {
        e.preventDefault();
        
        const $button = $(this);
        const $accordionItem = $button.closest('.accordion-item');
        const $targetCollapse = $($button.attr('data-bs-target'));
        
        // Remove all active states first
        $('.accordion-button').removeClass('active-faq');
        $('.accordion-item').removeClass('active-faq-item');
        
        // Add active state to clicked item
        $button.addClass('active-faq');
        $accordionItem.addClass('active-faq-item');
        
        // Close all other accordions
        $('.accordion-collapse').not($targetCollapse).collapse('hide');
        
        // Toggle the clicked accordion
        $targetCollapse.collapse('toggle');
        
        // Add smooth scroll if FAQ is not in viewport
        if (!isElementInViewport($accordionItem[0])) {
            $('html, body').animate({
                scrollTop: $accordionItem.offset().top - 100
            }, 400);
        }
        
        // Add click animation
        $button.addClass('clicked');
        setTimeout(() => {
            $button.removeClass('clicked');
        }, 300);
        
        // Track FAQ opens (optional analytics)
        trackFAQOpen($button.text().trim());
    });

    // Handle accordion show/hide events for smooth transitions
    $('.accordion-collapse').on('show.bs.collapse', function() {
        const $accordionItem = $(this).closest('.accordion-item');
        $accordionItem.addClass('showing');
        
        // Add opening animation
        $(this).find('.accordion-body').css({
            'opacity': '0',
            'transform': 'translateY(-10px)'
        });
    });

    $('.accordion-collapse').on('shown.bs.collapse', function() {
        const $accordionItem = $(this).closest('.accordion-item');
        $accordionItem.removeClass('showing').addClass('shown');
        
        // Animate content in
        $(this).find('.accordion-body').animate({
            'opacity': '1',
            'transform': 'translateY(0)'
        }, 300);
    });

    $('.accordion-collapse').on('hide.bs.collapse', function() {
        const $accordionItem = $(this).closest('.accordion-item');
        $accordionItem.addClass('hiding');
    });

    $('.accordion-collapse').on('hidden.bs.collapse', function() {
        const $accordionItem = $(this).closest('.accordion-item');
        $accordionItem.removeClass('hiding shown active-faq-item');
        $accordionItem.find('.accordion-button').removeClass('active-faq');
    });

    // Keyboard navigation support
    $('.accordion-button').on('keydown', function(e) {
        if (e.key === 'Enter' || e.key === ' ') {
            e.preventDefault();
            $(this).click();
        }
        
        // Arrow key navigation between FAQs
        if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
            e.preventDefault();
            const $current = $(this);
            const $allButtons = $('.accordion-button');
            const currentIndex = $allButtons.index($current);
            
            let nextIndex;
            if (e.key === 'ArrowDown') {
                nextIndex = (currentIndex + 1) % $allButtons.length;
            } else {
                nextIndex = (currentIndex - 1 + $allButtons.length) % $allButtons.length;
            }
            
            $allButtons.eq(nextIndex).focus().click();
        }
    });

    // Helper function to check if element is in viewport
    function isElementInViewport(el) {
        const rect = el.getBoundingClientRect();
        return (
            rect.top >= 0 &&
            rect.left >= 0 &&
            rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
            rect.right <= (window.innerWidth || document.documentElement.clientWidth)
        );
    }

    // Optional: Track FAQ opens for analytics
    function trackFAQOpen(question) {
        console.log('FAQ opened:', question);
        // Add your analytics tracking here
        // Example: Google Analytics
        // gtag('event', 'faq_open', { 'question': question });
    }

    // Auto-open FAQ from URL hash
    function openFAQFromHash() {
        const hash = window.location.hash;
        if (hash) {
            const $targetButton = $(`[data-bs-target="${hash}"]`);
            if ($targetButton.length) {
                setTimeout(() => {
                    $targetButton.click();
                }, 500);
            }
        }
    }

    // Initialize URL hash handling
    openFAQFromHash();

    // Update URL hash when FAQ is opened
    $('.accordion-button').on('click', function() {
        const target = $(this).attr('data-bs-target');
        if (target) {
            window.history.replaceState(null, null, target);
        }
    });
});
	</script>