<?php include_once('include/head.php'); ?>

<body>

	<div class="main-page-wrapper">

<?php include_once('include/header.php'); ?>

	<!-- page-title-area start -->
				<div class="page-title-area text-center pt-100 pb-100 pt-lg-130 pb-lg-110"
					data-background="assets/img/bg/main-bg.png">
					<div class="container">
						<h2 class="page-title mb-15">Our Blog</h2>
						<!--<ul class="breadcrumb">-->
						<!--	<li><a href="index-2.html">Home</a></li>-->
						<!--	<li><a href="about-us.html">About US</a></li>-->
						<!--</ul>-->
					</div>
				</div>
				<!-- page-title-area end -->

<!-- ht-service-section start -->
			<section class="ht-service-section position-relative servicepics">
				<div class="ht-service-wrapper-bg">
					<div class="container">
						<div class="row text-center">
						
							<?php
							$blog = mysqli_query($conn, "SELECT * FROM `blogs` ORDER BY id DESC");
							while($rov = mysqli_fetch_array($blog))
							{
							    $name = $rov['name'];
							    $banner	 = $rov['banner'];
							    $short_description = $rov['short_description'];
							    $blog_slug = $rov['slug'];
							?>
							<div class="col-md-4 mb-4">
								<div class="white-bg service-style-one">
									<div class="service-thumb position-relative mb-15">
										<img class="w-100" src="<?php path(); ?>/admin/assets/images/blog-image/<?php echo $banner; ?>" alt="service">

									</div>
									<div class="content">
										<h4 class="service-title mb-10"><a href="<?php path(); ?>/blog/<?php echo $blog_slug; ?>"><?php echo $name; ?> </a></h4>
										<p class="para"><?php echo $short_description; ?></p>
										<a href="<?php path(); ?>/blog/<?php echo $blog_slug; ?>" style="color: #063579;">Read More</a>
									</div>
								</div>
							</div>
							<?php
							}
							?>
						</div>

					</div>
				</div>
			</section>
			<!-- ht-feedback-section end -->
<style>
    .para{
        overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
    }
</style>

<?php include_once('include/footer.php'); ?>

</body>

</html>