/* ------MEGA service menu---------------------*/
.mega2 {
  position: relative;
  display: inline-block;
}
.mega2 .panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  /*width: min(1080px, 96vw);*/
  width: auto;             /* shrink-wraps around content */
  min-width: 260px;        /* optional floor so it doesn’t get too small */
  max-width: 480px;        /* optional cap if needed */
  border-radius: var(--radius);
  z-index: 9999;
  padding: 0;
  overflow: hidden;
}
.mega2:hover .panel {
  display: block;
}

.mega2 .mains {
  position: relative;
  max-height: 400px;              /* adjust as needed */
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--mega-blue);
  color: #fff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

/* Subtle scroll indicator (gradient fade at bottom) */
.mega2 .mains::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 32px;                            /* height of fade area */
  pointer-events: none;                    /* don’t block clicks */
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
  border-bottom-left-radius: var(--radius);
}

/* Optional scrollbar styling (for Chrome/Safari/Edge) */
.mega2 .mains::-webkit-scrollbar {
  width: 8px;
}
.mega2 .mains::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}
.mega2 .mains::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

.mega2 .mains li {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mega2 .mains a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.mega2 .mains a:hover,
.mega2 .mains a:focus {
  background: rgba(255, 255, 255, .12);
}
