/* ===== Основной layout ===== */
.news-layout {
    max-width: 1400px;
    margin: 24px auto;
    padding: 30px 20px 40px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: nowrap; /* колонки рядом */
}
.news-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* сохраняем пропорции 16:9 */
    height: auto;
    display: block;
    border: 0;
    margin-bottom: 16px;
}

.news-article {
    flex: 0 0 70%;
}

.sidebar-placeholder {
    flex: 0 0 30%;
    display: block;
    position: sticky; /* липкий сайдбар */
    top: 100px;
}

/* ===== Заголовок ===== */
.news-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111;
}

/* ===== Meta: город, дата, категория ===== */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
    font-size: 14px;
}

.news-meta span,
.news-meta a,
.news-meta time {
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-geo {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
}

.news-date {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.news-category {
    background: linear-gradient(135deg, #28a745, #81c784);
}

.news-meta a:hover,
.news-meta span:hover {
    transform: translateY(-3px);
}

/* ===== Изображение ===== */
.news-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin-bottom: 6px;
}

.news-image figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
}

/* ===== Контент статьи ===== */
.news-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-content blockquote {
    border-left: 4px solid #0057b7;
    background: #f9f9f9;
    padding: 12px 16px;
    margin: 20px 0;
    font-style: italic;
}

/* ===== Share ===== */
.news-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    font-family: 'Inter', sans-serif;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-btn i {
    font-size: 16px;
}

.share-btn.tg { background: #26a5e4; }
.share-btn.fb { background: #1877f2; }
.share-btn.x  { background: #000; }

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* ===== Теги ===== */
.news-tags {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.news-tags span {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.news-tags a {
    padding: 5px 12px;
    background: linear-gradient(135deg, #0057b7, #ffd700);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.news-tags a:hover {
    background: linear-gradient(135deg, #ffd700, #0057b7);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== Related news ===== */
.article-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-column {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.related-column h3 {
    font-size: 18px;
    margin-bottom: 14px;
    position: relative;
}

.related-column h3::after {
    content: "";
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #0057b7, #ffd700);
    display: block;
    margin-top: 6px;
    border-radius: 2px;
}

.related-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-column li {
    margin-bottom: 12px;
}

.related-column li a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.related-column li a:hover .rel-title {
    color: #0057b7;
}

.rel-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.rel-date { font-size: 12px; color: #777; }

/* ===== Мобильная адаптация ===== */
@media (max-width: 992px) {
    .news-article { flex: 0 0 65%; }
    .sidebar-placeholder { flex: 0 0 33%; }
}

@media (max-width: 768px) {
    .news-layout { flex-direction: column; }
    .news-article, .sidebar-placeholder { flex: 0 0 100%; }
    .sidebar-placeholder { display: none; }

    .news-title { font-size: 28px; }

    .article-related {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-column {
        padding: 16px;
        border-radius: 8px;
    }

    .related-column h3 { font-size: 16px; margin-bottom: 12px; }
    .related-column li { margin-bottom: 10px; }
    .rel-title { font-size: 14px; }
    .rel-date { font-size: 12px; }

    .news-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}
