/* Modern Mega Menu Styles */
.mainmenu ul li.has-mega-menu {
    position: static !important;
}

.mainmenu ul li.has-mega-menu .mega-menu {
    position: absolute;
    top: calc(100% + 30px);
    left: 0;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
    transform: translateY(20px);
    z-index: 999;
}

.mainmenu ul li.has-mega-menu:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    top: calc(100% + 15px);
    transform: translateY(0);
}

/* Bridge to maintain hover state across the gap */
.mainmenu ul li.has-mega-menu .mega-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.mega-menu-content .row {
    margin: 0 -15px;
}

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

.mega-menu-item a {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.mega-menu-item a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.mega-menu-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9d174d 0%, #db2777 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mega-menu-item a:hover .icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(157, 23, 77, 0.3);
}

.mega-menu-item .icon i {
    color: #fff;
    font-size: 24px;
}

.mega-menu-item .text h6 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mega-menu-item a:hover .text h6 {
    color: #9d174d;
}

.mega-menu-item .text p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Featured Section in Mega Menu */
.mega-menu-featured {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-menu-featured h5 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.mega-menu-featured p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    color: #9d174d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.featured-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.featured-btn:hover i {
    transform: translateX(5px);
}

/* Responsive fixes for Mega Menu */
@media (max-width: 991px) {
    .mainmenu ul li.has-mega-menu .mega-menu {
        position: relative;
        width: 100%;
        top: 0;
        opacity: 1;
        visibility: visible;
        padding: 20px;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none !important; /* Meanmenu handles mobile menu */
    }
}
