/*
Theme Name: Tin Tuc Truong Hoc
Theme URI: https://danang.vnpt.vn
Author: VNPT Da Nang
Author URI: https://danang.vnpt.vn
Description: Theme WordPress cho trang tin tuc truong hoc. Bao gom quan ly thong bao, thu vien hinh anh, van ban, thoi khoa bieu va tuy chinh header/footer. Phat trien boi VNPT Da Nang.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tin-tuc-truong-hoc
Tags: education, school, custom-colors, custom-header, custom-menu, featured-images, responsive-layout
*/
/* ════════════════════════════════════════════════════
   TRƯỜNG PTDT NỘI TRÚ HUYỆN TÂY GIANG — Main Stylesheet
   Version: 1.0.0
════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. CSS VARIABLES
───────────────────────────────────── */
:root {
  --green-nav:   #2b6140;
  --green-dark:  #1e4d2b;
  --brown-hd:    #7b3116;
  --amber:       #c8791e;
  --amber-lt:    #e08828;
  --gold:        #d9ac42;
  --cream:       #f5f1e8;
  --cream-light: #faf8f3;
  --border:      #e8e0d0;
  --text:        #1c1c1c;
  --text-mid:    #444;
  --text-light:  #777;
  --red:         #af1c1c;
  --section-bg:  #f2ede3;
}

/* ─────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #f2ede3;
  color: var(--text);
  font-size: 14px;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* ngăn scrollbar ngang */
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

/* ─────────────────────────────────────
   3. HEADER
───────────────────────────────────── */
.site-header {
    width: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    background-color: #f5f1e8;
    border-bottom: 3px solid var(--amber);
    position: relative;
    overflow: hidden;
}

/* Pseudo-element chứa background */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #f5f1e8;
    background-image:
            linear-gradient(
                    to right,
                    rgba(249,243,229,.95) 0%,
                    rgba(249,243,229,.70) 10%,
                    rgba(249,243,229,.20) 25%,
                    rgba(249,243,229,0)   40%,
                    rgba(237,227,204,0)   60%,
                    rgba(237,227,204,.20) 75%,
                    rgba(237,227,204,.70) 90%,
                    rgba(237,227,204,.95) 100%
            ),
            var(--header-bg-image, none);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Nội dung phải nằm trên */
.site-header .container {
    position: relative;
    z-index: 1;
}

.site-header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  background: linear-gradient(135deg, #f5e8d0, #e2cba8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.logo-wrap .ph-icon { font-size: 30px; color: #7b3116; opacity: .65; }

.hdr-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #7b3116;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 1px;
}
.hdr-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 900;
  color: #5b1e06;
  line-height: 1.1;
  margin: 0;
}
.hdr-tag {
  font-size: 11px;
  color: var(--amber);
  font-style: italic;
  font-weight: 500;
  margin-top: 3px;
}

/* ─────────────────────────────────────
   4. NAVBAR
───────────────────────────────────── */
.main-nav {
  background: var(--green-nav);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 5px 10px;
  margin: 5px 8px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  position: relative;
}

.nav-item:first-child { flex: 0 0 52px; }

.nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255,255,255,.95) !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 0 6px;
  height: 46px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background .18s, color .18s;
  line-height: 1;
  cursor: pointer;
}

.nav-item:first-child .nav-link {
  border-left: 1px solid rgba(255,255,255,.15);
  background: var(--amber);
  color: #fff !important;
  font-size: 16px;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item.current-menu-item > .nav-link,
.nav-item.current-menu-parent > .nav-link {
  background: var(--amber) !important;
  color: #fff !important;
}

.nav-item:first-child .nav-link:hover { background: var(--amber-lt) !important; }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1d5032;
  border: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  padding: 4px 0;
  min-width: 210px;
  z-index: 2000;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
  padding: 9px 18px;
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.dropdown-item i { opacity: .7; font-size: 11px; }
.dropdown-item:hover { background: var(--amber); color: #fff; }
.dropdown-item:hover i { opacity: 1; }

.nav-search { flex: 0 0 46px !important; }
.nav-search .nav-link { font-size: 15px; border-left: 1px solid rgba(255,255,255,.15); }

/* ─────────────────────────────────────
   4b. SEARCH BOX OVERLAY
───────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  width: min(560px, 90vw);
  position: relative;
}
.search-box h3 { margin: 0 0 16px; font-size: 16px; color: var(--green-nav); }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--green-nav);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.search-form button {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.search-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 20px; cursor: pointer; color: #888;
}

/* ─────────────────────────────────────
   5. HERO BANNER SLIDER
───────────────────────────────────── */
.hero-carousel { position: relative; overflow: hidden; }

.hero-slide {
  height: clamp(270px, 50vw, 500px);
  position: relative;
  overflow: hidden;
  background: #1a3d22;
  display: none;
}
.hero-slide.active { display: block; }

.hero-slide > img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .62;
  position: absolute;
  inset: 0;
}

.hero-slide .slide-ph {
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: repeating-linear-gradient(
    to bottom,
    var(--amber) 0, var(--amber) 11px,
    var(--gold) 11px, var(--gold) 22px
  );
  z-index: 3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,20,10,.9)  0%,
    rgba(5,20,10,.55) 55%,
    transparent       100%
  );
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  max-width: 510px;
  padding: 0 20px 0 34px;
}

.hero-content .sub {
  color: #8dd0a0;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 8px;
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.hero-content h2 .gold { color: var(--gold); }

.hero-content p {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin: 0 0 18px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 10px 22px;
  border-radius: 3px;
  transition: background .2s;
}
.btn-hero:hover { background: var(--amber-lt); color: #fff; }

/* Carousel controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.4);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--amber); }

.carousel-indicators {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.carousel-dot.active { background: var(--amber); }

/* ─────────────────────────────────────
   6. SECTION BOX SHARED
───────────────────────────────────── */
.main-bg    { background: #f0ebe0; padding: 20px 0 24px; }
.gallery-bg { background: #f0ebe0; padding: 16px 0 24px; }
.main-bg .container,
.gallery-bg .container,
.links-bg .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nt-hdr,.s-hdr
{
  background-image: linear-gradient(to right, rgba(0,0,0,0.75), rgba(60,30,0,0.8)), url(../../uploads/2026/05/vien.png);
}

.s-box {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  margin-bottom: 16px;
}

.s-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
/*.s-hdr.green { background: #163d20; }*/
/*.s-hdr.brown { background: #5a1e0a; }*/
/*.s-hdr.teal  { background: #0e3d4a; }*/
/*.s-hdr.blue  { background: #102a50; }*/
/*.s-hdr.edu   { background: linear-gradient(135deg, #7b3116, #b3571e); }*/

.s-hdr h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-hdr h3 .ic {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

.s-hdr .va {
  color: rgba(255,255,255,.75);
  font-size: 12px; font-weight: 500;
}
.s-hdr .va:hover { color: var(--gold); }

.s-body { padding: 12px 14px; }

/* ─────────────────────────────────────
   7. THÔNG BÁO — Scrollable list
───────────────────────────────────── */
.notice-list { max-height: 260px; overflow-y: auto; }

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}
.notice-item:last-child { border-bottom: none; }

.notice-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 5px;
}

.notice-dot.hot { background: var(--red); }

.notice-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  flex: 1;
}
.notice-item:hover .notice-title { color: var(--amber); }

.notice-date {
  font-size: 10.5px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────
   8. VĂN BẢN
───────────────────────────────────── */
.vanban-search {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.vanban-search input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12.5px;
  font-family: inherit;
}
.vanban-search button {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.vanban-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
  transition: background .15s;
}
.vanban-item:last-child { border-bottom: none; }
.vanban-item:hover { background: #faf7f0; margin: 0 -14px; padding: 8px 14px; }

.vanban-icon {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.vanban-icon.pdf  { background: #fde8e8; color: #c0392b; }
.vanban-icon.docx { background: #e8f0fe; color: #1a73e8; }
.vanban-icon.default { background: #f0ede4; color: var(--amber); }

.vanban-info { flex: 1; }
.vanban-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
  line-height: 1.38;
}
.vanban-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.vanban-dl {
  font-size: 11px;
  color: var(--green-nav);
  font-weight: 600;
}
.vanban-dl:hover { color: var(--amber); }

/* ─────────────────────────────────────
   9. TIN TỨC — Card Grid
───────────────────────────────────── */
.nt-box {
  background: #163d20;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.nt-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  /*background: #0f2c17;*/
  border-bottom: 2px solid rgba(255, 255, 255, .08);
}
.nt-hdr h3 {
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: #fff; margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.nt-hdr h3 .ic {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.nt-hdr .va { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 500; }
.nt-hdr .va:hover { color: var(--gold); }

.nt-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  padding: 0 14px;
  background: #0f2c17;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nt-tab {
  background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.58);
  font-size: 12px; font-weight: 600;
  font-family: 'Be Vietnam Pro', sans-serif;
  padding: 9px 13px; cursor: pointer;
  position: relative; transition: color .18s;
  white-space: nowrap;
}
.nt-tab::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: transparent; transition: background .18s;
}
.nt-tab:hover { color: rgba(255,255,255,.9); }
.nt-tab.active { color: #fff; font-weight: 700; }
.nt-tab.active::after { background: var(--gold); }

.nt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 14px;
}
@media (max-width: 1199px) { .nt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .nt-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; } }

.nc {
  background: #1e5030;
  border-radius: 8px; overflow: hidden;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.nc:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.nc.hidden { display: none; }

/* Layout 2: bai noi bat + danh sach doc */
.nt-layout--featured-list .nt-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.nt-layout--featured-list .nc {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  background: #1b482c;
}

.nt-layout--featured-list .nc:first-child {
  grid-template-columns: minmax(260px, 38%) 1fr;
  min-height: 230px;
  background: #1a4a2d;
}

.nt-layout--featured-list .nc .nc-img {
  aspect-ratio: auto;
  min-height: 130px;
  height: 100%;
}

.nt-layout--featured-list .nc:not(:first-child) .nc-title {
  -webkit-line-clamp: 2;
}

.nt-layout--featured-list .nc:not(:first-child) .nc-desc {
  -webkit-line-clamp: 2;
}

.nt-layout--featured-list .nc:first-child .nc-title {
  font-size: 15px;
  -webkit-line-clamp: 3;
}

.nt-layout--featured-list .nc:first-child .nc-desc {
  font-size: 12px;
  -webkit-line-clamp: 3;
}

@media (max-width: 991px) {
  .nt-layout--featured-list .nc,
  .nt-layout--featured-list .nc:first-child {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .nt-layout--featured-list .nc .nc-img,
  .nt-layout--featured-list .nc:first-child .nc-img {
    min-height: 175px;
  }
}

.nc-img {
  width: 100%; aspect-ratio: 4/3; min-height: 90px;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.nc-img > img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .35s;
}
.nc:hover .nc-img > img { transform: scale(1.06); }

.nc-badge {
  position: absolute; bottom: 7px; left: 7px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .3px;
  backdrop-filter: blur(3px); z-index: 2;
}

.nc-body { padding: 9px 10px 11px; flex: 1; }
.nc-title {
  font-size: 12px; font-weight: 800; color: #fff;
  line-height: 1.48; margin: 0 0 5px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.nc-desc {
  font-size: 11px; color: rgba(255,255,255,.55);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 0 6px;
}
.nc-date { font-size: 10.5px; color: var(--gold); }

/* ─────────────────────────────────────
   10. THỜI KHÓA BIỂU
───────────────────────────────────── */
.tkb-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tkb-filter select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.tkb-panel {
  display: grid;
  gap: 12px;
}

.tkb-controls {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(220px, 300px);
  gap: 10px;
  align-items: end;
}

.tkb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tkb-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-light);
  text-transform: uppercase;
}

.tkb-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.tkb-field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(200, 121, 30, .15);
}

.tkb-current {
  font-size: 12px;
  color: #555;
  font-weight: 600;
}

.tkb-content-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tkb {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.tkb th {
  background: var(--green-nav);
  color: #fff;
  text-align: center;
  padding: 6px 3px;
  font-weight: 700; font-size: 11px;
}
.tkb td {
  border: 1px solid #ddd8c8;
  text-align: center;
  padding: 5px 3px;
  font-size: 11px; line-height: 1.3;
}
.tkb .sess {
  background: #f0e8d8;
  font-weight: 800; color: var(--brown-hd); font-size: 10.5px;
}
.tkb tr:nth-child(even) td:not(.sess) { background: #fafaf5; }
.tkb-note {
  font-size: 11px; color: var(--red);
  font-style: italic; margin-top: 7px; line-height: 1.5;
}

@media (max-width: 767px) {
  .tkb-controls {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────
   11. GIỚI THIỆU
───────────────────────────────────── */
.intro-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 3px;
  background: linear-gradient(135deg, #a0c0a0, #78a078);
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.intro-text {
  font-size: 12.5px; line-height: 1.72; color: #444; margin-top: 9px;
}
.btn-more {
  display: inline-block;
  background: var(--amber); color: #fff;
  font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 7px 18px; border-radius: 3px; margin-top: 10px;
  transition: background .2s;
}
.btn-more:hover { background: var(--amber-lt); color: #fff; }

/* ─────────────────────────────────────
   12. GALLERY
───────────────────────────────────── */
.g-item {
  border-radius: 4px; overflow: hidden;
  position: relative; cursor: pointer;
}
.g-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; min-height: 85px;
  transition: transform .35s;
  display: flex; align-items: center; justify-content: center;
}
.g-item:hover .g-img { transform: scale(1.07); }
.g-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 16px 8px 6px; text-align: center;
}

/* Gallery lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  color: #fff; font-size: 28px; cursor: pointer; background: none; border: none;
}

/* ─────────────────────────────────────
   14. FOOTER
───────────────────────────────────── */
.site-footer {
  width: 100%;
  background-color: #1a3d1a;
  background-image: var(--footer-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: rgba(255,255,255,.82);
  padding: 28px 0 0;
}
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-footer .row {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.site-footer .col-7 { flex: 0 0 calc(58% - 12px); }
.site-footer .col-5 { flex: 0 0 calc(42% - 12px); }

.site-footer h4 {
  color: var(--gold); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px;
}
.ft-item {
  display: flex; align-items: flex-start;
  gap: 8px; font-size: 12.5px; margin-bottom: 9px;
}
.ft-item i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.soc {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; margin-right: 6px;
  transition: transform .2s, box-shadow .2s;
}
.soc:hover { transform: scale(1.18); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.soc-fb { background: #1877f2; color: #fff; }
.soc-yt { background: #ff0000; color: #fff; }
.soc-em { background: #ea4335; color: #fff; }
.soc-zalo { background: #0068ff; color: #fff; }

.ft-btm {
  background: rgba(0,0,0,.28);
  text-align: center; padding: 11px 16px;
  font-size: 12px; color: rgba(255,255,255,.5); margin-top: 24px;
}

/* ─────────────────────────────────────
   15. RESPONSIVE MOBILE
───────────────────────────────────── */
@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .navbar-nav {
    display: none; flex-direction: column;
    background: var(--green-nav);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .navbar-nav.open { display: flex; }
  .nav-item { flex: none; }
  .nav-link {
    height: auto; padding: 11px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-right: none; justify-content: flex-start;
  }
  .nav-item:first-child { flex: none; }
  .dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border-radius: 0;
    background: rgba(0,0,0,.3);
    display: none;
  }
  .nav-item.has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-item { padding: 9px 28px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .site-footer .col-7,
  .site-footer .col-5 { flex: 0 0 100%; }
}

@media (max-width: 767px) {
  .row.g-3 { flex-direction: column; }
}

/* ─────────────────────────────────────
   16. NOTICE MODAL
───────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 9998;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: 8px;
  padding: 28px; width: min(600px, 92vw);
  max-height: 80vh; overflow-y: auto;
  position: relative;
}
.modal-box h3 { margin: 0 0 10px; color: var(--green-nav); font-size: 16px; }
.modal-box .modal-date { color: var(--text-light); font-size: 12px; margin-bottom: 14px; }
.modal-box .modal-body { font-size: 13.5px; line-height: 1.8; color: #333; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; cursor: pointer; color: #888;
}

/* ─────────────────────────────────────
   17. PAGE TEMPLATES
───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-nav));
  color: #fff; padding: 40px 0;
  text-align: center;
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 28px; margin: 0; }
.page-hero p  { color: rgba(255,255,255,.7); margin: 8px 0 0; font-size: 13px; }

.page-content { max-width: 1200px; margin: 30px auto; padding: 0 16px; }
.breadcrumb-wrap { font-size: 12.5px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb-wrap a { color: var(--amber); }
.breadcrumb-wrap a:hover { text-decoration: underline; }

/* ─────────────────────────────────────
   18. GRID UTILITIES
───────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; }
.row.g-3 { gap: 16px; }
.col-lg-8 { flex: 0 0 calc(66.66% - 8px); }
.col-lg-4 { flex: 0 0 calc(33.33% - 8px); }
.col-12   { flex: 0 0 100%; }

@media (max-width: 991px) {
  .col-lg-8, .col-lg-4 { flex: 0 0 100%; }
}

.n-item {
  display: flex; align-items: flex-start;
  gap: 9px; padding: 8px 0;
  border-bottom: 1px dashed var(--border); cursor: pointer;
}
.n-item:last-child { border-bottom: none; }
.n-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--amber); color: #fff;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.n-title {
  font-size: 12.5px; font-weight: 600; color: #222; line-height: 1.4;
}
.n-item:hover .n-title { color: var(--amber); }

/* ─────────────────────────────────────
   19. SCROLLBAR
───────────────────────────────────── */
.notice-list::-webkit-scrollbar { width: 4px; }
.notice-list::-webkit-scrollbar-track { background: #f0ede4; }
.notice-list::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

/* ─────────────────────────────────────
   20. ADMIN NOTICE BAR
───────────────────────────────────── */
.admin-bar-custom { /* WP admin bar override */ }


/* ══════════════════════════════════════════════════
   TIN NỔI BẬT (TNB) — Layout: tin lớn trái + slide phải
══════════════════════════════════════════════════ */

/* Wrapper */
.tnb-wrap {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
  margin-bottom: 16px;
}

/* Header bar */
.tnb-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 2px solid #f0ebe0;
}
.tnb-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--brown-hd);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
/* .tnb-title i removed */
.tnb-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .18s;
}
.tnb-more:hover { color: var(--brown-hd); }

/* Body: flex row */
.tnb-body {
  display: flex;
  gap: 0;
  min-height: 420px;
}

/* Tin lớn bên trái */
.tnb-main {
  flex: 0 0 58%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f0ebe0;
  transition: opacity .18s;
}
.tnb-main:hover { opacity: .92; }

.tnb-main-img {
  flex: 1;
  min-height: 377px;
  position: relative;
  background: linear-gradient(135deg, #2b6140, #1e4d2b) center/cover no-repeat;
  overflow: hidden;
  transition: background .4s ease;
}
.tnb-main-img.tnb-fade {
  opacity: .7;
  transition: opacity .2s;
}

.tnb-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
  z-index: 3;
}

.tnb-main-info {
  padding: 14px 18px 16px;
  background: #fff;
  border-top: 2px solid #f0ebe0;
}
.tnb-main-title {
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}
.tnb-main:hover .tnb-main-title { color: var(--amber); }

.tnb-main-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tnb-main-date {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tnb-main-date i { color: var(--amber); }

/* Cột phải: các tin nhỏ */
.tnb-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  max-height: 376px; /* visCount * itemH */
}

/* Track cuộn */
.tnb-slide-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

/* Mỗi tin nhỏ */
.tnb-sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #f0ebe0;
  text-decoration: none;
  color: inherit;
  min-height: 94px;
  flex-shrink: 0;
  transition: background .18s;
  cursor: pointer;
}
.tnb-sub-item:last-child { border-bottom: none; }
.tnb-sub-item:hover,
.tnb-sub-item.tnb-sub-active {
  background: #fdf8f2;
}
.tnb-sub-item.tnb-sub-active {
  border-left: 3px solid var(--amber);
  padding-left: 11px;
}

.tnb-sub-img {
  width: 96px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(135deg, #c8b090, #a08060) center/cover no-repeat;
}

.tnb-sub-info { flex: 1; min-width: 0; }
.tnb-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.tnb-sub-item:hover .tnb-sub-title,
.tnb-sub-item.tnb-sub-active .tnb-sub-title { color: var(--amber); }

.tnb-sub-date {
  font-size: 11.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tnb-sub-date i { color: var(--amber); font-size: 10px; }

/* nav buttons removed */

.tnb-sub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 767px) {
  .tnb-body { flex-direction: column; }
  .tnb-main { flex: none; border-right: none; border-bottom: 1px solid #f0ebe0; }
  .tnb-main-img { min-height: 200px; }
  .tnb-sub-item { min-height: 72px; }
  .tnb-sub-img  { width: 70px; height: 52px; }
}


.filter-tag {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-tag.active {
    background: var(--amber);
    color: #fff !important;
    border: 1px solid var(--amber);
}

.filter-tag:not(.active) {
    background: #f0ebe0;
    color: var(--text);
    border: 1px solid var(--border);
}

.filter-tag:hover:not(.active) {
    background: var(--amber);
    color: #fff !important;
}


/* ====================== SMART SLIDER INTEGRATION ====================== */
.hero-smart-slider {
    position: relative;
    overflow: hidden;
}

.hero-smart-slider .n2-ss-slider {
    height: clamp(270px, 50vw, 520px) !important;   /* Giữ chiều cao giống slider cũ */
}

.hero-smart-slider .n2-ss-slide {
    background-size: cover !important;
    background-position: center !important;
}

/* Overlay text giống hệt slider cũ */
.hero-smart-slider .n2-ss-layer {
    z-index: 2;
}

/* Điều chỉnh caption/text overlay */
.hero-smart-slider .n2-ss-layer[data-sstype="text"] {
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
    font-family: inherit !important;
}

/* Giữ style nút và nội dung */
.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 510px;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}
/* ══════════════════════════════════════════════════
   PAGE TEMPLATES — Layout Sidebar & Full Width
══════════════════════════════════════════════════ */

/* ── Page Hero chung ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-nav));
  color: #fff;
  padding: 36px 0;
}
.page-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.3;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  margin: 0;
}

/* ── Page Content wrapper ── */
.page-content {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 16px;
}

/* ── Nội dung bài trang (the_content) ── */
.entry-content {
  font-size: 14.5px;
  line-height: 1.95;
  color: #333;
}
.entry-content h2 { font-size: 20px; color: var(--green-dark); margin: 28px 0 12px; }
.entry-content h3 { font-size: 17px; color: var(--brown-hd);   margin: 22px 0 10px; }
.entry-content p  { margin: 0 0 16px; }
.entry-content ul,
.entry-content ol { padding-left: 22px; margin: 0 0 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 6px; margin: 10px 0; }
.entry-content a  { color: var(--amber); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--amber);
  margin: 20px 0;
  padding: 12px 20px;
  background: #fdf8f2;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}
.entry-content table th {
  background: var(--green-nav); color: #fff;
  padding: 10px 12px; text-align: left; font-size: 13px;
}
.entry-content table td {
  border: 1px solid var(--border);
  padding: 9px 12px; font-size: 13.5px;
}
.entry-content table tr:nth-child(even) td { background: #faf7f0; }

/* ── Featured image ── */
.page-featured-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  max-height: 420px;
}
.page-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.breadcrumb-wrap a { color: var(--amber); font-weight: 600; }
.breadcrumb-wrap a:hover { text-decoration: underline; }
.breadcrumb-wrap .sep { color: #bbb; }

/* ── Layout: Sidebar (8+4) ── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── Layout: Full Width ── */
.layout-fullwidth { width: 100%; }

/* ── Page sidebar widgets ── */
.page-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── Back to top button ── */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.back-to-top:hover { color: var(--brown-hd); }

/* ── Banner Module ── */
.banner-module {
  width: 100%;
  background: #f2ede3;
}
.banner-module img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Middle Banner Module (giữa trang, dưới Tin Nổi Bật) ── */
.middle-banner-module {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.middle-banner-module img {
  max-height: 300px;
  padding: 15px;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* ── Homepage quick banners (dưới banner giữa trang) ── */
.home-quick-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 46px 0px;
}

.home-quick-banner {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e4d9c6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  background: #f7f1e3;
}

.home-quick-banner img {
  width: 100%;
  height: 128px;
  max-height: 128px;
  object-fit: cover;
  display: block;
}

.home-quick-banner span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0) 0%, rgba(16, 20, 26, 0.82) 100%);
  text-align: center;
}

.home-quick-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  border-color: #d9ac42;
}

/* ── Bottom Links Module ── */
.links-bg { background: #f0ebe0; padding: 0 0 24px; }
.links-box { margin-bottom: 0; }

.home-links-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.home-links-nav {
  width: 34px;
  height: 34px;
  border: 1px solid #d8cbb1;
  border-radius: 50%;
  background: #fff;
  color: #6d5730;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.home-links-nav:hover {
  background: #f8f3e9;
  border-color: #c9a563;
  color: #8b5a18;
}

.home-links-nav:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.home-links-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 170px);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 4px 2px 8px;
}

.home-links-track::-webkit-scrollbar { height: 8px; }
.home-links-track::-webkit-scrollbar-thumb {
  background: #d2c5ad;
  border-radius: 20px;
}

.home-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 120px;
  border: 1px solid #eadfcd;
  border-radius: 8px;
  padding: 10px 8px;
  background: #fffdf9;
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-link-item:hover {
  transform: translateY(-2px);
  border-color: #d9ac42;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.home-link-logo {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #efe5d4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.home-link-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-link-logo-fallback {
  color: #8f7a54;
  font-size: 20px;
}

.home-link-name {
  font-size: 12px;
  line-height: 1.35;
  color: #2e2e2e;
  font-weight: 600;
}

/* ── Education TV Module (YouTube) ── */
.edu-tv-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 14px;
}

.edu-tv-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.edu-tv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.edu-tv-main-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
}

.edu-tv-main-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.edu-tv-main-title-row .edu-tv-main-title {
  margin-top: 0;
}

.edu-tv-reset-btn {
  border: 1px solid #d8cbb1;
  background: #fff;
  color: #6d5730;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.edu-tv-reset-btn:hover {
  border-color: #c9a563;
  color: #8b5a18;
  background: #f8f3e9;
}

.edu-tv-reset-btn.is-disabled,
.edu-tv-reset-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.edu-tv-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.edu-tv-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ece2cf;
  background: #fffaf2;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.edu-tv-item:hover {
  background: #fff;
  border-color: #d9ac42;
  transform: translateY(-1px);
}

.edu-tv-item.is-active {
  border-color: #d9ac42;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.edu-tv-thumb-wrap {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #d6d6d6;
  min-height: 66px;
}

.edu-tv-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-tv-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.edu-tv-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edu-tv-item-title-wrap {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}

.edu-tv-item-link {
  color: #cc1f1f;
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .edu-tv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .edu-tv-main-title-row {
    flex-direction: column;
  }

  .edu-tv-item {
    grid-template-columns: 96px 1fr;
    gap: 8px;
    padding: 7px;
  }
}

@media (max-width: 768px) {
  .middle-banner-module {
    margin: 15px 0;
    border-radius: 6px;
  }

  .home-quick-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-quick-banner img {
    height: 108px;
    max-height: 108px;
  }

  .home-links-carousel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-links-nav {
    display: none;
  }

  .home-links-track {
    grid-auto-columns: minmax(138px, 148px);
  }
}

/* Modern Education TV (new style, khong dung s-hdr cu) */
.edu-tv-modern {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #101a23 0%, #172838 60%, #1e3244 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  margin: 18px 0 0;
}

.edu-tv-modern__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(255,0,51,.14), rgba(255,255,255,.02));
}

.edu-tv-modern__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.edu-tv-modern__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff0033;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(255,0,51,.35);
  flex-shrink: 0;
}

.edu-tv-modern__kicker {
  margin: 0 0 2px;
  font-size: 10px;
  color: rgba(255,255,255,.68);
  letter-spacing: .9px;
  text-transform: uppercase;
  font-weight: 600;
}

.edu-tv-modern__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.edu-tv-modern__cta {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  transition: .2s ease;
  white-space: nowrap;
}

.edu-tv-modern__cta:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.42);
  color: #fff;
}

.edu-tv-modern__body {
  padding: 12px;
}

/* make existing list fit dark card */
.edu-tv-modern .edu-tv-main-title {
  color: #f3f6fb;
}

.edu-tv-modern .edu-tv-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.edu-tv-modern .edu-tv-item:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.26);
}

.edu-tv-modern .edu-tv-item-title {
  color: #eef3fb;
}

@media (max-width: 767px) {
  .edu-tv-modern__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ════════════════════════════════════════════════════
   HỌC LIỆU SỐ — HLS Styles
   Prefix: .hls-
════════════════════════════════════════════════════ */

/* ── Banner ── */
.hls-banner {
  background: linear-gradient(135deg, #0d2e17 0%, #163d20 45%, #1e5530 100%);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.hls-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hls-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hls-banner-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--amber);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(200,121,30,.4);
}
.hls-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: .5px;
}
.hls-banner-sub {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.5;
}

/* ── Search Bar ── */
/* .hls-search-wrap — Old search wrapper (deprecated, moved inside container) */

.hls-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.hls-search-input-wrap {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--green-nav);
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: var(--green-nav);
}
.hls-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.hls-select {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  min-width: 130px;
  flex: 0 1 auto;
}
.hls-select:focus { outline: none; border-color: var(--green-nav); }
.hls-search-btn {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: background .18s;
}
.hls-search-btn:hover { background: var(--amber-lt); }

/* ── Category Cards ── */
.hls-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.hls-cat-card {
  background: var(--cat-bg, #f0ede4);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  color: var(--text);
}
.hls-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border-color: var(--cat-color);
}
.hls-cat-card.active {
  border-color: var(--cat-color);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  background: var(--cat-color);
  color: #fff;
}
.hls-cat-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cat-color, #2b6140);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin: 0 auto 10px;
  transition: background .18s;
}
.hls-cat-card.active .hls-cat-icon {
  background: rgba(255,255,255,.25);
}
.hls-cat-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: inherit;
}
.hls-cat-count {
  font-size: 11.5px;
  color: var(--cat-color);
  font-weight: 500;
}
.hls-cat-card.active .hls-cat-count { color: rgba(255,255,255,.8); }

/* ── Sidebar links ── */
.hls-sidebar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
  text-decoration: none;
}
.hls-sidebar-link:last-child { border-bottom: none; }
.hls-sidebar-link:hover,
.hls-sidebar-link.active { color: var(--amber); font-weight: 700; }
.hls-sidebar-link.active i { color: var(--green-nav) !important; }
.hls-sidebar-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--amber);
  color: #fff;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Filter Tags ── */
.hls-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f0ede4;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.hls-filter-tag:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.hls-filter-tag.active { background: var(--green-nav); color: #fff; border-color: var(--green-nav); }
.hls-filter-tag span { opacity: .7; font-weight: 400; }

/* ── Document Item ── */
.hls-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  transition: background .15s;
}
.hls-doc-item:last-child { border-bottom: none; }
.hls-doc-item:hover { background: #faf7f0; margin: 0 -14px; padding: 14px 14px; }

/* Icon (when no thumbnail) */
.hls-doc-icon {
  width: 52px; height: 58px;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: 22px;
  flex-shrink: 0;
  text-align: center;
}
.hls-doc-icon span { font-size: 9px; font-weight: 800; letter-spacing: .5px; margin-top: 1px; }
.hls-icon-pdf  { background: #fde8e8; color: #c0392b; }
.hls-icon-docx { background: #e8f0fe; color: #1a73e8; }
.hls-icon-pptx { background: #fff3e0; color: #e67e22; }
.hls-icon-default { background: #f0ede4; color: var(--amber); }
.hls-icon-video { background: #fde8e8; color: #c0392b; }

/* Thumbnail */
.hls-doc-thumb {
  width: 88px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.hls-doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hls-doc-thumb--video::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
}

.hls-yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 28px; height: 28px;
  background: rgba(192,57,43,.9);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  z-index: 2;
}

/* Body */
.hls-doc-body { flex: 1; min-width: 0; }
.hls-doc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: color .15s;
}
.hls-doc-title:hover { color: var(--amber); }
.hls-doc-excerpt {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  margin: 0 0 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hls-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--text-light);
  align-items: center;
}
.hls-doc-meta i { color: var(--amber); margin-right: 2px; }
.hls-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  background: #f0ede4;
  color: #555;
}
.hls-badge--pdf  { background: #fde8e8; color: #c0392b; }
.hls-badge--docx { background: #e8f0fe; color: #1a73e8; }
.hls-badge--pptx { background: #fff3e0; color: #e67e22; }

/* Action buttons */
.hls-doc-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.hls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.hls-btn:hover { transform: translateY(-1px); }
.hls-btn--view { background: var(--green-nav); color: #fff; }
.hls-btn--view:hover { background: #1e4d2b; color: #fff; }
.hls-btn--dl   { background: var(--amber); color: #fff; }
.hls-btn--dl:hover { background: var(--amber-lt); color: #fff; }
.hls-btn--lg   { padding: 10px 20px; font-size: 13.5px; }

/* Empty state */
.hls-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}
.hls-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.hls-empty p { font-size: 14px; color: #999; margin: 0; }

/* ── Video Section ── */
.hls-video-section {
  background: linear-gradient(160deg, #0d1f14 0%, #162a1d 60%, #1a3222 100%);
  padding: 28px 0 32px;
  margin-top: 0;
}
.hls-video-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.hls-video-hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hls-video-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #ff0033;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(255,0,51,.35);
  flex-shrink: 0;
}
.hls-video-kicker {
  font-size: 10px;
  color: rgba(255,255,255,.55);
  letter-spacing: .9px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}
.hls-video-title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.hls-video-more {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  transition: .2s;
  white-space: nowrap;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.hls-video-more:hover { background: rgba(255,255,255,.14); color: #fff; }

.hls-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Video Card */
.hls-vcard {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.hls-vcard:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.hls-vcard-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.hls-vcard-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hls-vcard-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .18s;
}
.hls-vcard:hover .hls-vcard-overlay { opacity: 1; }
.hls-vcard-play {
  width: 44px; height: 44px;
  background: rgba(192,57,43,.92);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.hls-vcard-body { padding: 10px 12px 12px; }
.hls-vcard-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold);
  margin-bottom: 5px;
}
.hls-vcard-title {
  font-size: 13px;
  font-weight: 600;
  color: #eef3fb;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hls-vcard-date {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.hls-vcard-date i { color: var(--gold); margin-right: 3px; }

/* ── YouTube Modal ── */
.hls-yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.hls-yt-modal.active { display: flex; }
.hls-yt-modal-inner {
  position: relative;
  width: min(900px, 96vw);
}
.hls-yt-modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color .15s;
}
.hls-yt-modal-close:hover { color: #fff; }
.hls-yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.hls-yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* ── Single page video embed ── */
.hls-video-embed-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.hls-video-embed-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* ── filter-tag (reuse in archive-van-ban) ── */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f0ede4;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.filter-tag:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.filter-tag.active { background: var(--green-nav); color: #fff; border-color: var(--green-nav); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hls-video-grid { grid-template-columns: repeat(2, 1fr); }
  .hls-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hls-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .hls-search-input-wrap {
    min-width: 0;
    flex: 1;
  }
  .hls-select {
    min-width: 0;
    flex: 1;
  }
  .hls-search-btn {
    flex: 1;
  }
  .hls-doc-item { flex-wrap: wrap; }
  .hls-doc-actions { flex-direction: row; }
  .hls-video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hls-video-hdr { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hls-cats { grid-template-columns: repeat(2, 1fr); }
  .hls-video-grid { grid-template-columns: 1fr; }
  .home-quick-banners {
    grid-template-columns: 1fr;
  }
  .home-quick-banner img {
    height: 118px;
    max-height: 118px;
  }
  .hls-search-form {
    padding: 8px;
    gap: 4px;
  }
  .hls-search-input-wrap {
    padding: 0 8px;
    font-size: 12px;
  }
  .hls-search-input {
    padding: 6px 0;
    font-size: 12px;
  }
  .hls-select {
    padding: 6px 8px;
    font-size: 12px;
  }
  .hls-search-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════════════
   LỊCH CÔNG TÁC — Table styles
══════════════════════════════════════════════════ */

/* Bảng lịch công tác */
.lct-table-wrap {
  overflow-x: auto;
  margin-bottom: 0;
}

.lct-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 13.5px;
}

.lct-table thead tr {
  background: var(--green-nav, #2b6140);
}

.lct-table th {
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12.5px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.lct-th-thu   { width: 96px; }
.lct-th-buoi  { width: 76px; }
.lct-th-chutri { width: 160px; }
.lct-th-dia   { width: 150px; }

.lct-table tbody tr { border-bottom: 1px solid #eee; }
.lct-table tbody tr:last-child { border-bottom: none; }
.lct-table tbody tr:nth-child(even) td { background: #fafaf8; }
.lct-table tbody tr:hover td { background: #f0f6f3; }

.lct-td-thu {
  background: #e8f5e9 !important;
  font-weight: 700;
  font-size: 13px;
  color: #1e4d2b;
  text-align: center;
  border-right: 2px solid #c8e6c9;
  vertical-align: middle;
}

.lct-td-buoi {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid #eee;
  white-space: nowrap;
  padding: 8px 10px;
}

.lct-buoi-sáng  { background: #fffde7; color: #f57f17; }
.lct-buoi-chiều { background: #e8f5e9; color: #2e7d32; }
.lct-buoi-tối   { background: #e3f2fd; color: #1565c0; }
.lct-buoi-cảngày { background: #fce4ec; color: #880e4f; }

.lct-td-nd {
  padding: 8px 12px;
  line-height: 1.65;
  border-right: 1px solid #eee;
}

.lct-td-ct,
.lct-td-dd {
  padding: 8px 10px;
  font-size: 12.5px;
  color: #555;
  border-right: 1px solid #eee;
}

/* Tab bảng / file */
.lct-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--green-nav, #2b6140);
}

.lct-tab-btn {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: #f0f0f0;
  color: #555;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: background .15s, color .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lct-tab-btn.active {
  background: var(--green-nav, #2b6140);
  color: #fff;
}

.lct-tab-pane { margin-top: 2px; }

/* File embed iframe */
.lct-file-wrap { display: flex; flex-direction: column; gap: 10px; }

.lct-file-iframe {
  width: 100%;
  height: 680px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: block;
}

.lct-file-actions { display: flex; gap: 8px; }

.lct-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber, #c8791e);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.lct-dl-btn:hover { background: #a86318; color: #fff; }

.lct-file-dl-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
}
.lct-file-dl-box i { font-size: 48px; color: #c0392b; }
.lct-file-dl-box p { margin: 0 0 8px; font-size: 14px; }

/* Info bar (single page) */
.lct-info-bar {
  background: var(--green-nav, #2b6140);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.lct-info-item { display: flex; flex-direction: column; gap: 1px; }
.lct-info-label { font-size: 10.5px; opacity: .65; text-transform: uppercase; letter-spacing: .5px; }
.lct-info-val   { font-size: 14px; font-weight: 700; }

.lct-print-btn {
  background: var(--amber, #c8791e);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.lct-print-btn:hover { background: #a86318; }

.lct-single-body { padding: 18px 20px; }

/* Archive card badges */
.lct-badge-tuan {
  background: var(--amber, #c8791e);
  color: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11.5px;
  margin-right: 8px;
  font-weight: 700;
}

.lct-badge-mode {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}

.lct-meta-badges { display: inline-flex; gap: 4px; align-items: center; }

.lct-date-range {
  font-size: 11.5px;
  opacity: .88;
}

.lct-link-detail {
  font-size: 11.5px;
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  white-space: nowrap;
}
.lct-link-detail:hover { color: #fff; }

.lct-toggle-icon { opacity: .7; font-size: 11px; }

.lct-card-hdr {
  transition: background .15s;
}
.lct-card-hdr:hover {
  filter: brightness(1.08);
}

/* Responsive */
@media (max-width: 768px) {
  .lct-info-bar { gap: 12px; padding: 12px 14px; }
  .lct-info-val { font-size: 13px; }
  .lct-single-body { padding: 12px 14px; }
  .lct-file-iframe { height: 420px; }
  .lct-table { min-width: 480px; font-size: 12.5px; }
  .lct-th-chutri { width: 120px; }
  .lct-th-dia { width: 110px; }
  .lct-tabs { flex-wrap: wrap; }
  .lct-tab-btn { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .lct-file-iframe { height: 320px; }
  .lct-info-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ══════════════════════════════════════════════════
   PAGINATION — Phân trang chung
══════════════════════════════════════════════════ */

.lct-pagination { margin: 24px 0; }

.lct-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 0 3px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #333);
  background: #fff;
  border: 1px solid var(--border, #e2e4e7);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}

.lct-pagination .page-numbers:hover,
.lct-pagination .page-numbers.current {
  background: var(--amber, #c8791e);
  color: #fff;
  border-color: var(--amber, #c8791e);
}

.lct-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  padding: 0 5px;
}

.lct-pagination .prev,
.lct-pagination .next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
}
