/* TechDocs Services Mega Menu Styles */

.mega-dropdown {
    position: relative !important;
}

.mega-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #eee;
    padding: 60px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    transform: translateY(20px);
}

.mega-dropdown .dropdown-trigger:hover+.mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover bridge to connect trigger to menu */
.mega-dropdown .dropdown-trigger::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 10;
    background: transparent;
}

.mega-menu-container {
    max-width: 1500px;
    /* Wider for 5 columns */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr) 280px;
    /* Fixed width for CTA prevents stretching */
    gap: 30px;
    /* Further reduced gap for 5 columns */
    padding: 0 30px;
}

.mega-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 25px;
    font-weight: 600;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 20px;
}

.mega-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a !important;
    text-decoration: none;
    font-weight: 450;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.mega-links li a svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.mega-links li a:hover {
    color: var(--primary-blue) !important;
    transform: translateX(5px);
}

.mega-links li a:hover svg {
    opacity: 1;
}

.mega-cta-column {
    border-left: 1px solid #eee;
    padding-left: 40px;
}

.mega-cta-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.mega-cta-card h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
}

.mega-cta-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .mega-menu {
        display: none !important;
    }
}