 /* ============================================================
   MEGA MENU — PROFESSIONAL REDESIGN
   Add / replace these rules in your main CSS file.
   ============================================================ */

/* ── Container ── */
.mega-menu-parent { position: absolute !important; }

.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  width: 100%;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 99999;
  border-top: 3px solid var(--pri);
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,.06),
    0 20px 50px -5px rgba(0,0,0,.13);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  transform: translateY(-6px);
}

.mega-menu-parent:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Inner grid ── */
.mega-menu-inner {
  display: flex;
  align-items: stretch;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0;
}

/* ── Each category column ── */
.mega-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 22px 20px 24px;
  border-right: 1px solid var(--border-color);
  position: relative;
  transition: background .2s;
}

.mega-col:last-child { border-right: none; }
.mega-col:hover { background: #f8f9ff; }

.mega-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--pri);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: opacity .2s, transform .22s ease;
}
.mega-col:hover::before { opacity: 1; transform: scaleY(1); }

/* ── Category heading ── */
.mega-cat-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-color);
}

.mega-cat-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--off-white);
  padding: 5px;
  flex-shrink: 0;
}

.mega-cat-heading {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--pri) !important;
  font-family: var(--font2) !important;
  text-transform: uppercase !important;
  letter-spacing: .55px !important;
  line-height: 1.3;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: block;
  transition: color .2s;
}
.mega-cat-heading:hover { color: var(--sec) !important; }

/* ── Sub-item list ── */
.mega-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-sub-list > li { display: block; width: 100%; padding: 0; }

.mega-sub-list > li > a {
  display: flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--para-color) !important;
  padding: 5px 5px !important;
  border-bottom: none !important;
  border-radius: 4px;
  background: transparent !important;
  line-height: 1.4;
  transition: color .18s, background .18s, padding-left .18s !important;
}

.mega-sub-list > li > a svg {
  color: var(--pri);
  flex-shrink: 0;
  opacity: .6;
  transition: transform .18s, opacity .18s;
}

.mega-sub-list > li > a:hover {
  color: var(--pri) !important;
  background: rgba(57,49,133,.06) !important;
  padding-left: 10px !important;
}
.mega-sub-list > li > a:hover svg { transform: translateX(2px); opacity: 1; }

/* ── Grand-child list ── */
.mega-grand-list { list-style: none; margin: 0 0 2px 14px; padding: 0; }
.mega-grand-list > li > a { font-size: 12px !important; color: var(--text-light) !important; padding: 3px 4px !important; }
.mega-grand-list > li > a:hover { color: var(--sec) !important; background: rgba(11,119,183,.06) !important; }

/* has-children indicator */
.mega-sub-list li.has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: auto;
  opacity: .4;
  flex-shrink: 0;
}

/* ── CTA sidebar column ── */
.mega-menu-cta {
  flex-shrink: 0;
  width: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 18px;
  background: linear-gradient(155deg, var(--pri) 0%, var(--sec) 100%);
  align-self: stretch;
  position: relative;
  overflow: hidden;
}

.mega-menu-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.mega-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  background: #fff;
  color: var(--pri) !important;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font2);
  border-radius: 6px;
  border: none !important;
  width: 100%;
  text-align: center;
  transition: background .2s, transform .18s, box-shadow .18s;
  position: relative;
  z-index: 1;
}
.mega-cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.mega-cta-btn:hover {
  background: var(--off-white) !important;
  color: var(--pri) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.8) !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: transparent !important;
  transition: gap .2s, color .2s;
  position: relative;
  z-index: 1;
}
.mega-view-all:hover { color: #fff !important; background: transparent !important; gap: 8px; }
.mega-view-all svg { width: 13px; height: 13px; }

.mega-menu-parent > a { display: inline-flex !important; align-items: center; }

/* ── Hide on mobile (offcanvas handles it) ── */
@media (max-width: 991px) {
  .mega-menu { display: none !important; }
}


/* ============================================================
   MOBILE DROPDOWN — works with the JS slideToggle approach
   in main.js (dropdown-expander click handler)
   ============================================================ */

@media (max-width: 1023px) {

  /* Dropdown hidden by default — JS controls display via slideToggle */
  .navigation .menu ul li ul.ls-dropdown {
    display: none;
  }

  /* Chevron button inside the nav link */
  .navigation .menu ul li.ls-submenu > a .dropdown-expander {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .25s;
    flex-shrink: 0;
  }

  .navigation .menu ul li.ls-submenu > a .dropdown-expander svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
    pointer-events: none;
  }

  /* Rotated state (added by JS) */
  .navigation .menu ul li.ls-submenu > a .dropdown-expander.rotated svg {
    transform: rotate(180deg);
  }

  .navigation .menu ul li.ls-submenu > a .dropdown-expander:hover {
    background: rgba(255,255,255,.25);
  }

  /* First-level open dropdown */
  .navigation .menu ul li ul.ls-dropdown li a {
    color: #fff !important;
    font-size: 13px;
    padding: 9px 15px 9px 22px !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background-color: rgba(0,0,0,.18) !important;
    display: block;
    border-radius: 0 !important;
  }

  /* Second-level (nested) */
  .navigation .menu ul li ul.ls-dropdown li ul.ls-dropdown li a {
    padding-left: 34px !important;
    background-color: rgba(0,0,0,.28) !important;
    font-size: 12.5px;
  }

  /* Third-level */
  .navigation .menu ul li ul.ls-dropdown li ul.ls-dropdown li ul.ls-dropdown li a {
    padding-left: 46px !important;
    background-color: rgba(0,0,0,.36) !important;
  }

  /* Hover state on mobile items */
  .navigation .menu ul li ul.ls-dropdown li a:hover,
  .navigation .menu ul li ul.ls-dropdown li:hover > a {
    background-color: rgba(255,255,255,.12) !important;
    color: #fff !important;
  }

  /* nested expander buttons (2nd+ level) */
  .navigation .menu ul li ul.ls-dropdown li.ls-submenu > a .dropdown-expander {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
  }
}