/* ==========================================================================
   MEKONG INNOTECH EXPO 2026 — SUBPAGES DESIGN SYSTEM
   Kế thừa bảng màu & phong cách Light Mode từ trang chủ (#386641..#FFF8E7)
   ========================================================================== */

.subpage-body {
  background-color: #FAF6EC;
  color: #1F2937;
}

/* --------------------------------------------------------------------------
   1. SUBPAGE HERO HEADER & BREADCRUMB (Sinh động với Background Image)
   -------------------------------------------------------------------------- */
.subpage-hero {
  position: relative;
  padding: 38px 0 44px;
  background-color: #1B4E2D;
  background-image:
    linear-gradient(105deg, rgba(20, 62, 34, 0.92) 0%, rgba(34, 86, 48, 0.84) 55%, rgba(56, 102, 65, 0.68) 100%),
    url('../images/hero/hero-slide-1.jpg');
  background-size: cover;
  background-position: center 42%;
  border-bottom: 3px solid #A7C957;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: url('../images/decor/slogan-wave.png') no-repeat right bottom / 360px auto;
  opacity: 0.22;
  pointer-events: none;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -50px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 204, 96, 0.22) 0%, rgba(242, 204, 96, 0) 70%);
  pointer-events: none;
}

.subpage-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subpage-hero-text {
  max-width: 760px;
}

.sub-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 6px 14px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.sub-breadcrumb a {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.sub-breadcrumb a:hover {
  color: #F2CC60;
  text-decoration: none;
}

.sub-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.sub-breadcrumb .current {
  color: #F2CC60;
  font-weight: 700;
}

.subpage-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: #F2CC60;
  border: none;
  color: #1F2937;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.subpage-pill i {
  color: #1B4E2D;
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #1B4E2D;
  line-height: 1.22;
  margin: 0 0 10px;
}

.subpage-hero .subpage-title {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.subpage-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.subpage-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subpage-hero .btn-sub-primary {
  background-color: #F2CC60;
  color: #1F2937;
}

.subpage-hero .btn-sub-primary:hover {
  background-color: #E6BC48;
  color: #111827;
}

.subpage-hero .btn-sub-outline {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.subpage-hero .btn-sub-outline:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #1B4E2D;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTENT CONTAINER & BANDS
   -------------------------------------------------------------------------- */
.subpage-main {
  padding: 40px 0 56px;
}

.sub-band {
  margin-bottom: 44px;
}

.sub-band:last-child {
  margin-bottom: 0;
}

.sub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sub-section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #1B4E2D;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sub-section-title i {
  color: #6A994E;
}

/* --------------------------------------------------------------------------
   3. CUSTOM STYLED CARDS, PILLS, BADGES & BUTTONS
   -------------------------------------------------------------------------- */
.sub-card {
  background-color: #FFFFFF;
  border: 1px solid #E5DFCE;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sub-card-hover:hover {
  transform: translateY(-3px);
  border-color: #6A994E;
  box-shadow: 0 12px 28px rgba(56, 102, 65, 0.1);
}

.sub-card-warm {
  background-color: #FFF8E7;
  border: 1.5px solid #D9CFAF;
  border-radius: 16px;
}

.sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background-color: #FFFFFF;
  border: 1px solid #E5DFCE;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.03);
}

.sub-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.sub-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid #DCE5D8;
  background-color: #F7FAF6;
  color: #2E4B35;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sub-pill-btn:hover {
  background-color: #EAF3E7;
  border-color: #6A994E;
  color: #1B4E2D;
}

.sub-pill-btn.active {
  background-color: #386641;
  border-color: #386641;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(56, 102, 65, 0.22);
}

.sub-search-box {
  position: relative;
  min-width: 250px;
  flex: 1 1 260px;
  max-width: 360px;
}

.sub-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
  pointer-events: none;
}

.sub-search-input {
  width: 100%;
  height: 42px;
  padding: 8px 14px 8px 38px;
  border-radius: 999px;
  border: 1px solid #D5DEC9;
  background-color: #FAFDF9;
  font-size: 14px;
  color: #1F2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sub-search-input:focus {
  outline: none;
  border-color: #386641;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.14);
}

/* Badges */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.sub-badge-green {
  background-color: #EAF4E7;
  color: #245A32;
  border: 1px solid #C6DFC0;
}

.sub-badge-gold {
  background-color: #F2CC60;
  color: #1F2937;
}

.sub-badge-pdf {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.sub-badge-docx {
  background-color: #DBEAFE;
  color: #1D4ED8;
}

.sub-badge-png {
  background-color: #D1FAE5;
  color: #047857;
}

.sub-badge-zip {
  background-color: #FEF3C7;
  color: #B45309;
}

/* Custom Buttons */
.btn-sub-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 999px;
  border: none;
  background-color: #386641;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sub-primary.btn-sm {
  padding: 7px 14px;
  min-height: 34px;
  font-size: 13px;
  gap: 6px;
  border-radius: 999px;
}

.btn-sub-primary:hover {
  background-color: #2A5031;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 102, 65, 0.24);
}

.btn-sub-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 999px;
  border: none;
  background-color: #F2CC60;
  color: #1F2937;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-sub-gold:hover {
  background-color: #E8BE48;
  color: #111827;
  transform: translateY(-1px);
}

.btn-sub-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid #386641;
  background-color: #FFFFFF;
  color: #386641;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sub-outline:hover {
  background-color: #386641;
  color: #FFFFFF;
}

/* Custom Pagination */
.sub-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.sub-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #DCE4D8;
  background-color: #FFFFFF;
  color: #1F2937;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sub-page-btn:hover:not(:disabled) {
  border-color: #6A994E;
  background-color: #EFF6EE;
  color: #1B4E2D;
}

.sub-page-btn.active {
  background-color: #386641;
  border-color: #386641;
  color: #FFFFFF;
}

.sub-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   4. PAGE-SPECIFIC LAYOUTS
   -------------------------------------------------------------------------- */

/* 4.1 Giới thiệu (gioi-thieu.html) */
.about-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.about-visual-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E5DFCE;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.about-visual-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.zones-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.zone-detail-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-num-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #386641;
  color: #F2CC60;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tech-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-highlight-item {
  padding: 20px;
  text-align: left;
}

.tech-highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #EAF4E7;
  color: #386641;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* 4.2 Tin tức danh sách & Chi tiết (tin-tuc.html, tin-tuc-chi-tiet.html) */
.news-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card-v2 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #EAF0E8;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card-v2:hover .news-card-thumb img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #6B7280;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.news-card-title a {
  color: #1F2937;
  text-decoration: none;
}

.news-card-title a:hover {
  color: #386641;
}

.news-card-excerpt {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1EDE2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.news-card-footer a {
  color: #386641;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.article-main-card {
  padding: 32px;
}

.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  margin: 18px 0 24px;
}

.article-prose {
  font-size: 15.5px;
  line-height: 1.75;
  color: #1F2937;
}

.article-prose h2 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: #1B4E2D;
  margin: 26px 0 12px;
}

.article-prose p {
  margin-bottom: 16px;
}

.article-prose blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid #386641;
  background-color: #FFF8E7;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #2E4B35;
}

.sidebar-widget {
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #1B4E2D;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EAE4D3;
}

/* 4.3 Thông cáo báo chí (thong-cao-bao-chi.html) */
.pr-official-card {
  padding: 26px;
  border-left: 5px solid #386641;
}

.pr-attachments-box {
  background-color: #FFF8E7;
  border: 1.5px solid #386641;
  border-radius: 14px;
  padding: 20px;
}

.pr-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  border: 1px solid #E5DFCE;
  border-radius: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.pr-file-item > div:first-child {
  min-width: 0;
  flex: 1;
}

.pr-file-item:last-child {
  margin-bottom: 0;
}

/* 4.4 Thư viện ảnh & Video (thu-vien-anh.html, thu-vien-video.html) */
.album-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.album-card {
  overflow: hidden;
  cursor: pointer;
}

.album-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.album-card:hover .album-card-cover img {
  transform: scale(1.05);
}

.album-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(27, 78, 45, 0.9);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.photo-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-grid-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E5DFCE;
  background-color: #FFFFFF;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.06);
}

.photo-grid-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(17, 24, 39, 0.82) 100%);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
}

.featured-video-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 22px;
  align-items: center;
}

/* 4.5 Bộ nhận diện (bo-nhan-dien.html) */
.palette-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.swatch-card {
  overflow: hidden;
}

.swatch-color-box {
  height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-weight: 800;
  font-size: 14px;
}

.swatch-info {
  padding: 14px;
}

.logo-asset-preview {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.logo-asset-preview.checker-light {
  background-color: #F8FAFC;
  background-image: linear-gradient(45deg, #EEF2F6 25%, transparent 25%), linear-gradient(-45deg, #EEF2F6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #EEF2F6 75%), linear-gradient(-45deg, transparent 75%, #EEF2F6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.logo-asset-preview.dark-bg {
  background: linear-gradient(135deg, #1B4E2D 0%, #2C673B 100%);
}

.logo-asset-preview img {
  max-height: 96px;
  max-width: 100%;
  object-fit: contain;
}

/* 4.6 Trung tâm tải tài liệu (tai-lieu.html) */
.sub-table-wrap {
  background-color: #FFFFFF;
  border: 1px solid #E5DFCE;
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.04);
}

.sub-doc-table {
  width: 100%;
  border-collapse: collapse;
}

.sub-doc-table thead th {
  background-color: #EFF6EE;
  color: #1B4E2D;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  padding: 12px 10px;
  border-bottom: 1px solid #DCE5D8;
  text-align: left;
  white-space: nowrap;
}

.sub-doc-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #F1EDE2;
  vertical-align: middle;
  font-size: 13.5px;
}

.sub-doc-table thead th:first-child,
.sub-doc-table tbody td:first-child {
  padding-left: 14px;
  padding-right: 6px;
  width: 36px;
}

.sub-doc-table thead th:last-child,
.sub-doc-table tbody td:last-child {
  padding-right: 14px;
}

.sub-doc-table tbody td:nth-child(2) {
  overflow-wrap: anywhere;
  min-width: 200px;
}

.sub-doc-table tbody td:nth-child(n+3) {
  white-space: nowrap;
}

.sub-doc-table tbody tr:last-child td {
  border-bottom: none;
}

.sub-doc-table tbody tr:hover {
  background-color: #FAFDF9;
}

.sub-sticky-batch-bar {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 16px;
  background-color: #1B4E2D;
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(27, 78, 45, 0.35);
}

.sub-sticky-batch-bar.is-visible {
  display: flex;
}

/* 4.7 Chương trình sự kiện (chuong-trinh.html) */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-row-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-left: 4px solid #6A994E;
}

.timeline-time-col {
  border-right: 1px solid #EAE4D3;
  padding-right: 16px;
}

.timeline-clock {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #386641;
  margin-bottom: 4px;
}

/* 4.8 Diễn giả (dien-gia.html) */
.speakers-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.speaker-card {
  padding: 24px 18px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speaker-avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid #A7C957;
  background: linear-gradient(135deg, #386641 0%, #6A994E 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(56, 102, 65, 0.16);
}

.speaker-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 4.9 Liên hệ (lien-he.html) */
.contact-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.sub-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.sub-form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #D5DEC9;
  background-color: #FFFFFF;
  font-size: 14.5px;
  color: #1F2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sub-form-control:focus {
  outline: none;
  border-color: #386641;
  box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.15);
}

.qr-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.qr-mini-box {
  background-color: #FFFFFF;
  border: 1px solid #E5DFCE;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.qr-mini-box img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

/* 4.10 Footer Sub-links bar (đảm bảo liên kết giữa tất cả các trang con) */
.footer-quick-directory {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-quick-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-quick-links a:hover {
  color: #F2CC60;
  text-decoration: underline;
}

.footer-copy-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* Search Highlight */
mark.search-hl {
  background-color: #F2CC60;
  color: #1F2937;
  padding: 0 3px;
  border-radius: 3px;
}

/* Sidebar Layout cho Tin tức & Tài liệu (sidebar nằm bên phải, sticky khi cuộn) */
.sub-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.sub-sidebar-layout > *,
.article-layout-grid > * {
  min-width: 0;
}

.sub-sidebar-layout > aside,
.article-layout-grid > aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: #FAFDF9;
  border: 1px solid #EAE4D3;
  color: #1F2937;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-cat-link:hover {
  background-color: #EFF6EE;
  border-color: #6A994E;
  color: #1B4E2D;
}

.sidebar-cat-link.active {
  background-color: #386641;
  border-color: #386641;
  color: #FFFFFF;
}

.sidebar-cat-count {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: rgba(56, 102, 65, 0.1);
  color: #245A32;
}

.sidebar-cat-link.active .sidebar-cat-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #F2CC60;
}

/* Google Map Card trên trang Liên hệ */
.contact-map-card {
  overflow: hidden;
  margin-top: 28px;
}

.contact-map-header {
  padding: 18px 24px;
  border-bottom: 1px solid #E5DFCE;
  background-color: #FAFDF9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-map-iframe {
  width: 100%;
  height: 390px;
  border: 0;
  display: block;
}

/* Responsive adjustments for subpages */
@media (max-width: 1199.98px) {
  .zones-grid-3col,
  .news-grid-3col,
  .album-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-highlights-grid,
  .speakers-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .palette-grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-layout-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .sub-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
}

@media (max-width: 991.98px) {
  .about-overview-grid,
  .article-layout-grid,
  .sub-sidebar-layout,
  .featured-video-wrap,
  .contact-2col-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sub-sidebar-layout > aside,
  .article-layout-grid > aside {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .subpage-hero {
    padding: 24px 0 28px;
  }

  .subpage-main {
    padding: 28px 0 40px;
  }

  .zones-grid-3col,
  .news-grid-3col,
  .news-grid-2col,
  .album-grid-3col,
  .tech-highlights-grid,
  .speakers-grid-4col,
  .palette-grid-5col {
    grid-template-columns: 1fr;
  }

  .photo-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-map-iframe {
    height: 300px;
  }

  .timeline-row-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .timeline-time-col {
    border-right: none;
    border-bottom: 1px solid #EAE4D3;
    padding-right: 0;
    padding-bottom: 8px;
  }

  /* Mobile: chuyển bảng tài liệu thành danh sách card dọc để xem trọn nội dung không cần cuộn ngang */
  .sub-table-wrap {
    overflow: visible;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .sub-doc-table,
  .sub-doc-table tbody {
    display: block;
    width: 100%;
  }

  .sub-doc-table thead {
    display: none;
  }

  .sub-doc-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    background-color: #FFFFFF;
    border: 1px solid #E5DFCE;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.04);
  }

  .sub-doc-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .sub-doc-table tbody td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal;
  }

  .sub-doc-table tbody td:first-child {
    flex: 0 0 auto;
    width: auto;
    padding: 3px 0 0;
    align-self: flex-start;
  }

  .sub-doc-table tbody td:nth-child(2) {
    flex: 1 1 calc(100% - 30px);
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sub-doc-table tbody td:nth-child(3),
  .sub-doc-table tbody td:nth-child(4),
  .sub-doc-table tbody td:nth-child(5),
  .sub-doc-table tbody td:nth-child(6) {
    font-size: 12.5px;
    color: #4B5563;
    white-space: nowrap;
  }

  .sub-doc-table tbody td:nth-child(6)::before {
    content: "Lượt tải: ";
    font-weight: 500;
    color: #6B7280;
  }

  .sub-doc-table tbody td:last-child {
    flex: 1 0 100%;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid #F1EDE2;
    text-align: left !important;
  }

  .sub-doc-table tbody td:last-child .js-doc-single-dl {
    width: 100%;
  }

  .article-main-card {
    padding: 20px;
  }

  .footer-quick-directory {
    flex-direction: column;
    align-items: flex-start;
  }
}

