<?php include('include/head.php');  ?>


<body>

<?php include('include/header.php');  ?>

<style>
.zoom{
    height: 100%;
}
    .zoom:hover {
  -ms-transform: scale(.9); /* IE 9 */
  -webkit-transform: scale(.9); /* Safari 3-8 */
  transform: scale(.9); 
}
</style>

    <!-- ==== service-detail banner start ==== -->
    <section class="career" style="    background-image: linear-gradient(rgba(0, 24, 59, .5), rgba(0, 24, 59, .5)), url(assets/solutions-01-1-300x117-1.jpg);">
        <div class="service-banner-text">
            <h1>SOLUTION</h1>
            <p>Electrical Power Solutions</p>
        </div>
    </section>
    <!-- ==== service-detail banner end ==== -->

<style>
    .para{
        overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  height: 4.6em;
  -webkit-box-orient: vertical;
    }
</style>

    <!-- ==== service detail start ==== -->
    <section class="service-detail">
        <div class="container">
            <div class="row">
                <?php
                $ser = mysqli_query($conn, "SELECT * FROM tbl_service Order by flt_order ASC");
while($row = mysqli_fetch_array($ser))
{
    $name = $row['title'];
    $content = $row['description'];
    $photo = $row['photo'];
    $slug = $row['slug'];
                ?>
                <div class="col-md-4 mb-2">
                    <div class="card zoom" style="box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;">
                        <div class="card-body">
                            <img src="<?php path(); ?>/admin/assets/images/service/<?php echo $photo; ?>" class="w-100" style="height: 250px;" alt="">
                            <h3 class="mt-4 head"><?php echo $name; ?></h3>
                            <p class="para"><?php echo $content; ?></p>
                            <a href="<?php path(); ?>/<?php echo $slug; ?>" style="background: #232176; padding: 10px; color: #fff; text-decoration: none; text-align: center; margin: auto; display: table;">Click Here</a>
                        </div>
                    </div>
                </div>
                <?php
}
?>
            </div>
        </div>
    </section>

    <!-- ==== service detail end ==== -->




    <?php include('include/footer.php');  ?>


</body>

</html>