/* =====================================================================
   Banner Carousel Widget
   ===================================================================== */

.bcr-wrap {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.bcr-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* ---- Effect: slide ---- */
.bcr-effect-slide .bcr-track {
	display: flex;
	width: 100%;
	transition: transform 500ms ease;
	will-change: transform;
}

.bcr-effect-slide .bcr-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
}

/* ---- Effect: fade ---- */
.bcr-effect-fade .bcr-track {
	position: relative;
	width: 100%;
}

.bcr-effect-fade .bcr-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 500ms ease, visibility 500ms ease;
	pointer-events: none;
}

.bcr-effect-fade .bcr-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

/* The first slide defines the height for fade mode */
.bcr-effect-fade .bcr-slide:first-child {
	position: relative;
}

/* ---- Slide ---- */
.bcr-slide {
	position: relative;
	height: 500px;
	overflow: hidden;
	box-sizing: border-box;
}

.bcr-media-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/* Force fill to defeat any global `img { height: auto }` / `max-width` overrides */
.bcr-wrap .bcr-media-layer .bcr-media,
.bcr-wrap .bcr-media-layer img.bcr-image,
.bcr-wrap .bcr-media-layer video.bcr-video,
.bcr-wrap .bcr-media-layer iframe.bcr-iframe {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: cover;
	object-position: center;
}

.bcr-wrap .bcr-media-layer .bcr-image {
	user-select: none;
	-webkit-user-drag: none;
}

.bcr-wrap .bcr-media-layer .bcr-iframe {
	background: #000;
	object-fit: fill; /* iframes don't visually crop, fill is the only honest mode */
}

.bcr-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

/* ---- Content ---- */
.bcr-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	box-sizing: border-box;
	z-index: 2;
	pointer-events: none; /* let the underlying media show, button re-enables pointer */
}

.bcr-text-wrap {
	max-width: 760px;
	width: 100%;
	pointer-events: auto;
}

.bcr-subtitle {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 10px;
	line-height: 1.4;
}

.bcr-title {
	font-size: clamp(24px, 4vw, 48px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px 0;
	line-height: 1.2;
}

.bcr-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
	margin-bottom: 22px;
}

.bcr-btn {
	display: inline-block;
	padding: 12px 28px;
	background-color: #fff;
	color: #222;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	cursor: pointer;
	border: none;
}

.bcr-btn:hover {
	background-color: #a89d87;
	color: #fff;
	transform: translateY(-2px);
}

.bcr-slide-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: transparent;
	text-indent: -9999px;
	overflow: hidden;
}

/* ---- Arrows ---- */
.bcr-wrap .bcr-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0 none !important;
	outline: 0 none !important;
	background: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	z-index: 5;
	transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
	padding: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: inherit;
	text-decoration: none;
}

.bcr-wrap .bcr-nav:hover,
.bcr-wrap .bcr-nav:focus,
.bcr-wrap .bcr-nav:active,
.bcr-wrap .bcr-nav:focus-visible {
	border: 0 none !important;
	outline: 0 none !important;
	background-color: #fff;
}

.bcr-wrap .bcr-nav:hover {
	transform: translateY(-50%) scale(1.06);
}

.bcr-wrap .bcr-nav svg {
	stroke: #222;
	pointer-events: none;
}

.bcr-wrap .bcr-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.bcr-prev {
	left: 20px;
}

.bcr-next {
	right: 20px;
}

/* ---- Dots ---- */
.bcr-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 5;
}

.bcr-dots-inside .bcr-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
}

.bcr-dots-outside .bcr-dots {
	position: relative;
	margin-top: 16px;
}

.bcr-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.bcr-dot:hover {
	transform: scale(1.2);
}

.bcr-dot.is-active {
	background-color: #fff;
	transform: scale(1.25);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.bcr-prev {
		left: 10px;
	}
	.bcr-next {
		right: 10px;
	}
	.bcr-nav {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 767px) {
	.bcr-content {
		padding: 24px 18px;
	}
	.bcr-subtitle {
		font-size: 12px;
		margin-bottom: 8px;
	}
	.bcr-title {
		margin-bottom: 10px;
	}
	.bcr-desc {
		font-size: 14px;
		margin-bottom: 16px;
	}
	.bcr-btn {
		padding: 10px 22px;
		font-size: 13px;
	}
	.bcr-prev {
		left: 6px;
	}
	.bcr-next {
		right: 6px;
	}
	.bcr-nav {
		width: 36px;
		height: 36px;
	}
}

/* ---- Editor / preview safety ---- */
.elementor-editor-active .bcr-slide-link {
	pointer-events: none;
}
