<?php
/**
 * Template Name: Custom Home Page
 */
get_header();

?>
<!-- banner section -->
<main id="maincontent" role="main">

  <?php do_action( 'immigration_consulting_above_banner' ); ?>
  
  <?php if (get_theme_mod('immigration_consulting_hide_show_banner_section', true)== 1 || get_theme_mod( 'immigration_consulting_resp_slider_hide_show', true) == 1) { ?>
    <section id="banner-sec" data-wow-delay=".25s">
      <div class="banner-img position-relative">
        <?php if (get_theme_mod('immigration_consulting_banner_bg_img') != "") { ?>
          <div class="banner-bg-img position-relative">
            <img src="<?php echo esc_url(get_theme_mod('immigration_consulting_banner_bg_img')); ?>" alt="<?php echo esc_attr('background-image', 'immigration-consulting'); ?>">
            <div class="img-overlay position-absolute"></div>
          </div>
        <?php } else { ?>
          <div class="bg-color"></div>
        <?php } ?>
        <div class="banner-content position-absolute">
          <div class="container">
            <div class="row">
              <div class="offset-xxl-7 offset-xl-5 offset-lg-4 offset-md-3 col-xxl-5 col-xl-7 col-lg-8 col-md-9 col-12">
                <?php if (get_theme_mod('immigration_consulting_banner_title') != '') { ?>
                  <h1 class="banner-title text-capitalize"><?php echo esc_html(get_theme_mod('immigration_consulting_banner_title')); ?></h1>
                <?php } ?>
                <?php if (get_theme_mod('immigration_consulting_banner_text') != '') { ?>
                  <p class="banner-text mt-3 text-capitalize"><?php echo esc_html(get_theme_mod('immigration_consulting_banner_text')); ?></p>
                <?php } ?>
                <?php if ( get_theme_mod('immigration_consulting_banner_button_label') != '' ) {?>
                  <div class ="banner-btn">
                    <a href="<?php echo esc_url(get_theme_mod('immigration_consulting_banner_button_url'));?>" class="text-capitalize"><?php echo esc_html(get_theme_mod('immigration_consulting_banner_button_label'));?>
                    </a>
                  </div>
                <?php }?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  <?php }?>

  <?php do_action( 'immigration_consulting_below_banner' ); ?>

  <!-- Products Section -->
  <?php if (get_theme_mod('immigration_consulting_guidance_section_hide_show', true)){ ?>
    <section id="guidance-section" class="my-4 position-relative" data-wow-delay=".25s">
      <?php if (get_theme_mod('immigration_consulting_guidance_bg_img') != "") { ?>
        <div class="guidance-bg-img position-relative">
          <img src="<?php echo esc_url(get_theme_mod('immigration_consulting_guidance_bg_img')); ?>" alt="<?php echo esc_attr('background-image', 'immigration-consulting'); ?>">
          <div class="img-overlay position-absolute"></div>
        </div>
      <?php }?>
      <div class="guidance-info-box position-absolute">
        <div class="container">
          <div class="row">
            <div class="col-xl-7 col-xl-8 col-lg-9 col-md-12 col-12">
              <div class="guidance-sec-content mb-3">
                <?php if(get_theme_mod('immigration_consulting_guidance_section_title') != '') {?>
                  <h2 class="section-title text-capitalize mb-2 position-relative"><?php echo esc_html(get_theme_mod('immigration_consulting_guidance_section_title')) ?></h2>
                <?php }?>
                <?php if(get_theme_mod('immigration_consulting_guidance_section_text') != '') {?>
                  <p class="small-text mb-0 text-capitalize"><?php echo esc_html(get_theme_mod('immigration_consulting_guidance_section_text')) ?></p>
                <?php }?>
              </div>
              <div class="row">
                <?php 
                  for ($immigration_consulting_i = 1; $immigration_consulting_i <= 4; $immigration_consulting_i++) 
                  if(get_theme_mod('immigration_consulting_guidance_info_box_title' .$immigration_consulting_i) != '' || get_theme_mod('immigration_consulting_guidance_info_box_text' .$immigration_consulting_i) != '') {?>
                  <div class="col-xl-6 col-lg-6 col-md-6 col-12 mb-3 guidance-box">
                    <div class="guidance-info d-flex align-items-start flex-column justify-content-center position-relative">
                      <a href="<?php echo esc_url(get_theme_mod('immigration_consulting_guidance_info_box_title_link' .$immigration_consulting_i));?>" class="section-title mb-3"><?php echo esc_html(get_theme_mod('immigration_consulting_guidance_info_box_title' .$immigration_consulting_i));?>
                      </a>
                      <p class="small-text mb-0 text-capitalize"><?php echo esc_html(get_theme_mod('immigration_consulting_guidance_info_box_text' .$immigration_consulting_i)) ?></p>
                    </div>
                  </div>
                <?php }?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  <?php }?>
  <?php do_action( 'immigration_consulting_after_service' ); ?>

  <div id="content-vw" class="entry-content">
    <div class="container">
      <?php while (have_posts()) : the_post(); ?>
        <?php the_content(); ?>
      <?php endwhile; // end of the loop. 
      ?>
    </div>
  </div>
</main>

<?php get_footer(); ?> 