<?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('outbound_operations_heading'); ?></h2>
			<p class="section-content mt-3 mb-0">
                <?php echo get_field('outbound_operations_description'); ?>
			</p>
        </div>
    </div>
    <?php $outbound_operations_cards = get_field('outbound_operations_cards'); ?>
    <?php if ( is_array($outbound_operations_cards) && count($outbound_operations_cards) ) : ?>
        <div class="outbound-bg">
            <div class="container">
                <div class="row">
                    <div class="col-lg-7">
                        <ul class="slide-right">
                            <?php foreach ($outbound_operations_cards as $card) : ?>
                                <li>
                                    <div class="card">
                                        <div class="img-content">
                                            <img src="<?php echo get_template_directory_uri(); ?>/assets/img/features/icon6.webp" alt="icon" class="img-fluid" loading="lazy">
                                        </div>
                                        <div class="text-content">
                                            <h3><?php echo $card['heading']; ?></h3>
                                            <p><?php echo $card['description']; ?></p>
                                        </div>
                                    </div>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                    <div class="col-lg-5">
                        <div class="img-cont slide-left">
                            <img src="<?php echo get_field('outbound_operations_image'); ?>" alt="<?php echo get_field('outbound_operations_heading'); ?>" class="img-fluid" loading="lazy">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php endif; ?>
</section>