/**
 * W3 Relations Carousel Stylesheet
 * Supports 7 Arrow Positions, Nested Containers & Slick Controls
 */

.w3-relations-carousel-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* Slick Slider Base Container */
.w3-relations-carousel-slider {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Slide Container */
.w3-relations-carousel-slider .slick-slide {
	outline: none;
	box-sizing: border-box;
	transition: opacity 0.3s ease;
}

.w3-relations-carousel-slider .slick-slide>.e-con,
.w3-relations-carousel-slider .slick-slide>.elementor-element {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Arrow Navigation Common */
.w3-relations-carousel-wrapper .w3-carousel-arrow {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	border-radius: 50%;
	cursor: pointer;
	z-index: 15;
	border: none;
	padding: 0;
	transition: all 0.3s ease;
	outline: none;
}

.w3-relations-carousel-wrapper .w3-carousel-arrow:hover {
	background-color: #333333;
	color: #ffffff;
}

.w3-relations-carousel-wrapper .w3-carousel-arrow svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.w3-relations-carousel-wrapper .w3-carousel-arrow i {
	font-size: 18px;
	line-height: 1;
}

/* Disabled Arrow State */
.w3-relations-carousel-wrapper .w3-carousel-arrow.slick-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* -------------------------------------------------------------
 * 7 ARROW POSITIONS
 * 1. Left / Right (classic sides)
 * 2. Top Left
 * 3. Top Center
 * 4. Top Right
 * 5. Bottom Left
 * 6. Bottom Center
 * 7. Bottom Right
 * ----------------------------------------------------------- */

/* 1. Left / Right (Sides) */
.w3-relations-carousel-wrapper.arrow-pos-left_right .w3-carousel-prev {
	top: 50%;
	left: -20px;
	transform: translateY(-50%);
}

.w3-relations-carousel-wrapper.arrow-pos-left_right .w3-carousel-next {
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
}

/* 2. Top Left */
.w3-relations-carousel-wrapper.arrow-pos-top_left {
	padding-top: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-top_left .w3-carousel-prev {
	top: 0;
	left: 0;
}

.w3-relations-carousel-wrapper.arrow-pos-top_left .w3-carousel-next {
	top: 0;
	left: 48px;
}

/* 3. Top Center */
.w3-relations-carousel-wrapper.arrow-pos-top_center {
	padding-top: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-top_center .w3-carousel-prev {
	top: 0;
	left: calc(50% - 46px);
}

.w3-relations-carousel-wrapper.arrow-pos-top_center .w3-carousel-next {
	top: 0;
	left: calc(50% + 4px);
}

/* 4. Top Right */
.w3-relations-carousel-wrapper.arrow-pos-top_right {
	padding-top: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-top_right .w3-carousel-prev {
	top: 0;
	right: 48px;
}

.w3-relations-carousel-wrapper.arrow-pos-top_right .w3-carousel-next {
	top: 0;
	right: 0;
}

/* 5. Bottom Left */
.w3-relations-carousel-wrapper.arrow-pos-bottom_left {
	padding-bottom: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_left .w3-carousel-prev {
	bottom: 0;
	left: 0;
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_left .w3-carousel-next {
	bottom: 0;
	left: 48px;
}

/* 6. Bottom Center */
.w3-relations-carousel-wrapper.arrow-pos-bottom_center {
	padding-bottom: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_center .w3-carousel-prev {
	bottom: 0;
	left: calc(50% - 46px);
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_center .w3-carousel-next {
	bottom: 0;
	left: calc(50% + 4px);
}

/* 7. Bottom Right */
.w3-relations-carousel-wrapper.arrow-pos-bottom_right {
	padding-bottom: 50px;
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_right .w3-carousel-prev {
	bottom: 0;
	right: 48px;
}

.w3-relations-carousel-wrapper.arrow-pos-bottom_right .w3-carousel-next {
	bottom: 0;
	right: 0;
}

/* -------------------------------------------------------------
 * Dots Navigation
 * ----------------------------------------------------------- */
.w3-relations-carousel-wrapper .slick-dots {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 15px 0 0 0;
	padding: 0;
	gap: 8px;
}

.w3-relations-carousel-wrapper .slick-dots li {
	margin: 0;
	padding: 0;
}

.w3-relations-carousel-wrapper .slick-dots li button {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #cccccc;
	text-indent: -9999px;
	cursor: pointer;
	outline: none;
	transition: all 0.3s ease;
}

.w3-relations-carousel-wrapper .slick-dots li.slick-active button {
	background: #0073aa;
	transform: scale(1.25);
}

/* -------------------------------------------------------------
 * Elementor Editor Mode: Native Container Drop Zones
 * ----------------------------------------------------------- */
.elementor-editor-active .w3-relations-carousel-slider,
.elementor-edit-mode .w3-relations-carousel-slider,
.elementor-edit-area .w3-relations-carousel-slider,
body.elementor-editor-active .w3-relations-carousel-slider {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	gap: 20px;
	width: 100%;
	min-height: 180px;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

/* Hide browser scrollbar in editor mode */
.elementor-editor-active .w3-relations-carousel-slider,
.elementor-edit-mode .w3-relations-carousel-slider,
.elementor-edit-area .w3-relations-carousel-slider,
body.elementor-editor-active .w3-relations-carousel-slider {
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

.elementor-editor-active .w3-relations-carousel-slider::-webkit-scrollbar,
.elementor-edit-mode .w3-relations-carousel-slider::-webkit-scrollbar,
.elementor-edit-area .w3-relations-carousel-slider::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con,
.elementor-edit-area .w3-relations-carousel-slider>.e-con,
body.elementor-editor-active .w3-relations-carousel-slider>.e-con,
.elementor-editor-active .w3-relations-carousel-slider>.elementor-element,
.elementor-edit-mode .w3-relations-carousel-slider>.elementor-element,
.elementor-edit-area .w3-relations-carousel-slider>.elementor-element {
	flex: 0 0 calc((100% - (var(--w3-slides-to-show, 3) - 1) * 20px) / var(--w3-slides-to-show, 3)) !important;
	width: calc((100% - (var(--w3-slides-to-show, 3) - 1) * 20px) / var(--w3-slides-to-show, 3)) !important;
	max-width: calc((100% - (var(--w3-slides-to-show, 3) - 1) * 20px) / var(--w3-slides-to-show, 3)) !important;
	min-width: 240px;
	min-height: 180px;
	scroll-snap-align: start;
	position: relative;
	box-sizing: border-box;
}


.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(1)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(1)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(1)::before {
	content: 'Slide #1';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(2)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(2)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(2)::before {
	content: 'Slide #2';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(3)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(3)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(3)::before {
	content: 'Slide #3';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(4)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(4)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(4)::before {
	content: 'Slide #4';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(5)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(5)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(5)::before {
	content: 'Slide #5';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con:nth-child(6)::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con:nth-child(6)::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con:nth-child(6)::before {
	content: 'Slide #6';
}

.elementor-editor-active .w3-relations-carousel-slider>.e-con[data-title]::before,
.elementor-edit-mode .w3-relations-carousel-slider>.e-con[data-title]::before,
.elementor-edit-area .w3-relations-carousel-slider>.e-con[data-title]::before,
body.elementor-editor-active .w3-relations-carousel-slider>.e-con[data-title]::before {
	content: attr(data-title);
}

.w3-relations-carousel-slider .elementor-empty-view {
	min-height: 120px;
}

/* Ensure slide containers stretch to 100% width within slick track on frontend */
.w3-relations-carousel-slider .slick-track {
	display: flex !important;
}

.w3-relations-carousel-slider .slick-slide {
	height: auto;
	display: flex !important;
	flex-direction: column;
	flex-shrink: 0 !important;
}

.w3-relations-carousel-slider .slick-slide>div {
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.w3-relations-carousel-slider .slick-slide>.e-con,
.w3-relations-carousel-slider .slick-slide>div>.e-con {
	width: 100% !important;
	flex: 1;
}