/* Mega menu nav — Poppins; layout shell in header.css */

.fxtch-header__nav .header-nav,
.fxtch-header__nav .fxt-main-menu {
    font-family: 'Poppins', sans-serif;
}

.fxtch-header__nav .fxt-mobile-top {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    gap: 12px;
}

.fxtch-header__nav .fxt-logo {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.fxt-mobile-toggle{
    width:42px;
    height:42px;
    border:0;
    background:#00c853;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
    font-size:20px;
}

/* MAIN MENU */
.fxt-main-menu{
    list-style:none;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    margin:0;
    padding:0;
}

.fxt-main-menu > li{
    position:relative;
}

.fxt-main-menu > li > a{
       display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    margin: 0 13px 0 0;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

.fxt-main-menu > li > a:hover{
    color:#00c853;
}

/* MEGA MENU */
.fxt-mega-menu{
    position:absolute;
    top:100%;
    left:0;
    width:760px;
    max-width:calc(100vw - 24px);
    background:#1f1f1f;
    display:flex;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:opacity .35s ease, visibility .35s ease, transform .35s ease, width .35s ease;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
    margin-top: 8px;
}

.fxt-mega-menu--compact{
    width:auto;
    min-width:260px;
    max-width:min(320px, calc(100vw - 24px));
}

.fxt-mega-menu--compact .fxt-mega-right{
    display:none;
}

.fxt-mega-menu--compact .fxt-mega-left{
    border-right:0;
}

.fxt-mega-menu--has-posts{
    width:760px;
}

.fxt-mega-menu--has-posts.fxt-mega-menu--compact{
    width:760px;
    max-width:calc(100vw - 24px);
}

.fxt-mega-menu--has-posts.fxt-mega-menu--compact .fxt-mega-right{
    display:block;
}

/* Desktop */
@media (min-width: 992px) {
    .fxt-has-mega:hover .fxt-mega-menu,
    .fxt-has-mega:focus-within .fxt-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .fxt-mega-menu {
        z-index: 10000;
    }

    .fxt-mega-chevron {
        display: none;
    }
}

/* LEFT SIDE */
.fxt-mega-left{
    width:260px;
    border-right:1px solid rgba(255,255,255,.08);
    padding:18px 0;
    background:#202020;
}

.fxt-category-menu{
    list-style:none;
    padding-left: 18px;
}

.fxt-category-menu li{
    position:relative;
}

.fxt-category-menu li a{
        display: block;
    padding: 6px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.fxt-category-menu li.active::before{
    content:'';
    position:absolute;
    left:0;
    top:8px;
    width:4px;
    height:30px;
    background:#00c853;
    border-radius:10px;
}

/* RIGHT SIDE */
.fxt-mega-right{
    flex:1;
    padding:24px;
}

.fxt-submenu-content{
    display:none;
}

.fxt-submenu-content.active{
    display:block;
}

.fxt-submenu-content.is-empty .fxt-post-list{
    min-height:0;
    padding:0;
}

.fxt-post-list{
    list-style:none;
    padding-left: 8px;
}

.fxt-post-list li{
    margin-bottom:16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.fxt-post-list li:last-child{
    margin-bottom:0;
}

.fxt-post-list a{
    text-decoration:none;
}

.fxt-post-list h4{
       color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    transition: .3s;
    font-weight: 700;
}

.fxt-post-list li:hover h4{
    color:#00c853;
}

.fxt-post-list span{
    color:#9c9c9c;
    font-size:12px;
}

/* MOBILE */
@media (max-width: 991px) {

    .fxt-has-mega > .fxt-mega-trigger,
    .fxt-main-menu > li.menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .fxt-mega-trigger__label {
        flex: 1;
    }

    .fxt-mega-chevron {
        display: inline-block;
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        margin-top: -3px;
    }

    .fxt-has-mega.is-open > .fxt-mega-trigger .fxt-mega-chevron,
    .fxt-mega-trigger[aria-expanded="true"] .fxt-mega-chevron,
    .fxt-main-menu > li.menu-item-has-children.is-open > a .fxt-mega-chevron {
        transform: rotate(-135deg);
        margin-top: 3px;
    }

    .fxtch-header__nav .fxt-mobile-top {
        display: flex !important;
    }

    .fxtch-header__nav .header-nav.fxt-nav {
        display: none;
        padding-bottom: 20px;
        width: 100%;
    }

    .fxtch-header__nav .header-nav.fxt-nav.active {
        display: block !important;
    }

    .fxt-main-menu{
        display:block;
    }

    .fxt-main-menu > li{
        border-bottom:1px solid rgba(255,255,255,.05);
        margin: 0;
    }
    .header-nav.fxt-nav.active{
        height: 100vh;
    }

    .fxt-main-menu > li > a{
        height:auto;
        padding:16px 0;
    }

    /* MEGA MENU MOBILE */
    .fxt-mega-menu--compact .fxt-mega-right{
        display:none;
    }

    .fxt-mega-menu{
        position:static;
        width:100%;
        max-width:none;
        display:none;
        opacity:1;
        visibility:visible;
        transform:none;
        margin-bottom:20px;
        flex-direction:column;
        border-radius:0;
    }
    .fxtch-header__btn--light{
        display: none;
    }

    .fxt-mega-menu.active{
        display: flex;
        background: transparent;
        box-shadow: none;
        border: 0;
        margin: 0;
    }

    .fxt-mega-left{
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        background: transparent;
        padding-top: 0;
    }

    .fxt-category-menu li a{
        padding:6px 20px;
        font-size:15px;
    }

    .fxt-post-list h4{
            margin-bottom: 0;
    }
    
    .fxt-category-menu li{margin:0;}
   

}