#header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 9999;
}

#header #mega-menu-wrap-primary .mega-menu-toggle {
    background: transparent;
}

#lang-toggle {
    background: transparent;
    border: none;
}

.header-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

#lang-dropdown {
    margin: 0;
    padding: 0;
    list-style: none;
    /* display: none; */
    position: absolute;
    top: 100%;
    left: auto;
    height: 0;
    overflow: hidden;
    transition: all .5s;
}

.header-section .btn-primary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px 38px;
    gap: 6.78px;
    width: 188px;
    height: 58px;
    background: #FFFFFF;
    color: #000;
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #000000;
}

.l-header-links a:before,
.l-header-links a span {
    display: block;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, -webkit-transform 0.3s;
    -o-transition: transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
}

.l-header-links a:before {
    content: attr(data-header-link);
    opacity: 0;
    position: absolute;
    display: block;
    -webkit-transform: translateY(100%) scaleY(0);
    -ms-transform: translateY(100%) scaleY(0);
    transform: translateY(100%) scaleY(0);
}

.l-header-links a span {
    -webkit-transform: translateY(0) scaleY(1);
    -ms-transform: translateY(0) scaleY(1);
    transform: translateY(0) scaleY(1);
}

.l-header-links a:hover {
    opacity: 1;
}

.l-header-links a:hover:before {
    -webkit-transform: translateY(0) scaleY(1);
    -ms-transform: translateY(0) scaleY(1);
    transform: translateY(0) scaleY(1);
    opacity: 1;
}

.l-header-links a:hover span {
    -webkit-transform: translateY(-100%) scaleY(0);
    -ms-transform: translateY(-100%) scaleY(0);
    transform: translateY(-100%) scaleY(0);
}

#lang-dropdown a {
    font-family: 'Noto Sans TC', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #FBFBFB;
}

.lang-switcher-wrapper {
    width: 68px;
    height: 58px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    /* display: none; */
    background: #000;
    border: 1px solid #000;
    position: relative;
}

.site-header-menu {
    /* visibility: hidden; */
}

.header-section {
    position: absolute;
    width: 100%;
    max-width: 100%;
    z-index: 9999;
    margin-top: 71px;
    position: fixed;
    -webkit-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
}

.header-section.scroll .header-logo {
    display: none;
}

.header-section .switcher-lang-list {
    /* opacity: 1 !important; */
}

.header-section.scroll .switcher-lang-list {
    opacity: 0 !important;
}

.header-section.scroll {
    margin-top: 0;
    padding-top: 20px;
    -webkit-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
}

.admin-bar .header-section.scroll {
    top: 32px;
}

.header-actions,
.switcher-lang-list {
    opacity: 0;
}

.site-header-menu,
.header-logo {
    opacity: 0;
}


.site-header-menu {
    width: 182px;
    position: relative;
    height: 25px;
    /* animation: 0.8s ease 0s 1 normal forwards running fadeInContent; */
}

.header-logo img {
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 199px;
    height: 58px;
}

.switcher-lang-list {
    display: flex;
    margin-top: 30px;
}

.switcher-lang-list .lang-item {
    list-style: none;
    display: inline-flex;
    align-items: flex-end;
}

.switcher-lang-list .lang-item a {
    color: #767676;
    margin-right: 15px;
}

.switcher-lang-list .lang-item.current-lang a {
    color: #fff;
}

.lang-switcher-wrapper:hover #lang-dropdown {
    display: block;
    /* position: absolute; */
    /* top: 100%; */
    /* width: 100%; */
    height: 200%;
    transition: all .5s;
}

.site-header-menu-icon {
    width: max-content;
    position: absolute;
    top: 0;
    /* height: 25px; */
    left: 0;
    transition: all 1s;
    top: 50%;
    transform: translateY(-50%);
}

.site-header-menu-icon.open {
    opacity: 0;
    transition: all 1s;
}

.menu-open .site-header-menu-icon.open {
    opacity: 1;
}

.menu-open .site-header-menu-icon.close {
    opacity: 0;
}

.site-header-menu-icon.close {
    opacity: 1;
    transition: all 1s;
}

.menu-open {
    overflow: hidden !important;
}

.menu-container {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: all 1s;
}

.menu-container.--close {
    pointer-events: none;
    transition: all 1s;
}

.menu-container.--open {
    opacity: 1;
    pointer-events: auto;
}

.menu-background-video {
    opacity: 0;
    width: 100%;
    height: 100vh;
    transition: all 100s;
}

.menu-open .menu-background-video {
    opacity: .8;
    transition: all 1s;
}

.--close .menu-background-video {
    transition: all 10s;
    opacity: 0;
}

.menu-open #content {
    opacity: 0;
    transition: all 1s;
}

#content {
    opacity: 1;
    transition: all 1s;
}

.menu-open .menu-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    transition: all 1s;
}

.menu-background-video::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: all 10s;
}

.menu-item-background-image.menu-background {
    opacity: 1;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: all 0.5s;
}

.menu-item-background-image.menu-background.active {
    opacity: 1;
}

.menu-item-background-image.menu-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-background {
    position: absolute;
}

.menu-background-wrapper {
    /* transition: all 1s; */
}

.menu-open .menu-background-wrapper {
    transition: all 1s;
}

.menu-background-video video {
    width: auto;
    height: 100%;
    object-fit: cover;
    width: -webkit-fill-available;
}

.menu-content {
    position: absolute;
    z-index: 1;
    display: grid;
    place-content: center;
    width: 100%;
    height: 100vh;
    top: 0;
}

.menu-list {
    display: flex;
    justify-content: center;
    justify-content: space-between;
    gap: 110px;
    padding: 0 20px;
    margin-top: 80px;
    width: 1280px;
    max-width: 1280px;
    /* width: 100%; */
}

.menu-item {
    list-style: none;
    overflow: hidden;
    cursor: pointer !important;
    width: max-content;
}

.menu-language {
    display: none;
}

.menu-item a h2 {
    transition: all 1s;
    opacity: 0;
    width: max-content;
}

.--open .menu-item a h2 {
    opacity: 1;
    transition: all 1s;
}

.--close .menu-item a h2 {
    opacity: 0;
}

.lang-switcher-wrapper:hover {
    position: relative;
}

#lang-dropdown .lang-item {
    width: 68px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#curren-lang {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
}

.menu-icon {
    display: none;
}

.menu-open .footer-section {
    opacity: 0;
    transition: all 1s;
}

.footer-section {
    transition: all 1s;
}

.ios-safari #banner-video {
    /* display: none; */
}

.header-logo-1 {
    max-width: 136px;
    height: 58px;
    width: 100%;
    margin-right: 28px;
    display: none;
}

.header-logo-1 img {
    width: 100%;
    height: auto;
}

@keyframes drawerOpen1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes drawerOpen {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes drawerClose {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}

@-webkit-keyframes fadeInHeader {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeInContent {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1300px) {
    .menu-list {
        gap: 80px;
        width: 1200px;
    }
}

@media (max-width: 1200px) {
    .header-section {
        margin-top: 25px;
    }

    .menu-list {
        gap: 40px;
    }

    .menu-list {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        margin-bottom: 118px;
        margin-top: 124px;
        margin-top: 15px;
    }
}

@media (max-width: 991.96px) {
    .header-logo-1 {
        margin-right: 10px;
        /* display: none; */
    }

    .site-header-menu {
        width: 100px;
    }
}

@media (max-width: 767.96px) {
    .header-logo-1 {
        display: none;
    }

    .menu-icon {
        display: block;
        width: 51px;
        height: 43px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        background: #000;
        border: 1px solid #000;
        position: relative;
        cursor: pointer;
        pointer-events: none;
    }

    .site-header-menu-icon {
        /* width: 22px; */
        width: 60%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .site-header-menu-icon svg {
        width: 100%;
    }

    .lang-switcher-wrapper {
        display: none;
    }

    .switcher-lang-list {
        display: none;
    }

    .header-logo img {
        max-width: 133px;
        height: 43px;
    }

    .header-section .btn-primary {
        padding: 12.25px 22.5px;
        width: 156px;
        height: 41.5px;
        font-size: 14px;
    }

    .site-header-menu {
        display: none;
    }

    .header-section.scroll .header-logo {
        display: block;
    }

    .header-section.scroll .header-logo img {
        display: none;
    }

    .menu-language {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .menu-language li {
        list-style: none;
    }

    .menu-item a h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .menu-language li a {
        font-size: 18px;
        line-height: 22px;
    }
}

@media (min-width: 1600px) {
    .header-logo img {
        max-width: 265.57px;
        height: 77.33px;
    }

    .header-section {
        margin-top: 94px;
    }

    .header-section .container {
        /* max-width: 1760px; */
    }

    #header {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        align-items: center;
    }
}

@media (min-width: 1441px) {
    /* .header-logo img {
        max-width: 18.4423611vw;
        height: 5.37013889vw;
    }

    .header-section .btn-primary {
        width: 13.05vw;
        height: 4.03vw;
    }

    .lang-switcher-wrapper {
        width: 4.72vw;
        height: 4.03vw;
    }

    .site-header-menu {
        width: 12.6388889vw;
        height: 1.73611111vw;
    }

    #lang-dropdown .lang-item {
        width: 4.72vw;
        height: 4.03vw;
    }

    #curren-lang {
        font-size: 1.18vw;
        line-height: 1.29;
    }

    #lang-dropdown a {
        font-size: 1.11vw;
        line-height: 1.375;
    }

    .l-header-links a span {
        font-size: 1.11vw;
        line-height: 1.375;
    }

    .site-header-menu-icon.close svg {
        width: 3.33333333vw;
        height: 1.11111111vw;
    }
    .site-header-menu-icon.open svg {
        width: 3.33333333vw;
        height: 1.73611111vw;   
    } */
}

@media (max-width: 375px) {
    .header-section .btn-primary {
        padding: 12.25px 10px;
        max-width: 120px;
        width: 100%;
    }

    .header-logo img {
        max-width: 120px;
    }
}

@media (max-height: 630px) {
    .menu-list {
        gap: 20px;
        align-items: center;
        margin-bottom: 40px;
        margin-top: 60px;
    }
}