/* ---------- Mega Menu ---------- */
.menu .mega_menu_item {
  position: static;
}
.menu .mega_menu {
  display: none;
  position: absolute;
  top: calc(100% + 21px);
  right: 136px;
  z-index: 1001;
  align-items: stretch;
  margin: 0;
  background: #0a0a0a;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}
.menu .mega_menu.show {
  display: flex;
}

/* Left column - categories */
.menu .mega_menu_categories {
  display: flex;
  flex-direction: column;
  gap: 7.5px;
  flex: 0 0 312px;
  width: 312px;
  height: 311px;
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1.25px solid rgba(255, 255, 255, 0.2);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.menu .mega_menu_categories::-webkit-scrollbar {
  display: none;
}
.menu .mega_menu_category {
  display: block;
  flex-shrink: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  font-size: 17.68px;
  line-height: normal;
  color: #fff;
  text-align: left;
  transition: background-color 0.3s ease;
}
.menu .mega_menu_category.active {
  background: #008aff;
}

/* Middle column - services */
.menu .mega_menu_services {
  flex: 0 0 219px;
  width: 219px;
  height: 311px;
  background: rgba(255, 255, 255, 0.05);
  border-right: 2.5px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.menu .mega_menu_panel {
  display: none;
}
.menu .mega_menu_panel.active {
  display: block;
}
.menu .mega_menu .mega_menu_service {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1.25px solid rgba(255, 255, 255, 0.1);
  font-family: FutoSans-Regular !important;
  font-size: 17.68px;
  line-height: normal;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
.menu .mega_menu .mega_menu_service:hover,
.menu .mega_menu .mega_menu_service:focus,
.menu .mega_menu .mega_menu_service.active {
  font-family: FutoSans-Medium !important;
  color: #008aff !important;
}
.menu .mega_menu_arrow {
  flex-shrink: 0;
  width: 25.259px;
  height: 25.259px;
  background-color: currentColor;
  -webkit-mask: url(../images/menu/arrow-right.svg) center / contain no-repeat;
  mask: url(../images/menu/arrow-right.svg) center / contain no-repeat;
}

/* Right column - image */
.menu .mega_menu_image {
  position: relative;
  flex: 0 0 101px;
  width: 101px;
  overflow: hidden;
}
.menu .mega_menu_image img {
  position: absolute;
  top: -62px;
  left: -29px;
  width: 254.5px;
  height: 381.74px;
  max-width: none;
  object-fit: cover;
}

/* ---------- Mega Menu responsive ---------- */
@media (max-width: 1200px) {
  .menu .mega_menu {
    right: 60px;
  }
}
@media (max-width: 991px) {
  .menu .mega_menu {
    position: static;
    flex-wrap: wrap;
    width: 100%;
    margin: 10px 0;
  }
  .menu .mega_menu_categories {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    max-height: 250px;
    border-right: none;
    border-bottom: 1.25px solid rgba(255, 255, 255, 0.2);
  }
  .menu .mega_menu_services {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-height: 172px;
  }
  .menu .mega_menu_image img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
@media (max-width: 576px) {
  .menu .mega_menu_category,
  .menu .mega_menu .mega_menu_service {
    font-size: 16px;
  }
  .menu .mega_menu .mega_menu_service {
    padding: 12px 15px;
  }
  .menu .mega_menu_image {
    flex: 0 0 80px;
    width: 80px;
  }
}
