/* --- Single Post --- */
.single-post-wrap { max-width: 860px; margin: 40px auto; padding-bottom: 60px; }
.post-content { font-size: 19px; line-height: 1.65; color: #333; }
.post-content img { margin: 2em auto !important; box-shadow: 0 15px 45px rgba(0,0,0,0.1); border-radius: 12px; max-width: 100%; height: auto; display: block; }
.post-content a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: all 0.2s ease; }
.post-content a:hover { color: #000; text-decoration-thickness: 2px; }

/* Tags */
.post-tags { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-tags a { font-size: 12px; background: #f5f5f5; padding: 5px 14px; border-radius: 20px; color: #888; font-weight: 600; }
.post-tags a:hover { background: var(--red); color: #fff; }

/* Telegram Box */
.telegram-subscribe-box { margin: 30px 0; padding: 20px; background: #f0f7ff; border-radius: 12px; border: 1px solid #e0ebf5; display: flex; align-items: center; gap: 15px; }
.telegram-subscribe-box a.tg-btn { background: #24A1DE; color: white; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: opacity 0.3s; }

/* --- Share & Socials --- */
.share-card { margin-top: 50px; padding: 25px; background: #f9f9f9; border: 1px solid #eee; display: flex; align-items: center;  border-radius: 12px; }
.post-share { display: flex; gap: 10px; }
.share-link { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.share-link svg { width: 18px; height: 18px; fill: #fff; }
.share-link.fb { background: #1877F2; } .share-link.tg { background: #26A5E4; } .share-link.vb { background: #7360F2; }



/* --- FIX FOR TEXT-NEWS STYLE IN ARTICLE --- */
.post-content .section-wrap { 
    background: #fcfcfc !important; 
    margin: 35px 0 !important; 
    padding: 20px !important; 
    border-radius: 12px !important; 
    border-left: 5px solid #bb1919 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; 
}
.post-content .section-title { 
    border-top: none !important; 
    margin: 0 0 12px 0 !important; 
    padding: 0 !important; 
    color: #bb1919 !important; 
    font-size: 14px !important; 
    letter-spacing: 1px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase !important;
}

/* Стили для текстового вывода (text-news) */
.post-content .text-news { gap: 0 !important; display: flex !important; flex-direction: column !important; margin: 0 !important; }
.post-content .text-news .item { display: block !important; padding: 10px 0 !important; margin: 0 !important; border-bottom: 1px solid #eee !important; background: transparent !important; }
.post-content .text-news .item:last-child { border-bottom: none; padding-bottom: 0 !important; }
.post-content .text-news h3 { font-size: 17px !important; line-height: 1.4 !important; margin: 0 0 4px 0 !important; padding: 0 !important; font-weight: 700 !important; color: #000 !important; }
.post-content .text-news a { text-decoration: none !important; border-bottom: none !important; color: #000 !important; }
.post-content .text-news a:hover h3 { color: #bb1919 !important; }
.post-content .text-news .meta { font-size: 11px !important; color: #888 !important; }

/* Поддержка темной темы */
body.dark-mode .post-content .section-wrap { background: #1a1a1a !important; border-color: #bb1919 !important; }
body.dark-mode .post-content .section-title { color: #fff !important; }
body.dark-mode .post-content .text-news .item { border-color: #333; }
body.dark-mode .post-content .text-news h3 { color: #eee !important; }

/* --- Article Lists Fix --- */
.post-content ul, .post-content ol {
    margin: 25px 0 25px 25px !important;
    padding: 0 !important;
}
.post-content ul li {
    list-style-type: disc !important;
    margin-bottom: 10px !important;
    padding-left: 5px !important;
}
.post-content ol li {
    list-style-type: decimal !important;
    margin-bottom: 10px !important;
    padding-left: 5px !important;
}
.post-content li > ul, .post-content li > ol {
    margin: 10px 0 10px 20px !important;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #111;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #111;
}

.post-content h4 {
    font-size: 21px;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #111;
}
