/* How It Works Section
   ========================================================================== */

.home-how-it-works {
    padding: 80px 0 100px;
    background-color: #f8fafe;
}

.home-how-it-works .section-title.text-center {
    text-align: center;
    margin-bottom: 60px;
}

.home-how-it-works .section-title__title {
    margin-bottom: 0;
}

/* Steps layout */
.how-it-works-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-it-works-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    position: relative;
}

.how-it-works-connector {
    display: flex;
    align-items: center;
    padding-top: 50px; /* Align with step-icon center */
    flex-shrink: 0;
}

/* Step number */
.step-number {
    font-family: "Britanica", sans-serif;
    font-size: 0.75em;
    font-weight: 800;
    color: #18b0a8;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.step-number::before {
    content: "STEP ";
}

/* Step icon */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(24, 176, 168, 0.1);
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

/* Step title */
.step-title {
    font-family: "Britanica", sans-serif;
    font-size: 1.125em;
    font-weight: 700;
    color: #46455b;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Step description */
.step-description {
    font-family: "Britanica", sans-serif;
    font-size: 0.9375em;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

/* CTA button */
.how-it-works-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================================================
   Responsive
   ======================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .how-it-works-step {
        max-width: 200px;
    }

    .step-title {
        font-size: 1em;
    }

    .step-description {
        font-size: 0.875em;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-how-it-works {
        padding: 60px 0 70px;
    }

    .how-it-works-steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .how-it-works-step {
        max-width: 320px;
        width: 100%;
    }

    .how-it-works-connector {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .step-icon {
        width: 64px;
        height: 64px;
    }

    .step-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .home-how-it-works {
        padding: 40px 0 50px;
    }

    .home-how-it-works .section-title.text-center {
        margin-bottom: 40px;
    }

    .how-it-works-cta {
        margin-top: 35px;
    }
}
