/* Mega Menu Styles - Matched to styles.css design */

/* Parent Nav Item */
.nav-item.dropdown {
  position: static;
  /* Allows menu to position relative to pill */
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: default;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  gap: 4px;
}

.nav-link.dropdown-toggle:hover {
  color: #FFFFFF;
}

/* Mega Menu Container - Grid Layout to match styles.css */
.mega-menu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 90vw;
  max-width: 980px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1200;
  color: #050c26;
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 0;
  text-align: left;
  cursor: default;
  overflow: hidden;
}

/* Hover state */
.nav-item.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Left Columns Container */
.mm-left-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / 3;
  gap: 40px;
  padding: 40px 0 40px 40px;
}

/* Right Column (Product Suites) Panel */
.mm-right-panel {
  background: #fcfcfc;
  padding: 40px;
  grid-column: 3;
}

/* Headers */
.mm-column h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8890a0;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* Lists */
.mm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mm-list li {
  margin-bottom: 12px;
}

.mm-list li a,
.mm-list a {
  display: block;
  color: #050c26 !important;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}

.mm-list li a:hover,
.mm-list a:hover {
  color: #4f46e5 !important;
  background: none !important;
}

/* Beta Badge */
.badge-beta {
  font-size: 10px;
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.beta-link {
  display: flex;
  align-items: center;
}

/* Footer in Left Panel */
.mm-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #e6e9ed;
  padding-top: 20px;
  margin-top: 10px;
  font-size: 14px;
  color: #5e6d8a;
  display: flex;
  align-items: center;
}

.mm-footer a {
  color: #4f46e5 !important;
  font-weight: 500;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.mm-footer a:hover {
  color: var(--primary-dark);
}

.footer-arrow {
  font-size: 14px;
  color: #6b7280;
  transform: rotate(-45deg);
  margin-left: 4px;
}

/* Product Suite Cards */
.mm-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px;
  border-radius: 8px;
  transition: background 0.1s;
  cursor: pointer;
  text-decoration: none !important;
  margin-bottom: 24px;
}

.mm-card:hover {
  background: transparent;
}

/* Icon container */
.mm-icon {
  width: 80px;
  height: 80px;
  background: #051b22;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mm-icon img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
}

.mm-content h5 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 500;
  color: #050c26;
  letter-spacing: -0.3px;
}

.mm-content p {
  margin: 0;
  font-size: 15px;
  color: #5e6d8a;
  line-height: 1.5;
  font-weight: 400;
}

/* Chevron Rotation */
.nav-item.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .mega-menu {
    width: 90vw;
    max-width: 700px;
  }
}