.main-nav {
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 600px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
  border: 1px solid #e1e5e9;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 1px solid #e1e5e9;
  border-bottom: none;
  border-right: none;
  transform: translateX(-50%) rotate(45deg);
}

.mega-menu-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e1e5e9;
  padding-bottom: 16px;
}

.mega-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: #00263E;
  margin: 0 0 8px 0;
}

.mega-menu-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.mega-menu-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mega-menu-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: #00263E;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #1A7DB5;
}

.mega-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-item {
  margin-bottom: 12px;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.mega-menu-link:hover {
  background-color: #f8f9fa;
  color: #1A7DB5;
  transform: translateX(4px);
}

.mega-menu-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 4px;
}

.mega-menu-link-content {
  flex: 1;
}

.mega-menu-link-title {
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 2px 0;
}

.mega-menu-link-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.mega-menu-cta {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.mega-menu-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    transform: none;
    min-width: auto;
    margin: 0 16px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  
  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}