<?php
    $style = isset($args['style']) ? $args['style'] : '';
?>

<section class="section <?php echo $style; ?>">
    <div class="container">
        <div class="text-cont slide-down">
            <h2 class="section-title"><?php echo get_field('cycle_count_heading'); ?></h2>
			<p class="section-content mt-3 mb-0">
			<?php echo get_field('cycle_count_description'); ?>
			</p>
        </div>
        <div class="row align-items-lg-center">
            <div class="col-lg-6">
                <div class="img-conten slide-right">
                    <img src="<?php echo get_field('cycle_count_image'); ?>" alt="<?php echo get_field('cycle_count_heading'); ?>" class="img-fluid" loading="lazy">
                </div>
            </div>
            <div class="col-lg-5 offset-lg-1">
                <div class="text-content slide-left">
                    <h3 class="section-innertitle"><?php echo get_field('cycle_count_sub_heading'); ?></h3>
                    <?php $cycle_count_features = get_field('cycle_count_features'); ?>
                    <?php if ( is_array($cycle_count_features) && count($cycle_count_features) ) : ?>
                        <ul>
                            <?php foreach ($cycle_count_features as $feature) : ?>
                                <li><?php echo $feature['item']; ?></li>
                            <?php endforeach; ?>
                        </ul>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</section>