/**
 * Related Carousel – BEM, mobile-first
 * Breakpoints: Tailwind (640px, 768px, 1024px)
 */
.elementor {
	.agros-related-carousel {
		width: 100%;
		max-width: 1280px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	.agros-related-carousel__heading {
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.3;
		margin-bottom: 1rem;
	font-family: "Meta Black", sans-serif;
	}
	
	.agros-related-carousel__swiper {
		position: relative;
		overflow: hidden;
		padding-bottom: 2.5rem;
	}
	
	.agros-related-carousel__swiper .swiper-wrapper {
		align-items: stretch;
	}
	
	.agros-related-carousel__swiper .swiper-slide {
		height: auto;
	}
	
	.agros-related-carousel__card {
		height: 100%;
		background: transparent;
		border-radius: 0;
		overflow: hidden;
		box-shadow: none;
	}
	
	.agros-related-carousel__link {
		display: flex;
		flex-direction: column;
		height: 100%;
		text-decoration: none;
		color: inherit;
	}
	
	.agros-related-carousel__image-wrap {
		position: relative;
		width: 100%;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		background: #f3f4f6;
	}
	
	.agros-related-carousel__image-wrap::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
		opacity: 0;
		transition: opacity 200ms ease;
		pointer-events: none;
	}
	
	.agros-related-carousel__image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
	
	.agros-related-carousel__overlay {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 1rem;
		opacity: 0;
		transition: opacity 200ms ease;
		pointer-events: none;
	}
	
	.agros-related-carousel__overlay-title {
		color: #fff;
		font-size: 1.125rem;
		font-weight: 700;
		line-height: 1.15;
		font-family: "Meta Black", sans-serif;
		text-transform: none;
		letter-spacing: 0;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
		text-align: center;
		width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
		display: -webkit-box;
		line-clamp: 2;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		z-index: 10;
	}

/* Title alignment variants */
.agros-related-carousel--title-left .agros-related-carousel__heading {
	text-align: left;
}

.agros-related-carousel--title-center .agros-related-carousel__heading {
	text-align: center;
}

.agros-related-carousel--title-right .agros-related-carousel__heading {
	text-align: right;
}
	
	.agros-related-carousel__media {
		margin: 0;
	}
	
	.agros-related-carousel__picture {
		display: block;
		width: 100%;
		height: 100%;
	}
	
	.agros-related-carousel__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 2.5rem;
		height: 2.5rem;
		z-index: 2;
		cursor: pointer;
		border: 1px solid rgba(255, 255, 255, 0.85);
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.18);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
		transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
		opacity: 0.85;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
	}
	
	.agros-related-carousel__nav:hover {
		background: rgba(255, 255, 255, 0.28);
		opacity: 1;
	}
	
	.agros-related-carousel__nav::after {
		content: '';
		position: absolute;
		left: 52%;
		top: 50%;
		width: 0.6rem;
		height: 0.6rem;
		border-style: solid;
		border-color: transparent transparent #ffffff #ffffff;
		border-width: 0 0 2px 2px;
		transform: translate(-50%, -50%) rotate(45deg);
	}
	
	.agros-related-carousel__nav--next::after {
		border-color: #ffffff #ffffff transparent transparent;
		border-width: 2px 2px 0 0;
		transform: translate(-50%, -50%) rotate(45deg);
	}
	
	.agros-related-carousel__nav--prev {
		left: 0.5rem;
	}
	
	.agros-related-carousel__nav--prev::after {
	transform: translate(-50%, -50%) rotate(45deg);
	}
	
	.agros-related-carousel__nav--next {
		right: 0.5rem;
	}
	
	.agros-related-carousel__pagination {
		position: absolute;
		bottom: 0.5rem;
		left: 0;
		right: 0;
		text-align: center;
	}
	
	.agros-related-carousel__pagination .swiper-pagination-bullet {
		width: 0.5rem;
		height: 0.5rem;
		background: #d1d5db;
		opacity: 1;
		transition: background 0.2s ease, transform 0.2s ease;
	}
	
	.agros-related-carousel__pagination .swiper-pagination-bullet-active {
		background: #0b8547;
		transform: scale(1.25);
	}
	
	.agros-related-carousel__empty {
		margin: 0;
		padding: 1rem 0;
		color: #6b7280;
		font-size: 0.9375rem;
	}
	
	@media (min-width: 640px) {
		.agros-related-carousel {
			padding-left: 1.5rem;
			padding-right: 1.5rem;
		}
		.agros-related-carousel__heading {
			font-size: 1.5rem;
			margin-bottom: 1.25rem;
		}
		.agros-related-carousel__overlay-title {
			font-size: 1.25rem;
		}
	}
	
	@media (min-width: 768px) {
		.agros-related-carousel__heading {
			margin-bottom: 1.5rem;
		}
		.agros-related-carousel__overlay {
			padding: 1.25rem;
		}
	}
	
	@media (min-width: 1024px) {
		.agros-related-carousel {
			padding-left: 2rem;
			padding-right: 2rem;
		}
		.agros-related-carousel__heading {
			font-size: 1.875rem;
			margin-bottom: 1.75rem;
		}
	}
	
	/* Hover / focus behavior (matches Media Carousel style) */
	.agros-related-carousel__link:hover .agros-related-carousel__overlay,
	.agros-related-carousel__link:focus-visible .agros-related-carousel__overlay {
		opacity: 1;
	}
	
	.agros-related-carousel__link:hover .agros-related-carousel__image-wrap::after,
	.agros-related-carousel__link:focus-visible .agros-related-carousel__image-wrap::after {
		opacity: 1;
	}
}
