/* =========================================================
   LiveFitFlow
   Latest Articles
   ========================================================= */

.lff-latest {
    width: 100%;
    padding: 18px 0;
    background: #ffffff;
}

.lff-latest__inner {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;

    padding: 28px 28px 30px;

    background: #eef7f2;
    border-radius: 22px;

    box-sizing: border-box;
}


/* =========================================================
   Heading
   ========================================================= */

.lff-latest__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 18px;
}

.lff-latest__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #16845f;

    font-size: 9px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: 0.08em;
}

.lff-latest__title {
    margin: 0;

    color: #17201d;

    font-size: 24px;
    line-height: 1.2;

    font-weight: 800;
    letter-spacing: -0.7px;
}

.lff-latest__view-all {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #16845f;

    font-size: 11px;
    line-height: 1;

    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition:
        gap 180ms ease,
        color 180ms ease;
}

.lff-latest__view-all:hover {
    color: #105f46;
    gap: 10px;
    text-decoration: none;
}

.lff-latest__view-all span {
    font-size: 15px;
}


/* =========================================================
   Article Grid
   ========================================================= */

.lff-latest-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}


/* =========================================================
   Article Card
   ========================================================= */

.lff-article-card {
    min-width: 0;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 10px;

    overflow: hidden;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.lff-article-card:hover {
    border-color: #b8d1c3;

    transform: translateY(-3px);

    box-shadow:
        0 9px 24px rgba(25, 65, 38, 0.08);
}


/* =========================================================
   Full Card Link
   ========================================================= */

.lff-article-card__link {
    display: flex;
    flex-direction: column;

    height: 100%;

    color: inherit;
    text-decoration: none;
}

.lff-article-card__link:hover {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   Featured Image
   ========================================================= */

.lff-article-card__image {
    position: relative;

    width: 100%;

    aspect-ratio: 1.45 / 1;

    overflow: hidden;

    background: #f1f5f2;
}

.lff-article-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 350ms ease;
}

.lff-article-card:hover
.lff-article-card__image img {
    transform: scale(1.035);
}


/* =========================================================
   Image Placeholder
   ========================================================= */

.lff-article-card__image-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            #eef5ef 0%,
            #f7faf7 100%
        );
}

.lff-article-card__image-placeholder span {
    color: #16845f;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: -1px;
}


/* =========================================================
   Card Content
   ========================================================= */

.lff-article-card__content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 12px 12px 13px;
}


/* =========================================================
   Category
   ========================================================= */

.lff-article-card__category {
    align-self: flex-start;

    display: inline-block;

    max-width: 100%;

    margin-bottom: 7px;
    padding: 4px 6px;

    border-radius: 4px;

    background: #edf6ef;

    color: #16845f;

    font-size: 7px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: 0.035em;

    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   Title
   ========================================================= */

.lff-article-card__title {
    display: -webkit-box;

    margin: 0;

    color: #17201d;

    font-size: 12px;
    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -0.15px;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   Meta
   ========================================================= */

.lff-article-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: auto;
    padding-top: 11px;

    color: #747c76;

    font-size: 8px;
    line-height: 1.3;
}

.lff-article-card__dot {
    color: #a6ada8;
}


/* =========================================================
   Empty State
   ========================================================= */

.lff-latest-empty {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 9px;

    text-align: center;
}

.lff-latest-empty p {
    margin: 0;

    color: #69716b;

    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .lff-latest-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .lff-article-card__image {
        aspect-ratio: 1.6 / 1;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .lff-latest {
        padding: 10px 0;
    }

    .lff-latest__inner {
        width: min(100% - 20px, 560px);

        padding: 20px 12px 22px;

        border-radius: 16px;
    }

    .lff-latest__heading {
        align-items: center;

        gap: 10px;

        margin-bottom: 13px;
    }

    .lff-latest__eyebrow {
        display: none;
    }

    .lff-latest__title {
        font-size: 21px;
        letter-spacing: -0.5px;
    }

    .lff-latest__view-all {
        font-size: 10px;
    }

    .lff-latest-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .lff-article-card__image {
        aspect-ratio: 1.45 / 1;
    }

    .lff-article-card__content {
        padding: 10px 10px 11px;
    }

    .lff-article-card__category {
        margin-bottom: 6px;

        padding: 3px 5px;

        font-size: 6.5px;
    }

    .lff-article-card__title {
        font-size: 11px;
        line-height: 1.35;
    }

    .lff-article-card__meta {
        gap: 4px;

        padding-top: 9px;

        font-size: 7.5px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .lff-latest {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .lff-latest__inner {
        padding: 17px 10px 19px;

        border-radius: 15px;
    }

    .lff-latest__title {
        font-size: 19px;
    }

    .lff-latest__view-all {
        font-size: 9px;
    }

    .lff-latest-grid {
        gap: 7px;
    }

    .lff-article-card__content {
        padding: 9px 9px 10px;
    }

    .lff-article-card__category {
        font-size: 6px;
    }

    .lff-article-card__title {
        font-size: 10.5px;
    }

    .lff-article-card__meta {
        font-size: 7px;
    }

}