
.trading-steps-section {
    max-width: 1400px;
    margin: 40px auto;
}

.ts-container {
    background-color: var(--color-navy-blue-extra-dark);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-black-trans-10);
}

.ts-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: min(max(40px, calc(2.5rem + (50 - 40) * ((100vw - 390px) / (1440 - 390)))), 50px) min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px) min(max(45px, calc(2.8125rem + (55 - 45) * ((100vw - 390px) / (1440 - 390)))), 55px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 212px;
    justify-content: center;
}

.ts-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ts-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000066;
    z-index: 2;
}

.ts-header-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: self-start;
    text-align: left;
    gap: 24px;
    width: 100%;
}

.ts-text-group {
    color: var(--color-white);
}

.ts-title {
    color: var(--color-white) !important;
    font-size: var(--font-size-h3) !important;
    line-height: var(--line-height-h3) !important;
    font-weight: 500 !important;
    margin-bottom: 20px;
    max-width: 650px;
}

.ts-subtitle {
    font-size: var(--font-size-body-r);
    color: var(--color-white);
    line-height: var(--line-height-body-r);
}

.ts-subtitle p {
    font-size: var(--font-size-body-r);
    color: var(--color-white);
    line-height: var(--line-height-body-r);
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cyan-light);
    color: var(--color-navy-blue);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-body-r);
    overflow: hidden;
    transition: background-color 0.4s cubic-bezier(0.77, 0, 0.175, 1), color 0.4s cubic-bezier(0.77, 0, 0.175, 1), transform 0.3s ease;
}

.trading-steps-section a:focus {
    background: transparent;
    outline: none;
    text-decoration: none;
}

.ts-btn:focus {
    background-color: var(--color-cyan-light);
}

.ts-btn:hover {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.ts-btn-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: var(--line-height-body-r);
    line-height: var(--line-height-body-r);
    vertical-align: middle;
}

.ts-btn-label {
    display: block;
    height: var(--line-height-body-r);
    line-height: var(--line-height-body-r);
    white-space: nowrap;
    color: var(--color-navy-blue);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), color 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.ts-btn-label.clone {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: var(--color-white);
}

.ts-btn:hover .ts-btn-label {
    transform: translateY(-100%);
    color: var(--color-white);
}

.ts-btn-divider {
    width: 1px;
    height: 16px;
    background-color: var(--color-navy-blue-dark-trans-30);
    margin: 0 12px;
    transition: background-color 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.ts-btn:hover .ts-btn-divider {
    background-color: var(--color-white-trans-40);
}

.ts-body {
    padding: min(max(45px, calc(2.8125rem + (70 - 45) * ((100vw - 390px) / (1440 - 390)))), 70px) min(max(30px, calc(1.875rem + (60 - 30) * ((100vw - 390px) / (1440 - 390)))), 60px) min(max(50px, calc(3.125rem + (75 - 50) * ((100vw - 390px) / (1440 - 390)))), 75px);
    min-height: 0vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
}

.ts-steps-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
    margin-right: min(max(20px, calc(1.25rem + (60 - 20) * ((100vw - 390px) / (1440 - 390)))), 60px);
    min-height: 0vw;
}

.ts-step {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
    padding-right: min(max(20px, calc(1.25rem + (48 - 20) * ((100vw - 390px) / (1440 - 390)))), 48px);
    min-height: 0vw;
}

.ts-step-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.ts-step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: var(--font-size-lead-in-3) !important;
    line-height: var(--line-height-lead-in-3) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.ts-step-line {
    display: block;
    flex: 1;
    height: 1px;
    background-color: var(--color-white-trans-40);
    margin-left: 40px;
}

.ts-line-hidden {
    display: none;
}

.ts-step-content {
    color: var(--color-white);
}

.ts-step-title {
    font-size: var(--font-size-lead-in-3) !important;
    line-height: var(--line-height-lead-in-3) !important;
    font-weight: 500 !important;
    margin-bottom: 10px;
    color: var(--color-white) !important;
}

.ts-step-desc {
    font-size: var(--font-size-body-r);
    line-height: var(--line-height-body-r);
    color: var(--color-white);
    text-align: left;
    padding-right: 20px;
}

.ts-step-desc p {
    color: var(--color-white);
    font-size: var(--font-size-body-r);
    line-height: var(--line-height-body-r);
}

.ts-apps {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: min(max(20px, calc(1.25rem + (60 - 20) * ((100vw - 390px) / (1440 - 390)))), 60px);
    min-height: 0vw;
    gap: 30px;
}

.ts-app-link {
    display: inline-block;
    line-height: 0;
}

.ts-app-img {
    height: auto !important;
    max-width: 160px !important;
    width: 100% !important;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 990px) {
    .ts-header {
        flex-direction: row;
    }

    .ts-header-content {
        flex-direction: column;
    }

    .ts-body {
        flex-direction: column;
    }

    .ts-steps-wrapper {
        margin-right: 0;
    }

    .ts-apps {
        flex-direction: row;
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .media-posts-section {
        margin-top: 10px;
    }

    .ts-header {
        min-height: auto;
    }

    .ts-header-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 25px;
    }

    .ts-title {
        font-size: var(--font-size-lead-in-2) !important;
        line-height: var(--line-height-lead-in-2) !important;
        margin-bottom: 8px;
        text-align: center !important;
        margin-top: 0;
    }

    .ts-body {
        flex-direction: column;
    }

    .ts-steps-wrapper {
        flex-direction: column;
        gap: 35px;
        margin-right: 0;
    }

    .ts-step {
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-right: 0;
    }

    .ts-step-header {
        justify-content: center;
    }

    .ts-step-number {
        width: 46px;
        height: 46px;
    }

    .ts-step-line {
        display: none;
    }

    .ts-step-title {
        font-size: var(--font-size-lead-in-4) !important;
        line-height: var(--line-height-lead-in-4) !important;
        margin-bottom: 8px;
        text-align: center !important;
        margin-top: 0;
    }

    .ts-step-desc {
        text-align: center;
        padding-right: 0px;
    }

    .ts-apps {
        flex-direction: row;
        border-left: none;
        padding-left: 0;
        gap: 10px;
        justify-content: center;
        margin-top: 10px;
    }

    .ts-app-link {
        height: 40px;
    }

    .ts-app-img {
        max-width: 100px;
        border-radius: 5px;
        height: 100% !important;
    }
}
