<?php
if (have_rows('page_content')):
    while (have_rows('page_content')) :
        the_row();
        if (get_row_layout() == 'hero_section'): ?>
        <?php elseif (get_row_layout() == 'hero_sections'): ?>
            <?php
            $bgimg = get_sub_field('hsbg_img');
            ?>
            <section class="container-fluid banner_section sec_1_home"
                     style="background:url(<?php if (!empty($bgimg)):echo $bgimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row">
                            <div class="col-sm-8">
                                <div class="banner_text">
                                    <h2><?php the_sub_field('hstitle'); ?><br/>
                                        <?php the_sub_field('hsstitle'); ?></h2>
                                    <p><?php the_sub_field('hscontent'); ?></p>
                                    <?php
                                    $btntext = get_sub_field('hsbtn_text');
                                    $btnlink = get_sub_field('hsbtn_link');
                                    if (!empty($btntext) && !empty($btnlink)):
                                        ?>
                                        <a href="<?php echo $btnlink; ?>"
                                           class="btn btn-primary"><?php echo $btntext; ?></a>
                                    <?php endif; ?>

                                    <h5><?php the_sub_field('hstext'); ?></h5>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'counter_sections'): ?>
            <?php
            $cbgimg = get_sub_field('co_bg_img');
            ?>
            <section class="container-fluid sec_2_home mobile_gradient relative_pos"
                     style="background:url(<?php if (!empty($cbgimg)):echo $cbgimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 p_t_40 p_b_40 m_b_100 flex_col">
                            <?php
                            if (have_rows('counter')):
                                while (have_rows('counter')) : the_row(); ?>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="counters_box">
                                            <h5><?php the_sub_field('cotitle'); ?></h5>
                                            <h2><?php the_sub_field('cono'); ?></h2>
                                            <p><?php the_sub_field('cotext'); ?></p>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'title_content_img'): ?>
            <?php
            $tcbgimg = get_sub_field('tci_img');
            ?>
            <section class="container-fluid sec_3_home relative_pos gradient_overlay desktop_show"
                     style="background:url(<?php if (!empty($tcbgimg)):echo $tcbgimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 p_t_40 p_b_40">
                            <div class="col-sm-5 col-sm-offset-7 white_about">
                                <h2><?php the_sub_field('tci_title'); ?>
                                    <span><?php the_sub_field('tcis_title'); ?></span></h2>
                                <p><?php the_sub_field('tci_content'); ?></p>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'title_right_img_with_step'): ?>
            <section class="container-fluid sec_4_home relative_pos  ">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 flex_col align_center ">
                            <div class="col-md-12 text-center title_text ">
                                <h3><?php the_sub_field('triws_title'); ?></h3>
                            </div>
                            <div class="col-md-4 col-sm-6">
                                <?php
                                $i = 0;
                                if (have_rows('triws_setp')):
                                    while (have_rows('triws_setp')) : the_row();
                                        $i++; ?>
                                        <div class="step_box">
                                            <div class="step_num">0<?php echo $i; ?></div>
                                            <div>
                                                <h2><?php the_sub_field('trtitle'); ?></h2>
                                                <p><?php the_sub_field('trcontent'); ?></p>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata();
                                ?>
                            </div>
                            <div class="col-md-8  col-sm-6">
                                <img src="<?php the_sub_field('triws_img'); ?>" class="img-responsive desktop_show"/>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'mobil_show_content_bg_img'): ?>
            <?php
            $mcbgimg = get_sub_field('mscbi_img');
            ?>

            <section class="container-fluid sec_3_home relative_pos gradient_overlay mobile_show"
                     style="background:url(<?php if (!empty($mcbgimg)):echo $mcbgimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 p_t_40 p_b_40">
                            <div class="col-sm-5 col-sm-offset-7 white_about">
                                <h2><?php the_sub_field('mscbi_title'); ?>
                                    <span><?php the_sub_field('mscbis_title'); ?></span></h2>
                                <p><?php the_sub_field('mscbi_content'); ?></p>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'content_with_bg_img'): ?>
            <?php
            $ccbgimg = get_sub_field('ccbg_img');
            ?>
            <section class="container-fluid sec_5_home relative_pos gradient_overlay2 mobile_white"
                     style="background:url(<?php if (!empty($ccbgimg)):echo $ccbgimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 flex_col align_center ">
                            <div class="col-md-12 text-center title_text ">
                                <h5><?php the_sub_field('cconent'); ?></h5>
                            </div>

                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'form_sections'): ?>
            <section class="container-fluid sec_5_home relative_pos   ">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 p_t_80    flex_col align_center ">
                            <div class="col-md-6 col-md-offset-3 col-xs-12 col-sm-8 col-sm-offset-2 ">
                                <div class="contact_box">
                                    <h3><?php the_sub_field('fstitle'); ?></h3>
                                    <p><?php the_sub_field('fss_title'); ?></p>
                                    <?php
                                    $shortcode = get_sub_field('fsshortcode');
                                    echo do_shortcode($shortcode);
                                    ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'title_with_content'): ?>
            <?php
            $twimg = get_sub_field('twc_bg_img');
            ?>
            <section class="container-fluid sec_2_fin relative_pos   mobile_gradient  "
                     style="background:url(<?php if (!empty($twimg)):echo $twimg['url']; endif; ?>) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 p_t_40 p_b_60 ">
                            <div class="col-lg-12 col-md-12 title_text  text-center">
                                <h3><?php the_sub_field('twc_title'); ?></h3>
                                <h5><?php the_sub_field('twc_content'); ?></h5>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == '4box_sections'): ?>
            <section class="container-fluid sec_2_fin relative_pos  desktop_show ">
                <div class="row">
                    <div class="container">
                        <div class="row   p_t_40 p_b_40 m_b_100 flex_col">
                            <?php
                            if (have_rows('box')):
                                while (have_rows('box')) : the_row(); ?>
                                    <div class="col-md-3 col-sm-6">
                                        <div class="ope_box">
                                            <img src="<?php the_sub_field('bicon'); ?>" class="icon_img"/>
                                            <h2><?php the_sub_field('btitle'); ?></h2>
                                            <p><?php the_sub_field('bcontent'); ?></p>
                                            <a href="<?php the_sub_field('b_btn_link'); ?>" class="btn btn-primary">Apply
                                                Now</a>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'mobile_4box_sections'): ?>
            <section class="container-fluid sec_2_fin relative_pos  mobile_show ">
                <div class="row">
                    <div class="container">
                        <div class="row   p_t_40 p_b_40 m_b_100 flex_col">
                            <div class="owl-carousel" id="mobile_services_slider">
                                <?php
                                if (have_rows('box')):
                                    while (have_rows('box')) : the_row(); ?>
                                        <div class="item">
                                            <div class="ope_box">
                                                <img src="<?php the_sub_field('bicon'); ?>" class="icon_img"/>
                                                <h2><?php the_sub_field('btitle'); ?></h2>
                                                <p><?php the_sub_field('bcontent'); ?></p>
                                                <a href="<?php the_sub_field('b_btn_link'); ?>" class="btn btn-primary">Apply
                                                    Now</a>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata();
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'title_content_button'): ?>
            <section class="container-fluid sec_3_fin relative_pos      ">
                <div class="row">
                    <div class="container">
                        <div class="row   m_b_100   p_b_60  ">
                            <div class="col-lg-12 col-md-12 title_text  text-center">
                                <h3><?php the_sub_field('tcb_title'); ?></h3>
                                <h5><?php the_sub_field('tcb_content'); ?></h5>
                                <div class="check_boxess">
                                    <?php
                                    if (have_rows('tcb_text')):
                                        while (have_rows('tcb_text')) : the_row(); ?>
                                            <div>
                                                <img src="<?php echo get_template_directory_uri(); ?>/images/check.png"/> <?php the_sub_field('tttext'); ?>
                                            </div>
                                        <?php endwhile;
                                    endif;
                                    wp_reset_postdata();
                                    ?>
                                </div>
                                <?php
                                $btntext = get_sub_field('tcb_btn_text');
                                $btnlink = get_sub_field('tcb_btn_link');
                                if (!empty($btnlink) && !empty($btntext)):
                                    ?>
                                    <a href="<?php echo $btnlink; ?>"
                                       class="btn btn-primary"><?php echo $btntext; ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'bule_title_button'): ?>
            <section class="container-fluid sec_4_fin relative_pos        " style="background:#316CDD">
                <div class="row">
                    <div class="container">
                        <div class="row   m_b_100   p_b_20  m_t_100 ">
                            <div class="col-lg-12 col-md-12 title_text  text-center text_white">
                                <h3><?php the_sub_field('btb_title'); ?></h3>
                                <?php
                                $bbtntext = get_sub_field('btb_btn_text');
                                $bbtnlink = get_sub_field('btb_btn_link');
                                if (!empty($bbtnlink) && !empty($bbtntext)):
                                    ?>
                                    <a href="<?php echo $bbtnlink; ?>"
                                       class="btn btn-primary m_t_20"><?php echo $bbtntext; ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <div class="p_t_100 p_b_100"></div>
        <?php elseif (get_row_layout() == 'title_content_box_sections'): ?>
            <section class="container-fluid sec_3_max gradient_overlay3 relative_pos desktop_show"
                     style="background:url() center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 p_t_40 p_b_40 m_b_100 flex_col">
                            <?php
                            if (have_rows('content_box')):
                                while (have_rows('content_box')) : the_row(); ?>

                                    <div class="col-sm-6">
                                        <div class="services_box">
                                            <img src="<?php echo get_template_directory_uri(); ?>/images/check.png"/>
                                            <div>
                                                <h3><?php the_sub_field('cbtitle'); ?></h3>
                                                <p><?php the_sub_field('cbcontent'); ?></p>
                                            </div>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
            </section>
            <section class="container-fluid sec_3_max   relative_pos mobile_show">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 p_t_40 p_b_40 m_b_100  ">
                            <div class="owl-carousel" id="mobile_services_slider">
                                <?php
                                if (have_rows('content_box')):
                                    while (have_rows('content_box')) : the_row(); ?>
                                        <div class="item">
                                            <div class="services_box">
                                                <img src="<?php echo get_template_directory_uri(); ?>/images/check.png"/>
                                                <div>
                                                    <h3><?php the_sub_field('cbtitle'); ?></h3>
                                                    <p><?php the_sub_field('cbcontent'); ?></p>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata();
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'placeholder_sections'): ?>
            <section class="container-fluid sec_2_team relative_pos      ">
                <div class="row">
                    <div class="container">
                        <div class="row  p_t_60 m_b_100     ">
                            <div class="col-md-10 col-md-offset-1 title_text  text-center">
                                <div class="row desktop_show">
                                    <?php
                                    if (have_rows('placeholder')):
                                        while (have_rows('placeholder')) : the_row(); ?>
                                            <div class="col-md-3 col-sm-6">
                                                <div class="image_placeholder"><?php the_sub_field('ptext'); ?></div>
                                            </div>
                                        <?php endwhile;
                                    endif;
                                    wp_reset_postdata();
                                    ?>
                                </div>
                                <div class="row mobile_show">
                                    <div class="owl-carousel" id="mobile_services_slider">
                                        <?php
                                        if (have_rows('placeholder')):
                                            while (have_rows('placeholder')) : the_row(); ?>
                                                <div class="item">
                                                    <div class="image_placeholder"><?php the_sub_field('ptext'); ?></div>
                                                </div>
                                            <?php endwhile;
                                        endif;
                                        wp_reset_postdata();
                                        ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'icon_title_content_with_bg'): ?>
            <section class="container-fluid sec_3_team gradient_overlay4 relative_pos   mobile_white  ">
                <div class="row">
                    <div class="container">
                        <div class="row   p_t_40 p_b_40 m_t_100 m_b_100 flex_col spacing_top_zero">
                            <div class="col-md-7">
                                <?php
                                if (have_rows('icon_title_text')):
                                    while (have_rows('icon_title_text')) : the_row(); ?>
                                        <div class="box_flex">
                                            <span><img src="<?php the_sub_field('it_icon'); ?>"/></span>
                                            <div>
                                                <h4><?php the_sub_field('it_title'); ?></h4>
                                                <p><?php the_sub_field('it_content'); ?></p>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata();
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'content_with_4section'): ?>
<section class="container-fluid sec_4_team relative_pos  mobile_gradient2    "   >
			<div class="row">
				<div class="container">
					<div class="row      m_t_100   p_b_60  ">
						<div class="col-lg-12 col-md-12 title_text full_w text-center">
							<h3><?php the_sub_field('cstitle'); ?></h3>
							<h5 class="desktop_show"><?php the_sub_field('cscontent'); ?></h5>
							 
						</div>
					</div>
				</div>
			</div>
		</section>
            <section class="container-fluid sec_5_team relative_pos      ">
                <div class="row desktop_show">
                    <div class="container">
                        <div class="row   m_b_100  m_t_50   p_b_60 flex_col ">
                            <?php
                            if (have_rows('4section')):
                                while (have_rows('4section')) : the_row(); ?>
                                    <div class="col-md-6 col-sm-6">
                                        <div class="icon_box">
                                            <img src="<?php the_sub_field('ssicon'); ?>"/>
                                            <h3><?php the_sub_field('sstitle'); ?></h3>
                                            <p><?php the_sub_field('sscontent'); ?></p>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
                <div class="row mobile_show">
                    <div class="container">
                        <div class="row   m_t_100 m_b_100 flex_col ">
                            <div class="owl-carousel" id="mobile_services_slider2">
                                <?php
                                if (have_rows('4section')):
                                    while (have_rows('4section')) : the_row(); ?>
                                        <div class="item">
                                            <div class="icon_box">
                                                <span><img src="<?php the_sub_field('ssicon'); ?>"/></span>
                                                <h3><?php the_sub_field('sstitle'); ?></h3>
                                                <p><?php the_sub_field('sscontent'); ?></p>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata(); ?>

                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'how_work_setp_bg'): ?>
            <section class="container-fluid sec_4_home relative_pos gradient_overlay4  mobile_white ">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_100 m_b_100 flex_col   spacing_top_zero ">

                            <div class="col-md-4 col-sm-6">
                                <div class="title_text2 m_b_30">
                                    <h2><?php the_sub_field('hws_title'); ?></h2>
                                </div>
                                <div class="desktop_show">
                                    <?php
                                    $i = 0;
                                    if (have_rows('hws_setp')):
                                        while (have_rows('hws_setp')) : the_row();
                                            $i++; ?>
                                            <div class="step_box white_text">
                                                <div class="step_num">0<?php echo $i; ?></div>
                                                <div>
                                                    <h2><?php the_sub_field('htitle'); ?></h2>
                                                    <p><?php the_sub_field('hcontent'); ?></p>
                                                </div>
                                            </div>
                                        <?php endwhile;
                                    endif;
                                    wp_reset_postdata();
                                    ?>

                                </div>
                                <div class="mobile_show p_t_100">
                                    <img src="<?php the_sub_field('hwsm_img'); ?>"
                                         class="img-responsive mobile_show img_circle"/>
                                    <?php
                                    $j = 0;
                                    if (have_rows('hws_setp')):
                                        while (have_rows('hws_setp')) : the_row();
                                            $j++; ?>
                                            <div class="step_box <?php if ($j == 1):echo 'p_t_100';endif; ?> ">
                                                <div class="step_num">0<?php echo $j; ?></div>
                                                <div>
                                                    <h2><?php the_sub_field('htitle'); ?></h2>
                                                    <p><?php the_sub_field('hcontent'); ?></p>
                                                </div>
                                            </div>
                                        <?php endwhile;
                                    endif;
                                    wp_reset_postdata();
                                    ?>
                                </div>

                            </div>
                            <div class="col-md-8  col-sm-6">
                                <img src="<?php the_sub_field('hwsd_img'); ?>"
                                     class="img-responsive desktop_show img_circle"/>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'inner_hero'): ?>
            <?php
            $ibgimg = get_sub_field('ih_bg_img'); ?>
            <section class="container-fluid banner_section sec_1_fin"
                     style="background:url(<?php if (!empty($ibgimg)):echo $ibgimg['url'];endif; ?>)) center center / cover no-repeat;">
                <div class="row">
                    <div class="container">
                        <div class="row">
                            <div class="col-sm-8">
                                <div class="banner_text">
                                    <h2><?php the_sub_field('ih_title'); ?> <br/>
                                        <?php the_sub_field('ihs_title'); ?></h2>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'content_right_img'): ?>
            <section class="container-fluid sec_2_promise relative_pos      ">
                <img src="<?php the_sub_field('cri_img'); ?>" class="black_img desktop_show"/>
                <img src="<?php the_sub_field('crim_img'); ?>" class="black_img mobile_show"/>
                <div class="row">
                    <div class="container">
                        <div class="row     ">
                            <div class="col-lg-7 col-sm-7 p_t_80 p_b_80 title_text  text-left">
                                <?php the_sub_field('cri_content'); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == '3icon_section'): ?>
            <section class="container-fluid">
                <div class="row">
                    <div class="container">
                        <div class="row m_t_80 m_b_80 spacing_top_zero">
                            <?php
                            if (have_rows('3section')):
                                while (have_rows('3section')) : the_row(); ?>
                                    <div class="col-sm-4">
                                        <div class="counters">
                                            <img src="<?php the_sub_field('sicon'); ?>"/>
                                            <p><?php the_sub_field('stitle'); ?></p>
                                            <h2><?php the_sub_field('sno'); ?></h2>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == '2sections'): ?>
            <section class="container-fluid sec_3_promise relative_pos      ">
                <div class="row">
                    <div class="container">
                        <div class="row  p_t_60 m_b_100     ">
                            <div class="title_text m_b_60 col-md-12 text-center">
                                <h3><?php the_sub_field('2stitle'); ?></h3>
                            </div>
                            <?php
                            if (have_rows('2section')):
                                while (have_rows('2section')) : the_row(); ?>
                                    <div class="col-sm-6">
                                        <div class="expertise_box">
                                            <div class="team_img"><!--<img src="#" />--></div>
                                            <h2><?php the_sub_field('stitle'); ?>
                                                <span><?php the_sub_field('sub_title'); ?></span></h2>
                                            <p><?php the_sub_field('content'); ?></p>
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata(); ?>

                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == 'title_content'): ?>
            <section class="container-fluid sec_4_promise mobile_gradient3 relative_pos       ">
                <div class="row">
                    <div class="container">
                        <div class="row      m_t_60   p_b_60 m_b_100  ">
                            <div class="col-lg-12 col-md-12 title_text full_w text-center">
                                <h3><?php the_sub_field('tctitle'); ?></h3>
                                <h5><?php the_sub_field('tccontent'); ?></h5>

                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php elseif (get_row_layout() == '3sections'): ?>
            <section class="container-fluid sec_5_team relative_pos      ">
                <div class="row  desktop_show">
                    <div class="container">
                        <div class="row            flex_col ">
                            <?php
                            if (have_rows('section_box')):
                                while (have_rows('section_box')) :
                                    the_row(); ?>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="col_box">
                                            <img src="<?php the_sub_field('sb_icon'); ?>" class="col_s"/>
                                            <h2><?php the_sub_field('sb_title'); ?><br/><?php the_sub_field('sbs_title'); ?></h2>

                                            <p><?php the_sub_field('email_id'); ?></p>
                                            <?php
                                                $btntext1=get_sub_field('button_text1');
                                                $btnlink1=get_sub_field('button_link1');
                                                if(!empty($btnlink1) && !empty($btntext1)):
                                            ?>
                                            <a href="<?php echo $btnlink1; ?>" class="btn btn-primary"><?php echo $btntext1; ?></a>
                                            <?php endif; ?>

                                            <p><?php the_sub_field('phone_no'); ?></p>
                                            <?php
                                            $btntext2=get_sub_field('button_text2');
                                            $btnlink2=get_sub_field('button_link2');
                                            if(!empty($btnlink2) && !empty($btntext2)):
                                                ?>
                                                <a href="<?php echo $btnlink2; ?>" class="btn btn-primary"><?php echo $btntext2; ?></a>
                                            <?php endif; ?>
                                           
                                        </div>
                                    </div>
                                <?php endwhile;
                            endif;
                            wp_reset_postdata();
                            ?>
                        </div>
                    </div>
                </div>
                <div class="row  mobile_show">
                    <div class="container">
                        <div class="row m_t_100 p_t_100  flex_col ">
                            <div class="owl-carousel" id="mobile_services_slider2">
                                <?php
                                if (have_rows('section_box')):
                                    while (have_rows('section_box')) : the_row(); ?>
                                        <div class="item">
                                            <div class="col_box">
                                                <img src="<?php the_sub_field('sbm_icon'); ?>" class="col_s"/>
                                                <h2><?php the_sub_field('sb_title'); ?><br/><?php the_sub_field('sbs_title'); ?></h2>

                                                <p><?php the_sub_field('email_id'); ?></p>
                                                <?php
                                                $btntext1=get_sub_field('button_text1');
                                                $btnlink1=get_sub_field('button_link1');
                                                if(!empty($btnlink1) && !empty($btntext1)):
                                                    ?>
                                                    <a href="<?php echo $btnlink1; ?>" class="btn btn-primary"><?php echo $btntext1; ?></a>
                                                <?php endif; ?>

                                                <p><?php the_sub_field('phone_no'); ?></p>
                                                <?php
                                                $btntext2=get_sub_field('button_text2');
                                                $btnlink2=get_sub_field('button_link2');
                                                if(!empty($btnlink2) && !empty($btntext2)):
                                                    ?>
                                                    <a href="<?php echo $btnlink2; ?>" class="btn btn-primary"><?php echo $btntext2; ?></a>
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    <?php endwhile;
                                endif;
                                wp_reset_postdata();
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
<?php elseif (get_row_layout() == 'full_title_content_bg_img'): ?>
<?php
	$bgimg=get_sub_field('ftcbg_img');
?>
<section class="container-fluid sec_2_team relative_pos   mobile_gradient  "  style="background:url(<?php if(!empty($bgimg)):echo $bgimg['url']; endif; ?>) center center / cover no-repeat;">
			<div class="row">
				<div class="container">
					<div class="row m_t_100   p_t_60   m_b_sm_80">
						<div class="col-lg-12 col-md-12 title_text  text-center">
							<h3><?php the_sub_field('ftc_title'); ?></h3>
							<h5><?php the_sub_field('ftc_content'); ?></h5>
						</div>
					</div>
				</div>
			</div>
		</section>
        <?php
        endif;
    endwhile;
endif;
?>
