<?php if(get_theme_mod('buconz_starter_main_area')) : ?>
	<section class="hero-slider bg-color-second">
		<div class="home-slider">	
			<?php 
				$slide=1; 
				for($i=1;$i<11;$i++){
					$buconz_starter_slider_page[$slide]=get_theme_mod('buconz_starter_slider_page_'.$i);
					$buconz_starter_slider_sub_title[$slide]=get_theme_mod('buconz_starter_slider_sub_title_'.$i);
					$buconz_starter_slider_main_title[$slide]=get_theme_mod('buconz_starter_slider_main_title_'.$i);
					$buconz_starter_slider_button_title[$slide]=get_theme_mod('buconz_starter_slider_button_title_'.$i);
					$buconz_starter_slider_button_url[$slide]=get_theme_mod('buconz_starter_slider_button_url_'.$i);
					$slide=$slide+1;
				}
				$args = array (
					'post_type' => 'page',
					'post_per_page' => $slide,
					'posts_per_page'=>10,
					'post__in'         => ($buconz_starter_slider_page) ? ($buconz_starter_slider_page) : '',
					'orderby'           =>'post__in',
				);

				$buconz_starter_sliderloop = new WP_Query($args);
				$j=1;
				if ($buconz_starter_sliderloop->have_posts()) :  while ($buconz_starter_sliderloop->have_posts()) : $buconz_starter_sliderloop->the_post();
				
			?>
			<?php $buconz_starter_slider_img_url = get_the_post_thumbnail_url(get_the_ID($i),'full'); ?>
			<div class="single-slider d-flex align-items-center" style="height:680px;" style="background-image:url('<?php echo esc_url($buconz_starter_slider_img_url); ?>')">
				<div class="container">
					<div class="row">
						<div class="col-lg-6 col-md-6 col-12">
							<div class="welcome-text"> 	
							<div class="hero-text text-left"> 
								<span><?php echo esc_html($buconz_starter_slider_sub_title[$j]);?></span>
								<h1><?php echo esc_html($buconz_starter_slider_main_title[$j]);?></h1>
								<div class="hero-text">
									<p><?php the_excerpt(); ?></p>
								</div>
							</div>
							<?php if($buconz_starter_slider_button_title[$j]): ?>
							<div class="button"><a href="<?php echo esc_url($buconz_starter_slider_button_url[$j]) ;?>" class="buconz-btn theme-1 effect"><span class="effect-text"><?php echo esc_html($buconz_starter_slider_button_title[$j]); ?></span></a></div>
							</div>
							<?php endif; ?>
						</div>
						<div class="col-lg-6 col-md-6 col-12">
							<div class="slider-right"> 	
								<?php $buconz_starter_slider_img_url = get_the_post_thumbnail_url(get_the_ID($i),'full'); ?>
								<img src="<?php echo esc_url($buconz_starter_slider_img_url); ?>">
							</div>
						</div>
					</div>
				</div>
			</div>
			<?php $j=$j+1; endwhile;
				wp_reset_postdata();  
			endif; ?>
		</div>
	</section>
<?php endif;?>