html, body {
    margin: 0;
    padding: 0;
  }
  
  /* ----- BASIC NAVBAR LAYOUT ----- */
  .top-nav {
    width: 100%;
    background: #f9f1e1;
    padding: 10px 0;
    font-family: 'Spectral', serif;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    overflow: visible;
  }
  
  /* beri ruang untuk isi halaman supaya tidak ketutup nav */
  body {
    padding-top: 72px;
  }
  
  .container.nav-inner {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: nowrap;
    position: relative;
    overflow: visible;
  }
  
  /* ----- LOGO SECTION ----- */
  .logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
  }
  
  .logo-img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 50%;
  }
  
  .logo-title-wrap { line-height: 1.05; }
  
  .logo-title-main {
    font-size: 18px;
    font-weight: 800;
    color: #003249;
  }
  .logo-title-sub {
    font-size: 13px;
    font-weight: 700;
    color: rgb(7, 46, 28);
    letter-spacing: 0.1em;
  }
  
  /* Hover effect */
  .logo-section:hover { transform: translateY(-1px); }
  .logo-section:hover .logo-img { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
  .logo-section:active { transform: translateY(0); }
  
  /* ----- NAV MENU (DESKTOP) ----- */
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  
  .nav-menu a,
  .nav-menu button {
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    color: #0a2e23;
  }
  
  /* ====== MENU TEXT POP ====== */
  .nav-menu a,
  .nav-menu button { position: relative; }
  
  .nav-menu .nav-text{
    display: inline-block;
    transition: transform 0.25s ease, text-shadow 0.25s ease, letter-spacing 0.25s ease;
    will-change: transform;
  }
  .nav-menu a:hover .nav-text,
  .nav-menu button:hover .nav-text{
    transform: translateY(-2px) scale(1.03);
    letter-spacing: 0.02em;
    text-shadow:
      0 2px 0 rgba(255,255,255,0.55),
      0 8px 18px rgba(0,0,0,0.18);
  }
  
  /* ACTIVE (satu versi saja, jangan dobel) */
  .nav-menu a.active,
  .nav-menu button.active {
    border-bottom: 2px solid #003249;
    color: #003249;
    text-shadow: none;
  }
  .nav-menu a.active .nav-text,
  .nav-menu button.active .nav-text{
    transform: translateY(-1px);
    text-shadow:
      0 1px 0 rgba(255,255,255,0.35),
      0 6px 14px rgba(0,0,0,0.12);
  }
  
  /* ----- DROPDOWN ----- */
  .nav-dropdown { position: relative; }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }
  
  .dropdown-menu a {
    padding: 10px 16px;
    display: block;
    color: #111;
    font-size: 14px;
    text-decoration: none;
  }
  
  .dropdown-menu a:hover {
    background: #e8f5ef;
    color: #0b3d2a;
  }
  .dropdown-menu a.active {
    background: #e8f5ef;
    color: #003249;
    font-weight: 600;
    text-shadow: none;
  }
  
  /* dropdown open via JS */
  .nav-dropdown.open .dropdown-menu { display: block; }
  
  /* ----- NESTED DROPDOWN ----- */
  .dropdown-subgroup { position: relative; }
  
  .dropdown-subtitle {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dropdown-subtitle.is-active {
    background: #e8f5ef;
    color: #0b3d2a;
  }
  .dropdown-subtitle span { font-size: 12px; }
  
  .dropdown-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    min-width: 180px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }
  .dropdown-submenu a {
    padding: 8px 14px;
    font-size: 14px;
    display: block;
    text-decoration: none;
    color: #111;
  }
  .dropdown-submenu a:hover {
    background: #e8f5ef;
    color: #0b3d2a;
  }
  
  /* submenu open via JS */
  .dropdown-subgroup.open .dropdown-submenu { display: block; }
  
  /* ----- RIGHT SIDE WRAPPER ----- */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* ========== SEARCH ICON + BAR TOGGLE ========== */
  .nav-search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  /* icon */
  .nav-search-icon-btn {
    border: 1px solid #0a2e23;
    background: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  
  .nav-search-icon-btn.hide { display: none; }
  
  .search-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
  
  /* search bar (desktop) */
  .nav-search-bar {
    display: none;
    align-items: center;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #a7e4c2;
    gap: 4px;
    min-width: 160px;
  }
  .nav-search-bar.active { display: flex; }
  
  .nav-search-input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 130px;
    color: #333;
    background: transparent;
  }
  
  .nav-search-submit {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
  }
  
  /* SUPPORT BUTTON */
  .btn-donate {
    background: #003249;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: rgb(218, 233, 228);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }
  .btn-donate:hover {
    background: #005b73;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  }
  .btn-donate:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  .btn-donate-active {
    background: #005b73;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
  }
  
  /* ICON LOGIN */
  .auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #0a2e23;
    background: #ffffff;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
  }
  .auth-svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #0a2e23;
  }
  
  /* LANGUAGE */
  .lang-switch { display: flex; align-items: center; }
  
  .lang-pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #0a2e23;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #0a2e23;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .lang-pill:hover { transform: scale(1.05); }
  .lang-pill:active { transform: scale(0.9); opacity: 0.7; }
  
  /* MOBILE-ONLY LINK default hidden */
  .mobile-only { display: none; }
  
  /* HAMBURGER default hidden (desktop) */
  .nav-toggle {
    display: none;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  
  /* =========================================================
     RESPONSIVE NAVBAR (MOBILE)
     - Menu dibuka pakai .nav-menu.show
     - Semua dropdown/submenu ditampilkan (biar user lihat semua)
     ========================================================= */
  @media (max-width: 900px) {
  
    body { padding-top: 68px; }
  
    .container.nav-inner { gap: 8px; }
  
    /* kecilkan logo biar muat */
    .logo-img { width: 54px; height: 54px; }
    .logo-title-main { font-size: 14px; }
    .logo-title-sub  { display: none; }
  
    /* Donate pindah ke menu */
    .btn-donate { display: none; }
    .mobile-only { display: block; }
  
    /* hamburger muncul */
    .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }
  
    /* panel menu */
    .nav-menu {
      position: fixed;
      top: 68px;
      left: 0;
      right: 0;
      background: #0a2e23;
      flex-direction: column;
      align-items: flex-start;
      padding: 10px 20px 14px;
      gap: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      display: none;
      max-height: calc(100vh - 68px);
      overflow-y: auto;
      z-index: 998;
    }
  
    .nav-menu.show { display: flex; }
  
    .nav-menu a,
    .nav-menu button {
      width: 100%;
      text-align: left;
      color: #ffffff;
    }
  
    /* ====== INI INTI: MOBILE -> SEMUA DROPDOWN & SUBMENU TAMPIL ====== */
    .nav-dropdown { width: 100%; }
  
    .nav-dropdown .dropdown-menu {
      display: block;        /* tampil semua */
      position: static;
      box-shadow: none;
      background: #0c3a2b;
      margin-top: 4px;
      border-radius: 6px;
      padding: 6px 0;
    }
  
    .nav-dropdown .dropdown-menu a {
      color: #ffffff;
    }
  
    .nav-dropdown .dropdown-menu a:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
    }
  
    .dropdown-subgroup { position: static; }
  
    .dropdown-subtitle {
      color: #ffffff;
      padding: 8px 16px;
      cursor: default;       /* tidak perlu klik */
    }
  
    /* submenu tampil semua juga */
    .dropdown-submenu {
      display: block;
      position: static;
      box-shadow: none;
      background: #0c3a2b;
      padding: 0 0 4px 0;
      border-radius: 6px;
      margin: 6px 0 8px;
    }
  
    .dropdown-submenu a {
      color: #ffffff;
      padding-left: 32px;
    }
  
    /* hilangkan panah kecil supaya tidak membingungkan */
    .dropdown-subtitle span { display: none; }
  
    /* search bar sedikit dipersempit */
    .nav-search-bar { min-width: 140px; }
  }
  
  /* HP kecil */
  @media (max-width: 600px) {
    .nav-right { gap: 6px; }
  }
  
  /* AUTO HIDE HEADER ON SCROLL */
  .top-nav {
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
  }
  .top-nav.nav-hidden {
    transform: translateY(-110%);
    box-shadow: none;
  }
  
  
  