<?php
/**
 * Title: Blog Section
 * Slug: aamira/blog-section
 * Categories: header
 * Block Types: core/template-part/header
 * Description: 
 *
 * @package WordPress
 * @subpackage Aamira
 * @since Aamira 1.0
 */
?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"70px"}}},"layout":{"type":"constrained","contentSize":"1150px","wideSize":"1380px"}} -->
<div class="wp-block-group alignfull" style="padding-bottom:70px">

    <!-- Section Heading -->
    <!-- wp:group {"align":"full","style":{"border":{"radius":"2px"}},"layout":{"type":"constrained","contentSize":"1150px","wideSize":"1380px"}} -->
    <div class="wp-block-group alignfull" style="border-radius:2px">
        <!-- wp:paragraph {"align":"center","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"0"}},"elements":{"link":{"color":{"text":"#fd7e14"}}},"typography":{"fontSize":"62px"},"color":{"text":"#fd7e14"}}} -->
        <p class="has-text-align-center has-text-color has-link-color"
           style="color:#fd7e14;padding-top:var(--wp--preset--spacing--50);padding-bottom:0;font-size:62px">
            <?php esc_html_e( 'Our Blog', 'aamira' ); ?>
        </p>
        <!-- /wp:paragraph -->
    </div>
    <!-- /wp:group -->        

    <!-- Blog Query -->
    <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide","layout":{"type":"constrained","contentSize":"1150px","wideSize":"1380px"}} -->
    <div class="wp-block-query alignwide">

        <!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"bottom":"0"}}}} -->
        <div class="wp-block-columns alignwide" style="margin-bottom:0">

            <!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->

                <!-- wp:column {"style":{"color":{"text":"#000000"},"elements":{"link":{"color":{"text":"#000000"}}},"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"}},"border":{"radius":"20px","top":{"width":"0px","style":"none"},"bottom":{"width":"0px","style":"none"},"left":{"width":"0px","style":"none"}}}} -->
                <div class="wp-block-column has-text-color has-link-color" 
                     style="border-radius:20px;border-top:0 none;border-bottom:0 none;border-left:0 none;
                            color:#000000;padding:2em">

                    <!-- wp:group {"backgroundColor":"base","layout":{"type":"constrained"}} -->
                    <div class="wp-block-group has-base-background-color has-background">

                        <!-- Featured Image -->
                        <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2","sizeSlug":"medium","linkTarget":"_blank","align":"full"} /-->

                        <!-- Post Title -->
                        <!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontStyle":"normal","fontWeight":"300","fontSize":"24px"},"color":{"text":"#364d59"},"elements":{"link":{"color":{"text":"#364d59"}}},"spacing":{"padding":{"top":"20px","right":"20px","bottom":"0px","left":"20px"}}}} /-->

                        <!-- Author + Date + Category -->
                        <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
                        <div class="wp-block-group">

                            <!-- wp:post-author {"showAvatar":false,"showBio":false,"isLink":true,"style":{"spacing":{"padding":{"left":"20px"}},"color":{"text":"#b3b3b3"},"elements":{"link":{"color":{"text":"#b3b3b3"}}}}} /-->

                            <!-- wp:post-date {"isLink":true,"style":{"spacing":{"padding":{"left":"20px"}},"color":{"text":"#b3b3b3"},"elements":{"link":{"color":{"text":"#b3b3b3"}}}}} /-->

                            <!-- wp:post-terms {"term":"category","style":{"spacing":{"padding":{"left":"20px"}},"color":{"text":"#fd7e14"},"elements":{"link":{"color":{"text":"#fd7e14"}}}}} /-->
                        </div>
                        <!-- /wp:group -->

                        <!-- Excerpt -->
                        <!-- wp:post-excerpt {"excerptLength":30,"style":{"color":{"text":"#b3b3b3"},"elements":{"link":{"color":{"text":"#b3b3b3"}}},"typography":{"fontStyle":"normal","fontWeight":"100"},"spacing":{"padding":{"right":"20px","bottom":"20px","left":"20px"}}},"fontSize":"medium"} /-->

                        <!-- Read More -->
                        <!-- wp:read-more {"content":"<?php esc_html_e( 'Continue Reading...', 'aamira' ); ?>","linkTarget":"_blank","style":{"spacing":{"padding":{"left":"20px"}},"color":{"text":"#fd7e14"},"elements":{"link":{"color":{"text":"#fd7e14"}}}},"fontSize":"medium"} /-->

                    </div>
                    <!-- /wp:group -->

                </div>
                <!-- /wp:column -->

            <!-- /wp:post-template -->

        </div>
        <!-- /wp:columns -->

    </div>
    <!-- /wp:query -->

</div>
<!-- /wp:group -->
