
.new-hbmsu-menu-item {
  position: relative;
}

.new-hbmsu-menu-button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 2rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.new-hbmsu-menu-button:hover {
  color: #2563eb;
}

.new-hbmsu-menu-button.active {
  color: #2563eb;
}

.new-hbmsu-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.new-hbmsu-menu-button.active .new-hbmsu-chevron {
  transform: rotate(180deg);
}

.new-hbmsu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 328px;
  background: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-out;
}

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

.new-hbmsu-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.new-hbmsu-dropdown-item:last-child {
  border-bottom: none;
}

.new-hbmsu-dropdown-item:hover {
  background: #f0f3f5;
  color: #2563eb;
}

.new-hbmsu-arrow-icon {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.2s;
}

.new-hbmsu-dropdown-item:hover .new-hbmsu-arrow-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* Dropdown item wrapper — needed for items that have a nested submenu */
.new-hbmsu-dropdown-item-wrapper {
  position: relative;
}

/* Keep the arrow always visible when the item has a submenu */
.new-hbmsu-has-submenu .new-hbmsu-arrow-icon {
  opacity: 1;
}

/* Highlight the parent item while hovering anywhere inside the wrapper */
.new-hbmsu-dropdown-item-wrapper:hover > .new-hbmsu-has-submenu {
  background: #f0f3f5;
  color: #2563eb;
}

/* Submenu flyout panel */
.new-hbmsu-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 300px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all 0.2s ease-out;
  z-index: 200;
}

html[dir="rtl"] .new-hbmsu-submenu {
  left: auto;
  right: 100%;
  transform: translateX(8px);
}

.new-hbmsu-dropdown-item-wrapper:hover .new-hbmsu-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.new-hbmsu-submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.new-hbmsu-submenu-item:last-child {
  border-bottom: none;
}

.new-hbmsu-submenu-item:hover {
  background: #f0f3f5;
  color: #2563eb;
}

.new-hbmsu-submenu-item .new-hbmsu-arrow-icon {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.2s;
}

.new-hbmsu-submenu-item:hover .new-hbmsu-arrow-icon {
  opacity: 1;
  transform: translateX(4px);
}

.h-72 {
  height: 92px;
}

.h-96 {
  height: 96px;
}
