/* ADCC category component: readable featured categories and touch-safe mobile rail. */
body.home .adcc-personalized-featured-categories .adcc-category-card strong {
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

body.home .adcc-personalized-featured-categories .adcc-category-card small {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

@media (max-width: 767px) {
  body.home .adcc-personalized-featured-categories .adcc-category-grid {
    grid-template-rows: repeat(2, 170px) !important;
    touch-action: pan-x pan-y !important;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-card {
    height: 170px !important;
    min-height: 170px !important;
    padding-bottom: 13px !important;
    padding-top: 13px !important;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-card strong {
    font-size: 16px !important;
    min-height: 43px;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-card small {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   BIÊN TẬP TRANG LƯU TRỮ VÀ DANH MỤC BÀI VIẾT (EDITIORIAL POST ARCHIVES)
   ========================================================================== */

/* Bố cục danh sách bài viết tối giản, loại bỏ hiệu ứng đổ bóng viền giống sản phẩm */
body.archive.category .post-item .box,
body.blog .post-item .box,
body.archive.tag .post-item .box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eef2f5 !important;
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

/* Xóa border-bottom của bài viết cuối cùng trong danh sách */
body.archive.category .post-item:last-child .box,
body.blog .post-item:last-child .box,
body.archive.tag .post-item:last-child .box {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Bo góc nhẹ cho ảnh đại diện bài viết */
body.archive.category .post-item .box-image,
body.blog .post-item .box-image,
body.archive.tag .post-item .box-image {
  border-radius: 12px !important;
  overflow: hidden !important;
  flex: 0 0 280px !important;
  max-width: 280px !important;
  margin-right: 24px !important;
}

/* Căn chỉnh thông tin bài viết thoáng và dễ đọc */
body.archive.category .post-item .box-text,
body.blog .post-item .box-text,
body.archive.tag .post-item .box-text {
  padding: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

/* Định dạng tiêu đề bài viết */
body.archive.category .post-item .box-text h5,
body.blog .post-item .box-text h5,
body.archive.tag .post-item .box-text h5 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  text-align: left !important;
}

body.archive.category .post-item .box-text h5 a,
body.blog .post-item .box-text h5 a,
body.archive.tag .post-item .box-text h5 a {
  color: #0e3027 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.archive.category .post-item .box-text h5 a:hover,
body.blog .post-item .box-text h5 a:hover,
body.archive.tag .post-item .box-text h5 a:hover {
  color: #10b981 !important;
}

/* Định dạng tóm tắt bài viết */
body.archive.category .post-item .box-text p.from_the_blog_excerpt,
body.blog .post-item .box-text p.from_the_blog_excerpt,
body.archive.tag .post-item .box-text p.from_the_blog_excerpt {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin-bottom: 12px !important;
  text-align: left !important;
}

/* Định dạng ngày đăng bài viết */
body.archive.category .post-item .box-text .post-date,
body.blog .post-item .box-text .post-date,
body.archive.tag .post-item .box-text .post-date {
  font-size: 13px !important;
  color: #9ca3af !important;
  text-transform: none !important;
  display: block !important;
}

/* Định dạng giao diện trên thiết bị di động */
@media (max-width: 767px) {
  body.archive.category .post-item .box,
  body.blog .post-item .box,
  body.archive.tag .post-item .box {
    flex-direction: column !important;
    align-items: stretch !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
  }

  body.archive.category .post-item .box-image,
  body.blog .post-item .box-image,
  body.archive.tag .post-item .box-image {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
  }

  body.archive.category .post-item .box-text h5,
  body.blog .post-item .box-text h5,
  body.archive.tag .post-item .box-text h5 {
    font-size: 18px !important;
  }
}
