/**
 * Hero Carousel Plugin Styles
 */

/* Carousel Wrapper */
.ajaehero-carousel-wrapper {
	position: relative;
	width: 100%;
	height: 100vh; /* Default, can be overridden by Elementor setting */
	overflow: hidden;
}

.ajaehero-carousel-wrapper .swiper-container {
	width: 100%;
	height: 100%;
}

/* Slide Base */
.ajaehero-slide {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	overflow: hidden;
}

/* Video Wrapper */
.ajaehero-video-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.ajaehero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none; /* Let overlay capture clicks if needed, or disable if controls shown */
}

/* Bug #9 Fix: Use a class toggled by JS instead of fragile data-attribute selector.
   When video controls are enabled, JS adds `.ajaehero-controls-active` to the wrapper. */
.ajaehero-carousel-wrapper.ajaehero-controls-active .ajaehero-video-wrapper {
	z-index: 10;
}
.ajaehero-carousel-wrapper.ajaehero-controls-active .ajaehero-video {
	pointer-events: auto;
}

/* Overlay */
.ajaehero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
	pointer-events: none;
}

/* Content Inner */
.ajaehero-slide-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;      /* Overridden by Elementor */
	justify-content: center;  /* Overridden by Elementor */
	padding: 20px;            /* Base padding */
	pointer-events: none;     /* Allow click through to video controls if any */
}

/* Content Box */
.ajaehero-content-box {
	max-width: 800px;
	text-align: center;
	pointer-events: auto;     /* Re-enable pointer events for buttons inside */
}

.ajaehero-title {
	margin: 0 0 15px 0;
	color: #fff;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
}

.ajaehero-subtitle {
	margin: 0 0 15px 0;
	color: #eee;
	font-size: 1.5rem;
	font-weight: 500;
}

.ajaehero-description {
	margin: 0 0 30px 0;
	color: #ddd;
	font-size: 1.1rem;
	line-height: 1.6;
}

.ajaehero-button {
	display: inline-block;
	padding: 15px 30px;
	background-color: #0073e6;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.ajaehero-button:hover {
	background-color: #005bb5;
	color: #fff;
}

/* Navigation Buttons */
.ajaehero-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.ajaehero-nav-btn:hover {
	background: rgba(0, 0, 0, 0.6);
}

.ajaehero-nav-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.ajaehero-nav-prev {
	left: 20px;
}

.ajaehero-nav-next {
	right: 20px;
}

/* Pagination */
.ajaehero-pagination {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 10;
}

.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #fff;
	opacity: 0.5;
	border-radius: 50%;
	display: inline-block;
	margin: 0 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	opacity: 1;
	background: #0073e6;
}

/* Slide Number */
.ajaehero-slide-number {
	position: absolute;
	bottom: 20px;
	right: 30px;
	z-index: 10;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	background: rgba(0,0,0,0.5);
	padding: 5px 15px;
	border-radius: 20px;
}

/* Ensure Swiper is displayed properly if elementor swiper is not loaded globally */
.swiper-container {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	z-index: 1;
}
.swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
}
.swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
}
