.cards {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(15rem, 20rem) );
    gap: 1rem;
    max-width: 90rem;
    margin-inline: auto;
    margin-top: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.2), 0 8px 20px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.12), 0 12px 32px rgb(0 0 0 / 0.08);
    }

    .card img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

.card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
}

    .card h2 {
        margin: 0;
        padding: 0.75rem 1rem;
        background: #006838;
        color: #fff;
        font-size: 1rem;
        text-transform: uppercase;
        height:60px;
        line-height:22px;
        display:flex;
    }

    .card__content p {
        margin: 0;
        line-height: 1.6;
        flex-grow: 1;
    }


.card__link {
    margin-top: 1.5rem;
    color: #005ea5;
    font-weight: 600;
    text-decoration: none;
    
}

    .card__link:hover,
    .card__link:focus {
        text-decoration: underline;
    }


.card:focus-within {
    outline: 3px solid #ffbf47;
    outline-offset: 4px;
}

.contact-details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .contact-details dt {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #555;
    }

    .contact-details dd {
        margin: 0;
        line-height: 1.5;
        font-size: 0.75rem;
    }

    .contact-details a {
        color: #006838;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .contact-details a:hover,
        .contact-details a:focus {
            text-decoration: underline;
        }
