/*
Theme Name: Trần Lê Minh Giang - edu
Theme URI: https://www.thpt-nguyenkhuyen.edu.vn/
Author: Trần Lê Minh Giang
Author URI: https://www.thpt-nguyenkhuyen.edu.vn/
Description: Giao diện WordPress độc lập chuẩn Cổng thông tin điện tử Trường THPT Việt Nam dành cho Trường THPT Nguyễn Khuyến – Thành phố Đà Nẵng. Thiết kế nền trắng phẳng editorial sạch gọn, font Times New Roman chuẩn văn bản giáo dục, lưới tin nổi bật 5 ô Mosaic ngay đầu trang, không lặp bài, bảng nhân sự dạng thẻ trên điện thoại, tùy biến trực tiếp số liệu và banner trong Tùy biến.
Version: 4.3.1
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tran-le-minh-giang-edu
*/

:root {
    --nk-navy-deep: #07264f;
    --nk-navy: #0a3d7a;
    --nk-blue: #0b4ea2;
    --nk-blue-bright: #1463c6;
    --nk-blue-soft: #f0f6ff;
    --nk-gold: #f5b301;
    --nk-gold-dark: #b87e00;
    --nk-gold-soft: #fffaf0;
    --nk-red: #c81e1e;
    --nk-teal: #0f766e;
    --nk-purple: #6d28d9;
    --nk-bg: #f7f9fc;
    --nk-surface: #ffffff;
    --nk-tint: #f3f7fd;
    --nk-border: #dfe7f2;
    --nk-border-strong: #c8d5e8;
    --nk-text: #1c2430;
    --nk-text-muted: #55647a;
    --nk-font: 'Times New Roman', Times, serif;
    --nk-radius: 10px;
    --nk-shadow-soft: 0 4px 18px rgba(8, 38, 86, 0.06);
    --nk-container: 1160px;
}

/* ==========================================================================
   1. RESET & TYPOGRAPHY (NỀN TRẮNG PHẲNG SẠCH + 100% TIMES NEW ROMAN)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--nk-font);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--nk-text);
    background-color: var(--nk-bg);
    max-width: 100%;
    overflow-x: clip;
}

.nk-topbar,
.nk-header-main,
.nk-navbar,
#nk-main-content,
.nk-footer {
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6,
p, a, span, li, td, th,
button, input, select, textarea {
    font-family: var(--nk-font);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 700;
    color: #111827;
    line-height: 1.32;
}

a {
    color: var(--nk-blue);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
    color: var(--nk-navy-deep);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
embed,
object,
video {
    max-width: 100% !important;
}

.nk-container,
#nk-main-content.nk-container {
    width: 100%;
    max-width: var(--nk-container);
    margin: 0 auto;
    padding: 0 20px;
}

.nk-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--nk-navy-deep);
    color: #ffffff;
    padding: 10px 18px;
    z-index: 10000;
    font-weight: 700;
}

.nk-skip-link:focus {
    left: 12px;
    top: 12px;
    border-radius: 6px;
}

/* Nút gọn chuẩn cổng thông tin */
.nk-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--nk-gold);
    color: var(--nk-navy-deep);
    font-size: 15.5px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #dda000;
    cursor: pointer;
    line-height: 1.25;
}

.nk-btn-gold:hover {
    background: #ffc524;
    color: var(--nk-navy-deep);
}

.nk-btn-primary-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--nk-blue);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--nk-navy);
    line-height: 1.25;
}

.nk-btn-primary-solid:hover {
    background: var(--nk-navy);
    color: #ffffff;
}

/* ==========================================================================
   2. TOPBAR & HEADER SIÊU GỌN SẠCH (HỌC TỪ THPT NGÔ GIA TỰ)
   ========================================================================== */
.nk-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--nk-border);
    font-size: 13px;
}

.nk-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.nk-topbar-date {
    color: var(--nk-text-muted);
    font-weight: 400;
}

.nk-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nk-topbar-right a {
    color: #263244;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nk-topbar-right a:hover {
    color: var(--nk-blue);
}

.nk-topbar-right a.nk-topbar-lms {
    color: var(--nk-blue);
    border-bottom: 2px solid var(--nk-gold);
    padding-bottom: 1px;
}

/* Header chính cân đối trái-phải, nền trắng ánh xanh nhẹ sang trọng */
.nk-header-main {
    background:
        radial-gradient(circle at 92% 15%, rgba(245, 179, 1, 0.1) 0%, transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--nk-border);
}

.nk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nk-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex: 1 1 auto;
}

.nk-logo-wrap {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--nk-gold);
    box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.1);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nk-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.nk-logo-fallback {
    font-size: 26px;
    font-weight: 700;
    color: var(--nk-navy);
}

.nk-school-titles {
    min-width: 0;
}

.nk-governing-body {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--nk-blue);
    margin-bottom: 2px;
}

.nk-school-name {
    margin: 0;
    font-size: 22.5px;
    font-weight: 700;
    line-height: 1.22;
    text-transform: uppercase;
    color: var(--nk-navy-deep);
    letter-spacing: 0.15px;
}

.nk-school-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--nk-text-muted);
}

.nk-school-motto {
    color: #8a5b00;
    font-style: italic;
    font-weight: 700;
}

/* Cụm bên phải Header tạo cân đối hoàn hảo cho màn hình máy tính */
.nk-header-aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.nk-header-crest-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--nk-navy);
    background: var(--nk-blue-soft);
    border: 1px solid rgba(11, 78, 162, 0.2);
    border-radius: 999px;
    padding: 3px 12px;
    white-space: nowrap;
}

.nk-crest-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nk-gold);
}

.nk-header-lms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffca2c 0%, var(--nk-gold) 100%);
    color: var(--nk-navy-deep);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #dda000;
    box-shadow: 0 3px 10px rgba(245, 179, 1, 0.28);
    white-space: nowrap;
}

.nk-header-lms-btn:hover {
    background: #ffd44d;
    color: var(--nk-navy-deep);
}

/* ==========================================================================
   3. THANH MENU CHÍNH 9 MỤC + NÚT TÌM KIẾM XỔ GỌN + MOBILE BAR 56PX
   ========================================================================== */
.nk-navbar {
    background: var(--nk-blue);
    border-bottom: 3px solid var(--nk-gold);
    position: sticky;
    top: 0;
    z-index: 900;
}

.admin-bar .nk-navbar {
    top: 32px;
}

.nk-nav-container {
    position: relative;
}

.nk-mobile-bar,
.nk-panel-head,
.nk-panel-search-wrap,
.nk-sub-toggle {
    display: none;
}

.nk-desktop-nav-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
}

.nk-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
}

.nk-nav-list > li {
    position: relative;
    flex: 1 1 auto;
    text-align: center;
}

.nk-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    white-space: nowrap;
}

.nk-nav-list > li:hover > a,
.nk-nav-list > li.current-menu-item > a,
.nk-nav-list > li.current-menu-ancestor > a,
.nk-nav-list > li.nk-nav-active > a {
    background: var(--nk-navy-deep);
    color: #ffe28a;
}

.nk-nav-list > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 10px;
    opacity: 0.85;
}

/* Nút tìm kiếm kính lúp gọn cuối thanh menu (chuẩn THPT Ngô Gia Tự) */
.nk-desktop-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nk-desktop-search-btn {
    background: transparent;
    border: 0;
    color: #ffffff;
    width: 44px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nk-desktop-search-btn:hover {
    background: var(--nk-navy-deep);
    color: #ffe28a;
}

.nk-nav-search-drop {
    position: absolute;
    top: 100%;
    right: 0;
    width: 330px;
    background: #ffffff;
    border: 1px solid var(--nk-border-strong);
    border-top: 3px solid var(--nk-gold);
    padding: 12px;
    box-shadow: 0 10px 26px rgba(6, 36, 77, 0.18);
    z-index: 980;
}

.nk-nav-search-drop[hidden] {
    display: none;
}

.nk-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--nk-border-strong);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.nk-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 8px 11px;
    font-size: 15px;
    color: var(--nk-text);
}

.nk-search-btn {
    flex: 0 0 auto;
    border: 0;
    background: var(--nk-blue);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 8px 15px;
    cursor: pointer;
}

.nk-search-btn:hover {
    background: var(--nk-navy-deep);
}

/* Submenu cấp 2 & cấp 3 trên Desktop */
.nk-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    background: #ffffff;
    border: 1px solid var(--nk-border-strong);
    border-top: 3px solid var(--nk-gold);
    box-shadow: 0 10px 24px rgba(6, 36, 77, 0.16);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    text-align: left;
    z-index: 950;
}

.nk-nav-list > li:last-child > .sub-menu,
.nk-nav-list > li:nth-last-child(2) > .sub-menu {
    left: auto;
    right: 0;
}

.nk-nav-list li:hover > .sub-menu,
.nk-nav-list li:focus-within > .sub-menu {
    display: block;
}

.nk-nav-list .sub-menu li {
    position: relative;
}

.nk-nav-list .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: var(--nk-text);
    font-size: 15px;
    border-bottom: 1px solid #f0f4fa;
}

.nk-nav-list .sub-menu li:last-child > a {
    border-bottom: 0;
}

.nk-nav-list .sub-menu li:hover > a,
.nk-nav-list .sub-menu li.current-menu-item > a {
    background: var(--nk-blue-soft);
    color: var(--nk-blue);
    font-weight: 700;
}

.nk-nav-list .sub-menu li.menu-item-has-children > a::after {
    content: '▸';
    font-size: 11px;
    color: var(--nk-blue);
    margin-left: 10px;
}

.nk-nav-list .sub-menu .sub-menu {
    top: -3px;
    left: 100%;
    min-width: 230px;
}

/* ==========================================================================
   4. DẢI 1 & 2: BANNER TOÀN CẢNH ẢNH THẬT SÁNG RỰC RỠ + 4 SỐ LIỆU + 7 LỐI TẮT
   ========================================================================== */
.nk-showcase-section {
    padding: 20px 0 8px;
}

.nk-showcase-frame {
    background: #ffffff;
    border: 1px solid var(--nk-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--nk-shadow-soft);
}

.nk-showcase-photo-wrap {
    position: relative;
    background: var(--nk-navy-deep);
    overflow: hidden;
}

.nk-showcase-photo {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.nk-showcase-caption-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--nk-navy-deep) 0%, var(--nk-blue) 100%);
    color: #ffffff;
    border-top: 3px solid var(--nk-gold);
}

.nk-showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nk-gold);
    flex: 0 0 8px;
}

.nk-showcase-caption-text {
    flex: 1 1 auto;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.nk-showcase-more {
    flex: 0 0 auto;
    color: #ffe28a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nk-showcase-more:hover {
    color: #ffffff;
}

.nk-showcase-fallback {
    background: linear-gradient(120deg, var(--nk-navy-deep) 0%, var(--nk-blue) 100%);
    color: #ffffff;
    padding: 34px 32px;
    border-bottom: 3px solid var(--nk-gold);
}

.nk-showcase-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 179, 1, 0.7);
    color: #ffe28a;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.nk-showcase-fallback h2 {
    color: #ffffff;
    font-size: 26px;
    margin: 0 0 8px;
}

.nk-showcase-fallback p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
}

.nk-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
}

.nk-ribbon-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px;
    border-right: 1px solid var(--nk-border);
}

.nk-ribbon-stat:last-child {
    border-right: 0;
}

.nk-ribbon-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--nk-blue-soft);
    color: var(--nk-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.nk-ribbon-icon svg {
    width: 21px;
    height: 21px;
}

.nk-ribbon-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nk-ribbon-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--nk-navy-deep);
    line-height: 1.08;
}

.nk-ribbon-label {
    font-size: 13.5px;
    color: var(--nk-text-muted);
    line-height: 1.25;
}

/* 7 Liên kết nhanh thẳng tắp 1 hàng — không rớt 2 dòng */
.nk-quick-strip {
    display: grid;
    grid-template-columns: 1.35fr repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.nk-qchip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--nk-navy-deep);
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(8, 38, 86, 0.04);
}

.nk-qchip svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--nk-blue);
}

.nk-qchip-primary {
    background: linear-gradient(180deg, var(--nk-blue-bright) 0%, var(--nk-blue) 100%);
    border-color: var(--nk-navy);
    color: #ffffff;
}

.nk-qchip-primary svg {
    color: #ffe28a;
}

.nk-qchip:hover {
    background: var(--nk-navy);
    border-color: var(--nk-navy);
    color: #ffffff;
}

.nk-qchip:hover svg {
    color: #ffe28a;
}

/* ==========================================================================
   6. THÂN TRANG CHUẨN CỔNG TRƯỜNG THPT VIỆT NAM (2 CỘT / 3 CỘT BANNER TRÁI-PHẢI)
   ========================================================================== */
.nk-portal-body-wrap {
    padding-top: 18px;
    padding-bottom: 22px;
}

/* Mặc định 2 cột: Cột Nội dung chính + Cột Phải xuyên suốt (320px) để chèn banner dọc */
.nk-portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

/* Khi nhà trường kéo Widget vào "Banner Cột Trái": tự động mở bố cục 3 cột chuẩn cổng THPT */
.nk-portal-shell.nk-has-left-banner {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 20px;
}

.nk-left-col,
.nk-center-col,
.nk-portal-shell > .nk-sidebar {
    min-width: 0;
    max-width: 100%;
}

.nk-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cột trái / phải: chuẩn hóa ảnh áp phích & dọn gọn widget thừa */
.nk-sidebar .widget_search,
.nk-left-col .widget_search {
    display: none !important;
}

.nk-sidebar .widget_media_image,
.nk-left-col .widget_media_image,
.nk-sidebar .nk-side-banner.widget_media_image {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--nk-border);
    box-shadow: var(--nk-shadow-soft);
}

.nk-sidebar .widget_media_image .nk-side-list,
.nk-sidebar .widget_block .nk-side-list {
    padding: 0;
}

.nk-sidebar .widget_media_image img,
.nk-left-col .widget_media_image img,
.nk-sidebar .nk-side-box-body img,
.nk-left-col .nk-side-box-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.nk-sidebar .widget_block:empty {
    display: none !important;
}

.nk-feedback-staff-link {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(184, 126, 0, 0.35);
    font-size: 13.5px;
}

.nk-feedback-staff-link a {
    color: var(--nk-navy);
    font-weight: 700;
}

.nk-feedback-staff-link a:hover {
    color: var(--nk-blue);
    text-decoration: underline;
}

.nk-notice-date-red {
    color: var(--nk-red);
    background: #fef2f2;
    border-color: #fecaca;
}

.nk-dept-subhead {
    margin: 20px 0 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--nk-border-strong);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--nk-navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nk-dept-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nk-bands-wrap {
    padding-top: 16px;
    padding-bottom: 18px;
}

.nk-band {
    background: #ffffff;
    border: 1px solid var(--nk-border);
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: var(--nk-shadow-soft);
}

.nk-band:last-child {
    margin-bottom: 8px;
}

.nk-band-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e8eef7;
}

.nk-pill-title {
    display: inline-block;
    margin: 0 0 -2px;
    padding: 6px 16px;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 6px 6px 0 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
    background: var(--nk-blue);
}

.nk-pill-red {
    background: var(--nk-red);
}

.nk-pill-blue {
    background: var(--nk-blue);
}

.nk-pill-teal {
    background: var(--nk-teal);
}

.nk-pill-navy {
    background: var(--nk-navy-deep);
}

.nk-band-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--nk-blue);
    padding-bottom: 6px;
    white-space: nowrap;
}

.nk-band-more:hover {
    color: var(--nk-red);
}

.nk-band-split {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.nk-split-main,
.nk-split-side {
    min-width: 0;
    max-width: 100%;
}

/* Dải 3 Trái: Khối Ảnh Hoạt Động Nổi Bật (1 lớn + 2 ngang tươi sáng) */
.nk-spotlight-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nk-spotlight-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nk-border);
}

.nk-spotlight-img-wrap {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
}

.nk-spotlight-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nk-spotlight-img-wrap:hover img {
    transform: scale(1.04);
}

.nk-spotlight-title {
    margin: 0 0 8px;
    font-size: 20.5px;
    font-weight: 700;
    line-height: 1.32;
}

.nk-spotlight-title a {
    color: var(--nk-navy-deep);
}

.nk-spotlight-title a:hover {
    color: var(--nk-blue);
}

.nk-spotlight-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Dải 3 Phải: Hộp Thông báo mới nhất 2026 phân loại nhãn màu tinh tế */
.nk-side-panel-card {
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
    border-radius: 10px;
    padding: 16px 18px;
}

.nk-side-panel-card .nk-band-head {
    margin-bottom: 12px;
}

.nk-notice-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nk-notice-feed-item {
    padding: 11px 0;
    border-bottom: 1px dashed #d5e0ef;
}

.nk-notice-feed-item:first-child {
    padding-top: 2px;
}

.nk-notice-feed-item:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.nk-notice-feed-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.nk-feed-date {
    font-size: 12.5px;
    color: var(--nk-text-muted);
    font-weight: 700;
}

.nk-new-dot {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: var(--nk-red);
    padding: 1px 6px;
    border-radius: 999px;
}

.nk-notice-feed-link {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #16202e;
}

.nk-notice-feed-link:hover {
    color: var(--nk-blue);
}

/* Nhãn phân loại văn bản nhỏ gọn */
.nk-mini-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    line-height: 1.45;
    white-space: nowrap;
}

.nk-tag-red {
    background: #fef2f2;
    color: var(--nk-red);
    border: 1px solid #fecaca;
}

.nk-tag-blue {
    background: #eff6ff;
    color: var(--nk-blue);
    border: 1px solid #bfdbfe;
}

.nk-tag-teal {
    background: #f0fdfa;
    color: var(--nk-teal);
    border: 1px solid #99f6e4;
}

.nk-tag-purple {
    background: #f5f3ff;
    color: var(--nk-purple);
    border: 1px solid #ddd6fe;
}

.nk-tag-navy {
    background: #f1f5f9;
    color: var(--nk-navy-deep);
    border: 1px solid #cbd5e1;
}

/* Danh sách Bản tin & Văn bản điều hành (Dải 4 Trái) */
.nk-clean-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nk-clean-notice-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
}

.nk-clean-notice-item:first-child {
    padding-top: 2px;
}

.nk-clean-notice-item:last-child {
    border-bottom: 0;
}

.nk-notice-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--nk-navy);
    background: var(--nk-blue-soft);
    border: 1px solid rgba(11, 78, 162, 0.2);
    border-radius: 5px;
    padding: 2px 8px;
    text-align: center;
    white-space: nowrap;
}

.nk-notice-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.nk-notice-link {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.44;
    color: #16202e;
}

.nk-notice-link:hover {
    color: var(--nk-blue);
}

/* Hòm thư Góp ý ẩn danh & LMS gọn bên phải Dải 4 */
.nk-feedback-box {
    background: linear-gradient(160deg, #fffef8 0%, #fff4d2 100%);
    border: 1px solid #f0cf70;
    border-top: 4px solid var(--nk-gold);
    border-radius: var(--nk-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.nk-feedback-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
    background: var(--nk-navy);
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 7px;
}

.nk-feedback-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--nk-navy-deep);
}

.nk-feedback-box p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #465366;
}

.nk-lms-compact {
    background: linear-gradient(145deg, var(--nk-navy-deep) 0%, var(--nk-blue) 100%);
    color: #ffffff;
    border-radius: var(--nk-radius);
    padding: 20px;
    text-align: center;
    border-bottom: 3.5px solid var(--nk-gold);
}

.nk-lms-compact h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #ffe28a;
}

.nk-lms-compact p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Thẻ phẳng ảnh hoạt động */
.nk-photo-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.nk-flat-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nk-flat-card .nk-card-thumb {
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--nk-border);
}

.nk-flat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--nk-text-muted);
    margin-bottom: 5px;
}

.nk-flat-cat {
    color: var(--nk-teal);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.nk-flat-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.36;
}

.nk-flat-title a {
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-flat-title a:hover {
    color: var(--nk-blue);
}

.nk-flat-excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.56;
    color: var(--nk-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dải 5: Giới thiệu & 3 Giá trị cốt lõi + Cơ cấu tổ chức 2 cột gọn cân đối */
.nk-intro-panel h3 {
    font-size: 20px;
    color: var(--nk-navy-deep);
    margin: 0 0 8px;
}

.nk-intro-panel > p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.72;
    text-align: justify;
    color: var(--nk-text);
}

.nk-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nk-pillar {
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
    border-top: 3px solid var(--nk-gold);
    border-radius: 8px;
    padding: 13px 14px;
}

.nk-pillar strong {
    display: block;
    font-size: 15px;
    color: var(--nk-navy-deep);
    margin-bottom: 4px;
}

.nk-pillar span {
    display: block;
    font-size: 13.5px;
    line-height: 1.48;
    color: var(--nk-text-muted);
}

.nk-dept-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.nk-dept-tile {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
    border-radius: 7px;
    color: var(--nk-navy-deep);
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
}

.nk-dept-tile span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nk-dept-tile:hover {
    background: var(--nk-blue);
    border-color: var(--nk-blue);
    color: #ffffff;
}

.nk-dept-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nk-gold);
    flex: 0 0 6px;
}

/* ==========================================================================
   7. DẢI 6: DẢI NHẤN NỀN XANH BẢNG HỌC (HỌC TỪ DẢI CHALKBOARD NGÔ GIA TỰ)
   ========================================================================== */
.nk-chalkboard-band {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 14px),
        linear-gradient(135deg, #07264d 0%, #0b3c75 60%, #0d4b8c 100%);
    color: #ffffff;
    padding: 36px 0 40px;
    margin-top: 12px;
    border-top: 3px solid var(--nk-gold);
}

.nk-chalk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.nk-chalk-col {
    min-width: 0;
}

.nk-chalk-title {
    color: #ffe28a;
    font-size: 17.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 9px;
    margin: 0 0 12px;
    border-bottom: 2px solid rgba(245, 179, 1, 0.5);
}

.nk-chalk-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nk-chalk-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.nk-chalk-list li:last-child {
    border-bottom: 0;
}

.nk-chalk-list a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    line-height: 1.42;
}

.nk-chalk-list a:hover {
    color: #ffe28a;
    text-decoration: underline;
}

.nk-chalk-list span {
    font-size: 12.5px;
    color: rgba(255, 226, 138, 0.85);
    white-space: nowrap;
}

.nk-chalk-promo {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nk-chalk-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 179, 1, 0.45);
    border-radius: var(--nk-radius);
    padding: 18px 24px;
}

.nk-chalk-promo-inner h4 {
    color: #ffffff;
    font-size: 19px;
    margin: 0 0 4px;
}

.nk-chalk-promo-inner p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
}

.nk-extra-widgets-band {
    padding: 24px 0;
    background: var(--nk-tint);
    border-top: 1px solid var(--nk-border);
}

.nk-extra-widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ==========================================================================
   8. THẺ BÀI VIẾT & BÌA VECTOR THÔNG MINH 5 CHỦ ĐỀ (CHO BÀI KHÔNG ẢNH)
   ========================================================================== */
.nk-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--nk-navy-deep);
}

.nk-card-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nk-card-thumb:hover > img {
    transform: scale(1.04);
}

.nk-card-cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    background: rgba(17, 24, 39, 0.84);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nk-card-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 14px 26px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #072c5e 0%, #0b4ea2 58%, #1668cc 100%);
}

.nk-cover-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.14;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.35) 0,
        rgba(255, 255, 255, 0.35) 1px,
        transparent 1px,
        transparent 12px
    );
}

.nk-cover-dept {
    background: linear-gradient(135deg, #082e5c 0%, #0f4c81 55%, #196b9e 100%);
}

.nk-cover-notice {
    background: linear-gradient(135deg, #64151e 0%, #991f2e 55%, #b82c38 100%);
}

.nk-cover-youth {
    background: linear-gradient(135deg, #074454 0%, #0c6b7c 55%, #128c9c 100%);
}

.nk-cover-lms {
    background: linear-gradient(135deg, #1b2a6b 0%, #2a43a1 55%, #3761c9 100%);
}

.nk-cover-news {
    background: linear-gradient(135deg, #06244d 0%, #0b4ea2 58%, #1768c9 100%);
}

.nk-cover-date-box {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    color: var(--nk-navy-deep);
    border: 1.5px solid var(--nk-gold);
    border-radius: 6px;
    padding: 3px 7px;
    line-height: 1.1;
    text-align: center;
}

.nk-cover-day {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.nk-cover-my {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--nk-blue);
}

.nk-cover-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.nk-cover-icon-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(245, 179, 1, 0.85);
    color: #ffe28a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nk-cover-icon-ring svg {
    width: 19px;
    height: 19px;
}

.nk-cover-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #ffe28a;
}

.nk-cover-headline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    max-width: 94%;
}

.nk-cover-school-mark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: rgba(255, 240, 195, 0.92);
    text-align: center;
}

/* ==========================================================================
   9. TRANG CHUYÊN MỤC (INDEX), CHI TIẾT BÀI VIẾT (SINGLE), TRANG TĨNH (PAGE)
   ========================================================================== */
.nk-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: start;
}

.nk-main-layout > * {
    min-width: 0;
    max-width: 100%;
}

.nk-section-block {
    background: #ffffff;
    margin-bottom: 28px;
    min-width: 0;
    max-width: 100%;
}

.nk-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--nk-border);
    padding-bottom: 8px;
}

.nk-section-title {
    margin: 0 0 -10px;
    padding-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nk-navy-deep);
    border-bottom: 3px solid var(--nk-gold);
}

.nk-view-more {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--nk-blue);
    white-space: nowrap;
}

.nk-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nk-posts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.nk-post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--nk-border);
    border-radius: 6px;
    overflow: hidden;
    min-width: 0;
}

.nk-post-card:hover {
    border-color: var(--nk-blue);
}

.nk-card-body {
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.nk-card-meta {
    font-size: 13px;
    color: var(--nk-text-muted);
    margin-bottom: 5px;
}

.nk-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.36;
}

.nk-card-title a {
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-card-title a:hover {
    color: var(--nk-blue);
}

.nk-card-excerpt {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.56;
    color: var(--nk-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f4fa;
}

.nk-read-more-link {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--nk-blue);
}

/* Sidebar cho trang bài viết đơn / chuyên mục / trang tĩnh */
.nk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.nk-feedback-widget-card {
    background: var(--nk-gold-soft);
    border: 1px solid #f2d479;
    border-top: 3.5px solid var(--nk-gold);
    border-radius: var(--nk-radius);
    padding: 18px 18px;
    text-align: center;
}

.nk-feedback-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--nk-navy);
    margin-bottom: 4px;
}

.nk-feedback-widget-card h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--nk-navy-deep);
}

.nk-feedback-widget-card p {
    margin: 0 0 13px;
    font-size: 14.5px;
    color: #465366;
}

.nk-side-banners {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nk-side-banner,
.nk-side-box {
    background: #ffffff;
    border: 1px solid var(--nk-border);
    border-radius: var(--nk-radius);
    overflow: hidden;
}

.nk-side-banner-header,
.nk-side-box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 10px 14px;
    background: var(--nk-navy);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2.5px solid var(--nk-gold);
}

.nk-side-banner-badge {
    font-size: 11.5px;
    color: #ffe28a;
}

.nk-side-list {
    list-style: none;
    margin: 0;
    padding: 4px 14px 10px;
}

.nk-side-list li {
    padding: 9px 0;
    border-bottom: 1px solid #eef2f8;
}

.nk-side-list li:last-child {
    border-bottom: 0;
}

.nk-side-item-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #16202e;
    margin-bottom: 2px;
}

.nk-side-item-title:hover {
    color: var(--nk-blue);
}

.nk-side-item-date {
    font-size: 12.5px;
    color: var(--nk-text-muted);
}

.nk-side-box-body {
    padding: 12px 14px;
}

.nk-lms-widget-card {
    background: var(--nk-navy-deep);
    color: #ffffff;
    border-radius: var(--nk-radius);
    padding: 18px;
    text-align: center;
    border-bottom: 3px solid var(--nk-gold);
}

.nk-lms-widget-card h3 {
    color: #ffe28a;
    font-size: 18px;
    margin: 0 0 6px;
}

.nk-lms-widget-card p {
    margin: 0 0 13px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
}

.nk-bottom-widgets {
    margin-top: 16px;
}

.nk-bottom-widget,
.nk-bottom-widget-item {
    background: #ffffff;
    color: var(--nk-text);
    border-radius: var(--nk-radius);
    padding: 16px 20px;
    margin-bottom: 14px;
    max-width: 100%;
    overflow: hidden;
}

.nk-bottom-widget-title {
    font-size: 17px;
    text-transform: uppercase;
    color: var(--nk-navy-deep);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--nk-gold);
}

/* ==========================================================================
   10. BÀI VIẾT ĐƠN (SINGLE), ẨN ẢNH ĐẠI DIỆN, IFRAME PDF & BẢNG NHÂN SỰ CÁC TỔ
   ========================================================================== */
/* TUYỆT ĐỐI ẩn mọi ảnh đại diện ở đầu trang chi tiết bài viết đơn — chỉ dùng làm thumbnail ở danh sách */
.nk-single-hero-wrap,
.single .nk-single-hero-wrap,
.nk-article-featured,
.single .nk-article-featured,
.single .post-thumbnail,
.single-post .post-thumbnail,
.single [class*="featured-image-wrap"],
.single-post [class*="featured-image-wrap"] {
    display: none !important;
}

.nk-single-article {
    background: #ffffff;
    padding: 4px 0 24px;
    margin-bottom: 24px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.nk-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 14px;
    color: var(--nk-text-muted);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--nk-border);
}

.nk-breadcrumb a {
    color: var(--nk-blue);
    font-weight: 700;
}

.nk-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.nk-single-cat-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--nk-blue-soft);
    color: var(--nk-blue);
    font-size: 13px;
    font-weight: 700;
}

.nk-single-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 10px;
}

.nk-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 14px;
    color: var(--nk-text-muted);
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nk-border);
}

.nk-lms-app-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: var(--nk-radius);
    background: var(--nk-tint);
    border: 1px solid var(--nk-border-strong);
    border-left: 4px solid var(--nk-gold);
}

.nk-lms-app-info h2 {
    font-size: 18px;
    margin: 0 0 4px;
    color: var(--nk-navy-deep);
}

.nk-lms-app-info p {
    margin: 0;
    font-size: 14.5px;
    color: var(--nk-text-muted);
}

.nk-lms-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nk-single-content {
    font-size: 17.5px;
    line-height: 1.8;
    color: var(--nk-text);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nk-single-content > *:not(.nk-table-wrap):not(.wp-block-table),
.entry-content > *:not(.nk-table-wrap):not(.wp-block-table),
.nk-single-content div:not(.nk-table-wrap):not(.wp-block-table),
.nk-single-content figure,
.nk-single-content pre,
.entry-content div:not(.nk-table-wrap):not(.wp-block-table),
.entry-content figure,
.entry-content pre {
    max-width: 100% !important;
}

.nk-single-content pre,
.entry-content pre {
    overflow-x: auto;
    padding: 12px 14px;
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
    border-radius: 6px;
}

/* Khung nhúng Google Drive PDF / Docs / Video vừa khít 100% điện thoại */
.nk-embed-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--nk-border);
    background: var(--nk-tint);
}

.nk-embed-wrap.nk-embed-video {
    aspect-ratio: 16 / 9;
}

.nk-embed-wrap.nk-embed-video iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.nk-single-content iframe,
.nk-single-content embed,
.nk-single-content object,
.entry-content iframe,
.entry-content embed,
.entry-content object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 6px;
    border: 1px solid var(--nk-border);
}

.nk-single-content .wp-block-embed,
.nk-single-content .wp-block-file,
.entry-content .wp-block-embed,
.entry-content .wp-block-file {
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
}

.nk-single-content p {
    margin: 0 0 1em;
}

.nk-single-content h2 {
    font-size: 21px;
    margin-top: 1.4em;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--nk-border);
}

.nk-single-content h3 {
    font-size: 18.5px;
    margin-top: 1.2em;
}

.nk-single-content ul,
.nk-single-content ol {
    padding-left: 24px;
    margin: 0 0 1.1em;
}

.nk-single-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    background: var(--nk-blue-soft);
    border-left: 4px solid var(--nk-blue);
    font-style: italic;
}

/* Sửa giao diện kho Văn bản (WordPress Download Manager /van-ban/) sạch chữ, rõ tiêu đề cột */
.nk-single-content blockquote.nk-wpdm-blockquote-reset,
.entry-content blockquote.nk-wpdm-blockquote-reset {
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: 0;
    font-style: normal;
}

.entry-content .wpdm-all-packages,
.entry-content .w3eden {
    font-style: normal !important;
    font-family: var(--nk-font) !important;
}

.entry-content .wpdm-all-packages table thead th,
.entry-content table.dataTable thead th {
    background: #0b4ea2 !important;
    color: #ffffff !important;
    font-style: normal !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
}

.entry-content .wpdm-all-packages select,
.entry-content .dataTables_length select {
    min-width: 68px !important;
    padding: 4px 8px !important;
    font-style: normal !important;
}

.nk-single-content img {
    border-radius: 6px;
    margin: 14px auto;
}

/* Bảng nhân sự các tổ — gọn, đẹp (tích hợp trọn vẹn + bảng rộng TKB cuộn ngang an toàn) */
.nk-table-wrap,
.wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: 6px;
    border: 1px solid var(--nk-border);
}

.nk-single-content table,
.entry-content table,
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    background: #ffffff;
    margin: 16px 0;
}

.nk-single-content table.nk-wide-table,
.entry-content table.nk-wide-table {
    min-width: 620px;
    margin: 0;
}

.nk-single-content table thead th,
.entry-content table thead th,
.nk-single-content table tr:first-child th,
.single .entry-content table th {
    background: #0b4ea2;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    white-space: nowrap;
}

.nk-single-content table td,
.entry-content table td,
.single .entry-content table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
}

.single .entry-content table td:first-child,
.single .entry-content table th:first-child {
    text-align: center;
    width: 44px;
}

.nk-single-content table tbody tr:nth-child(even),
.single .entry-content table tbody tr:nth-child(even) {
    background: #f2f6fb;
}

.nk-single-content table tbody tr:hover,
.single .entry-content table tbody tr:hover {
    background: #e3edf9;
}

.nk-single-tags {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--nk-border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.nk-single-tags a {
    background: var(--nk-tint);
    color: var(--nk-navy);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--nk-border);
}

.nk-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--nk-border);
}

.nk-post-nav-item {
    display: block;
    padding: 12px 14px;
    background: var(--nk-tint);
    border: 1px solid var(--nk-border);
    border-radius: 6px;
}

.nk-post-nav-item:hover {
    border-color: var(--nk-blue);
}

.nk-post-nav-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nk-text-muted);
    margin-bottom: 3px;
}

.nk-post-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--nk-navy-deep);
}

.nk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

.nk-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--nk-border-strong);
    background: #ffffff;
    color: var(--nk-navy);
    font-size: 14.5px;
    font-weight: 700;
}

.nk-pagination .page-numbers.current,
.nk-pagination .page-numbers:hover {
    background: var(--nk-blue);
    color: #ffffff;
    border-color: var(--nk-blue);
}

/* ==========================================================================
   11. FOOTER GỌN SANG CHUẨN CỔNG THÔNG TIN TRƯỜNG HỌC
   ========================================================================== */
.nk-footer {
    background: #162233;
    color: rgba(255, 255, 255, 0.88);
    border-top: 3px solid var(--nk-gold);
    padding: 36px 0 0;
}

.nk-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 28px;
}

.nk-footer-grid > * {
    min-width: 0;
}

.nk-footer-title {
    color: #ffe28a;
    font-size: 16.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(245, 179, 1, 0.42);
}

.nk-footer-info p {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.56;
}

.nk-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nk-footer-links li {
    margin-bottom: 7px;
}

.nk-footer-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.nk-footer-links a:hover {
    color: #ffe28a;
}

.nk-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 0 18px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   12. RESPONSIVE TABLET & MOBILE — ĐẦU TRANG SIÊU GỌN 56PX NHƯ THPT NGÔ GIA TỰ
   ========================================================================== */
@media (max-width: 1024px) {
    .admin-bar .nk-navbar {
        top: 0;
    }
    /* Thu gọn hoàn toàn đầu trang mobile thành 1 thanh 56px cực đẹp — mở lên thấy tin ngay! */
    .nk-topbar,
    .nk-header-main,
    .nk-desktop-search-wrap {
        display: none;
    }

    .nk-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 54px;
    }

    .nk-hamburger-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .nk-burger-icon {
        display: inline-flex;
        flex-direction: column;
        gap: 3.5px;
        width: 16px;
    }

    .nk-burger-icon span {
        display: block;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    .nk-mobile-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.3px;
        min-width: 0;
        overflow: hidden;
    }

    .nk-mobile-brand img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #ffffff;
        border: 1.5px solid var(--nk-gold);
        padding: 1px;
        object-fit: contain;
        flex: 0 0 30px;
    }

    .nk-mobile-brand span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nk-mobile-search-btn {
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 6px;
        width: 38px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
    }

    /* Panel trình đơn Mobile */
    .nk-mobile-panel {
        display: none;
        background: #ffffff;
        border-top: 3px solid var(--nk-gold);
        box-shadow: 0 14px 32px rgba(6, 36, 77, 0.24);
        margin: 0 -20px;
        padding-bottom: 10px;
        max-height: 78vh;
        overflow-y: auto;
    }

    .nk-mobile-panel.nk-open {
        display: block;
    }

    .nk-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 18px;
        background: var(--nk-navy-deep);
        color: #ffe28a;
    }

    .nk-panel-title {
        font-size: 14.5px;
        font-weight: 700;
    }

    .nk-panel-close {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 5px;
        padding: 4px 10px;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
    }

    .nk-panel-search-wrap {
        display: block;
        padding: 10px 16px;
        background: var(--nk-tint);
        border-bottom: 1px solid var(--nk-border);
    }

    .nk-desktop-nav-row {
        display: block;
    }

    .nk-nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nk-nav-list > li {
        flex: none;
        text-align: left;
        border-bottom: 1px solid #edf1f7;
    }

    .nk-nav-list > li > a {
        justify-content: flex-start;
        padding: 12px 52px 12px 18px;
        color: var(--nk-navy-deep);
        font-size: 15px;
    }

    .nk-nav-list > li.menu-item-has-children > a::after {
        display: none;
    }

    .nk-nav-list > li:hover > a,
    .nk-nav-list > li.nk-sub-open > a {
        background: var(--nk-blue-soft);
        color: var(--nk-blue);
    }

    .nk-sub-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 5px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: 1px solid var(--nk-border);
        border-radius: 6px;
        background: var(--nk-tint);
        color: var(--nk-navy);
        cursor: pointer;
        z-index: 5;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .nk-nav-list li.nk-sub-open > .nk-sub-toggle {
        background: var(--nk-blue);
        color: #ffffff;
        transform: rotate(180deg);
    }

    .nk-nav-list .sub-menu,
    .nk-nav-list .sub-menu .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        border: 0;
        box-shadow: none;
        background: #f7faff;
        padding: 0;
    }

    .nk-nav-list li:hover > .sub-menu,
    .nk-nav-list li:focus-within > .sub-menu {
        display: none;
    }

    .nk-nav-list li.nk-sub-open > .sub-menu {
        display: block;
    }

    .nk-nav-list .sub-menu a {
        padding: 10px 52px 10px 30px;
        font-size: 14.5px;
    }

    .nk-nav-list .sub-menu li.menu-item-has-children > a::after {
        display: none;
    }

    .nk-nav-list .sub-menu .sub-menu {
        background: #eef4fc;
    }

    .nk-nav-list .sub-menu .sub-menu a {
        padding-left: 44px;
    }

    /* Các lưới 1 cột dùng minmax(0, 1fr) tuyệt đối chống tràn ngang */
    .nk-stats-ribbon {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-ribbon-stat:nth-child(2) {
        border-right: 0;
    }

    .nk-ribbon-stat:nth-child(1),
    .nk-ribbon-stat:nth-child(2) {
        border-bottom: 1px solid var(--nk-border);
    }

    .nk-quick-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nk-portal-shell,
    .nk-portal-shell.nk-has-left-banner,
    .nk-band-split,
    .nk-main-layout,
    .nk-chalk-grid,
    .nk-footer-grid,
    .nk-extra-widgets-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .nk-dept-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nk-container {
        padding: 0 14px;
    }

    .nk-mobile-panel {
        margin: 0 -14px;
    }

    .nk-hamburger-btn {
        width: 38px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }

    .nk-mobile-brand {
        font-size: 15.5px;
    }

    .nk-showcase-section {
        padding-top: 12px;
    }

    .nk-showcase-caption-bar {
        flex-wrap: wrap;
        padding: 9px 14px;
    }

    .nk-showcase-dot {
        display: none;
    }

    .nk-showcase-caption-text {
        font-size: 14px;
    }

    .nk-ribbon-stat {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 12px 8px;
    }

    .nk-ribbon-text {
        align-items: center;
    }

    .nk-band {
        padding: 18px 16px;
    }

    .nk-quick-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-quick-strip .nk-qchip:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .nk-spotlight-lead,
    .nk-spotlight-subgrid,
    .nk-pillars-grid,
    .nk-photo-grid-3,
    .nk-posts-grid,
    .nk-posts-grid-2,
    .nk-post-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .nk-clean-notice-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .nk-notice-main {
        flex-direction: column;
        gap: 4px;
    }

    .nk-notice-date {
        justify-self: start;
    }

    .nk-chalk-promo-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .nk-single-title {
        font-size: 22px;
    }

    .nk-single-content {
        font-size: 16.5px;
        line-height: 1.75;
    }

    .nk-single-content iframe:not(.nk-video-iframe),
    .nk-single-content embed,
    .nk-single-content object,
    .entry-content iframe:not(.nk-video-iframe),
    .entry-content embed,
    .entry-content object {
        height: 70vh;
        min-height: 440px;
        max-height: 720px;
    }

    /* Bảng nhân sự các tổ trên điện thoại: mỗi người thành 1 thẻ, đọc rõ từng mục */
    .single .entry-content table:not(.nk-wide-table),
    .single .entry-content table:not(.nk-wide-table) tbody,
    .single .entry-content table:not(.nk-wide-table) tr,
    .single .entry-content table:not(.nk-wide-table) td,
    .entry-content table.nk-staff-table,
    .entry-content table.nk-staff-table tbody,
    .entry-content table.nk-staff-table tr,
    .entry-content table.nk-staff-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .single .entry-content table:not(.nk-wide-table) thead,
    .entry-content table.nk-staff-table thead {
        display: none;
    }

    .single .entry-content table:not(.nk-wide-table) tr,
    .entry-content table.nk-staff-table tr {
        margin-bottom: 12px;
        border: 1px solid #dbe4f0;
        border-left: 4px solid #0b4ea2;
        border-radius: 10px;
        padding: 10px 12px;
        background: #ffffff !important;
    }

    .single .entry-content table:not(.nk-wide-table) td,
    .entry-content table.nk-staff-table td {
        border: none !important;
        padding: 3px 0 !important;
        text-align: left !important;
        width: 100% !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .single .entry-content table:not(.nk-wide-table) td:nth-child(1)::before {
        content: "STT: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .single .entry-content table:not(.nk-wide-table) td:nth-child(2)::before {
        content: "Họ tên: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .single .entry-content table:not(.nk-wide-table) td:nth-child(3)::before {
        content: "Ngày sinh: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .single .entry-content table:not(.nk-wide-table) td:nth-child(4)::before {
        content: "Email: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .single .entry-content table:not(.nk-wide-table) td:nth-child(5)::before {
        content: "Môn dạy: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .entry-content table.nk-staff-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: #0b4ea2;
    }

    /* Bài Tổ Văn Phòng (postid-1205): cột 5 luôn là Chức vụ, không phải Môn dạy */
    .single.postid-1205 .entry-content table:not(.nk-wide-table) td:nth-child(5)::before,
    .single.postid-1205 .entry-content table.nk-staff-table td:nth-child(5)::before {
        content: "Chức vụ: ";
        font-weight: 700;
        color: #0b4ea2;
    }

    .single .entry-content .wp-block-table:has(table:not(.nk-wide-table)),
    .entry-content .wp-block-table:has(table.nk-staff-table) {
        border: 0;
        overflow: visible;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .nk-ribbon-num {
        font-size: 20px;
    }
    .nk-ribbon-label {
        font-size: 13px;
    }
}

/* ==========================================================================
   14. V4.3.1 — GIAO DIỆN CHI TIẾT BÀI VIẾT CHUẨN BÁO GIÁO DỤC + BỐ CỤC ĐỘNG 100%
   ========================================================================== */

/* Thanh tiến độ đọc bài viết mỏng trên đỉnh trang */
.nk-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: rgba(11, 78, 162, 0.08);
    z-index: 9999;
    pointer-events: none;
}

.admin-bar .nk-read-progress {
    top: 32px;
}

.nk-read-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--nk-blue) 0%, var(--nk-gold) 100%);
    transition: width 0.08s linear;
}

.nk-single-page-wrap {
    padding-top: 24px;
    padding-bottom: 52px;
}

.nk-single-page-wrap .nk-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.nk-single-col {
    min-width: 0;
}

/* Thẻ bài viết chính: nền trắng sang trọng, viền tinh tế, bóng nhẹ */
.nk-article-card {
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-top: 4px solid var(--nk-navy);
    border-radius: 12px;
    padding: 24px 32px 30px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(7, 38, 79, 0.055);
}

.nk-article-card.nk-article-is-notice {
    border-top-color: var(--nk-red);
}

/* Breadcrumb hiện đại có icon nhà */
.nk-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
    color: var(--nk-text-muted);
    padding: 0 0 14px;
    margin: 0 0 18px;
    border-bottom: 1px solid #e7eef8;
}

.nk-crumb-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nk-blue);
    font-weight: 700;
}

.nk-crumb-sep {
    color: #9aa8bc;
    font-weight: 700;
}

.nk-crumb-current {
    color: var(--nk-text-muted);
}

/* Dải đầu trang hành chính tự bật cho bài Thông báo / Quyết định / Kế hoạch */
.nk-doc-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8f8 0%, #f5f9ff 100%);
    border: 1px solid #e5d8dc;
    border-left: 4px solid var(--nk-red);
}

.nk-doc-masthead-org {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nk-doc-org-sup {
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: var(--nk-text-muted);
    font-weight: 700;
}

.nk-doc-org-name {
    font-size: 14px;
    color: var(--nk-navy-deep);
    letter-spacing: 0.3px;
}

.nk-doc-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header bài viết */
.nk-article-header {
    margin-bottom: 22px;
}

.nk-article-card .nk-single-cats {
    margin-bottom: 10px;
}

.nk-article-card .nk-single-cat-tag {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    border: 1px solid #cfe0f8;
    transition: background 0.15s ease, color 0.15s ease;
}

.nk-article-card .nk-single-cat-tag:hover {
    background: var(--nk-blue);
    color: #ffffff;
}

.nk-article-title {
    font-size: 31px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--nk-navy-deep);
    margin: 0 0 12px;
    letter-spacing: -0.2px;
}

/* Sapo / Đoạn dẫn đầu bài */
.nk-article-sapo {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #f8fafd;
    border-left: 3.5px solid var(--nk-gold);
    border-radius: 0 8px 8px 0;
    font-size: 17.5px;
    line-height: 1.65;
    font-style: italic;
    font-weight: 700;
    color: #243247;
}

/* Thanh Meta + Công cụ đọc (A-/A+, In, Chia sẻ, Chép link) */
.nk-article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 0 14px;
    border-top: 1px solid #e7eef8;
    border-bottom: 1px solid #e7eef8;
}

.nk-article-meta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13.5px;
    color: var(--nk-text-muted);
}

.nk-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nk-meta-chip svg {
    color: var(--nk-blue);
    flex-shrink: 0;
}

.nk-meta-updated {
    background: #eff6ff;
    color: var(--nk-blue);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.nk-article-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nk-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 31px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #d4e0ef;
    background: #f8fbff;
    color: var(--nk-navy-deep);
    font-family: var(--nk-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nk-tool-btn:hover {
    background: var(--nk-navy);
    border-color: var(--nk-navy);
    color: #ffffff;
}

.nk-tool-btn.nk-tool-fb {
    background: #eff5ff;
    border-color: #c7dbf7;
    color: #1877f2;
}

.nk-tool-btn.nk-tool-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.nk-tool-btn.nk-tool-copied {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

/* Nội dung thân bài viết — chuẩn đọc dài mượt mắt */
.nk-article-body {
    font-size: var(--nk-article-fs, 18.5px);
    line-height: 1.85;
    color: #1a2230;
    min-height: 120px;
}

.nk-article-body p {
    margin: 0 0 1.15em;
}

.nk-article-body h2 {
    font-size: 22px;
    color: var(--nk-navy-deep);
    margin: 1.5em 0 0.65em;
    padding-bottom: 6px;
    border-bottom: 2px solid #e7eef8;
}

.nk-article-body h3 {
    font-size: 19.5px;
    color: var(--nk-navy);
    margin: 1.25em 0 0.5em;
}

.nk-article-body blockquote:not(.nk-wpdm-blockquote-reset) {
    margin: 20px 0;
    padding: 14px 20px;
    background: #f6f9fe;
    border-left: 4px solid var(--nk-gold);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #243247;
}

.nk-article-body img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(7, 38, 79, 0.08);
    margin: 16px auto;
}

.nk-article-body figcaption {
    font-size: 14px;
    font-style: italic;
    color: var(--nk-text-muted);
    text-align: center;
    margin-top: -8px;
    margin-bottom: 16px;
}

/* Tự động làm đẹp link tài liệu đính kèm (.pdf/.docx/.xlsx) */
.nk-article-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f4f8ff;
    border: 1px solid #c7daf5;
    color: var(--nk-navy-deep) !important;
    font-weight: 700;
    font-size: 15.5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.nk-article-file-chip::before {
    content: attr(data-file-ext);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--nk-red);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.nk-article-file-chip:hover {
    background: var(--nk-navy);
    border-color: var(--nk-navy);
    color: #ffffff !important;
}

/* Chân bài viết: Nguồn tin chính thức + chia sẻ nhanh */
.nk-article-signoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8fafd;
    border: 1px solid #e2eaf6;
    font-size: 14px;
    color: var(--nk-text-muted);
}

.nk-signoff-source strong {
    color: var(--nk-navy-deep);
}

.nk-signoff-dot {
    margin: 0 6px;
    color: #9aa8bc;
}

.nk-signoff-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Điều hướng Bài trước / Bài mới hơn — tự co 1 cột cân đối khi chỉ có 1 bài */
.nk-post-nav.nk-post-nav-single {
    grid-template-columns: minmax(0, 1fr);
}

.nk-post-nav-next {
    text-align: right;
}

.nk-article-card .nk-post-nav-item {
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid #dce6f4;
    transition: all 0.15s ease;
}

.nk-article-card .nk-post-nav-item:hover {
    background: #eff6ff;
    border-color: var(--nk-blue);
    transform: translateY(-1px);
}

/* Khối Tin bài khác dạng danh sách báo điện tử gọn đẹp (bỏ bìa gradient to) */
.nk-related-panel {
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    padding: 22px 26px 24px;
    box-shadow: 0 4px 18px rgba(7, 38, 79, 0.045);
}

.nk-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nk-related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 9px;
    border: 1px solid #e6edf7;
    background: #fbfdff;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 0;
}

.nk-related-item:hover {
    border-color: var(--nk-blue);
    background: #f4f8ff;
}

.nk-related-thumb {
    flex: 0 0 102px;
    width: 102px;
    height: 74px;
    border-radius: 7px;
    overflow: hidden;
    display: block;
    background: #e9eff8;
}

.nk-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nk-related-date-box,
.nk-archive-date-tile,
.nk-dyn-date-tile {
    flex: 0 0 64px;
    width: 64px;
    min-height: 68px;
    border-radius: 8px;
    background: linear-gradient(180deg, #eff5ff 0%, #e4eefc 100%);
    border: 1px solid #cdddf4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    text-decoration: none;
}

.nk-rel-day,
.nk-dyn-date-day {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--nk-navy-deep);
}

.nk-rel-mon,
.nk-dyn-date-mon {
    font-size: 11px;
    font-weight: 700;
    color: var(--nk-blue);
    text-transform: uppercase;
    margin-top: 2px;
}

.nk-rel-yr {
    font-size: 10.5px;
    color: var(--nk-text-muted);
    line-height: 1.1;
}

.nk-related-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nk-related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--nk-text-muted);
    margin-bottom: 5px;
}

.nk-related-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.38;
}

.nk-related-title a {
    color: #142033;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-related-title a:hover {
    color: var(--nk-blue);
}

/* ==========================================================================
   15. TRANG CHỦ ĐỘNG (BÀI #1 TIÊU ĐIỂM + TAB CHUYÊN MỤC ĐỘNG) & DANH MỤC (INDEX)
   ========================================================================== */

/* Thẻ bài số #1 nổi bật ngay đầu Khối 1 Trang chủ */
.nk-latest-lead {
    border-radius: 10px;
    border: 1px solid #d9e4f3;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(7, 38, 79, 0.045);
}

.nk-latest-lead.nk-latest-lead-text {
    border-left: 4px solid var(--nk-red);
}

.nk-latest-lead.nk-latest-lead-has-img {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.nk-latest-lead-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eaf0f8;
}

.nk-latest-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nk-latest-lead-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.nk-latest-lead-date {
    font-size: 13px;
    color: var(--nk-text-muted);
    font-weight: 700;
}

.nk-latest-lead-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.nk-latest-lead-title a {
    color: var(--nk-navy-deep);
}

.nk-latest-lead-title a:hover {
    color: var(--nk-blue);
}

.nk-latest-lead-excerpt {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #3d4b60;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nk-latest-lead-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--nk-blue);
}

/* Thanh nút Tab chuyên mục động trên Trang chủ */
.nk-tabs-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6edf7;
}

.nk-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #cfe0f4;
    background: #f5f9ff;
    color: var(--nk-navy-deep);
    font-family: var(--nk-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nk-tab-btn:hover {
    border-color: var(--nk-blue);
    background: #e9f2ff;
    color: var(--nk-blue);
}

.nk-tab-btn.nk-tab-active {
    background: var(--nk-teal);
    border-color: var(--nk-teal);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.22);
}

.nk-tab-panel[hidden] {
    display: none !important;
}

/* Danh sách bài trong Khối Tab Chuyên mục động */
.nk-dyn-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nk-dyn-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed #e1e8f3;
}

.nk-dyn-feed-item:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.nk-dyn-feed-thumb {
    flex: 0 0 112px;
    width: 112px;
    height: 76px;
    border-radius: 7px;
    overflow: hidden;
    display: block;
    background: #eaf0f8;
}

.nk-dyn-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nk-dyn-feed-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nk-dyn-feed-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.nk-dyn-feed-date {
    font-size: 12.5px;
    color: var(--nk-text-muted);
}

.nk-dyn-feed-title {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.38;
}

.nk-dyn-feed-title a {
    color: #142033;
}

.nk-dyn-feed-title a:hover {
    color: var(--nk-blue);
}

.nk-dyn-feed-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--nk-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trang chuyên mục / lưu trữ (index.php) dạng danh sách báo sạch */
.nk-archive-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e6edf7;
}

.nk-archive-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--nk-navy-deep);
}

.nk-archive-desc {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--nk-text-muted);
}

.nk-archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nk-archive-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2eaf6;
    background: #fcfdff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nk-archive-card:hover {
    border-color: var(--nk-blue);
    box-shadow: 0 4px 14px rgba(11, 78, 162, 0.07);
}

.nk-archive-thumb {
    flex: 0 0 210px;
    width: 210px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background: #eaf0f8;
}

.nk-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nk-archive-date-tile {
    flex: 0 0 74px;
    width: 74px;
    min-height: 78px;
}

.nk-archive-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nk-archive-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--nk-text-muted);
    margin-bottom: 6px;
}

.nk-archive-item-title {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.38;
}

.nk-archive-item-title a {
    color: var(--nk-navy-deep);
}

.nk-archive-item-title a:hover {
    color: var(--nk-blue);
}

.nk-archive-excerpt {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #465366;
}

/* Responsive tablet & mobile cho v4.3.1 */
@media (max-width: 1024px) {
    .nk-single-page-wrap .nk-main-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .admin-bar .nk-read-progress {
        top: 46px;
    }

    .nk-article-card {
        padding: 18px 16px 22px;
        border-radius: 10px;
    }

    .nk-article-title {
        font-size: 23px;
    }

    .nk-article-sapo {
        font-size: 16px;
        padding: 10px 12px;
    }

    .nk-article-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nk-article-tools {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .nk-article-body {
        font-size: var(--nk-article-fs, 17px);
        line-height: 1.78;
    }

    .nk-related-panel {
        padding: 18px 16px;
    }

    .nk-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nk-latest-lead.nk-latest-lead-has-img {
        grid-template-columns: minmax(0, 1fr);
    }

    .nk-archive-card.nk-archive-has-img {
        flex-direction: column;
    }

    .nk-archive-thumb {
        width: 100%;
        flex: 0 0 auto;
    }
}

/* Chuẩn In ấn A4 gọn sạch cho bài viết & thông báo */
@media print {
    .nk-read-progress,
    .nk-topbar,
    .nk-site-header,
    .nk-nav-bar,
    .nk-mobile-panel,
    .nk-sidebar,
    .nk-article-breadcrumb,
    .nk-article-tools,
    .nk-signoff-actions,
    .nk-post-nav,
    .nk-related-panel,
    .nk-portal-footer,
    .nk-chalkboard-band {
        display: none !important;
    }

    .nk-main-layout {
        display: block !important;
    }

    .nk-article-card {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .nk-article-body {
        font-size: 13pt !important;
        line-height: 1.6 !important;
        color: #000000 !important;
    }
}
