<nav class="nav-menu" id="navMenu">
  <a href="<?= base_url('/'); ?>" class="<?= uri_string() == '' ? 'active' : ''; ?>">Home</a>
  <a href="<?= base_url('/tentang'); ?>" class="<?= uri_string() == 'tentang' ? 'active' : ''; ?>">Tentang</a>

  <div class="nav-dropdown <?= str_starts_with(uri_string(), 'layanan') ? 'active-page' : ''; ?>">
    <button class="dropdown-toggle" type="button">
      Layanan <i class="fa-solid fa-chevron-down"></i>
    </button>

    <div class="dropdown-menu">
      <a href="<?= base_url('/layanan/kontraktor'); ?>" class="<?= uri_string() == 'layanan/kontraktor' ? 'active' : ''; ?>">Kontraktor</a>
      <a href="<?= base_url('/layanan/perdagangan'); ?>" class="<?= uri_string() == 'layanan/perdagangan' ? 'active' : ''; ?>">Perdagangan</a>
    </div>
  </div>

  <a href="<?= base_url('/kontak'); ?>" class="<?= uri_string() == 'kontak' ? 'active' : ''; ?>">Kontak</a>
</nav>