/**
 * Hero BJ66 — clone layout bj66.app
 */
.bj66-hero.hm_frame1 {
	height: auto;
	background: transparent;
}

.bj66-hero__title {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0 10px;
	font-family: 'Tomorrow', sans-serif;
	font-size: clamp(0.95rem, 3.4vw, 1.3rem);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	color: #f5d78e;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
	letter-spacing: 0.02em;
}

.bj66-hero__sr-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bj66-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 0 0 2rem;
	margin: 0;
	background: transparent;
}

.bj66-hero .background-cntnr,
.bj66-hero .frm-cntnr,
.bj66-hero .red_border,
.bj66-hero .rooster {
	display: none !important;
}

.bj66-hero__bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #1a1208;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: scroll;
}

.bj66-hero__overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.42);
	pointer-events: none;
}

.bj66-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 5.5rem 12px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.bj66-hero__logo {
	text-align: center;
	padding-top: 0.5rem;
	width: 100%;
}

.bj66-hero__logo img {
	width: min(320px, 72vw);
	height: auto;
	display: inline-block;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
	transition: filter 0.25s ease, transform 0.25s ease;
}

.bj66-hero__logo a:hover img {
	filter: brightness(1.05) drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5));
	transform: scale(1.02);
}

.bj66-hero__cta-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	width: 100%;
	max-width: 560px;
	padding: 0.75rem 0 0;
}

.bj66-hero__promo {
	width: 100%;
	max-width: 640px;
	padding: 0.35rem 8px 0;
}

.bj66-hero__promo img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.bj66-hero__social {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	width: 100%;
	max-width: 640px;
	padding-top: 0.25rem;
}

.bj66-hero__guides {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	max-width: 640px;
	padding: 0.5rem 10px 0;
}

.bj66-hero__btn {
	display: block;
	line-height: 0;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.bj66-hero__btn img {
	width: 100%;
	height: auto;
	display: block;
}

.bj66-hero__btn:hover {
	transform: scale(0.97);
	filter: brightness(1.08);
}

.bj66-hero__btn:active {
	transform: scale(0.94);
}

.bj66-hero__btn.is-pressed {
	transform: scale(0.94);
	filter: brightness(1.05);
}

.bj66-hero__providers {
	display: none;
	width: 100%;
	text-align: center;
	padding: 1rem 0 0;
	opacity: 0.85;
}

.bj66-hero__provider-wide {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.bj66-hero__provider-small {
	width: 55%;
	height: auto;
	margin-top: 0.5rem;
}

/* Stagger entrance */
.bj66-hero-animate {
	opacity: 0;
	transform: translateY(16px);
	animation: bj66HeroIn 0.65s ease forwards;
}

.bj66-hero__logo.bj66-hero-animate { animation-delay: 0.05s; }
.bj66-hero__cta-row .bj66-hero-animate:nth-child(1) { animation-delay: 0.15s; }
.bj66-hero__cta-row .bj66-hero-animate:nth-child(2) { animation-delay: 0.22s; }
.bj66-hero__promo.bj66-hero-animate { animation-delay: 0.3s; }
.bj66-hero__social .bj66-hero-animate:nth-child(1) { animation-delay: 0.38s; }
.bj66-hero__social .bj66-hero-animate:nth-child(2) { animation-delay: 0.44s; }
.bj66-hero__social .bj66-hero-animate:nth-child(3) { animation-delay: 0.5s; }
.bj66-hero__guides .bj66-hero-animate:nth-child(1) { animation-delay: 0.58s; }
.bj66-hero__guides .bj66-hero-animate:nth-child(2) { animation-delay: 0.65s; }

@keyframes bj66HeroIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.bj66-home {
	overflow-x: hidden;
	background-color: #1a1208;
}

@media (max-width: 767px) {
	.bj66-hero__bg,
	.bj66-hero__overlay {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		height: 100%;
		min-height: 100dvh;
		margin: 0;
		padding: 0;
	}

	.bj66-hero__bg {
		z-index: 0;
		background-attachment: scroll;
		transform: translateZ(0);
	}

	.bj66-hero__overlay {
		z-index: 1;
	}
}

@media (max-width: 1024px) {
	.bj66-hero.hm_frame1 {
		padding-top: 0 !important;
		height: auto !important;
	}
}

@media (max-width: 767px) {
	.bj66-hero {
		min-height: auto;
		padding-bottom: 1.25rem;
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}

	.bj66-hero__inner {
		width: 100% !important;
		max-width: 100%;
		padding: 4rem 8px 0;
		box-sizing: border-box;
	}

	.bj66-hero__logo {
		padding-top: 0.25rem;
	}

	.bj66-hero__logo img {
		width: min(300px, 82vw);
		max-width: 100%;
		height: auto;
	}

	.bj66-hero__cta-row,
	.bj66-hero__promo,
	.bj66-hero__social,
	.bj66-hero__guides {
		width: 100%;
		max-width: 100%;
		padding-left: 2px;
		padding-right: 2px;
		box-sizing: border-box;
	}

	.bj66-hero__cta-row {
		padding-top: 0.35rem;
		gap: 2px;
	}

	.bj66-hero__social {
		padding-top: 0.15rem;
	}

	.bj66-hero__guides {
		padding-top: 0.35rem;
	}

	.bj66-hero__btn {
		min-width: 0;
	}

	.bj66-hero__btn img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.bj66-hero__providers {
		display: block;
		background: transparent;
		border-radius: 0 0 16px 16px;
		padding: 0.5rem 4px 0;
		margin-top: 0.35rem;
	}

	.bj66-hero__provider-wide,
	.bj66-hero__provider-small {
		max-width: 100%;
	}
}

@media (max-width: 1024px) {
	/* === Trang chủ mobile/tablet — sửa layout toàn site === */
	body.bj66-home {
		overflow-x: hidden !important;
		width: 100%;
		max-width: 100vw;
	}

	body.bj66-home .width--80,
	body.bj66-home .home-event-slider > .frm-cntnr,
	body.bj66-home .hm_frame2 > .frm-cntnr,
	body.bj66-home .hm_frame3 > .frm-cntnr,
	body.bj66-home .hm_frame4 > .frm-cntnr,
	body.bj66-home .hm_frame5 > .frm-cntnr,
	body.bj66-home .hm_frame6 > .frm-cntnr,
	body.bj66-home .bj66-keywords-section > .frm-cntnr,
	body.bj66-home .bj66-seo-section > .frm-cntnr {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
		box-sizing: border-box !important;
	}

	body.bj66-home .inlineBlock-parent {
		display: block !important;
		width: 100% !important;
	}

	/* Ngoại lệ — giữ flex cho khối cần wrap/cột */
	body.bj66-home .hm_frame2 .inlineBlock-parent {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	body.bj66-home .hm_frame4 .right-side > .inlineBlock-parent {
		display: flex !important;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: flex-start;
	}

	body.bj66-home .inlineBlock-parent > .left-side,
	body.bj66-home .inlineBlock-parent > .right-side {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	body.bj66-home .hm_frame2 > .right-item {
		display: none !important;
	}

	body.bj66-home .hm_frame2 .frm-cntnr {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	body.bj66-home .hm_frame2 .phone {
		width: min(280px, 72vw) !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 9 / 16;
		max-height: 52vh;
		margin: 0 auto 1rem !important;
	}

	body.bj66-home .hm_frame2 .text-hldr,
	body.bj66-home .hm_frame2 .text-cntnr {
		width: 100% !important;
		max-width: 100% !important;
	}

	body.bj66-home .hm_frame3 > .frm-cntnr {
		padding-top: 1.25rem !important;
		padding-bottom: 1.5rem !important;
	}

	.hm_frame5 .rooster2 {
		display: none !important;
	}

	.home-event-slider .carousel-wrap .slick-list {
		margin: 0 !important;
	}

	.home-event-slider .carousel-wrap .item {
		padding: 0 6px;
	}
}

@media (max-width: 767px) {
	.home-event-slider,
	.hm_frame2,
	.hm_frame3,
	.hm_frame4,
	.hm_frame5,
	.hm_frame6,
	.bj66-keywords-section,
	.bj66-seo-section {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		box-sizing: border-box;
	}

	body.bj66-home .width--80,
	body.bj66-home .home-event-slider > .frm-cntnr,
	body.bj66-home .hm_frame2 > .frm-cntnr,
	body.bj66-home .hm_frame3 > .frm-cntnr,
	body.bj66-home .hm_frame4 > .frm-cntnr,
	body.bj66-home .hm_frame5 > .frm-cntnr,
	body.bj66-home .hm_frame6 > .frm-cntnr,
	body.bj66-home .bj66-keywords-section > .frm-cntnr,
	body.bj66-home .bj66-seo-section > .frm-cntnr {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.bj66-hero__inner {
		max-width: 680px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bj66-hero-animate {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.bj66-hero__bg {
		background-attachment: scroll;
	}
}

/* Trang chủ — nền trong suốt + lớp phủ tối đồng bộ */
.home-event-slider,
.hm_frame2,
.hm_frame3,
.hm_frame4,
.hm_frame5,
.hm_frame6,
.bj66-keywords-section,
.bj66-seo-section {
	position: relative;
	z-index: 2;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border-top-color: rgba(255, 255, 255, 0.12);
}

.home-event-slider::before,
.hm_frame2::before,
.hm_frame3::before,
.hm_frame4::before,
.hm_frame5::before,
.hm_frame6::before,
.bj66-keywords-section::before,
.bj66-seo-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.42);
	pointer-events: none;
}

.hm_frame5 .background,
.hm_frame5 .gradient {
	display: none !important;
}

.home-event-slider > .frm-cntnr,
.hm_frame2 > *,
.hm_frame3 > .frm-cntnr,
.hm_frame4 > *,
.hm_frame5 > .frm-cntnr,
.hm_frame6 > .frm-cntnr,
.bj66-keywords-section > .frm-cntnr,
.bj66-seo-section > .frm-cntnr {
	position: relative;
	z-index: 1;
}

/* Ảnh gà khối liên hệ (hm_frame5) */
.hm_frame5 .rooster2 {
	left: 5% !important;
	width: 500px !important;
	height: 700px !important;
	bottom: -5%;
}

@media (max-width: 1024px) {
	.hm_frame5 .rooster2 {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.hm_frame5 .rooster2 {
		display: none !important;
	}
}

/* Màn hình loading — logo nhỏ gọn, tải nhanh */
.loader img {
	display: block;
	max-width: min(220px, 58vw);
	width: auto;
	height: auto;
	margin: 0 auto;
}

.loader p {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}
