<section class="sptb bg-white">
    <div class="container bg-style">
        <div class="row">
            <div class="col-lg-12 col-md-12 text-center">
                <div class="section-title">
                    <p class="fs-22 lead"><?php echo $heading['sub_title'] ?></p>
                    <h2 class="mt-4"> <?php echo $heading['title'] ?></h2>
                </div>
                <div class="line-with-circle">
                    <div class="line"></div>
                    <div class="circle"></div>
                </div>
            </div>
            <div class="col-xl-12 col-lg-12 col-md-12 mt-4">
                <div class="row">
                    <?php
                    $certi = [];
                    foreach ($all_course as $key => $course_certification) {
                        $certi[] = json_decode($course_certification->course_course_certification);
                    }

                    // Loop through the $certi array to display the images
                    foreach ($certi as $certifications) {
                        foreach ($certifications as $certification) {
                            echo '<div class="col-sm-4 mb-4">';
                            echo '<div class="card mb-0">';
                            echo '<img src="' . base_url($certification->image) . '" class="card-img-top" alt="' . $certification->title . '">';
                            // echo '<div class="card-body">';
                            // echo '<h5 class="card-title">' . $certification->title . '</h5>';
                            // echo '</div>';
                            echo '</div>';
                            echo '</div>';
                        }
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
</section>
