<div class="anews-recent-post-with-banner">
        <div class="container">
            <div class="row">
                <div class="col-12 col-sm-12 col-md-6 col-lg-8 col-xl-8">
                    <div class="anews-recent-post-inner">
                        <div class="section-title"><?php echo esc_html(get_theme_mod( 'anews_home_recent_post_title','News & Trends' )); ?></div>
                        <?php
                        if( true == get_theme_mod( 'anews_home_rpc_show' ) ) {
                            $p = new \WP_Query( array( 
                                'posts_per_page' => 3,
                                'post_type' => 'post',
                                'order' => esc_attr(get_theme_mod( 'anews_home_recent_post_order' )),
                                'tax_query' => array(
                                    array(
                                        'taxonomy' => 'category',
                                        'field' => 'term_id',
                                        'terms' => get_theme_mod( 'anews_home_recent_post_cat' ),
                                    )
                                ),
                            ));
                        }else{
                            $p = new \WP_Query( array( 
                                'posts_per_page' => 3,
                                'post_type' => 'post',
                                'orde' => 'ASC',
                            ));
                        }
                        ?>
                        <?php while ( $p->have_posts() ): $p->the_post();?>
                        <div class="anews-hpost-item align-items-center">
                            <?php if(has_post_thumbnail()) : ?>
                            <div class="hpost-img">
                                <a href="<?php echo esc_url(the_permalink()); ?>">
                                    <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?>
                                </a>
                            </div>
                            <?php endif; ?>
                            <div class="hpost-contents">
                                <div class="anews-home-post-meta">
                                    <ul>
                                        <?php anews_post_cat(); ?>
                                    </ul>
                                </div>
                                <h2><a href="<?php echo esc_url(the_permalink()); ?>"><?php the_title(); ?></a></h2>
                                <a href="<?php echo esc_url(the_permalink()); ?>"
                                    class="readbore"><?php esc_html_e('Read More','anews'); ?> <i
                                        class="fas fa-angle-double-right"></i></a>
                            </div>
                        </div>
                        <?php endwhile; wp_reset_query(); ?>
                        <?php if(true == get_theme_mod( 'anews_home_recent_post_link_show', true )) : ?>
                        <div class="theme-btns text-center">
                            <a href="<?php echo esc_url(get_theme_mod( 'anews_home_recent_post_link' )); ?>" class="theme-btn"><?php esc_html_e('Read More','anews'); ?> <i class="fas fa-angle-double-right"></i></a>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4">
                    <div class="anews-banner-with-follow">
                        <div class="socila-follwer">
                            <div class="section-title"><?php echo esc_html(get_theme_mod( 'anews_home_followus_title','Follow Us' )); ?></div>
                            <div class="anews-social-follower">
                                <?php foreach(get_theme_mod( 'anews_home_sfollow_settings' ) as $anews_sfillow ) : ?>
                                <a href="<?php echo esc_url($anews_sfillow['anews_home_sfollow_url']); ?>" target="_blank" class="anews-social-follower-item" style="background-color:<?php echo esc_attr($anews_sfillow['anews_home_sfollow_color']); ?>">
                                    <div class="follower-icon" style="color:<?php echo esc_attr($anews_sfillow['anews_home_sfollow_color']); ?>">
                                        <i class="fab <?php echo esc_attr($anews_sfillow['anews_home_sfollow_icon']); ?>"></i>
                                    </div>
                                    <div class="follower-text">
                                        <span><?php echo esc_html($anews_sfillow['anews_home_sfollow_number']); ?></span>
                                        <h5><?php echo esc_html($anews_sfillow['anews_home_sfollow_text']); ?></h5>
                                    </div>
                                </a>
                                <?php endforeach; ?>
                            </div>
                        </div>
                        <?php if(!empty(get_theme_mod( 'anews_home_ads2_select' ))) : ?>
                        <div class="anews-sidebar-advertisement">
                            <?php if( 'link' == get_theme_mod( 'anews_home_ads2_select', true )) { ?>
                            <a href="<?php echo esc_url(get_theme_mod( 'anews_home_ads2_link' )); ?>">
                                <img src="<?php echo esc_url(get_theme_mod('anews_home_ads2_img','')); ?>" alt="<?php esc_attr_e('anews Banner','anews') ?>">
                            </a>
                            <?php } else {
                                echo get_theme_mod('anews_home_ads2_code');
                            } 
                            ?>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>