/* Forethought-Style Mega Menu CSS */

/* Base Mega Menu Styles */
.mega-menu {
    position: fixed;
    top: 80px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 800px;
    max-width: 900px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Container */
.mega-menu-container {
    display: flex;
    padding: 32px;
    gap: 32px;
    min-height: 400px;
}

/* Left Overview Panel */
.mega-menu-overview {
    flex: 0 0 280px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.overview-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.mega-menu-overview h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.mega-menu-overview p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.overview-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.overview-cta:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content Area */
.mega-menu-content {
    flex: 1;
    display: flex;
    gap: 32px;
}

/* Menu Sections */
.menu-section {
    flex: 1;
}

.menu-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Menu Items Container */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-items.single-column {
    gap: 12px;
}

/* Menu Item Cards */
.menu-item-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-item-card:hover::before {
    opacity: 0;
}

.menu-item-card:hover {
    background: transparent;
    border: 2px solid #3b82f6;
    transform: none;
    box-shadow: none;
}

/* Color Variants */
.menu-item-card.orange { color: #ea580c; }
.menu-item-card.blue { color: #2563eb; }
.menu-item-card.green { color: #16a34a; }
.menu-item-card.purple { color: #9333ea; }
.menu-item-card.pink { color: #db2777; }
.menu-item-card.teal { color: #0d9488; }
.menu-item-card.red { color: #dc2626; }
.menu-item-card.indigo { color: #4f46e5; }
.menu-item-card.yellow { color: #ca8a04; }
.menu-item-card.cyan { color: #0891b2; }

/* Item Content */
.item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: block;
}

.item-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mega-menu {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 90vw;
        max-width: 90vw;
    }
    
    .mega-menu-container {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }
    
    .mega-menu-overview {
        flex: none;
    }
    
    .mega-menu-content {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        min-width: 95vw;
        max-width: 95vw;
        top: 70px;
    }
    
    .mega-menu-container {
        padding: 20px;
        gap: 20px;
    }
    
    .menu-items {
        gap: 12px;
    }
    
    .menu-item-card {
        padding: 14px;
    }
}

/* Menu Link Hover States */
.menu-link {
    position: relative;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item:hover .menu-link::after {
    width: 80%;
}

.menu-item:hover .menu-link {
    color: #3b82f6;
}

/* Header Navigation Adjustments */
.ft-header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* Prevent menu jumping */
.ft-header__navigation {
    position: relative;
}

/* Smooth hover transitions */
.menu-item {
    transition: all 0.1s ease;
}

.menu-item:hover {
    transition-delay: 0.1s;
}

.mega-menu {
    transition-delay: 0s;
}

.menu-item:not(:hover) .mega-menu {
    transition-delay: 0.3s;
}



/* CTA Button with Sunburst Effect */
.menu-link.cta-button {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    position: relative;
    overflow: hidden;
}

.menu-link.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.menu-link.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.menu-link.cta-button:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
    color: white !important;
}

.menu-link.cta-button:focus {
    outline: none;
}

/* Sunburst Effect for All Buttons */
.cta-primary, .cta-secondary, .overview-cta, .btn, .button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-primary::before, .cta-secondary::before, .overview-cta::before, .btn::before, .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.cta-primary:hover::before, .cta-secondary:hover::before, .overview-cta:hover::before, .btn:hover::before, .button:hover::before {
    width: 300px;
    height: 300px;
}

/* Ensure text stays above sunburst effect */
.menu-link.cta-button span,
.cta-primary span,
.cta-secondary span,
.overview-cta span,
.btn span,
.button span {
    position: relative;
    z-index: 2;
}

/* Responsive CTA Button */
@media (max-width: 768px) {
    .menu-link.cta-button {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
}

