/* ============================================================
   AelisMed — Framos-style mega panel ("Products & Services")
   Left rail: categories; right pane: hovered category content.
   Desktop only (>=1200px). Helix3's own dropdown is suppressed.
   ============================================================ */

/* hook: menu item 544 has custom class "ps-mega" */
.sp-megamenu-parent > li.ps-mega { position: relative; }
.sp-megamenu-parent > li.ps-mega > .sp-dropdown { display: none !important; }

#ps-megapanel.psm {
  position: absolute;
  top: 100%;
  right: 0; /* panel opens leftwards so it never overflows the viewport */
  z-index: 999;
  display: none;
}
#ps-megapanel.psm.psm-open { display: block; }

#ps-megapanel .psm-inner {
  width: 900px;
  max-width: 88vw;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(32, 43, 57, .16);
  display: flex;
  padding: 22px 26px;
  min-height: 380px;
}

/* ---- left rail ---- */
#ps-megapanel .psm-rail {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid #e6eaee;
  padding-right: 16px;
}
#ps-megapanel .psm-rail-title {
  display: block;
  font-weight: 700;
  color: #202b39;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
}
#ps-megapanel .psm-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #202b39;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
#ps-megapanel .psm-rail-item:hover { background: #f2f5f8; }
#ps-megapanel .psm-rail-item.psm-active {
  background: rgba(57, 127, 145, .12);
  color: #397f91;
  font-weight: 700;
}
#ps-megapanel .psm-arrow { opacity: .45; font-style: normal; }

/* ---- right content ---- */
#ps-megapanel .psm-content { flex: 1; padding-left: 26px; }
#ps-megapanel .psm-section { display: none; }
#ps-megapanel .psm-section.psm-active { display: block; }

#ps-megapanel .psm-group {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a97a5;
  margin-bottom: 12px;
}
#ps-megapanel .psm-link {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: #202b39;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
#ps-megapanel .psm-link:hover { background: #f2f5f8; color: #397f91; }

#ps-megapanel .psm-desc {
  color: #5b6a78;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 6px;
  max-width: 520px;
}

#ps-megapanel .psm-all {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid #397f91;
  color: #397f91;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
#ps-megapanel .psm-all:hover { background: #397f91; color: #fff; }

@media (max-width: 1199px) {
  #ps-megapanel { display: none !important; }
}
