.mega-menu-root {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.mega-menu-item:hover > a, .mega-menu-item.active > a {
    color: #0056b3; /* Primary color or specific highlight */
}

/* Dropdown Container */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 800px; /* Width of the mega menu */
    padding: 24px;
}

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

.mega-menu-container {
    display: flex;
    gap: 24px;
}

/* Left side: Subitems */
.mega-menu-subitems {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.sub-item a:hover {
    background: #f8fafc;
}

.sub-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.sub-icon-placeholder {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 4px;
}

.sub-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Right side: Promo */
.mega-menu-promo {
    width: 300px;
    flex-shrink: 0;
}

.promo-card {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-card h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
}

.promo-card p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.promo-card .btn-block {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: #4f46e5;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.promo-card .btn-block:hover {
    background: #f8fafc;
}
