/* howto.css - Compact Premium "How to Download" Design */

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.how-to-section {
    padding: 48px 16px 12px;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.how-to-section .container {
    max-width: 880px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}


.steps-path {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    position: relative;
}

.step-row:nth-child(even) .step-content {
    order: 2;
}

.step-row:nth-child(even) .step-image-wrap {
    order: 1;
}



/* Text Side */
.step-content {
    flex: 1;
    max-width: 500px;
}

.step-number {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.05em;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: #64748b;
}

/* Image Side */
.step-image-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.image-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card:hover {
    transform: translateY(-4px);
}

.image-card img {
    width: 200px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.08));
}

/* Responsive — keep side-by-side even on small screens */
@media (max-width: 640px) {
    .how-to-section {
        padding: 32px 16px;
    }


    .steps-path {
        gap: 32px;
    }

    .step-row,
    .step-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .step-content {
        order: 1 !important;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-image-wrap {
        order: 2 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .step-content h3 {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .step-content p {
        font-size: 1.05rem;
        max-width: 400px;
        margin-bottom: 4px;
    }

    .image-card img {
        width: 180px;
        max-height: 280px;
    }

    .image-card {
        padding: 0;
        box-shadow: none;
    }
}

/* RTL Support */
[dir="rtl"] .step-row:nth-child(even) {
    flex-direction: row;
}

[dir="rtl"] .step-row:nth-child(odd) {
    flex-direction: row-reverse;
}

[dir="rtl"] .step-content {
    text-align: right;
}