/* ==========================================================================
   56-nhom-phanhoi.css — Component DÙNG CHUNG "Phản hồi của học viên" (brief
   "Update 30092026" mục 5, 30/09/2026, phiên nền #6). Một section, 2 khối
   (ảnh + video), tự động chèn cuối mọi trang khoá học qua
   `t4_tu_dong_chen_phanhoi()` (functions.php) — KHÔNG cần sửa post_content
   khi thêm khoá học mới, chỉ cần có mặt trong `t4_ds_slug_khoa_hoc()`.

   Tái dùng ĐÚNG cơ chế carousel `data-t4-carousel`/`data-t4cs-auto` đã có
   (main.js `initCarousel()`, dùng chung với `.t4cs-*` của Case Study) —
   không viết cơ chế carousel mới. Chỉ thêm layout/spacing riêng cho khối
   này (`.t4ph-*`), không đụng `.t4cs-*`/`.t4kh-fb-*` cũ (trang khác có thể
   còn tham chiếu `.t4kh-fb-*` qua CSS cũ, không xoá để tránh hồi quy ngoài
   phạm vi).

   h2/`.t4-lede` KHÔNG viết đè font — kế thừa `.t4 h2`/`.t4-lede` sẵn có
   trong `10-base.css` (đúng nguyên tắc "không bịa font mới", brief chỉ xin
   thu gọn spacing).
   ========================================================================== */

.t4ph-wrap {
	padding: 80px 0;
}

.t4ph-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.t4 .t4ph-td {
	margin: 0 0 12px;
}

.t4ph-dan {
	max-width: 640px;
	margin: 0 auto 40px;
}

/* Brief: tên thương hiệu không được tách dòng giữa chừng ở khổ hẹp. */
.t4ph-nowrap {
	white-space: nowrap;
}

.t4ph-block {
	position: relative;
	text-align: left;
}

/* Khoảng cách GIỮA khối ảnh và khối video — brief: 64px desktop / 40px mobile. */
.t4ph-anh {
	margin-bottom: 64px;
}

.t4ph-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 4px 6px;
}
.t4ph-track::-webkit-scrollbar { display: none; }

/* Desktop: 3 thẻ/lượt — flex-basis tính theo 3 cột trừ 2 khe 24px. */
.t4ph-anh-the {
	flex: 0 0 calc((100% - 48px) / 3);
	width: calc((100% - 48px) / 3);
	border-radius: var(--t4-radius-card, 16px);
	overflow: hidden;
	background: var(--t4-cream, #EFE8DA);
}
.t4ph-anh-the img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

.t4ph-video-the {
	flex: 0 0 calc((100% - 48px) / 3);
	width: calc((100% - 48px) / 3);
}
.t4ph-video-phat {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	margin: 0;
	border: 0;
	background: var(--t4-cream, #EFE8DA);
	cursor: pointer;
	border-radius: var(--t4-radius-card, 12px);
	overflow: hidden;
}
.t4ph-video-phat img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.t4ph-video-ic {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}
.t4ph-video-ten {
	margin: 10px 0 0;
	font: 600 14px/20px var(--t4-font-body, 'Manrope', sans-serif);
	color: var(--t4-text, #1F1F1F);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Video đang phát (facade → iframe thật, main.js `initPhanHoiVideo()`). */
.t4ph-video-the iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--t4-radius-card, 12px);
	display: block;
}

.t4ph-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--t4-white, #fff);
	border: 1px solid rgba(0, 0, 0, .12);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	color: var(--t4-text, #1F1F1F);
	padding: 0;
}
.t4ph-nav:hover:not(:disabled) { background: var(--t4-cream, #EFE8DA); }
.t4ph-nav:disabled { opacity: .35; cursor: default; }
.t4ph-prev { left: -22px; }
.t4ph-next { right: -22px; }

/* Khổ hẹp — LUẬT III.18: bọc @media rõ ràng. Ảnh/video 1 thẻ lớn hiện rõ +
   mép thẻ tiếp theo hé lộ (78%) để gợi ý cuộn được, mũi tên chuyển xuống
   dưới track (đặt tuyệt đối ở viền carousel trên khổ hẹp dễ bị che). */
@media (max-width: 849px) {
	.t4ph-wrap { padding: 48px 0; }
	.t4ph-inner { padding: 0 16px; }
	.t4ph-dan { margin-bottom: 24px; }
	.t4ph-anh { margin-bottom: 40px; }

	.t4ph-block {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.t4ph-track {
		order: 0;
		flex: 0 0 100%;
		gap: 16px;
	}
	.t4ph-anh-the,
	.t4ph-video-the {
		flex: 0 0 78%;
		width: 78%;
	}
	.t4ph-anh-the img { height: 200px; }
	.t4ph-nav {
		order: 1;
		position: static;
		transform: none;
		width: 36px;
		height: 36px;
		margin: 12px 8px 0;
	}
}
