.articles-section {
    width: 100%;

    padding: 22px 30px 42px;

    background: #ffffff;

    box-sizing: border-box;
}


.articles-container {
    width: 100%;
    max-width: 1140px;

    margin: 0 auto;
}

.articles-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    width: 100%;
}


.article-card {
    position: relative;

    width: 100%;

    height: 330px;

    overflow: hidden;

    background: #eeeeee;

    cursor: pointer;
}


.article-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.articles-empty{
    position: absolute;
    left: 0;
    width: 100%;
}
.articles-empty p{
    text-align: center;
}

.article-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.00) 20%,
            rgba(0, 0, 0, 0.10) 35%,
            rgba(0, 0, 0, 0.48) 60%,
            rgba(0, 0, 0, 0.82) 100%);
}


.article-content {
    position: absolute;

    z-index: 2;

    left: 18px;
    right: 18px;
    bottom: 25px;
}

.article-badge {
    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding: 5px 9px;

    margin-bottom: 9px;

    background: #ffffff;

    color: #1b1b1b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;
}

.article-title {
    max-width: 310px;

    margin: 0 0 17px;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.18;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35);
}



.article-link {
    position: relative;

    display: inline-block;

    padding-bottom: 7px;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
    font-weight: 400;

    line-height: 1;

    text-decoration: none;
}


.article-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 86px;
    height: 1px;

    background: rgba(255, 255, 255, 0.75);

    transition: width 0.3s ease;
}


.article-link:hover::after {
    width: 100%;
}


.article-card:hover .article-image {
    transform: scale(1.04);
}


.articles-button-wrapper {
    display: flex;

    justify-content: center;

    margin-top: 42px;
}


.articles-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 290px;
    height: 37px;

    border-radius: 7px;

    background: #193d63;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.articles-button:hover {
    background: #df2835;

    transform: translateY(-2px);
}



@media (max-width: 1000px) {

    .articles-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .articles-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }


    .article-card {
        height: 320px;
    }
}

@media (max-width: 600px) {

    .articles-section {
        padding: 20px 15px 40px;
    }


    .articles-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .article-card {
        height: 330px;
    }


    .article-content {
        left: 20px;
        right: 20px;
        bottom: 25px;
    }


    .article-title {
        max-width: 100%;

        font-size: 17px;
    }


    .articles-button-wrapper {
        margin-top: 30px;
    }


    .articles-button {
        width: 100%;
        max-width: 290px;
    }
}


@media (max-width: 380px) {

    .article-card {
        height: 300px;
    }


    .article-content {
        left: 16px;
        right: 16px;
        bottom: 20px;
    }


    .article-title {
        font-size: 15px;
    }
}