.navigation {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px max(20px, calc((100% - 1200px) / 2));
    background: var(--background-clr);
    border-bottom: 1px solid var(--line-clr);
}

.ngage-logo {
    width: 145px;
    height: auto;
}

.right-section, .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    list-style: none;
}

.right-section a {
    text-decoration: none;
    color: var(--text-clr);
    font-weight: 600;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 3px;
    background: var(--primary-clr);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s;
}

.nav-links a:hover::after, .nav-links a[aria-current]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.right-section .nav-enroll-btn {
    background: var(--primary-clr);
    color: var(--on-primary-clr);
    border-radius: 4px;
    padding: 12px 16px;
}

.menu-toggle {
    border: 1px solid var(--primary-clr);
    background: var(--background-clr);
    color: var(--primary-clr);
    border-radius: 4px;
    min-height: 44px;
    padding: 8px 16px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .navigation {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ngage-logo {
        width: 112px;
    }

    .right-section {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .nav-enroll-btn {
        text-align: center;
    }

    .js .right-section {
    display: flex;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;

    transition:
        max-height .4s cubic-bezier(.22, 1, .36, 1),
        opacity .3s ease-out,
        transform .35s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .4s;
   }

.js .right-section.is-open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;

    transition:
        max-height .4s cubic-bezier(.22, 1, .36, 1),
        opacity .3s ease-out,
        transform .35s cubic-bezier(.22, 1, .36, 1),
        visibility 0s;
   }

}


@media (prefers-reduced-motion: reduce) {
   .nav-links a::after,

    .js .right-section {
        transition: none;
    }

}

