<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package jcconsulting
 */

get_header();
?>
<section class="container-fluid    "   >
	<div class="row m_b_90 m_t_90">
		<div class="container">
		<div class="row flex_col   align_center      ">
				 <div class="title_text3   col-md-6 col-sm-6 col-xs-12">
					<h3><?php
					/* translators: %s: search query. */
					printf( esc_html__( 'Search Results for: %s', 'jcconsulting' ), '<span>' . get_search_query() . '</span>' );
					?></h3>
				 </div>
				  
			</div>
			<?php if ( have_posts() ) : ?>
			<div class="row m_t_20">
				<div class="col-md-8 col-sm-12 col-xs-12">
				<?php while ( have_posts() ) : the_post(); ?>
				<div class="blog_boxes row m0 p_t_20 p_b_20">
						
						<div class="col-md-12  col-sm-12 col-xs-12 blog_right">
							<h2><?php the_title(); ?></h2>
							
							
							<div class="blog_desc">
								<?php the_excerpt(); ?>
							</div>
							<a href="<?php the_permalink(); ?>" class="read_more"><img src="<?php echo get_stylesheet_directory_uri();?>/images/caret_left.png" /> <span>Read More</span></a>
							
						</div>
					</div>
			<?php endwhile;?>
					
					
					
				</div>
				<div class="col-md-4 col-sm-12 col-xs-12">
				<?php echo get_sidebar(); ?>
				
				</div>
				<?php
				else : ?>
				<div class="row flex_col   align_center      ">
				 <div class="title_text3   col-md-6 col-sm-6 col-xs-12">
					<h3>Nothing Found </h3>
				 </div>
				 
				  
			</div>
			<?php 

		endif;
		?>
				
				 
			</div>
			
		</div>
	</div>
	 
</section> 
<?php 
get_footer();
