/* Atlas Testimonials marquee
 * Self-contained: no JS, no jQuery, no external libraries.
 * Animation duplicates the card strip and translates one full group width
 * for a seamless infinite loop.
 */

.atlas-testimonials {
	background: #f0f4f8;
	padding: 70px 0 80px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.atlas-testimonials *,
.atlas-testimonials *::before,
.atlas-testimonials *::after {
	box-sizing: border-box;
}

.atlas-testimonials__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.atlas-testimonials__header {
	text-align: center;
	margin-bottom: 48px;
}

.atlas-testimonials__heading {
	font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
	font-weight: 700;
	color: #1c2b3a;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.atlas-testimonials__heading-bar {
	display: inline-block;
	width: 64px;
	height: 4px;
	background: #e85d5d;
	border-radius: 2px;
}

.atlas-testimonials__viewport {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 60px,
		#000 calc(100% - 60px),
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 60px,
		#000 calc(100% - 60px),
		transparent 100%
	);
}

.atlas-testimonials__track {
	display: flex;
	width: max-content;
	animation: atlas-testimonials-scroll var(--atlas-testimonials-speed, 40s) linear infinite;
	will-change: transform;
}

.atlas-testimonials__viewport:hover .atlas-testimonials__track,
.atlas-testimonials__track:focus-within {
	animation-play-state: paused;
}

.atlas-testimonials__group {
	display: flex;
	flex-shrink: 0;
	gap: 20px;
	padding-right: 20px;
}

@keyframes atlas-testimonials-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.atlas-testimonials__track {
		animation: none;
	}
	.atlas-testimonials__viewport {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}
	.atlas-testimonials__card {
		scroll-snap-align: start;
	}
}

/* Cards */
.atlas-testimonials__card {
	flex: 0 0 320px;
	width: 320px;
	background: #ffffff;
	border-radius: 12px;
	padding: 30px 28px 26px;
	box-shadow: 0 8px 28px rgba(28, 43, 58, 0.08);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
}

/* Stagger every other card vertically for visual rhythm */
.atlas-testimonials__group .atlas-testimonials__card:nth-child(even) {
	margin-top: 28px;
}

.atlas-testimonials__quote {
	color: #d8dee5;
	font-size: 36px;
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
	position: absolute;
	user-select: none;
}

.atlas-testimonials__quote--open {
	top: 16px;
	left: 18px;
}

.atlas-testimonials__quote--close {
	bottom: 12px;
	right: 18px;
}

.atlas-testimonials__text {
	color: #3a4a5c;
	font-size: 15px;
	line-height: 1.6;
	margin: 18px 0 22px;
	flex-grow: 1;
	position: relative;
	z-index: 1;
}

.atlas-testimonials__person {
	display: flex;
	align-items: center;
	gap: 14px;
	border-top: 1px solid #eef2f6;
	padding-top: 18px;
	margin-top: auto;
}

.atlas-testimonials__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #e85d5d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.atlas-testimonials__avatar--initials {
	background: linear-gradient(135deg, #e85d5d 0%, #f08080 100%);
}

.atlas-testimonials__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.atlas-testimonials__name {
	font-weight: 700;
	color: #1c2b3a;
	font-size: 15px;
	line-height: 1.3;
}

.atlas-testimonials__role {
	color: #6b7a8c;
	font-size: 13px;
	line-height: 1.35;
}

@media (max-width: 640px) {
	.atlas-testimonials {
		padding: 50px 0 60px;
	}
	.atlas-testimonials__header {
		margin-bottom: 32px;
	}
	.atlas-testimonials__card {
		flex: 0 0 280px;
		width: 280px;
		padding: 26px 22px 22px;
		min-height: 260px;
	}
	.atlas-testimonials__group {
		gap: 16px;
		padding-right: 16px;
	}
	.atlas-testimonials__group .atlas-testimonials__card:nth-child(even) {
		margin-top: 18px;
	}
}
