$(function(){const slider=new Swiper('.success-slider',{spaceBetween:16,loop:true,watchSlidesProgress:true,slidesPerView:"auto",navigation:{nextEl:".success-next",prevEl:".success-prev",},pagination:{el:".success-pagination",clickable:true},breakpoints:{1024:{spaceBetween:32},768:{spaceBetween:16}},on:{init:function(){lazyLoadInstance.update();},},});new Swiper('.reviews-slider',{spaceBetween:32,loop:true,watchSlidesProgress:true,slidesPerView:1,autoHeight:true,navigation:{nextEl:".reviews-next",prevEl:".reviews-prev",},pagination:{el:".reviews-pagination",clickable:true},breakpoints:{1024:{autoHeight:false}},on:{init:function(){lazyLoadInstance.update();},},});initializeAccordion();$('.accordion > li > a').on('click',function(e){e.preventDefault();const $accordionItem=$(this).parent();const $content=$accordionItem.find('.accordion-hidden');$('.accordion > li.active').not($accordionItem).removeClass('active').find('.accordion-hidden').slideUp();if($accordionItem.hasClass('active')){$accordionItem.removeClass('active');$content.slideUp();}else{$accordionItem.addClass('active');$content.slideDown();}});$('.modal-close').click(function(){$(this).closest('.modal-overlay').fadeOut()})});function initializeAccordion(){$('.accordion > li').each(function(){const $li=$(this);const $content=$li.find('.accordion-hidden');if($li.hasClass('active')){$content.show();}else{$content.hide();}});} $('#bubble-btn').on('click',function(e){const $buttonContainer=$('.button-container');const $footer=$('#footer');$('html, body').animate({scrollTop:$footer.offset().top},1000);});