<?php
/**
 * Title: Latest News
 * Slug: educational-blocks/latest-news
 * Categories: educational-blocks, latest-news
 */
?>

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"base","className":"blog-section","layout":{"type":"constrained","contentSize":"75%"}} -->
<div class="wp-block-group blog-section has-base-background-color has-background" style="margin-top:0px;margin-bottom:0px"><!-- wp:spacer {"height":"19px"} -->
<div style="height:19px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"center","className":"section-heading","fontFamily":"roboto-slab"} -->
<h2 class="wp-block-heading has-text-align-center section-heading has-roboto-slab-font-family"><?php esc_html_e('Latest News','educational-blocks'); ?></h2>
<!-- /wp:heading -->

<!-- wp:spacer {"height":"28px"} -->
<div style="height:28px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:query {"queryId":36,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
<div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->
<!-- wp:group {"style":{"border":{"color":"#ced6db","width":"1px"},"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"className":"blog-box wow swing","layout":{"type":"default"}} -->
<div class="wp-block-group blog-box wow swing has-border-color" style="border-color:#ced6db;border-width:1px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:post-featured-image /-->

<!-- wp:group {"style":{"color":{"background":"#efefef"},"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|30","right":"var:preset|spacing|30"}}},"className":"blog-info","layout":{"type":"constrained"}} -->
<div class="wp-block-group blog-info has-background" style="background-color:#efefef;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--30)"><!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
<div class="wp-block-group"><!-- wp:image {"id":533,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() . '/images/date.png'); ?>" alt="" class="wp-image-533"/></figure>
<!-- /wp:image -->

<!-- wp:post-date {"format":"M j, Y","style":{"elements":{"link":{"color":{"text":"#682b2b"}}},"typography":{"fontStyle":"normal","fontWeight":"500"},"color":{"text":"#682b2b"}},"fontSize":"extra-small","fontFamily":"poppins"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:image {"id":534,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() . '/images/admin.png'); ?>" alt="" class="wp-image-534"/></figure>
<!-- /wp:image -->

<!-- wp:post-author-name {"style":{"elements":{"link":{"color":{"text":"#714853"}}},"typography":{"fontStyle":"normal","fontWeight":"500","textTransform":"capitalize"},"color":{"text":"#714853"}},"fontSize":"extra-small","fontFamily":"poppins"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:post-title {"level":5,"style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"fontFamily":"roboto-slab"} /-->

<!-- wp:post-excerpt {"excerptLength":15,"style":{"spacing":{"margin":{"top":"var:preset|spacing|30","bottom":"0"},"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|30","right":"var:preset|spacing|30"}},"color":{"background":"#efefef"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background" style="background-color:#efefef;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--30)"><!-- wp:read-more {"content":"Read More","style":{"elements":{"link":{"color":{"text":"var:preset|color|black"}}},"typography":{"fontStyle":"normal","fontWeight":"700"}},"textColor":"black","fontSize":"medium"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-no-results -->
<!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when a query returns no results."} -->
<p class="has-text-align-center"><?php esc_html_e('There is no post found','educational-blocks'); ?></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->