/* Mega menu (.mega-menu-custom): link hover fill + promo card motion */

.mega-menu-custom .ux-menu-link__link {
  position: relative;
  padding: 7px 12px;
  margin-left: -12px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s ease;
}

.mega-menu-custom .ux-menu-link__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #ede4ff 0%, #f8f4ff 100%);
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}

.mega-menu-custom .ux-menu-link__text {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.mega-menu-custom .ux-menu-link__icon {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), color .3s ease;
}

.mega-menu-custom .ux-menu-link__link:hover {
  color: #6d28d9;
}

.mega-menu-custom .ux-menu-link__link:hover::before {
  transform: translateX(0);
}

.mega-menu-custom .ux-menu-link__link:hover .ux-menu-link__text {
  transform: translateX(6px);
}

.mega-menu-custom .ux-menu-link__link:hover .ux-menu-link__icon {
  transform: translateX(4px) scale(1.15);
  color: #6d28d9;
}

/* Promo cards */
.mega-menu-custom .col-inner,
.mega-menu-custom .box {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.mega-menu-custom .img-inner,
.mega-menu-custom .box-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: box-shadow .45s ease;
}

.mega-menu-custom .img-inner img,
.mega-menu-custom .box-image img {
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
}

/* Light sweep across the image */
.mega-menu-custom .img-inner::after,
.mega-menu-custom .box-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.mega-menu-custom .col:has(.img-inner):hover .col-inner,
.mega-menu-custom .box:hover {
  transform: translateY(-6px);
}

.mega-menu-custom .col:hover .img-inner,
.mega-menu-custom .box:hover .box-image {
  box-shadow: 0 18px 35px -12px rgba(109, 40, 217, .35);
}

.mega-menu-custom .col:hover .img-inner img,
.mega-menu-custom .box:hover .box-image img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

.mega-menu-custom .col:hover .img-inner::after,
.mega-menu-custom .box:hover .box-image::after {
  left: 125%;
  transition: left .8s ease;
}

.mega-menu-custom .col:hover h4,
.mega-menu-custom .box:hover h4 {
  color: #6d28d9;
  transition: color .3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu-custom * {
    transition: none !important;
  }
}
