/* ========================================
   CAROUSEL COMPONENT STYLES
   ======================================== */

/* SPECIFIC SECTION STYLES */
section.carousel-section {
	background: #F5F5F5;
	border-radius: 38px;
	margin-top: -70px;
	padding: 55px 0px;
	padding-bottom: 64px;
}

/* GENERIC CAROUSEL STYLES */
.container-wide[class*="-carousel-container"] {
	padding: 0;
	max-width: 1300px;
}

[class*="-controls-container"] {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 44px;
	gap: 10px;
}

[class*="-controls-container"] .section-title {
	margin-bottom: 0;
}

[class*="-controls-arrows-desktop"] {
	display: none;
}

[class*="-carousel"] {
	overflow: visible;
	padding: 10px 0px !important;
	width: 100%;
	position: relative;
	height: auto;
}

[class*="-carousel"] .swiper-wrapper {
	align-items: stretch;
	display: flex;
}

[class*="-carousel"] .swiper-slide {
	opacity: 0.8;
	transform: scale(0.9);
	transition: all 0.3s ease;
	flex-shrink: 0;
	width: auto;
	height: auto;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

[class*="-carousel"] .swiper-slide-active {
	opacity: 1;
	transform: scale(1);
	z-index: 2;
}

[class*="-carousel"] .action-item {
	border-radius: 15px;
	overflow: hidden;
	position: relative;
	width: 100%;
	max-width: 400px;
	min-height: 500px;
	height: auto;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[class*="-carousel"] .action-item .action-image-block {
	position: relative;
	overflow: hidden;
	height: 280px;
	flex-shrink: 0;
}

[class*="-carousel"] .action-item .action-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

[class*="-carousel"] .action-item .action-content {
	padding: 20px;
	background: #fff;
	color: #000;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1;
	min-height: 0;
}

[class*="-carousel"] .action-item .action-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #000;
	line-height: 1.4;
}

[class*="-carousel"] .action-item .action-description {
	font-size: 0.9rem;
	line-height: 1.4;
	margin: 0 0 20px 0;
	color: #666;
	flex-grow: 1;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

/* SPECIFIC CAROUSEL FIXES */
/* RSE Actions Carousel */
.actions-carousel .action-item .action-content {
	justify-content: space-between;
}

.actions-carousel .action-item .action-description {
	flex: 1;
}

/* News Carousel */
.news-carousel .action-item .action-content {
	justify-content: flex-start;
}

.news-carousel .action-item .action-description {
	flex-grow: 1;
}

/* Desktop Carousel Styles */
@media (min-width: 769px) {
	[class*="-controls-arrows-desktop"] {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	[class*="-controls-arrow-button"] {
		width: 54px;
		height: 50px;
		background: #fff;
		border: none;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		outline: none;
		box-shadow: none;
		border-radius: 0;
		transition: all 0.3s ease;
	}

	[class*="-controls-arrow-button"]:hover {
		background: #D6F510;
	}

	[class*="-controls-arrow-button"].prev {
		border-radius: 10px 0 0 10px;
	}

	[class*="-controls-arrow-button"].next {
		border-radius: 0 10px 10px 0;
	}

	[class*="-carousel"] .swiper-slide {
		opacity: 1;
		max-width: 70%;
	}

	[class*="-carousel"] .action-item {
		width: 100%;
		max-width: 400px;
		min-height: 550px;
		height: auto;
	}

	[class*="-carousel"] .action-item .action-image-block {
		height: 320px;
	}

	[class*="-carousel"] .action-item .action-content {
		padding: 25px;
	}

	[class*="-carousel"] .action-item .action-title {
		font-size: 1.5rem;
		margin: 0 0 15px 0;
	}

	[class*="-carousel"] .action-item .action-description {
		font-size: 1rem;
		margin: 0 0 25px 0;
		-webkit-line-clamp: 5;
	}

	.container-wide[class*="-carousel-container"] {
		padding: 0 10px;
	}

	/* Desktop specific fixes */
	.actions-carousel .action-item {
		height: 550px;
	}

	.news-carousel .action-item {
		min-height: 550px;
		height: auto;
	}
}
