.articles-page {
    padding-top: 24px;
    margin-bottom: 40px;
}

.articles-list {
    margin-bottom: 30px;
}

.articles-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.articles-list__pagination {
    margin-top: 10px;
}

.articles-list__empty {
    padding: 24px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #f8f8f8;
    color: #666;
}

.articles-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.articles-card:hover {
    border-color: rgba(180, 84, 126, .35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.articles-card__image-link {
    display: block;
    overflow: hidden;
    background: #f0f0f0;
}

.articles-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity .2s ease, transform .2s ease;
}

.articles-card:hover .articles-card__image {
    opacity: .9;
    transform: scale(1.02);
}

.articles-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.articles-card__date,
.article-detail__date {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

.articles-card__title {
    display: block;
    margin-bottom: 12px;
    color: #286cb0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.articles-card__title:hover {
    color: #3284d6;
    text-decoration: none;
}

.articles-card__text {
    flex: 1 1 auto;
    margin-bottom: 18px;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
}

.articles-card__text p:last-child {
    margin-bottom: 0;
}

.articles-card__more {
    align-self: flex-start;
    margin-top: auto;
}

.article-detail {
    max-width: 920px;
    margin-bottom: 40px;
}

.article-detail__figure {
    margin: 0 0 24px;
}

.article-detail__image {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 4px;
    object-fit: cover;
}

.article-detail__lead {
    margin-bottom: 24px;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.article-detail__lead p:last-child {
    margin-bottom: 0;
}

.article-detail__content {
    color: #222;
    font-size: 16px;
    line-height: 1.7;
}

.article-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-detail__content h2,
.article-detail__content h3 {
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.article-detail__content ul,
.article-detail__content ol {
    margin-bottom: 20px;
}

.article-detail__footer {
    margin-top: 30px;
}

@media only screen and (max-width: 991px) {
    .articles-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media only screen and (max-width: 600px) {
    .articles-list__grid {
        grid-template-columns: 1fr;
    }

    .articles-card__body {
        padding: 18px;
    }

    .articles-card__title {
        font-size: 17px;
    }

    .article-detail__lead {
        font-size: 16px;
    }
}
