<?php if ('layout_two' === $settings['layout_type']) : ?>
	<!-- main-slider-start -->
	<section class="main-slider-two">
		<div class="main-slider-two__carousel ostech-owl__carousel owl-carousel" data-owl-options='{
		"loop": true,
		"animateOut": "fadeOut",
		"animateIn": "fadeIn",
		"items": 1,
		"autoplay": true,
		"autoplayTimeout": 7000,
		"smartSpeed": 1000,
		"nav": false,
		"dots": true,
		"margin": 0
	    }'>
			<?php foreach ($settings['layout_two_sliders'] as $slider) : ?>
				<!-- Item -->
				<div class="item">
					<div class="main-slider-two__item">
						<div class="main-slider-two__bg" style="background-image: url(<?php echo esc_url($slider['background_image']['url']) ?>);"></div>
						<div class="container">
							<div class="row">
								<div class="col-md-12">
									<div class="main-slider-two__content">
										<<?php echo esc_attr($slider['sub_title_tag_layout_two']); ?> class="main-slider-two__sub-title">
											<?php echo wp_kses($slider['sub_title'], 'ostech_allowed_tags'); ?>
										</<?php echo esc_attr($slider['sub_title_tag_layout_two']); ?>>
										<!-- slider-sub-title -->
										<<?php echo esc_attr($slider['title_tag_layout_two']); ?> class="main-slider-two__title">
											<?php echo wp_kses($slider['title'], 'ostech_allowed_tags'); ?>
											<span class="main-slider-two__title__overlay-group">
												<span class="main-slider-two__title__overlay"></span>
												<span class="main-slider-two__title__overlay"></span>
												<span class="main-slider-two__title__overlay"></span>
												<span class="main-slider-two__title__overlay"></span>
												<span class="main-slider-two__title__overlay"></span>
												<span class="main-slider-two__title__overlay"></span>
											</span>
										</<?php echo esc_attr($slider['title_tag_layout_two']); ?>>
										<div class="main-slider-two__link">

											<?php if (!empty($slider['button_one_label'])) : ?>
												<a href="<?php echo esc_url($slider['button_one_url']['url']); ?>" <?php esc_attr(!empty($settings['button_one_url']['is_external']) ? "target=_blank" : ' '); ?> class="ostech-btn ostech-btn--base">
													<span><?php echo wp_kses($slider['button_one_label'], 'ostech_allowed_tags'); ?></span>
												</a><!-- slider-btn -->
											<?php endif; ?>
											<?php if (!empty($slider['button_two_label'])) : ?>
												<a href="<?php echo esc_url($slider['button_two_url']['url']); ?>" <?php esc_attr(!empty($settings['button_two_url']['is_external']) ? "target=_blank" : ' '); ?> class="ostech-btn ostech-btn--secondary">
													<span><?php echo wp_kses($slider['button_two_label'], 'ostech_allowed_tags'); ?></span>
												</a><!-- slider-btn -->
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
						</div>
						<?php if (!empty($slider['shape_one']['url'])) : ?>
							<div class="main-slider-two__item__shape">
								<?php ostech_elementor_rendered_image($slider, 'shape_one'); ?>
							</div>
						<?php endif; ?>
					</div>
				</div>
				<!-- Item -->
			<?php endforeach; ?>
		</div>
	</section>
	<!-- main-slider-end -->
<?php endif; ?>