/* ============================================================
   news-detail.css — страница отдельной новости
   (стили из news_detail.html оригинала, адаптированные
   под классы article-img-* из markdown-контента)
   ============================================================ */
.news-content {
    background: linear-gradient(135deg, rgba(34,36,47,0.75), rgba(30,30,30,0.75));
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 30px rgba(253,180,0,0.05);
    color: #CCC6C0;
    line-height: 1.7;
    font-size: 1rem;
    display: flow-root;
}
.news-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fdb400;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}
.news-content .full-news-content {
    line-height: 1.7;
    font-size: 1rem;
}
.news-content .full-news-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #CCC6C0;
    text-align: justify;
}
.news-content .full-news-content ul,
.news-content .full-news-content ol {
    margin: 0 0 25px 25px;
}
.news-content .full-news-content li {
    margin-bottom: 8px;
    color: #CCC6C0;
}
.news-content .full-news-content h2,
.news-content .full-news-content h3,
.news-content .full-news-content h4 {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}
.news-content .full-news-content h2 { font-size: 1.4rem; margin: 30px 0 15px; }
.news-content .full-news-content h3 { font-size: 1.2rem; margin: 22px 0 12px; }
.news-content .full-news-content h4 { font-size: 1.05rem; margin: 18px 0 10px; }
.news-content .full-news-content a { color: #FF8C00; }

/* Изображения и видео — плавающие по краям (как article-img-*) */
.news-content .full-news-content img.article-img-left,
.news-content .full-news-content video.article-img-left {
    float: left;
    width: 45%;
    max-width: 45%;
    margin: 0.5rem 1.2rem 0.8rem 0;
    border-radius: 20px;
}
.news-content .full-news-content img.article-img-right,
.news-content .full-news-content video.article-img-right {
    float: right;
    width: 45%;
    max-width: 45%;
    margin: 0.5rem 0 0.8rem 1.2rem;
    border-radius: 20px;
}
/* Обычные изображения/видео — полная ширина */
.news-content .full-news-content img:not(.article-img-left):not(.article-img-right) {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 15px 0;
    cursor: zoom-in;
}
.news-content .full-news-content video:not(.article-img-left):not(.article-img-right) {
    width: 100%;
    border-radius: 20px;
    margin: 15px 0;
}
/* Clearfix */
.news-content .full-news-content::after {
    content: "";
    display: table;
    clear: both;
}
/* Контейнер Plyr */
.news-content .full-news-content .plyr {
    border-radius: 20px;
    overflow: hidden;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 40px;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-back:hover {
    background: #fdb400;
    color: black;
    border-color: #fdb400;
}

/* Мобильная версия — всё в одну колонку */
@media (max-width: 768px) {
    .news-content .full-news-content img.article-img-left,
    .news-content .full-news-content img.article-img-right,
    .news-content .full-news-content video.article-img-left,
    .news-content .full-news-content video.article-img-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
    }
}
