
/* Mega Menu Styles */
.mega-dropdown {
    position: static !important; /* Allow menu to be full width relative to header */
}

.mega-menu {
    display: none;
    position: absolute;
    top: 70px; /* Header height */
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 30px 0;
}

.mega-dropdown:hover .mega-menu,
.mega-menu:hover {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mega-menu-inner {
    width: 1400px;
    max-width: 96%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for better density */
    gap: 20px;
}

.mega-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none !important;
}

.mega-card:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mega-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-right: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mega-content {
    flex: 1;
}

.mega-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.mega-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

/* Adjust responsive for mega menu */
@media (max-width: 1200px) {
    .mega-menu-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
