/* =========================================================
   TK CATEGORIES v1.0
   ========================================================= */

.tkcat {
    position: relative;
    padding: 56px 0;
    background: #f7f8f5;
}

/* =========================================================
   WIDE CONTENT AREA
   ========================================================= */

.tkcat > .tk-container {
    width: calc(100% - 80px);
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
}
/* =========================================================
   HEADING
   ========================================================= */

.tkcat__heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.tkcat__eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    color: #9a1f20;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: .12em;
}

.tkcat__heading h2 {
    margin: 0;

    color: #153d34;

    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -.025em;
}

.tkcat__heading p {
    margin: 13px 0 0;

    color: #68746f;

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   GRID
   ========================================================= */

.tkcat__grid {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 16px;

    align-items: stretch;

    width: min(100%, 1420px);
    margin: 0 auto;
}


/* =========================================================
   CARD
   ========================================================= */

.tkcat-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(21, 61, 52, .08);
    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(21, 61, 52, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.tkcat-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 38px rgba(21, 61, 52, .10);
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.tkcat-card__media {
    position: relative;

    width: 100%;
    height: 190px;

    overflow: hidden;

    background: #e8ebe7;
}

.tkcat-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.tkcat-card:hover .tkcat-card__media img {
    transform: scale(1.04);
}

.tkcat-card__media-placeholder {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #e9ede9,
            #dfe5e0
        );
}


/* =========================================================
   BODY
   ========================================================= */

.tkcat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px 18px 18px;
}


/* =========================================================
   TITLE
   ========================================================= */

.tkcat-card__title {
    min-height: 48px;

    margin: 0;

    color: #153d34;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: -.015em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.tkcat-card__description {
    min-height: 72px;

    margin: 10px 0 0;

    color: #68746f;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tkcat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid rgba(21, 61, 52, .08);
}

.tkcat-card__count {
    color: #7b8581;

    font-size: 12px;
    line-height: 1.3;
}

.tkcat-card__link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #9a1f20;

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;

    text-decoration: none;
}

.tkcat-card__link span {
    font-size: 17px;

    transition: transform .2s ease;
}

.tkcat-card__link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .tkcat__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 991px) {

    .tkcat {
        padding: 40px 0;
    }

    .tkcat__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .tkcat {
        padding: 32px 0;
    }

    .tkcat__heading {
        margin-bottom: 22px;
    }

    .tkcat__eyebrow {
        font-size: 11px;
    }

    .tkcat__heading h2 {
        font-size: 28px;
    }

    .tkcat__heading p {
        font-size: 14px;
    }

    .tkcat__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tkcat-card__media {
        height: 190px;
    }

    .tkcat-card__title {
        min-height: 0;
    }

    .tkcat-card__description {
        min-height: 0;
    }

}