/* Base dropdown menu styles */
.menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown arrow icon for the menu item */
.menu-item-arrow [data-svg-wrapper] svg {
  transition: transform 0.15s ease; /* Keep smooth rotation */
  transform: rotate(0deg);
}

.menu-item-arrow:hover [data-svg-wrapper] svg {
  transform: rotate(180deg);
  color: black; /* Instant color change */
}

/* Dropdown menu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 520px;
  width: max-content;
  min-height: 288px;
  background: white;
  border-radius: 16px;
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.15s ease;
  z-index: 51;
  padding: 20px 36px;
  margin-top: 10px;
}

/* Show dropdown on hover */
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown content styles */
.use-cases-title {
  color: #7F7F7F;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin-bottom: 31px;
}

.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 8px;
}

.use-case-item a {
  color: #1E1E1E !important;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-grow: 1;
  padding-right: 8px;
  transition: none; /* Remove transition for instant color change */
}

.use-case-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Use case icons in the dropdown */
.use-case-item [data-svg-wrapper] svg {
  transition: transform 0.3s ease;
  transform: rotate(180deg); /* Start upside down */
}

.use-case-item:hover [data-svg-wrapper] svg {
  transform: rotate(0deg); /* Rotate to normal on hover */
}

/* Mobile menu styles */
.offcanvas-area .menu-item-has-children {
  flex-direction: column;
  align-items: flex-start;
}

.offcanvas-area .sub-menu {
  position: static;
  width: 100%;
  min-height: auto;
  background: transparent;
  box-shadow: none;
  padding: 10px 0 10px 20px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.offcanvas-area .use-case-item {
  padding: 8px 12px;
  width: calc(100% - 24px);
}

.offcanvas-area .use-case-item a {
  color: #999 !important;
  white-space: normal;
}

.offcanvas-area .use-case-item:hover a {
  color: white !important;
}

.offcanvas-area .use-case-item svg path {
  stroke: #999;
}

.offcanvas-area .use-case-item:hover svg path {
  stroke: white;
}

/* Update menu item styles */
.menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}

/* Remove old solutions-menu specific styles */
.solutions-menu,
.solutions-menu a,
.solutions-menu [data-svg-wrapper] svg,
.solutions-menu:hover [data-svg-wrapper] svg,
.solutions-menu .sub-menu {
  /* Remove these style blocks entirely */
}

/* Update dropdown icon styles */
.menu-item-has-children .dropdown-icon,
.menu-item-has-children [data-svg-wrapper] svg {
  transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-icon,
.menu-item-has-children:hover [data-svg-wrapper] svg {
  transform: rotate(0deg);
  color: #0096ff;
}

/* Update submenu positioning */
.sub-menu {
  margin-top: 10px; /* Add some space between menu and dropdown */
}

/* Clean up redundant hover styles */
.menu-item-has-children:hover svg {
  color: #0096ff;
}

.menu-item-has-children:hover .sub-menu a {
  color: #1E1E1E !important;
}

/* Remove any other conflicting styles */
.menu-item-has-children svg {
  color: currentColor;
}

/* Update z-index to ensure dropdown appears above other elements */
.header-area {
  z-index: 50;
}

/* Ensure proper positioning */
.menu-item-has-children {
  position: relative;
}

/* Add pointer events to ensure hover works */
.menu-item-has-children,
.menu-item-has-children * {
  pointer-events: auto;
}

/* Remove transition from menu items */
.menu-item-has-children a {
  transition: none; /* Remove transition for instant color change */
}

/* Remove any other color transitions */
.cursor-pointer.text-white.duration-150 {
  transition: none;
}

.cursor-pointer.text-white.hover\:text-primary {
  transition: none;
} 