/*
 * Styles for Testimonials Block
 */

.testimonials-section {
	padding: 88px 0;
	background-color: var(--white);
	overflow: hidden;
	width: 100%;
	position: relative;
}

.testimonials-header-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Label Pill: E9EDFC bg, 25px side/10px vertical padding, gap 6px, text/dot 2342C8 */
.testimonials-label-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #E9EDFC;
	padding: 10px 25px;
	border-radius: 100px;
	margin-bottom: 20px;
}

.testimonials-label-dot {
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	border-radius: 50%;
}

.testimonials-label-text {
	font-family: 'Public Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: var(--primary-color);
	letter-spacing: 0.05em;
}

/* Heading: Public Sans, Medium 60px, line-height 70, letter spacing -3% */
.testimonials-title-editable,
.testimonials-header-content h2 {
	font-family: 'Public Sans', sans-serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 70px;
	letter-spacing: -0.03em;
	color: #0F172A;
	margin-bottom: 0;
}

/* Marquee Container with 48px gap from heading */
.testimonials-marquee-wrapper {
	margin-top: 48px;
	overflow: hidden;
	width: 100%;
	display: flex;
	position: relative;
}

/* Left & Right fading overlay to make the transition edge soft and premium */
.testimonials-marquee-wrapper::before,
.testimonials-marquee-wrapper::after {
	content: "";
	position: absolute;
	top: 0;
	width: 120px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.testimonials-marquee-wrapper::before {
	left: 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-marquee-wrapper::after {
	right: 0;
	background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Track holding the groups */
.testimonials-marquee-track {
	display: flex;
	width: max-content;
	animation: marquee-scroll-infinite 35s linear infinite;
}

.testimonials-marquee-track:hover {
	animation-play-state: paused;
}

.testimonials-marquee-group {
	display: flex;
	gap: 28px;
	padding-right: 28px;
}

/* Card: 348px width, 18px padding, 10px corner radius, border 1.5px solid #E2E8F0 */
.testimonials-card {
	width: 348px;
	padding: 18px;
	background-color: var(--white);
	border: 1.5px solid #E2E8F0;
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Stars: gap 3px, gap to content 20px */
.testimonials-stars {
	display: flex;
	gap: 3px;
	margin-bottom: 20px;
}

/* Content: Nunito 16px regular, line-height 21px, letter-spacing 2%, gap to author 20px */
.testimonials-content {
	font-family: var(--font-nunito);
	font-weight: 400;
	font-size: 16px;
	line-height: 21px;
	letter-spacing: 0.02em;
	color: var(--text-muted);
	margin-bottom: 20px;
	flex-grow: 1;
}

/* Author wrapper */
.testimonial-author-wrapper {
	display: flex;
	align-items: center;
	gap: 8px; /* Profile icon and name gap 8px */
}

/* Profile icon: light blue circle */
.testimonial-profile-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #E9EDFC;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Name: 18px Public Sans, 25px line height, 2% letter spacing */
.testimonial-name {
	font-family: 'Public Sans', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 25px;
	letter-spacing: 0.02em;
	color: #0F172A;
}

/* Block Editor specific adjustments */
.testimonials-block-editor-wrapper {
	padding: 20px;
	background-color: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	margin-bottom: 25px;
}

.testimonials-block-editor-wrapper h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-family: 'Public Sans', sans-serif;
	color: #0f172a;
}

.testimonials-block-editor-wrapper .card-editor-group {
	background-color: var(--white);
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	margin-bottom: 15px;
}

.testimonials-block-editor-wrapper .editor-preview-label {
	font-weight: bold;
	color: #64748b;
	margin-top: 25px;
	margin-bottom: 10px;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.testimonials-block-editor-wrapper .testimonials-marquee-wrapper {
	overflow-x: auto;
}

/* ==========================================
   Keyframes for marquee infinite scroll
   ========================================== */
@keyframes marquee-scroll-infinite {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* ==========================================
   Responsive Rules
   ========================================== */
@media (max-width: 1024px) {
	.testimonials-section {
		padding: 60px 0;
	}
	
	.testimonials-title-editable,
	.testimonials-header-content h2 {
		font-size: 48px;
		line-height: 56px;
	}
}

@media (max-width: 600px) {
	.testimonials-title-editable,
	.testimonials-header-content h2 {
		font-size: 34px;
		line-height: 42px;
	}
	
	.testimonials-marquee-wrapper::before,
	.testimonials-marquee-wrapper::after {
		width: 50px; /* Thinner overlays on mobile */
	}

	.testimonials-section {
        padding: 0px 24px 80px 24px;
    }
}
