/* =========================================================
   CARD TRẮC NGHIỆM ARCHIVE - BẢN 3 CỘT HOÀN CHỈNH
   Bỏ thời gian, icon lưu, icon tim
   ========================================================= */

/* Nền trang */
body.category .blog-archive {
  background: #fff !important;
}

/* Container archive */
body.category .archive-page-header,
body.category .blog-archive > .row,
body.category .blog-archive > .row > .large-10,
body.category .blog-archive > .row > .large-12 {
  width: 100% !important;
  max-width: 1660px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Header category */
body.category .archive-page-header {
  margin-bottom: 24px !important;
  padding: 0 16px !important;
}

body.category .archive-page-header .page-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  color: #263442 !important;
  font-size: 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-transform: none !important;
}

body.category .archive-page-header .page-title:before {
  content: "" !important;
  width: 4px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #24d0c4 !important;
  flex: 0 0 auto !important;
}

body.category .archive-page-header .page-title span {
  color: inherit !important;
  font-size: 22px !important;
}

body.category .archive-page-header .page-title span:before {
  content: "Đề trắc nghiệm " !important;
}

body.category .archive-page-header .taxonomy-description {
  color: #6b7280 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

/* Grid danh sách bài - 3 cột desktop */
body.category #post-list > .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.category #post-list > .row:before,
body.category #post-list > .row:after {
  display: none !important;
}

body.category #post-list .post-item {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
}

/* Card */
body.category #post-list .post-item .col-inner,
body.category #post-list .post-item .box,
body.category #post-list .post-item .box-blog-post,
body.category #post-list .post-item .box-text {
  height: 100% !important;
}

body.category #post-list .post-item .box-text {
  min-height: 205px !important;
  padding: 20px 22px !important;
  border: 1px solid #dfe4ea !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  overflow: hidden !important;
}

/* Bên trong card */
body.category #post-list .post-item .box-text-inner,
body.category #post-list .post-item .blog-post-inner {
  display: flex !important;
  flex-direction: column !important;
  min-height: 165px !important;
  height: 100% !important;
  width: 100% !important;
  text-align: left !important;
}

/* Ẩn ảnh, mô tả, divider, meta mặc định */
body.category #post-list .post-item .box-image,
body.category #post-list .post-item .image-cover,
body.category #post-list .post-item .from_the_blog_excerpt,
body.category #post-list .post-item .post-meta,
body.category #post-list .post-item .is-divider {
  display: none !important;
}

/* Tiêu đề */
body.category #post-list .post-item h5.post-title,
body.category #post-list .post-item h5.post-title.is-large {
  margin: 0 0 16px !important;
  padding: 0 !important;
  min-height: auto !important;
  text-align: left !important;
}

body.category #post-list .post-item h5.post-title a,
body.category #post-list .post-item h5.post-title.is-large a,
body.category #post-list .post-item .post-title a {
  display: block !important;
  color: #111820 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  text-decoration: none !important;
}

/* Category */
.cqr-archive-category {
  margin: 0 0 16px !important;
  color: #6b7280 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

/* Dòng số câu hỏi */
.cqr-archive-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  color: #6b7280 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.cqr-archive-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

/* Icon dấu hỏi */
.cqr-archive-dot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  border-radius: 50% !important;
  background: #6b7280 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Khu vực nút */
.cqr-archive-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  margin-top: auto !important;
}

/* Nút Làm đề */
.cqr-archive-start {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 130px !important;
  min-height: 38px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  background: #22c55e !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.cqr-archive-start:hover {
  background: #16a34a !important;
  color: #fff !important;
}

/* Bỏ 50 phút, icon lưu, icon tim */
.cqr-archive-meta:after,
.cqr-archive-actions:before,
.cqr-archive-actions:after {
  content: none !important;
  display: none !important;
}

/* Ẩn nếu theme/plugin có render thật */
.cqr-archive-time,
.cqr-archive-save,
.cqr-archive-bookmark,
.cqr-archive-heart,
.cqr-archive-favorite,
.cqr-archive-actions .icon-heart,
.cqr-archive-actions .icon-bookmark,
.cqr-archive-actions svg,
.cqr-archive-actions i:not(.cqr-archive-dot) {
  display: none !important;
}

/* Pagination */
body.category .nav-pagination {
  margin: 34px 0 18px !important;
}

/* Màn hình vừa: vẫn 3 cột nhưng nhỏ hơn */
@media (max-width: 1280px) {
  body.category #post-list > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  body.category #post-list .post-item .box-text {
    min-height: 200px !important;
    padding: 18px 20px !important;
  }

  body.category #post-list .post-item h5.post-title a,
  body.category #post-list .post-item h5.post-title.is-large a,
  body.category #post-list .post-item .post-title a {
    font-size: 17px !important;
    line-height: 1.38 !important;
  }

  .cqr-archive-category,
  .cqr-archive-meta {
    font-size: 14px !important;
  }

  .cqr-archive-start {
    min-width: 120px !important;
    min-height: 36px !important;
    font-size: 14px !important;
  }
}

/* Tablet: 2 cột */
@media (max-width: 1024px) {
  body.category #post-list > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  body.category #post-list .post-item .box-text {
    min-height: 205px !important;
  }

  body.category #post-list .post-item h5.post-title a,
  body.category #post-list .post-item h5.post-title.is-large a,
  body.category #post-list .post-item .post-title a {
    font-size: 18px !important;
  }

  .cqr-archive-category,
  .cqr-archive-meta {
    font-size: 15px !important;
  }
}

/* Mobile: 1 cột */
@media (max-width: 768px) {
  body.category #post-list > .row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.category #post-list .post-item .box-text {
    min-height: 190px !important;
    padding: 18px 18px !important;
    border-radius: 13px !important;
  }

  body.category #post-list .post-item .box-text-inner,
  body.category #post-list .post-item .blog-post-inner {
    min-height: 150px !important;
  }

  body.category #post-list .post-item h5.post-title,
  body.category #post-list .post-item h5.post-title.is-large {
    margin-bottom: 14px !important;
  }

  body.category #post-list .post-item h5.post-title a,
  body.category #post-list .post-item h5.post-title.is-large a,
  body.category #post-list .post-item .post-title a {
    font-size: 17px !important;
    line-height: 1.36 !important;
  }

  .cqr-archive-category {
    margin-bottom: 14px !important;
    font-size: 14px !important;
  }

  .cqr-archive-meta {
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }

  .cqr-archive-dot {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    font-size: 10px !important;
  }

  .cqr-archive-start {
    min-width: 118px !important;
    min-height: 36px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }
}

/* Mobile rất nhỏ */
@media (max-width: 390px) {
  body.category #post-list .post-item .box-text {
    min-height: 180px !important;
    padding: 16px 16px !important;
  }

  body.category #post-list .post-item h5.post-title a,
  body.category #post-list .post-item h5.post-title.is-large a,
  body.category #post-list .post-item .post-title a {
    font-size: 16px !important;
  }

  .cqr-archive-category,
  .cqr-archive-meta {
    font-size: 13px !important;
  }

  .cqr-archive-start {
    min-width: 110px !important;
    min-height: 34px !important;
    font-size: 13px !important;
  }
}