/*
 * WebsiteBaker 2.14 - Default Blue Template Navigation (menu.css)
 * Modernized Navigation Component with WebsiteBaker Blue Identity
 */

#allcssRes-wrapper .menu {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#allcssRes-wrapper .menu,
#allcssRes-wrapper .menu ul,
#allcssRes-wrapper .menu li {
  width: 100%;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#allcssRes-wrapper .menu li {
  line-height: normal !important;
  border: none !important;
  margin-top: 0 !important;
}

#allcssRes-wrapper .menu a:link,
#allcssRes-wrapper .menu a:visited,
#allcssRes-wrapper .menu a:active,
#allcssRes-wrapper .menu a:hover {
  color: var(--wb-text-main);
  display: block;
  padding: 9px 14px;
  border-radius: var(--wb-radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

/* Hover State - Soft WB Blue Tint */
#allcssRes-wrapper .menu-default a:hover,
#allcssRes-wrapper .menu a:hover {
  background: var(--wb-primary-light) !important;
  color: var(--wb-primary) !important;
  opacity: 1 !important;
  transform: translateX(4px);
}

/* Active / Current Page - WB Ocean Blue Gradient */
#allcssRes-wrapper .menu-current,
#allcssRes-wrapper .menu li.active > a,
#allcssRes-wrapper .menu li.active > span > a {
  background: linear-gradient(135deg, var(--wb-header-bg-mid) 0%, var(--wb-header-bg-end) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: var(--wb-radius-sm) !important;
  box-shadow: 0 3px 10px rgba(21, 94, 150, 0.3) !important;
}

#allcssRes-wrapper .menu-current:hover,
#allcssRes-wrapper .menu li.active > a:hover {
  color: #ffffff !important;
  transform: none !important;
}

/* Nested Submenus */
#allcssRes-wrapper .menu ul ul {
  padding-left: 10px !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  border-left: 2px solid var(--wb-primary-border) !important;
}

#allcssRes-wrapper .menu ul ul a {
  font-size: 0.9rem !important;
  padding: 7px 12px !important;
}

/* Hide arrows on regular menu links without subpages */
#allcssRes-wrapper .menu a::after,
#allcssRes-wrapper .menu li a::after {
  content: none !important;
}

/* Show Chevrons STRICTLY ONLY on items with visible subpages (.menu-expand) */
#allcssRes-wrapper .menu li.menu-expand > a::after,
#allcssRes-wrapper .menu a.menu-expand::after,
.menu-expand::after,
.dropdown-toggle b,
.dropdown-toggle .caret {
  content: "\203A" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 14px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  position: relative !important;
  top: 1px !important; /* Perfect vertical centering */
  transition: transform 0.15s ease !important;
}

/* Rotated Chevron for Active Open Submenu Parent */
#allcssRes-wrapper .menu li.menu-expand.active > a::after,
#allcssRes-wrapper .menu li.menu-expand.menu-current > a::after,
.menu-expand.menu-current::after {
  transform: rotate(90deg) !important;
  transform-origin: center center !important;
  top: 0px !important;
}
