.ra-slider {
	position: relative;
	width: 100%;
	height: 520px;
	min-height: 0;
	overflow: hidden;
	border-radius: 12px;
	isolation: isolate;
	background: #111;
}

.ra-slider__slides {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ra-slider__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--ra-transition-duration, 500ms) ease, visibility var(--ra-transition-duration, 500ms) ease;
}

.ra-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

/* تصویر همیشه کل اسلاید را می‌پوشاند؛ محتوا روی خود تصویر قرار می‌گیرد. */
.ra-slider__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center center;
}

.ra-slider__image--empty {
	background: #333;
}

.ra-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
	opacity: .55;
	pointer-events: none;
}

.ra-slider__content {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 14%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 1100px;
	color: #fff;
}

.ra-slider__badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 12px;
	border-radius: 5px;
	background: #000;
	color: #fff;
	line-height: 1.5;
}

.ra-slider__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 4vw, 48px);
	line-height: 1.25;
	font-weight: 700;
}

.ra-slider__title a {
	color: #fff;
	text-decoration: none;
}

.ra-slider__title a:hover {
	color: #fff;
}

.ra-slider__date {
	display: block;
	color: #fff;
	font-size: 14px;
	opacity: .9;
}

.ra-slider__navigation {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: max-content;
	max-width: calc(100% - 24px);
}

.ra-slider__previous,
.ra-slider__next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.ra-slider__previous:hover,
.ra-slider__next:hover {
	transform: scale(1.06);
	background: rgba(0,0,0,.7);
}

.ra-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.ra-slider__dot {
	display: block;
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	opacity: .45;
	cursor: pointer;
	transition: width .2s ease, opacity .2s ease;
}

.ra-slider__dot.is-active {
	width: 24px;
	border-radius: 20px;
	opacity: 1;
}

.ra-slider__previous:focus-visible,
.ra-slider__next:focus-visible,
.ra-slider__dot:focus-visible,
.ra-slider__title a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ra-empty-message {
	margin: 0;
	padding: 20px;
}

@media (max-width: 767px) {
	.ra-slider {
		height: 420px;
		min-height: 0;
		border-radius: 8px;
	}

	.ra-slider__content {
		width: 88%;
		max-width: 100%;
	}

	.ra-slider__title {
		font-size: 25px;
		line-height: 1.28;
	}

	.ra-slider__navigation {
		bottom: 15px;
	}

	.ra-slider__previous,
	.ra-slider__next {
		width: 38px;
		height: 38px;
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.ra-slider {
		height: 380px;
	}

	.ra-slider__content {
		width: calc(100% - 28px);
	}

	.ra-slider__badge {
		margin-bottom: 9px;
		padding: 5px 9px;
		font-size: 12px;
	}

	.ra-slider__title {
		font-size: 22px;
		margin-bottom: 8px;
	}

	.ra-slider__date {
		font-size: 12px;
	}

	.ra-slider__navigation {
		gap: 8px;
		bottom: 10px;
	}
}
