/* Khối "Cẩm nang kỷ yếu" trang chủ [bff_home_clusters] (v1.5.28, inc/cam-nang-trang-chu.php). Chỉ nạp ở trang có shortcode.
   Máy tính (v1.5.29, phiếu SEO 29/10): 7 thẻ cụm 1 hàng lướt ngang, 3 thẻ đủ + nửa thẻ 4, nút ‹ › hai mép; ảnh 4:3 + lớp tối dưới (số + tên), mô tả dưới ảnh; rê chuột ảnh phóng nhẹ + viền cam.
   ≤ 849px: cuộn ngang.
   Cam #f58220 / #d56d14 (màu chuẩn web; phiếu ghi #f58634). Font inherit. Chữ tiêu đề giữ nguyên, không ép HOA. */
.bff-cn { max-width: 1170px; margin: 0 auto; }
.bff-cn__dau { margin-bottom: 18px; }
.bff-cn .bff-cn__h2 { margin: 0; font-size: 32px; line-height: 1.25; color: #141416; text-transform: none; letter-spacing: normal; }
.bff-cn__phu { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: #77716b; }
.bff-cn__luoi {
	display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 2px 4px 14px; scroll-padding: 0 4px; scrollbar-width: none;
}
.bff-cn__luoi::-webkit-scrollbar { display: none; }
.bff-cn__the {
	display: flex; flex-direction: column; flex: 0 0 calc((100% - 54px) / 3.5); scroll-snap-align: start; overflow: hidden; border: 1px solid #f0e6dc;
	border-radius: 12px; background: #fff; color: #212121; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s, box-shadow .2s;
}
.bff-cn__the:hover, .bff-cn__the:focus-visible { outline-color: #f58220; color: #212121; box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
/* Ảnh 4:3 + lớp tối dưới, chỉ phủ số thứ tự + tên cụm (mô tả ở phần trắng bên dưới — anh chốt 23/10). */
.bff-cn__khung { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2622; }
.bff-cn .bff-cn__anh { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .35s; }
.bff-cn__the:hover .bff-cn__anh { transform: scale(1.05); }
.bff-cn__khung::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .75) 100%); }
.bff-cn__chu { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 16px; color: #fff; }
.bff-cn__so { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #f58220; font-size: 12px; font-weight: 700; line-height: 20px; }
.bff-cn .bff-cn__ten { margin: 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: normal; }
.bff-cn .bff-cn__mo { margin: 0; padding: 12px 16px 14px; font-size: 14px; line-height: 1.55; color: #555; }
.bff-cn__nhom { margin: 30px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #f58220; }
.bff-cn__moi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bff-cn__bai { display: block; overflow: hidden; border: 1px solid #f0e6dc; border-radius: 12px; background: #fff; color: #212121; transition: box-shadow .2s, transform .2s; }
.bff-cn__bai:hover, .bff-cn__bai:focus-visible { color: #212121; box-shadow: 0 14px 30px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.bff-cn .bff-cn__bai-anh { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.bff-cn .bff-cn__bai-anh.bff-noimg { background: #f3ece4; }
.bff-cn__bai-chu { padding: 14px 16px 16px; }
.bff-cn__bai-nhan { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #d56d14; }
.bff-cn .bff-cn__bai-ten {
	display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
	color: inherit; font-size: 16px; font-weight: 600; line-height: 1.45; text-transform: none; letter-spacing: normal;
}
.bff-cn__cuoi { margin-top: 22px; text-align: center; }
.bff-cn__xem {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 28px; border: 2px solid #f58220;
	border-radius: 999px; color: #d56d14; font-size: 14px; font-weight: 700; text-transform: uppercase; transition: background .15s, color .15s;
}
.bff-cn__xem:hover, .bff-cn__xem:focus-visible { background: #f58220; color: #fff; }
/* Nút ‹ › 48px hai mép hàng, ngang tâm ảnh (--bff-cn-lu-top do bff-cam-nang.js đặt); hết chỗ về phía nào ẩn nút phía đó.
   Chép kiểu hàng lướt /videos/ (bff-video.css). Điện thoại không có nút, vuốt như cũ. */
.bff-cn__truot { position: relative; }
.bff-cn__lu {
	position: absolute; left: 4px; right: 4px; top: var(--bff-cn-lu-top, 120px); z-index: 3; display: flex;
	justify-content: space-between; transform: translateY(-50%); pointer-events: none;
}
.bff-cn__lu[hidden] { display: none; }
.bff-cn .bff-cn__lu-nut {
	display: grid; place-items: center; width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0; border-radius: 50%;
	border: 1px solid #fff; background: #fff; color: #141416; font-size: 28px; line-height: 1; pointer-events: auto;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: .2s;
}
.bff-cn .bff-cn__lu-nut:hover:not(:disabled) { background: #141416; color: #fff; }
.bff-cn .bff-cn__lu-nut:disabled { visibility: hidden; }
/* Màn rộng còn lề → nút thò nửa ra ngoài hàng; dưới 1200px giữ trong hàng kẻo nút › ra ngoài màn hình. */
@media (min-width: 1200px) {
	.bff-cn__lu { left: -12px; right: -12px; }
}
@media (max-width: 849px) {
	.bff-cn__truot .bff-cn__lu { display: none; }
	.bff-cn .bff-cn__h2 { font-size: 26px; }
	.bff-cn__luoi, .bff-cn__moi {
		display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
		padding: 0 0 6px; scroll-padding: 0; scrollbar-width: none;
	}
	.bff-cn__luoi::-webkit-scrollbar, .bff-cn__moi::-webkit-scrollbar { display: none; }
	.bff-cn__the { flex: 0 0 260px; scroll-snap-align: start; }
	.bff-cn__bai { flex: 0 0 280px; scroll-snap-align: start; }
	.bff-cn__xem { width: 100%; }
}
