:root {
  --nav-h: 104px;
}

.global-nav,
.navbar,
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 60 !important;
  padding: 16px 24px;
  background: transparent;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  will-change: transform, opacity !important;
}

.global-nav .nav-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 21px 26px;
  background: rgba(5, 12, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  backdrop-filter: blur(16px) saturate(140%);
  position: relative;
}

.global-nav .hamburger {
  display: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
}

.global-nav .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.global-nav .nav-links a {
  opacity: 0.95;
  color: #ffffff;
}

.global-nav .nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Dropdown Menu Styles */
.nav-links .nav-item-dropdown {
  position: relative;
}

.nav-links .nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-links .nav-item-dropdown > a:hover {
  text-decoration: none;
}

.nav-links .nav-item-dropdown > a::after {
  content: '▼';
  font-size: 0.7em;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.nav-links .nav-item-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  padding: 6px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links .nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-item {
  position: relative;
}

.dropdown-menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: #0b1523 !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.dropdown-menu-item > a:hover {
  background-color: rgba(239, 48, 56, 0.08);
  color: #ef3038 !important;
  border-left-color: #ef3038;
  padding-left: 28px;
}

.dropdown-menu-item.has-submenu > a::after {
  content: '▶';
  font-size: 0.75em;
  color: #6b7280;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-left: 12px;
}

.dropdown-menu-item.has-submenu:hover > a::after {
  color: #ef3038;
  transform: translateX(2px);
}

.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 4px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  padding: 6px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-menu-item.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-item > a {
  display: block;
  padding: 12px 24px;
  color: #1e293b !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.submenu-item > a:hover {
  background-color: rgba(239, 48, 56, 0.08);
  color: #ef3038 !important;
  border-left-color: #ef3038;
  padding-left: 28px;
}

@media (max-width: 900px) {
  .global-nav {
    padding: 12px 14px;
  }

  .global-nav .nav-inner {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .global-nav .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    background: #1a2942;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav .nav-links.show {
    display: flex;
  }

  .global-nav .hamburger {
    display: block !important;
    position: relative;
    z-index: 100;
  }

  .nav-item-dropdown {
    position: relative;
  }

  .nav-item-dropdown > a {
    pointer-events: auto;
    user-select: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0;
    margin-left: 16px;
    box-shadow: none;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    padding: 0;
  }

  .nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    margin-top: 8px;
    padding: 6px 0;
  }

  .nav-item-dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .dropdown-menu-item > a {
    color: rgba(255, 255, 255, 0.95) !important;
    border-left: none;
  }

  .dropdown-menu-item > a:hover {
    background-color: rgba(239, 48, 56, 0.2);
    color: #ef3038 !important;
    padding-left: 24px;
  }

  .dropdown-menu-item.has-submenu > a {
    cursor: pointer;
  }

  .dropdown-menu-item.has-submenu > a::after {
    color: rgba(255, 255, 255, 0.7);
  }

  .dropdown-menu-item.has-submenu:hover > a::after,
  .dropdown-menu-item.has-submenu.active > a::after {
    color: #ef3038;
  }

  .submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 16px;
    margin-top: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    padding: 0;
  }

  .dropdown-menu-item.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    margin-top: 8px;
    padding: 6px 0;
  }

  .submenu-item > a {
    color: rgba(255, 255, 255, 0.9) !important;
    border-left: none;
  }

  .submenu-item > a:hover {
    background-color: rgba(239, 48, 56, 0.2);
    color: #ef3038 !important;
    padding-left: 24px;
  }
}







