/*
 * 首頁英雄輪播：第一張保留 post-13 原版特效；其餘為純圖片。
 */
.elementor-13 .elementor-element.elementor-element-06495f5.sc-candy-hero-carousel-host {
	position: relative;
}

/* 僅在顯示圖片張時改用深色底（不影響第一張霓虹首屏背景） */
.elementor-13 .elementor-element.elementor-element-06495f5.sc-candy-hero-carousel-host.sc-candy-hero-carousel-host--image-active:not(.elementor-motion-effects-element-type-background),
.elementor-13 .elementor-element.elementor-element-06495f5.sc-candy-hero-carousel-host.sc-candy-hero-carousel-host--image-active > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-image: none !important;
	background-color: #0a0a0a;
}

.sc-candy-hero-carousel {
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.sc-candy-hero-carousel--mixed .sc-candy-hero-viewport {
	line-height: normal;
}

.sc-candy-hero-viewport {
	width: 100%;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.sc-candy-hero-track {
	display: flex;
	width: 100%;
	align-items: stretch;
	will-change: transform;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-candy-hero-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	box-sizing: border-box;
}

.sc-candy-hero-slide:not(.is-active) {
	pointer-events: none;
}

/* ---- 第一張：原版 Elementor 首屏（wm-glitch / 按鈕等由 post-13 承載） ---- */
.sc-candy-hero-slide--default {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
	padding: 0;
}

.sc-candy-hero-slide--default .elementor-element-d62f3c7 {
	width: 100%;
	max-width: 400px;
}

/* ---- 圖片張 ---- */
.sc-candy-hero-slide--image {
	display: block;
	line-height: 0;
}

.sc-candy-hero-slide__frame {
	width: 100%;
	margin: 0;
	padding: 0;
}

.sc-candy-hero-slide__link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.sc-candy-hero-slide__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(72vh, 560px);
	object-fit: cover;
	object-position: center center;
	margin: 0;
	vertical-align: top;
}

.sc-candy-hero-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0 1rem 0.25rem;
	list-style: none;
}

.sc-candy-hero-dots[hidden] {
	display: none !important;
}

.sc-candy-hero-dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 2px solid #39ff14;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.sc-candy-hero-dot:hover,
.sc-candy-hero-dot:focus-visible {
	background-color: rgba(57, 255, 20, 0.35);
	outline: none;
}

.sc-candy-hero-dot.is-active {
	background-color: #39ff14;
	transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
	.sc-candy-hero-track {
		transition: none;
	}
}

@media (max-width: 767px) {
	.sc-candy-hero-slide--default {
		min-height: 320px;
	}

	.sc-candy-hero-slide--default .elementor-element-d62f3c7 {
		max-width: calc(100% - 2rem);
	}

	.sc-candy-hero-slide__img {
		max-height: min(56vh, 420px);
	}
}
