@charset "UTF-8";

/* ------------------------------------
   GLOBAL RESET
------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Instrument Sans', 'Inter', sans-serif;
  margin: 0;
  background-color: #f3f4f6;
}

/* ------------------------------------
   NAVBAR BASE
------------------------------------ */
.navBG {
  background: linear-gradient(90deg, #06194A 0%, #0A3D62 50%, #145DA0 100%);
  color: #fff;
  padding: 0.6rem 1.3rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 9999;

  overflow: visible !important; /* ✅ CRITICAL */
}

/* ------------------------------------
   MENU CONTAINER
------------------------------------ */
#menu-container {
  display: flex;
  gap: 0.6rem;
  align-items: center;

  white-space: nowrap;
  flex-wrap: nowrap;

  position: relative;
  overflow: visible !important; /* ✅ CRITICAL */
}

/* ------------------------------------
   ROOT MENU ITEMS
------------------------------------ */
#menu-container .dropdown {
  position: relative;
}

#menu-container .menu-root {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 0.45rem 0.7rem;
  border-radius: 6px;

  text-decoration: none;
  font-weight: 500;
  color: #e5e7eb;

  transition: all 0.25s ease;
}

#menu-container .menu-root:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* ------------------------------------
   DROPDOWN LEVEL 1
------------------------------------ */
.dropdown-menu {
  display: none;
  position: absolute;

  top: calc(100% + 6px);
  left: 0;

  min-width: 14rem;
  background: #ffffff;

  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);

  z-index: 10000;
}

/* SHOW ON HOVER */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* ------------------------------------
   DROPDOWN LINKS
------------------------------------ */
.dropdown-menu a,
.submenu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;

  color: #1f2937;
  text-decoration: none;
  background: #ffffff;

  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.submenu-link:hover {
  background: linear-gradient(90deg, #145DA0, #38bdf8);
  color: #ffffff;
}

/* ------------------------------------
   LEVEL 2+ SUBMENUS (RIGHT SIDE)
------------------------------------ */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown > .dropdown-menu {
  display: none;

  position: absolute;
  top: 0;
  left: 100%;

  margin-left: 6px;

  min-width: 14rem;
  background: #ffffff;

  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);

  z-index: 11000;
}

/* KEEP SUBMENU VISIBLE ON HOVER */
.dropdown-menu .dropdown:hover > .dropdown-menu {
  display: block;
}

/* ------------------------------------
   ARROWS
------------------------------------ */
.arrow {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ------------------------------------
   PREVENT HOVER GAP BUG
------------------------------------ */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

/* ------------------------------------
   MOBILE VIEW (CLICK BASED)
------------------------------------ */
@media (max-width: 1023px) {

  #menu-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background: #0A3D62;
  }

  .dropdown-menu a,
  .submenu-link {
    color: #e5e7eb;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .dropdown-menu a:hover,
  .submenu-link:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
  }
}
