<div class="section bg-sec">
    <div class="container">
        <div class="row align-items-center g-3 mb-4 justify-content-between">
            <div class="col-lg-9 col-12">
                <div class="head-sec text-start m-0 pe-md-5">
                    <div class="tt">Clients’ <span> Testimonials </span></div>
                    <p>Our customers’ satisfaction speaks for itself. From achieving fitness goals to experiencing healthier skin and stronger hair, the positive impact of our products is undeniable. Hear from those who’ve transformed their wellness journeys with us — their success stories inspire us to keep delivering high-quality supplements that truly make a difference in your life.</p>
                </div>
            </div>
            <div class="col-lg-3 col-12 text-lg-end">
                <img src="<?= site_url; ?>/designer/images/icon/google-icon.png" alt="Average Ratings" title="Average Ratings">
            </div>
        </div>
        <div class="swiper_wrap">
            <div class="swiper testiSlider">
                <div class="swiper-wrapper">
                    <?php
                    $i = 1;
                    $testimonial2 = mysqli_query($GLOBALS['dbconn'], "select person_city, title, description, image from safe_business_tbl where status='Y'");
                    while ($testimonial_res2 = mysqli_fetch_assoc($testimonial2)) {
                        $user_name = $testimonial_res2['title'];
                        $fstchar = substr($user_name, 0, 1);
                    ?>
                        <div class="swiper-slide">
                            <div class="tm-testi-slide-1 tm-testi-m30">
                                <div class="tm-testi-logo">
                                    <div class="tm-trustpilot-logo">
                                        <img loading="lazy" src="<?= site_url; ?>/designer/images/icon/google.png" alt="Google" title="Google">
                                    </div>
                                    <div class="tm-star-ratings">
                                        <img loading="lazy" src="<?= site_url; ?>/designer/images/icon/google-rating.png" alt="Rating Star" title="Rating Star">
                                    </div>
                                </div>
                                <p><?= str_ireplace('{companyName}', $admin_res['companyName'], $testimonial_res2['description']); ?></p>
                                <div class="tm-slide-h5">
                                    <span><img src="<?= site_url; ?>/designer/images/icon/guest.png" alt="<?= $testimonial_res2['title']; ?>" title="<?= $testimonial_res2['title']; ?>"></span> <?= $testimonial_res2['title']; ?>
                                </div>
                            </div>
                        </div>
                    <?php $i++;
                    } ?>
                </div>
            </div>
            <button class="swiper-next"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9 5 7 7-7 7"></path></svg></button>
            <button class="swiper-prev"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15 19-7-7 7-7"></path></svg></button>
        </div>
    </div>
</div>