<?php global $post;
$excerpt = get_the_content();?>
<div class="mb-5 col-12 border-bottom pb-5">
    <div class="row d-flex justify-content-center">
        <div class="col-lg-4 col-md-6 text-center ">
            <?php if (has_post_thumbnail($post->ID)) :
                $imageInfo = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
                $imageUrl = $imageInfo[0]; ?>

                <img src="<?php echo $imageUrl ?>" class="shadow rounded zoom_in_hover" alt="..." style="width: 90%">
            <?php
            else:
                ?>
                <img src="<?php echo get_site_url(); ?>/wp-content/uploads/2024/07/2023052502551c6a8ee2-slider-security-1024x541-1.jpg"
                     class="shadow rounded zoom_in_hover" alt="..." style="width: 90%">
            <?php
            endif;
            ?>

        </div>
        <div class="col-lg-8 shadow bg-light rounded p-3">
            <h3 class="fs-4 fw-bold mb-2 content-title">
                <a href="<?php the_permalink(); ?>" class="news-title"><?php echo get_the_title();?>
                </a>
            </h3>
            <h3 class="fs-6 fw-bold">
                <i class="fas fa-calendar-alt"></i>
                <?php the_time('j M, Y'); ?>
            </h3>
            <?php echo '<p class="fs-6 m-0">' . wp_trim_words($excerpt, '10') . '</p>';?>

        </div>
    </div>
</div>