/* ─── NEWS & ARTICLE PAGES ────────────────────────────────────── */
.page-hero {
    /* height: 100dvh; */
    background-image: url('/imgs/bg/news.jpg');
}

.page-hero-dark {
    background: #0e1825;
}

.page-hero {
    height: auto;
}

/* ── Filters ── */
.news-filters {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.news-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a7f8d;
    white-space: nowrap;
}

.news-filter-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #e8e9f0;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.news-filter-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5060;
    text-decoration: none;
    border-right: 1px solid #e8e9f0;
    transition: background 140ms ease, color 140ms ease;
}

.news-filter-tab:last-child { border-right: none; }
.news-filter-tab:hover { background: #f5f6fa; color: var(--c-blue); }
.news-filter-tab.active { background: var(--c-blue); color: #fff; }

/* ── News grid ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e9f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-card-img-placeholder {
    background: linear-gradient(135deg, #1a2e44 0%, #0e374f 100%);
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-date {
    font-size: 12px;
    color: #7a7f8d;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #0f1923;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.2px;
}

.news-card-author {
    font-size: 13px;
    color: #7a7f8d;
    margin: 0;
    margin-top: auto;
    padding-top: 8px;
}

/* ── lang badge (shared, but defined here for news context) ── */
.lang-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    background: rgba(6,182,212,.10);
    color: #0891b2;
    padding: 2px 7px;
    border-radius: 4px;
}

/* ── Article body ── */
.article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-block {
    margin-bottom: 28px;
}

.article-text {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3340;
}

.article-text h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #0f1923;
    margin: 36px 0 14px;
    letter-spacing: -.3px;
}

.article-text h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #0f1923;
    margin: 28px 0 10px;
}

.article-text a { color: var(--c-blue); text-decoration: underline; }
.article-text ul, .article-text ol { padding-left: 24px; }
.article-text li { margin-bottom: 6px; }

.article-figure {
    margin: 0 0 28px;
}

.article-figure img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.article-figure figcaption {
    text-align: center;
    font-size: 13px;
    color: #7a7f8d;
    margin-top: 8px;
    font-style: italic;
}

.article-quote {
    border-left: 4px solid var(--c-cyan);
    margin: 0 0 28px;
    padding: 16px 24px;
    background: #f5f6fa;
    border-radius: 0 8px 8px 0;
}

.article-quote p {
    font-family: var(--font-display);
    font-size: 19px;
    font-style: italic;
    color: #0f1923;
    margin: 0 0 8px;
    line-height: 1.5;
}

.article-quote cite {
    font-size: 13px;
    color: #7a7f8d;
    font-style: normal;
}

.article-divider {
    border: none;
    border-top: 2px solid #e8e9f0;
    margin: 36px 0;
}

.article-footer {
    max-width: 720px;
    margin: 48px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #e8e9f0;
    flex-wrap: wrap;
    gap: 12px;
}

.article-edited {
    font-size: 12px;
    color: #7a7f8d;
}

/* ── Search ── */
.news-filter-search {
    margin-left: auto;
}

.news-search-form {
    display: contents;
}

.news-search-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e8e9f0;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.news-search-input {
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: 13px;
    color: #2d3340;
    background: transparent;
    width: 180px;
}

.news-search-input::placeholder { color: #b0b5c1; }

.news-search-clear {
    font-size: 11px;
    color: #9aa0ae;
    padding: 0 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.news-search-clear:hover { color: #4a5060; }

.news-search-btn {
    border: none;
    border-left: 1px solid #e8e9f0;
    background: #f5f6fa;
    color: #4a5060;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
    white-space: nowrap;
}

.news-search-btn:hover {
    background: var(--c-blue);
    color: #fff;
}

/* ── Article count ── */
.news-count {
    font-size: 13px;
    color: #7a7f8d;
    margin: 0 0 20px;
}

/* ── Pagination ── */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e8e9f0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5060;
    text-decoration: none;
    background: #fff;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
    user-select: none;
}

.page-btn:hover:not(.page-btn-active):not(.page-btn-disabled) {
    background: #f5f6fa;
    color: var(--c-blue);
    border-color: var(--c-blue);
}

.page-btn-active {
    background: var(--c-blue);
    color: #fff;
    border-color: var(--c-blue);
}

.page-btn-disabled {
    color: #c0c5d0;
    cursor: default;
    pointer-events: none;
}

.page-btn-arrow { padding: 0 14px; font-size: 13px; }

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    color: #9aa0ae;
    font-size: 16px;
    user-select: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-filters { flex-direction: column; align-items: flex-start; gap: 12px; }
    .news-filter-search { margin-left: 0; }
}

@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-search-input { width: 130px; }
}

/* ── Translation language chips on news cards ── */
.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.news-lang-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    border: 1.5px solid rgba(0,0,0,.15);
    color: #555;
    background: rgba(0,0,0,.05);
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
    cursor: pointer;
}

.news-lang-chip-active {
    border-color: var(--c-blue, #2563eb);
    color: var(--c-blue, #2563eb);
    background: rgba(37,99,235,.08);
    cursor: default;
}

.news-lang-chip:hover:not(.news-lang-chip-active) {
    background: rgba(37,99,235,.07);
    color: var(--c-blue, #2563eb);
    border-color: rgba(37,99,235,.35);
}

/* ── Article detail — language switcher bar ── */
.article-lang-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-lang-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #7a7f8d;
    margin-right: 2px;
}

.article-lang-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    border: 1.5px solid #e0e1ea;
    color: #555;
    background: #f5f6fa;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.article-lang-link:hover {
    border-color: var(--c-blue, #2563eb);
    color: var(--c-blue, #2563eb);
    background: rgba(37,99,235,.05);
}

.article-lang-link-current {
    border-color: var(--c-blue, #2563eb);
    color: var(--c-blue, #2563eb);
    background: rgba(37,99,235,.07);
    cursor: default;
}
