﻿/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

#topnews {
    border: 1px solid #c3d3e0;
    margin-bottom: 10px;
    padding: 4px;
}

#topnews ul.lastest-news {
    padding: 0;
}

#topnews ul.lastest-news li {
    text-indent: 10px;
}

#topnews ul.lastest-news a {
    background: transparent url('../images/squared-blue.png') no-repeat 5px 9px;
    border-bottom: 1px dotted #bbdbf6;
    color: #383838;
    display: block;
    font-weight: normal;
    padding: 2px 0;
}

#topnews ul.lastest-news a:hover {
    background: #fff url('../images/squared-blue.png') no-repeat 5px 9px;
}

/*div.news_column h5 .list-inline > li {
    padding-left:0;
}

div.news_column h5 .list-inline {
    margin-bottom:3px;
}*/

div.news_column .socialicon {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
}

div.news_column .imghome {
    margin: 4px 10px 0 0;
}

div.news_column .text-muted {
    font-size: 12px;
}

#hometext h2 {
    font-weight: bold;
    /*font-size:14px;
    line-height:20px;*/
}

div.news_column .imgalt {
    display: block;
    text-align: center;
    margin-top: 5px;
}

div.news_column div.items p,
div.news_column #hometext,
#news_detail h1,
p.copyright {
    margin-bottom: 10px;
}

div.news_column div.copyright {
    margin-top: 10px;
}

div.news_column p.adminlink {
    margin-bottom: 10px;
}

div.news_column ul.related {
    float: left;
}

div.span-25 ul.related {
    width: 100%;
}

div.news_column ul.related li {
    padding: 0 4px 0 0;
}

div.news_column .panel-heading {
    font-size: 14px;
    font-weight: bold;
}

div.span-25 ul.related li {
    padding: 0 10px;
}

div.news_column ul.related a {
    color: #3b3b3b;
    padding-left: 6px;
    text-align: left;
}

div.news_column ul.related a:hover {
    color: #004175;
}

.txtrequired {
    color: #ff0000;
}

.content-box {
    padding: 10px;
}

.panel-body.other-news > div.clearfix {
    margin-bottom: 15px;
}

.panel-body.other-news > div.clearfix:last-child {
    margin-bottom: 0;
}

ul.other-news {
    padding-left: 0;
    margin-left: 0;
}

#hot-news .hot-news-others ul {
    padding: 0;
    margin: 0;
}

#hot-news .hot-news-others ul li {
    display: block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dadada;
}

#hot-news .hot-news-others ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#hot-news li a span {
    text-indent: 8px;
    display: inherit;
}

#print {
    margin: 0 auto;
    text-align: left;
    width: 800px;
}

#print a,
#print a:active,
#print a:focus,
#print a:visited {
    color: #4d5764;
    text-decoration: none;
}

#print h1 {
    /*font-size:160%;*/
}

#print h2 {
    /*font-size:150%;*/
}

#print a:hover {
    text-decoration: underline;
}

#print h1,
h2,
p {
    margin: 0 0 6px 0;
    padding: 0;
}

#print #hd_print {
    margin-top: 10px;
}

#print #content #hometext {
    font-weight: bold;
    margin-bottom: 10px;
}

#print #content ul.control {
    margin: 0;
    display: block;
    padding: 7px 0 19px 0;
}

#print #content ul.control li {
    display: inline;
    float: left;
    list-style: none;
    font-size: 95%;
}

#print #content ul.control li a {
    padding: 0 2px;
}

#print #content ul.control li a:hover {
    text-decoration: none;
    cursor: pointer;
}

#print #content .time {
    color: #333;
}

#print #content .imghome {
    padding: 4px;
    margin: 0 auto;
    display: block;
    text-align: center;
}

#print #content .imghome p {
    font-weight: normal;
}

#print #content .copyright {
    background: #66ccff;
    padding: 4px;
    width: 100%;
}

#print #content #author {
    text-align: right;
}

#print #footer {
    margin-top: 10px;
    border-top: 2px solid #dc0312;
    min-height: 30px !important;
    padding: 10px;
}

#print #footer #url {
    line-height: 20px;
    font-size: 100%;
    display: block;
    border-bottom: 2px solid #4d5764;
}

#print #footer .copyright {
    float: left;
    display: inline;
    padding: 5px 0;
}

#print #footer #contact {
    float: right;
    display: inline;
    padding: 5px 0;
}

#print #footer #contact a:hover {
    text-decoration: none;
    cursor: pointer;
}

#print #footer a {
    color: #fff;
}

.bodytext figure.image figcaption {
    padding: 5px;
}

.featured h2 {
    /*font-size:16px !important;*/
    padding-left: 5px !important;
}

.featured p {
    font-size: 14px !important;
    padding-left: 5px !important;
}

ul.related h4 {
    display: inline-block;
}

.detail-related.related li * {
    display: inline;
}

.news-download-file {
    margin-top: -6px;
}

.news-download-file .list-group-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.news-download-file .list-group-item .badge {
    float: right;
    display: inline-block;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #5cb85c;
    border-radius: 15px;
}

.news-download-file .list-group-item .badge a {
    color: #fff;
}

h3.newh3 {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #cccccc;
    font-size: 20px;
    line-height: 25px;
    padding-bottom: 10px;
    margin-bottom: 5px;
    padding-top: 10px;
    margin-top: 0px;
    color: #02659d;
}

/* Player */
:root {
    --plyr-color-main: #108DE5;
    --plyr-audio-controls-background: transparent;
}

.news-detail-player {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 24px;
    background-color: #f4f4f4;
}

.news-detail-player > .player {
    -ms-flex-positive: 1;
    flex-grow: 1;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    padding-right: 24px;
}

.news-detail-player > .source {
    -ms-flex-positive: 0;
    flex-grow: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding-right: 20px;
}

.news-detail-player > .tools {
    -ms-flex-positive: 0;
    flex-grow: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding-right: 20px;
}

.news-switch {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.news-switch .news-switch-btn {
    margin-left: 5px;
    position: relative;
    width: 44px;
    height: 22px;
}

.news-switch .news-switch-btn .news-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
}

.news-switch .news-switch-btn .news-switch-slider:before {
    position: absolute;
    content: "";
    background-color: #d6dadf;
    -webkit-transition: .4s;
    transition: .4s;
    height: 14px;
    width: 36px;
    left: 4px;
    bottom: 4px;
    border-radius: 7px;
}

.news-switch .news-switch-btn .news-switch-slider:after {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 0;
    bottom: 0;
    background-color: #4a5464;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.news-switch .news-switch-btn.checked .news-switch-slider:after {
    background-color: #108DE5;
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

/* Responsive news */

@media (max-width: 499.98px) {
    div.news_column ul.related {
        padding: 4px;
        clear: both;
    }

    div.news_column ul.fixedwidth {
        width: 100%;
        clear: both;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 100%;
        clear: both;
    }

    .news-detail-player {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .news-detail-player > .player {
        padding-right: 0;
        width: 100%;
        -ms-flex-order: 1;
        order: 2;
    }

    .news-detail-player > .source {
        padding-right: 10;
        -ms-flex-order: 0;
        order: 0;
        margin-top: 12px;
    }

    .news-detail-player > .tools {
        padding-right: 0;
        -ms-flex-order: 0;
        order: 1;
        margin-top: 12px;
    }
}

@media (min-width: 500px) {
    div.news_column ul.fixedwidth {
        width: 100%;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 100%;
    }
}

@media (max-width: 640px) {
    div.news_column ul.related {
        margin-bottom: 0;
    }

    div.news_column ul.related li {
        padding: 0 4px 4px 0 !important;
    }
}

@media (min-width: 768px) {
    div.news_column ul.related {
        padding: 4px;
    }

    div.news_column ul.fixedwidth {
        width: 28%;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 68%;
    }
}

@media (min-width: 992px) {
    div.news_column ul.related {
        padding: 4px;
    }

    div.news_column ul.fixedwidth {
        width: 28%;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 68%;
    }
}

@media (min-width: 1200px) {
    div.news_column ul.related {
        padding: 4px;
    }

    div.news_column ul.fixedwidth {
        width: 28%;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 68%;
    }
}

@media (min-width: 500px) {
    div.news_column ul.related {
        padding: 4px;
    }

    div.news_column ul.fixedwidth {
        width: 100%;
    }

    div.news_column div.fixedwidth {
        float: left;
        width: 100%;
    }
}


/* ══════════════ THEME DRIVEHUB — TRANG TIN TỨC (template modules/news của theme) ══════════════ */
.th-news-intro { background: var(--th-primary-soft); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: var(--th-text); }
.th-news-intro h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--th-ink); }
.th-news-intro p { margin: 0; }
.th-news-new { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #fee2e2; color: #b91c1c; }
.th-news-admin { margin: 8px 0 0; font-size: 12.5px; }

/* Trang chủ tin: lưới thẻ chuyên mục */
.th-news-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.th-news-cat-block { grid-column: 1 / -1; }
.th-news-cat-card { background: #fff; border-radius: 18px; box-shadow: var(--th-shadow); padding: 18px 20px 12px; display: flex; flex-direction: column; min-width: 0; }
.th-news-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.th-news-cat-head h2 { margin: 0; font-size: 17px; font-weight: 800; padding-left: 10px; border-left: 4px solid var(--th-primary); line-height: 1.3; }
.th-news-cat-head h2 a { color: var(--th-ink) !important; text-decoration: none !important; }
.th-news-more { flex: none; font-size: 13px; font-weight: 700; color: var(--th-primary) !important; text-decoration: none !important; white-space: nowrap; }
.th-news-more:hover { color: var(--th-accent-dark) !important; }
.th-news-lead-title { margin: 12px 0 0; font-size: 17px; line-height: 1.4; font-weight: 700; }
.th-news-lead-title a, .th-news-row-title a, .th-news-card-title a { color: var(--th-ink) !important; text-decoration: none !important; }
.th-news-lead-title a:hover, .th-news-row-title a:hover, .th-news-card-title a:hover { color: var(--th-primary) !important; }
.th-news-lead .th-news-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-news-links { list-style: none; margin: 12px 0 0; padding: 0; }
.th-news-links li { position: relative; padding: 9px 0 9px 16px; border-top: 1px solid var(--th-line); font-size: 14.5px; line-height: 1.45; }
.th-news-links li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--th-accent); }
.th-news-links a { color: var(--th-text) !important; text-decoration: none !important; }
.th-news-links a:hover { color: var(--th-primary) !important; }
.th-news-cat-card .th-news-ph > span { font-size: 18px; max-width: 80%; }

/* Danh sách hàng (bài đầu trang chủ khi có) */
.th-news-section { margin-bottom: 22px; }
.th-news-row { display: flex; gap: 16px; background: #fff; border-radius: 16px; box-shadow: var(--th-shadow); padding: 14px; }
.th-news-row-title { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 700; }

/* Trang chuyên mục: bài nổi bật + lưới thẻ */
.th-news-hero-cat { flex-direction: row; margin-bottom: 22px; }
.th-news-hero-cat .th-news-media { width: 46%; aspect-ratio: auto; min-height: 240px; }
.th-news-hero-cat .th-news-hero-body { flex: 1; align-self: center; }
.th-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.th-news-card { background: #fff; border-radius: 16px; box-shadow: var(--th-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.th-news-card:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-hover); }
.th-news-card .th-news-media { border-radius: 0; }
.th-news-card-body { padding: 14px 16px 16px; }
.th-news-card-title { margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-news-pages { text-align: center; margin-top: 24px; }

/* Trang chi tiết: khung đọc gọn, chữ dễ đọc */
.th-news-detail > .news_column.panel { border: 0; border-radius: 18px; box-shadow: var(--th-shadow); margin-bottom: 20px; }
.th-news-detail > .news_column > .panel-body { padding: 28px 32px; }
.th-news-detail h1.title { font-size: 28px; line-height: 1.3; font-weight: 800; color: var(--th-ink); margin: 0 0 10px !important; }
.th-news-detail .h5 { font-size: 13px; color: var(--th-muted); }
.th-news-detail .list-inline .dimgray { color: var(--th-muted); }
.th-news-detail .list-inline .dimgray:hover { color: var(--th-primary); }
.th-news-detail .hometext { font-size: 17px; line-height: 1.7; font-weight: 600; color: var(--th-ink); margin-bottom: 18px; }
.th-news-detail .bodytext { font-size: 16.5px; line-height: 1.8; color: var(--th-text); max-width: 760px; }
.th-news-detail .bodytext h2, .th-news-detail .bodytext h3 { color: var(--th-ink); font-weight: 800; margin: 26px 0 10px; line-height: 1.35; }
.th-news-detail .bodytext h2 { font-size: 22px; }
.th-news-detail .bodytext h3 { font-size: 19px; }
.th-news-detail .bodytext ul, .th-news-detail .bodytext ol { padding-left: 22px; }
.th-news-detail .bodytext li { margin: 4px 0; }
.th-news-detail .bodytext blockquote { border-left: 4px solid var(--th-accent); background: var(--th-accent-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 18px 0; font-size: 16px; }
.th-news-detail .bodytext img { max-width: 100%; height: auto; border-radius: 12px; }
.th-news-detail figure.article img.img-thumbnail { border: 0; padding: 0; border-radius: 12px; }
.th-news-detail .other-news h4, .th-news-detail .other-news .h4 { font-size: 15px; line-height: 1.45; margin: 0; }
.th-news-detail .other-news .detail-related li { padding: 8px 0; border-top: 1px solid var(--th-line); }
.th-news-detail .other-news .detail-related li:first-child { border-top: 0; }
.th-news-detail .other-news > div > p, .th-news-detail .other-news .h3, .th-news-detail .other-news strong.h3 { font-size: 16px; font-weight: 800; color: var(--th-ink); }

@media (max-width: 991px) {
    .th-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .th-news-cat-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .th-news-hero-cat { flex-direction: column; }
    .th-news-hero-cat .th-news-media { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .th-news-detail > .news_column > .panel-body { padding: 20px 16px; }
    .th-news-detail h1.title { font-size: 23px; }
    .th-news-detail .bodytext { font-size: 16px; }
}
@media (max-width: 575px) {
    .th-news-grid { grid-template-columns: minmax(0, 1fr); }
    .th-news-row { flex-direction: column; }
    .th-news-row .th-news-media-md { width: 100%; aspect-ratio: 16 / 9; }
}
/* Gọn: thẻ chuyên mục ở trang chủ tin và hàng tin chỉ hiện ô ảnh khi bài CÓ ảnh */
.th-news-cat-card .th-news-media:not(:has(img)), .th-news-row .th-news-media:not(:has(img)) { display: none; }
.th-news-cat-card .th-news-lead-title { margin-top: 0; }
.th-news-cat-card .th-news-media:has(img) + .th-news-lead-title { margin-top: 12px; }
.th-news-card .th-news-media { aspect-ratio: 2 / 1; }
.th-news-card .th-news-ph-label { font-size: 15px; gap: 6px; }
.th-news-card .th-news-ph-label .fa { font-size: 26px; }
/* Trang chi tiết: danh sách tin liên quan, đánh giá, chia sẻ */
.th-news-detail .detail-related { list-style: none; padding-left: 0; }
.th-news-detail .detail-related li > em.fa:first-child, .th-news-detail .detail-related li > .fa-angle-right { display: none; }
.th-news-detail button[class^="social-share-"] {
    border: 1px solid var(--th-line); background: #fff; color: var(--th-text); border-radius: 999px;
    padding: 6px 14px; font-size: 13.5px; font-weight: 600; margin: 4px 6px 0 0; cursor: pointer;
}
.th-news-detail button[class^="social-share-"]:hover { border-color: var(--th-primary); color: var(--th-primary); }
/* Ảnh đại diện ở đầu bài (figure.article của module tin): canh giữa, bỏ nền xám của theme default */
.th-news-detail figure.article { float: none !important; display: table; margin: 0 auto 20px !important; max-width: 100%; background: none; padding: 0; width: auto !important; }
.th-news-detail figure.article p { margin: 0; }
.th-news-detail figure.article img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.th-news-detail figure.article figcaption { color: var(--th-muted); font-size: 13.5px; font-style: italic; padding-top: 8px; }
.th-news-detail .bodytext { margin-left: auto; margin-right: auto; }
