<?php include 'header.php';
include 'admin/config.php';
?>


<main class="main">

    <!-- hero slider -->
    <div class="hero-section">
        <div class="hero-slider owl-carousel owl-theme">
            
            
            
            <?php
                $sql = "select * from `hero_banner`";
                $query = mysqli_query($con, $sql);
                if ($query) {
                    foreach ($query as $row) {
                       
                        $image = $row['image'];

                        $image_path = "admin/image/" . $image;

                ?>

                      

                     <div class="hero-single" style="background: url(<?php echo $image_path; ?>)">
                <div class="container">
                    <div class="row align-items-center">
                        <div class="col-md-12 col-lg-7">
                            <div class="hero-content">

                            </div>
                        </div>
                    </div>
                </div>
            </div>

               <?php }
                }
                ?>

        </div>
    </div>
    <!-- hero slider end -->

    <div class="">

        <marquee behavior="" direction="">
            <?php
            $sql = "SELECT * FROM `flash_news` ORDER BY id DESC"; // Fetch latest news first
            $query = mysqli_query($con, $sql);

            $newsItems = []; // Initialize an empty array

            if ($query) {
                while ($row = mysqli_fetch_assoc($query)) {
                    $newsItems[] = '<img src="assets/img/new.gif" alt=""> ' . $row['news']; // Add news with the image
                }
                echo implode(" | ", $newsItems); // Join the items with a separator
            }
            ?>
        </marquee>

    </div>

    <!-- about area -->
    <div class="about-area py-80 pb-4">
        <div class="container">
            <div class="row g-4 ">

                <div class="col-lg-7">
                    <h3>
                        About Us
                    </h3>
                    <p class="mt-3 mb-3">
                        The need for the creation of a new board for the overall development of the BSDB Area, the
                        government has developed the Chitradurga Center to develop and implement projects for
                        agriculture related activities such as agriculture, horticulture, forestry, animal husbandry and
                        rural development in these areas. ಉ.ಎಲ್.ಬಿ.ಎಸ್.: 94 ಬೆಂಗಳೂರು Date: 07-10-1994 and ಕೃತೋಇ:
                        176:ಕೃಯೋಕಾ:93 ಬೆಂಗಳೂರು Created on 04-01-1995 with effect from 26-10-1995.
                    </p>
                    <p>
                        As per the notification, 08 districts of the state are under the jurisdiction of the Bayaluseeme
                        Area Development Board and after reintegration of the districts, six districts will be
                        incorporated - Bagalkot, Belgaum, Bangalore Rural, Chikkaballapur, Chitradurga, Davanagere,
                        Dharwad Gadag, Hassan, Haveri, Kolar, Ramanagara Tumkur & Vijayapura, The 70 assembly
                        constituencies in 57 taluks covering 14 districts are subject to the jurisdiction of the Board.
                    </p>

                    <div class="mt-4  text-center">
                        <div class="course-item wow fadeInUp" data-wow-delay=".25s">
                            <div class="border-radius-100">
                                <img src="assets/img/home/thavar-chand-gehlot.png" class="" alt="">
                            </div>
                            <h5 class="mt-3 mb-2">
                                SRI. THAVAR CHAND GEHLOT
                            </h5>
                            <h4>
                                GOVERNOR OF KARNATAKA
                            </h4>
                        </div>
                    </div>


                </div>
                <div class="col-lg-5">
                    <div class="about-left wow fadeInLeft" data-wow-delay=".25s">
                        <img src="assets/img/home/karnataka-map.jpg" class="rounded-3" alt="">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- about area end -->



    <?php include 'footer.php' ?>