/* ============================================
   SERVICE CATEGORY CARD
   ============================================ */

.hec-service-category {
    width: 100%;
    background: #F0F1B8;
    border-radius: 8px;
    padding: 30px 20px;
    box-sizing: border-box;
}

.hec-service-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 28px 0;
    border-bottom: 1px solid rgba(33, 33, 33, 0.12);
}

.hec-service-category__title {
    margin: 0 !important;
}

.hec-service-category__title-link {
    color: inherit;
    text-decoration: none;
}

.hec-service-category__title-link:hover {
    text-decoration: none;
}

.hec-service-category__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.52em;
    text-transform: uppercase;
    color: var(--color-text, #212121);
}

.hec-service-category__list {
    width: 100%;
}

.hec-service-category__item {
    display: grid;
    grid-template-columns: 20px 1fr 32px;
    gap: 16px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(33, 33, 33, 0.12);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.hec-service-category__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hec-service-category__item:hover {
    text-decoration: none;
}

.hec-service-category__num {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.52em;
    color: var(--color-primary, #4E5B31);
}

.hec-service-category__content {
    display: block;
    min-width: 0;
}

.hec-service-category__item-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.52em;
    color: var(--color-text, #212121);
}

.hec-service-category__desc {
    display: block;
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.52em;
    color: rgba(33, 33, 33, 0.68);
}

.hec-service-category__arrow {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.hec-service-category__arrow img {
    display: block;
    width: 9px;
    height: 14px;
    object-fit: contain;
}

.hec-service-category__arrow {
    transition: transform 0.2s ease;
}

/* Category header arrow hover */
.hec-service-category__head:hover .hec-service-category__arrow--head {
    transform: translateX(4px);
}

/* Service item arrow hover */
.hec-service-category__item:hover .hec-service-category__arrow {
    transform: translateX(4px);
}


.hec-service-category__head {
    position: relative;
}

.hec-service-category__title-link,
.hec-service-category__arrow--head {
    position: relative;
    z-index: 2;
}

.hec-service-category__head-full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.hec-service-category__title-link {
    min-width: 0;
}

.hec-service-category__title {
    word-break: normal;
}


@media (max-width: 767px) {
    .hec-service-category {
        padding: 28px 22px 22px;
    }

    .hec-service-category__head {
        padding-bottom: 24px;
    }

    .hec-service-category__title {
        font-size: 24px;
    }

    .hec-service-category__item {
        grid-template-columns: 24px 1fr 34px;
        gap: 10px;
        padding: 22px 0;
    }

    .hec-service-category__num {
        font-size: 18px;
    }

    .hec-service-category__item-title {
        font-size: 20px;
    }

    .hec-service-category__desc {
        font-size: 14px;
    }

    .hec-service-category__arrow {
        font-size: 32px;
    }
}