/**
 * Mega Menu Fix - Sticky with Header
 *
 * Problem: Mega menu dropdown stays at top position when page scrolls
 * because CSS selector `.header--sticky + .mega-menu` doesn't match
 * (mega-menu is not a direct sibling of header in DOM)
 *
 * Solution: JavaScript dynamically sets position and top value
 * based on actual header position. CSS fixes child element positioning.
 *
 * @maintainer wedesign.id @sadewadee
 */

@media (min-width: 1024px) {
    /* When scrolled, ensure mega-menu items position correctly */
    body.is-scrolled .mega-menu__item {
        top: 0 !important;
        margin-top: 0 !important;
    }
    .mega-menu__container.container {
        width: 100%;
        max-width: 100%;
    }

    body.single-solution .mega-menu {
        margin-top: 0 !important;
    }
}

@media (max-width: 767px) {
    .wrapper > section.mega-menu.evlt-accordion.evlt-accordion--sm-only {
        display: none !important;
    }
    .header:not(.header--overlay) + .mega-menu .mega-menu__container {
        margin: 0;
    }
}