/* Màu/kích thước đọc qua biến --dlb-sh-* — PHP/JS đẩy giá trị thật vào inline style ngay
   trên khối .dlb-single-hero theo cấu hình chọn trong Inspector Controls (xem
   includes/modules/dlb-single-hero-fx28.php). Đổi bố cục qua class
   ".dlb-single-hero--{overlay|below|simple}". */

.dlb-width-limited {
	max-width: var(--dlb-max-width, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* An toan tran ngang tren dien thoai that (lop bao ve chung, them dong loat 2026-08-19) --
   xem bai hoc day du o wp_plugin_dlb_lessons ve "layout viewport bi noi rong vinh vien":
   tren trinh duyet di dong THAT, bat ky khoi nao co con/chau tran ra ngoai o LAN VE DAU
   TIEN (truoc khi bat ky JS/media-query nao kip ap dung) co the khien trinh duyet tu "noi
   rong layout viewport" vinh vien cho CA TRANG, khong chi rieng khoi do. Dat max-width:100%
   + overflow-x:hidden tren CHINH phan tu goc cua khoi la lop phong thu re + an toan nhat --
   khong doi giao dien binh thuong (khoi da duoc tinh du rong san), chi kich hoat khi co gi
   do ben trong thuc su tran ra. */
.dlb-single-hero {
	max-width: 100%;
	overflow-x: hidden;
}

.dlb-single-hero__notice {
	color: #666666;
	font-style: italic;
}

.dlb-single-hero {
	position: relative;
}

/* ---- Thanh tiến độ đọc — cố định trên cùng viewport (KHÔNG phụ thuộc vị trí khối trong
   DOM), JS tính % cuộn trang thật (xem assets/js/dlb-single-hero-fx28-frontend.js). ---- */
.dlb-single-hero__progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--dlb-sh-progress-height, 4px);
	background: rgba(0, 0, 0, 0.08);
	z-index: 9999;
}
.dlb-single-hero__progress-bar {
	height: 100%;
	width: 0%;
	background: var(--dlb-sh-progress-color, #2563eb);
	transition: width 0.1s linear;
}

/* ============================== BỐ CỤC: OVERLAY (ảnh phủ nền, chữ đè lên) ============================== */
.dlb-single-hero--overlay {
	min-height: var(--dlb-sh-height, 420px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.dlb-single-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.dlb-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--dlb-sh-overlay, rgba(0, 0, 0, 0.45));
}
.dlb-single-hero--overlay .dlb-single-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 48px;
}

/* ============================== BỐ CỤC: BELOW (ảnh trên, chữ dưới — mặc định) ============================== */
.dlb-single-hero--below .dlb-single-hero__image {
	width: 100%;
	aspect-ratio: 21 / 9;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	margin-bottom: 24px;
}
.dlb-single-hero--below .dlb-single-hero__inner,
.dlb-single-hero--simple .dlb-single-hero__inner {
	padding: 24px 0;
}

/* ============================== CĂN CHỈNH NỘI DUNG ============================== */
.dlb-single-hero__content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.dlb-single-hero--align-center .dlb-single-hero__content {
	align-items: center;
	text-align: center;
}

/* ============================== NHÃN CHUYÊN MỤC / TIÊU ĐỀ / META ============================== */
.dlb-single-hero__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--dlb-sh-badge-text, #ffffff);
	text-decoration: none;
}
.dlb-single-hero--align-center .dlb-single-hero__badge {
	align-self: center;
}

.dlb-single-hero__title {
	margin: 0;
	color: var(--dlb-sh-title-color, #111111);
	font-size: clamp(23px, 9.6vw, var(--dlb-sh-title-size, 36px));
	font-weight: var(--dlb-sh-title-weight, 800);
	line-height: 1.25;
}

.dlb-single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	color: var(--dlb-sh-meta-color, #666666);
	font-size: clamp(11px, 3.73vw, var(--dlb-sh-meta-size, 14px));
}
.dlb-single-hero__meta-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.dlb-single-hero__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: block;
}
.dlb-single-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.dlb-single-hero__meta-item svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ============================== HIỆU ỨNG XUẤT HIỆN KHI TẢI TRANG ============================== */
/* Khác dlb-post-showcase-vt52 (kích hoạt khi CUỘN tới, dùng IntersectionObserver) — hero
   luôn nằm ĐẦU trang nên chỉ cần chạy 1 lần ngay khi trang tải xong, không cần theo dõi
   cuộn trang (xem assets/js/dlb-single-hero-fx28-frontend.js). */
[data-reveal]:not([data-reveal="none"]) {
	opacity: 0;
	transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
[data-reveal="fade-up"] {
	transform: translateY(24px);
}
[data-reveal="zoom-in"] {
	transform: scale(0.94);
}
[data-reveal="slide-left"] {
	transform: translateX(40px);
}
[data-reveal="blur-in"] {
	filter: blur(10px);
}
[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
	filter: none;
}

/* LỖI THẬT phát hiện 2026-09-02 (người dùng báo qua ảnh: eyebrow/tiêu đề/mô tả phần đầu
   bài viết — bố cục "below", ảnh trên chữ dưới, mặc định — chạm sát mép trái/phải màn
   hình trên mobile, không có khoảng đệm nào). Root cause: "padding: 24px 0" của
   ".dlb-single-hero--below .dlb-single-hero__inner" CHỈ có đệm trên/dưới, KHÔNG có đệm
   NGANG nào cả — khối bọc ngoài ".dlb-width-limited" chỉ căn giữa bằng max-width+margin
   auto (không tự thêm đệm), trên mobile max-width luôn lớn hơn màn hình nên margin:auto
   tự về 0 — CÙNG BÀI HỌC đã gặp ở ".entry-content.alignfull" của bài viết/trang thường
   (2 chỗ khác, xem dlb-single-post.css) nhưng đây là 1 khối HOÀN TOÀN RIÊNG
   (dlb-single-hero-fx28) nên không tự động ăn theo fix đó được — phải sửa CSS riêng ở
   đây. Chỉ thêm đệm cho phần CHỮ (ảnh hero vẫn cố ý tràn hết chiều ngang như thiết kế
   ban đầu, không đụng vào). */
@media (max-width: 600px) {
	.dlb-single-hero--below .dlb-single-hero__inner,
	.dlb-single-hero--simple .dlb-single-hero__inner {
		padding: 24px 20px;
	}
	.dlb-single-hero--overlay .dlb-single-hero__inner {
		padding: 32px 20px;
	}
}
