﻿.home-steps {
    padding: 4px 0 22px;
}

.home-steps .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-steps .steps-title {
    margin-bottom: 16px;
}

.home-steps .steps-title span {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    color: #222;
    font-weight: 600;
    text-align: center;
}

.home-steps-list {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 14px;
}

.home-steps-item {display: flex;align-items: center;gap: 10px;}

.home-steps-item .img {
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF4EE;
}

.home-steps-item .img img {
    width: 46px;
    height: auto;
    display: block;
}

.home-steps-item .img img[src=""] {
    opacity: 0;
}

.home-steps-item .content {
    flex: 1;
}

.home-steps-item .stt {
    margin-bottom: 3px;
}

.home-steps-item .stt span {
    display: block;
    font-size: 14px;
    line-height: 1;
    color: #2d2d2d;
    font-weight: 600;
}

.home-steps-item .title {
    margin-bottom: 4px;
}

.home-steps-item .title span {
    display: block;
    font-size: 15px;
    color: var(--color-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-steps-item .description span {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-steps-list .space {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-steps-list .space i {
    font-size: 14px;
    color: var(--color-1);
}


/* Home steps responsive */
@media (max-width: 1023px) {
    .home-steps {
        padding: 8px 0 24px;
    }

    .home-steps .steps-title {
        margin-bottom: 10px;
    }

    .home-steps .steps-title span {
        font-size: 26px;
    }

    .home-steps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 12px;
    }

    .home-steps-list .space {
        display: none;
    }

    .home-steps-item {
        min-height: 126px;
        padding: 18px;
        gap: 14px;
        border: 1px solid var(--border-section);
        border-radius: 14px;
        background: var(--white);
        box-shadow: 0 4px 16px rgba(41, 27, 14, 0.04);
    }

    .home-steps-item .img {
        width: 62px;
        height: 62px;
        flex: 0 0 62px;
    }

    .home-steps-item .img img {
        width: 52px;
    }

    .home-steps-item .stt span {
        color: var(--color-1);
    }

    .home-steps-item .title span {
        font-size: 16px;
    }

    .home-steps-item .description span {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .home-steps {
        padding: 6px 0 22px;
    }

    .home-steps .container {
        align-items: stretch;
    }

    .home-steps .steps-title span {
        font-size: 24px;
    }

    .home-steps-list {
        position: relative;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 10px;
    }

    .home-steps-list::before {
        content: "";
        position: absolute;
        top: 34px;
        bottom: 34px;
        left: 31px;
        z-index: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--color-1), var(--border-card-8));
    }

    .home-steps-item {
        position: relative;
        z-index: 1;
        min-height: 108px;
        padding: 14px;
        gap: 14px;
    }

    .home-steps-item .img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border: 3px solid var(--white);
        box-shadow: 0 0 0 1px var(--border-card);
    }

    .home-steps-item .img img {
        width: 43px;
    }

    .home-steps-item .stt {
        margin-bottom: 4px;
    }

    .home-steps-item .stt span {
        font-size: 12px;
    }

    .home-steps-item .title span {
        font-size: 15px;
    }

    .home-steps-item .description span {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 374px) {
    .home-steps .steps-title span {
        font-size: 22px;
    }

    .home-steps-list::before {
        left: 27px;
    }

    .home-steps-item {
        padding: 12px 10px;
        gap: 11px;
    }

    .home-steps-item .img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .home-steps-item .img img {
        width: 39px;
    }
}
