/* Mega Menu Styles */
.mega-menu-wrapper {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
    z-index: 9999;
}

.mega-menu-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.mega-menu-inner {
    display: flex;
    min-height: 400px;
}

/* Left Side - Categories */
.mega-menu-categories {
    width: 280px;
    background: #f8f9fa;
    border-radius: 12px 0 0 12px;
    padding: 20px 0;
}

.mega-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mega-category-item:hover,
.mega-category-item.active {
    background: #fff;
    color: #ff6b00;
    border-left-color: #ff6b00;
}

.mega-category-item i {
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-category-item:hover i,
.mega-category-item.active i {
    opacity: 1;
    transform: translateX(3px);
}

/* Right Side - Services */
.mega-menu-services {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: 500px;
}

.service-list {
    display: none;
}

.service-list.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

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

.service-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: #f9fafb;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background: #fff;
    border-color: #ff6b00;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.1);
}

.service-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.service-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.service-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* Scrollbar Styling */
.mega-menu-services::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-services::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mega-menu-services::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 10px;
}

.mega-menu-services::-webkit-scrollbar-thumb:hover {
    background: #ff8533;
}

/* ==============================================
   MOBILE RESPONSIVE STYLES
============================================== */

@media (max-width: 1200px) {
    .mega-menu {
        width: 800px;
    }
    
    .service-list.active {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-categories {
        width: 240px;
    }
}

/* Mobile View - Accordion Style */
@media (max-width: 991px) {
    /* Hide desktop mega menu */
    .mega-menu-wrapper:hover .mega-menu {
        display: none !important;
    }
    
    /* Mobile Menu Accordion Styles */
    .mean-container .mean-nav .mega-menu-wrapper {
        position: relative;
    }
    
    .mean-container .mean-nav .mega-menu-wrapper > a {
        padding: 12px 15px;
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* Mobile Categories Accordion */
    .mobile-service-categories {
        background: #f9fafb;
        padding: 10px 0;
    }
    
    .mobile-category-item {
        position: relative;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-category-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        width: 100%;
        background: transparent;
        border: none;
        color: #374151;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-category-toggle:hover,
    .mobile-category-toggle.active {
        background: #fff;
        color: #ff6b00;
    }
    
    .mobile-category-toggle i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .mobile-category-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Mobile Services List */
    .mobile-services-list {
        display: none;
        background: #fff;
        padding: 10px;
    }
    
    .mobile-services-list.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 1000px;
        }
    }
    
    .mobile-service-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        text-decoration: none;
        color: #374151;
        border-radius: 8px;
        margin-bottom: 8px;
        transition: all 0.3s ease;
        background: #f9fafb;
    }
    
    .mobile-service-link:hover {
        background: #fff5f0;
        color: #ff6b00;
        transform: translateX(5px);
    }
    
    .mobile-service-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #ff6b00, #ff8533);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
    }
    
    .mobile-service-info h6 {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: inherit;
    }
    
    .mobile-service-info p {
        font-size: 12px;
        color: #6b7280;
        margin: 0;
        line-height: 1.4;
    }
}

/* Tablet View */
@media (max-width: 768px) {
    .mobile-category-toggle {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .mobile-service-link {
        padding: 10px 12px;
    }
    
    .mobile-service-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .mobile-service-info h6 {
        font-size: 13px;
    }
    
    .mobile-service-info p {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mobile-category-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mobile-service-link {
        gap: 10px;
        padding: 8px 10px;
    }
    
    .mobile-service-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

