/* Mega Menu Styling */
.mega-menu-dropdown {
    position: static !important; /* Keep static to allow content to align to nav container */
}

.mega-menu-content {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    top: 80px; /* Adjust based on navbar height */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    display: none;
    z-index: 1050;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.mega-menu-dropdown.open .mega-menu-content {
    display: block;
    animation: fadeInSlideUp 0.3s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-column {
    padding: 0 1rem;
}

.mega-menu-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-category-title i {
    font-size: 1rem;
}

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

.mega-menu-item {
    margin-bottom: 0.5rem;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mega-menu-link:hover {
    background: rgba(89, 82, 212, 0.05);
    color: #5952d4;
    transform: translateX(5px);
}

.mega-menu-link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    transition: all 0.2s ease;
}

.mega-menu-link:hover .mega-menu-link-icon {
    background: #5952d4;
    color: white;
}

.mega-menu-link-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .mega-menu-content {
        position: relative !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        display: block;
    }
    
    .mega-menu-column {
        padding: 0;
        margin-bottom: 2rem;
    }
}
