﻿.card {
    margin: 0 0 20px;
}

.card--gradient {
    border-radius: 6px;
    background: linear-gradient(50deg, #133F78 41.97%, #017FB0 77.57%);
    color: var(--white);
}
.card--gradient a {
    color: currentColor;
    text-decoration: underline;
}

.card--simple .card__img-wapper {
    position: relative;
    aspect-ratio: 5/4;
    overflow: hidden;
}

@supports not (aspect-ratio: 5 / 4) {
    .card--simple .card__img-wapper::before {
      float: left;
      padding-top: 80%;
      content: "";
    }

    .card--simple .card__img-wapper::after {
      display: block;
      content: "";
      clear: both;
    }
}

.card--simple .card__img-wapper > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card--simple .img-responsive {
    height: 100%;
    width: auto;
    border-radius: 6px;
}

.card--simple .card__content > p {
    border-bottom: 1px solid var(--white);
    padding-bottom: 20px;
    width: 100%;
}

.card--simple .card__content p {
    line-height: 1.4;
}

.card--simple .card__content .subhead {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 1em;
}

.card__headline {
    color: currentColor;
    margin-top: 0;
}

@media (min-width: 768px) {
    
    .card--simple {
        display: grid;
        grid-template-columns: 270px 1fr;    
        min-height: 360px;
    }
    
    .card--simple .card__end {
        padding: 40px;
    }
    
    .card--simple .card__img-wapper {
        aspect-ratio: unset;
        height: 100%;
        max-width: 100%;
    }
    
    .card--simple .card__content {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .card--simple .card__content p {
        margin-bottom: 0;
    }

    .card--simple .card__content > div {
        display: flex;
        flex-direction: column;
        width: calc(50% - 20px);
    }
    
    .card--simple .card__content .subhead + p {
        margin-top: auto;
    }
}