<!-- Topbar Start -->
<div class="container-fluid bg-blue p-0">
    <div class="row gx-0 d-flex">
        <div class="col-lg-7 px-4 px-lg-5 text-center text-lg-start">
            <div class="h-100 d-inline-flex align-items-center py-3 me-4">
                <small class="fa fa-phone-alt text-white me-2"></small>
                <small><a class="text-white" href="tel:+91 <?php echo $h_row["uothcontact"]; ?>">+91
                        <?php echo $h_row["uothcontact"]; ?></a></small>
            </div>
            <div class="h-100 d-inline-flex align-items-center py-3">
                <small class="fas fa-envelope text-white me-2"></small>
                <small><a class="text-white"
                        href="mailto:<?php echo $h_row["umail"]; ?>"><?php echo $h_row["umail"]; ?></a></small>
            </div>
        </div>
        <div class="d-block d-lg-none bg-white" style="height:1px;"></div>
        <div class="col-lg-5 px-5 text-end">
            <div class="d-flex align-items-center justify-content-center justify-content-lg-end">
                <div class="h-100 d-inline-flex align-items-center py-3 me-4">
                    <img src="images/zoho.png"
                        style="height: 35px;border-radius: 5px;box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;"
                        alt="Ayush LPO">
                </div>
                <div class="h-100 d-inline-flex align-items-center">
                    <a class="btn btn-sm-rounded bg-white text-primary me-1" href="<?php echo $h_row["ufburl"]; ?>"><i
                            class="fab fa-facebook-f"></i></a>
                    <a class="btn btn-sm-rounded bg-white text-primary me-1" href="<?php echo $h_row["linkdin"]; ?>"><i
                            class="fab fa-linkedin-in"></i></a>
                    <a class="btn btn-sm-rounded bg-white text-primary me-0" href="<?php echo $h_row["uinsta"]; ?>"><i
                            class="fab fa-instagram"></i></a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Topbar End -->


<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light sticky-top p-0">
    <a href="index.php" class="navbar-brand d-flex align-items-center px-4 px-lg-5" title="Ayush LPO">
        <img src="images/logo.jpg" class="img-fluid nav-logo" alt="Ayush LPO">
    </a>
    <button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarCollapse">
        <div class="navbar-nav ms-auto p-4 p-lg-0">
            <a href="index.php" class="nav-item nav-link active">Home</a>
            <div class="nav-item dropdown">
                <a href="about.php" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">About</a>
                <div class="dropdown-menu fade-up m-0">
                    <a href="about.php" class="dropdown-item">About AYUSH LPO</a>
                    <a href="team.php" class="dropdown-item">Leadership Team</a>
                </div>
            </div>
            <?php
                $cat_run = mysqli_query($con, "SELECT cname, cid FROM category where catby=$x ORDER BY cpositon ASC limit 1");
                while ( $cat_rows = mysqli_fetch_assoc($cat_run) ) {
                    ?>
            <div class="nav-item dropdown">
                <a href="service.php" class="nav-link dropdown-toggle"
                    data-bs-toggle="dropdown"><?php echo $cat_rows["cname"];?></a>
                <div class="dropdown-menu fade-up m-0">
                    <?php
                        $service_sql = "SELECT * FROM blog WHERE bcat = '$cat_rows[cid]' ORDER BY bid ASC LIMIT 20";
                        $service_run = mysqli_query($con, $service_sql);
                        while ( $service_rows = mysqli_fetch_assoc($service_run) ) {
                        $servicePath = substr($service_rows['bimage'], 3);
                        $servicePath = "login/".$servicePath;
                        $serviceTitle = mb_strimwidth($service_rows['btitle'], 0, 80, "...");
                        ?>
                    <a href="article.php?id=<?php echo $service_rows["bid"].$service_rows["btag"];?>/"
                        title='<?php echo $service_rows["btitle"]?>'
                        class="dropdown-item"><?php echo $serviceTitle;?></a>
                    <?php }?>
                </div>
            </div>
            <?php }?>
            <div class="nav-item dropdown">
                <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">Gallery</a>
                <div class="dropdown-menu fade-up m-0">
                    <a href="img-gallery.php" class="dropdown-item">Image Gallery</a>
                    <a href="video-gallery.php" class="dropdown-item">Video Gallery</a>
                </div>
            </div>
            <a href="contact.php" class="nav-item nav-link">Contact</a>
        </div>
        <a href="https://ayushcaps.in/" target="_blank"
            class="btn btn-primary py-4 px-lg-5 d-none d-lg-block">Structured
            Finance<i class="fa fa-arrow-right ms-3"></i></a>
    </div>
</nav>
<!-- Navbar End -->