﻿.card-flex {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    background: #fff;
    border-radius: 5px;
    padding: 27px 25px 37px 25px;
    box-shadow: 0 0 30px rgba(62,38,57,0.26);
}

.card__img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 188px;
}

.card__img {
    right: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: top;
       object-position: top;
}

.card__details {
    padding: 28px 0 50px 0 ;
}

.card__description {
    text-decoration: none;
    -webkit-text-decoration-color: transparent;
    text-decoration-color: transparent;
    color: #484848;
    font-weight: 400;
}

.card__title {
    padding-bottom: 15px;
    color: #333333;
    font-size: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.cards__headlines {
    padding-bottom: 40px;
}

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

.cards__headlines p {
    font-weight: 600;
    font-size: 16px;
}

@media (min-width: 768px) {

    .card {
        padding: 22px 14px 24px 14px;
    }
    
    .card__img-wrap {
        height: 191px;
    }

    .card__details {
        padding:  16px 0 28px 0 ;
    }

    .cards__headlines {
        padding-bottom: 35px;
    }

    .cards__headlines p {
        font-size: 20px;
    }

}

@media (min-width: 1200px) {

    .card {
        padding: 38px 29px 30px 29px;
        transition: transform .2s linear;
    }

    .card:hover {
        transform: translate3d(0,-5px,0);
    }

    .card:hover .btn::after {
        top: 50%;
        width: 100%;
        height: 100%;
      }

    
    .card__img-wrap {
        height: 241px;
    }

    .card__details {
        padding:  21px 0 25px 0 ;
    }

    .cards__headlines {
        padding-bottom: 62px;
    }

    .cards__headlines p {
        font-size: 25px;
    }

}