﻿/* =============================================================================
   CIAT — Vietnam Food System Platform: theme (nạp sau main/menu/bootstrap/media.css)
   Ghi đè qua class sẵn có; trang chủ có height inline (450/615/250px) → dùng !important
   ========================================================================== */
:root {
  --c-green: #0b8a55;
  --c-green-dark: #06613b;
  --c-green-deep: #04442a;
  --c-leaf: #7cc142;
  --c-gold: #f2b705;
  --c-ink: #18231d;
  --c-muted: #5c6b63;
  --c-line: #e2e8e4;
  --c-soft: #f3f7f4;
  --c-radius: 14px;
  --c-shadow: 0 14px 34px -16px rgba(6, 68, 42, 0.28);
  --c-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body,
#wrapper,
p, li, td, th, label, a, span, input, select, button, textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--c-font);
}

body {
  color: var(--c-ink);
}

/* ---------- Header ---------- */
#gop_top {
  background: #fff !important;
  border-bottom: 1px solid var(--c-line);
}

#gop_top .nav_header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
}

#gop_top .contact_menu_top {
  order: 3;
  margin-left: 0;
}

#gop_top .contact_menu_top img {
  height: 56px !important;
  width: auto;
}

#gop_top .nav_header > .col {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

#gop_top .nav_header > .col br {
  display: none;
}

#google_translate {
  height: 38px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b63' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#google_translate:hover,
#google_translate:focus {
  border-color: var(--c-green);
  outline: none;
}

/* Khối tên site: biểu tượng lá + 2 dòng */
.ciat-brand {
  float: none !important;
  margin: 0 !important;
  top: 0 !important;
  order: 1;
}

.ciat-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.ciat-brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--c-leaf) 0%, var(--c-green) 55%, var(--c-green-dark) 100%);
  box-shadow: 0 8px 18px -8px rgba(11, 138, 85, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ciat-brand__mark .fa {
  color: #fff;
  font-size: 28px;
}

.ciat-brand__text {
  display: flex !important;
  flex-direction: column;
  line-height: 1.15;
  text-shadow: none !important;
}

.ciat-brand__l1 {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: var(--c-muted) !important;
}

.ciat-brand__l2 {
  margin-top: 3px;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  color: var(--c-green-dark) !important;
  text-shadow: none !important;
}

/* ---------- Thanh menu ---------- */
#nav.menu_top,
#nav {
  background: linear-gradient(90deg, var(--c-green-dark) 0%, var(--c-green) 60%, #12a065 100%) !important;
  box-shadow: 0 6px 16px -10px rgba(4, 68, 42, 0.6);
}

#nav .menu > ul > li > a,
#nav .menu__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 8px;
  transition: background 0.15s ease;
}

#nav .menu > ul > li > a:hover,
#nav .menu > ul > li:hover > a,
#nav .menu > ul > li > a.active_mn {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

#nav .menu > ul > li > a .fa-sort-down {
  margin-left: 4px;
  opacity: 0.85;
}

#nav .menu > ul > li > a .vs-menu-ico.fa-home {
  font-size: 18px;
}

/* Desktop: Trang chủ chỉ icon */
@media (min-width: 1201px) {
  #nav .vs-home-label {
    display: none;
  }
}

/* Menu con: thẻ trắng, chữ đậm màu, vạch vàng trên */
@media (min-width: 1201px) {
  #nav .menu > ul > li > .menu__sub-menu {
    min-width: 270px;
    padding: 6px;
    background: #fff !important;
    border-top: 3px solid var(--c-gold);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 36px -14px rgba(6, 68, 42, 0.4);
  }
}

#nav .menu__sub-menu .menu__sub-menu__item {
  background: transparent !important;
  border-bottom: 0 !important;
}

#nav .menu__sub-menu .menu__sub-menu__item > a {
  display: block;
  padding: 9px 12px !important;
  border-radius: 8px;
  color: var(--c-ink) !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  background: transparent !important;
  border-bottom: 0 !important;
}

#nav .menu__sub-menu .menu__sub-menu__item > a:hover {
  background: var(--c-soft) !important;
  color: var(--c-green-dark) !important;
}

/* Ô tìm kiếm trên thanh menu */
#nav .timkiem .inputnhap,
#nav input[type="text"] {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  padding: 0 38px 0 14px !important;
}

#nav .timkiem .inputnhap::placeholder,
#nav input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Khung nội dung chính ---------- */
#top_div.container.ontop {
  margin-top: 22px;
  margin-bottom: 28px;
  padding: 18px 18px 26px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: var(--c-shadow);
}

#top_div #background_div {
  display: none;
}

/* Tiêu đề mục: nhãn bo tròn + gạch xanh */
.title_center,
.title_center.shadow12 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 34px auto 18px !important;
  padding: 10px 26px 14px;
  font-family: var(--c-font) !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  color: var(--c-green-deep) !important;
  text-transform: uppercase;
  text-shadow: none !important;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(6, 68, 42, 0.3);
}

.title_center::before {
  left: 50% !important;
  bottom: 6px !important;
  width: 44px !important;
  transform: translateX(-50%);
  border-bottom: 3px solid var(--c-gold) !important;
  background: none !important;
}

/* Khoảng cách: bỏ mt-5 lồng nhau */
#top_div > .container.mt-5 {
  margin-top: 0 !important;
}

#top_div .xoamargin.mt-5 {
  margin-top: 0 !important;
}

/* ---------- Thẻ tin (slider + Tin tức) ---------- */
.khung_dv_con .khung_t_tinkham {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(6, 68, 42, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.khung_dv_con .khung_t_tinkham:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(6, 68, 42, 0.45);
}

.khung_dv_con .khung_t_tinkham .img_effect {
  overflow: hidden;
  background: var(--c-soft);
}

.khung_dv_con .khung_t_tinkham .img_effect img {
  display: block;
  width: 100%;
  height: 210px !important;
  max-height: none !important;
  object-fit: cover;
}

.khung_dv_con .khung_t_tinkham .ct_tin {
  padding: 14px 16px 16px;
}

.khung_dv_con .khung_t_tinkham .ct_tin .title_dv {
  margin: 0 0 8px;
}

.khung_dv_con .khung_t_tinkham .ct_tin .title_dv a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--c-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--c-ink) !important;
  text-decoration: none !important;
}

.khung_dv_con .khung_t_tinkham:hover .ct_tin .title_dv a {
  color: var(--c-green) !important;
}

.khung_dv_con .time_up p {
  margin: 0 0 6px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--c-muted) !important;
}

.khung_dv_con .descript_dv p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #4a5a52 !important;
}

/* Slider: thẻ cao đều */
.slider_tt .khung_dv_con {
  height: auto !important;
  padding: 6px 8px 10px;
}

.slider_tt .khung_dv_con .khung_t_tinkham {
  height: 430px !important;
}

.slider_tt .slick-prev,
.slider_tt .slick-next {
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 6px 16px -8px rgba(6, 68, 42, 0.5);
}

/* ---------- Đối tác ---------- */
#gioithieu {
  padding: 18px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  background: #fff !important;
}

#gioithieu .row {
  align-items: center;
}

#gioithieu img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.25);
  opacity: 0.92;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#gioithieu a:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

/* ---------- Tin tức: lưới 3 cột thay float ---------- */
#tintuc .xoamargin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

#tintuc .xoamargin::after,
#nganh_hang::after {
  display: none;
}

#tintuc .khung_dv_con,
#nganh_hang .khung_dv_con {
  float: none;
  width: auto;
  padding: 0;
}

#tintuc .khung_dv_con .khung_t_tinkham {
  height: 100% !important;
}

#tintuc .list-group {
  margin: 0;
  border-radius: 0;
}

#tintuc .list-group-item {
  border-left: 0;
  border-right: 0;
  border-color: var(--c-line);
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-ink);
}

#tintuc .list-group-item:hover {
  background: var(--c-soft);
  color: var(--c-green-dark);
}

#tintuc .mt-2.mb-5 {
  margin: 0 !important;
}

/* ---------- Cơ sở dữ liệu: 3 ô ---------- */
#nganh_hang {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

#nganh_hang .khung_dv_con > div {
  height: auto !important;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  background: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#nganh_hang .khung_dv_con > div:hover {
  transform: translateY(-3px);
  border-color: var(--c-green);
  box-shadow: 0 14px 28px -16px rgba(6, 68, 42, 0.45);
}

#nganh_hang .mt-2.mb-5 {
  margin: 0 !important;
}

#nganh_hang .list-group > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 24px 16px;
  text-decoration: none !important;
}

#nganh_hang .list-group > a img {
  height: 72px !important;
  width: auto;
}

#nganh_hang .list-group > a span {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-green-dark);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 0;
  padding: 36px 0 8px !important;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(124, 193, 66, 0.16), transparent 60%),
    linear-gradient(140deg, var(--c-green-dark) 0%, var(--c-green-deep) 100%) !important;
  border-top: 4px solid var(--c-gold);
}

footer .container[style] {
  margin-bottom: 18px !important;
}

footer .row {
  align-items: center;
}

footer img[src*="00.jpg"] {
  height: 84px !important;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

footer .title_fot {
  margin: 0;
  font-family: var(--c-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: #fff !important;
  text-transform: none !important;
  text-shadow: none !important;
}

footer .text-white {
  font-size: 14px;
  line-height: 2;
}

footer .text-white img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  vertical-align: -2px;
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 1200px) {
  #nav .logo_mobile a.ciat-brand__link {
    gap: 10px;
  }

  #nav .logo_mobile .ciat-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }

  #nav .logo_mobile .ciat-brand__mark .fa {
    color: var(--c-green);
    font-size: 21px;
  }

  #nav .logo_mobile .ciat-brand__l1 {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.82) !important;
  }

  #nav .logo_mobile .ciat-brand__l2 {
    font-size: 15px !important;
    color: #fff !important;
  }

  /* Menu mở trên mobile: nền trắng, chữ đậm */
  #nav .menu-content.open,
  #nav .menu-content.open .menu {
    background: #fff !important;
  }

  #nav .menu-content.open .menu > ul > li > a,
  #nav .menu-content.open .menu__link {
    color: var(--c-ink) !important;
  }

  #nav .menu-content.open .menu > ul > li > a:hover {
    background: var(--c-soft) !important;
    color: var(--c-green-dark) !important;
  }

  #nav .menu-content.open .menu__sub-menu {
    margin: 2px 12px 8px 18px;
    background: var(--c-soft) !important;
    border-left: 3px solid var(--c-gold);
    border-radius: 0 10px 10px 0;
  }
}

@media (max-width: 991px) {
  #tintuc .xoamargin,
  #nganh_hang {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #top_div.container.ontop {
    padding: 12px 10px 20px;
    border-radius: 14px;
  }
}

@media (max-width: 767px) {
  #tintuc .xoamargin,
  #nganh_hang {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .title_center,
  .title_center.shadow12 {
    margin: 26px auto 14px !important;
    padding: 8px 20px 12px;
    font-size: 18px !important;
  }

  .slider_tt .khung_dv_con .khung_t_tinkham {
    height: 400px !important;
  }

  .khung_dv_con .khung_t_tinkham .img_effect img {
    height: 190px !important;
  }

  #top_div.container.ontop {
    margin-top: 12px;
  }

  footer .row > [class*="col-"] {
    margin-bottom: 14px;
    text-align: center;
  }
}

/* ---------- Tinh chỉnh sau khi xem trên site ---------- */
/* Header desktop: tên site 1 dòng, ngôn ngữ dồn phải cạnh logo IPSARD */
#gop_top .nav_header {
  display: flex !important;
  flex-wrap: nowrap;
}

#gop_top .ciat-brand {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
}

#gop_top .ciat-brand__l1,
#gop_top .ciat-brand__l2 {
  white-space: nowrap;
}

#gop_top .nav_header > .col {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-left: auto !important;
}

/* Khối rỗng cuối trang chủ */
#top_div > .mt-5.mb-5:last-child {
  display: none;
}

@media (max-width: 1200px) {
  /* Chừa chỗ nút menu, chữ không bị đè */
  #nav .logo_mobile {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 56px;
  }

  #nav .logo_mobile .ciat-brand__l2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nút menu trắng trên nền xanh */
  #nav .burger-icon,
  #nav .burger-icon::before,
  #nav .burger-icon::after {
    background-color: #fff !important;
  }

  #nav .menu-button.is-active .burger-icon {
    background-color: transparent !important;
  }
}

@media (max-width: 767px) {
  /* Đối tác: 3 logo / hàng thay vì 1 */
  #gioithieu {
    padding: 12px 8px;
  }

  #gioithieu .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin: 0;
  }

  #gioithieu .row > .col {
    width: auto;
    max-width: none;
    padding: 0;
  }

  #gioithieu .mt-2 {
    margin-top: 0 !important;
  }

  #gioithieu img {
    max-height: 52px;
  }
}

/* Đối tác: logo cùng chiều cao (VAAS/VDD có inline max-height:160px), bỏ mt-5/mb-5 lệch hàng */
#gioithieu .img_effect {
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

#gioithieu img {
  max-height: 88px !important;
}

/* Header: khối tên site đẩy phần còn lại (ngôn ngữ + IPSARD) sang phải */
#gop_top .ciat-brand {
  margin-right: auto !important;
}

#gop_top .nav_header > .col {
  margin-left: 0 !important;
}

@media (max-width: 767px) {
  #gioithieu .img_effect {
    min-height: 60px;
  }

  #gioithieu img {
    max-height: 48px !important;
  }
}

/* .contact_menu_top (logo IPSARD) bị CSS cũ đặt rộng → chiếm hết chỗ trống; co theo nội dung */
#gop_top .contact_menu_top {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-left: 0 !important;
}

#gop_top .contact_menu_top .float-end {
  float: none !important;
}

/* Menu: font đồng bộ (menu.css cũ ép Roboto Condensed) */
#nav .menu a,
#nav .menu__link {
  font-family: var(--c-font) !important;
}

/* Mobile: icon Trang chủ đứng trước chữ */
@media (max-width: 1200px) {
  #nav .menu > ul > li > a {
    justify-content: flex-start;
  }

  #nav .menu > ul > li > a .vs-menu-ico {
    order: -1;
    margin-right: 8px;
  }
}

/* Mục có menu con (.menu__link) cùng độ đậm với mục thường */
#nav .menu > ul > li > a,
#nav .menu > ul > li > a.menu__link {
  font-weight: 700 !important;
}

@media (max-width: 1200px) {
  #nav .menu > ul > li > a {
    display: flex !important;
    align-items: center;
  }
}

/* Icon Trang chủ: menu.css đặt <i> trong link ở vị trí tuyệt đối (mũi tên xổ) → trả về dòng chảy */
#nav .menu > ul > li > a .vs-menu-ico.fa-home {
  position: static !important;
  transform: none !important;
  float: none !important;
}

#nav .vs-menu-ico::before {
  position: static !important;
  padding: 0 !important;
}

#nav .vs-home-label {
  padding: 0 !important;
  margin: 0 !important;
}

/* Trang trong (data.aspx, …): #top_div.ontop thiếu .container → trải sát mép; đưa về khung trắng như trang chủ */
#top_div.ontop:not(.container) {
  max-width: 1320px;
  margin: 22px auto 28px;
  padding: 18px 22px 26px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: var(--c-shadow);
}

#top_div.ontop:not(.container) > .row {
  margin-left: 0;
  margin-right: 0;
}

/* Tiêu đề nhóm / mục trong nội dung (h3 > b > a…) — trước là cỡ mặc định 28px xanh dương */
#top_div h3:not(.title_center):not(.title_center_0):not(.title_dv),
#top_div h4:not(.title_dv) {
  margin: 10px 0 8px;
  font-size: 20px !important;
  line-height: 1.35;
  font-weight: 800;
}

#top_div h3:not(.title_center):not(.title_center_0):not(.title_dv) a,
#top_div h3:not(.title_center):not(.title_center_0):not(.title_dv) b {
  color: var(--c-green-dark) !important;
  font-weight: 800;
}

#top_div h3:not(.title_center):not(.title_center_0):not(.title_dv) a:hover {
  color: var(--c-green) !important;
}

@media (max-width: 767px) {
  #top_div.ontop:not(.container) {
    margin: 12px 8px 20px;
    padding: 12px 12px 18px;
    border-radius: 14px;
  }

  #top_div h3:not(.title_center):not(.title_center_0):not(.title_dv) {
    font-size: 18px !important;
  }
}

/* =============================================================================
   Đợt 2: trang Cơ sở dữ liệu + chuẩn hoá trang trong (bảng, form, bài viết, footer)
   ========================================================================== */

/* ---------- Cơ sở dữ liệu (data.aspx): hero + lưới thẻ ---------- */
.db-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0 26px;
  padding: 34px 36px;
  color: #fff;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 55% 90% at 100% 0%, rgba(242, 183, 5, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(124, 193, 66, 0.25), transparent 60%),
    linear-gradient(135deg, var(--c-green) 0%, var(--c-green-deep) 100%);
  box-shadow: 0 18px 40px -24px rgba(4, 68, 42, 0.7);
}

.db-hero__text {
  flex: 1 1 520px;
  max-width: 760px;
}

.db-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

#top_div .db-hero__title {
  margin: 14px 0 10px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.db-hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.db-hero__stats {
  display: flex;
  gap: 12px;
}

.db-stat {
  min-width: 130px;
  padding: 14px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}

.db-stat b {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.db-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.db-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  box-shadow: 0 10px 26px -20px rgba(6, 68, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.db-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 138, 85, 0.35);
  box-shadow: var(--c-shadow);
}

.db-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--c-line);
}

.db-card__icon {
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 20px;
  color: var(--c-green);
  background: linear-gradient(135deg, #e8f5ee, #d7efe2);
  border-radius: 12px;
}

#top_div .db-card__title {
  flex: 1;
  margin: 0;
  font-size: 17px !important;
  line-height: 1.35;
  font-weight: 800;
}

#top_div .db-card__title a {
  color: var(--c-green-deep);
  text-decoration: none;
}

#top_div .db-card__title a:hover {
  color: var(--c-green);
}

.db-card__count {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--c-green-dark);
  background: #fff7d6;
  border: 1px solid #f5df8a;
  border-radius: 999px;
}

.db-card__list {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: db;
}

.db-card__list li {
  counter-increment: db;
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 14.5px;
  line-height: 1.5;
  border-bottom: 1px solid #f0f3f1;
}

.db-card__list li:last-child {
  border-bottom: 0;
}

.db-card__list li::before {
  content: counter(db);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: var(--c-muted);
  background: var(--c-soft);
  border-radius: 6px;
}

.db-card__list a {
  color: var(--c-ink);
  text-decoration: none;
}

.db-card__list a:hover {
  color: var(--c-green);
}

.db-card__list li:hover::before {
  color: #fff;
  background: var(--c-green);
}

.db-card__empty {
  flex: 1;
  margin: 8px 0;
  font-size: 14px;
  color: var(--c-muted);
  font-style: italic;
}

.db-card__more {
  align-self: flex-start;
  margin-top: 12px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-green) !important;
  text-decoration: none !important;
  background: #eef7f2;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.db-card__more:hover {
  color: #fff !important;
  background: var(--c-green);
}

.db-card__more .fa {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.db-card__more:hover .fa {
  transform: translateX(3px);
}

/* ---------- Bảng dữ liệu trong trang (văn bản chính sách, danh mục dữ liệu…) ---------- */
#top_div .table {
  margin-bottom: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--c-line) !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

#top_div .table > thead > tr > th,
#top_div .table > tbody > tr > th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--c-green-deep);
  background: #eaf5ef;
  border: 0 !important;
  border-bottom: 2px solid rgba(11, 138, 85, 0.25) !important;
}

#top_div .table td {
  padding: 12px 14px;
  vertical-align: top;
  border: 0 !important;
  border-bottom: 1px solid #eef2ef !important;
}

#top_div .table tbody tr:last-child td {
  border-bottom: 0 !important;
}

#top_div .table-hover tbody tr:hover > td {
  background: #f6fbf8;
}

#top_div .table a {
  color: var(--c-green-dark);
  text-decoration: none;
}

#top_div .table a:hover {
  color: var(--c-green);
  text-decoration: underline;
}

/* Văn bản chính sách: cột ID mờ, số hiệu đậm, nút tải gọn */
body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(1) {
  width: 48px;
  color: #9aa7a0;
  font-size: 13px;
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(2) {
  white-space: nowrap;
  font-weight: 700;
  color: var(--c-green-deep);
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(3) {
  white-space: nowrap;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(4) {
  line-height: 1.55;
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(5) {
  color: var(--c-muted);
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:last-child,
body:not(.ciat-admin) #ctl00_maincontent_Browse_Places th:last-child {
  width: 64px;
  text-align: center;
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--c-green) !important;
  text-decoration: none !important;
  background: #eef7f2;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:last-child a:hover {
  color: #fff !important;
  background: var(--c-green);
}

body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:last-child .fa {
  font-size: 17px !important;
}

/* Bộ lọc (select + ô tìm + nút) */
#top_div .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

#top_div .form-group > .d-inline-block {
  margin: 0;
}

#top_div .form-control {
  height: 42px;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--c-ink);
  background-color: #fff;
  border: 1px solid #cfdad3;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#top_div select.form-control {
  width: 260px !important;
  max-width: 100%;
}

#top_div .form-control:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(11, 138, 85, 0.15);
  outline: 0;
}

#top_div .btn-success {
  height: 42px;
  min-width: 46px;
  padding: 8px 16px;
  font-weight: 700;
  background: var(--c-green) !important;
  border: 0 !important;
  border-radius: 10px;
}

#top_div .btn-success:hover {
  background: var(--c-green-dark) !important;
}

/* Phân trang dạng "Hiển thị trang thứ … của … Trang" */
body:not(.ciat-admin) #ctl00_maincontent_Panel_phantrang > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  padding: 12px 16px !important;
  font-size: 14px;
  color: var(--c-muted);
  background: var(--c-soft) !important;
  border: 1px solid var(--c-line);
  border-radius: 12px;
}

body:not(.ciat-admin) #ctl00_maincontent_Panel_phantrang select {
  height: 32px;
  margin: 0 4px;
  padding: 2px 8px;
  border: 1px solid #cfdad3;
  border-radius: 8px;
  background: #fff;
}

/* ---------- Danh mục dữ liệu (data_groups.aspx) ---------- */
#top_div .box.box-success {
  border: 0;
  box-shadow: none;
  background: transparent;
}

#top_div .single-right .table td {
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.5;
}

#top_div .single-right .table a[disabled],
#top_div .single-right .table a.aspNetDisabled {
  color: #9aa7a0;
  pointer-events: none;
}

#top_div .single-right .timeline-header {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-green-deep);
}

#top_div .single-left select[multiple] {
  min-width: 200px;
  padding: 6px;
  border: 1px solid #cfdad3;
  border-radius: 10px;
}

/* ---------- Bài viết (newsdetail) ---------- */
.title_content h4 {
  font-size: 26px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--c-green-deep) !important;
  text-transform: none;
}

.time_up_content p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 18px;
  padding: 4px 12px;
  font-size: 13.5px;
  color: var(--c-muted);
  background: var(--c-soft);
  border-radius: 999px;
}

.time_up_content p::before {
  content: "\f073";
  font-family: FontAwesome;
  color: var(--c-gold);
}

.content_gt_bv199 > div:first-child {
  margin-bottom: 18px;
  padding: 14px 18px;
  font-weight: 500;
  color: #3d4c44 !important;
  background: #f4faf6;
  border-left: 4px solid var(--c-green);
  border-radius: 0 12px 12px 0;
}

.content_gt_bv199 > div:first-child p {
  margin: 0;
}

.content_gt_bv199 > div:nth-child(2) {
  font-size: 16px;
  line-height: 1.75 !important;
  color: #26332b;
}

.content_gt_bv199 > div:nth-child(2) p {
  margin: 0 0 14px;
}

.content_gt_bv199 img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

.content_gt_bv199 a {
  color: var(--c-green);
  word-break: break-word;
}

/* ---------- Trang tĩnh (Giới thiệu…) ---------- */
#top_div .mt-5 > p,
#top_div .mt-5 > ol li p,
#top_div .mt-5 > ul li {
  font-size: 15.5px;
  line-height: 1.75;
}

#top_div .mt-5 > ol li::marker {
  font-weight: 800;
  color: var(--c-green);
}

/* ---------- Footer: cột liên hệ đủ rộng, không xuống dòng số điện thoại ---------- */
@media (min-width: 768px) {
  footer .row > .col-md-3:first-child {
    flex: 0 0 22%;
    max-width: 22%;
  }

  footer .row > .col-md-6 {
    flex: 0 0 44%;
    max-width: 44%;
  }

  footer .row > .col-md-3:last-child {
    flex: 0 0 34%;
    max-width: 34%;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .db-hero {
    padding: 22px 18px;
  }

  #top_div .db-hero__title {
    font-size: 22px;
  }

  .db-hero__stats {
    width: 100%;
  }

  .db-stat {
    flex: 1;
    min-width: 0;
  }

  .db-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .title_content h4 {
    font-size: 21px !important;
  }

  #top_div select.form-control,
  #top_div .form-group > .d-inline-block {
    width: 100% !important;
  }

  #top_div .form-group > .d-inline-block:last-child {
    width: auto !important;
  }

  /* Văn bản chính sách: bảng → thẻ */
  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places,
  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places tbody,
  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places tr,
  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td {
    display: block;
    width: 100% !important;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places {
    border: 0 !important;
    background: transparent;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places thead {
    display: none;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places tr {
    position: relative;
    margin-bottom: 12px;
    padding: 12px 60px 12px 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 12px;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td {
    padding: 2px 0 !important;
    border: 0 !important;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(1) {
    display: none;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(2),
  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(3) {
    display: inline;
    width: auto !important;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(3) {
    margin-left: 6px;
    font-size: 13px;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(4) {
    margin-top: 6px;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:nth-child(5) {
    font-size: 13px;
  }

  body:not(.ciat-admin) #ctl00_maincontent_Browse_Places td:last-child {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto !important;
  }
}

/* ---------- Tinh chỉnh đợt 2 sau khi xem trên site ---------- */
/* Thẻ CSDL cao theo nội dung, không kéo giãn theo thẻ cao nhất hàng */
.db-grid {
  align-items: start;
}

/* Tiêu đề bài viết: thắng rule h4 chung 20px */
#top_div .title_content h4 {
  font-size: 26px !important;
  line-height: 1.35 !important;
  color: var(--c-green-deep) !important;
}

/* Nội dung bài: bỏ font Roboto Condensed cũ / inline */
.content_gt_bv199,
.content_gt_bv199 p,
.content_gt_bv199 span,
.content_gt_bv199 li,
.content_gt_bv199 div,
.content_gt_bv199 td {
  font-family: var(--c-font) !important;
}

/* Danh mục dữ liệu: tiêu đề cột nhỏ gọn */
#top_div .single-right h3.timeline-header {
  margin: 0 !important;
  font-size: 13px !important;
  letter-spacing: 0.03em;
  color: var(--c-green-deep) !important;
}

/* Tên nhóm (breadcrumb) phía trên danh sách */
#top_div .xoamargin > .box.box-success > h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  color: var(--c-green-deep) !important;
}

#top_div .xoamargin > .box.box-success > h3::before {
  content: "\f1c0";
  font-family: FontAwesome;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 17px;
  font-weight: normal;
  color: var(--c-green);
  background: #e8f5ee;
  border-radius: 10px;
}

/* Khung bên phải trống khi chưa chọn bộ số liệu */
#top_div .single-left > .box:not(:has(select)):not(:has(.table)) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: var(--c-soft);
  border: 1px dashed #c9d8cf;
  border-radius: 14px;
}

#top_div .single-left > .box:not(:has(select)):not(:has(.table))::before {
  content: "\f0a5   Chọn một bộ số liệu ở danh sách bên trái để xem chi tiết";
  font-family: FontAwesome, var(--c-font);
  white-space: pre;
  font-size: 15px;
  color: var(--c-muted);
}

@media (max-width: 767px) {
  body:not(.ciat-admin) #top_div #ctl00_maincontent_Browse_Places td {
    border: 0 !important;
  }

  #top_div .title_content h4 {
    font-size: 21px !important;
  }

  #top_div .single-left > .box:not(:has(select)):not(:has(.table)) {
    display: none;
  }

  /* Tên site không chui dưới nút menu */
  #nav .logo_mobile {
    max-width: calc(100% - 64px);
  }

  #nav .logo_mobile .ciat-brand__l2 {
    font-size: 14px !important;
    white-space: normal;
  }
}

/* Tiêu đề bài: font chung (main.css ép Roboto Condensed) */
#top_div .title_content h4 {
  font-family: var(--c-font) !important;
}

@media (max-width: 767px) {
  /* Tên site 1 dòng, nhỏ lại cho vừa cạnh nút menu */
  #nav .logo_mobile .ciat-brand__l2 {
    font-size: 13px !important;
    white-space: nowrap;
    letter-spacing: 0;
  }

  /* Trích dẫn + nội dung bài: cỡ chữ đọc trên điện thoại */
  .content_gt_bv199 > div:first-child,
  .content_gt_bv199 > div:first-child p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .content_gt_bv199 > div:nth-child(2),
  .content_gt_bv199 > div:nth-child(2) p,
  .content_gt_bv199 > div:nth-child(2) span {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
  }

  .content_gt_bv199 > div:first-child {
    padding: 12px 14px;
  }
}

/* ---------- Flipbook PDF trong bài viết ---------- */
.news-flipbook-embed {
  margin: 18px 0 22px;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--c-shadow);
}

.news-flipbook-embed iframe,
.content_gt_bv199 iframe.hmu-flipbook {
  display: block;
  width: 100% !important;
  height: 620px;
  max-width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
}

.news-flipbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 10px 14px;
  background: #fff;
}

.news-flipbook-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 14px !important;
  font-weight: 700;
  color: var(--c-green) !important;
  text-decoration: none !important;
  background: #eef7f2;
  border-radius: 999px;
}

.news-flipbook-actions a:hover {
  color: #fff !important;
  background: var(--c-green);
}

@media (max-width: 767px) {
  .news-flipbook-embed iframe,
  .content_gt_bv199 iframe.hmu-flipbook {
    height: 460px;
  }

  .news-flipbook-actions {
    justify-content: center;
  }
}

/* Ghi đè CSS cũ: main.css ép Roboto 1.2rem cho mọi phần tử trong bài; Site.master ép link đỏ */
#top_div .content_gt_bv199 .fa {
  font-family: FontAwesome !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

#top_div .content_gt_bv199 a {
  color: var(--c-green) !important;
}

#top_div .content_gt_bv199 .news-flipbook-actions a {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--c-green) !important;
}

#top_div .content_gt_bv199 .news-flipbook-actions a:hover {
  color: #fff !important;
}

#top_div .content_gt_bv199 *:not(.fa) {
  font-family: var(--c-font) !important;
}

/* ---------- Nút cài ứng dụng (PWA) ở footer ---------- */
.vs-pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 16px;
  font-family: var(--c-font);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-green-deep);
  white-space: nowrap;
  cursor: pointer;
  background: var(--c-gold);
  border: 0;
  border-radius: 999px;
}

.vs-pwa-install-btn[hidden] {
  display: none !important;
}

.vs-pwa-install-btn:hover {
  background: #ffd23f;
}

/* Mobile/tablet: khối tên site căn giữa dọc thanh menu (media.css cũ đặt top:14px → lệch xuống).
   Chỉ ≤1200px: trên desktop .logo_mobile phải ẩn (tên site đã có ở header trắng) */
@media (max-width: 1200px) {
  #nav .logo_mobile {
    top: 27px !important;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }
}

/* =============================================================================
   Giao diện kiểu app (≤1200px, cùng mốc menu cũ chuyển sang nút ☰) — theo mẫu NTM.
   Header: tên site + 2 nút (Tìm kiếm, Ngôn ngữ); thanh tab dưới; bottom sheet. JS: js/ciat-mobile.js
   ========================================================================== */
:root {
  --ciat-tab-h: 62px;
}

.ciat-appbar__act,
.ciat-tabbar,
.ciat-sheet {
  display: none;
}

@media (max-width: 1200px) {
  body.ciat-app {
    padding-bottom: calc(var(--ciat-tab-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Ẩn nút ☰, cờ ngôn ngữ cũ và menu thả xuống: thay bằng thanh tab + sheet */
  body.ciat-app #nav .menu-button,
  body.ciat-app #nav #nav-icon,
  body.ciat-app #nav .d-md-block.d-xl-none,
  body.ciat-app #nav_sticky {
    display: none !important;
  }

  body.ciat-app #nav .d-flex.justify-content-between {
    align-items: center;
    min-height: 54px;
  }

  body.ciat-app #nav .logo_mobile {
    top: 0 !important;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  /* 2 nút sát nhau, sát lề phải (ăn vào padding 6px của .container) để dành chỗ cho tên site */
  .ciat-appbar__act {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
    margin-left: 4px;
    margin-right: -6px;
  }

  .ciat-appbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 42px;
    padding: 0;
    font-size: 19px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
  }

  .ciat-appbar__btn:active,
  .ciat-appbar__btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
  }

  /* ----- Thanh tab dưới ----- */
  body.ciat-app .ciat-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    height: calc(var(--ciat-tab-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -4px 16px rgba(6, 68, 42, 0.08);
  }

  .ciat-tabbar > a,
  .ciat-tabbar > button {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0;
    font-family: var(--c-font);
    font-size: 11.5px;
    font-weight: 600;
    color: #5f6b66;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .ciat-tabbar > * .fa {
    font-size: 20px;
    line-height: 1;
  }

  .ciat-tabbar > * span {
    max-width: 100%;
    padding: 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ciat-tabbar > .is-active,
  .ciat-tabbar > [aria-expanded="true"] {
    color: var(--c-green);
  }

  .ciat-tabbar > .is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 3px;
    background: var(--c-green);
    border-radius: 0 0 3px 3px;
  }

  .ciat-tabbar > .is-loading .fa {
    animation: ciat-xoay 0.8s linear infinite;
  }

  .ciat-tabbar > .is-loading .fa::before {
    content: "\f110";
  }

  @keyframes ciat-xoay {
    to {
      transform: rotate(360deg);
    }
  }

  /* Bàn phím ảo mở: ẩn thanh tab */
  body.ciat-app.ciat-kb-mo .ciat-tabbar {
    display: none;
  }

  body.ciat-app.ciat-kb-mo {
    padding-bottom: 0;
  }

  /* Nút cài app nổi trên thanh tab không bị che; footer chừa chỗ */
  body.ciat-app footer {
    padding-bottom: 12px !important;
  }

  /* ----- Bottom sheet ----- */
  .ciat-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1045;
  }

  .ciat-sheet[hidden] {
    display: none;
  }

  .ciat-sheet__nen {
    position: absolute;
    inset: 0;
    background: rgba(4, 30, 18, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .ciat-sheet__khung {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .ciat-sheet.is-mo .ciat-sheet__nen {
    opacity: 1;
  }

  .ciat-sheet.is-mo .ciat-sheet__khung {
    transform: translateY(0);
  }

  .ciat-sheet__dau {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 12px 8px 18px;
    touch-action: none;
  }

  .ciat-sheet__keo {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    background: #d3dcd7;
    border-radius: 2px;
  }

  .ciat-sheet__dau h2 {
    margin: 0;
    font-family: var(--c-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--c-green-deep);
  }

  .ciat-sheet__dong {
    width: 40px;
    height: 40px;
    font-size: 16px;
    color: #3b4a42;
    background: #f1f5f3;
    border: 0;
    border-radius: 50%;
  }

  .ciat-sheet__than {
    padding: 4px 14px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-family: var(--c-font);
  }

  .ciat-sheet__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 4px 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7a72;
  }

  .ciat-sheet__xemhet {
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-green) !important;
  }

  .ciat-sheet__luoi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ciat-sheet__o {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 80px;
    padding: 8px 4px;
    font-family: var(--c-font);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--c-ink) !important;
    text-decoration: none !important;
    background: var(--c-soft);
    border: 0;
    border-radius: 14px;
  }

  .ciat-sheet__o .fa {
    font-size: 22px;
    color: var(--c-green);
  }

  .ciat-sheet__ds {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 14px;
  }

  .ciat-sheet__ds a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 14px;
    font-size: 14.5px;
    color: var(--c-ink) !important;
    text-decoration: none !important;
    border-top: 1px solid #eef2ef;
  }

  .ciat-sheet__ds a:first-child {
    border-top: 0;
  }

  .ciat-sheet__ds a .fa {
    width: 12px;
    color: var(--c-green);
  }

  /* Tìm kiếm */
  .ciat-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: #fff;
    border: 1.5px solid #cfdad3;
    border-radius: 999px;
  }

  .ciat-search:focus-within {
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(11, 138, 85, 0.15);
  }

  .ciat-search > .fa {
    color: #8a9a91;
  }

  .ciat-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0;
    font-family: var(--c-font);
    font-size: 16px;
    color: var(--c-ink);
    background: transparent;
    border: 0;
    outline: 0;
  }

  .ciat-search input.is-loi {
    animation: ciat-lac 0.3s 2;
  }

  @keyframes ciat-lac {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
  }

  .ciat-search button {
    height: 40px;
    padding: 0 18px;
    font-family: var(--c-font);
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: var(--c-green);
    border: 0;
    border-radius: 999px;
  }

  .ciat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ciat-chips button {
    padding: 8px 14px;
    font-family: var(--c-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-green-dark);
    background: #eef7f2;
    border: 0;
    border-radius: 999px;
  }

  /* Ngôn ngữ */
  .ciat-lang {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 14px;
  }

  .ciat-lang button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 16px;
    font-family: var(--c-font);
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    color: var(--c-ink);
    background: #fff;
    border: 0;
    border-top: 1px solid #eef2ef;
  }

  .ciat-lang button:first-child {
    border-top: 0;
  }

  .ciat-lang img {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  .ciat-lang span {
    flex: 1;
  }

  .ciat-lang .fa {
    visibility: hidden;
    color: var(--c-green);
  }

  .ciat-lang .is-chon {
    color: var(--c-green-deep);
    background: #f3faf6;
  }

  .ciat-lang .is-chon .fa {
    visibility: visible;
  }

  .ciat-sheet__note {
    margin: 12px 4px 0;
    font-size: 12.5px;
    color: #6b7a72;
  }

  body.ciat-sheet-mo {
    overflow: hidden;
  }
}

@media (max-width: 1200px) and (prefers-reduced-motion: reduce) {
  .ciat-sheet__khung,
  .ciat-sheet__nen {
    transition: none;
  }
}

@media (max-width: 1200px) {
  /* Tên site co theo chỗ còn lại (biểu tượng lá + 2 nút ≈ 120px), không chui dưới nút */
  body.ciat-app #nav .logo_mobile .ciat-brand__link {
    min-width: 0;
    max-width: 100%;
  }

  body.ciat-app #nav .logo_mobile .ciat-brand__text {
    min-width: 0;
    overflow: hidden;
  }

  body.ciat-app #nav .logo_mobile .ciat-brand__l2 {
    display: block;
    font-size: clamp(9.5px, calc((100vw - 140px) / 19.8), 18px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  body.ciat-app #nav .logo_mobile .ciat-brand__l1 {
    font-size: clamp(9px, calc((100vw - 126px) / 20), 13px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}

@media (max-width: 1200px) {
  /* CSS cũ chừa 56px bên phải cho nút ☰ (đã ẩn) */
  body.ciat-app #nav .logo_mobile {
    padding-right: 0 !important;
  }
}

/* ---------- Giao diện app (≤1200px): tận dụng hết chiều rộng màn hình ----------
   Bootstrap .container giới hạn 540/720/960px (576–1200px) → lề hai bên rất rộng; CSS cũ trong Site.master
   đặt padding 0/5px lệch trái-phải. Đưa về toàn chiều rộng, lề đều 10px cho header, nội dung, footer. */
@media (max-width: 1200px) {
  body.ciat-app .container,
  body.ciat-app .container-sm,
  body.ciat-app .container-md,
  body.ciat-app .container-lg,
  body.ciat-app .container-xl {
    width: auto !important;
    max-width: none !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.ciat-app #top_div.container.ontop,
  body.ciat-app #top_div.ontop:not(.container) {
    width: auto;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body.ciat-app #nav .container {
    padding-left: 8px !important;
    padding-right: 6px !important;
  }

  body.ciat-app #nav .container > .row,
  body.ciat-app footer .container > .row {
    margin-left: 0;
    margin-right: 0;
  }

  body.ciat-app #nav .container > .row > [class*="col-"],
  body.ciat-app footer .container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  body.ciat-app #top_div.container.ontop,
  body.ciat-app #top_div.ontop:not(.container) {
    margin-left: 6px !important;
    margin-right: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 1200px) {
  /* .container lồng trong khung nội dung (#tintuc, #nganh_hang…): bỏ lề thừa, thẻ sát khung */
  body.ciat-app #top_div .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 575px) {
  /* Slider trang chủ: điện thoại hiện 1 thẻ → bỏ khoảng 8px hai bên, thẳng hàng các khối bên dưới */
  body.ciat-app .slider_tt .khung_dv_con.slick-slide {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ---------- Đối tác (trang chủ): lưới thẻ logo cùng kích thước ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 16px;
  text-align: center;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  box-shadow: 0 8px 22px -18px rgba(6, 68, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(11, 138, 85, 0.35);
  box-shadow: var(--c-shadow);
}

.partner-card:focus-visible {
  outline: 3px solid rgba(11, 138, 85, 0.35);
  outline-offset: 2px;
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
}

.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.partner-card:hover .partner-card__logo img {
  transform: scale(1.05);
}

.partner-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;
  padding-top: 10px;
  width: 100%;
  font-family: var(--c-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-line);
  transition: color 0.2s ease;
}

.partner-card:hover .partner-card__name {
  color: var(--c-green-dark);
}

@media (max-width: 991px) {
  /* Tablet: 3 + 2 thẻ, hàng dưới căn giữa (lưới 6 cột, mỗi thẻ chiếm 2) */
  .partner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .partner-card {
    grid-column: span 2;
  }

  .partner-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 575px) {
  /* Điện thoại: 2 cột, thẻ lẻ cuối cùng trải hết hàng */
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .partner-card,
  .partner-card:nth-child(4):nth-last-child(2) {
    grid-column: auto;
  }

  .partner-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .partner-card {
    padding: 14px 10px 12px;
    gap: 10px;
  }

  .partner-card__logo {
    height: 64px;
  }

  .partner-card__name {
    font-size: 12px;
    padding-top: 8px;
  }
}

/* ---------- Google Translate: tắt thanh thông báo dịch + khoảng trống 40px trên header (theo TTNS) ----------
   Google đặt body{top:40px} cho banner; tên class VIpgJd-… là bản mới, goog-te-… là bản cũ. */
body {
  top: 0 !important;
}

#google_translate_element2,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate,
.goog-te-gadget,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
#goog-gt-tt,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Bỏ nền/viền vàng khi rê chuột lên đoạn đã dịch */
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  background: none !important;
  box-shadow: none !important;
}

/* ---------- Nền trang: CSS thay ảnh 06.jpg (5 MB, background-attachment:fixed lỗi trên iOS) ----------
   Xanh bạc hà nhạt + vệt sáng xanh lá / vàng / xanh đậm theo màu thương hiệu; 0 KB, cuộn theo trang.
   Muốn dùng lại ảnh: ghi đường dẫn vào App_Data/anhnen_vn.html (Site.master.vb gắn style trên body). */
html {
  background-color: #eef5f1;
}

body {
  background-color: #eef5f1;
  background-image:
    radial-gradient(1100px 520px at 0% 0%, rgba(124, 193, 66, 0.20), transparent 62%),
    radial-gradient(900px 480px at 100% 6%, rgba(242, 183, 5, 0.12), transparent 60%),
    radial-gradient(1200px 700px at 50% 100%, rgba(11, 138, 85, 0.12), transparent 65%),
    linear-gradient(180deg, #f3f8f5 0%, #eaf3ee 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100% 100%;
}

/* Lớp phủ trắng mờ cũ (#background_div, App_Data/opacity_vn.html) chỉ dùng khi có ảnh nền */
body:not([style*="background-image"]) #background_div {
  display: none !important;
}

/* =============================================================================
   Nhóm dữ liệu (vn/data_groups.aspx) + modal số liệu (js/ciat-csdl.js) — theo TTNS dulieu_groups
   ========================================================================== */
.dg-hero .db-hero__eyebrow {
  text-decoration: none !important;
}

.dg-hero .db-hero__eyebrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

#top_div .dg-hero .db-hero__title .fa {
  margin-right: 6px;
  opacity: 0.85;
}

.dg-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Menu nhóm dữ liệu */
.dg-nav {
  position: sticky;
  top: 70px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  box-shadow: 0 10px 26px -20px rgba(6, 68, 42, 0.45);
}

.dg-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-ink) !important;
  text-decoration: none !important;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dg-nav a .fa {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--c-green);
  background: #eef7f2;
  border-radius: 9px;
}

.dg-nav a span {
  flex: 1;
}

.dg-nav a b {
  min-width: 26px;
  padding: 1px 8px;
  font-size: 12px;
  text-align: center;
  color: var(--c-muted);
  background: var(--c-soft);
  border-radius: 999px;
}

.dg-nav a:hover {
  background: var(--c-soft);
}

.dg-nav a.is-active {
  color: #fff !important;
  background: var(--c-green);
}

.dg-nav a.is-active .fa {
  color: var(--c-green);
  background: #fff;
}

.dg-nav a.is-active b {
  color: var(--c-green-deep);
  background: #fff7d6;
}

/* Danh sách bộ dữ liệu */
.dg-main {
  min-width: 0;
}

.dg-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--c-font);
  text-align: left;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  box-shadow: 0 8px 22px -20px rgba(6, 68, 42, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

button.dg-item:hover,
button.dg-item:focus-visible,
button.dg-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(11, 138, 85, 0.45);
  box-shadow: var(--c-shadow);
}

button.dg-item:focus-visible {
  outline: 3px solid rgba(11, 138, 85, 0.3);
  outline-offset: 2px;
}

.dg-item__no {
  flex: 0 0 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-green-dark);
  background: #eef7f2;
  border-radius: 9px;
}

.dg-item__name {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

.dg-item__go,
.dg-item__soon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

.dg-item__go {
  color: var(--c-green);
  background: #eef7f2;
  transition: background 0.15s ease, color 0.15s ease;
}

button.dg-item:hover .dg-item__go,
button.dg-item.is-active .dg-item__go {
  color: #fff;
  background: var(--c-green);
}

.dg-item.is-disabled {
  cursor: default;
  background: #fafcfb;
  box-shadow: none;
}

.dg-item.is-disabled .dg-item__name {
  color: var(--c-muted);
}

.dg-item.is-disabled .dg-item__no {
  color: #9aa7a0;
  background: var(--c-soft);
}

.dg-item__soon {
  color: #8a6d00;
  background: #fff7d6;
}

.dg-empty {
  margin: 12px 0;
  padding: 16px;
  font-size: 15px;
  color: var(--c-muted);
  background: var(--c-soft);
  border-radius: 12px;
}

/* ---------- Modal ---------- */
html.dg-modal-open,
html.dg-modal-open body {
  overflow: hidden;
}

.dg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000000;
}

.dg-modal[hidden] {
  display: none !important;
}

.dg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 18, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dg-modal__panel {
  position: absolute;
  left: 50%;
  top: 3vh;
  bottom: 3vh;
  width: min(1240px, 96vw);
  display: flex;
  flex-direction: column;
  font-family: var(--c-font);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.dg-modal.is-open .dg-modal__backdrop {
  opacity: 1;
}

.dg-modal.is-open .dg-modal__panel {
  transform: translate(-50%, 0);
  opacity: 1;
}

.dg-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-deep) 100%);
  border-radius: 16px 16px 0 0;
}

.dg-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.dg-modal__head h2 {
  margin: 4px 0 0;
  font-family: var(--c-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.dg-modal__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--c-font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.dg-modal__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.dg-modal__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 20px 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.dg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.dg-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--c-font);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-green-deep);
  cursor: pointer;
  background: #fff;
  border: 1px solid #cfdad3;
  border-radius: 999px;
}

.dg-filter-toggle .fa-filter {
  color: var(--c-green);
}

.dg-filter-toggle:hover,
.dg-filter-toggle.is-open {
  background: #eef7f2;
  border-color: var(--c-green);
}

.dg-filter-toggle__chev {
  font-size: 12px;
  color: var(--c-muted);
  transition: transform 0.2s ease;
}

.dg-filter-toggle.is-open .dg-filter-toggle__chev {
  transform: rotate(180deg);
}

.dg-filter-count {
  padding: 1px 9px;
  font-size: 12px;
  color: #fff;
  background: var(--c-green);
  border-radius: 999px;
}

.dg-filter-count[hidden],
.dg-filter-toggle[hidden],
.dg-filterbox[hidden] {
  display: none !important;
}

.dg-meta {
  font-size: 14px;
  color: var(--c-muted);
}

.dg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--c-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
}

.dg-btn--ghost {
  color: var(--c-green-deep);
  background: #fff;
  border: 1px solid #cfdad3;
}

.dg-btn--ghost:hover {
  background: #eef7f2;
  border-color: var(--c-green);
}

#dg_btn_csv {
  margin-left: auto;
}

.dg-filterbox {
  margin-bottom: 12px;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-gold);
  border-radius: 12px;
}

.dg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dg-filter[hidden] {
  display: none !important;
}

.dg-filter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-green-deep);
}

.dg-filter select {
  min-width: 200px;
  max-width: 320px;
  padding: 4px;
  font-family: var(--c-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid #cfdad3;
  border-radius: 10px;
}

.dg-filter select:focus {
  outline: 0;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(11, 138, 85, 0.15);
}

.dg-filter select option {
  padding: 4px 6px;
  border-radius: 6px;
}

.dg-filter select option:checked {
  color: #fff;
  background: var(--c-green) linear-gradient(0deg, var(--c-green), var(--c-green));
}

.dg-filterbox__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.dg-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #5c4a00;
  background: #fff7d6;
  border-radius: 10px;
}

.dg-loading,
.dg-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 10px;
}

.dg-loading {
  color: var(--c-green-dark);
  background: #eef7f2;
}

.dg-error {
  color: #8f2d22;
  background: #fdecea;
}

.dg-loading[hidden],
.dg-error[hidden],
.dg-note[hidden],
.dg-table-wrap[hidden],
.dg-pager[hidden],
.dg-empty[hidden],
.dg-btn[hidden] {
  display: none !important;
}

.dg-table-wrap {
  flex: 1 1 auto;
  min-height: 160px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: 12px;
}

.dg-table {
  width: 100%;
  margin: 0;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
}

.dg-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0;
  white-space: nowrap;
  vertical-align: bottom;
  background: #eaf5ef;
  border-bottom: 2px solid rgba(11, 138, 85, 0.25);
}

.dg-th-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--c-font);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--c-green-deep);
  cursor: pointer;
  background: transparent;
  border: 0;
}

th.is-num .dg-th-sort {
  justify-content: flex-end;
  text-align: right;
}

.dg-th-sort:hover {
  background: rgba(11, 138, 85, 0.08);
}

.dg-th-sort .fa {
  font-size: 11px;
  color: #a6b8ad;
}

.dg-th-sort.is-active,
.dg-th-sort.is-active .fa {
  color: var(--c-green);
}

.dg-table td {
  padding: 8px 12px;
  line-height: 1.45;
  vertical-align: top;
  border-bottom: 1px solid #eef2ef;
}

.dg-table td.is-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dg-table tbody tr:nth-child(even) td {
  background: #fafcfb;
}

.dg-table tbody tr:hover td {
  background: #eef7f2;
}

/* Cột đầu dính khi cuộn ngang (tên chỉ tiêu) */
.dg-table th:first-child,
.dg-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  max-width: 320px;
  white-space: normal;
  background: #fff;
  box-shadow: 1px 0 0 var(--c-line);
}

.dg-table th:first-child {
  z-index: 3;
  background: #eaf5ef;
}

.dg-table tbody tr:nth-child(even) td:first-child {
  background: #fafcfb;
}

.dg-table tbody tr:hover td:first-child {
  background: #eef7f2;
}

.dg-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dg-pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--c-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green-deep);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 9px;
}

.dg-pager button:hover:not(:disabled):not(.is-current) {
  background: #eef7f2;
  border-color: var(--c-green);
}

.dg-pager button.is-current {
  color: #fff;
  background: var(--c-green);
  border-color: var(--c-green);
}

.dg-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 991px) {
  .dg-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Nhóm dữ liệu: hàng chip cuộn ngang */
  .dg-nav {
    position: static;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dg-nav::-webkit-scrollbar {
    display: none;
  }

  .dg-nav ul {
    display: flex;
    gap: 6px;
    width: max-content;
  }

  .dg-nav a {
    padding: 6px 10px 6px 6px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .dg-nav a .fa {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .dg-item {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px;
  }

  .dg-item__name {
    flex: 1 1 calc(100% - 50px);
    font-size: 15px;
  }

  .dg-item__go,
  .dg-item__soon {
    margin-left: 44px;
  }

  .dg-modal__panel {
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    transform: translateY(14px);
  }

  .dg-modal.is-open .dg-modal__panel {
    transform: translateY(0);
  }

  .dg-modal__head {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
    border-radius: 0;
  }

  .dg-modal__head h2 {
    font-size: 17px;
  }

  .dg-modal__close span {
    display: none;
  }

  .dg-modal__body {
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .dg-filter {
    flex: 1 1 100%;
  }

  .dg-filter select {
    width: 100%;
    max-width: none;
  }

  #dg_btn_csv {
    margin-left: 0;
  }

  .dg-table th:first-child,
  .dg-table td:first-child {
    min-width: 130px;
    max-width: 180px;
  }
}

/* Lưới nhóm dữ liệu: cột không bị nội dung (hàng chip cuộn ngang, tên dài) kéo giãn quá khung */
.dg-layout > * {
  min-width: 0;
}

.dg-item,
.dg-item__name {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Cột chữ (Chi tiết, Note…) đủ rộng để mỗi dòng gọn 1–2 dòng chữ */
.dg-table td:not(.is-num):not(:first-child) {
  min-width: 130px;
}

/* ---------- Khoảng cách trong khung nội dung ----------
   Các trang trong section.back_all (Site.master: newsdetail, groups_news, search, policy_document, faq…) lồng nhiều lớp Bootstrap .mt-5/.mb-5 (3rem !important)
   quanh .title_center → tiêu đề cách mép trên/dưới >100px. Thu lề về mức vừa phải, lớp đầu/cuối khung thì bỏ hẳn. */
.back_all .mt-5 {
  margin-top: 24px !important;
}

.back_all .mb-5 {
  margin-bottom: 24px !important;
}

.back_all .mt-5:first-child,
#top_div > .row > [class*="col"]:first-child > .mt-5:first-child,
.back_all .pt-2 > .title_center:first-child {
  margin-top: 0 !important;
}

.back_all .mb-5:last-child {
  margin-bottom: 0 !important;
}

/* Trang không dùng #top_div (quenmatkhau, Reader_login, faq…): khung .container.mt-5 ngoài cùng giữ lề trên như #top_div */
.back_all > .row > .col-lg-12 > .container.mt-5,
.back_all > .row > .col-lg-12 > div > .container.mt-5 {
  margin-top: 22px !important;
}

/* Khung nội dung → footer: bỏ div rỗng .row.mt-5 (48px) giữa </section> và <footer> trong Site.master */
.back_all + .row.mt-5:empty {
  margin-top: 0 !important;
}

#top_div.container.ontop {
  margin-bottom: 24px;
}

.back_all .title_center,
.back_all .title_center.shadow12 {
  margin: 28px auto 14px !important;
}

.back_all .title_center:first-child {
  margin-top: 4px !important;
}

.back_all .title_center + .mt-5,
.back_all .title_center + * {
  margin-top: 8px !important;
}

@media (max-width: 767px) {
  .back_all .mt-5 {
    margin-top: 16px !important;
  }

  .back_all .mb-5 {
    margin-bottom: 16px !important;
  }

  .back_all .title_center,
  .back_all .title_center.shadow12 {
    margin: 20px auto 10px !important;
  }

  .back_all .title_center:first-child {
    margin-top: 2px !important;
  }
}

/* ---------- Trang Đối tác FST (App_Data/nhom_12_vn.html trong groups_news.aspx) ---------- */
.fst-partners {
  max-width: 1080px;
  margin: 0 auto 8px;
  color: #23352b;
  font-size: 16px;
  line-height: 1.65;
}

.fst-lead {
  max-width: 880px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 17px;
}

.fst-lead strong {
  color: var(--c-green-deep);
}

.fst-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.fst-stats li {
  min-width: 150px;
  padding: 10px 18px;
  text-align: center;
  background: #f3f9f5;
  border: 1px solid var(--c-line);
  border-radius: 14px;
}

.fst-stats b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--c-green);
}

.fst-stats span {
  font-size: 14px;
  color: #51665a;
}

.fst-poster {
  margin: 0 0 28px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: var(--c-shadow);
}

.fst-poster a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.fst-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.fst-poster figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13.5px;
  color: #62756a;
}

/* Nhãn menu: khi Google Translate chuyển sang EN dùng tên chốt sẵn (nav-lbl-en, notranslate) thay cho bản dịch máy; FR/JA vẫn để Google dịch nav-lbl-vi */
.nav-lbl-en {
  display: none;
}

html.translated-ltr.ciat-lang-en .nav-lbl-vi {
  display: none;
}

html.translated-ltr.ciat-lang-en .nav-lbl-en {
  display: inline;
}

/* Ảnh tiếng Anh khi Google Translate chuyển trang sang EN (html.translated-ltr.ciat-lang-en - js/ciat-mobile.js) */
.fst-poster .fst-img-en {
  display: none;
}

html.translated-ltr.ciat-lang-en .fst-poster .fst-img-vi {
  display: none;
}

html.translated-ltr.ciat-lang-en .fst-poster .fst-img-en {
  display: block;
}

.fst-h {
  margin: 6px 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-green-deep);
}

.fst-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.fst-group {
  padding: 14px 16px 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-green);
  border-radius: 14px;
}

.fst-group h5 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-green-deep);
}

.fst-group h5 .fa {
  width: 22px;
  color: var(--c-gold);
}

.fst-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fst-group li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 14.5px;
  line-height: 1.45;
  border-top: 1px dashed #e1ebe4;
}

.fst-group li:first-child {
  border-top: 0;
}

.fst-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
}

.fst-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* Icon + tiêu đề cùng hàng, đoạn mô tả xuống dòng dưới chiếm hết chiều rộng */
.fst-roles > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #f3f9f5, #fff);
  border: 1px solid var(--c-line);
  border-radius: 14px;
}

.fst-roles .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 18px;
  color: #fff;
  background: var(--c-green);
  border-radius: 12px;
}

.fst-roles h5 {
  margin: 0;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-green-deep);
}

.fst-roles p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.fst-contact {
  margin: 0;
  padding: 14px 18px;
  text-align: center;
  background: #fff8e6;
  border: 1px solid #f1dfae;
  border-radius: 14px;
}

.fst-contact a {
  color: var(--c-green-deep);
  font-weight: 700;
}

@media (max-width: 991px) {
  .fst-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fst-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .fst-lead {
    font-size: 15.5px;
    text-align: left;
  }

  .fst-stats li {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 6px;
  }

  .fst-stats b {
    font-size: 21px;
  }

  .fst-stats span {
    font-size: 12.5px;
  }

  .fst-poster {
    padding: 4px;
    border-radius: 12px;
  }

  .fst-groups,
  .fst-roles {
    grid-template-columns: 1fr;
  }
}

/* ---------- Nội dung bài viết (newsdetail: .content_gt_bv199) ----------
   Bài dán từ web khác (vd. tID27706 từ cirad.fr) mang theo style inline: figcaption position:absolute đè lên ảnh,
   figure float/inline-block… → ép về dạng khối: ảnh trên, chú thích dưới. */
.content_gt_bv199 figure {
  position: static !important;
  display: block !important;
  float: none !important;
  max-width: 100%;
  margin: 1rem auto 1.25rem !important;
  text-align: center;
}

.content_gt_bv199 figure img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px;
}

.content_gt_bv199 figcaption,
.content_gt_bv199 figcaption * {
  position: static !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #5b6e63 !important;
  background: none !important;
}

.content_gt_bv199 figcaption {
  margin: 8px auto 0 !important;
  padding: 0 4px !important;
  font-style: italic;
  text-align: center;
}

.content_gt_bv199 figcaption p {
  margin: 0 !important;
}

/* Phần tử dán vào có position:absolute/fixed khác cũng không được nổi lên nội dung */
.content_gt_bv199 [style*="position: absolute"],
.content_gt_bv199 [style*="position:absolute"],
.content_gt_bv199 [style*="position: fixed"],
.content_gt_bv199 [style*="position:fixed"] {
  position: static !important;
}

.content_gt_bv199 img {
  max-width: 100% !important;
  height: auto !important;
}

.content_gt_bv199 table {
  max-width: 100%;
}

/* Cỡ chữ nội dung bài = chữ thường trang chủ (16px; điện thoại 15.5px).
   main.css: .content_gt_bv199 * { font-size: 1.2rem !important } → 19.2px. Tiêu đề trong bài và chú thích ảnh giữ cỡ riêng. */
#top_div .content_gt_bv199 *:not(.fa):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(figcaption):not(figcaption *):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *) {
  font-size: 16px !important;
}

@media (max-width: 767px) {
  #top_div .content_gt_bv199 *:not(.fa):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(figcaption):not(figcaption *):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *) {
    font-size: 15.5px !important;
  }
}

/* ---------- Sticky hàng tiêu đề bảng (Văn bản chính sách, ≥768px; <768px bảng đã thành thẻ) ----------
   #wrapper (Site.master) + bảng có overflow:hidden → sticky bị "kẹt" trong khung không cuộn.
   overflow: clip vẫn cắt tràn ngang nhưng không tạo khung cuộn nên position: sticky bám theo cửa sổ. */
@supports (overflow: clip) {
  #wrapper {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  #top_div #ctl00_maincontent_Browse_Places {
    overflow: visible !important;
  }
}

@media (min-width: 768px) {
  #top_div #ctl00_maincontent_Browse_Places > thead > tr > th,
  #top_div #ctl00_maincontent_Browse_Places > tbody > tr:first-child > th {
    position: sticky;
    top: var(--ciat-sticky-top, 0px);
    z-index: 5;
    box-shadow: 0 6px 10px -8px rgba(6, 68, 42, 0.35);
  }
}

/* ---------- Thẻ tin dùng chung: groups_news (nhóm tin, ấn phẩm), newsdetail (Tin khác), search ----------
   Thay .khung_dv_con/.khung_t_tinkham (chiều cao cố định 420px, cắt chữ). Grid → các thẻ cùng hàng cao bằng nhau;
   thẻ flex dọc: ảnh tỉ lệ cố định, tiêu đề ≤3 dòng, trích dẫn ≤3 dòng, ngày luôn thẳng hàng. */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: 0 10px 24px -20px rgba(6, 68, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 138, 85, 0.35);
  box-shadow: var(--c-shadow);
}

.news-card__img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef5f0;
}

#top_div .news-card__img img,
.news-card__img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

#top_div .news-grid .news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 700;
  text-transform: none;
  border: 0;
  background: none;
}

#top_div .news-grid .news-card__title::before,
#top_div .news-grid .news-card__title::after {
  display: none;
}

#top_div .news-grid .news-card__title a {
  color: var(--c-green-deep) !important;
  text-decoration: none;
}

#top_div .news-grid .news-card:hover .news-card__title a {
  color: var(--c-green) !important;
}

.news-card__date {
  margin: 0;
  font-size: 13.5px;
  color: #6a7d71;
}

.news-card__date .fa {
  margin-right: 4px;
  color: var(--c-gold);
}

.news-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f5047;
}

.news-card__excerpt p,
.news-card__excerpt span {
  display: inline;
  margin: 0;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #top_div .news-grid .news-card__title {
    font-size: 16px !important;
  }
}

/* ---------- Phân trang nhóm tin / tìm kiếm (.ciat-pager: Trước · số trang · Sau) ---------- */
.ciat-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 6px;
}

.ciat-pager__so {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7a8b80;
}

.ciat-pager a,
.ciat-pager strong,
.ciat-pager .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-green-deep) !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ciat-pager a:hover {
  color: var(--c-green) !important;
  background: #f1f8f4;
  border-color: rgba(11, 138, 85, 0.4);
}

.ciat-pager strong,
.ciat-pager a.active {
  color: #fff !important;
  background: var(--c-green);
  border-color: var(--c-green);
  pointer-events: none;
}

.ciat-pager__nav {
  padding: 0 16px !important;
}

.ciat-pager .is-disabled {
  color: #a9b5ad !important;
  background: #f5f7f6;
  cursor: default;
}

@media (max-width: 575px) {
  .ciat-pager {
    gap: 6px;
  }

  .ciat-pager a,
  .ciat-pager strong,
  .ciat-pager .is-disabled {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }
}

/* ---------- Trang Giới thiệu (App_Data/gioithieu_vn.html qua faq.aspx) ---------- */
.about-page {
  max-width: 1040px;
  margin: 0 auto 6px;
  color: #26332b;
  font-size: 16px;
  line-height: 1.7;
}

.about-hero {
  margin: 0 0 26px;
  padding: 26px 30px;
  text-align: center;
  background: linear-gradient(135deg, #f1f9f4 0%, #fdf8ea 100%);
  border: 1px solid var(--c-line);
  border-radius: 18px;
}

.about-hero__kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

#top_div .about-hero__title {
  margin: 0 0 12px;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 800;
  color: var(--c-green-deep) !important;
}

.about-hero__lead {
  max-width: 820px;
  margin: 0 auto;
  font-size: 17px;
}

#top_div .about-h {
  margin: 0 0 14px;
  font-size: 20px !important;
  font-weight: 800;
  color: var(--c-green-deep) !important;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.about-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-item:hover {
  border-color: rgba(11, 138, 85, 0.35);
  box-shadow: 0 10px 24px -18px rgba(6, 68, 42, 0.45);
}

.about-item > .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 19px;
  color: #fff;
  background: var(--c-green);
  border-radius: 12px;
}

#top_div .about-item h5 {
  margin: 0;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800;
  color: var(--c-green-deep) !important;
}

.about-item p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3f5047;
}

.about-cta {
  margin: 0 0 18px;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-green-deep) 0%, var(--c-green) 100%);
  border-radius: 18px;
}

#top_div .about-cta h4 {
  margin: 0 0 10px;
  font-size: 20px !important;
  font-weight: 800;
  color: #fff !important;
}

.about-cta p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
}

.about-cta__nut {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#top_div .about-cta__nut a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-green-deep) !important;
  text-decoration: none !important;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

#top_div .about-cta__nut a:hover {
  transform: translateY(-2px);
  background: #fdf3d3;
}

.about-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 18px;
  background: #fff8e6;
  border: 1px solid #f1dfae;
  border-radius: 14px;
}

.about-contact > .fa {
  margin-top: 5px;
  font-size: 18px;
  color: var(--c-gold);
}

#top_div .about-contact a {
  color: var(--c-green-deep) !important;
  font-weight: 700;
}

/* Thẻ lẻ cuối hàng (7 thẻ / 3 cột) trải hết chiều rộng thay vì đứng một mình */
@media (min-width: 992px) {
  .about-item:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .about-item:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .about-hero {
    padding: 18px 16px;
    text-align: left;
  }

  #top_div .about-hero__title {
    font-size: 20px !important;
  }

  .about-hero__lead {
    font-size: 15.5px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-cta {
    padding: 18px 16px;
  }

  #top_div .about-cta__nut a {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    padding: 9px 10px;
    font-size: 14px;
  }
}

/* Mobile: footer chỉ hiện ở trang chủ — trang khác dành chỗ cho nội dung */
@media (max-width: 1200px) {
  body:not(.ciat-home) footer.ciat-footer {
    display: none;
  }
}
