﻿/* ==========================================================
   How It Works Section
   ========================================================== */

.how-section {
    padding-top: 55px;
    padding-bottom: 75px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(246, 243, 238, 1)), var(--color-background);
}

.how-container {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.how-header {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
}


/* ==========================================================
   Steps
   ========================================================== */

.how-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

    .how-steps::before {
        content: "";
        position: absolute;
        left: 30px;
        top: 24px;
        bottom: 24px;
        width: 1px;
        background: linear-gradient( 180deg, transparent, rgba(191, 196, 201, .85), transparent );
    }

.how-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    align-items: start;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(191, 196, 201, .42);
    box-shadow: 0 18px 45px rgba(68, 72, 77, .07);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

    .how-step:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(68, 72, 77, .12);
        border-color: rgba(191, 196, 201, .85);
    }

.how-step-number {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-text), #5B6066);
    color: var(--color-background);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(68, 72, 77, .18);
}

.how-step-content h3 {
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.how-step-content p {
    color: var(--color-neutral-dark);
    font-size: 15.5px;
    line-height: 1.85;
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .how-header {
    text-align: right;
}

html[dir="rtl"] .how-steps::before {
    left: auto;
    right: 30px;
}

html[dir="rtl"] .how-step {
    grid-template-columns: 64px 1fr;
    direction: rtl;
    text-align: right;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 992px) {
    .how-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .how-header {
        position: static;
        text-align: center;
        margin-inline: auto;
    }

    html[dir="rtl"] .how-header {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .how-section {
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .how-step {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
    }

    .how-steps::before {
        display: none;
    }

    .how-step-number {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .how-step-content h3 {
        font-size: 21px;
    }
}
