/**
 * 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;
}

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

div.news_column .time {
    margin: 3px 0 10px 0;
    display: inline;
}

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

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

div.news_column ul.list-inline li {
    font-size: 12px;
}

div.news_column .socialicon {
    margin: -8px 0 -8px 0;
}

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

#hometext h2 {
    font-weight: bold;
    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,
div.news_column div.bodytext,
#news_detail h1,
p.copyright {
    text-align: justify;
    margin-bottom: 10px;
}

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

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

ul.related {
    float: left;
    padding: 0;
    margin: 0px;
}

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

div.news_column {
    padding: 10px 0px;
}

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;
}

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

.icon_new {
    background: url('../images/news/new.gif') no-repeat;
    display: inline-block;
    width: 33px;
    height: 15px;
}

.icon_new_small {
    background: url('../images/squared-blue.png') no-repeat 0 6px;
}

.icon_list {
    background: url(../images/arrow_left_orange.png) no-repeat 0 6px;
}

.txtrequired {
    color: #ff0000;
}

.content-box {
    padding: 10px;
}

#hot-news h3 {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 8px;
}

#hot-news p {
    margin-bottom: 0;
}

#hot-news ul.other-news {
    border-top: 1px solid #dadada;
    list-style-type: none;
    margin: 0;
    display: block;
}

#hot-news ul.other-news li {
    float: left;
    width: 33%;
}

#hot-news ul.other-news h5 {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

#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;
    text-align: justify;
}

#print #content #bodytext {
    text-align: justify;
}

#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;
}

#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;
}

.bodytext {
    word-break: break-word;
}

.margin_image {
    margin: 0 5px 1px 0;
}

.news_column h1,
.news_column h2,
.news_column h3,
.news_column h4,
.news_column h5,
.news_column h6 {
    padding: 0 !important;
    margin: 0 !important;
}

.news_column h1 {
    color: #0e73e6;
    font-size: 1.1em;
    font-weight: bold;
}

h2,
.h2 {
    font-size: 18px;
}

.fb-like {
    margin: 0 25px 0 10px;
    top: -5px;
}

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

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

.list-group {
    padding: 10px;
    margin: 0px;
}

.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;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
}

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

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

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

.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);
}

/* ==============================================================
   DANTRI-STYLE SEARCH RESULTS (MOBILE & RESPONSIVE)
   ============================================================== */
.dantri-srch-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.dantri-srch-header {
    font-size: 15.5px;
    color: #555555;
    padding: 4px 0 14px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}
.dantri-srch-header .dantri-srch-count {
    color: #111827;
    font-weight: 700;
}
.dantri-srch-header .dantri-srch-keyword {
    color: #111827;
    font-weight: 700;
}
.dantri-srch-list {
    display: flex;
    flex-direction: column;
}
.dantri-srch-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.dantri-srch-card:first-child {
    padding-top: 8px;
}
.dantri-srch-card:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

/* HIỆU ỨNG DI CHUỘT VÀO TỪNG KẾT QUẢ (HOVER EFFECT) */
.dantri-srch-card:hover,
.dantri-srch-card:active {
    background: #f8faff;
    box-shadow: 0 4px 18px rgba(27, 91, 176, 0.08);
    transform: translateY(-2px);
    border-color: #dbeafe;
}

/* Khung viền ảnh bìa sách 3D sang trọng - không bị cắt chữ */
.dantri-srch-thumb {
    width: 86px;
    min-width: 86px;
    height: 122px;
    padding: 2px;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Trang trí gáy sách (đổ bóng mép trái) */
.dantri-srch-thumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.05) 60%, transparent);
    z-index: 2;
    pointer-events: none;
    border-radius: 4px 0 0 4px;
}

/* Trang trí mép trang sách (đổ bóng nhẹ mép phải) */
.dantri-srch-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent);
    z-index: 2;
    pointer-events: none;
    border-radius: 0 8px 8px 0;
}

/* Ảnh hiển thị 100% trọn vẹn, không bao giờ bị cắt chữ theo chiều dọc */
.dantri-srch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8fafc;
    border-radius: 3px 6px 6px 3px;
    transition: transform 0.3s ease;
}

/* Hiệu ứng nổi ảnh bìa khi di chuột vào card */
.dantri-srch-card:hover .dantri-srch-thumb {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22), 0 3px 8px rgba(15, 23, 42, 0.1);
    border-color: #60a5fa;
}

.dantri-srch-content {
    flex: 1;
    min-width: 0;
}
.dantri-srch-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0;
}
.dantri-srch-title a {
    color: #1b5bb0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.dantri-srch-title a:hover,
.dantri-srch-title a:focus {
    color: #0f3e79;
    text-decoration: underline;
}
.dantri-srch-card:hover .dantri-srch-title a {
    color: #0f3e79;
    text-decoration: underline;
}
.dantri-srch-title span.keyword,
span.keyword {
    background: #fef08a !important;
    color: #1b5bb0 !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.dantri-srch-desc {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.48;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dantri-srch-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.dantri-srch-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #64748b;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.dantri-srch-meta-item i {
    color: #94a3b8;
    font-size: 11px;
}
.dantri-srch-card:hover .dantri-srch-meta-item {
    background: #ffffff;
    border-color: #93c5fd;
    color: #1e3a8a;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}
.dantri-srch-empty {
    text-align: center;
    padding: 36px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    margin: 16px 0;
}
.dantri-empty-icon {
    margin-bottom: 12px;
}
.dantri-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.dantri-empty-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
}
.dantri-empty-tips {
    display: inline-block;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 13px;
    color: #475569;
}
.dantri-empty-tips .tips-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.dantri-empty-tips ul {
    margin: 0;
    padding-left: 18px;
}
.dantri-empty-tips li {
    margin-bottom: 3px;
}
.dantri-srch-pagination {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
    text-align: center;
}
.dantri-srch-pagination .pagination {
    margin: 0;
    display: inline-flex;
    gap: 4px;
}
.dantri-srch-pagination .pagination > li > a,
.dantri-srch-pagination .pagination > li > span {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}
.dantri-srch-pagination .pagination > .active > a,
.dantri-srch-pagination .pagination > .active > span {
    background-color: #1b5bb0;
    border-color: #1b5bb0;
    color: #ffffff;
}
@media (max-width: 480px) {
    .dantri-srch-wrapper {
        padding: 10px 10px;
    }
    .dantri-srch-card {
        gap: 12px;
        padding: 12px 6px;
        margin: 0 -6px;
    }
    .dantri-srch-thumb {
        width: 80px;
        min-width: 80px;
        height: 114px;
    }
    .dantri-srch-title {
        font-size: 14.5px;
        line-height: 1.32;
        margin-bottom: 4px;
    }
    .dantri-srch-desc {
        font-size: 13px;
        line-height: 1.42;
        -webkit-line-clamp: 2;
    }
}
@media (max-width: 360px) {
    .dantri-srch-thumb {
        width: 74px;
        min-width: 74px;
        height: 105px;
    }
}
