<?php
// Mendapatkan nama file saat ini untuk menentukan class 'active'
$current_page = basename($_SERVER['PHP_SELF']);
?>
<header>
    <div class="container">
        <nav class="navbar">
            <a href="index.php" class="brand">
                <i class="fas fa-landmark"></i>
                Desa <span>MajuJaya</span>
            </a>
            
            <div class="menu-toggle" id="mobile-menu">
                <i class="fas fa-bars"></i>
            </div>

            <ul class="nav-links">
                <li><a href="index.php" class="<?= ($current_page == 'index.php') ? 'active' : ''; ?>">Beranda</a></li>
                <li><a href="profil.php" class="<?= ($current_page == 'profil.php') ? 'active' : ''; ?>">Profil Desa</a></li>
                <li><a href="struktur.php" class="<?= ($current_page == 'struktur.php') ? 'active' : ''; ?>">Struktur Desa</a></li>
                <li><a href="potensi.php" class="<?= ($current_page == 'potensi.php') ? 'active' : ''; ?>">Potensi Desa</a></li>
                <li><a href="berita.php" class="<?= ($current_page == 'berita.php') ? 'active' : ''; ?>">Berita</a></li>
                <li><a href="galeri.php" class="<?= ($current_page == 'galeri.php') ? 'active' : ''; ?>">Galeri</a></li>
                <li><a href="kontak.php" class="<?= ($current_page == 'kontak.php') ? 'active' : ''; ?>">Kontak</a></li>
                <li><a href="./admin/login.php" class="btn-login"><i class="fas fa-user-lock"></i> Login</a></li>
            </ul>
        </nav>
    </div>
</header>

<!-- Main content wrapper start -->
<main>
