<?php 
/* Template Name: Services Page Template */ 
get_header(); 
include get_template_directory() . '/inc/menus/menu.php'; 
?>
<main role="main">
    <?php
    // Get the featured image URL
    $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?>
    <section class="product-header" style="background: linear-gradient(to right,rgba(4, 0, 11, 0.696) 0,rgba(4, 3, 36, 0.457) 99%,rgba(11, 20, 45, 0.654)), url('<?php echo $backgroundImg[0]; ?>') no-repeat;background-size: cover;background-position: center center;background-blend-mode:none; ">
        <div class="overlay">
        <div class="container page-title">
                <div class="row align-items-center">
                    <div class="col-lg-12 align-self-center" data-aos="fade-up"> 
                        <h1 class="entry-title"><?php the_title(); ?></h1>
                        <p class="excerpt"><?php the_excerpt(); ?></p>
                        <?php custom_breadcrumb(); ?>
                    </div>
                </div>
        </div>
        </div>
    </section><!-- Header Section !-->
    <section>
        <div class="product-page">
                    <?php if (have_posts()): while (have_posts()) : the_post(); ?>
                        <!-- article -->
                        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                            <?php the_content(); ?>

                            

                        </article>
                        <!-- /article -->

                        <?php endwhile; ?>

                        <?php else: ?>

                        <!-- article -->
                        <article>

                            <h2><?php _e('Sorry, nothing to display.', 'kipya'); ?></h2>

                        </article>
                        <!-- /article -->

                        <?php endif; ?>
                        <br/>
                        <?php edit_post_link(); ?>
                   
    </section>
    <!-- /section -->
</main>
<?php get_footer(); ?>