h4.tp-section-title2 {
    font-size: 42px;
    padding-top: 20px;
    padding-bottom: 20px;
}
@media (max-width: 767px) {
    h4.tp-section-title2 {
        font-size: 28px;
    }
    .tp-feature-2-title {
        font-size: 18px !important;
    }
}
.step-wrapper .row {
    align-items: center;
    justify-content: center;
}

.step-wrapper .arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.step-wrapper .arrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-top: 2px solid #dd0733;
    border-right: 2px solid #dd0733;
}

.step-wrapper .right-arrow {
    transform: rotate(45deg);
}

.step-wrapper .col-xl-4.col-lg-4.col-md-6 {
    flex: 0 0 auto;
    /* width: calc(33.3% - 40px); */
    width: calc((100% - 80px) / 3); /* Độ rộng mỗi thẻ = (100% - 80px) / 3 */
}
@media (max-width: 768px) {
    .step-wrapper .col-xl-4.col-lg-4.col-md-6 {
        width: 100%;
    }
}
.step-wrapper .col-xl-4.col-lg-4.col-md-6:last-child {
    margin-right: 0;
}

.step-wrapper .tp-step-item-box {
    margin-bottom: 0;
}
.flip-card {
    background-color: transparent;
    width: 300px;
    perspective: 1000px;
    border-radius: 5px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    -webkit-transform-style: preserve-3d; /* Thêm dòng này cho Safari */
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg); /* Thêm dòng này cho Safari */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    min-height: 320px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    color: white;
    -webkit-perspective: 0;
    -webkit-transform: translate3d(0,0,0);
    visibility:visible;
}

.flip-card-front {
    color: black;
    background: #dd0733;
    /*max-height: 350px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
}

.flip-card-back {
    background-color: #dd0733 !important;
    color: white;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg); /* Thêm dòng này cho Safari */
    text-align: justify; /* Căn đều 2 bên */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa nội dung theo chiều dọc */
    align-items: center; /* Căn giữa nội dung theo chiều ngang */
    border-radius: 5px;
    padding: 20px;
}

.flip-card-back p {
    color: #ffffff;
    margin: 0;
}
.flip-card-back h5 {
    color: #ffffff;
}
.btn-us {
    margin-top: 320px;
}


@media (max-width: 991px) {
    .step-wrapper .row {
        flex-wrap: wrap;
    }

    .step-wrapper .col-xl-3.col-lg-4.col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }

    .step-wrapper .arrow-container {
        width: 100%;
        margin-bottom: 15px;
    }

    .step-wrapper .arrow {
        width: 20px;
        height: 20px;
    }

    .step-wrapper .right-arrow {
        transform: rotate(-225deg) !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .flip-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .flip-card-inner {
        min-height: 400px;
    }

    .flip-card-front, .flip-card-back {
        min-height: 400px;
    }

    .btn-us {
        margin-top: 0px;
    }

}

/* Mobile - Small screens */
@media (max-width: 575px) {
    .step-wrapper .col-xl-3.col-lg-4.col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .step-wrapper .arrow-container {
        display: none;
    }

    .tp-service-3-text p {
        font-size: 12px;
    }
    .tp-step-text p {
        font-size: 12px;
    }
}
/* WORKING STEPS */
.working-step {
    display: flex;
    flex-wrap: wrap;
}
.step-column {
    display: flex;
    flex-direction: column;
}
.tp-step-item-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
/* Sử dụng Flexbox để căn chỉnh nút */
.tp-step-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1; /* Đảm bảo tp-step-item chiếm hết chiều cao của tp-step-item-box */
}
.tp-step-text {
    flex-grow: 1; /* Cho phép tp-step-text giãn ra để chiếm không gian trống */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.tp-service-3-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Đẩy các phần tử tách xa nhau */
    height: 100%; /* Đảm bảo các thẻ có cùng chiều cao */
}

.tp-service-3-content {
    flex-grow: 1; /* Phần nội dung sẽ chiếm toàn bộ chiều cao còn lại */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Đảm bảo nội dung trên và nút dưới cùng cách nhau */
}

.tp-service-3-link {
    margin-top: auto; /* Đẩy nút "詳しく見る" xuống phía dưới */
}
.tp-feature-2-title {
    font-size: 22px;
}
.tp-service-3-title {
    font-size: 22px !important;
}
.tp-feature-2-item {
    padding: 30px;
}
.tp-step-text p {
    text-align: left;
}
.tp-feature-2-item.active .tp-feature-2-icon::after {
    opacity: 0 !important;
}