﻿.mooton-case-carousel {
	background: #ffffff;
	margin: 0;
	overflow: hidden;
	padding: 32px 52px 32px;
}

.mooton-case-carousel * {
	box-sizing: border-box;
}

.mooton-case-carousel__inner {
	margin: 0 auto;
	max-width: none;
	position: relative;
	width: 100%;
}

.mooton-case-carousel__head {
	align-items: flex-end;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-bottom: 26px;
}

.mooton-case-carousel__eyebrow {
	color: #d75179;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.8px;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.mooton-case-carousel__title {
	color: #d75179;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.12;
	margin: 0;
}

.mooton-case-carousel__desc {
	color: #485648;
	font-size: 18px;
	line-height: 1.7;
	margin: 14px 0 0;
	max-width: 720px;
}

.mooton-case-carousel__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	left: -52px;
	pointer-events: none;
	position: absolute;
	right: -52px;
	top: calc(50% + 72px);
	transform: translateY(-50%);
	z-index: 3;
	justify-content: space-between;
}

.mooton-case-carousel__arrow {
	align-items: center;
	background: #fff;
	border: 1px solid #cfdacb;
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
	color: #18251d;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 46px;
	justify-content: center;
	line-height: 0;
	padding: 0 0 2px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
	width: 46px;
	pointer-events: auto;
}

.mooton-case-carousel__arrow:hover {
	background: #2d7d4f;
	color: #fff;
	transform: translateY(-2px);
}

.mooton-case-carousel__viewport {
	overflow: hidden;
	padding: 2px;
	position: relative;
}

.mooton-case-carousel__track {
	--mooton-case-gap: 18px;
	--mooton-case-per-view: 4;
	display: flex;
	gap: var(--mooton-case-gap);
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.mooton-case-carousel__card {
	aspect-ratio: 16 / 9;
	background: #18251d;
	border-radius: 4px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
	color: inherit;
	display: flex;
	flex: 0 0 calc((100% - (var(--mooton-case-gap) * (var(--mooton-case-per-view) - 1))) / var(--mooton-case-per-view));
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: transform .22s ease, box-shadow .22s ease;
}

.mooton-case-carousel__card:hover {
	box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
	color: inherit;
	transform: translateY(-4px);
}

.mooton-case-carousel__image {
	background-position: center;
	background-size: cover;
	display: block;
	inset: 0;
	position: absolute;
	transition: transform .45s ease;
}

.mooton-case-carousel__card:hover .mooton-case-carousel__image {
	transform: scale(1.05);
}

.mooton-case-carousel__body {
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 40px 40px 36px;
	position: relative;
	z-index: 1;
}

.mooton-case-carousel__tag {
	color: #d8f0cf;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.mooton-case-carousel__case-title {
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.16;
	max-width: 720px;
}

.mooton-case-carousel__copy {
	color: rgba(255, 255, 255, .86);
	font-size: 18px;
	line-height: 1.6;
	max-width: 660px;
}

.mooton-case-carousel__dots {
	display: flex;
	gap: 9px;
	justify-content: center;
	margin-top: 22px;
}

.mooton-case-carousel__dot {
	background: #cbd8c7;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 9px;
	padding: 0;
	transition: background .2s ease, width .2s ease;
	width: 9px;
}

.mooton-case-carousel__dot.is-active {
	background: #2d7d4f;
	width: 28px;
}

.mooton-case-carousel__cta-wrap {
	margin-top: 26px;
	text-align: center;
}

.mooton-case-carousel__cta {
	align-items: center;
	background: rgb(10, 147, 227);
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(45, 125, 79, .2);
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	padding: 16px 28px;
	text-decoration: none;
}

.mooton-case-carousel__cta:hover {
	background: #215f3c;
	color: #fff;
}

@media (max-width: 1023px) {
	.mooton-case-carousel {
		padding-left: 48px;
		padding-right: 48px;
	}

	.mooton-case-carousel__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.mooton-case-carousel__controls {
		left: -44px;
		right: -44px;
		top: calc(50% + 88px);
	}

	/* Card body: drop aspect-ratio so text determines card height */
	.mooton-case-carousel__card {
		aspect-ratio: auto !important;
		height: auto !important;
	}
}

@media (max-width: 699px) {
	.mooton-case-carousel {
		padding: 32px 36px;
	}

	.mooton-case-carousel__title {
		font-size: 32px;
	}

	.mooton-case-carousel__desc {
		font-size: 16px;
	}

	/* Compact card body for small screens */
	.mooton-case-carousel__body {
		padding: 24px 20px 20px !important;
	}

	.mooton-case-carousel__case-title {
		font-size: 24px;
	}

	.mooton-case-carousel__copy {
		font-size: 15px;
	}

	.mooton-case-carousel__controls {
		left: -38px;
		right: -38px;
		top: calc(50% + 92px);
	}

	.mooton-case-carousel__arrow {
		height: 40px;
		width: 40px;
	}

}

/* ---- cards-only mode (no section chrome) ---- */

.mooton-case-carousel-cards {
	margin: 0;
	overflow: visible;
	padding: 0;
	position: relative;
}

.mooton-case-carousel-cards .mooton-case-carousel__controls {
	top: 50%;
}

@media (max-width: 1023px) {
	.mooton-case-carousel-cards .mooton-case-carousel__controls {
		top: 50%;
	}
}

@media (max-width: 699px) {
	.mooton-case-carousel-cards .mooton-case-carousel__controls {
		left: -38px;
		right: -38px;
		top: 50%;
	}
}

