/* Страница новостей — в концепции about/careers */

.news-container {
    padding-bottom: var(--space-2xl, 3rem);
}

.news-hero .about-subtitle {
    max-width: 720px;
}

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.news-back:hover {
    color: var(--primary, #2563eb);
}

.news-meta {
    font-size: 0.9375rem;
    color: var(--text-secondary, #64748b);
    margin: 0.5rem 0 0 0;
}

/* Список новостей */
.news-list-section {
    padding: var(--space-6xl, 4rem) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: var(--space-2xl, 2rem) 0;
    border-radius: 24px;
    border: 1px solid var(--border-light, #e2e8f0);
}

.news-empty {
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: 1.0625rem;
    margin: 2rem 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    margin: 0;
}

.news-card-link {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card-link:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.news-card-image {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    min-width: 0;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.news-card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 0.75rem 0;
}

.news-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary, #475569);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.news-card-more {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary, #2563eb);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    text-decoration: none;
    color: var(--text-primary, #0f172a);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.news-page-link:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: #2563eb;
}

.news-page-link.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.news-page-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

.news-page-ellipsis {
    color: var(--text-secondary, #64748b);
    padding: 0 0.25rem;
    font-weight: 700;
}

/* Одна новость */
.news-hero-single {
    padding-bottom: 1rem;
}

.news-single-content {
    padding: 0 0 var(--space-2xl);
}

.container-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.news-single-image {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}
.news-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-single-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary, #0f172a);
}

.news-single-excerpt {
    color: var(--text-secondary, #475569);
    margin-bottom: 1.5rem;
}

.news-single-text {
    color: var(--text-primary, #0f172a);
}

.news-single-text p {
    margin: 0 0 1rem 0;
}

.news-single-text p:last-child {
    margin-bottom: 0;
}

.news-single-text h1, .news-single-text h2, .news-single-text h3, .news-single-text h4 {
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.news-single-text h1 { font-size: 1.5rem; }
.news-single-text h2 { font-size: 1.25rem; }
.news-single-text h3, .news-single-text h4 { font-size: 1.125rem; }

.news-single-text ul, .news-single-text ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.news-single-text li {
    margin-bottom: 0.35rem;
}

.news-single-text a {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.news-single-text a:hover {
    text-decoration: underline;
}

.news-single-text strong, .news-single-text b {
    font-weight: 600;
}

/* Стили из Quill (выравнивание, отступы) */
.news-single-text .ql-align-center { text-align: center; }
.news-single-text .ql-align-right { text-align: right; }
.news-single-text .ql-align-justify { text-align: justify; }
.news-single-text .ql-indent-1 { padding-left: 3em; }
.news-single-text .ql-indent-2 { padding-left: 6em; }
.news-single-text .ql-indent-3 { padding-left: 9em; }
.news-single-text .ql-indent-4 { padding-left: 12em; }

@media (max-width: 768px) {
    .news-list {
        gap: 1rem;
    }
    .news-card-link {
        padding: 1.25rem;
    }
}
