.tradex-mobility-section,
.tradex-mobility-section * {
    box-sizing: border-box;
}

.tradex-mobility-section {
    position: relative;
    width: 100%;
    max-width: 1441px;
    margin: 0 auto;
    background: #0D0D0D;
    padding: 64px 60px 140px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #fff;
    overflow: hidden;
}

.tradex-mobility-section .tm-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 60%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.tradex-mobility-section .tm-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.tradex-mobility-section .tm-badge-wrap {
    display: flex;
    justify-content: center;
}

.tradex-mobility-section .tm-badge {
    display: inline-block;
    background: #fff;
    color: #0D0D0D;
    border-radius: 25px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.tradex-mobility-section .tm-title {
    margin: 0;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    line-height: 140%;
}

.tradex-mobility-section .tm-title-white {
    color: #fff;
}

.tradex-mobility-section .tm-title-red {
    color: #E10600;
}

.tradex-mobility-section .tm-desc {
    max-width: 1321px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 180%;
    color: #D9D9D9;
}

.tradex-mobility-section .tm-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 8px;
}

.tradex-mobility-section .tm-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 297px;
}

.tradex-mobility-section .tm-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-radius: 44px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}

.tradex-mobility-section .tm-tab:hover {
    background: rgba(160, 0, 0, .18);
}

.tradex-mobility-section .tm-tab-active,
.tradex-mobility-section .tm-tab-active:hover {
    background: #A00000;
}

.tradex-mobility-section .tm-tab-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #fff;
}

.tradex-mobility-section .tm-tab-icon svg {
    width: 100%;
    height: 100%;
}

.tradex-mobility-section .tm-card {
    position: relative;
    flex: 1 1 auto;
    max-width: 976px;
    min-height: 393px;
    background: #121212;
    border: 1px solid #383838;
    border-radius: 16px;
    padding: 12px 12px 12px 16px;
}

.tradex-mobility-section .tm-panel {
    position: absolute;
    inset: 12px 12px 12px 16px;
    display: flex;
    gap: 40px;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.tradex-mobility-section .tm-panel-active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
}

.tradex-mobility-section .tm-panel-text {
    flex: 1 1 auto;
    max-width: 476px;
    padding: 16px 0 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tradex-mobility-section .tm-panel-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.tradex-mobility-section .tm-panel-body {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 160%;
    color: #B8B8B8;
}

.tradex-mobility-section .tm-panel-image {
    flex: 0 0 424px;
    height: 369px;
    border-radius: 8px;
    overflow: hidden;
}

.tradex-mobility-section .tm-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .tradex-mobility-section {
        padding: 56px 40px 100px;
    }

    .tradex-mobility-section .tm-panel-image {
        flex-basis: 360px;
        height: 320px;
    }
}

/* === Mobile / Tablet: horizontal scrollable tab carousel (matches reference) === */
@media (max-width: 1024px) {
    .tradex-mobility-section {
        padding: 48px 16px 64px !important;
    }

    .tradex-mobility-section .tm-wrapper {
        gap: 32px !important;
    }

    .tradex-mobility-section .tm-title {
        font-size: 26px !important;
    }

    .tradex-mobility-section .tm-desc {
        font-size: 14px !important;
    }

    .tradex-mobility-section .tm-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .tradex-mobility-section .tm-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        gap: 12px !important;
        padding: 4px 16px !important;
        margin: 0 -16px !important;
        width: calc(100% + 32px) !important;
        flex: 0 0 auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tradex-mobility-section .tm-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .tradex-mobility-section .tm-tab {
        min-width: 148px !important;
        width: auto !important;
        height: 48px !important;
        padding: 12px 16px !important;
        gap: 10px !important;
        border-radius: 43px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        background: transparent;
        color: #FFFFFF !important;
        font-size: 14px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .tradex-mobility-section .tm-tab-active,
    .tradex-mobility-section .tm-tab-active:hover {
        background: #A00000 !important;
        color: #FFFFFF !important;
    }

    .tradex-mobility-section .tm-card {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
    }

    .tradex-mobility-section .tm-panel {
        position: relative !important;
        inset: auto !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .tradex-mobility-section .tm-panel:not(.tm-panel-active) {
        display: none !important;
    }

    .tradex-mobility-section .tm-panel-text {
        max-width: none !important;
        padding: 8px !important;
    }

    .tradex-mobility-section .tm-panel-image {
        flex-basis: auto !important;
        width: 100% !important;
        height: 240px !important;
    }
}

@media (max-width: 480px) {
    .tradex-mobility-section {
        padding: 32px 16px 48px !important;
    }

    .tradex-mobility-section .tm-title {
        font-size: 22px !important;
    }

    .tradex-mobility-section .tm-panel-title {
        font-size: 20px !important;
    }

    .tradex-mobility-section .tm-panel-image {
        height: 200px !important;
    }
}