/* News list and article pages. Shared chrome and news cards come from branches.css. */

.news-page {
    background: linear-gradient(180deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 70px 20px 110px;
}

.news-page-container {
    max-width: 1240px;
    margin: 0 auto;
}

.news-page .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-page .news-card {
    display: flex;
    flex-direction: column;
}

.news-page .news-image {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
}

.news-page .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-page .news-title a {
    color: inherit;
    text-decoration: none;
}

.news-page .news-title a:hover { color: var(--primary-blue); }
.news-page .read-more { margin-top: auto; }

.news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.news-pagination a,
.news-pagination span {
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.06);
}

.news-pagination a.current {
    background: var(--deep-blue);
    color: #fff;
}

.news-empty {
    text-align: center;
    color: #6b7785;
    font-size: 1.2rem;
    padding: 60px 0;
}

/* ---------- Article ---------- */
.article-date {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    color: #FFC566;
    font-weight: 700;
}

.page-hero .page-title:has(+ .article-date) { font-size: 2.3rem; line-height: 1.5; max-width: 900px; margin-inline: auto; }

.article {
    max-width: 860px;
    margin: -40px auto 80px;
    position: relative;
    z-index: 5;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 51, 102, 0.1);
}

.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-green);
}

.article-body {
    padding: 44px 52px 10px;
    color: #3d4650;
    font-size: 1.12rem;
    line-height: 2;
}

.article-body p { margin: 0 0 1.1em; }
.article-body h2, .article-body h3 { color: var(--deep-blue); font-weight: 800; margin: 1.4em 0 0.6em; line-height: 1.5; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body ul, .article-body ol { padding-inline-start: 1.6em; margin: 0 0 1.1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--primary-blue); }
.article-body blockquote {
    margin: 1.4em 0;
    padding: 14px 22px;
    border-inline-start: 4px solid var(--primary-green);
    background: var(--light-bg);
    border-radius: 0 12px 12px 0;
    color: var(--primary-gray);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 52px 44px;
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
}

.more-title {
    color: var(--deep-blue);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 26px;
}

@media (max-width: 700px) {
    .news-page { padding: 50px 14px 80px; }
    .news-page .news-grid { grid-template-columns: 1fr; }
    .article { margin-top: -30px; border-radius: 20px; }
    .article-body { padding: 28px 22px 4px; font-size: 1.04rem; }
    .article-back { margin: 6px 22px 30px; }
    .page-hero .page-title:has(+ .article-date) { font-size: 1.6rem; }
}
