/* IEA Events Carousel */

.iea-events-carousel {
	width: 100%;
	position: relative;
}

/* Swiper needs slides to size to content height */
.iea-events-carousel .swiper-slide {
	height: auto;
}

.iea-ec__inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}

.iea-ec__content {
	flex: 1 1 0;
	min-width: 0;
}

.iea-ec__media {
	flex: 0 0 50%;
	max-width: 50%;
}

.iea-ec__media img {
	display: block;
	width: 100%;
	height: auto;
}

.iea-ec__title {
	margin: 0 0 8px;
	color: #b01116;
}

.iea-ec__title a {
	color: inherit;
	text-decoration: none;
}

.iea-ec__datetime {
	margin: 0 0 16px;
	color: #666;
	font-size: 0.875em;
}

.iea-ec__desc > *:first-child {
	margin-top: 0;
}

.iea-ec__desc > *:last-child {
	margin-bottom: 0;
}

/* Pagination dots */
.iea-events-carousel .swiper-pagination {
	position: static;
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.iea-events-carousel .swiper-pagination-bullet {
	margin: 0;
	background: #d9a7a8;
	opacity: 1;
}

.iea-events-carousel .swiper-pagination-bullet-active {
	background: #b01116;
}

/* Editor placeholder */
.iea-ec__notice {
	padding: 20px;
	text-align: center;
	color: #888;
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

/* Stack image + text on small screens */
@media (max-width: 767px) {
	.iea-events-carousel--stack-mobile .iea-ec__inner {
		flex-direction: column !important;
	}

	.iea-events-carousel--stack-mobile .iea-ec__media {
		flex-basis: auto;
		max-width: 100%;
		order: 2;
	}

	.iea-events-carousel--stack-mobile .iea-ec__content {
		order: 1;
	}
}
