/* Hero slider trang chủ: các slide là .home-unified-hero của theme, xếp chồng và chuyển bằng fade. */
.hdc-hero-slider {
	position: relative;
	overflow: hidden;
	background: var(--dx-navy, #001f3f);
}

.hdc-hero-slider .hdc-hero-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hdc-hero-slider .hdc-hero-slide:not(:first-child) {
	position: absolute;
	inset: 0;
}

.hdc-hero-slider .hdc-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease;
	z-index: 1;
}

.hdc-hero-slider .hdc-hero-slide:not(.is-active) .home-unified-hero__content {
	animation: none;
}

/* Tiêu đề slide 2+ là h2: lấy lại kiểu h1 hero của theme. */
.home-unified-hero .hdc-hero-title {
	color: #fff;
	font-size: clamp(42px, 5.4vw, 76px);
	line-height: 1.03;
	font-weight: var(--dx-heading-weight);
	text-transform: uppercase;
	letter-spacing: 0;
	margin: 0 0 20px;
}

.hdc-hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 3;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.hdc-hero-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}

.hdc-hero-slider__dot.is-active {
	width: 28px;
	background: #fff;
}

.hdc-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: rgba(2, 12, 25, 0.35);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease;
}

.hdc-hero-slider__arrow:hover,
.hdc-hero-slider__arrow:focus-visible {
	background: rgba(2, 12, 25, 0.6);
}

.hdc-hero-slider__arrow--prev {
	left: 24px;
}

.hdc-hero-slider__arrow--next {
	right: 24px;
}

.hdc-hero-slider__dot:focus-visible,
.hdc-hero-slider__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.home-unified-hero .hdc-hero-title {
		overflow-wrap: break-word;
		max-width: 310px;
		margin: 0 auto 12px;
		font-size: clamp(25px, 7.4vw, 30px);
		line-height: 1;
	}

	.hdc-hero-slider__arrow {
		display: none;
	}

	.hdc-hero-slider__dots {
		bottom: 12px;
		gap: 8px;
	}

	.hdc-hero-slider__dot {
		width: 8px;
		height: 8px;
	}

	.hdc-hero-slider__dot.is-active {
		width: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdc-hero-slider .hdc-hero-slide,
	.hdc-hero-slider .hdc-hero-slide.is-active {
		transition: none;
	}
}
