<?php
    $style       = isset($args['style']) ? $args['style'] : '';
    $heading     = get_field('integration_banner_heading');
    $description = get_field('integration_banner_description');
    $image_url   = get_field('integration_banner_image');
    $cta_label   = get_field('integration_banner_cta_label');
    $cta_link    = get_field('integration_banner_cta_link');
?>


<section class="section banner no-lazy <?php echo $style; ?>">
    <div class="container">
        <div class="row align-items-lg-center">
            <div class="col-lg-12">
                <div class="row g-0">
                    <div class="col-lg-12 mx-auto">
                        <div class="text-cont slide-right">
                            <h1 class="banner-heading text-center mb-0"><?php echo $heading; ?></h1>
                            <p class="banner-content text-center"><?php echo $description; ?></p>
                            <div class="banner-btns text-center mt-0">
                                <a href="<?php echo $cta_link; ?>" class="primary animated-btn">
                                    <?php echo $cta_label; ?>
                                    <svg class="ms-1" width="11" height="16" viewBox="0 0 11 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                                        <path d="M1.3125 1L9.3125 8L1.3125 15" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                                    </svg>                                
                                </a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- logos wrapper -->
                <?php if( have_rows('integration_banner_logos') ): 
                    $i = 1;
                    ?>
                    <div class="main-integration-logos-wrapper">
                    <?php while( have_rows('integration_banner_logos') ): the_row();?>
                        <div class="company-logo-wrapper <?php echo get_sub_field('integration_banner_logo_class_name')?>">
                            <img src="<?php echo get_sub_field('integration_banner_logo_image');?>" alt="<?php echo get_sub_field('integration_banner_logo_class_alt')?>" class="img-fluid" loading="lazy">
                        </div>
                    <?php 
                    $i++;
                    endwhile; ?>
                    </div>
                <?php endif; ?>

            </div>
        </div>
    </div>
</section>