/*
Theme Name: BBIP v2
Author: BBIP
Description: Your description goes here
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

<?php
/**
 * Template Name: Default Page
 * Template Post Type: page
 */
get_header();

      $block = '
<!-- wp:group {"align":"full","className":"header-page","style":{"background":{"backgroundImage":{"url":"https://staging.balaibahasaperth.org/wp-content/uploads/2025/11/bg-loop.avif","id":51433,"source":"file","title":"bg-loop"},"backgroundSize":"cover"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group header-page">
    <!-- wp:group {"align":"full","style":{"color":{"background":"#ba3a32e6"},"spacing":{"padding":{"top":"80px","right":"80px","bottom":"80px","left":"80px"}}},"layout":{"type":"constrained"}} -->
    <div class="wp-block-group has-background" style="background-color:#ba3a32e6;text-align:center;padding-top:80px;padding-right:80px;padding-bottom:80px;padding-left:80px;max-width:100vw;width:100%;">
        <!-- wp:post-title {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"typography":{"fontStyle":"normal","fontWeight":"600"}},"textColor":"white"} /-->
    </div>
    <!-- /wp:group -->
</div>
<!-- /wp:group -->
        ';

        echo do_blocks( $block );


echo '<style>
.page-content {
  padding: 5rem; /* default desktop */
}

@media (max-width: 768px) {
  .page-content {
    padding: 2rem; /* tablet */
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 1rem; /* mobile */
  }
}
</style>';

        echo '<main class="page-content">';

        while ( have_posts() ) {
            the_post();
            the_content();
        }

        echo '</main>';

        get_footer();