.item-new {
  background-color: #ffff;
  padding: 5px;
  margin-bottom: 10px;
  transition: all 0.5s ease;
}
.item-new h3 {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 21px;
  font-weight: 600;
  padding-left: 10px;
  padding-right: 10px;
  height: 42px;
  display: flex;
  align-items: center;
}
.item-new h3 a {
  color: #000;
}
.item-new h3 a:hover {
  color: #27c350;
  text-decoration: none;
}
.item-new .mota {
  padding-left: 10px;
  padding-right: 10px;
  height: 60px;
  overflow: hidden;
  margin-bottom: 10px;
}
.item-new:hover {
  box-shadow: 1px 1px 10px 1px #69686880;
}

/* --- THIẾT KẾ CARD CATALOGUE MỚI (NỀN TRẮNG, CÓ VIỀN, BO GÓC) --- */
.catalogue-list .item-new {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}
.catalogue-list .item-new h3 {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 600;
  padding: 10px 10px 4px 10px;
  height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
}
.catalogue-list .item-new h3 a {
  color: #1e293b;
  transition: color 0.3s ease;
}
.catalogue-list .item-new h3 a:hover {
  color: #27c350;
  text-decoration: none;
}
.catalogue-list .item-new .mota {
  padding: 0 10px 10px 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  height: 60px;
  overflow: hidden;
  margin: 0;
  text-align: justify;
}
.catalogue-list .item-new:hover {
  transform: translateY(-6px);
  border-color: rgba(39, 195, 80, 0.4);
  box-shadow: 0 12px 30px rgba(39, 195, 80, 0.12);
}

/* --- THIẾT KẾ CARD TIN TỨC MỚI (NỀN XÁM NHẸ, HOVER TRẮNG NỔI BẬT) --- */
.news-list .item-new {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}
.news-list .item-new h3 {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 600;
  padding: 8px 10px 4px 10px;
  height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
}
.news-list .item-new h3 a {
  color: #1e293b;
  transition: color 0.3s ease;
}
.news-list .item-new h3 a:hover {
  color: #27c350;
  text-decoration: none;
}
.news-list .item-new .mota {
  padding: 0 10px 10px 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  height: 60px;
  overflow: hidden;
  margin: 0;
  text-align: justify;
}
.news-list .item-new:hover {
  background-color: #ffffff;
  transform: translateY(-6px);
  border-color: rgba(39, 195, 80, 0.4);
  box-shadow: 0 12px 25px rgba(39, 195, 80, 0.12);
}
.title-tin {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.ngaydang {
  font-size: 14px;
  color: #6d6b6b;
  font-style: italic;
}
.tinlienquan a {
  line-height: 18px;
  display: block;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
}
.tinlienquan a:hover {
  color: #00ca00;
  text-decoration: none;
}
.item-new-right {
  margin-bottom: 10px;
}
.new-right {
  background-color: #e7e4e4;
  padding: 5px;
  margin-top: 10px;
  border-top: 2px solid #27c350;
}
.item-new-right h3 {
  font-size: 14px;
  margin-top: 5px;
  line-height: 21px;
  font-weight: 600;
}
.item-new-right h3 a {
  color: #000;
}
.item-new-right h3 a:hover {
  color: #27c350;
  text-decoration: none;
}
.chitiettin table {
  max-width: 100% !important;
  width: 100% !important;
}
.chitiettin img {
  max-width: 100% !important;
  height: auto !important;
}
.item-new > a {
  display: block;
  height: 200px;
}
.item-new > a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.catalogue-list .item-new > a {
  display: block;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
.catalogue-list .item-new > a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.catalogue-list .item-new:hover > a img {
  transform: scale(1.06);
}
.news-list .item-new > a {
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
.news-list .item-new > a img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.news-list .item-new:hover > a img {
  transform: scale(1.06);
}
/* 1. Khung chứa toàn bộ nội dung bài viết */
.content-detail-post {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: #333333 !important; /* Đổi sang màu xám đen đậm để dịu mắt, rõ chữ */
  padding: 15px 0 !important;
  text-align: justify !important;
}

/* 2. Định dạng các tiêu đề H2 (Các mục lớn 1, 2, 3...) */
.content-detail-post h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 30px !important;
  margin-bottom: 18px !important;
  padding-left: 12px !important;
  border-left: 4px solid #1cb842 !important; /* Thanh gạch đứng màu xanh lá thương hiệu */
  line-height: 1.4 !important;
}

/* 3. Tối ưu khoảng cách các đoạn văn */
.content-detail-post p {
  margin-bottom: 18px !important;
  color: #333333 !important; /* Ép toàn bộ chữ trong thẻ p về màu tối dễ đọc */
}

/* 4. SỬA TRIỆT ĐỂ LỖI CHỮ XANH LÁ GÂY ĐAU MẮT TRONG DANH SÁCH */
.content-detail-post ul {
  padding-left: 20px !important;
  margin-bottom: 18px !important;
}
.content-detail-post ul li {
  margin-bottom: 10px !important; /* Tăng khoảng cách giữa các dòng cho thoáng */
  list-style-type: none !important; /* Tạm ẩn dấu chấm thô mặc định */
  position: relative !important;
  padding-left: 15px !important;
  color: #333333 !important; /* Ép chữ trong danh sách về màu tối */
}

/* Tạo dấu chấm vuông nhỏ màu xanh lá tinh tế bằng :before */
.content-detail-post ul li::before {
  content: "■" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0px !important;
  color: #1cb842 !important; /* Chỉ có dấu chấm mang màu xanh lá điểm nhấn */
  font-size: 10px !important;
}

/* Ép tất cả các thẻ định dạng chữ bên trong li (như span, font) phải về màu tối */
.content-detail-post ul li span,
.content-detail-post ul li font,
.content-detail-post ul li strong {
  color: #333333 !important;
}

/* Giữ nguyên độ nổi bật cho các cụm từ bôi đậm tiêu đề nhỏ */
.content-detail-post ul li strong:first-child {
  color: #111111 !important;
  font-weight: 700 !important;
}

/* 5. KHUNG MỤC LỤC SANG TRỌNG */
.content-detail-post table:first-of-type,
.content-detail-post div[style*="border"] {
  background-color: #f8fdf9 !important; /* Nền xanh lá pastel nhẹ nhàng */
  border: 1px solid #e2f5e7 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin: 25px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
}

.content-detail-post table:first-of-type tr:first-child td,
.content-detail-post div[style*="border"] > strong:first-child {
  color: #1cb842 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
}

.content-detail-post table a,
.content-detail-post div[style*="border"] a {
  color: #444444 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: 0.2s !important;
}

.content-detail-post table a:hover,
.content-detail-post div[style*="border"] a:hover {
  color: #1cb842 !important;
  padding-left: 5px !important;
}
/* ==========================================================================
   CHỈ TINH CHỈNH KHUNG NGOẠI HÌNH BÊN NGOÀI BÀI VIẾT (GIỮ MÀU CHỮ MẶC ĐỊNH)
   ========================================================================== */

/* 1. Cấu trúc khoảng cách chung của bài viết */
.content-detail-post {
  line-height: 1.8 !important; /* Giúp các dòng chữ thoáng, không bị dính vào nhau */
  padding: 15px 0 !important;
}

/* 2. Tạo thanh gạch đứng điểm nhấn đầu mục H2 */
.content-detail-post h2 {
  margin-top: 30px !important;
  margin-bottom: 18px !important;
  padding-left: 12px !important;
  border-left: 4px solid #1cb842 !important; /* Thanh dọc chuẩn màu thương hiệu */
  line-height: 1.4 !important;
}

/* 3. Khoảng cách giữa các đoạn văn */
.content-detail-post p {
  margin-bottom: 18px !important;
}

/* 4. Tối ưu khoảng cách và hàng lối của danh sách ul li */
.content-detail-post ul {
  padding-left: 20px !important;
  margin-bottom: 18px !important;
}
.content-detail-post ul li {
  margin-bottom: 10px !important; /* Khoảng cách giữa các dòng thoáng hơn */
}

/* 5. "LỘT XÁC" KHUNG MỤC LỤC BÊN NGOÀI TRÔNG SANG TRỌNG */
.content-detail-post table:first-of-type,
.content-detail-post div[style*="border"] {
  background-color: #f8fdf9 !important; /* Màu nền xanh lá pastel cực nhẹ và dịu */
  border: 1px solid #e2f5e7 !important; /* Đường viền mảnh tiệp màu nền */
  border-radius: 8px !important; /* Bo góc tròn hiện đại */
  padding: 20px !important;
  margin: 25px 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important; /* Đổ bóng đổ nhẹ tinh tế */
  width: 100% !important;
}

/* Chỉnh chữ tiêu đề "MỤC LỤC" */
.content-detail-post table:first-of-type tr:first-child td,
.content-detail-post div[style*="border"] > strong:first-child {
  color: #1cb842 !important; /* Ép riêng chữ tiêu đề mục lục lên màu thương hiệu */
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
}

/* Hiệu ứng dịch chuyển nhẹ khi di chuột vào link mục lục */
.content-detail-post table a,
.content-detail-post div[style*="border"] a {
  text-decoration: none !important;
  transition: 0.2s !important;
  display: inline-block !important;
}
.content-detail-post table a:hover,
.content-detail-post div[style*="border"] a:hover {
  color: #1cb842 !important; /* Chỉ khi rê chuột vào mới đổi sang màu xanh lá */
  padding-left: 5px !important; /* Nhích nhẹ sang phải tạo hiệu ứng động mượt mà */
}
