/* Article layout overrides */

.articles-page,
.article-detail-page {
    width: 100%;
    min-height: 600px;
    padding: 70px 0 100px;
    background: #ffffff;
}

.articles-page .site-container,
.article-detail-page .site-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.articles-page-header {
    max-width: 820px;
    margin: 0 0 46px;
}

.articles-page-header h1 {
    margin: 0 0 12px;
    color: #12345b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.4vw, 58px);
    font-weight: 400;
    line-height: 1.12;
}

.articles-page-header p:last-child {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

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

.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(18, 52, 91, 0.06);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(18, 52, 91, 0.12);
}

.article-card-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px 24px 25px;
}

.article-card-meta {
    margin: 0 0 10px;
    color: #218b51;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.article-card h2 {
    margin: 0 0 12px;
    color: #12345b;
    font-size: 21px;
    line-height: 1.35;
}

.article-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 21px;
    color: #c83b35;
    font-size: 13px;
    font-weight: 800;
}

.article-card-link:hover {
    color: #218b51;
}

.article-empty {
    padding: 32px;
    border: 1px solid #e2e8ee;
    color: #667085;
    text-align: center;
}

.article-detail-page {
    background: #fbfcfd;
}

.article-detail-header {
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.article-detail-header h1 {
    margin: 0 0 16px;
    color: #12345b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 400;
    line-height: 1.15;
}

.article-detail-meta {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.article-detail-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 52px;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(18, 52, 91, 0.06);
}

.article-detail-content p {
    margin: 0 0 20px;
    color: #1c2b3a;
    font-size: 17px;
    line-height: 1.9;
}

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

.article-detail-back {
    display: block;
    max-width: 820px;
    margin: 25px auto 0;
    color: #c83b35;
    font-size: 13px;
    font-weight: 800;
}

.article-detail-back:hover {
    color: #218b51;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .articles-page,
    .article-detail-page {
        padding: 56px 0 70px;
    }

    .articles-page .site-container,
    .article-detail-page .site-container {
        width: min(100% - 32px, 1180px);
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card-image {
        height: 210px;
    }

    .article-detail-content {
        padding: 26px;
    }

    .article-detail-content p {
        font-size: 16px;
    }
}