﻿.home-hero {
    padding: 10px 0 22px;
}

.home-hero .container {
    background: var(--white);
}

.home-hero-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-shadow: 4px 4px 10px 1px #3333330d;
}

.home-hero-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 108px;
    padding: 0 14px;
    position: relative;
}

.home-hero-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    width: 2px;
    height: calc(100% - 40px);
    background: #f0e5db4d;
}

.home-hero-item .icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-item .icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.home-hero-item .content {
    flex: 1;
    min-width: 0;
}

.home-hero-item .title {
    margin-bottom: 6px;
}

.home-hero-item .title span {
    display: block;
    font-size: 16px;
    line-height: 1.22;
    color: var(--text-heading);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-hero-item .description span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-body);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}


/* Home hero responsive */
@media (max-width: 1023px) {
    .home-hero {
        padding: 8px 0 20px;
    }

    .home-hero-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--border-section);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(41, 27, 14, 0.05);
    }

    .home-hero-item {
        padding: 18px 20px;
        gap: 14px;
        display: flex;
        min-height: unset;
    }

    .home-hero-item:not(:last-child)::after {
        display: none;
    }

    .home-hero-item:nth-child(odd) {
        border-right: 1px solid var(--border-section);
    }

    .home-hero-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-section);
    }

    .home-hero-item .icon {
        width: 52px;
        height: 52px;
        background-color: #FFF4EE;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding: 6px 0 18px;
    }

    .home-hero-list {
        gap: 10px;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .home-hero-item {
        min-height: 150px;
        padding: 16px 12px;
        border: 1px solid var(--border-section);
        border-radius: 14px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        box-shadow: 0 4px 14px rgba(41, 27, 14, 0.04);
    }

    .home-hero-item:nth-child(odd),
    .home-hero-item:nth-child(-n + 2) {
        border: 1px solid var(--border-section);
        padding: 14px;
    }

    .home-hero-item .icon {
        width: 48px;
        height: 48px;
        flex-basis: unset;
    }
    .home-hero-item .icon img {
        width: 40px;
    }

    .home-hero-item .title {
        margin-bottom: 5px;
    }

    .home-hero-item .title span {
        font-size: 15px;
    }

    .home-hero-item .description span {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 374px) {
    .home-hero-list {
        grid-template-columns: 1fr;
    }

    .home-hero-item {
        min-height: 104px;
        padding: 16px;
        flex-direction: row;
        align-items: center;
    }

    .home-hero-item .description span {
        font-size: 13px;
    }
}
