/* =========================================================
   LiveFitFlow
   Explore by Category
   ========================================================= */

/* =========================================================
   SECTION
   ========================================================= */

.lff-categories {
    width: 100%;
    padding: 22px 0;
    background: #ffffff;
}

.lff-categories__inner {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;

    padding: 26px 28px 28px;

    background: #eef7f2;
    border-radius: 22px;

    box-sizing: border-box;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.lff-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 17px;
}

.lff-section-heading__eyebrow {
    display: block;

    margin: 0 0 5px;

    color: #16845f;

    font-size: 9px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lff-section-heading__title {
    margin: 0;

    color: #17201d;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -0.7px;
}

.lff-section-heading__link {
    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-section-heading__link:hover {
    color: #106b4c;
    text-decoration: none;
    gap: 10px;
}

.lff-section-heading__link span {
    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.lff-category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.lff-category-card {
    position: relative;

    min-width: 0;
    min-height: 145px;

    display: flex;
    flex-direction: column;

    padding: 16px 14px 13px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 12px;

    color: #202520;
    text-decoration: none;

    overflow: hidden;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.lff-category-card:hover {
    color: #202520;
    text-decoration: none;

    border-color: #b8d0c1;

    transform: translateY(-3px);

    box-shadow:
        0 9px 24px rgba(25, 65, 38, 0.08);
}


/* =========================================================
   ICON
   ========================================================= */

.lff-category-card__icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 10px;

    background: #edf7f1;
}

.lff-category-card__icon svg {
    width: 27px;
    height: 27px;

    fill: none;

    stroke: #16845f;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CONTENT
   ========================================================= */

.lff-category-card__content {
    min-width: 0;
}

.lff-category-card__title {
    margin: 0;

    color: #17201d;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;

    letter-spacing: -0.1px;
}

.lff-category-card__description {
    margin: 5px 0 0;

    color: #69716b;

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   ARROW
   ========================================================= */

.lff-category-card__arrow {
    margin-top: auto;
    padding-top: 9px;

    color: #16845f;

    font-size: 14px;
    line-height: 1;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.lff-category-card:hover .lff-category-card__arrow {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .lff-categories {
        padding: 20px 0;
    }

    .lff-categories__inner {
        width: min(100% - 32px, 900px);

        padding: 24px;
    }

    .lff-category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .lff-category-card {
        min-height: 138px;
    }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .lff-categories {
        padding: 14px 0;
    }

    .lff-categories__inner {
        width: calc(100% - 20px);
        max-width: 560px;

        padding: 19px 14px 20px;

        border-radius: 17px;
    }


    /* Heading */

    .lff-section-heading {
        align-items: center;

        gap: 10px;

        margin-bottom: 12px;
    }

    .lff-section-heading__eyebrow {
        display: none;
    }

    .lff-section-heading__title {
        font-size: 21px;
        letter-spacing: -0.5px;
    }

    .lff-section-heading__link {
        font-size: 10px;
    }

    .lff-section-heading__link span {
        font-size: 13px;
    }


    /* Grid */

    .lff-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    /* Cards */

    .lff-category-card {
        min-height: 132px;

        padding: 13px 12px 11px;

        border-radius: 10px;
    }


    /* Icon */

    .lff-category-card__icon {
        width: 37px;
        height: 37px;

        flex-basis: 37px;

        margin-bottom: 10px;

        border-radius: 9px;
    }

    .lff-category-card__icon svg {
        width: 24px;
        height: 24px;
    }


    /* Content */

    .lff-category-card__title {
        font-size: 12px;
    }

    .lff-category-card__description {
        margin-top: 5px;

        font-size: 9.5px;
        line-height: 1.4;
    }


    /* Mobile: no hover arrow */

    .lff-category-card__arrow {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .lff-categories {
        padding: 11px 0;
    }

    .lff-categories__inner {
        width: calc(100% - 16px);

        padding: 16px 11px 17px;

        border-radius: 15px;
    }


    /* Heading */

    .lff-section-heading {
        margin-bottom: 10px;
    }

    .lff-section-heading__title {
        font-size: 19px;
    }

    .lff-section-heading__link {
        font-size: 9px;
    }


    /* Grid */

    .lff-category-grid {
        gap: 7px;
    }


    /* Cards */

    .lff-category-card {
        min-height: 124px;

        padding: 11px 10px 10px;

        border-radius: 9px;
    }


    /* Icon */

    .lff-category-card__icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        margin-bottom: 9px;

        border-radius: 8px;
    }

    .lff-category-card__icon svg {
        width: 22px;
        height: 22px;
    }


    /* Text */

    .lff-category-card__title {
        font-size: 11px;
    }

    .lff-category-card__description {
        margin-top: 4px;

        font-size: 8.8px;
        line-height: 1.35;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   Prevent horizontal overflow
   ========================================================= */

@media (max-width: 340px) {

    .lff-categories__inner {
        width: calc(100% - 12px);

        padding-inline: 9px;
    }

    .lff-category-grid {
        gap: 6px;
    }

    .lff-category-card {
        padding-inline: 9px;
    }

}