/* Match the existing site's navbar without importing its page-wide styles. */
#zakaatNavbar {
  position: relative;
  top: 0;
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 6px 25px;
  box-sizing: border-box;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  line-height: 1.325;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
  overflow: visible;
}

#zakaatNavbar .logo-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  max-width: none;
}

#zakaatNavbar .logo-gif,
#zakaatNavbar .logo-main {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

#zakaatNavbar .logo-gif { height: 45px; }
#zakaatNavbar .logo-main { height: 55px; }

#zakaatNavbar .menu {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 18px);
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  overflow: visible;
  transform: none;
  visibility: visible;
}

#zakaatNavbar .menu > a,
#zakaatNavbar .dropdown > a {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

#zakaatNavbar .dropdown { position: relative; flex: 0 0 auto; }

#zakaatNavbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10001;
  display: none;
  width: 220px;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

#zakaatNavbar .dropdown:last-of-type .dropdown-menu { right: 0; left: auto; }
#zakaatNavbar .dropdown.open > .dropdown-menu,
#zakaatNavbar .dropdown-menu.show-dropdown { display: block; }

#zakaatNavbar .dropdown-menu a {
  display: block;
  margin: 0;
  padding: 12px 18px;
  color: #222 !important;
  font-size: 15px;
  line-height: 1.3;
  text-align: center !important;
  text-decoration: none;
}

#zakaatNavbar .dropdown-menu a:hover { background: #f2f2f2; color: #0f6d3c; }
#zakaatNavbar .menu-toggle,
#zakaatNavbar .mobile-nav-logo { display: none; }
.mobile-menu-backdrop[hidden] { display: none !important; }
.mobile-menu-backdrop { display: none; }

@media (min-width: 901px) {
  #zakaatNavbar .dropdown:hover > .dropdown-menu,
  #zakaatNavbar .dropdown:focus-within > .dropdown-menu { display: block; }
}

@media (max-width: 900px) {
  #zakaatNavbar { padding: 15px 20px; }
  #zakaatNavbar .logo-group { gap: 6px; }
  #zakaatNavbar .logo-gif { height: 30px; }
  #zakaatNavbar .logo-main { height: 40px; max-width: none; }

  #zakaatNavbar .menu-toggle {
    position: relative;
    z-index: 10002;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #0f6d3c;
    font: inherit;
    font-size: 32px;
    line-height: 1.325;
    cursor: pointer;
  }

  #zakaatNavbar .menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe flex-end;
    gap: 14px;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 90px 20px 30px 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0a2540, #134074, #1d4e89);
    border-left: 1px solid rgba(255, 255, 255, .15);
    border-radius: 0 0 15px 15px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .35s ease, visibility .35s;
  }

  #zakaatNavbar .menu.active,
  #zakaatNavbar .menu.show-menu { transform: none; visibility: visible; }

  #zakaatNavbar .menu > a,
  #zakaatNavbar .dropdown > a {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 0;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 600 !important;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  #zakaatNavbar .dropdown { width: 100%; }
  #zakaatNavbar .dropdown > a { display: block; width: 100%; }
  #zakaatNavbar .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  #zakaatNavbar .dropdown-menu a { padding: 10px 12px; color: #222; font-size: 15px; }
  #zakaatNavbar .mobile-nav-logo {
    display: block;
    flex-shrink: 0;
    width: auto;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .3);
  }

  #zakaatNavbar .mobile-nav-logo img {
    display: block;
    width: 120px;
    max-width: none;
    height: auto;
    margin: 0 auto;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  #zakaatNavbar .menu { transition: none; }
}
