/* public/css/bai-viet-kieu.css — khu «Bài viết mới» kiểu 1 Tạp chí (việc 39 · phiếu 0231).
 *
 * Tệp MỚI, nạp bằng @once trong partials/home/_bai-viet-kieu-1.blade.php — trang nào
 * không dùng kiểu này thì không tải. Không nối vào the-bai.css (tệp ấy dùng chung với
 * trang Blog 🔒; tách ra để sửa kiểu không chạm thẻ của trang Blog). Thẻ ảnh/chữ
 * (.bv-the__anh / __than / __tua) vẫn lấy từ the-bai.css, ở đây chỉ chỉnh lại theo kiểu.
 *
 * `.el-blog .bv-tc` / `.bv-tc .bv-the` = 2 lớp: thắng `[data-locale]{display:inline}` của
 * xmg.css nhưng THUA luật giấu khác tiếng — y như `.bv-luoi .bv-the`. Đừng thêm !important. */

.el-blog .bv-tc {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap-l);
  align-items: start;
}
.bv-tc .bv-the {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.bv-tc .bv-the:hover,
.bv-tc .bv-the:focus-visible { transform: translateY(-3px); }
.bv-tc .bv-the__anh img { transition: transform .5s var(--ease-out); }
.bv-tc .bv-the:hover .bv-the__anh img { transform: scale(1.03); }

.bv-tc__nhan {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.bv-tc__meta { font-size: var(--t-caption); color: var(--c-text-soft); }

/* Thẻ lớn */
.bv-tc .bv-the[data-vai="lon"] {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-soft);
}
.bv-tc .bv-the[data-vai="lon"] .bv-the__anh { aspect-ratio: 3 / 2; overflow: hidden; }
.bv-tc .bv-the[data-vai="lon"] .bv-the__than { gap: 10px; padding: 26px 28px 28px; }
.bv-tc .bv-the[data-vai="lon"] .bv-the__tua { font-size: clamp(1.5rem, 1.1vw + 1.2rem, 1.95rem); }

/* Cột thẻ nhỏ */
.bv-tc__ds { display: flex; flex-direction: column; }
.bv-tc .bv-the[data-vai="nho"] {
  flex-direction: row;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line-soft);
}
.bv-tc .bv-the[data-vai="nho"]:first-child { border-top: 0; padding-top: 0; }
.bv-tc .bv-the[data-vai="nho"] .bv-the__anh {
  flex: 0 0 116px;
  width: 116px;
  height: 116px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
}
.bv-tc .bv-the[data-vai="nho"] .bv-the__than { gap: 5px; padding: 0; justify-content: center; min-width: 0; }
.bv-tc .bv-the[data-vai="nho"] .bv-the__tua { font-size: 1.125rem; }
.bv-tc .bv-the[data-vai="nho"]:hover .bv-the__tua { color: var(--c-brand); }

/* Chỉ 1 bài: thẻ lớn nằm ngang, ảnh trái chữ phải, vẫn đầy đặn */
.el-blog .bv-tc--mot { grid-template-columns: 1fr; }
.bv-tc--mot .bv-the[data-vai="lon"] { flex-direction: row; }
.bv-tc--mot .bv-the[data-vai="lon"] .bv-the__anh { flex: 1.15 1 0; aspect-ratio: auto; min-height: 340px; }
.bv-tc--mot .bv-the[data-vai="lon"] .bv-the__than { flex: 1 1 0; justify-content: center; padding: 36px; }

@media (max-width: 860px) {
  .el-blog .bv-tc { grid-template-columns: 1fr; gap: var(--gap-m); }
  .bv-tc--mot .bv-the[data-vai="lon"] { flex-direction: column; }
  .bv-tc--mot .bv-the[data-vai="lon"] .bv-the__anh { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .bv-tc--mot .bv-the[data-vai="lon"] .bv-the__than { padding: 26px 22px 28px; }
  .bv-tc .bv-the[data-vai="nho"] .bv-the__anh { flex-basis: 104px; width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-tc .bv-the, .bv-tc .bv-the__anh img { transition: none; }
  .bv-tc .bv-the:hover, .bv-tc .bv-the:focus-visible { transform: none; }
}
