/*
|--------------------------------------------------------------------------
| News section
|--------------------------------------------------------------------------
*/

.mf-news {

    padding: 5rem 0;

}

.mf-news__header {

    max-width: 700px;

    margin: 0 auto 3rem;

    text-align: center;

}

.mf-news__title {

    margin: 0;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

}

.mf-news__description {

    margin-top: 1rem;

    color: var(--mf-gray);

}

.mf-news__grid {

    display: grid;
/*
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );*/

    gap: 2rem;

}

.mf-news--columns-1 .mf-news__grid {
    grid-template-columns: 1fr;
}

.mf-news--columns-2 .mf-news__grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.mf-news--columns-3 .mf-news__grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

/*
|--------------------------------------------------------------------------
| News card
|--------------------------------------------------------------------------
*/

.mf-news-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--mf-light);

    border-radius: var(--mf-radius);

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);

}

.mf-news-card__image {

    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

}

.mf-news-card__image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.mf-news-card__content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 1.5rem;

}


.mf-news-card__category {
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mf-news-card__category a {
    text-decoration: none;
}

.mf-news-card__meta {

    margin-bottom: .75rem;

    font-size: .85rem;

    color: var(--mf-gray);

}

.mf-news-card__title {

    margin: 0;

    font-size: 1.25rem;

    line-height: 1.3;

}

.mf-news-card__title a {

    color: var(--mf-dark);

    text-decoration: none;

}

.mf-news-card__excerpt {

    margin-top: 1rem;

    color: var(--mf-gray);

    line-height: 1.6;

}

.mf-news-card__excerpt p {

    margin: 0;

}

.mf-news-card__link {

    margin-top: auto;

    padding-top: 1.25rem;

    font-weight: 600;

    text-decoration: none;

}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .mf-news--columns-2 .mf-news__grid,
    .mf-news--columns-3 .mf-news__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }

}

@media (max-width: 700px) {

    .mf-news--columns-1 .mf-news__grid,
    .mf-news--columns-2 .mf-news__grid,
    .mf-news--columns-3 .mf-news__grid {
        grid-template-columns:
            1fr !important;
    }

}