<header class="header">
    <!-- header top -->
    <div class="header-top">
        <div class="container">
            <div class="header-top-wrap">
                <div class="header-top-left">
                    <div class="header-top-social">
                        <span>Follow Us: </span>
                        <a href="<?php echo $user_rows['ufburl']; ?>"><i class="fab fa-facebook-f"></i></a>
                        <a href="<?php echo $user_rows['uinsta']; ?>"><i class="fab fa-instagram"></i></a>
                        <a href="<?php echo $user_rows['uyoutube']; ?>"><i class="fab fa-youtube"></i></a>
                        <a href="https://wa.me/<?php echo $user_rows['uwhatsapp']; ?>"><i
                                class="fab fa-whatsapp"></i></a>
                    </div>
                </div>
                <div class="header-top-right">
                    <div class="header-top-contact">
                        <ul>
                            <li>
                                <a href="#"><i class="far fa-location-dot"></i> <?= $user_rows['uaddress2'];?></a>
                            </li>
                            <li>
                                <a href="mailto:<?php echo $user_rows['umail']; ?>"><i class="far fa-envelopes"></i>
                                    <?php echo $user_rows['umail']; ?></a>
                            </li>
                            <li>
                                <a href="tel:<?php echo $user_rows['uphone']; ?>"><i class="far fa-phone-volume"></i>
                                    <?php echo $user_rows['uphone']; ?></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php $current_page = basename($_SERVER['PHP_SELF']);?>

    <div class="main-navigation">
        <nav class="navbar navbar-expand-lg">
            <div class="container position-relative">
                <a class="navbar-brand" href="index.php">
                    <img src="assets/img/logo/macaw.png" alt="Macaw public school logo">
                </a>
                <div class="mobile-menu-right">
                    <div class="search-btn d-none">
                        <button type="button" class="nav-right-link search-box-outer"><i
                                class="far fa-search"></i></button>
                    </div>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main_nav"
                        aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-mobile-icon"><i class="far fa-bars"></i></span>
                    </button>
                </div>
                <div class="collapse navbar-collapse" id="main_nav">
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link <?php if($current_page == 'index.php'){echo 'active';} ?>"
                                href="index.php">Home</a>
                        </li>

                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle <?php if(in_array($current_page, ['about.php','faculty.php','md-message.php','principal-message.php'])){echo 'active';} ?>"
                                href="#" data-bs-toggle="dropdown">About</a>
                            <ul class="dropdown-menu fade-down">
                                <li><a class="dropdown-item <?php if($current_page == 'about.php'){echo 'active';} ?>"
                                        href="about.php">About</a></li>
                                <li><a class="dropdown-item <?php if($current_page == 'faculty.php'){echo 'active';} ?>"
                                        href="faculty.php">Management Team</a></li>
                                <?php if(isset($_GET["kallol"])){?>
                                <li><a class="dropdown-item <?php if($current_page == 'md-message.php'){echo 'active';} ?>"
                                        href="md-message.php">MD Message</a></li>
                                <li><a class="dropdown-item <?php if($current_page == 'principal-message.php'){echo 'active';} ?>"
                                        href="principal-message.php">Principal Message</a></li>
                                <?php }?>
                            </ul>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['facility.php', 'facility-details.php'])){echo 'active';} ?>"
                                href="facility.php">Facility</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['all-classes.php', 'class-details.php'])){echo 'active';} ?>"
                                href="all-classes.php">Academics</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['hostel.php'])){echo 'active';} ?>"
                                href="hostel.php">Hostel</a>
                        </li>

                        <?php if(isset($_GET["kallol"])){?>
                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['how-to-apply.php', 'application-form.php'])){echo 'active';} ?>"
                                href="how-to-apply.php">Admission</a>
                        </li>
                        <?php }?>

                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['notice.php', 'notice-details.php'])){echo 'active';} ?>"
                                href="notice.php">Notice</a>
                        </li>
                        <?php if(isset($_GET["kallol"])){?>
                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['blog.php', 'blog-details.php'])){echo 'active';} ?>"
                                href="blog.php">Blog</a>
                        </li>
                        <?php }?>
                        <li class="nav-item">
                            <a class="nav-link <?php if(in_array($current_page, ['fees-structure.php'])){echo 'active';} ?>"
                                href="fees-structure.php">Fees Structure</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php if($current_page == 'contact.php'){echo 'active';} ?>"
                                href="contact.php">Reach Us</a>
                        </li>
                    </ul>
                    <div class="nav-right">
                        <div class="nav-right-btn mt-2">
                            <a href="how-to-apply.php" class="theme-btn"><span class="fal fa-pencil"></span>Admisson</a>
                        </div>
                    </div>
                </div>
            </div>
        </nav>
    </div>
</header>