﻿.history__section {
    position: relative;
    width: 100vw;
    background-image: url(../image/company-history-Amarkets.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
}

.history__section > .vc_column_container {
    position: static;
}

.history-year {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    height: 500px;
    -webkit-margin-start: 75px;
    margin-inline-start: 75px;
}

.history-years__nav-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.history-years__nav {
    position: relative;
    z-index: 10;
    width: 102px;
    margin: 0;
    border-bottom: 0;
    border-top: 0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.history-years__nav-wrapper span {
    background-color: #e4eaed;
    border-radius: 50px;
    display: none;
    padding: 12px;
    width: 120px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    text-align: center;
}

.history-event {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 320px;
    margin-bottom: 24px;
    -webkit-margin-end: 24px;
    margin-inline-end: 24px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.history-event__media {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 0;
    width: 48px;
}

.history-event__media img {
    display: block;
}

.history-event__title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px;
}

.history-event__summary {
    color: #7c878f;
    font-size: 13px;
}

.history-event__summary > *:last-child {
    margin-bottom: 0;
}

.history-event__content {
    width: 100%;
}

.history-year .break {
    border: none;
    display: none;
    width: 100%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 0;
}

.history-years__wrapper {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: calc(100% - 102px);
}

.history-years {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.history-years__nav .row {
    height: 100%;
}

.history-years__nav-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

.history-years__nav-wrapper {
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
}

.history-years__nav-wrapper span:first-child,
.history-years__nav-wrapper span:last-child {
    width: 100%;
}

.about-history__content .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.about-history__content .overlay:after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100vw;
    height: 100%;
    background-image: url(../image/company-history-Amarkets.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.history-title,
.history-text {
    position: relative;
    z-index: 2;
}

.history-years__nav-slider {
    position: absolute;
    width: 102px;
    height: 388px;
    top: 56px;
    bottom: 56px;
    left: 0;
}

.history-years__nav-slider:after {
    content: '';
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    display: block;
    width: 6px;
    height: 100%;
    border-radius: 3px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.history-years__nav-slider:after {
    z-index: 0;
    background-color: #fff;
}

.history-years__nav-toggle {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    width: 32px;
    height: 56px;
    background-color: #fff;
    border-radius: 24px;
    border: 1px solid #e7ebef;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    cursor: -webkit-grab;
    cursor: grab;
}

.history-years__nav-toggle:before,
.history-years__nav-toggle:after {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 700;
}

.history-years__nav-toggle:before {
    content: '\f077';
}

.history-years__nav-toggle:after {
    content: '\f078';
}

.history-years__nav-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: 6px;
    border-radius: 3px;
    background-color: #6ebc60;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.history-years__list {
    position: relative;
    width: auto;
    inset-inline-start: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.wrap__history-raw {
    margin-bottom: 0 !important;
}

.history-dropdown-btn {
    display: none;
}

.arrow__button {
    position: absolute;
    top: 0;
    z-index: 3;
    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;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 33px;
    margin: 0;
    padding: 0;
}

.arrow__button:after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    font-family: sans-serif;
    background: url(../image/arrow-left.svg);
    background-repeat: no-repeat;
    background-position: center center;
}

.arrow__button.arrow__button--prev {
    left: 0;
}

.arrow__button.arrow__button--next {
    right: 0;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.rtl .arrow__button.arrow__button--prev {
    left: auto;
    right: 0;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.rtl .arrow__button.arrow__button--next {
    right: auto;
    left: 0;
    -webkit-transform: rotate(0);
    transform: rotate(0);
}

@media (min-width: 1201px) {

    .history-years__nav-wrapper span:first-child,
    .history-years__nav-wrapper span:last-child {
        display: block;
    }

    .arrow__button {
        display: none;
    }

    .history-years__nav-inner {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        height: 100%;
    }
}

@media (max-width: 1200px) {
    .history__section {
        background-image: none;
        background-color: #f3f5f6;
    }

    .history__section > .vc_column_container > .vc_column-inner {
        padding: 0 !important;
    }

    .history-years {
        display: block;
    }

    .history-year {
        width: auto;
        height: auto;
        height: 480px;
        margin: 0;
    }

    .history-years__nav {
        width: 100%;
        margin-bottom: 16px;
        margin-top: 24px;
        overflow: hidden;
    }

    .history-years__nav:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        z-index: 2;
        display: block;
        background: #f1f3f4;
        -webkit-filter: blur(13px);
        filter: blur(13px);
        width: 128px;
        height: 82px;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
    }

    .history-years__nav:after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        z-index: 2;
        display: block;
        background: #f1f3f4;
        -webkit-filter: blur(13px);
        filter: blur(13px);
        width: 128px;
        height: 82px;
        -webkit-transform: translateX(50%) translateY(-50%);
        transform: translateX(50%) translateY(-50%);
    }

    .history-years__nav-slider {
        display: none;
    }

    .history-years__nav-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 100%;
        height: auto;
        border: none;
        margin-bottom: 16px;
        margin-top: 24px;
    }

    .history-dropdown-btn {
        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;
        position: absolute;
        top: 0;
        right: 0;
        width: 43px;
        height: 43px;
        background-color: #fff;
        border: none;
        z-index: 11;
        padding: 0;
        margin: 0;
        border-radius: 0;
        outline: none;
    }

    .history-dropdown-btn:hover,
    .history-dropdown-btn:active {
        outline: none;
    }

    .history-dropdown-btn.active i {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .history-years__nav-wrapper span {
        position: static;
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        text-align: center;
        width: auto;
        height: 45px;
        padding: 0 9px;
        background-color: transparent;
        border-radius: 0;
        font-weight: 700;
        font-size: 26px;
        line-height: 25px;
        color: #a0b0c0;
    }

    .history-years__nav-wrapper span:first-child,
    .history-years__nav-wrapper span:last-child {
        width: auto;
    }

    .history-years__nav-wrapper span.swiper-slide-active {
        color: #252e37;
    }

    .history-years__nav-wrapper span:not(.swiper-slide-active) {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
    }

    .history-years__nav-wrapper {
        padding: 0 !important;
        margin: 0 auto;
        width: 100%;
    }

    .history-years__nav-inner {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .history-years__list .history-year {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        overflow: auto;
    }

    .history-event {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 20px;
        width: 80%;
        margin: 4px;
    }

    .history-event__media {
        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;
        width: 20px;
        height: 20px;
        margin-bottom: -20px;
    }

    .history-event__title {
        -webkit-padding-start: 34px;
        padding-inline-start: 34px;
    }

    .history-years__wrapper {
        width: 100%;
        margin: 0;
    }

    .history-year--hidden {
        display: none;
    }

    .history-years__list {
        position: static;
    }

    .about-history__content .overlay {
        display: none;
    }
}

@media (max-width: 400px) {
    .history-years__nav-wrapper span {
        font-size: 20px;
    }
}
