body {
  font-family: "roboto", Open Sans, Helvetica, sans-serif !important;
}

.icon,
.icon svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  font-size: 16px;
  min-width: 1em;
}

.article-tool-btn .icon {
  margin-right: 8px;
}

.footer-social-icons .icon,
.footer-social-icons .icon svg {
  font-size: 22px !important;
}

.footer-social-icons .icon.zalo,
.footer-social-icons .icon.zalo svg {
  font-size: 32px !important;
}

.view-more .icon {
  font-size: 18px;
}

@media (min-width: 992px) {
  main.container-fluid.mt-4 {
    margin-top: 16px !important;
  }
  .container-fluid.web-links-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  main.container-fluid {
    padding-left: 24px;
    padding-right: 24px;
  }
  .main-content-row {
    display: flex;
    flex-wrap: nowrap;
  }
  .main-content-col {
    flex: 0 0 56%;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    max-width: 56%;
  }
  .tintuc-content-col {
    flex: 0 0 78%;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    max-width: 78%;
  }
  .main-content-row .col-3,
  .sidebar-col {
    flex: 0 0 22%;
    max-width: 22%;
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (min-width: 1681px) {
  header.header-top {
    padding: 6px;
  }
  .main-footer .container-fluid,
  .bottom-menu-content,
  .container-fluid.web-links-content,
  .header-top .container-fluid,
  .navbar.main-menu-nav .container-fluid-max-xl,
  main.container-fluid {
    max-width: 1600px !important;
    position: relative;
    padding-left: 0;
    padding-right: 0;
  }
}
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-control:not(.input-group-text) {
  padding: 3px 10px;
  border: 1px solid #747474;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

/* Đặt chiều cao mặc định cho input và select */
input.form-control:not(.input-group-text),
select.form-control {
  height: 28px;
}

/* Áp dụng style cho các ô input có icon (input-group) */
.input-group {
  border: 1px solid #747474;
  border-radius: 4px;
  overflow: hidden;
}

/* Bỏ viền của input và icon bên trong input-group để tránh bị viền kép */
.input-group .form-control,
.input-group .input-group-text {
  border: none;
  background-color: #fff;
  height: 100%;
  min-width: unset;
  padding: 0 8px;
}

/* Tùy chỉnh riêng cho select box để có mũi tên dropdown */
select.form-control {
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3e%3cpath d='M5.50003 6.25012L0.903442 1.65354L2.43636 0.121704L5.50003 3.18645L8.56369 0.121704L10.0966 1.65354L5.50003 6.25012Z' fill='%23747474'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  padding-right: 30px;
}

.article-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0px;
}

@media (max-width: 991.98px) {
  .an-mobile {
    display: none !important;
  }
  body {
    background-color: #fff;
  }
  .khung-noidung {
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
  }
  .lfr-layout-structure-item-container {
    width: auto !important;
  }
}
/* ------------------------------------------- */
/* CSS cho Khối TIN THANH TRA (Card1.jpg) */
/* ------------------------------------------- */
#main-content {
  margin-left: auto;
  margin-right: auto;
  overflow: visible !important;
  max-width: 1600px;
}

#main-content .lfr-layout-structure-item-row {
  overflow: visible;
}

.fa,
.fas,
.fa-solid {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.trangchuslide {
  padding-top: 16px;
  padding-bottom: 12px;
}

.tintuc-content-col .main-slider .carousel-item img {
  height: 370px;
}

.news-card-block {
  background-color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  margin-bottom: 16px;
}

.news-card-header {
  font-size: 16px;
  font-weight: 700;
  color: #195a94;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.news-card-item {
  display: flex;
  margin-bottom: 12px;
  border-bottom: solid 1px #eaeaea;
  /* --- THÊM: Đặt chiều cao cố định cho toàn bộ mục tin --- */
  padding-bottom: 12px;
}

.news-card-item img {
  width: 35%;
  aspect-ratio: unset; /* Bỏ tỷ lệ khung hình tự động */
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  flex-shrink: 0;
  /* Đảm bảo ảnh không bị co */
  height: 130px;
}

.news-card-content {
  flex-grow: 1;
  text-align: justify;
}

.news-card-title a {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: #195a94;
}

.news-card-date {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  margin-top: 0px;
  display: inline-flex;
  min-width: 100%;
  justify-content: right;
}

.news-card-summary {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-top: 5px;
  overflow: hidden;
  display: -webkit-box;
  /* Số dòng sẽ được điều chỉnh động bằng JavaScript */
  -webkit-box-orient: vertical;
  max-height: 78px;
}

@media (max-width: 991.98px) {
  .news-card-item img {
    margin-right: 0;
    width: 100%;
    height: 100px !important;
  }
  .news-card-block {
    box-shadow: unset;
    padding: 0;
    margin: 0;
  }
  .news-card-item {
    flex-wrap: wrap;
    border: solid 1px #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 16px;
    background: #fbfbfb;
  }
  .news-card-title a {
    line-height: 1.2;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    min-height: 54px;
  }
  .news-card-block .col-6 {
    padding: 0 8px;
  }
  .news-card-block .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  .news-card-content {
    padding: 8px;
  }
}
.news-block-title {
  display: flex;
  justify-content: space-between;
  color: #195a94;
  font-weight: 700;
  padding-bottom: 8px;
  margin-left: -10px;
  margin-right: -10px;
  text-transform: uppercase;
}

.news-block-title a {
  color: #195a94;
  text-decoration: none;
  font-weight: normal;
  line-height: 1;
  text-transform: none;
}

.news-block-title a i {
  font-size: 18px;
}

.sidebar-block-header .view-more i {
  font-size: 16px;
}

.sidebar-block-header .view-more {
  line-height: 1;
}

.featured-news-block {
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  padding: 10px 20px 8px 20px;
  border-radius: 8px;
}

.featured-news-block .row > .side-news {
  background: #f8f8f8;
  border: solid 1px #eaeaea;
  border-radius: 8px;
  padding: 8px;
  height: 300px;
}

.tintuc .featured-news-block .row > .side-news {
  height: 370px;
}

.side-news-list {
  padding: 8px 0;
  line-height: 1.1;
}

/* --- 2. Slider chính (Bên trái) --- */
.carousel-caption {
  bottom: 0;
  padding: 60px 9px 9px 9px;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, transparent);
  text-align: left;
}

.carousel-caption a {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
}

.carousel-caption a small {
  font-weight: 300;
  white-space: nowrap;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-inner {
  position: relative;
  overflow: hidden; /* Ẩn các slide khi chúng trượt ra ngoài */
}

/* --- CSS cho hiệu ứng trượt ngang (Slide) --- */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  opacity: 0; /* Mặc định trong suốt */
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out; /* Thêm opacity vào transition */
}

.carousel-item.active {
  display: block; /* Chỉ hiện slide active */
  transform: translateX(0);
  z-index: 1;
  opacity: 1; /* Hiện rõ slide active */
}

/* Các lớp điều khiển hướng animation */
.carousel-item.slide-next {
  transform: translateX(100%) !important;
}

.carousel-item.slide-prev {
  transform: translateX(-100%) !important;
}

.carousel-item.slide-in {
  transform: translateX(0);
}

.carousel-item.slide-out {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
} /* Làm mờ slide cũ khi trượt ra */
.main-slider .carousel-item img {
  object-fit: cover;
  border-radius: 4px;
  background-color: #f0f0f0;
  height: 100%;
}

/* --- 3. Danh sách điều khiển (Bên phải) --- */
.news-controller-list li {
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s;
  border-top: solid 1px #eaeaea;
  border-left: solid 2px transparent;
  margin-left: -1px;
  border-top: solid 1px #eaeaea;
}

.news-controller-list li:first-child:not(.active) {
  border-top-color: transparent;
}

/* Trạng thái active hoặc hover */
.news-controller-list li.active,
.news-controller-list li:hover {
  background-color: #f8f8f8;
  border-left-color: #f8f8f8;
}

.news-controller-list li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Đổi màu link khi active/hover trên li */
.news-controller-list li.active a,
.news-controller-list li:hover a {
  color: #195a94;
}

/* Biểu tượng mũi tên */
.news-controller-list li i.fa-arrow-left {
  font-size: 13px;
  vertical-align: middle;
  margin-right: 6px !important;
}

/* Chỉ hiện mũi tên khi mục đang active */
.news-controller-list li:not(.active) i.fa-arrow-left {
  display: none;
}

/* --- 4. Danh sách tin phụ (Bên dưới) --- */
.sub-news-list {
  padding: 8px 0 8px 0;
}

.sub-news-item {
  display: flex;
  gap: 12px;
  line-height: 1.2;
}

.sub-news-item img {
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 5px;
  background-color: #e9e9e9;
  max-width: 93px;
  aspect-ratio: 16/9;
}

.sub-news-item a {
  display: inline-block;
  text-decoration: unset;
  color: #2d2d2d;
  line-height: 1.2;
  font-weight: 500;
  width: 100%;
  padding: 8px 12px 8px 16px;
}

.sub-news-list .sub-news-item {
  padding-left: 6px;
  padding-right: 6px;
  text-align: justify;
}

.news-controller-list li {
  text-align: justify;
  min-height: 56px;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.featured-news-block .article-breadcrumb {
  margin-left: -12px;
  display: none;
}

.tintuc .news-block-title a {
  display: none;
}

.news-card-date {
  display: none;
  justify-content: right;
  width: 100%;
}

.tintuc .featured-news-block .article-breadcrumb {
  display: block;
}

.tintuc .news-card-date {
  display: flex;
}

.tintuc .featured-news-block {
  padding: 12px 32px 8px 32px;
}

.sub-news-item a:hover {
  color: #195a94;
}

.carousel-caption small .fa-calendar {
  margin: 0 6px 0px 0px;
}

.news-card-title {
  padding-right: 8px;
}

@media (max-width: 991.98px) {
  .featured-news-block .row > .side-news {
    padding: 0;
    border-color: transparent;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
  }
  .news-controller-list li {
    min-height: unset;
    width: 12px;
    height: 12px;
    border: none;
    background: #d9d9d9;
    border-radius: 50%;
    padding: 0;
  }
  .news-controller-list li a {
    display: none;
  }
  .list-unstyled.news-controller-list {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .news-controller-list li.active,
  .news-controller-list li:hover {
    background: #2e5aac;
  }
  .news-controller-list li {
    min-height: unset;
    width: 12px;
    height: 12px;
    border: none;
    background: #d9d9d9;
    border-radius: 50%;
    padding: 0;
  }
  .news-card-date,
  .news-controller-list li a {
    display: none !important;
  }
  .list-unstyled.news-controller-list {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .news-controller-list li.active,
  .news-controller-list li:hover {
    background: #2e5aac;
  }
  .sub-news-list .sub-news-item {
    flex: auto;
    max-width: 100%;
    padding: 0;
    border: solid 1px #ebf1ff;
    margin-bottom: 12px;
    border-radius: 8px;
    gap: 0;
    background: #f5f8ff;
  }
  .sub-news-list .sub-news-item:last-child {
    margin-bottom: 0;
  }
  .sub-news-item img {
    height: 120px;
    max-width: 42vw;
    margin-bottom: 0;
    width: 42vw;
    aspect-ratio: 16/9;
    border-radius: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
  }
  .sub-news-list {
    padding: 0px 0 8px 0;
  }
  .main-content-row .col-3,
  .col-lg-3.sidebar-col {
    padding-top: 12px;
  }
  .tintuc .featured-news-block {
    padding: 12px;
  }
}
.news-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  margin-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 6px;
}

.news-pagination-footer .pagination-info span {
  font-weight: 600;
  color: #333;
}

/* Style cho ô select chọn trang */
.news-pagination-footer .form-control {
  display: inline-block;
  width: 50px; /* Điều chỉnh độ rộng */
  height: 24px; /* Giảm chiều cao */
  padding: 0px 20px 0 5px; /* Điều chỉnh padding để không che mũi tên */
  border-color: #dee2e6;
  background-position: right 4px center;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-pagination-footer .pagination .page-link {
  font-size: 13px;
  color: #0d6efd;
  border: 1px solid #dee2e6;
  margin: 0 2px;
  border-radius: 3px;
  padding: 0px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
}

.news-pagination-footer .pagination .page-item.active .page-link {
  background-color: #f65050 !important;
  border-color: #f65050 !important;
  color: #fff;
}

.news-pagination-footer .pagination .page-link:hover:not(.active) {
  background-color: #e9f5ff;
}

/* Ghi đè style của ClayUI để loại bỏ icon/pseudo-element không mong muốn */
.news-pagination-footer .page-item.active .page-link::before {
  display: none;
}

.news-pagination-footer .page-link::before {
  display: none;
}

@media (max-width: 991.98px) {
  .news-pagination-footer {
    justify-content: center;
  }
}
/* Thanh Header chứa Tiêu đề khối, Cỡ chữ và Công cụ */
.article-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  border-bottom: solid 1px #e7e7e7;
  margin-bottom: 12px;
}

/* Phần Tiêu đề khối (TIN THANH TRA) */
.article-section-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: #195a94;
}

.article-section-title i {
  color: #195a94; /* Màu xanh cho icon */
  margin-right: 8px;
  font-size: 20px;
}

/* Phần Cỡ chữ (A- A A+) */
.article-font-sizer {
  display: flex;
  font-size: 16px;
  font-weight: 700;
  margin-left: auto; /* Đẩy sang phải */
  align-items: end;
  height: 25px;
  margin-bottom: -4px;
}

.article-font-sizer a {
  color: #195a94; /* Màu xanh cho các nút */
  text-decoration: none;
  padding: 0 2px;
  margin: 0px 1px;
  transition: color 0.1s;
  font-family: serif;
  line-height: 1;
}

.article-font-sizer a:hover {
  color: #e60000;
}

/* Phần In/Gửi bạn bè */
.article-tools-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.article-tool-btn {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  color: #333;
  font-size: 13px;
  padding: 2px 4px 3px 4px;
  border: 1px solid #e7e7e7;
  text-decoration: none !important;
  margin-left: 8px;
  border-radius: 2px;
  line-height: 1;
}

.article-tool-btn:hover {
  background-color: #f0f0f0;
}

.article-tool-btn i {
  color: #747474;
  margin-right: 5px;
}

.article-font-sizer small {
  font-weight: normal;
  padding-right: 4px;
  padding-bottom: 5px;
}

.tangcochu {
  font-size: 2rem;
}

.article-font-sizer .giamcochu {
  padding-bottom: 2px;
}

.article-header-toolbar.gop-y {
  height: 38px;
  text-transform: uppercase;
}

.article-header-toolbar.gop-y .btn-primary {
  background-color: #2a78e3;
  border-color: #2a78e3;
  color: #fff;
  border-radius: 8px;
  text-transform: uppercase;
  padding: 5px 8px 5px 16px;
  gap: 10px;
  display: flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  .article-header-toolbar {
    height: 42px;
    padding-top: 6px;
  }
  .article-font-sizer .giamcochu {
    padding: 2px 10px;
    font-size: 23px;
  }
  .article-font-sizer .tangcochu {
    padding: 0 5px;
  }
  .article-font-sizer {
    margin-right: -10px !important;
  }
}
/* ------------------------------------------- */
/* CẬP NHẬT CSS cho Thanh Cuối Bài Viết (Frame 214.png) */
/* ------------------------------------------- */
.article-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  margin-top: 12px;
}

/* Đường kẻ ngang màu xám */
.article-footer-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 1px;
  background-color: #888; /* Màu xám */
  z-index: 1;
  margin: 0px 0px 0px 30px; /* Trừ khoảng cách cho nút quay lại và icon */
}

/* Nút mũi tên quay lại */
.footer-back-btn {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  background-color: #195a94; /* Màu xanh dương */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.footer-back-btn:hover {
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
}

/* Khối Icon Mạng Xã Hội */
.footer-social-icons {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  background-color: #fff; /* Màu xám cho nền icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #747474;
  font-size: 21px;
  margin-left: 8px; /* Khoảng cách giữa các icon */
  text-decoration: none;
  transition: background-color 0.2s;
  border: solid 1px #888;
}

.social-icon-btn:not(.zalo):hover {
  background-color: #0d6efd; /* Đổi màu khi hover */
  color: #fff;
  border-color: #0d6efd;
  text-decoration: none;
}

.social-icon-btn.zalo .zaloxanh {
  display: none;
}

.social-icon-btn.zalo:hover .zaloxam {
  display: none;
}

.social-icon-btn.zalo:hover .zaloxanh {
  display: block;
}

.social-icon-btn:hover.facebook {
  background-color: #4281ff;
  border-color: #4281ff;
}

.social-icon-btn:hover.twitter {
  background-color: #1da1f2;
  border-color: #1da1f2;
}

.social-icon-btn:hover.linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

/* Căn chỉnh lại thanh điều hướng Previous/Next (Tách riêng khỏi Footer Bar) */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px dotted #ccc;
  margin-top: 30px; /* Giữ khoảng cách trên thanh đen */
}

.article-body {
  text-align: justify;
}

.article-page-container {
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  padding: 12px 20px 8px 20px;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 20px;
}

/* Tiêu đề bài viết */
.article-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0px;
}

/* Thông tin tác giả/ngày đăng */
.article-meta {
  font-size: 13px;
  color: #999;
  padding-bottom: 16px;
  text-align: right;
}

/* Nội dung tóm tắt (Lead) */
.article-lead {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Nội dung chi tiết */
.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

.article-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.article-caption {
  font-style: italic;
  font-size: 13px;
  color: #6c757d;
  text-align: center;
  margin-top: 6px;
  /* Đẩy sát vào ảnh */
  margin-bottom: 20px;
}

/* Thanh điều hướng Previous/Next */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px dotted #ccc;
  margin-top: 30px;
}

.article-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s;
}

.article-nav-link:hover {
  color: #e60000;
}

.article-nav-link i {
  margin: 0 5px;
}

/* ------------------------------------------- */
/* CẬP NHẬT CSS cho Phần Tiêu đề, Lead và Hình ảnh đầu bài viết */
/* ------------------------------------------- */
/* Xóa bỏ hoàn toàn .article-lead-block và .article-lead-content nếu bạn đã thêm chúng trước đó */
/* Ảnh đại diện 35% được float để chữ bao quanh */
.article-featured-image {
  float: left; /* Rất quan trọng: Cho phép chữ bao quanh (text wrapping) */
  width: 35%; /* Cố định chiều rộng 35% */
  margin-right: 20px; /* Khoảng cách giữa ảnh và văn bản bên cạnh */
  margin-bottom: 15px; /* Khoảng cách dưới cùng của ảnh */
  border-radius: 6px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nội dung chi tiết (áp dụng cho tất cả các đoạn p trong article-body) */
.article-body p {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

/* Tăng cỡ chữ và in đậm cho đoạn tóm tắt (Lead) đầu tiên */
.article-body p:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* Căn chỉnh hình ảnh lớn giữa bài */
.article-body img:not(.article-featured-image img) {
  float: none;
  clear: both; /* Rất quan trọng: Đẩy hình ảnh lớn xuống dưới vật thể float */
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .article-page-container {
    padding: 12px 0 8px 0;
    box-shadow: unset;
  }
  .article-featured-image {
    width: 100%;
    margin-right: 0;
  }
  .article-title {
    font-size: 18px;
    text-align: justify;
  }
}
/* Ghi đè style của Clay để phù hợp với thiết kế */
.article-breadcrumb .breadcrumb {
  margin-bottom: 0; /* Bỏ margin-bottom mặc định của breadcrumb */
  font-size: 13px;
  padding: 0px 0 2px 0;
  background: transparent;
  box-shadow: unset;
  border-bottom: unset;
}

.article-breadcrumb .breadcrumb-item a {
  color: #f65050;
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  margin-top: -0.26em;
}

.article-breadcrumb .breadcrumb-item {
  line-height: 1;
}

.article-breadcrumb .breadcrumb-item.active,
.article-breadcrumb .breadcrumb-item .active {
  font-weight: normal;
  color: #667085;
}

.article-page-container {
  margin-top: 16px;
}

.news-card-item-cds {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 40px, -50px) scale(0.95);
  filter: blur(5px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

.news-card-item-cds.is-visible {
  opacity: 1;
  transform: perspective(1000px) translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.news-card-item-cds:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 123, 255, 0.4);
  border-bottom: 3px solid #007bff;
}

/* ==========================================================================
   STYLES CHUNG CHO CÁC KHỐI SIDEBAR (CỘT PHẢI)
   ========================================================================== */
/* --- 1. Khung bao ngoài --- */
.right-sidebar-block {
  margin-bottom: 1rem; /* Sử dụng đơn vị rem của Clay */
  border: 1px solid #eaeaea; /* Màu viền chuẩn của Clay */
  border-radius: 8px; /* Bo góc chuẩn của Clay */
  background-color: #fff;
  overflow: hidden;
  margin-top: 16px;
}

/* --- 2. Tiêu đề khối --- */
.sidebar-block-header {
  color: #fff;
  padding: 5px 8px; /* Căn chỉnh padding */
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  min-height: 34px;
}

/* Tiêu đề có nền xanh (mặc định) */
.sidebar-block-header.header-blue {
  background-color: #195a94; /* Màu xanh chính của Clay */
  background-image: url("../images/bgtieudexanh.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* Nút "Xem thêm" trong tiêu đề */
.sidebar-block-header.header-blue .view-more {
  color: #fff;
  font-size: 0.875rem; /* 14px */
  font-weight: normal;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem; /* Khoảng cách giữa chữ và icon */
}

/* Nội dung danh sách thông báo */
.notification-list-content {
  height: 190px;
  overflow-y: auto; /* CHO PHÉP CUỘN */
  padding: 0;
  position: relative;
  /* --- CẬP NHẬT CHO THANH CUỘN MƯỢT MÀ --- */
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Firefox */
.notification-list-content:hover {
  scrollbar-color: var(--gray-500) transparent; /* Màu thumb của Clay */
}

/* Cho Chrome, Safari, Opera: làm thanh cuộn trong suốt mặc định */
.notification-list-content::-webkit-scrollbar {
  width: 8px;
}

.notification-list-content::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list-content::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Chrome, Safari, Opera */
.notification-list-content:hover::-webkit-scrollbar-thumb {
  background-color: var(--gray-500); /* Màu thumb của Clay */
}

.notification-list-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Thêm hiệu ứng chuyển động cho opacity để làm mờ */
  transition: opacity 0.4s ease-in-out;
}

/* Class để làm mờ nội dung */
.notification-list-content ul.is-fading {
  opacity: 0;
}

.notification-list-content ul li {
  padding: 6px 15px;
  border-bottom: 1px solid #eee;
  min-height: 63px;
  align-items: center;
  display: flex;
}

.notification-list-content ul li:last-child {
  border-bottom: none;
}

.notification-list-content ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  /* --- CSS để giới hạn số dòng --- */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn ở 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-list-content ul li a:hover {
  color: #195a94; /* Sử dụng màu primary của Clay */
}

/* Tùy chỉnh Tiêu đề khối HÌNH ẢNH / VIDEO (Nav Tabs) */
.media-block-header {
  padding: 0 !important;
  background-color: transparent !important;
  border-bottom: 2px solid #eaeaea;
}

.media-block-header ul {
  padding: 0 10px !important;
  background-color: transparent !important;
  color: #195a94 !important;
  border-bottom: none !important;
}

.media-block-header .view-more {
  color: #195a94;
  padding-right: 10px;
}

.media-block-header .view-more:hover {
  color: #195a94;
}

/* Kiểu cho các tab (HÌNH ẢNH / VIDEO) */
.media-tabs .nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  padding: 4px 0;
  margin-right: 12px;
  border: none;
  border-radius: 0;
  position: relative;
  transition: color 0.2s;
  background: transparent;
}

.media-tabs .nav-link.active {
  color: #f65050; /* Sử dụng màu danger của Clay */
  background-color: transparent;
}

.media-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f65050;
}

/* Nội dung Tab Video */
.video-content .main-media-area {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 10px;
}

.video-content .main-media-area img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-color);
  line-height: 1.4;
  display: block;
  text-decoration: none;
}

.video-date {
  font-size: 12px;
  color: var(--secondary);
  display: block;
  margin-top: 5px;
}

/* Nội dung Tab Thư viện Hình ảnh (Gallery) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px;
}

.gallery-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
  transition: border 0.2s;
  min-height: 69px;
  transform: translateY(-50%);
  top: 50%;
  position: absolute;
  aspect-ratio: 4/3;
}

.gallery-grid a:hover {
  border: solid 1px #195a94;
}

/* ------------------------------------------- */
/* Tùy chỉnh cho khối HÌNH ẢNH / VIDEO (Cột 3) */
/* 1. Vùng Media/Video chính */
.video-content .main-media-area a {
  /* Ảnh giả lập cho video */
  width: 100%;
  height: 180px; /* Chiều cao cố định */
  object-fit: cover;
  border-radius: 4px;
  background-color: #e9e9e9; /* Màu nền xám nhạt nếu ảnh lỗi/thiếu */
}

/* 2. Danh sách Gallery/Video nhỏ (Tab HÌNH ẢNH) */
.gallery-grid a {
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.play-icon.position-absolute {
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(25, 90, 148, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-popup .portlet-body {
  padding-bottom: 60px !important;
}

html:not(#__):not(#___) .portal-popup .portlet-body,
html:not(#__):not(#___) .portal-popup .portlet-boundary,
html:not(#__):not(#___) .portal-popup .portlet-column,
html:not(#__):not(#___) .portal-popup .portlet-layout,
html:not(#__):not(#___) .cadmin.portal-popup .portlet-body,
html:not(#__):not(#___) .cadmin.portal-popup .portlet-boundary,
html:not(#__):not(#___) .cadmin.portal-popup .portlet-column,
html:not(#__):not(#___) .cadmin.portal-popup .portlet-layout {
  height: auto !important;
}

/* CSS for tree structure in configuration */
/* CSS for tree structure in configuration */
.tree-container {
  position: relative;
}

.tree-item {
  padding-left: calc(var(--level, 0) * 20px) !important;
  position: relative;
}

/* Use .control-label to match the HTML */
.tree-item .control-label {
  position: relative;
  display: inline-block; /* Ensure it takes space for the pseudo-element */
}

/* Horizontal and corner line for the item */
.tree-item .control-label::before {
  content: "";
  position: absolute;
  left: -10px !important;
  top: 45px;
  display: inline-block;
  color: #adb5bd;
  width: 10px;
  border: solid 1px #dee2e6;
}

/* No line for root elements */
.tree-item[style*="--level: 0;"] .control-label::before {
  content: "";
}

/* Vertical line connecting siblings */
.tree-item::after {
  content: "";
  position: absolute;
  left: calc(var(--level, 0) * 20px - 10px);
  top: -45px;
  bottom: calc(21px - var(--soluongcon, 0) * 92px);
  width: 1px;
  background-color: #dee2e6;
  z-index: -1;
}

/* Hide vertical line for root elements and the first child of any level */
.tree-item[style*="--level: 0;"]::after,
.tree-item:first-of-type::after {
  display: none;
}

.portlet-layout.row {
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  max-width: 1600px;
}

.portlet-layout.row .lfr-layout-structure-item-row {
  overflow: visible;
}

/* ------------------------------------------- */
/* CẬP NHẬT CSS cho Khối Tài Liệu Đính Kèm */
/* ------------------------------------------- */
.attachment-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.attachment-link-container {
  display: inline-flex; /* Giữ flex để căn chỉnh các item bên trong */
  align-items: center;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
  line-height: 1;
}

.attachment-link-container:hover {
  background-color: #e9f5ff;
  border-color: #0d6efd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.attachment-link-container a {
  font-size: 14px;
  color: #009ae5;
  text-decoration: none;
  font-weight: normal;
  display: inline-block; /* Thay đổi từ flex sang inline-block */
  white-space: nowrap; /* Ngăn không cho text xuống dòng */
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-link-container a i {
  margin-right: 8px;
  font-size: 14px;
  color: #747474;
  vertical-align: middle; /* Căn icon theo chiều dọc với text */
}

.y-kien-vbqppl-block {
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  padding: 12px 20px 8px 20px;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 20px;
}

.y-kien-vbqppl-block .news-pagination-footer {
  margin-top: 0;
  padding-top: 8px;
  border-top: none;
  margin-right: -6px;
}

/* Tiêu đề khối */
.y-kien-vbqppl-header {
  background-color: #0d6efd;
  /* Màu xanh chủ đạo */
  color: #fff;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.y-kien-vbqppl-header a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.y-kien-vbqppl-header i {
  margin-left: 5px;
  font-size: 14px;
}

/* Nội dung danh sách */
.y-kien-vbqppl-item > div {
  padding: 6px 8px;
  border-left: solid 1px rgba(0, 0, 0, 0.03);
  align-items: center;
}

.y-kien-vbqppl-item > div:first-child {
  border-left: none;
}

.y-kien-vbqppl-item {
  display: flex;
  border-radius: 6px;
  border: solid 1px rgba(0, 0, 0, 0.03);
  margin-bottom: 4px;
  overflow: hidden;
  text-align: justify;
}

.y-kien-vbqppl-item:nth-child(even) {
  background-color: #fbfbfb;
}

.y-kien-vbqppl-item:last-child {
  border-bottom: none;
}

/* Phần nội dung chính (mô tả dự thảo) */
.item-content {
  flex-grow: 1;
  padding-right: 10px;
}

.item-content p {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 5px;
}

/* Thời gian và Tải xuống */
.item-meta {
  color: #747474;
  white-space: nowrap;
  font-weight: 500;
}

.item-meta strong {
  font-weight: 600;
  margin-right: 5px;
}

.item-feedback {
  width: 30px;
  text-align: right;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.item-feedback i {
  font-size: 22px;
}

.item-feedback {
  background: #fbfbfb;
  color: #cecece;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 !important;
}

.item-feedback a {
  color: inherit;
  text-decoration: none;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.y-kien-vbqppl-item:hover {
  background: #eff9ff;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

.y-kien-vbqppl-item:hover .item-feedback {
  background: #dcf1fd;
  color: #2a78e3;
}

.item-feedback a:hover {
  background-color: #2a78e3 !important;
  color: #fff !important;
}

.item-meta span {
  color: #2d2d2d;
  font-weight: normal;
}

.item-attachments {
  margin-top: 4px;
}

.item-attachments .attachment-block > h5 {
  display: none;
}

.item-attachments .attachment-block {
  display: flex;
  justify-content: right;
  gap: 8px;
}

.item-attachments .attachment-block .attachment-link-container {
  background: #fff;
  padding: 2px 4px;
  margin-bottom: 0;
}

.item-attachments .attachment-block .attachment-link-container + .attachment-link-container a i {
  display: none;
}

.item-content a {
  color: #2d2d2d;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .y-kien-vbqppl-block {
    box-shadow: unset;
    padding-left: 0;
    padding-right: 0;
  }
  .y-kien-vbqppl-item {
    flex-wrap: wrap;
    padding-right: 42px;
    position: relative;
  }
  .item-content a {
    line-height: 1.2;
    display: inline-block;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-content a strong {
    font-weight: 500;
  }
  .y-kien-vbqppl-item > .item-meta {
    flex: auto !important;
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: right;
    padding: 0 8px;
  }
  .y-kien-vbqppl-item > .item-meta br {
    display: none;
  }
  .y-kien-vbqppl-item > div.item-content {
    padding-bottom: 0;
    min-height: 42px;
  }
  .item-feedback {
    position: absolute;
    right: 0;
    width: 42px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
  }
  .item-feedback a {
    height: auto;
    color: #004d99;
  }
  .item-feedback i {
    font-size: 18px;
  }
}
/* --- 1. Khung bao ngoài --- */
.right-sidebar-block {
  margin-bottom: 1rem; /* Sử dụng đơn vị rem của Clay */
  border: 1px solid #eaeaea; /* Màu viền chuẩn của Clay */
  border-radius: 8px; /* Bo góc chuẩn của Clay */
  background-color: #fff;
  overflow: hidden;
  margin-top: 16px;
}

/* --- 2. Tiêu đề khối --- */
.sidebar-block-header {
  color: #fff;
  padding: 5px 8px; /* Căn chỉnh padding */
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  min-height: 34px;
}

/* Tiêu đề có nền xanh (mặc định) */
.sidebar-block-header.header-blue {
  background-color: #195a94; /* Màu xanh chính của Clay */
  background-image: url("../images/bgtieudexanh.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

/* Nút "Xem thêm" trong tiêu đề */
.sidebar-block-header .view-more {
  font-size: 0.875rem; /* 14px */
  font-weight: normal;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem; /* Khoảng cách giữa chữ và icon */
}

/* Nội dung danh sách thông báo */
.notification-list-content {
  height: 190px;
  overflow-y: auto; /* CHO PHÉP CUỘN */
  padding: 0;
  position: relative;
  /* --- CẬP NHẬT CHO THANH CUỘN MƯỢT MÀ --- */
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Firefox */
.notification-list-content:hover {
  scrollbar-color: var(--gray-500) transparent; /* Màu thumb của Clay */
}

/* Cho Chrome, Safari, Opera: làm thanh cuộn trong suốt mặc định */
.notification-list-content::-webkit-scrollbar {
  width: 8px;
}

.notification-list-content::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list-content::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* Khi hover, hiện thanh cuộn cho Chrome, Safari, Opera */
.notification-list-content:hover::-webkit-scrollbar-thumb {
  background-color: var(--gray-500); /* Màu thumb của Clay */
}

.sidebar-block-content {
  padding-top: 4px;
  padding-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.sidebar-block-content:before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  display: block;
  box-shadow: 0 6px 8px 4px #ffffff;
  height: 10px;
  background: #fff;
  z-index: 11;
}

.notification-list-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Thêm hiệu ứng chuyển động cho opacity để làm mờ */
  transition: opacity 0.4s ease-in-out;
}

/* Class để làm mờ nội dung */
.notification-list-content ul.is-fading {
  opacity: 0;
}

.notification-list-content ul li {
  padding: 6px 15px;
  border-bottom: 1px solid #eee;
  min-height: 63px;
  position: relative;
  align-items: center;
  display: flex;
}

.notification-list-content ul li:last-child {
  border-bottom: none;
}

.notification-list-content ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  text-align: justify;
  /* Việc cắt ngắn văn bản sẽ được xử lý bằng thongbao.js */
}

.notification-list-content ul li a:hover {
  color: #195a94; /* Sử dụng màu primary của Clay */
}

.text-hover {
  display: none; /* Ẩn đi mặc định */
  position: absolute;
  left: 0; /* Căn lề trái giống padding của li */
  right: 0; /* Căn lề phải */
  top: 50%; /* Đặt ở giữa theo chiều dọc */
  transform: translateY(-50%); /* Căn giữa chính xác */
  background-color: #1a6fe2;
  color: #fff; /* Màu chữ khi hover */
  padding: 6px 15px; /* Padding dọc giống li */
  z-index: 10;
  text-align: justify;
  border-radius: 8px;
}
.text-hover > span {
  display: block;
  max-height: 100px;
  overflow: auto;
  margin-right: -12px;
  padding-right: 6px;
}

.notification-list-content ul li:hover .text-hover {
  display: block;
}

.tinhinhanh .news-card-summary {
  display: none !important;
}
.tinhinhanh .news-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.tinhinhanh .news-card-item {
  position: relative;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
}
.tinhinhanh .news-card-item img {
  min-width: 100%;
  min-height: 220px;
  width: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  margin: 0 !important;
}
.tinhinhanh .news-card-date {
  background: #dfdbd6;
  width: auto;
  display: inline-flex !important;
  min-width: unset;
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  line-height: 1;
  border-radius: 4px;
  align-items: center;
}
.tinhinhanh .news-card-content,
.tinhinhanh .news-card-content span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: end;
  display: flex;
  line-height: 1.2;
  font-weight: normal;
}
.tinhinhanh .news-card-content {
  top: 0;
}
.tinhinhanh .news-card-content span {
  padding-top: 25px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 30px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4) 50%, transparent);
  transform: translateY(100%);
  transition: all 300ms;
  opacity: 0;
}
.tinhinhanh .news-card-date .count-view {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.tinhinhanh .news-card-date .count-view .icon {
  margin-right: 6px;
}
.tinhinhanh .news-card-content.hover > span {
  padding-bottom: 33px;
}
.tinhinhanh .news-card-content.hover span,
.tinhinhanh .news-card-content:hover span {
  transform: translateY(0);
  opacity: 1;
}
.tinhinhanh .news-card-item .play-icon.position-absolute {
  display: none !important;
}
.tinhinhanh .news-card-item:hover .play-icon.position-absolute {
  display: flex !important;
}
.tinhinhanh .news-card-content:hover + .news-card-date {
  background: #2c94f5;
  color: #fff;
}

.sidebar-block-header.header-blue {
  text-transform: uppercase;
}
.sidebar-block-header.header-blue a {
  text-transform: none;
}

.chon-giaodien {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.chon-giaodien .radio + img {
  width: 100% !important;
}
.chon-giaodien > .col-md-3 {
  flex: 0 0 calc(20% - 16px) !important;
  max-width: calc(20% - 16px) !important;
  border: solid 1px rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px;
  margin-right: 16px !important;
  padding-top: 6px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.chon-giaodien .col-md-3 {
  margin-bottom: 16px !important;
}
.chon-giaodien hr {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

html:not(#__):not(#___) .cadmin .formbt10px .form-group {
  margin-bottom: 10px;
}
html:not(#__):not(#___) .cadmin .formbt10px .form-group .toggle-switch {
  display: flex;
  align-items: center;
}
html:not(#__):not(#___) .cadmin .formbt10px .form-group .toggle-switch .toggle-switch-label {
  display: inline-block !important;
  margin: 0;
}

.formbt10px hr {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.formbt10px .featured-news-block {
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15) !important;
  padding: 16px !important;
  border-radius: 8px !important;
}

.tree-scroll {
  border: solid 1px #dee2e6 !important;
  padding-right: 2px !important;
  padding-left: 2px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 8px !important;
}
.tree-scroll .tree-container {
  max-height: 565px !important;
  overflow-x: hidden;
  overflow-y: auto;
  padding-left: 10px !important;
  padding-right: 2px !important;
}

.results-table-container .article-header-toolbar {
  border-bottom: none;
  margin-bottom: 6px;
}

.results-table-container .news-pagination-footer {
  padding-top: 6px;
  margin-top: 0;
  border-top: none;
  margin-right: -6px;
}

.custom-table .col-stt {
  text-align: center;
}

.custom-table .col-ngaybanhanh {
  text-align: center;
}

.custom-table .col-sovanban {
  text-align: center;
  font-weight: 600;
}

.results-table-container {
  background-color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(25, 90, 148, 0.15);
  margin-bottom: 16px;
}

.custom-table {
  margin-bottom: 0;
  border-collapse: collapse; /* Gộp các đường viền lại */
  width: 100%;
}

.custom-table thead th {
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  padding: 0 0.5rem; /* 12px 10px */
  text-align: center;
  vertical-align: middle;
  height: 38px;
  background: #f0efef;
  border: 1px solid #dee2e6; /* Thêm viền cho header */
  color: #2d2d2d;
}

.custom-table tbody td {
  font-size: 0.8125rem; /* 13px */
  padding: 6px 0.5rem; /* 12px 10px */
  vertical-align: middle;
  border: 1px solid #dee2e6; /* Thay đổi từ border-top thành border */
  height: 38px;
  line-height: 1.2;
}

.custom-table tbody tr:first-child td {
  border-top: none; /* Bỏ viền trên của dòng đầu tiên trong tbody để không bị đè lên viền dưới của thead */
}

.custom-table tbody tr:hover {
  background-color: #f8f9fa;
}

.custom-table .col-download {
  width: 130px;
  text-align: center;
}

.custom-table .download-link i {
  font-size: 1.125rem; /* 18px */
}

.custom-table .document-link {
  color: #0277e0;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  table.table.custom-table {
    min-width: 1000px;
  }
  .tab-content {
    overflow: auto;
    max-width: 100vw;
  }
  .results-table-container {
    box-shadow: unset;
    padding-left: 0;
    padding-right: 0;
    border: none;
  }
}
.search-block {
  padding-bottom: 20px;
}

.search-block .news-card-header {
  font-size: 16px;
  font-weight: 700;
  color: #195a94;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.search-block .news-card-header,
.search-block form {
  padding-left: 12px;
  padding-right: 12px;
}

/* Nút Tìm kiếm */
.search-block .btn-primary {
  font-weight: 600;
  margin-top: 0.5rem;
  background-color: #2a78e3;
  width: 140px;
  border-radius: 6px;
}

/* Container để căn giữa nút tìm kiếm */
.search-button-container {
  text-align: center;
  margin-top: 1rem; /* Thêm khoảng cách với trường Từ khóa */
}

@media (max-width: 991.98px) {
  .main-content-row .col-3,
  .sidebar-col {
    order: 1;
    padding-top: 36px;
  }
  .tintuc-content-col {
    order: 2;
    position: unset;
  }
  .article-breadcrumb {
    position: absolute;
    top: 100px;
  }
  .search-block .news-card-header {
    padding-bottom: 5px;
  }
  .search-block .news-card-header,
  .search-block form {
    padding-left: 0;
    padding-right: 0;
  }
}
.date-picker + .input-group-addon {
  padding: 2px 6px 1px 6px;
  pointer-events: none;
}

.trang-timkiem {
  /* =========================================== */
  /* CSS TỔNG HỢP CHO DANH SÁCH BÀI VIẾT (TÌM KIẾM) */
  /* =========================================== */
  /* Khối từng bài viết (item) */
  /* Khối chứa ảnh và ngày giờ */
  /* Ảnh đại diện */
  /* Ngày giờ (đặt góc dưới phải ảnh) */
  /* Khối nội dung: Tiêu đề và Tóm tắt */
  /* Tiêu đề bài viết */
  /* Tóm tắt/Mô tả (Giới hạn 2 dòng) */
}
.trang-timkiem .article-item {
  display: flex;
  align-items: stretch;
  padding: 8px 10px;
  border-bottom: 1px solid #eaeaea;
  background-color: #fff;
  transition: background-color 0.2s;
}
.trang-timkiem .article-item:hover {
  background-color: #f9f9f9;
}
.trang-timkiem .item-media {
  flex-shrink: 0;
  /* Không co lại */
  position: relative;
  margin-right: 10px;
}
.trang-timkiem .item-media .thumb-img {
  width: 130px;
  /* Kích thước ảnh nhỏ */
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.trang-timkiem .item-media .date-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 0 0 4px 0;
  white-space: nowrap;
}
.trang-timkiem .item-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 10px;
}
.trang-timkiem .item-content-wrapper .article-title {
  font-size: 15px !important;
}
.trang-timkiem .item-content-wrapper .article-title a {
  font-size: 15px;
  font-weight: bold;
  /* Màu xanh đậm */
  text-decoration: none;
  color: #2d2d2d;
  transition: color 0.2s;
}
.trang-timkiem .item-content-wrapper .article-title a:hover {
  color: #d9534f;
  /* Màu đỏ khi hover */
}
.trang-timkiem .item-content-wrapper .article-summary {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  /* Giới hạn hiển thị 2 dòng và thêm dấu 3 chấm */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.trang-timkiem .ngayxuatban {
  width: 170px;
  min-width: 170px;
  align-items: center;
  display: flex;
  justify-content: center;
  border-left: solid 1px #eaeaea;
}

.news-card-block .play-icon.position-absolute {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  font-size: 40px;
}

.tintuc .featured-news-block.video-block {
  margin-bottom: 12px;
}
.tintuc .featured-news-block.video-block .play-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  background: rgba(25, 90, 148, 0.3);
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.tintuc .featured-news-block.video-block .sub-news-item a {
  position: relative;
}
.tintuc .featured-news-block.video-block .sub-news-item .sub-news-img a {
  padding: 0;
  width: 100px;
  height: 70px;
}
.tintuc .featured-news-block.video-block .carousel-inner .play-icon-overlay {
  font-size: 66px;
}
.tintuc .featured-news-block.video-block .sub-news-list {
  border: solid 1px #eaeaea;
  padding: 0;
  border-radius: 8px;
  margin-top: 12px;
  background: #f8f8f8;
  margin-bottom: 6px;
}
.tintuc .featured-news-block.video-block .sub-news-list .sub-news-item {
  flex-wrap: wrap;
  border-left: solid 1px #eaeaea;
  padding: 10px 10px 5px 10px;
}
.tintuc .featured-news-block.video-block .sub-news-list .sub-news-item:first-child {
  border-left: none;
}
.tintuc .featured-news-block.video-block .sub-news-list .sub-news-item a {
  padding: 0 2px;
}
.tintuc .featured-news-block.video-block .sub-news-img {
  width: 100%;
}
.tintuc .featured-news-block.video-block .sub-news-item .sub-news-img a {
  padding: 0;
  width: 100%;
  height: 196px;
}
.tintuc .featured-news-block.video-block .sub-news-item img {
  max-width: unset;
  height: 100%;
  width: 100%;
}

.tinhinhanh .news-card-content .limit-text-3-lines,
.limit-text-3-lines {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 !important;
  position: unset !important;
  background: transparent !important;
}

.article-page-container .article-body .news-card-block.tinhinhanh {
  box-shadow: unset;
  padding: 0;
}

.carousel-caption a:hover {
  color: #c8dbff;
}

.notification-list-content > a {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.notification-list-content > a > img {
  width: 100%;
  height: 100%;
  display: block;
}

.xemnhieu .notification-list-content {
  height: auto;
}
.xemnhieu .news-card-date {
  display: flex;
  align-items: center;
}
.xemnhieu .count-view {
  padding-left: 6px;
}
.xemnhieu .icon.icon-eye {
  margin-top: -2px;
}
.xemnhieu .notification-list-content ul li div {
  width: 100%;
}

a.titleVideo {
  color: #2d2d2d;
}
a.titleVideo:hover {
  color: #195a94;
}

.tintuc .carousel-caption .news-card-date {
  display: inline;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
}
.tintuc .carousel-caption .news-card-date .count-view {
  display: inline;
  padding-left: 6px;
}

.tintuc .news-card-date {
  align-items: center;
}
.tintuc .news-card-date .count-view {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.tintuc .news-card-date .count-view .icon {
  margin-right: 6px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px); /* Đẩy xuống 40px */
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Hiệu ứng trồi lên mượt mà */
  will-change: opacity, transform; /* Tối ưu hiệu năng render */
}

.scroll-reveal.scrolled {
  opacity: 1;
  transform: translateY(0); /* Về vị trí cũ */
}

.scroll-reveal-delay-1 {
  transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
  transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
  transition-delay: 0.3s;
}