/* Floating-style Mega Menu - Clean Background */

.wdt-mega-menu-wrapper { left: 0 !important;
    position: absolute; overflow: visible; pointer-events: none; opacity: 0; visibility: hidden; width: 100% !important;
    background-color: transparent; transform: translateY(-8px); border-top: 0px solid var(--wdtPrimaryColor);
    box-shadow: none; transition: all 1s cubic-bezier(0.2, 0.9, 0.4, 1.1); z-index: 9999;}

body .wdt-mega-menu-wrapper { top: calc(var(--header-height) - 0px) !important; position: fixed; }
body:has( .sticky-header-active.wdt-header-top.wdt-header-scroll) .wdt-mega-menu-wrapper { top: calc(var(--sticky-header-height) + 0px) !important; }
body.logged-in.admin-bar .wdt-mega-menu-wrapper { top: calc(var(--header-height) + 32px) !important; position: fixed; }
body.logged-in.admin-bar:has( .sticky-header-active.wdt-header-top.wdt-header-scroll) .wdt-mega-menu-wrapper { top: calc(var(--sticky-header-height) + 32px) !important; }

.wdt-mega-menu-wrapper.active {
    opacity: 1; visibility: visible; transform: translateY(0); }

.wdt-mega-menu-container { display: flex; position: relative; width: 100%; height: 100%; margin: 0 auto; pointer-events: all; }

.wdt-mega-menu-panel { display: none; width: 100% !important; }

.wdt-mega-menu-panel.active { display: block; transition: all 1s ease; }

.wdt-mega-menu-inner { min-width: 250px; }   


/* Content styling for Elementor */

.wdt-mega-menu-inner .elementor-section { margin: 0 !important; }


/* Menu item indicator */

.has-mega-menu > a { position: relative; }

.wdt-mega-menu-inner div[data-elementor-type="wp-post"] > .e-con { background-color: var(--wdtTertiaryColor); }

.wdt-mega-menu-wrapper .elementor-widget-text-editor a,
.wdt-mega-menu-wrapper .elementor-widget-text-editor a:hover { background-image: none; }


@media (min-width: 1281px) {
    .wdt-mega-menu-container { max-width: 1620px; padding: 0 30px; }
}

@media (max-width: 768px) {
    .mobile-menu .wdt-mega-menu-inner {
        display: block !important; position: relative !important; width: 100% !important; opacity: 1 !important;
        visibility: visible !important; transform: none !important; padding: 15px; background: var(--wdtAccentTxtColor); }
}

.wdt-mega-menu-wrapper.is-full-width { width: 100% !important; left: 0 !important; }

.wdt-mega-menu-wrapper.is-centered { margin: 0 auto; }

/* Active menu item styling */
a.wdt-mega-active { color: var(--wdtPrimaryColor) !important; position: relative; }

a.wdt-mega-active:hover,
.wdt-mega-menu-container a:hover { color: var(--wdtPrimaryColor); }

.current-mega-menu.wdt-active,
.current-mega-menu.wdt-active a{ color: rgba(var(--wdtHeadAltColorRgb), 0.6) !important; position: relative; }

.wdtdark-bg .current-mega-menu.wdt-active,
.wdt-dark-bg .current-mega-menu.wdt-active a{ color: rgba(var(--wdtSecondaryColorRgb), .9) !important; position: relative; }

.current-mega-menu.wdt-active:hover,
.current-mega-menu.wdt-active a:hover { background-color: rgba(var(--wdtPrimaryColorRGB), 0.12); color: var(--wdtPrimaryColor); }
.wdt-mega-active,
.current-mega-menu.wdt-active { transition: all 0.3s ease; }

.wdt-mega-menu-wrapper .wdt-image-box-holder.wdt-rc-template-default .wdt-content-item .wdt-content-image-wrapper{ display:flex; }


@media (max-width: 1280px){
.current-mega-menu.wdt-active,
.current-mega-menu.wdt-active a{ color:var(--wdtAccentTxtColor) !important;}
.current-mega-menu.wdt-active:hover, .current-mega-menu.wdt-active a:hover{ background-color:var(--wdtPrimaryColor) }
}