.nx-header {
    position: relative;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid rgba(18, 57, 74, .08);
}

.nx-header .container {
    position: relative;
}

.nx-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    position: relative;
}

.nx-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    text-decoration: none;
    line-height: 1;
    position: relative;
    z-index: 5;
}

.nx-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 72px !important;
    object-fit: contain !important;
    object-position: left center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nx-menu {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-menu {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 52px;
    position: relative;
    z-index: 20;
}

.nx-mobile-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(18, 57, 74, .14);
    border-radius: 12px;
    background: #f4f8fb;
    box-shadow: 0 8px 20px rgba(8, 28, 40, .08);
    color: #12394a;
}

.nx-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

.nx-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nx-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nx-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nx-mobile-panel {
    display: none;
    width: 100%;
    padding-top: 10px;
}

.nx-mobile-panel.is-open {
    display: block;
}

.nx-mobile-nav {
    background: #fff;
    border: 1px solid #dae7ef;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(8, 28, 40, .10);
}

.nx-mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nx-mobile-nav li {
    position: relative;
}

.nx-mobile-nav a {
    display: block;
    padding: 14px 18px;
    border-top: 1px solid #eef4f7;
    color: #12394a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.nx-mobile-nav > ul > li:first-child > a {
    border-top: 0;
}

.nx-mobile-nav li.has-children > a {
    padding-inline-end: 64px;
}

.nx-submenu-toggle {
    position: absolute;
    top: 8px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dae7ef;
    border-radius: 10px;
    background: #fff;
    color: #12394a;
}

.nx-submenu-toggle span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
}

.nx-submenu-toggle[aria-expanded="true"] span {
    transform: rotate(-135deg) translateY(-1px);
}

.nx-mobile-nav li > ul {
    background: #f8fbfd;
}

.nx-mobile-nav li > ul[hidden] {
    display: none !important;
}

.nx-mobile-nav li > ul a {
    padding-inline-start: 28px;
    font-size: 14px;
    font-weight: 600;
}

.social-icon-x {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (min-width: 992px) {
    .nx-logo img {
        max-height: 72px !important;
    }

    .nx-mobile-panel {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .nx-header {
        padding: 8px 0;
    }

    .nx-header .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .nx-nav {
        min-height: 68px;
        gap: 12px;
    }

    .nx-logo {
        max-width: calc(100% - 60px);
    }

    .nx-logo img {
        max-height: 46px !important;
        width: auto !important;
        height: auto !important;
    }

    .nx-menu {
        display: none !important;
    }

    .mobile-menu {
        display: flex !important;
    }
}

@media (max-width: 575.98px) {
    .nx-logo img {
        max-height: 42px !important;
    }

    .nx-mobile-toggle {
        width: 42px !important;
        height: 42px !important;
    }
}
