img.spaces-header {
    min-height: 150px;
}

@media (max-width: 1023.98px) {
    .spaces-nav-container {
        flex-wrap: wrap;
    }
    .spaces-nav {
        width: 100%;
        margin-left: unset !important;
        flex-wrap: wrap;
    }
    .spaces-nav > a {
        margin-top: 1.5rem;
    }
    .spaces-nav-container.h-16 {
        height: auto !important;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 639.98px) {
    .spaces-nav-container.h-16 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
:root {
    --primary-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

.header{
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.header .container{
    max-width: 1280px;
    margin: auto;
    padding: 0 1.5rem;
}
.header .row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}
.header .logo a{
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
}
.header .menu > ul > li{
    display: inline-block;
    margin-left: 2rem;
}
.header .menu > ul > li > a{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    text-transform: capitalize;
    transition: color 0.3s ease;
}
.header .menu > ul > li > a:hover {
    color: var(--primary-color);
}
.header .menu > ul > li .sub-menu{
    position: absolute;
    z-index: 500;
    background-color: var(--white);
    box-shadow: -2px 2px 70px -25px rgba(0,0,0,0.1);
    padding: 20px;
    transition: all 0.3s ease;
    margin-top:20px;
    opacity:0;
    visibility: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}
@media(min-width: 992px){
    .header .menu > ul > li.menu-item-has-children:hover .sub-menu{
        margin-top: 5px;
        visibility: visible;
        opacity: 1;
    }
}
.header .menu > ul > li .sub-menu a{
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}
.header .menu > ul > li .sub-menu a:hover {
    color: var(--primary-color);
}
.header .menu > ul > li .single-column-menu{
    min-width: 250px;
    padding: 15px;
}
.header .menu > ul > li .sub-menu.mega-menu{
    left: 50%;
    transform: translateX(-50%);
}
.header .menu > ul > li .sub-menu.mega-menu-column-4{
    max-width: 1140px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 25px;
}
.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item{
    flex:0 0 25%;
    padding:0 15px;
}
.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item .title{
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    padding:10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item img{
    max-width: 100%;
    width: 100%;
    border-radius: 0.5rem;
    vertical-align: middle;
    margin-top: 10px;
    height: 150px;
    object-fit: cover;
}
.header .item-right > a:not(.btn) {
    margin-left: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.header .item-right > a:not(.btn):hover {
    color: var(--primary-color);
}
.mobile-menu-head, .mobile-menu-trigger{
    display: none;
}
@media(max-width: 991px){
    body { padding-top: 0; }
    .header .container { padding: 0 1rem; }
    .header .item-center{
        order:3;
        flex:0 0 100%;
    }
    .header .item-left,
    .header .item-right{
        flex:0 0 auto;
    }
    .header .mobile-menu-trigger{
        display: flex;
        height: 30px;
        width: 30px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        margin-left: 1rem;
    }
    .header .mobile-menu-trigger span{
        display: block;
        height: 2px;
        background-color: var(--text-dark);
        width: 24px;
        position: relative;
    }
    .header .mobile-menu-trigger span:before,
    .header .mobile-menu-trigger span:after{
        content: '';
        position: absolute;
        left:0;
        width: 100%;
        height: 100%;
        background-color: var(--text-dark);
        transition: all 0.3s ease;
    }
    .header .mobile-menu-trigger span:before{ top:-6px; }
    .header .mobile-menu-trigger span:after{ top:6px; }
    .header .menu{
        position: fixed;
        width: 300px;
        background-color: var(--white);
        left:0;
        top:0;
        height: 100%;
        overflow: hidden;
        transform: translate(-100%);
        transition: all 0.5s ease;
        z-index: 1099;
    }
    .header .menu.active{
        transform: translate(0%);
    }
    .header .menu > ul > li{
        line-height: 1;
        margin:0;
        display: block;
    }
    .header .menu > ul > li > a{
        line-height: 50px;
        height: 50px;
        padding:0 50px 0 15px;
        display: block;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
    }
    .header .menu > ul > li > a i{
        position: absolute;
        height: 50px;
        width: 50px;
        top:0;
        right: 0;
        text-align: center;
        line-height: 50px;
        transform: rotate(-90deg);
        transition: transform 0.3s ease;
    }
    .header .menu .mobile-menu-head{
        display: flex;
        height: 60px;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 501;
        position: sticky;
        background-color: var(--white);
        top:0;
    }
    .header .menu .mobile-menu-head .go-back{
        height: 60px;
        width: 50px;
        border-right: 1px solid var(--border-color);
        cursor: pointer;
        line-height: 60px;
        text-align: center;
        color: var(--text-dark);
        font-size: 16px;
        display: none;
    }
    .header .menu .mobile-menu-head.active .go-back{
        display: block;
    }
    .header .menu .mobile-menu-head .current-menu-title{
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
    }
    .header .menu .mobile-menu-head .mobile-menu-close{
        height: 60px;
        width: 50px;
        border-left: 1px solid var(--border-color);
        cursor: pointer;
        line-height: 60px;
        text-align: center;
        color: var(--text-dark);
        font-size: 25px;
    }
    .header .menu .menu-main{
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .header .menu > ul > li .sub-menu.mega-menu,
    .header .menu > ul > li .sub-menu{
        visibility: visible;
        opacity: 1;
        position: absolute;
        box-shadow: none;
        margin:0;
        padding:15px;
        top:0;
        left:0;
        width: 100%;
        height: 100%;
        padding-top: 75px;
        max-width: none;
        min-width: auto;
        display: none;
        transform: translateX(0%);
        overflow-y: auto;
    }
    .header .menu > ul > li .sub-menu.active{
        display: block;
    }
    @keyframes slideLeft{
        0%{ opacity:0; transform: translateX(100%); }
        100%{ opacity:1; transform: translateX(0%); }
    }
    @keyframes slideRight{
        0%{ opacity:1; transform: translateX(0%); }
        100%{ opacity:0; transform: translateX(100%); }
    }
    .header .menu > ul > li .sub-menu.mega-menu-column-4 > .list-item{
        flex: 0 0 100%;
        padding: 0px;
    }
    .menu-overlay{
        position: fixed;
        background-color: rgba(0,0,0,0.5);
        left:0;
        top:0;
        width: 100%;
        height: 100%;
        z-index: 1098;
        visibility: hidden;
        opacity:0;
        transition: all 0.5s ease;
    }
    .menu-overlay.active{
        visibility: visible;
        opacity:1;
    }
}
