/**
 * AV Elementor Carousel — frontend styles.
 * Scoped to .avc-carousel-wrapper / .avc-* classes only.
 */

.avc-carousel-wrapper {
	position: relative;
	width: 100%;
}

.avc-carousel-wrapper .avc-swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.avc-carousel-wrapper .avc-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.avc-carousel-wrapper .avc-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* Slide card */
.avc-carousel-wrapper .avc-slide {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	overflow: hidden;
	min-height: 280px;
	border-radius: 8px;
	isolation: isolate;
	padding: 1.5rem;
}

/* Stacking: bg/video z0, overlay z1, foreground z2, content z3, nav z5 */
.avc-carousel-wrapper .avc-slide-bg,
.avc-carousel-wrapper .avc-slide-overlay,
.avc-carousel-wrapper .avc-slide-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.avc-carousel-wrapper .avc-slide-bg {
	z-index: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.avc-carousel-wrapper .avc-slide-video {
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.avc-carousel-wrapper .avc-slide-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.avc-carousel-wrapper .avc-slide-overlay {
	z-index: 1;
	pointer-events: none;
}

.avc-carousel-wrapper .avc-foreground-image {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.avc-carousel-wrapper .avc-foreground-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.avc-carousel-wrapper .avc-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: auto;
	max-width: 100%;
	color: #fff;
}

.avc-content-align-left .avc-carousel-wrapper .avc-content,
.avc-content-align-left .avc-carousel-wrapper .avc-content-main {
	align-items: flex-start;
	text-align: left;
}

.avc-content-align-center .avc-carousel-wrapper .avc-content,
.avc-content-align-center .avc-carousel-wrapper .avc-content-main {
	align-items: center;
	text-align: center;
}

.avc-content-align-right .avc-carousel-wrapper .avc-content,
.avc-content-align-right .avc-carousel-wrapper .avc-content-main {
	align-items: flex-end;
	text-align: right;
}

@media (max-width: 1024px) {
	.avc-content-align-left-tablet .avc-carousel-wrapper .avc-content,
	.avc-content-align-left-tablet .avc-carousel-wrapper .avc-content-main {
		align-items: flex-start;
		text-align: left;
	}

	.avc-content-align-center-tablet .avc-carousel-wrapper .avc-content,
	.avc-content-align-center-tablet .avc-carousel-wrapper .avc-content-main {
		align-items: center;
		text-align: center;
	}

	.avc-content-align-right-tablet .avc-carousel-wrapper .avc-content,
	.avc-content-align-right-tablet .avc-carousel-wrapper .avc-content-main {
		align-items: flex-end;
		text-align: right;
	}
}

@media (max-width: 767px) {
	.avc-content-align-left-mobile .avc-carousel-wrapper .avc-content,
	.avc-content-align-left-mobile .avc-carousel-wrapper .avc-content-main {
		align-items: flex-start;
		text-align: left;
	}

	.avc-content-align-center-mobile .avc-carousel-wrapper .avc-content,
	.avc-content-align-center-mobile .avc-carousel-wrapper .avc-content-main {
		align-items: center;
		text-align: center;
	}

	.avc-content-align-right-mobile .avc-carousel-wrapper .avc-content,
	.avc-content-align-right-mobile .avc-carousel-wrapper .avc-content-main {
		align-items: flex-end;
		text-align: right;
	}
}

/* Content elements — defaults (overridden by Elementor Style tab) */
.avc-carousel-wrapper .avc-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

.avc-carousel-wrapper .avc-content:has(.avc-badge) {
	flex: 1;
}

.avc-carousel-wrapper .avc-content-main {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}

.avc-carousel-wrapper .avc-content:has(.avc-badge) .avc-content-main {
	margin-top: auto;
}

.avc-carousel-wrapper .avc-subheading {
	font-size: 0.875rem;
	opacity: 0.85;
}

.avc-carousel-wrapper .avc-heading {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.avc-carousel-wrapper .avc-description {
	font-size: 0.9375rem;
	line-height: 1.5;
	opacity: 0.9;
}

.avc-carousel-wrapper .avc-description p {
	margin: 0 0 0.5rem;
}

.avc-carousel-wrapper .avc-description p:last-child {
	margin-bottom: 0;
}

.avc-carousel-wrapper .avc-button {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	border: 0;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.avc-carousel-wrapper .avc-icon {
	display: inline-flex;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
}

/* Navigation arrows */
.avc-carousel-wrapper .avc-carousel-nav {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow::after {
	font-family: swiper-icons, sans-serif;
	font-size: 16px;
	font-weight: 900;
	text-transform: none !important;
	letter-spacing: 0;
	font-variant: initial;
	line-height: 1;
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow-prev::after {
	content: 'prev';
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow-next::after {
	content: 'next';
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow:focus {
	outline: none;
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Inside — arrows overlay slide edges */
.avc-carousel-wrapper.avc-arrows-inside .avc-carousel-nav .avc-arrow-prev {
	left: 12px;
	right: auto;
}

.avc-carousel-wrapper.avc-arrows-inside .avc-carousel-nav .avc-arrow-next {
	right: 12px;
	left: auto;
}

/* Outside — arrows in wrapper padding gutters */
.elementor-widget-av_carousel:has(.avc-arrows-outside) .elementor-widget-container {
	overflow: visible;
}

.avc-carousel-wrapper.avc-arrows-outside {
	overflow: visible;
	box-sizing: border-box;
	padding-left: 52px;
	padding-right: 52px;
}

.avc-carousel-wrapper.avc-arrows-outside .avc-carousel-nav .avc-arrow-prev {
	left: 4px;
	right: auto;
}

.avc-carousel-wrapper.avc-arrows-outside .avc-carousel-nav .avc-arrow-next {
	right: 4px;
	left: auto;
}

.avc-carousel-wrapper .avc-carousel-nav .avc-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.avc-button-width-full .avc-carousel-wrapper .avc-button {
	display: block;
	width: 100%;
	align-self: stretch;
	text-align: center;
}

/* Pagination */
.avc-carousel-wrapper .avc-pagination {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

.avc-carousel-wrapper .avc-pagination--inside {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	width: 100%;
	padding: 0 16px;
	box-sizing: border-box;
}

.avc-carousel-wrapper .avc-carousel-footer {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 16px;
}

.avc-carousel-wrapper .avc-carousel-footer .avc-pagination {
	position: relative;
	bottom: auto;
	left: auto;
	right: auto;
	flex: 1 1 auto;
}

.avc-carousel-wrapper .avc-pagination .swiper-pagination-bullet {
	display: inline-block;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.avc-carousel-wrapper .avc-pagination .swiper-pagination-bullet:focus {
	outline: none;
}

.avc-carousel-wrapper .avc-pagination .swiper-pagination-bullet:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.avc-carousel-wrapper .avc-pagination .swiper-pagination-bullet-active {
	background: #fff;
}

/* Progress bar */
.avc-carousel-wrapper .avc-progressbar {
	z-index: 5;
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
}

.avc-carousel-wrapper .avc-progressbar--inside {
	position: absolute;
	bottom: 0;
	left: 0;
}

.avc-carousel-wrapper .avc-progressbar--outside {
	position: relative;
	flex: 1 1 100%;
}

.avc-carousel-wrapper .avc-progressbar .swiper-pagination-progressbar-fill {
	background: #fff;
}

/* Fraction counter */
.avc-carousel-wrapper .avc-fraction {
	z-index: 5;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
}

.avc-carousel-wrapper .avc-fraction--inside {
	position: absolute;
	bottom: 12px;
	left: 16px;
}

.avc-carousel-wrapper .avc-fraction--outside {
	position: relative;
	bottom: auto;
	left: auto;
}

/* Content animations */
.avc-carousel-wrapper .avc-animate-item {
	opacity: 0;
}

.avc-carousel-wrapper .avc-animate-item.avc-shown {
	opacity: 1;
	transform: none;
}

.avc-carousel-wrapper .avc-animate-item.avc-animated {
	animation-fill-mode: both;
}

.avc-carousel-wrapper .avc-animate-item.avc-anim-fade-in.avc-animated {
	animation-name: avc-fade-in;
}

.avc-carousel-wrapper .avc-animate-item.avc-anim-slide-up.avc-animated {
	animation-name: avc-slide-up;
}

.avc-carousel-wrapper .avc-animate-item.avc-anim-slide-left.avc-animated {
	animation-name: avc-slide-left;
}

.avc-carousel-wrapper .avc-animate-item.avc-anim-zoom-in.avc-animated {
	animation-name: avc-zoom-in;
}

@keyframes avc-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes avc-slide-up {
	from {
		opacity: 0;
		transform: translate3d(0, 24px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes avc-slide-left {
	from {
		opacity: 0;
		transform: translate3d(24px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes avc-zoom-in {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.avc-carousel-wrapper .avc-animate-item {
		opacity: 1 !important;
		animation: none !important;
		transform: none !important;
	}

	.avc-carousel-wrapper .avc-arrow,
	.avc-carousel-wrapper .avc-button,
	.avc-carousel-wrapper .avc-pagination .swiper-pagination-bullet {
		transition: none;
	}
}
