.fintech-history {
    --fh-active: #f58220;
    --fh-line: #e5e7eb;
    --fh-text: #161616;
    --fh-muted: #6b7280;
    --fh-bg-soft: #f6f6f6;
    width: 100%;
    color: var(--fh-text);
}

.fintech-history * {
    box-sizing: border-box;
}

.fintech-history__years {
    position: relative;
    width: 100%;
    padding: 0 0 35px;
    margin: 0 0 42px;
    overflow: hidden;
}

.fintech-history__years .swiper-wrapper {
    align-items: flex-start;
}

.fintech-history__year-slide {
    position: relative;
    text-align: center;
}

.fintech-history__year-button {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--fh-text);
    cursor: pointer;
    font: inherit;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 3;
}

.fintech-history__year-label {
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
    transition: .25s ease;
}

.fintech-history__dot {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 999px;
    background: var(--fh-line);
    transition: .25s ease;
}

.fintech-history__year-button.is-active .fintech-history__year-label {
    background: var(--fh-active);
    color: #fff;
}

.fintech-history__year-button.is-active .fintech-history__dot,
.fintech-history__year-button.is-complete .fintech-history__dot {
    background: var(--fh-active);
}

.fintech-history__track {
    height: 2px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 38px;
    z-index: 1;
    background: var(--fh-line);
    overflow: hidden;
}

.fintech-history__progress {
    display: block;
    width: 0;
    height: 100%;
    background: var(--fh-active);
    transition: width .4s ease;
}

/* Progress starts from the visual beginning in both LTR and RTL */
[dir="rtl"] .fintech-history__progress {
    margin-left: auto;
}

[dir="ltr"] .fintech-history__progress {
    margin-right: auto;
}

.fintech-history__content {
    width: 100%;
    overflow: hidden;
}

.fintech-history__content-slide {
    height: auto;
}

.fintech-history__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(35px, 6vw, 90px);
    align-items: center;
}

.fintech-history__media img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 0;
}

.fintech-history__body {
    min-width: 0;
}

.fintech-history__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--fh-bg-soft);
    color: var(--fh-active);
    font-size: 12px;
    line-height: 1.5;
}

.fintech-history__title {
    margin: 0 0 14px;
    color: var(--fh-text);
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1.35;
}

.fintech-history__description {
    color: var(--fh-text);
    line-height: 2;
}

.fintech-history__description p:last-child {
    margin-bottom: 0;
}

.fintech-history__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.fintech-history__arrows {
    display: flex;
    gap: 10px;
}

.fintech-history__prev,
.fintech-history__next {
    width: 43px;
    height: 43px;
    border: 1px solid #cfd2d7;
    border-radius: 999px;
    background: #fff;
    color: var(--fh-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: .2s ease;
}

.fintech-history__prev:hover,
.fintech-history__next:hover {
    border-color: var(--fh-active);
    color: var(--fh-active);
}

.fintech-history__prev.swiper-button-disabled,
.fintech-history__next.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.fintech-history__counter {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--fh-muted);
    font-size: 13px;
}

.fintech-history__current {
    color: var(--fh-active);
    font-weight: 700;
}

@media (max-width: 767px) {
    .fintech-history__years {
        margin-bottom: 26px;
    }

    .fintech-history__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fintech-history__body {
        order: 2;
    }

    .fintech-history__media {
        order: 1;
    }

    .fintech-history__title {
        font-size: 22px;
    }
}
