.homepage-blog-wrapper {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.homepage-group-title {
    text-align: center;
    color: #00c389;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.homepage-blog-wrapper .h4 {
    font-size: 40px;
    font-weight: 800;
    color: #111;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

.homepage-blog-wrapper.row.blog-wrapper.three-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    width: 100%;
    align-items: stretch;
}

.homepage-group-title.h4,
.blog-btn {
    grid-column: 1 / -1;
}

.news-item {
    background: #fff;
    border-radius: 18px;
    /* box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07); */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 24px 20px;
    min-height: 200px;
    position: relative;
    transition: box-shadow 0.2s;
    width: 100%;
    max-width: 638px;
    min-width: 320px;
    align-self: stretch;
    margin-bottom: 0;
}

.news-item:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

.news-item .image {
    position: relative;
    flex: 0 0 54%;
    max-width: 54%;
    min-width: 0;
    height: 180px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.news-item .image::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: url('./img/article-stamp.png') no-repeat center center/contain;
    z-index: 2;
}

.news-item .text {
    flex: 0 0 46%;
    max-width: 46%;
    min-width: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: self-start;
    position: relative;
}

.news-item .title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    display: block;
}

.news-item .description {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 3.2em;
}

.news-item .read-article {
    color: #00c389;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.news-item .more {
    position: absolute;
    left: 54%;
    bottom: 24px;
    color: #00c389;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: text-decoration 0.2s;
    width: fit-content;
    margin-top: 0;
    padding-left: 24px;
}

.news-item .more:hover {
    text-decoration: underline;
}

.blog-btn {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn.btn-tertialy {
    background: #00c389;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.07);
}

.btn.btn-tertialy:hover {
    background: #009e6d;
}

.news-item>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.news-item {
    width: 100% !important;
}

@media (max-width: 992px) {
    .homepage-blog-wrapper.row.blog-wrapper.three-art {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-item {
        max-width: 100%;
        min-width: 0;
        padding: 16px 8px 48px 8px !important;
        min-height: unset;
    }

    .news-item>a {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item .image,
    .news-item .image img {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 100%;
        max-height: 280px;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .news-item .text {
        max-width: 100%;
        flex: 1 1 100%;
        padding-left: 0;
        align-self: stretch;
        padding-bottom: 36px;
        text-align: center;
        padding-left: 1em;
        padding-right: 1em;
    }

    .news-item .title,
    .news-item .description {
        text-align: center !important;
    }

    .news-item .description {
        margin: 0 0 1em 0 !important;
    }

    .news-item .text .title {
        margin-bottom: 0 !important;
    }

    .news-item .more {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 0;
        padding-left: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.5em;
        display: flex;
        flex-direction: row;
    }
}