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

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

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

.text-cards__title {
    padding-bottom: 25px;
}

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

.text-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 21px 30px;
    height: 100%;
    position: relative;
    top: 0;
}

.bg-white .text-card {
    border: 1px solid rgba(0, 0, 0, 0.7);
}

.text-card__details {
    font-size: 22px;
    color: #fff;
    line-height: 1.32em;
    font-weight: 500;
    position: relative;
    padding-right: 28px;
    width: 100%;
}

.bg-white .text-card__details {
    color: #000;
}

.text-card__details::after {
    content: '\e919';
    font-family: 'CCA-icon';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    color: #FFCE07;
    font-weight: normal;
    font-size: 26px;
    line-height: 1em;
}

.text-cards.bg-white .text-card:hover .text-card__details {
    color: #000;
}

@media (max-width: 1199px) {
    .text-cards.bg-white .text-cards__bg {
        display: none;
    }
}
@media (min-width: 768px) {

    .text-cards__headlines {
        padding-bottom: 13px;
    }
    
    .text-card-item {
        margin-top: 22px;
    }
    
}

@media (min-width: 1200px) {

    .text-cards__headlines {
        padding-bottom: 3px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .text-cards__title {
        padding-bottom: 0;
        width: calc(100% - 260px);
        max-width: 920px;
    }
    
    .text-card-item {
        margin-top: 37px;
    }
    
    .text-card {
        padding: 30px 39px;
        transition: all .3s;
    }

    .text-card__details {
        font-size: 25px;
        padding-right: 45px;
    }

    .text-card__details::after {
        font-size: 32px;
    }

    .text-card:hover {
        /* padding: 35px 39px; */
        border: 1px solid #fff;
        top: -5px;
    }

    .bg-white .text-card:hover {
        border: 1px solid #000;
    }

    .text-card:hover .text-card__details {
        color: #FFCE07;
    }
}

@media (min-width: 1600px) {

    .text-cards__headlines {
        padding-bottom: 12px;
        align-items: flex-end;
    }

    .text-cards__headlines .btn {
        margin-bottom: 5px;
    }

    .text-cards__title {
        max-width: 1300px;
        padding-right: 40px;
    }
    
    .text-card-item {
        margin-top: 38px;
    }
    
    .text-card {
        padding: 50px 39px;
    }

}