/* Header Ad Slider — wide width, short height banner */

.hdrad-slider-wrapper {

	position: relative;
	width: var(--hdrad-slider-width);
	max-width: 100%;
	height: var(--hdrad-slider-height);
	overflow: hidden;
	 
	border-radius: 4px;
	margin: 0 auto 1.25rem;
	isolation: isolate;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.hdrad-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.hdrad-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s ease, visibility 0.55s ease;
	z-index: 0;
}

.hdrad-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hdrad-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	pointer-events: none;
}

/* Arrows */
.hdrad-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hdrad-arrow-bg);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.hdrad-slider-wrapper:hover .hdrad-arrow,
.hdrad-slider-wrapper:focus-within .hdrad-arrow {
	opacity: 1;
}

.hdrad-arrow:hover {
	background: var(--hdrad-arrow-bg-hover);
}

.hdrad-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	opacity: 1;
}

.hdrad-arrow-prev {
	left: 10px;
}

.hdrad-arrow-next {
	right: 10px;
}

.hdrad-arrow svg {
	display: block;
}

/* Dots below image area (inside short banner) */
.hdrad-dots {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
}

.hdrad-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hdrad-dot);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hdrad-dot:hover {
	background: rgba(255, 255, 255, 0.85);
}

.hdrad-dot.is-active {
	background: var(--hdrad-dot-active);
	width: 18px;
	border-radius: 4px;
	transform: none;
}

.hdrad-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Responsive — keep wide & short on mobile */
@media (max-width: 782px) {
	.hdrad-slider-wrapper {
		height: min(var(--hdrad-slider-height), 120px);
		border-radius: 0;
	}

	.hdrad-arrow {
		width: 30px;
		height: 30px;
		opacity: 1;
	}

	.hdrad-arrow-prev {
		left: 6px;
	}

	.hdrad-arrow-next {
		right: 6px;
	}

	.hdrad-dots {
		bottom: 6px;
		gap: 5px;
	}

	.hdrad-dot {
		width: 7px;
		height: 7px;
	}

	.hdrad-dot.is-active {
		width: 14px;
	}
}

/* Optional: place dots under the slider instead of over image
   Add class="dots-outside" on shortcode: class="dots-outside" */
.hdrad-slider-wrapper.dots-outside {
	overflow: visible;
	margin-bottom: 2rem;
}

.hdrad-slider-wrapper.dots-outside .hdrad-slider-track,
.hdrad-slider-wrapper.dots-outside .hdrad-slide,
.hdrad-slider-wrapper.dots-outside .hdrad-slide img {
	border-radius: inherit;
	overflow: hidden;
}

.hdrad-slider-wrapper.dots-outside .hdrad-dots {
	bottom: -22px;
	background: transparent;
}