.articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 40px 0 40px;
    min-height: calc(100vh - 382px - 50px);
}

.articles_header {
    text-align: center;
    font-weight: bold;
    font-size: 28px;
    line-height: 36px;
}

.articles_container {
    display: flex;
    gap: 16px;
    justify-items: stretch;
    flex-wrap: wrap;
    align-items: center;
    max-width: 348px;
}

.article_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border-radius: 20px;
    box-shadow: 0 0 4px 0 #0000001a;
    height: 270px;
    width: 348px;
    overflow: hidden;
    background-color: #fff;
    flex: 0 0 348px;

    & img {
        height: 150px;
        width: 100%;
        object-fit: cover;
    }
}

.article_card__wrapper {
    height: 100%;
    padding: 0 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;

    & h3 {
        font-size: 18px;
        line-height: 20px;
        font-weight: 700;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }
}

.article_card__content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;

    & p {
        font-size: 16px;
        line-height: 20px;
        font-weight: 400;
        color: #10182880;
    }

    & a {
        color: #ff4f12;
        font-size: 16px;
        line-height: 20px;
        font-weight: 700;
        text-decoration: underline;
        transition: all 0.3s;
    }

    & a:hover {
        opacity: 0.8;
        scale: 1.05;
        cursor: pointer;
    }
}

@media (max-width: 374px) {
    .articles_header, .article_card  {
        max-width: calc(100vw - 2rem);
    }

    .articles_container {
        margin: 0 auto;
        max-width: calc(100vw - 2rem);
    }
}

@media (min-width: 768px) {
    .articles_container {
        min-width: calc(348px * 2 + 1rem);
    }
}

@media (min-width: 800px) {
    .articles {
        min-height: calc(100vh - 203px - 70px);
    }
}

@media (min-width: 1440px) {
    .articles {
        min-height: calc(100vh - 231px - 70px);
    }

    .articles_container {
        min-width: calc(348px * 3 + 2rem);
    }
}

@media (min-width: 1920px) {
    .articles_container {
        min-width: calc(348px * 4 + 3rem);
    }
}