/* Navigation dropdowns: a full-width panel for Solutions and matching dark
   panels for the smaller menus. Loaded from views/header.html. */

/* "+" in place of the caret; it turns into "×" while the menu is open */
#navbar .dropdown-toggle::after {
  content: "+";
  border: 0;
  margin-left: 6px;
  vertical-align: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease;
}

#navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

/* Shared panel look */
#navbar .dropdown-menu {
  background: rgb(17, 28, 40);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 60px rgba(9, 20, 30, 0.35) !important;
}

#navbar .dropdown-item {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: rgb(151, 230, 216);
  padding: 8px 24px;
  background: transparent;
  transition: color 0.2s ease;
}

#navbar .dropdown-item:hover,
#navbar .dropdown-item:focus {
  color: #fff;
  background: transparent;
}

/* Full-width panel */
#navbar .mega-intro-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}

#navbar .mega-intro p:not(.mega-intro-title) {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

#navbar .mega-group-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin: 0 0 10px;
}

.mega-group + .mega-group {
  margin-top: 28px;
}

#navbar .mega-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  white-space: normal;
}

#navbar .mega-menu .dropdown-item i {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#navbar .mega-menu .dropdown-item:hover i,
#navbar .mega-menu .dropdown-item:focus i {
  opacity: 1;
  transform: none;
}

@media (min-width: 992px) {
  /* The panel spans the navbar, so its item can't be the positioning parent */
  #navbar .nav-item.mega {
    position: static;
  }

  #navbar .mega-menu {
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 10px;
    padding: 56px 64px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    text-align: left;
  }

  /* Fade and drop in instead of appearing at once */
  #navbar .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  #navbar .mega-menu {
    display: grid;
  }

  #navbar .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mega-intro {
    max-width: 380px;
  }
}

/* Collapsed (mobile) menu: the panel becomes a plain list */
@media (max-width: 991px) {
  #navbar .dropdown-menu {
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
  }

  .mega-intro {
    display: none;
  }

  #navbar .mega-group-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
  }

  #navbar .mega-menu .dropdown-item {
    justify-content: center;
  }

  #navbar .mega-menu .dropdown-item i {
    display: none;
  }
}
