:root {
    --brand-blue: #1769aa;
    --brand-blue-dark: #0d4f82;
    --brand-red: #d93232;
    --ink: #182433;
    --muted: #5f6f7f;
    --line: #e3e9ef;
    --surface: #f5f8fb;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

.container {
    width: min(100% - 48px, var(--container));
    max-width: var(--container) !important;
}

.body {
    min-height: 60vh;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 66px;
    background: rgb(8 165 248 / 36%);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
}

.header.is-scrolled {
    height: 66px;
    background: rgba(10, 28, 44, .96);
    box-shadow: 0 10px 30px rgba(8, 28, 46, .16);
}

.header nav {
    height: 100%;
    align-items: center;
}

.header .logo {
    display: flex;
    flex: 0 0 172px;
    align-items: center;
    height: 100%;
    padding: 8px 0;
}

.header .logo img {
    display: block;
    width: auto;
    max-width: 120px;
    max-height: 58px;
    object-fit: contain;
}

.header .header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    width: auto;
    height: 100%;
    margin: 0;
    padding: 0;
}

.header .header-nav > li {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    list-style: none;
}

.header .header-nav > li > a {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;
    padding: 0 24px;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: default;
    transition: color .2s ease;
}

.header .header-nav > li > a[href] {
    cursor: pointer;
}

.header .header-nav > li > a::after {
    position: absolute;
    right: 24px;
    bottom: 15px;
    left: 24px;
    height: 2px;
    background: #fff;
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.header .header-nav > li:hover > a,
.header .header-nav > li > a.active {
    color: #fff;
}

.header .header-nav > li:hover > a::after,
.header .header-nav > li > a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header .sub-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    display: block;
    min-width: 164px;
    margin: 0;
    padding: 8px;
    visibility: hidden;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(18, 48, 72, .08);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(10, 31, 48, .2);
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.header .header-nav li:hover .sub-nav,
.header .header-nav li:focus-within .sub-nav {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.header .sub-nav li {
    width: 100%;
    height: auto;
    list-style: none;
    background: transparent;
}

.header .sub-nav li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    transition: color .2s ease, background-color .2s ease;
}

.header .sub-nav li a:hover {
    color: var(--brand-blue);
    background: #eef6fc;
}

.header .sub-nav img,
.header .header-nav > li:last-child > a img {
    width: 22px;
    height: 15px;
    margin-right: 7px;
    object-fit: cover;
}

/* Mobile navigation */
.mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1001;
    height: 58px;
    background: rgba(10, 28, 44, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 24px rgba(8, 28, 46, .12);
}

.mobile-header nav {
    height: 100%;
    align-items: center;
}

.mobile-header .logo {
    display: flex;
    align-items: center;
    width: 110px !important;
    height: 100%;
    padding: 6px 0;
}

.mobile-header .logo img {
    width: auto;
    max-width: 82px;
    max-height: 46px;
}

.mobile-language {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.mobile-language img {
    width: 20px;
    height: 14px;
    margin-right: 6px;
    object-fit: cover;
}

.mobile-header .navbar-toggler {
    display: grid;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
}

#mobile-navbar {
    position: fixed;
    top: 58px;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 8px 24px 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 30px rgba(8, 28, 46, .14);
}

#mobile-navbar .header-nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

#mobile-navbar .header-nav li {
    min-height: 0;
    list-style: none;
}

#mobile-navbar .header-nav a {
    display: block;
    width: 100%;
    height: auto;
    padding: 13px 4px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

#mobile-navbar .header-nav li:last-child a {
    border-bottom: 0;
}

/* Shared banners */
.contact-banner {
    position: relative;
    overflow: hidden;
    background: #16344e;
}

.contact-banner img {
    display: block;
    width: 100%;
    min-height: 260px;
    max-height: 480px;
    object-fit: cover;
}

.motion-ready .contact-banner img {
    animation: page-banner-enter 1.15s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes page-banner-enter {
    from {
        opacity: .35;
        transform: scale(1.055);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
footer {
    position: relative;
    padding: 58px 0 22px;
    color: rgba(255, 255, 255, .72);
    background: #101b25;
    border-top: 3px solid var(--brand-red);
}

footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, .08);
    content: "";
}

.footer-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 21px;
    font-weight: 650;
}

footer h6 {
    max-width: 720px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.footer-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 6px;
}

footer nav {
    width: 100%;
}

footer nav a {
    display: block;
    padding: 10px 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transition: color .2s ease, border-color .2s ease;
}

footer nav a:hover {
    color: #fff;
    text-decoration: none;
    border-color: var(--brand-red);
}

.foot-copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 36px;
    padding-top: 18px;
    color: rgba(255, 255, 255, .48);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    text-align: center;
}

.foot-copyright.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

.copyright-separator {
    color: rgba(255, 255, 255, .34);
}

.foot-copyright a {
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    transition: color .2s ease;
}

.foot-copyright a:hover {
    color: #fff;
}

#top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 900;
    display: none;
    width: 46px;
    height: 46px;
    background: var(--brand-blue) url(../image/top.svg) no-repeat center;
    background-size: 24px 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(23, 105, 170, .28);
    transition: transform .2s ease, background-color .2s ease;
}

#top:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-3px);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-from-left {
    transform: translateX(-34px);
}

.reveal-on-scroll.reveal-from-right {
    transform: translateX(34px);
}

.reveal-on-scroll.reveal-scale {
    transform: translateY(14px) scale(.965);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.motion-ready .header .logo {
    animation: nav-enter .65s cubic-bezier(.22, 1, .36, 1) both;
}

.motion-ready .header .header-nav > li {
    animation: nav-enter .65s cubic-bezier(.22, 1, .36, 1) both;
}

.motion-ready .header .header-nav > li:nth-child(2) {
    animation-delay: 60ms;
}

.motion-ready .header .header-nav > li:nth-child(3) {
    animation-delay: 120ms;
}

.motion-ready .header .header-nav > li:nth-child(4) {
    animation-delay: 180ms;
}

.motion-ready .header .header-nav > li:nth-child(5) {
    animation-delay: 240ms;
}

.motion-ready .header .header-nav > li:nth-child(6) {
    animation-delay: 300ms;
}

@keyframes nav-enter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

@media (max-width: 1199px) {
    .header .header-nav > li > a {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
    }

    .header .header-nav > li > a::after {
        right: 16px;
        left: 16px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, var(--container));
        padding-right: 0;
        padding-left: 0;
    }

    .body {
        padding-top: 58px;
    }

    .contact-banner img {
        min-height: 190px;
        max-height: 280px;
    }

    footer {
        padding: 42px 0 20px;
    }

    footer .col-lg-6 + .col-lg-6 {
        margin-top: 20px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer nav a {
        text-align: left;
    }

    .foot-copyright {
        justify-content: flex-start;
        margin-top: 26px;
        text-align: left;
    }

    #top {
        right: 14px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
