.article-card {
    background: #464646;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media screen and (max-width: 900px) {
    .article-card {
        border-radius: 20px;
    }
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card__image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-bottom: 66.5%;
}

.article-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

@media screen and (max-width: 900px) {
    .article-card__image {
        padding-bottom: 71.9%;
    }
}

@media screen and (max-width: 600px) {
    .article-card__image {
        padding-bottom: 68.3%;
    }
}

.article-card__content {
    padding: 18px 15px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

@media screen and (max-width: 900px) {
    .article-card__content {
        padding: 15px 15px 15px 20px;
        gap: 4px;
    }
}

@media screen and (max-width: 600px) {
    .article-card__content {
        padding: 14px 20px 13px 20px;
    }
}

.article-card__category {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(
        263.56deg,
        #FFE9C8 -4.53%,
        #FFD9AD 18.44%,
        #FFDDB5 51.46%,
        #FFDDB5 76.6%,
        #FFCC8F 111.92%
    );
    padding: 5px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 9px;
    line-height: 128%;
    color: #000000;
}

.article-card__title {
    font-family: 'Buyan', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 128%;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(25px * 1.28 * 2);
}

.article-card__description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 128%;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(14px * 1.28 * 3);
}

@media screen and (max-width: 900px) {
    .article-card__title {
        font-size: 23px;
        min-height: calc(23px * 1.28 * 2);
    }
    
    .article-card__description {
        font-size: 12px;
        min-height: calc(12px * 1.28 * 4);
    }
}
