jQuery(document).ready(function () {
    const defaultSettings = {
        autoplay: true,
        rewind: false,
        autoHeight: true,
        autoplayTimeout: 7000,
        smartSpeed: 800,
        nav: false,
        dots: true,
        responsiveClass: true
    };
    function initOwlCarousel(selector, settings) {
        jQuery(selector).owlCarousel({ ...defaultSettings, ...settings });
    }
    initOwlCarousel(".books_slider", {
        margin: 0,
        responsive: {
            0: { items: 2 },
            600: { items: 3 },
            1024: { items: 4 },
            1366: { items: 5 }
        }
    });
    initOwlCarousel(".testi_slider", {
        margin: 20,
        responsive: {
            0: { items: 1 },
            1024: { items: 2 },
            1366: { items: 3 }
        }
    });
});
