/* ============================================
   NABOCADO MEGA MENU — Mastercard Style
   ============================================ */

/* Mega Menu Container */
.main-menu .navigation > li.has-mega-menu {
    position: static !important;
}

.mega-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-top: 3px solid #117708;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
    pointer-events: none;
}

.main-menu .navigation > li.has-mega-menu:hover .mega-menu-panel,
.main-menu .navigation > li.has-mega-menu.mega-open .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-menu-panel--narrow {
    max-width: 750px;
    left: auto;
    right: auto;
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 40px 25px;
}

/* Mega Menu Row/Col Grid */
.mega-menu-row {
    display: flex;
    gap: 40px;
}

.mega-menu-col {
    flex: 1;
    min-width: 0;
}

.mega-menu-col--wide {
    flex: 1.8;
}

.mega-menu-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #117708;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e3;
}

.mega-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-panel ul li {
    margin-bottom: 0;
}

.mega-menu-panel ul li a {
    display: block;
    padding: 7px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: none;
}

.mega-menu-panel ul li a:hover {
    color: #117708;
    padding-left: 8px;
}

.mega-menu-description {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Featured Banner at bottom */
.mega-menu-featured {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mega-menu-featured a {
    text-decoration: none;
}

.mega-featured-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #117708;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.mega-menu-featured a:hover .mega-featured-text {
    color: #0d5a06;
    letter-spacing: 1px;
}

/* Map inside mega menu */
.mega-menu-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mega-menu-map img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Donate nav link highlight */
.nav-donate-link {
    color: #117708 !important;
    font-weight: 700 !important;
}

/* Override charitemax dropdown for mega menus */
.main-menu .navigation > li.has-mega-menu > ul {
    display: none !important;
}

/* Hide default dropdown arrow for mega menu items */
.main-menu .navigation > li.has-mega-menu > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    margin-left: 6px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .mega-menu-panel {
        position: relative;
        box-shadow: none;
        border-top: none;
        background: #ffffff;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .main-menu .navigation > li.has-mega-menu.mega-open .mega-menu-panel {
        display: block;
    }

    .mega-menu-inner {
        padding: 15px 20px;
    }

    .mega-menu-row {
        flex-direction: column;
        gap: 15px;
    }

    .mega-menu-map {
        display: none;
    }

    .mega-menu-featured {
        display: none;
    }
}
