.how-it-works {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.how-it-works h2 {
    font-size: 2.2em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.how-it-works .steps {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.content-wrapper {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-it-works .step {
    flex: 1;
    background: #181818;
    border-bottom: 4px solid #222222;
    width: 400px;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s ease-in-out, transform 0.2s ease-in-out;

    position: relative;
    display: flex;
}

.how-it-works .step span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 10px;
}

.how-it-works .step h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.how-it-works .step p {
    position: relative;
    color: #ffffff;
}

.how-it-works .step.show {
    opacity: 1;
    transform: translateY(0);
}
.how-it-works,
.steps {
    width: 100%;
}

.how-it-works .step::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--glow-color);
    transition: width 0.4s ease-in-out;
}

.how-it-works .step:hover::after {
    width: 100%;
}

@media (min-width: 376px) and (max-width: 575px) {
    .how-it-works .steps {
        display: flex;
        gap: 73px;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .how-it-works .steps .step p {
        padding: 0 20%;
    }
    .how-it-works .steps .step {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .how-it-works .steps {
        display: flex;
        gap: 73px;
        flex-wrap: nowrap;
        flex-direction: column;
    }
    .how-it-works .steps .step {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .how-it-works {
        width: 100%;
    }

    .how-it-works .steps {
        flex-direction: column;
        gap: 100px;
    }

    .how-it-works .steps .step {
        width: 100%;
    }

    .how-it-works .steps .step p {
        padding: 0 20%;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    .template main {
        max-width: 1024px;
    }
}

@media (max-width: 375px) {
    .how-it-works .steps {
        flex-direction: column;
        gap: 100px;
    }

    .how-it-works .steps .step p {
        padding: 0 20%;
    }
}
