@php
    $title = get_the_title($post_id);
    $thumbnail_url = get_the_post_thumbnail_url($post_id, 'medium');
    $date = get_the_date('j F Y', $post_id);
@endphp

<div class="col-xs-12 col-sm-12 col-md-4">
    
        <div class="news-card flex">
            <a href="{{ get_the_permalink($post_id) }}">
                <div class="news-card__photo">
                    <img src="{{ $thumbnail_url }}" alt="{{ $title }}" loading="lazy">
                </div>
                <div class="news-card__text flex gap">
                    <p class="news-card__date">{{ $date }}</p>
                    <h4>{{ $title }}</h4>
                    <div class="news-card_learn-more">
                        <p>Learn more</p>
                        @include('elements.svg.arrow-icon')
                    </div>
                </div>
            </a>
        </div>
    
</div>



