/* Dentium Events Slider - background set via Elementor Style > Layout */

/* Entrance & slide transition keyframes */
@keyframes dentiumFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dentiumFadeInRight {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes dentiumSlideFade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.dentium-events-slider {
	position: relative;
	overflow: hidden;
	cursor: grab;
}

.dentium-events-slider.dentium-dragging {
	cursor: grabbing;
	user-select: none;
}

.dentium-slider__track {
	position: relative;
	width: 100%;
	min-height: 320px;
}

.dentium-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 320px;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.dentium-slider__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

/* Entrance animation: text (staggered) - re-triggers on slide change via .dentium-has-entrance */
.dentium-events-slider.dentium-has-entrance .dentium-slider__slide.is-active .dentium-slider__heading {
	opacity: 0;
	animation: dentiumFadeUp 0.55s ease-out 0.05s forwards;
}

.dentium-events-slider.dentium-has-entrance .dentium-slider__slide.is-active .dentium-slider__date {
	opacity: 0;
	animation: dentiumFadeUp 0.55s ease-out 0.15s forwards;
}

.dentium-events-slider.dentium-has-entrance .dentium-slider__slide.is-active .dentium-slider__btn {
	opacity: 0;
	animation: dentiumFadeUp 0.55s ease-out 0.25s forwards;
}

/* Entrance animation: image */
.dentium-events-slider.dentium-has-entrance .dentium-slider__slide.is-active .dentium-slider__media {
	opacity: 0;
	animation: dentiumFadeInRight 0.6s ease-out 0.1s forwards;
}

.dentium-slider__content {
	flex: 1 1 50%;
	min-width: 280px;
	padding: 40px 30px 40px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.dentium-slider__heading {
	margin: 0 0 12px;
	font-size: 1.5rem;
	line-height: 1.3;
}

.dentium-slider__date {
	margin-bottom: 20px;
	font-size: 0.95rem;
	opacity: 0.9;
}

.dentium-slider__btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s;
	align-self: flex-start;
	border: none;
	cursor: pointer;
	color: var(--dentium-btn-color, #ffffff) !important;
	background-color: var(--dentium-btn-bg, #F7B900) !important;
}

.dentium-slider__btn:hover,
.dentium-slider__btn:focus,
.dentium-slider__btn:visited {
	color: var(--dentium-btn-color, #ffffff) !important;
	background-color: var(--dentium-btn-bg, #F7B900) !important;
	opacity: 0.9;
}

.dentium-slider__media {
	flex: 1 1 50%;
	min-width: 280px;
	min-height: 260px;
	overflow: hidden;
}

.dentium-slider__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Dots */
.dentium-slider__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	flex-wrap: wrap;
}

.dentium-slider__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s, background-color 0.2s;
	background-color: #242424;
}

.dentium-slider__dot:hover {
	transform: scale(1.15);
}

.dentium-slider__dot.is-active {
	background-color: #F7B900;
	transform: scale(1.2);
}

/* Arrows */
.dentium-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #242424;
	background: rgba(255, 255, 255, 0.9);
	color: #242424;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
	z-index: 2;
}

.dentium-slider__arrow:hover {
	opacity: 0.85;
}

.dentium-slider__arrow--prev {
	left: 15px;
}

.dentium-slider__arrow--next {
	right: 15px;
}

.dentium-slider__arrow svg {
	width: 24px;
	height: 24px;
	display: block;
}

@media (max-width: 767px) {
	.dentium-slider__content,
	.dentium-slider__media {
		flex: 1 1 100%;
		min-width: 100%;
	}

	.dentium-slider__content {
		padding: 30px 20px;
	}

	.dentium-slider__media {
		min-height: 220px;
	}

	.dentium-slider__arrow {
		width: 40px;
		height: 40px;
		left: 10px;
	}

	.dentium-slider__arrow--next {
		right: 10px;
	}

	.dentium-slider__arrow svg {
		width: 20px;
		height: 20px;
	}
}
