body{background-color:#3399cc;}.panel, .well, .nv-block-banners{margin:1;padding:1;border-color:#3a8cc7;}/**
 * NukeViet Content Management System
 * Optimized CSS for GiangVien.Net
 */

/* ==========================================================================
   1. CẤU TRÚC CHUNG (LAYOUT & BODY)
   ========================================================================== */
body.enable-animate {
    background-color: #3498db !important;
    padding-top: 26px !important;
}

.section-body .wraper {
    background-color: #ffffff !important;
    padding: 2px;
    box-sizing: border-box;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. HEADER & TOP BAR
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 26px !important;
    z-index: 99;
    color: #222;
    background-color: #ffffff !important;
    text-align: center;
    vertical-align: baseline;
    margin: 0;
    padding-bottom: 0 !important;
}

header.top-bar .main-bar {
    background-color: #ffffff !important;
    margin-bottom: 0;
}

/* Thanh line hỗ trợ/tiện ích */
.line-1 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background-color: #f8faff;
    border-bottom: 2px solid #3498db;
    margin-top: 0;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.line-1 a {
    display: inline-flex;
    align-items: center;
    color: #2c3e50 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.line-1 a span, .line-1 a i {
    font-size: 20px;
    margin-right: 10px;
    line-height: 1;
}

.line-1 a:hover {
    color: #3498db !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. TÌM KIẾM (SEARCH BAR)
   ========================================================================== */
.headerSearch {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.headerSearch .input-group {
    display: flex;
    width: 100%;
    border-radius: 0 !important;
}

.headerSearch .form-control {
    flex: 1;
    border: 1px solid #ccc;
    padding: 20px;
    font-size: 16px;
    border-radius: 0 !important;
}

.headerSearch .btn {
    border: none;
    background-color: #007bff;
    color: white;
    padding: 0 30px;
    font-size: 18px;
    border-radius: 0 !important;
    transition: background-color 0.3s;
}

.headerSearch .btn:hover {
    background-color: #0056b3;
}

/* ==========================================================================
   4. NỘI DUNG CHI TIẾT (ARTICLE CONTENT)
   ========================================================================== */

/* Tiêu đề bài viết */
h1.title.margin-bottom-lg {
    color: #0d47a1 !important;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 20px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15) !important;
    border-left: none !important;
    padding-left: 0 !important;
    text-align: justify;
}

/* Đoạn mô tả ngắn (Hometext) */
.hometext.m-bottom {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    font-style: italic;
    border-left: 4px solid #ff0000;
    padding-left: 15px;
    margin: 20px 0 !important;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Ngày tháng đăng bài */
span.h5 {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 15px !important;
    color: #007bff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-decoration: none;
}

span.h5::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

span.h5 strong {
    color: #0056b3 !important;
    font-weight: 700;
    margin-left: 4px;
}

/* ==========================================================================
   5. TIN LIÊN QUAN (RELATED NEWS)
   ========================================================================== */
.detail-related.related {
    display: block !important;
    width: 100% !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.detail-related.related li {
    display: flex !important;
    width: 100% !important; 
    background: #f0f7ff !important;
    margin-bottom: 5px !important;
    padding: 5px 5px !important;
    border-radius: 1px !important;
    border: 1px solid #d0e4ff !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    list-style-type: none !important;
    position: relative;
}

.detail-related.related li:hover {
    background: #e1efff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.15) !important;
    border-color: #007bff !important;
}

.detail-related.related h4 {
    margin: 0 !important;
    flex: 1 !important;
    text-align: left !important;
}

.detail-related.related h4 a {
    font-size: 15px !important;
    color: #2c3e50 !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.2s ease !important;
}

.detail-related.related h4 a::before {
    content: '▶';
    margin-right: 12px;
    font-size: 14px;
    color: #007bff;
    display: inline-block;
    transition: transform 0.3s ease !important;
}

.detail-related.related li:hover h4 a {
    color: #0056b3 !important;
}

.detail-related.related li:hover h4 a::before {
    content: '➔';
    transform: translateX(5px);
}

.detail-related.related em:not(.fa) {
    font-size: 14px !important;
    color: #7f8c8d !important;
    font-style: normal !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
}

/* Ẩn icon mặc định cũ */
.detail-related.related li em.fa {
    display: none !important;
}

/* Tối ưu Mobile */
@media (max-width: 768px) {
    .detail-related.related li {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 15px !important;
    }
    .detail-related.related em:not(.fa) {
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
    .detail-related.related h4 a {
        font-size: 17px !important;
    }
}

/* Nhắm vào thẻ p chứa dòng chữ */
p.h3 {
    border-bottom: 2px solid #e74c3c; /* Đường kẻ dưới màu đỏ */
    padding-bottom: 5px;
    margin-bottom: 15px !important;
    margin-top: 20px !important;
}

/* Nhắm vào dòng chữ bên trong */
p.h3 strong {
    color: #e74c3c !important; /* Màu đỏ hiện đại (Soft Red) */
    text-transform: uppercase;   /* In hoa để trông trang trọng hơn */
    font-size: 15px;
    letter-spacing: 0.5px;       /* Khoảng cách chữ thoáng hơn */
}

/* Container chứa đám mây từ khóa */
.topkeywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;          /* Khoảng cách nhỏ giữa các ô */
    width: 100%;
    padding: 1px 0;
    align-items: stretch;
}

/* Style chung cho mỗi ô từ khóa */
.topkeywords-item {
    flex: 1 0 auto;    /* Dàn đều: Tự giãn rộng để lấp đầy hàng, không để ô mồ côi */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 5px;
    min-width: fit-content;
    border-radius: 0 !important; /* Không bo tròn ô */
    font-weight: 200;
    text-decoration: none !important;
    line-height: 1;
    transition: all 0.2s ease-in-out;
}

/* Hiệu ứng khi hover vào ô */
.topkeywords-item:hover {
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #ffffff !important;
}

/* --- Bảng 12 màu sắc rực rỡ đan xen --- */
.topkeywords-item:nth-child(12n+1)  { background-color: #FFEBEE; color: #D32F2F; }
.topkeywords-item:nth-child(12n+2)  { background-color: #E1F5FE; color: #0288D1; }
.topkeywords-item:nth-child(12n+3)  { background-color: #F1F8E9; color: #388E3C; }
.topkeywords-item:nth-child(12n+4)  { background-color: #FFFDE7; color: #FBC02D; }
.topkeywords-item:nth-child(12n+5)  { background-color: #F3E5F5; color: #8E24AA; }
.topkeywords-item:nth-child(12n+6)  { background-color: #E0F7FA; color: #0097A7; }
.topkeywords-item:nth-child(12n+7)  { background-color: #FFF3E0; color: #F57C00; }
.topkeywords-item:nth-child(12n+8)  { background-color: #FCE4EC; color: #C2185B; }
.topkeywords-item:nth-child(12n+9)  { background-color: #EFEBE9; color: #5D4037; }
.topkeywords-item:nth-child(12n+10) { background-color: #E8EAF6; color: #3F51B5; }
.topkeywords-item:nth-child(12n+11) { background-color: #F9FBE7; color: #AFB42B; }
.topkeywords-item:nth-child(12n+12) { background-color: #E0F2F1; color: #00796B; }

/* Đổi màu nền tương ứng khi hover */
.topkeywords-item:nth-child(12n+1):hover  { background-color: #D32F2F; }
.topkeywords-item:nth-child(12n+2):hover  { background-color: #0288D1; }
.topkeywords-item:nth-child(12n+3):hover  { background-color: #388E3C; }
.topkeywords-item:nth-child(12n+4):hover  { background-color: #FBC02D; }
.topkeywords-item:nth-child(12n+5):hover  { background-color: #8E24AA; }
.topkeywords-item:nth-child(12n+6):hover  { background-color: #0097A7; }
.topkeywords-item:nth-child(12n+7):hover  { background-color: #F57C00; }
.topkeywords-item:nth-child(12n+8):hover  { background-color: #C2185B; }
.topkeywords-item:nth-child(12n+9):hover  { background-color: #5D4037; }
.topkeywords-item:nth-child(12n+10):hover { background-color: #3F51B5; }
.topkeywords-item:nth-child(12n+11):hover { background-color: #AFB42B; }
.topkeywords-item:nth-child(12n+12):hover { background-color: #00796B; }