/* Shared BlockZillas navbar and smooth nested dropdowns. */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  padding: 10px 40px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container { display: flex; align-items: center; height: 50px; }
.nav-logo img { display: block; width: 70px; height: 60px; object-fit: contain; }
.nav-links { display: flex; flex: 1; align-items: center; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; font-family: 'Koulen', sans-serif; }
.nav-links > li { position: relative; list-style: none; }
.nav-links a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 500; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.nav-links a:hover { color: #a08be0; }

.dropdown-menu,
.submenu {
  position: absolute;
  display: block;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.dropdown-menu { top: 110%; left: 0; transform: translateY(8px); z-index: 1000; }
.whitelist-dropdown > .dropdown-menu { right: 0; left: auto; }
.dropdown-menu::before { content: ""; position: absolute; top: -8px; left: 20px; border-right: 8px solid transparent; border-bottom: 8px solid #fff; border-left: 8px solid transparent; }
.whitelist-dropdown > .dropdown-menu::before { right: 20px; left: auto; }
.dropdown-menu::after { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }

.dropdown:hover > .dropdown-menu,
.dropdown.active > .dropdown-menu,
.dropdown-submenu:hover > .submenu,
.dropdown-submenu:focus-within > .submenu,
.dropdown-submenu.active > .submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0); transition-delay: 0s; }

.dropdown-menu li,
.submenu li { display: block; width: 100%; margin: 0; list-style: none; }
.dropdown-menu li a,
.submenu li a { display: block; padding: 12px 18px; color: #100853; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.dropdown-menu li a:hover,
.submenu li a:hover { color: #6c5ce7; background: #f2f4f7; }
.dropdown-submenu { position: relative; }
.submenu { top: -8px; left: calc(100% - 2px); min-width: 245px; transform: translateX(8px); z-index: 1001; }

.hamburger { display: none; width: 30px; height: 20px; margin-left: auto; cursor: pointer; flex-direction: column; justify-content: space-between; z-index: 10000; }
.hamburger span { display: block; width: 100%; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 1100px) and (min-width: 769px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 6px 20px; }
  .nav-container { height: 50px; }
  .nav-logo img { width: auto; height: 45px; }
  .hamburger { display: flex; }
  .nav-links { position: fixed; inset: 0; display: none; width: 100vw; min-height: 100vh; padding: 90px 20px 40px; overflow-y: auto; flex-direction: column; justify-content: flex-start; gap: 20px; background: #431871; opacity: 0; transform: scale(.96); }
  .nav-links.show { display: flex; opacity: 1; transform: scale(1); }
  .nav-links a { font-size: 1.25rem; }
  .dropdown-menu { position: static; width: min(90vw, 300px); max-height: 0; margin: 0 auto; padding: 0; overflow: hidden; transform: translateY(-5px); }
  .dropdown.active > .dropdown-menu { max-height: 600px; margin-top: 10px; padding: 8px 0; transform: translateY(0); }
  .dropdown-menu::before, .dropdown-menu::after { display: none; }
  .submenu { position: static; width: 100%; min-width: 0; max-height: 0; padding: 0; overflow: hidden; border-radius: 0; transform: translateY(-4px); }
  .dropdown-submenu.active > .submenu { max-height: 180px; padding: 8px 0; transform: translateY(0); }
}
