/* ============================
   🌐 DESKTOP MEGA MENU
============================= */
.mega-menu-item {
  position: relative;
}

.mega-menu-service {
  position: absolute;
  left: 98% !important;
  top: 100%;
  transform: translate(-40%, 0) !important;
  background: #fff;
  width: 1245px;
  padding: 10px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Show on hover */
.mega-menu-item:hover > .mega-menu-service {
  opacity: 1;
  visibility: visible;
  transform: translate(-40%, 10px);
  pointer-events: auto;
}

/* Hover bridge */
.mega-menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 25px;
  background: transparent;
}

.service-category {
  margin-bottom: 0px;
}

.service-category h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  padding-left: 14px;
}

/* Subcategory alignment fix */
.service-subcategory li {
  list-style: none;
  margin: 4px 0;
  line-height: 30px;
}

/* New 2-line layout (icon + title + text) */
.service-subcategory a,
.menu-item-box {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  color: #333;
  position: relative;
}

/* Icon box */
.menu-item-box figure {
  width: 40px;
  height: 47px;
  min-width: 35px;
  background: #fff4ef;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  margin: 0;
}

.menu-item-box figure img {
  width: 32px;
  height: 32px;
}

.menu-text {
  display: flex;
  flex-direction: column;
}

.menu-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.menu-desc {
  margin: 3px 0 0;
  font-size: 16px;
  color: #555;
  line-height: 30px;
}

/* + Icon animation */
.service-subcategory a::after {
  content: "+";
  font-size: 14px;
  font-weight: 600;
  padding-left: 15px;
  color: var(--base-skin, #ff4c00);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  position: absolute;
  right: 15px;
  top: 10px;
}



/* Hover effect */
.service-subcategory a:hover {
  background: none !important;
  transform: translateX(5px);
  color: inherit; /* prevent text turning orange */
}

/* Description text turns orange */
.service-subcategory a:hover .menu-desc {
  color: #ec4411 !important;
}

/* Title stays same — optional if needed */
.service-subcategory a:hover .menu-title {
  color: #222 !important;
}


/* ============================
   📱 MOBILE MEGA MENU
============================= */
@media (max-width: 1199px) {
  .mega-menu-service {
    display: none !important;
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mega-menu-item.open > .mega-menu-service {
    display: block !important;
  }

  /* Mobile accordion */
  .service-category {
    border-bottom: 1px solid #eee;
  }

  .service-category h4 {
    cursor: pointer;
    padding: 12px 15px;
    font-weight: 600;
  }

  .service-category h4::after {
    content: "+";
    font-size: 20px;
    color: var(--base-skin, #ff4c00);
    font-weight: 700;
    padding-left: 20px;
    transition: transform 0.3s ease;
  }

  .service-category.active h4::after {
    content: "−";
    transform: rotate(180deg);
  }

  .service-category ul {
    display: none;
    padding-left: 15px;
  }

  .service-category.active ul {
    display: block;
  }
}

/* ============================
    SCROLLABLE MEGA MENU
============================= */
@media (min-width: 992px) {
  .mega-menu-service {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }

  .mega-menu-service::-webkit-scrollbar {
    width: 6px;
  }

  .mega-menu-service::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
}

@media(max-width:1600px) {
  .mega-menu-service {
    max-width:1400px !important;
  }
}

@media(max-width:1400px) {
  .mega-menu-service {
    max-width:1200px !important;
  }
}

@media(max-width:1270px) {
  .mega-menu-service {
    max-width:1100px !important;
  }
}

.mega-menu-service .service-category h4 {
  line-height:60px;
}


 .service-subcategory li .menu-text .view-menu {
  color:#ec4411 !important;
  padding-left:55px;
}