<section class="one-col-cta <?php the_sub_field('additional_section_class'); ?> <?php the_sub_field('section_position'); ?>">
<div class="wrapper wrapper--inner bg-gray">
    <?php if (get_sub_field('section_heading')) : ?>
        <h2 class="heading">
            <?php echo esc_html(get_sub_field('section_heading')); ?>
        </h2>
    <?php endif; ?>

    <?php if (get_sub_field('text')) : ?>
        <p class="text">
            <?php echo wp_kses_post(get_sub_field('text')); ?>
        </p>
    <?php endif; ?>

    <?php if (have_rows('cta_repeater')) : ?>
        <div class="cta">
            <?php while (have_rows('cta_repeater')) : the_row(); ?>
                <?php if (get_sub_field('cta') && get_sub_field('cta_text')) : ?>
                    <a href="<?php echo esc_url(get_sub_field('cta')); ?>" class="btn btn-primary" role="button" aria-label="<?php echo esc_html(get_sub_field('cta_text')); ?>">
                        <?php echo esc_html(get_sub_field('cta_text')); ?>
                    </a>
                <?php endif; ?>
            <?php endwhile; ?>
        </div>
    <?php endif; ?>
</div>
</section>
