<!-- About Section -->

    <div class="container">
        <p class="title-span-head">Publications</p>
        <p>The law offices of Nzamba Kitonga Advocates LLP have been established since 1980. Founded by the managing
            proprietor Mr. Nzamba Kitonga S.C, the firm began as a conveyancing practice with a corporate
            client-base
        </p>
    </div>




    <div class="container">
        <br>

        <div class="row gy-4">
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                <div class="col-lg-4">
                    <article class="mt-4 ">
                        <div class="post-img position-relative overflow-hidden">
                            <?php if (has_post_thumbnail()) : ?>
                                <img src="<?php the_post_thumbnail_url('blog-small'); ?>" class="img-fluid" alt="<?php the_title(); ?>">
                            <?php endif; ?>
                            <span class="post-date"><?php echo get_the_date('F j'); ?></span>
                        </div>

                        <div class="post-content d-flex flex-column">
                            <h3 class="post-title"><?php the_title(); ?></h3>
                            <div class="meta d-flex align-items-center">
                                <div class="d-flex align-items-center">
                                    <i class="bi bi-person"></i> <span class="ps-2"><?php $fname = get_the_author_meta('first_name'); 
                                    $lname = get_the_author_meta('last_name');
                                    echo  $fname . ' ' . $lname;
                                    ?></span>
                                </div>
                                <span class="px-3 text-black-50">/</span>
                                <div class="d-flex align-items-center">
                                    <i class="bi bi-folder2"></i> <span class="ps-2"><?php the_category(', '); ?></span>
                                </div>
                            </div>
                            <p> <?php echo wp_trim_words(get_the_excerpt(), 20, '...'); ?>                            </p>
                            <a href="<?php the_permalink(); ?>" class="readmore stretched-link"><span>Read More</span><i class="bi bi-arrow-right"></i></a>
                        </div>
                    </article>
                </div>
            <?php endwhile; else : ?>
                <p><?php esc_html_e('Sorry, no posts matched your criteria.'); ?></p>
            <?php endif; ?>
        </div>

        <div class="container -6 py-5"></div>
    </div>

