﻿
.cards {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
}

.cards .image {
    height: 270px;
    min-height: 270px;
    width: 100%;
    position: relative;
}

.cards .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

.cards .image .decoration {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
}

.cards .content {
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards a {
    width: fit-content;
}

.cards article {
    max-width: 370px;
    width: 100%;
    box-shadow: 0 0 2px 0 rgba(0,0,0,.5);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.cards article p {
    flex-grow: 1;
}

.cards img::before {
    content: url('project-tiles-02.c5054eb6.svg');
}

.cards h2 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
}

.cards h3 {
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
}

.cards h4 {
    font-size: 13px;
    color: #00857f;
    font-weight: 600;
}

@media screen and (max-width: 1024px) {
    .cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .cards article {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: row;
    }
    .cards article .image {
        width: 370px;
        min-width: 370px;
        height: 100%;
    }
    .cards .image .decoration {
        bottom: 0px;
    }
}
