<?php

/**
 * Title: Insurance Query Loop
 * Slug: blynex/template-insurance-query-loop
 * Categories: query
 * Block Types: core/query
 * Description: A grid of posts with featured image, title, and date in a modern layout.
 *
 * @package WordPress
 * @subpackage Blynex
 * @since Blynex 1.0
 */
?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}},"color":{"background":"#ffffff"}},"layout":{"type":"constrained","contentSize":"1400px"}} -->
<div class="wp-block-group alignfull has-background" style="background-color:#ffffff;margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
    <!-- wp:query {"queryId":1,"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
    <div class="wp-block-query">
        <!-- wp:post-template {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|60"}}} -->
        <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"default"}} -->
        <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
            <!-- wp:post-featured-image {"isLink":true,"width":"100%","style":{"border":{"radius":"0px"}}} /-->
            <!-- wp:post-title {"isLink":true,"style":{"typography":{"fontWeight":"600","fontSize":"1.38rem"},"spacing":{"margin":{"top":"15px","bottom":"5px"}}}} /-->

            <!-- wp:separator {"style":{"spacing":{"margin":{"top":"10px","bottom":"10px"}}},"backgroundColor":"accent-6"} -->
            <hr class="wp-block-separator has-text-color has-accent-6-color has-alpha-channel-opacity has-accent-6-background-color has-background" style="margin-top:10px;margin-bottom:10px" />
            <!-- /wp:separator -->

            <!-- wp:columns {"style":{"spacing":{"margin":{"top":"5px"}}}} -->
            <div class="wp-block-columns" style="margin-top:5px"><!-- wp:column {"width":"70%"} -->
                <div class="wp-block-column" style="flex-basis:70%"><!-- wp:read-more {"content":"Learn More","style":{"elements":{"link":{"color":{"text":"var:preset|color|accent-2"}}},"typography":{"fontStyle":"normal","fontWeight":"600","fontSize":"1.38rem"}},"textColor":"accent-2"} /--></div>
                <!-- /wp:column -->

                <!-- wp:column {"width":"30%"} -->
                <div class="wp-block-column" style="flex-basis:30%">
                    <!-- wp:post-date {"textAlign":"right","format":"d M Y","style":{"typography":{"fontStyle":"normal","fontWeight":"500","fontSize":"1rem"},"elements":{"link":{"color":{"text":"#666666"}}}},"textColor":"custom-gray"} /-->
                </div>
                <!-- /wp:column -->
            </div>
            <!-- /wp:columns -->
        </div>
        <!-- /wp:group -->
        <!-- /wp:post-template -->

        <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
        <!-- wp:query-pagination-previous /-->
        <!-- wp:query-pagination-numbers /-->
        <!-- wp:query-pagination-next /-->
        <!-- /wp:query-pagination -->

        <!-- wp:query-no-results -->
        <!-- wp:paragraph {"align":"center"} -->
        <p class="has-text-align-center"><?php echo esc_html__('No posts were found.', 'blynex'); ?></p>
        <!-- /wp:paragraph -->
        <!-- /wp:query-no-results -->
    </div>
    <!-- /wp:query -->
</div>
<!-- /wp:group -->