.main-header {
    width: 100%;
    position: relative;
    z-index: 10000;
}


.currency-header {
    width: 100%;
    height: 46px;
    background: #f0f2f4;
}

    .currency-header .container {
        padding-left: 0;
        padding-right: 0;
    }

.currency-header-wrap {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.currency-header-logo {
    display: none;
    flex-shrink: 0;
}

.currency-header-slider {
    height: 100%;
    overflow: hidden;
}

    .currency-header-slider .swiper-slide {
        width: auto;
    }

.currency-header-item {
    height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    position: relative;
    color: #000;
    white-space: nowrap;
}

    .currency-header-item span:after {
        content: '';
        width: 10px;
        height: 13px;
        margin-left: 5px;
        background-image: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.63318 4.35982C8.17595 5.01114 7.7128 6 6.86496 6L1.13504 6C0.287204 6 -0.175952 5.01114 0.36682 4.35982L3.23178 0.921864C3.63158 0.44211 4.36843 0.442111 4.76822 0.921865L7.63318 4.35982Z' fill='%23062849'/></svg>");
        background-repeat: no-repeat;
        background-position: center center;
    }

    .currency-header-item span {
        display: flex;
        align-items: center;
        font-weight: bold;
        font-size: 12px;
        color: var(--color-primary);
    }

        .currency-header-item span i {
            margin-left: 4px;
        }

    .currency-header-item strong {
        margin-top: 5px;
        font-size: 14px;
        font-weight: bold;
    }

    .currency-header-item.up, .currency-header-item.up span i {
        color: var(--color-green);
    }

        .currency-header-item.up span:after {
            margin-top: -3px;
            background-image: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.63318 4.35982C8.17595 5.01114 7.7128 6 6.86496 6L1.13504 6C0.287204 6 -0.175952 5.01114 0.36682 4.35982L3.23178 0.921864C3.63158 0.44211 4.36843 0.442111 4.76822 0.921865L7.63318 4.35982Z' fill='%233DB472'/></svg>");
        }

    .currency-header-item.down, .currency-header-item.down span i {
        color: var(--color-red);
    }

        .currency-header-item.down span:after {
            background-image: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.63318 4.35982C8.17595 5.01114 7.7128 6 6.86496 6L1.13504 6C0.287204 6 -0.175952 5.01114 0.36682 4.35982L3.23178 0.921864C3.63158 0.44211 4.36843 0.442111 4.76822 0.921865L7.63318 4.35982Z' fill='%23D51317'/></svg>");
        }

        .currency-header-item.down span:after {
            top: 7px;
            transform: rotate(180deg);
            -webkit-transform: rotate(180deg);
            -moz-transform: rotate(180deg);
            -ms-transform: rotate(180deg);
            -o-transform: rotate(180deg);
        }

    .currency-header-item.update-down {
        background-color: #ffbbbb;
    }

    .currency-header-item.update-up {
        background-color: #c4ffc4;
    }

    .currency-header-item.update span, .currency-header-item.update span i, .currency-header-item.update strong {
        color: #000;
    }

.header-menu .live-exchange-button {
    display: flex;
    margin: 20px 0 0 16px;
}

.live-exchange-button {
    display: none;
    flex-shrink: 0;
    width: 160px;
    height: 32px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background-color: var(--color-green);
    font-size: 12px;
    color: var(--color-white);
    font-weight: bold;
    line-height: 1.2;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}




.header-content {
    height: 64px;
    background-color: var(--color-blue);
}

.main-header.sticky {
    padding-top: 64px;
}

    .main-header.sticky .header-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

.header-content-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.main-logo {
    flex-shrink: 0;
}

    .main-logo a {
        text-indent: -9999px;
        font-size: 0;
    }

.header-menu {
    width: 100%;
    height: calc(100% - 110px);
    padding: 20px 0;
    background-color: var(--color-blue);
    position: fixed;
    top: 110px;
    left: -100%;
    transition: left .2s;
    -webkit-transition: left .2s;
    -moz-transition: left .2s;
    -ms-transition: left .2s;
    -o-transition: left .2s;
    overflow-y: auto;
}

    .header-menu.active {
        left: 0;
    }

.main-header.headerPosition {
    z-index: 9999999999;
} 

.main-header.sticky .header-menu.active {
    left: 0;
    top: 64px;
    height: calc(100% - 64px);
}

.main-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100% - 50px);
    overflow-y: auto;
}

.main-menu-item {
    position: relative;
}

    .main-menu-item > a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        font-size: 18px;
        font-weight: bold;
        color: var(--color-white);
        line-height: 1.25;
        position: relative;
        z-index: 2;
    }

    .main-menu-item .sub-menu-arrow {
        display: none;
        width: 50px;
        height: 46px;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }

.main-menu .sub-menu + .sub-menu-arrow {
    display: flex;
}

.main-menu-item .sub-menu-arrow:before {
    content: '';
    width: 18px;
    height: 9px;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    background-image: url("data:image/svg+xml;utf8,<svg width='18' height='9' viewBox='0 0 18 9' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M16.9201 0.950012L10.4001 7.47001C9.63008 8.24001 8.37008 8.24001 7.60008 7.47001L1.08008 0.950012' stroke='white' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center center;
}

.main-menu-item.active .sub-menu-arrow:before {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

.main-menu .sub-menu {
    display: none;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 16px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

    .main-menu .sub-menu li a {
        display: block;
        padding: 8px 16px;
        font-size: 14px;
        color: #afb1d3;
        font-weight: bold;
        line-height: 1.25;
        white-space: nowrap;
    }

        .main-menu .sub-menu li a:hover {
            background-color: #fff;
            color: var(--color-blue);
        }

.main-menu-item.active .sub-menu {
    display: block;
}



.header-search {
    flex-shrink: 0;
    width: 42px;
    height: 40px;
    display: flex;
    background-color: #363b90;
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    right: 56px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    overflow: hidden;
    transition: width .2s;
    -webkit-transition: width .2s;
    -moz-transition: width .2s;
    -ms-transition: width .2s;
    -o-transition: width .2s;
    -webkit-transform: translate(0px, -50%);
    -moz-transform: translate(0px, -50%);
    -ms-transform: translate(0px, -50%);
    -o-transform: translate(0px, -50%);
}

    .header-search input {
        width: 100%;
        height: 100%;
        padding: 0;
        color: rgba(255,255,255,.6);
        font-size: 14px;
        line-height: 1.22;
        overflow: hidden;
        transition: padding .2s;
        -webkit-transition: padding .2s;
        -moz-transition: padding .2s;
        -ms-transition: padding .2s;
        -o-transition: padding .2s;
    }

        .header-search input::-webkit-input-placeholder {
            color: rgba(255,255,255,.6);
        }

        .header-search input::-moz-placeholder {
            color: rgba(255,255,255,.6);
        }

        .header-search input::placeholder {
            color: rgba(255,255,255,.6);
        }

        .header-search input::-ms-input-placeholder {
            color: rgba(255,255,255,.6);
        }

    .header-search:focus-within input::placeholder {
        color: var(--color-primary);
    }

.header-search-button {
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.header-search:focus-within {
    background-color: var(--color-white);
}

    .header-search:focus-within input {
        color: var(--color-primary);
    }

    .header-search:focus-within .header-search-button svg path {
        stroke: var(--color-primary);
    }

.header-search-mobile-button {
    height: 100%;
    width: 40px;
    position: absolute;
    top: 0;
    right: 0;
}

.header-search.active {
    width: calc(100% - 50px);
}

    .header-search.active input {
        padding: 0 12px;
    }

    .header-search.active .header-search-mobile-button {
        display: none;
    }


.mobile-menu {
    margin-left: auto;
    display: block;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mobile-menu:before {
        content: '';
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3 7H21' stroke='white' stroke-width='1.5' stroke-linecap='round' /><path d='M3 12H21' stroke='white' stroke-width='1.5' stroke-linecap='round' /><path d='M3 17H21' stroke='white' stroke-width='1.5' stroke-linecap='round' /></svg>");
        background-repeat: no-repeat;
        background-position: center center;
    }

    .mobile-menu.active:before {
        background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9.16992 14.83L14.8299 9.17' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M14.8299 14.83L9.16992 9.17' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    }


@media (min-width:767px) {

    .mobile-menu, .header-search-mobile-button {
        display: none;
    }

    .header-menu {
        display: block;
        flex-grow: 1;
        height: auto;
        position: relative;
        top: auto;
        left: auto;
        padding: 0;
        overflow-y: inherit;
    }

    .currency-header-wrap {
        gap: 40px;
    }

    .currency-header .container {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .currency-header-item {
        padding: 0 20px;
    }

    .header-content, .header-content-wrap {
        height: 60px;
    }

    .header-menu .live-exchange-button {
        display: none;
    }

    .live-exchange-button {
        display: flex;
    }


    .main-header.sticky {
        padding-top: 46px;
    }

        .main-header.sticky .currency-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
            z-index: 101;
        }

        .main-header.sticky .currency-header-wrap {
            gap: 50px;
        }

        .main-header.sticky .currency-header > .container {
            max-width: inherit;
        }

        .main-header.sticky .currency-header-logo {
            display: block;
        }

        .main-header.sticky .header-content {
            position: relative;
            top: auto;
            left: auto;
        }

    .header-search, .header-search.active {
        width: 218px;
        position: relative;
        top: auto;
        right: auto;
        transform: translate(0,0);
        -webkit-transform: translate(0,0);
        -moz-transform: translate(0,0);
        -ms-transform: translate(0,0);
        -o-transform: translate(0,0);
    }

        .header-search input {
            padding: 0 12px;
        }

        .header-search, .header-search.active {
            width: 100px;
            height: 34px;
        }

            .header-search input {
                padding: 0 5px;
                font-size: 12px;
            }

    .header-search-button {
        padding: 0 7px;
    }

        .header-search-button svg {
            width: 14px;
            height: 14px;
        }

    .main-menu {
        flex-direction: row;
        justify-content: center;
        max-height: inherit;
        overflow-y: inherit;
    }

    .main-menu-item > a {
        height: 60px;
        display: flex;
        align-items: center;
        padding: 0 3px;
        font-size: 12px;
        font-weight: bold;
        color: var(--color-white);
        line-height: 1.25;
        position: relative;
        z-index: 2;
    }

    .main-menu-item .sub-menu-arrow, .main-menu .sub-menu + .sub-menu-arrow {
        display: none;
    }

    .main-menu-item:hover > a {
        color: var(--color-blue);
    }

    .main-menu-item:hover:after {
        content: '';
        width: 100%;
        height: 50px;
        background-color: var(--color-white);
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 1;
        -webkit-border-top-left-radius: 4px;
        -webkit-border-top-right-radius: 4px;
        -moz-border-radius-topleft: 4px;
        -moz-border-radius-topright: 4px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .main-menu-item:hover .sub-menu {
        display: block;
    }

        .main-menu-item:hover .sub-menu.two-column {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }



    .main-menu .sub-menu {
        display: none;
        max-height: inherit;
        position: absolute;
        top: 50px;
        left: 0;
        margin: 0;
        background: #fff;
        overflow: hidden;
        z-index: 5;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        -webkit-border-radius: 4px;
        -webkit-border-top-left-radius: 0;
        -moz-border-radius: 4px;
        -moz-border-radius-topleft: 0;
        border-radius: 4px;
        border-top-left-radius: 0;
    }

        .main-menu .sub-menu li a {
            display: block;
            font-size: 12px;
            color: var(--color-primary);
            font-weight: bold;
            white-space: nowrap;
            height: auto;
        }

            .main-menu .sub-menu li a:hover {
                background-color: #eaeaf3;
                color: var(--color-blue);
            }
}

@media (min-width:992px) {
}

@media (min-width:1200px) {
    .main-header.sticky .currency-header-wrap {
        gap: 100px;
    }

    .header-search, .header-search.active {
        width: 150px;
        height: 40px;
    }

        .header-search input {
            padding: 0 12px;
        }

    .header-search-button {
        padding: 0 12px;
    }

        .header-search-button svg {
            width: 18px;
            height: 18px;
        }

    .main-menu-item > a {
        font-size: 14px;
        padding: 0 5px;
    }

    .main-menu .sub-menu li a {
        font-size: 14px;
    }
}

@media (min-width:1400px) {
    .header-search, .header-search.active {
        width: 218px;
    }

        .header-search input {
            font-size: 14px;
        }

    .main-menu-item > a {
        font-size: 16px;
        padding: 0 8px;
    }
}
