/* ==========================================================================
   55-nhom-casestudy.css — Case Study CAROUSEL CHUẨN (brief "Update
   30092026" mục 8-11, 30/09/2026). Dùng chung cho MỌI trang dịch vụ + trang
   Tư vấn chiến lược, do shortcode `[t4_khoi_casestudy]` (functions.php) phát
   ra. Class `t4cs-*` hoàn toàn MỚI, không đụng `.t4fx-cs-*`/`.t4dv-cs*` cũ
   (những trang khác vẫn có thể còn tham chiếu, không xoá để tránh hồi quy
   ngoài phạm vi việc này).

   Font tiêu đề `.t4cs-card-ten` GIỮ NGUYÊN đúng giá trị đã đo bằng
   `getComputedStyle()` trên `.t4fx-cs-ten p` tại /dich-vu-google-marketing/
   ngày 30/09/2026: 700 16px/30px Manrope (brief mục 9 yêu cầu "giữ nguyên
   font hiện tại" cho dòng chữ lớn nhất) — chỉ NHÀ LINE-HEIGHT được rút gọn
   (24px) để "thu gọn spacing" như brief yêu cầu, đó là khoảng cách chứ
   không phải font.
   ========================================================================== */

.t4cs-wrap {
	position: relative;
	margin-top: 20px;
}

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

.t4cs-card {
	flex: 0 0 640px;
	width: 640px;
	display: flex;
	flex-direction: row;
	background: var(--t4-white, #fff);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--t4-radius-card, 16px);
	overflow: hidden;
	box-shadow: var(--t4-shadow-card, 3px 3px 4px rgba(0, 0, 0, .12));
}

.t4cs-card-anh {
	flex: 0 0 240px;
	width: 240px;
	align-self: stretch;
	display: block;
	background: var(--t4-cream, #EFE8DA);
}
.t4cs-card-anh img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
	display: block;
}

.t4cs-card-noi {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 20px 0;
}

.t4 .t4cs-card-ten {
	margin: 0;
	font: 700 16px/24px var(--t4-font-body, 'Manrope', sans-serif);
	color: var(--t4-text, #1F1F1F);
}

.t4 .t4cs-card-mo {
	margin: 0;
	font: 400 14px/22px var(--t4-font-body, 'Manrope', sans-serif);
	color: var(--t4-muted, #5E5E5E);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.t4cs-card-cta {
	margin-top: auto;
	padding-top: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 700 14px/20px var(--t4-font-body, 'Manrope', sans-serif);
	color: var(--t4-camel-dark, #B77537);
	text-decoration: none;
}
.t4cs-card-cta:hover { text-decoration: underline; }
.t4cs-card-cta span { transition: transform .15s ease; }
.t4cs-card-cta:hover span { transform: translateX(3px); }

.t4cs-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;
}
.t4cs-nav:hover:not(:disabled) { background: var(--t4-cream, #EFE8DA); }
.t4cs-nav:disabled { opacity: .35; cursor: default; }
.t4cs-prev { left: -22px; }
.t4cs-next { right: -22px; }

/* Khổ hẹp — LUẬT III.18: bọc @media rõ ràng, không để rò ra khổ kia.
   Ảnh chuyển lên trên (mục 9: "Mobile: bố cục chuyển hợp lý, KHÔNG bê
   nguyên tỷ lệ desktop"), 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/đụng nội dung thẻ liền kề). */
@media (max-width: 849px) {
	.t4cs-wrap {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 16px;
	}
	.t4cs-track {
		order: 0;
		flex: 0 0 100%;
		gap: 16px;
	}
	.t4cs-card {
		flex: 0 0 272px;
		width: 272px;
		flex-direction: column;
	}
	.t4cs-card-anh {
		flex: 0 0 160px;
		width: 100%;
		height: 160px;
	}
	.t4cs-card-anh img { min-height: 0; }
	.t4cs-card-noi { padding: 14px 16px 16px; gap: 6px; }
	.t4cs-nav {
		order: 1;
		position: static;
		transform: none;
		width: 36px;
		height: 36px;
		margin: 12px 8px 0;
	}
}
