/* Home hero slider — Printstyle-style */

/* Full-bleed + flush under header (break out of .container / #primary) */
.home .widget.halink_home_slider_image {
	margin: 0;
	padding: 0;
}

.home .entry-content > .widget.halink_home_slider_image:first-child {
	margin-top: 0;
}

.home #content.site-content > .container:has(.hl-hero-slider-section) {
	padding-top: 0;
}

body.home:has(.hl-hero-slider-section) {
	overflow-x: clip;
}

.home:has(.hl-hero-slider-section) .site-header.teepro-header-1 {
	margin-bottom: 0;
	box-shadow: none;
	border: 0 none;
	position: relative;
	z-index: 1000;
}

.hl-hero-slider-section {
	position: relative;
	z-index: 0;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.hl-hero-slider-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #e9e9e9;
}

.hl-hero-slider {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

.hl-hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ---- Slides ---- */
.hl-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hl-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hl-hero-slide__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #ccc;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hl-hero-slide__bg picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* Override theme `img { max-width:100%; height:auto }` so small uploads still fill the slide */
.hl-hero-slide__bg .hl-hero-slide__img,
.hl-hero-slide__bg img.hl-hero-slide__img,
.hl-hero-slide__video {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-width: 100%;
	min-height: 100%;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center center;
}

.hl-hero-slide--right-detail .hl-hero-slide__bg .hl-hero-slide__img {
	object-position: center top;
}

.hl-hero-slide__bg--kenburns .hl-hero-slide__img {
	width: 110% !important;
	height: 110% !important;
	left: -5% !important;
	top: -5% !important;
	right: auto !important;
	bottom: auto !important;
	animation: hlKenBurns 16s linear infinite alternate;
	transform-origin: center center;
}

@keyframes hlKenBurns {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

.hl-hero-slide__video {
	z-index: 2;
}

/* ---- Captions container ---- */
.hl-hero-slide__captions {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.hl-caption {
	position: absolute;
	left: auto;
	right: auto;
	pointer-events: auto;
	opacity: 0;
	transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hl-hero-slide.is-active .hl-caption.is-visible {
	opacity: 1;
}

.hl-caption img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Animation presets (transform on inner layer to avoid clash with positioning) */
.hl-caption__motion {
	display: block;
	transform: translate3d(0, 0, 0);
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hl-caption[data-anim="fade-down"] .hl-caption__motion {
	transform: translate3d(0, -40px, 0);
}

.hl-caption[data-anim="fade-up"] .hl-caption__motion {
	transform: translate3d(0, 40px, 0);
}

.hl-caption[data-anim="slide-left"] .hl-caption__motion {
	transform: translate3d(-80px, 0, 0) scale(0.92);
}

.hl-caption[data-anim="scale-in"] .hl-caption__motion {
	transform: scale(0.88);
}

.hl-caption[data-anim="fade-in"] .hl-caption__motion {
	transform: none;
}

.hl-hero-slide.is-active .hl-caption.is-visible .hl-caption__motion {
	transform: translate3d(0, 0, 0) scale(1);
}

/* Shared: horizontal center without transform (stable on mobile) */
.hl-caption--h-center {
	left: 0;
	right: 0;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ---- Slide 1: center brand (RevSlider offsets @ 1521×600) ---- */
.hl-hero-slide--center-brand .hl-caption--img-1 { top: 26%; }
.hl-hero-slide--center-brand .hl-caption--img-1 img { max-width: 284px; }
.hl-hero-slide--center-brand .hl-caption--img-3 { top: 33.5%; }
.hl-hero-slide--center-brand .hl-caption--img-3 img { max-width: 169px; }
.hl-hero-slide--center-brand .hl-caption--img-2 { top: 40%; }
.hl-hero-slide--center-brand .hl-caption--img-2 img { max-width: 387px; }
.hl-hero-slide--center-brand .hl-caption--img-4 { top: 50%; }
.hl-hero-slide--center-brand .hl-caption--img-4 img { max-width: 179px; }
.hl-hero-slide--center-brand .hl-caption--btn-center { top: 61%; }

.hl-hero-slide--center-brand .hl-caption--img,
.hl-hero-slide--center-brand .hl-caption--btn-center {
	left: 0;
	right: 0;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ---- Slide 2: right promo (pixel % @ 1521×600) ---- */
.hl-hero-slide--right-promo .hl-caption--promo {
	left: 68.5%;
	top: 23.5%;
	right: auto;
	max-width: 283px;
}

.hl-hero-slide--right-promo .hl-caption--btn-right {
	left: 72.8%;
	top: 69.7%;
	right: auto;
	bottom: auto;
}

/* ---- Slide 3: right detail (pixel % @ 1521×600) ---- */
.hl-hero-slide--right-detail .hl-caption--detail-1 {
	left: 55.6%;
	top: 11.7%;
	right: auto;
	max-width: 398px;
}

.hl-hero-slide--right-detail .hl-caption--detail-2 {
	left: 75.8%;
	top: 10.5%;
	right: auto;
	max-width: 101px;
}

.hl-hero-slide--right-detail .hl-caption--detail-3 {
	left: 59.4%;
	top: 42.2%;
	right: auto;
	max-width: 288px;
}

.hl-hero-slide--right-detail .hl-caption--detail-4 {
	left: 62.4%;
	top: 56.2%;
	right: auto;
	max-width: 198px;
}

.hl-hero-slide--right-detail .hl-caption--btn-right {
	left: 63.5%;
	top: 74%;
	right: auto;
	bottom: auto;
}

/* ---- Slide 4: center video/text ---- */
.hl-hero-slide--center-video .hl-caption--title { top: 22%; }
.hl-hero-slide--center-video .hl-caption--desc { top: 35%; }
.hl-hero-slide--center-video .hl-caption--img { top: 42%; z-index: 1; }
.hl-hero-slide--center-video .hl-caption--btn-center { top: 69%; z-index: 2; }

.hl-hero-slide--center-video .hl-caption--title,
.hl-hero-slide--center-video .hl-caption--desc,
.hl-hero-slide--center-video .hl-caption--img,
.hl-hero-slide--center-video .hl-caption--btn-center {
	left: 0;
	right: 0;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hl-caption--title .hl-caption__motion > span {
	display: block;
	font-family: "Roboto Condensed", Roboto, sans-serif;
	font-size: 48px;
	line-height: 1.05;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	max-width: 900px;
}

.hl-caption--desc .hl-caption__motion > span {
	display: block;
	font-family: Bitter, Georgia, serif;
	font-size: 22px;
	line-height: 1.45;
	font-weight: 400;
	color: #eee;
	max-width: 780px;
	margin: 0 auto;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hl-hero-slide--center-video .hl-caption--img img {
	display: block;
	width: auto;
	height: auto;
	max-width: 169px;
	max-height: 157px;
	object-fit: contain;
	margin: 0 auto;
}

/* ---- Buttons ---- */
.hl-caption--btn a {
	display: inline-block;
	font-family: Roboto, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	padding: 12px 35px;
	border: 1px solid #fff;
	border-radius: 3px;
	background: transparent;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	white-space: nowrap;
}

.hl-caption--btn a:hover {
	background: #0b0284;
	border-color: #0b0284;
	color: #fff;
}

.hl-caption--btn-pill a {
	border-radius: 30px;
	font-weight: 500;
}

.hl-caption--btn-pill a:hover {
	background: #fff;
	color: #111;
	border-color: #fff;
}

.hl-caption--btn-solid a {
	font-weight: 700;
	padding: 15px 40px;
	border-radius: 5px;
	border-width: 0;
	box-shadow: 0 0 0 0 #999;
}

.hl-caption--btn-solid a:hover {
	background: #18977c;
	color: #fff;
}

/* ---- Arrows (metis style) ---- */
.hl-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 20;
	width: 60px;
	height: 60px;
	margin-top: -30px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 1);
	cursor: pointer;
	transition: background 0.3s ease;
	box-sizing: border-box;
}

.hl-hero-slider__arrow::before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	margin: 23px auto;
	border-top: 2px solid #000;
	border-right: 2px solid #000;
	transition: transform 0.3s ease;
}

.hl-hero-slider__arrow--prev {
	left: 0;
}

.hl-hero-slider__arrow--prev::before {
	transform: rotate(-135deg);
	margin-left: 26px;
}

.hl-hero-slider__arrow--next {
	right: 0;
}

.hl-hero-slider__arrow--next::before {
	transform: rotate(45deg);
	margin-right: 26px;
}

.hl-hero-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.75);
}

.hl-hero-slider__arrow:hover::before {
	transform: scale(1.4) rotate(-135deg);
}

.hl-hero-slider__arrow--next:hover::before {
	transform: scale(1.4) rotate(45deg);
}

/* ---- Progress timer ---- */
.hl-hero-slider__timer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: rgba(0, 0, 0, 0.15);
	z-index: 20;
	overflow: hidden;
}

.hl-hero-slider__timer span {
	display: block;
	height: 100%;
	width: 0;
	background: rgba(11, 2, 132, 0.85);
	transition: width linear;
}

/* ---- Teal banner bar under slider (Printstyle) ---- */
.hl-hero-slider-banner {
	width: 100%;
	background-color: #0b0284;
	box-sizing: border-box;
}

.hl-hero-slider-banner__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 14px 20px;
	box-sizing: border-box;
	text-align: center;
}

.hl-hero-slider-banner__title {
	margin: 0;
	padding: 0;
	font-family: Anton, "Roboto Condensed", sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.25;
	color: #ffffff;
	text-transform: uppercase;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.hl-hero-slider {
		height: 570px;
	}

	.hl-caption--title .hl-caption__motion > span {
		font-size: 36px;
	}

	.hl-hero-slide--right-promo .hl-caption--promo {
		left: auto;
		right: 8%;
		top: 20%;
		max-width: 240px;
	}

	.hl-hero-slide--right-promo .hl-caption--btn-right {
		left: auto;
		right: 6%;
		top: 68%;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-1 {
		left: 52%;
		max-width: 320px;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-2 {
		left: 72%;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-3 {
		left: 54%;
		max-width: 250px;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-4 {
		left: 56%;
	}

	.hl-hero-slide--right-detail .hl-caption--btn-right {
		left: 58%;
		top: 72%;
	}
}

@media (max-width: 778px) {
	.hl-hero-slider {
		height: 430px;
	}

	.hl-hero-slider-banner__inner {
		padding: 12px 16px;
	}

	.hl-hero-slider-banner__title {
		font-size: 16px;
		line-height: 1.35;
	}

	.hl-caption--title .hl-caption__motion > span {
		font-size: 28px;
	}

	.hl-caption--desc .hl-caption__motion > span {
		font-size: 16px;
	}

	/* Slide 1 — giữ giữa, thu nhỏ ảnh */
	.hl-hero-slide--center-brand .hl-caption--img-1 { top: 24%; }
	.hl-hero-slide--center-brand .hl-caption--img-1 img { max-width: 220px; }
	.hl-hero-slide--center-brand .hl-caption--img-3 { top: 31%; }
	.hl-hero-slide--center-brand .hl-caption--img-3 img { max-width: 140px; }
	.hl-hero-slide--center-brand .hl-caption--img-2 { top: 38%; }
	.hl-hero-slide--center-brand .hl-caption--img-2 img { max-width: 280px; }
	.hl-hero-slide--center-brand .hl-caption--img-4 { top: 48%; }
	.hl-hero-slide--center-brand .hl-caption--img-4 img { max-width: 150px; }
	.hl-hero-slide--center-brand .hl-caption--btn-center { top: 58%; }

	/* Slide 2 — căn giữa promo + nút (margin auto, không dùng transform) */
	.hl-hero-slide--right-promo .hl-caption--promo,
	.hl-hero-slide--right-promo .hl-caption--btn-right {
		left: 0;
		right: 0;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.hl-hero-slide--right-promo .hl-caption--promo {
		top: auto;
		bottom: 30%;
		max-width: 200px;
	}

	.hl-hero-slide--right-promo .hl-caption--btn-right {
		top: auto;
		bottom: 10%;
	}

	/* Slide 3 — xếp dọc giữa màn hình */
	.hl-hero-slide--right-detail .hl-caption--detail-1,
	.hl-hero-slide--right-detail .hl-caption--detail-2,
	.hl-hero-slide--right-detail .hl-caption--detail-3,
	.hl-hero-slide--right-detail .hl-caption--detail-4,
	.hl-hero-slide--right-detail .hl-caption--btn-right {
		left: 0;
		right: 0;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-1 { top: 8%; max-width: 260px; }
	.hl-hero-slide--right-detail .hl-caption--detail-2 { top: 26%; max-width: 72px; }
	.hl-hero-slide--right-detail .hl-caption--detail-3 { top: 40%; max-width: 220px; }
	.hl-hero-slide--right-detail .hl-caption--detail-4 { top: 52%; max-width: 160px; }
	.hl-hero-slide--right-detail .hl-caption--btn-right { top: auto; bottom: 8%; }

	/* Slide 4 — text giữa, thu gọn */
	.hl-hero-slide--center-video .hl-caption--title { top: 18%; }
	.hl-hero-slide--center-video .hl-caption--desc { top: 30%; }
	.hl-hero-slide--center-video .hl-caption--img { top: 40%; }
	.hl-hero-slide--center-video .hl-caption--btn-center { top: 67%; }

	.hl-hero-slide--center-video .hl-caption--img img {
		max-width: 150px;
		max-height: 130px;
	}

	.hl-hero-slider__arrow {
		width: 44px;
		height: 44px;
		margin-top: -22px;
	}

	.hl-hero-slider__arrow::before {
		margin: 15px auto;
	}
}

@media (max-width: 480px) {
	.hl-hero-slider {
		height: 350px;
	}

	.hl-hero-slider-banner__inner {
		padding: 10px 12px;
	}

	.hl-hero-slider-banner__title {
		font-size: 13px;
		line-height: 1.3;
	}

	.hl-caption--title .hl-caption__motion > span {
		font-size: 18px;
	}

	.hl-caption--desc .hl-caption__motion > span {
		font-size: 14px;
		line-height: 1.35;
	}

	.hl-caption--btn a {
		font-size: 15px;
		padding: 10px 24px;
	}

	.hl-hero-slide--center-brand .hl-caption--img-2 img {
		max-width: 220px;
	}

	.hl-hero-slide--center-brand .hl-caption--img-4 img {
		max-width: 130px;
	}

	.hl-hero-slide--center-brand .hl-caption--btn-center {
		top: 60%;
	}

	.hl-hero-slide--right-promo .hl-caption--promo {
		bottom: 32%;
		max-width: 170px;
	}

	.hl-hero-slide--right-promo .hl-caption--btn-right {
		bottom: 8%;
	}

	.hl-hero-slide--right-detail .hl-caption--detail-1 { top: 6%; max-width: 220px; }
	.hl-hero-slide--right-detail .hl-caption--detail-2 { top: 24%; max-width: 60px; }
	.hl-hero-slide--right-detail .hl-caption--detail-3 { top: 38%; max-width: 190px; }
	.hl-hero-slide--right-detail .hl-caption--detail-4 { top: 50%; max-width: 140px; }
	.hl-hero-slide--right-detail .hl-caption--btn-right { bottom: 6%; }

	.hl-hero-slide--center-video .hl-caption--title { top: 14%; }
	.hl-hero-slide--center-video .hl-caption--desc { top: 26%; }
	.hl-hero-slide--center-video .hl-caption--img { top: 38%; }
	.hl-hero-slide--center-video .hl-caption--btn-center { top: 64%; }

	.hl-hero-slide--center-video .hl-caption--img img {
		max-width: 120px;
		max-height: 100px;
	}
}
