/* Reset & Base */
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}

/* Outer Container */
.cards {
	background: transparent;
	display: grid;
	place-items: center;
	min-height: 100vh;
}

.outer {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Individual Testimonial Card */
.cards .card {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #fff;
	padding: 1.5rem;
	border-radius: 0.5rem;
	position: absolute;
	pointer-events: none;
	opacity: 0;
	animation: animate 15s infinite linear;
	animation-delay: calc(3s * var(--delay));
	/* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
	transition: all 0.3s ease-in-out;
}

/* Animate on hover pause */
.outer:hover .card {
	animation-play-state: paused;
}

/* Last card offset fix */
.cards .card:last-child {
	animation-delay: calc(-3s * var(--delay));
}

/* Card Header (Stars) */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.op-star {
	color: #28223f;
	font-size: 1.1rem;
}

/* Profile Info */
.profile {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.profile .img {
	height: 50px;
	width: 50px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.178);
}

.profile .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.profile .details {
	margin-left: 10px;
}

.card h4 {
	margin: 0;
	color: #000;
	font-size: 1.1rem;
}

.card p {
	margin: 0;
	color: #333;
	line-height: 1.6;
}

/* Animation Keyframes */
@keyframes animate {
	0% {
		opacity: 0;
		transform: translateY(100%) scale(0.5);
	}
	5%, 20% {
		opacity: 0.4;
		transform: translateY(100%) scale(0.7);
	}
	25%, 40% {
		opacity: 1;
		pointer-events: all;
		transform: translateY(0%) scale(1);
	}
	45%, 60% {
		opacity: 0.4;
		transform: translateY(-100%) scale(0.7);
	}
	65%, 100% {
		opacity: 0;
		transform: translateY(-100%) scale(0.5);
	}
}

/* Responsive Styles */
@media (max-width: 767px) {
	.cards .card {
		font-size: 14px;
		padding: 1rem;
	}
	.profile .img {
		height: 40px;
		width: 40px;
	}
}
