/* WRAPPER – horizontal scroll inside widget only */
.qtech-steps-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    --qtech-card-width-slim: 96px;
    --qtech-card-width-active: 520px;
}

/* TRACK */
.qtech-steps-track {
    display: flex;
flex-wrap: nowrap !important;
    gap: 24px;
    align-items: stretch;
    min-height: 260px;
}

/* CARD – base */
.qtech-step-card {
  flex: 0 0 110px; /* عرض ثابت 110px */
    background-color: #0f0f0f;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    transition:
        flex 0.75s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.6s ease,
        transform 0.75s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: stretch;
}

/* ACTIVE CARD */
.qtech-step-card.active {
    flex: 1 1 auto; /* ياخذ كل المساحة المتبقية */
    background-color: #171717;
}

/* INNER LAYOUT */
.qtech-step-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 28px;
    width: 100%;
}

/* MAIN COLUMN (text) */
.qtech-step-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
}

/* STEP NUMBER */
.qtech-step-number {
    font-size: 16px;
    font-weight: 600;
}

/* TITLE WRAPPER */
.qtech-step-title-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: visible;
}

/* TITLE – default (active) */
.qtech-step-card.active .qtech-step-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 26px;
    line-height: 1.2;
}

/* SLIM MODE – layout */
.qtech-step-card:not(.active) .qtech-step-inner {
    justify-content: center;
}

.qtech-step-card:not(.active) .qtech-step-main {
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/* NUMBER in slim mode */
.qtech-step-card:not(.active) .qtech-step-number {
    font-size: 16px;
}

/* TITLE – vertical in slim mode (مثل الفيديو) */
.qtech-step-card:not(.active) .qtech-step-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.85;
}

/* BODY & MEDIA – only for active card */
.qtech-step-card:not(.active) .qtech-step-body,
.qtech-step-card:not(.active) .qtech-step-media {
    display: none;
}

.qtech-step-body {
    max-width: 480px;
}

.qtech-step-desc {
    margin: 0 0 16px;
    font-size: 14px;
}

/* BUTTON */
.qtech-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 14px;
}

/* MEDIA */
.qtech-step-media {
    flex: 0 0 220px;
    max-width: 220px;
}

.qtech-step-media img,
.qtech-step-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

h3.qtech-step-title {
    min-height: 125px;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .qtech-steps-wrapper {
        --qtech-card-width-active: 420px;
        --qtech-card-width-slim: 80px;
    }
}

@media (max-width: 767px) {

    .qtech-steps-wrapper {
        --qtech-card-width-active: 90vw;
        --qtech-card-width-slim: 72px;
    }

    .qtech-step-inner {
        padding: 20px 18px;
        gap: 20px;
    }

    .qtech-step-media {
        display: none; /* موبايل بدون ميديا – أسهل وأخف */
    }
}
