.thfe-wrap,
.thfe-wrap * {
    box-sizing: border-box;
}

.thfe-wrap {
    width: 100%;
    background: var(--thfe-bg, #F7FBF0);
    color: var(--thfe-text, #0D0D0D);
    padding-top: var(--thfe-pad-top, 50px);
    padding-bottom: var(--thfe-pad-bottom, 50px);
    font-family: inherit;
}

.thfe-inner {
    max-width: var(--thfe-max, 1150px);
    margin: 0 auto;
    width: calc(100% - 40px);
}

.thfe-item {
    display: grid;
    grid-template-columns: var(--thfe-num-col, 70px) minmax(160px, var(--thfe-title-col, 1.15fr)) minmax(240px, var(--thfe-desc-col, 1.45fr)) minmax(320px, var(--thfe-img-col, 1.75fr));
    min-height: var(--thfe-row-min, 280px);
    align-items: start;
}

.thfe-number,
.thfe-title-cell,
.thfe-description-cell,
.thfe-image-cell {
    min-height: var(--thfe-row-min, 280px);
    padding: 18px 24px;
    border-left: 1px solid var(--thfe-divider, #DDE5D7);
}

.thfe-image-cell {
    border-right: 0;
    padding-top: 0;
    padding-bottom: 34px;
}

.thfe-number {
    font-size: var(--thfe-num-size, 16px);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
}

.thfe-title,
.thfe-title-link {
    display: inline-block;
    margin: 0;
    color: inherit;
    font-size: var(--thfe-title-size, 28px);
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-decoration: none;
}

.thfe-title-link:hover,
.thfe-image-link:hover + .thfe-title-link {
    opacity: 0.72;
}

.thfe-description-cell p {
    margin: 0;
    max-width: 360px;
    color: inherit;
    font-size: var(--thfe-desc-size, 16px);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.015em;
    text-transform: capitalize;
}

.thfe-image-cell img,
.thfe-image-link img {
    display: block;
    width: 100%;
    aspect-ratio: var(--thfe-img-ratio, 16/9);
    height: auto;
    object-fit: var(--thfe-img-fit, cover);
    border-radius: var(--thfe-radius, 5px);
    background: #e7eadf;
}

.thfe-image-link {
    display: block;
    text-decoration: none;
}

.thfe-empty {
    padding: 24px;
    background: #fff7d7;
    border-left: 4px solid #d6a800;
}

.thfe-hide-numbers .thfe-item {
    grid-template-columns: minmax(160px, var(--thfe-title-col, 1.15fr)) minmax(240px, var(--thfe-desc-col, 1.45fr)) minmax(320px, var(--thfe-img-col, 1.75fr));
}

.thfe-hide-numbers .thfe-number {
    display: none;
}

.thfe-hide-descriptions .thfe-item {
    grid-template-columns: var(--thfe-num-col, 70px) minmax(220px, var(--thfe-title-col, 1.15fr)) minmax(320px, var(--thfe-img-col, 1.75fr));
}

.thfe-hide-descriptions .thfe-description-cell {
    display: none;
}

.thfe-hide-numbers.thfe-hide-descriptions .thfe-item {
    grid-template-columns: minmax(220px, var(--thfe-title-col, 1.15fr)) minmax(320px, var(--thfe-img-col, 1.75fr));
}

@media (max-width: 1024px) {
    .thfe-inner {
        width: calc(100% - (var(--thfe-mobile-pad, 20px) * 2));
    }

    .thfe-item {
        grid-template-columns: 64px 1fr;
        min-height: 0;
        border-left: 1px solid var(--thfe-divider, #DDE5D7);
        border-right: 1px solid var(--thfe-divider, #DDE5D7);
        padding: 26px 0 38px;
    }

    .thfe-number,
    .thfe-title-cell,
    .thfe-description-cell,
    .thfe-image-cell {
        min-height: 0;
        border-left: 0;
        padding: 0 20px;
    }

    .thfe-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding-left: 20px;
    }

    .thfe-title-cell,
    .thfe-description-cell,
    .thfe-image-cell {
        grid-column: 2;
    }

    .thfe-description-cell {
        margin-top: 18px;
    }

    .thfe-image-cell {
        margin-top: 26px;
    }

    .thfe-title,
    .thfe-title-link {
        font-size: clamp(24px, 4vw, var(--thfe-title-size, 28px));
    }

    .thfe-description-cell p {
        max-width: 100%;
    }

    .thfe-hide-numbers .thfe-item,
    .thfe-hide-descriptions .thfe-item,
    .thfe-hide-numbers.thfe-hide-descriptions .thfe-item {
        grid-template-columns: 1fr;
    }

    .thfe-hide-numbers .thfe-title-cell,
    .thfe-hide-numbers .thfe-description-cell,
    .thfe-hide-numbers .thfe-image-cell,
    .thfe-hide-descriptions .thfe-title-cell,
    .thfe-hide-descriptions .thfe-image-cell,
    .thfe-hide-numbers.thfe-hide-descriptions .thfe-title-cell,
    .thfe-hide-numbers.thfe-hide-descriptions .thfe-image-cell {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .thfe-wrap {
        padding-top: calc(var(--thfe-pad-top, 50px) * 0.65);
        padding-bottom: calc(var(--thfe-pad-bottom, 50px) * 0.65);
    }

    .thfe-item {
        grid-template-columns: 52px 1fr;
        padding-top: 22px;
        padding-bottom: 32px;
    }

    .thfe-number {
        padding-left: 14px;
    }

    .thfe-title-cell,
    .thfe-description-cell,
    .thfe-image-cell {
        padding: 0 14px;
    }

    .thfe-title,
    .thfe-title-link {
        font-size: clamp(24px, 8vw, 34px);
    }

    .thfe-description-cell p {
        font-size: clamp(14px, 4vw, var(--thfe-desc-size, 16px));
        line-height: 1.6;
    }
}
