.text-cards {
    position: relative;
    z-index: 1;
}

.text-cards--homepage {
    padding: 50px 0 58px;
}

.text-cards__bg {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-cards__curve {
    position: absolute;
    z-index: -1;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
}

.car-right {
    position: absolute;
    z-index: 0;
    top: 190px;
    right: -25px;
    width: 139px;
    height: 59px;
    aspect-ratio: 189/90;
}

.car-left {
    position: absolute;
    z-index: -1;
    bottom: -29px;
    left: -17px;
    height: 68px;
    width: 160px;
    aspect-ratio: 654/277;
}

.text-cards__headlines {
    padding-bottom: 14px;
}

.text-cards__headlines .btn+.btn {
    margin: 0 0 0 20px;
}

.text-card-item {
    margin-top: 16px;
    padding-top: 33px;
}

.text-card {
    display: block;
    position: relative;
    border: none;
    background: #fff;
    border-radius: 35px !important;
    box-shadow: 0 6px 25px rgba(0, 20, 31, 0.05);
    padding: 45px 29px 30px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.text-card__image {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, rgba(213, 239, 255, 1) 0%, rgba(247, 252, 255, 1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1em;
    font-weight: normal;
    color: #006FAC;
}

.text-card__title {
    color: #00141F !important;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.text-card__description p {
    color: #4D5255;
    font-weight: 300;
    margin-bottom: 15px;
}

.bg-medium-blue .text-cards__headlines__btns .btn-tertiary {
    color: #fff;
}

.bg-medium-blue .text-cards__headlines__btns .btn-tertiary:before {
    color: #fff;
}

@media (min-width: 435px) {
    .car-right {
        top: 300px;
    }
}

@media (min-width: 768px) {

    .text-cards--homepage {
        padding: 70px 0 50px;
    }

    .car-right {
        top: 406px;
        right: -73px;
        height: 125px;
        width: 296px;
    }

    .car-left {
        bottom: -40px;
        left: -60px;
        width: 342px;
        height: 145px;
    }

    .text-cards__headlines {
        padding-bottom: 30px;
    }

    .text-cards__headlines .btn+.btn {
        margin: 0 0 0 35px;
    }

    .text-card-item {
        margin-top: 20px;
        padding-top: 50px;
    }

    .text-card {
        padding: 65px 50px 35px;
        width: 432px;
    }

    .text-card__image {
        top: -50px;
        width: 100px;
        height: 100px;
        font-size: 55px;
    }

    .text-card__image.image_image img {
        width: 55px;
        height: 55px;
    }

    .text-card__title {
        margin: 0 0 20px 0;
        font-size: 28px;
    }

    .text-card__description p {
        margin-bottom: 20px;
    }

    .text-card-item:nth-child(2) .text-card {
        margin-left: auto;
        margin-right: auto;
    }

    .text-card-item:nth-child(3) .text-card {
        margin-left: auto;
    }
}


@media (min-width: 1200px) {

    .text-cards--homepage {
        padding: 70px 0 75px;
    }

    .car-right {
        top: 210px;
        right: -80px;
        height: 277px;
        width: 567px;
    }

    .car-left {
        bottom: -85px;
        left: -50px;
        width: 654px;
        height: 277px;
    }

    .text-cards__headlines {
        padding-bottom: 75px;
    }

    .text-card-item {
        margin-top: 0;
    }

    .text-card {
        width: 100%;
    }

    .text-card__title {
        font-size: 36px;
    }

    .text-card:hover {
        background: #fff;
        transform: translateY(-10px);
    }

    .text-card-item:nth-child(2) .text-card {
        margin-left: 0;
        margin-right: 0;
        margin-top: 100px;
    }

    .text-card-item:nth-child(3) .text-card {
        margin-left: 0;
        margin-top: 200px;
    }

    .text-card:hover .btn-tertiary {
        color: #CD278A;
    }

    .text-card:hover .btn-tertiary:before {
        color: #CD278A;
        background-image: url('/wp-content/themes/jbsindustries/assets/img/btn-link-arrow-h.png');
    }
}


.text-cards__headlines__btns .btn {
    margin: 0 !important;
}

.text-cards__headlines__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.text-cards--innerpage .text-card-item .text-card {
    margin: 0 !important;
    height: 100%;
    width: 100%;
}

.text-cards--innerpage .text-card-item {
    margin-top: 20px;
}

.text-cards--innerpage {
    z-index: 3;
}

.text-cards--innerpage {
    padding: 50px 0 35px;
    margin: 0 0 50px;
}

@media (min-width: 768px) {
    .text-cards--innerpage .text-card {
        padding: 65px 25px 0 25px;
    }

    .text-cards__headlines__btns {
        gap: 0 35px;
    }

    .text-cards--innerpage .text-cards__headlines {
        padding-bottom: 20px;
    }

    .text-cards--innerpage .text-card-item {
        margin-top: 30px;
    }

    .text-cards--innerpage .text-card__description p {
        margin-bottom: 80px;
    }

    .text-cards--innerpage .text-card__details .btn {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        bottom: 35px;
    }

    .text-cards--innerpage .text-card-flex {
        justify-content: center;
    }

    .text-cards--innerpage {
        padding: 70px 0 35px;
        margin: 0 0 35px;
    }
}


@media (min-width: 1200px) {
    .text-cards--innerpage .text-card-item {
        margin-top: 32px;
    }

    .text-cards--innerpage .text-cards__headlines {
        padding-bottom: 43px;
    }

    .text-cards--innerpage .text-card {
        padding: 65px 50px 0 50px;
    }

    .text-cards--innerpage {
        padding: 175px 0 75px;
        margin: 0 0 100px;
    }

    .bg-medium-blue .text-cards__headlines__btns .btn-tertiary:hover {
        color: #FCDD31;
    }

    .bg-medium-blue .text-cards__headlines__btns .btn-tertiary:hover:before {
        color: #FCDD31;
    }
}