.nav-container .main-nav-v2 {
    display: flex;
    align-items: center;
    padding-right: 3rem;
    margin-right: 1rem;
}

.nav-container .main-nav-v2>ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.4rem;
}

.nav-container .main-nav-v2>ul>li {
    position: relative;
}

.nav-container .main-nav-v2>ul>li>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: #1d2c49;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-container .main-nav-v2>ul>li:hover>a {
    color: #1362FB;
}

.nav-container .main-nav-v2 ul li a::before {
    display: none !important;
    content: none !important;
}

.nav-container .main-nav-v2>ul>li.menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #1d2c49;
    border-bottom: 2px solid #1d2c49;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-container .main-nav-v2>ul>li.menu-item-has-children:hover>a::after {
    transform: rotate(225deg) translateY(-2px);
    opacity: 1;
    border-color: #1362FB;
}

.nav-container .main-nav-v2 .mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0s 0.18s;
    min-width: 260px;
    max-width: 980px;
    width: max-content;
    z-index: 9999;
    margin-top: 10px;
}

.nav-container .main-nav-v2>ul>li.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 10;
}

.nav-container .main-nav-v2>ul>li:hover>.mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.18s ease, visibility 0s 0s;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 1.6rem;
    position: static !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu.is-column-mode {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    gap: 0;
    min-width: 480px;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu.is-column-mode>li {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    padding: 3.2rem;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu.is-column-mode>li+li:not(.is-highlight) {
    padding-left: 0;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.menu-item-has-children>a {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
    padding: 0 1.2rem 1.6rem 1.2rem;
    margin-bottom: 0.8rem;
    pointer-events: none;
    cursor: default;
    background: transparent !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li>.mega-sub-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    position: static !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a:hover {
    color: #1362FB;
    background: #f1f5f9;
}

.nav-container .main-nav-v2 .menu-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.nav-container .main-nav-v2 .menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-container .main-nav-v2 .menu-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-container .main-nav-v2 .menu-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
    white-space: normal;
}

.nav-container .main-nav-v2 .menu-desc {
    font-size: 1.35rem;
    color: #64748b;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight {
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
    padding: 3.2rem;
    min-width: 260px;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight>a {
    color: #475569;
    padding: 0 1.2rem 1.6rem 1.2rem;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a {
    color: #334155;
    font-weight: 500;
    font-size: 1.45rem;
    padding: 1.2rem;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #1362FB;
    border-top: 2px solid #1362FB;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.4;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a:hover {
    color: #1362FB;
    background: rgba(19, 98, 251, 0.08);
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(2px, -2px);
}

@media screen and (min-width: 1400px) {
    .nav-container .register-menu-tablet {
        display: none !important;
    }
}

@media screen and (max-width: 1399px) and (min-width: 1280px) {
    .nav-container {
        width: auto !important;
        flex-grow: 1;
        justify-content: flex-end;
        gap: 2.4rem;
    }

    .nav-container .main-nav-v2 {
        padding-right: 1.6rem !important;
        margin-right: 0 !important;
    }

    .nav-container .main-nav-v2>ul {
        gap: 2.4rem;
    }

    .nav-container .register-menu-tablet {
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 1279px) {
    .nav-container {
        width: auto !important;
        margin-left: auto !important;
        margin-right: 2rem !important;
    }

    .nav-container .register-menu-tablet {
        margin-right: 0 !important;
    }

    .site-header button.hamburger.hamburger--shelf {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header button.hamburger.hamburger--shelf span.bar {
        background-color: #1d2c49 !important;
    }

    .nav-container .main-nav-v2 {
        display: block !important;
        position: fixed;
        z-index: 9900;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 360px;
        background-color: #fff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        padding: 8rem 2rem 4rem;
    }

    .nav-container .main-nav-v2.is-active {
        transform: translateX(0);
    }

    .nav-container .main-nav-v2>ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-container .main-nav-v2>ul>li {
        padding: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-container .main-nav-v2>ul>li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.6rem 0;
        font-size: 1.6rem;
        font-weight: 600;
        color: #1d2c49;
    }

    .nav-container .main-nav-v2>ul>li>a::before {
        display: none !important;
    }

    .nav-container .main-nav-v2>ul>li.menu-item-has-children>a::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #1d2c49;
        border-bottom: 2px solid #1d2c49;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-right: 0.5rem;
    }

    .nav-container .main-nav-v2>ul>li.is-open>a::after {
        transform: rotate(-135deg) translate(-2px, -2px);
    }

    .nav-container .main-nav-v2 .mega-menu-wrapper {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 1.6rem 0;
        border-radius: 0;
        border: none;
        background: transparent;
    }

    .nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li>.mega-sub-menu {
        display: flex !important;
        margin-left: 1.6rem;
        margin-top: 0.8rem;
    }

    .nav-container .main-nav-v2>ul>li.is-open>.mega-menu-wrapper {
        display: block;
        animation: mobileSlideDown 0.3s ease;
    }

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu,
.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu.is-column-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li,
.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu.is-column-mode>li {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    min-width: 0 !important;
    display: block !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.menu-item-has-children>a {
    padding: 1rem 0 0.5rem 0 !important;
    margin: 0 !important;
    font-size: 1.3rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    pointer-events: none !important;
    background: transparent !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a {
    padding: 1rem;
    margin: 0 -1rem;
    font-size: 1.5rem;
    border-radius: 8px;
    background: transparent !important;
    display: flex !important;
    pointer-events: auto !important;
    color: #475569 !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a:active,
.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a:hover {
    color: #1362FB !important;
    background: #f1f5f9 !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a .menu-desc {
    display: none !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper .mega-sub-menu li a .icon {
    width: 20px;
    height: 20px;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight {
    margin-top: 1rem;
    padding: 1.6rem !important;
    background: #f8fafc !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0 !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a {
    color: #1362FB !important;
}

.nav-container .main-nav-v2 .mega-menu-wrapper>.mega-sub-menu>li.is-highlight .mega-sub-menu li a::after {
    opacity: 1;
}
}

@keyframes mobileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}