/* ── MEGA MENU (제품/솔루션/기업정보 드롭다운) ── */
.mega-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100vw;
  background: var(--white);
  border-top: 1px solid #e5e5e5;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  pointer-events: none;
  z-index: 99;
}

.nav-item:hover .mega-menu,
.nav-item.menu-open .mega-menu {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.mega-menu-inner {
  width: 100%;
  padding: clamp(32px, 3.5vw, 56px) clamp(32px, 5vw, 80px);
  padding-left: var(--menu-left, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: clamp(40px, 5vw, 80px);
  justify-content: start;
}

.mega-col {
  display: flex;
  flex-direction: column;
}
.mega-col:nth-child(2) a {
  font-weight: 600;
}

.mega-col-title {
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  color: #888;
  letter-spacing: 0.02em;
  padding-bottom: clamp(12px, 1.2vw, 20px);
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
}

.mega-col a {
  text-decoration: none;
  color: var(--black);
  font-size: clamp(16px, 1.6vw, 26px);
  font-weight: 400;
  padding: clamp(14px, 1.4vw, 22px) 0;
  border-bottom: 1px solid #e0e0e0;
  transition: opacity 0.2s;
}

.mega-col a:hover {
  opacity: 0.5;
}

.mega-weight {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}

/* Mega menu backdrop overlay */
.mega-backdrop {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mega-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
