<div class="widget widget-recent-posts">
                    <h3 class="widget-title font-weight-bold"><?php esc_html_e( 'Recent Posts', 'st-laundry-services' ); ?></h3>
                    <ul class="list-unstyled">
                        <?php
                        $st_laundry_services_recent_posts = wp_get_recent_posts( array(
                            'numberposts' => 5,
                            'post_status' => 'publish'
                        ) );

                        foreach( $st_laundry_services_recent_posts as $st_laundry_services_post_item ) : ?>
                            <li class="media mb-3">
                                <a class="w-25" href="<?php echo esc_url( get_permalink($st_laundry_services_post_item['ID']) ); ?>">
                                    <?php echo get_the_post_thumbnail( $st_laundry_services_post_item['ID'], 'thumbnail', ['class' => 'mr-3 rounded'] ); ?>
                                </a>
                                <div class="media-body">
                                    <h5 class="mt-0 mb-1">
                                        <a href="<?php echo esc_url( get_permalink($st_laundry_services_post_item['ID']) ); ?>">
                                            <?php echo esc_html( $st_laundry_services_post_item['post_title'] ); ?>
                                        </a>
                                    </h5>
                                </div>
                            </li>
                        <?php endforeach; ?>

                        <?php // Removed wp_reset_query(); as it is not needed ?>
                    </ul>
                </div>