/* ─────────────────────────────────────────────────────────────────────────────
   Dateka – Widget Témoignages
   Two-column layout: infinite logo marquee (left) + testimonial cards (right).
───────────────────────────────────────────────────────────────────────────── */

/* ── SECTION WRAPPER ── */
.dateka-testimonials {
	background-color: #ffffff;
	width: 100%;
	box-sizing: border-box;
}

.dateka-testimonials__inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

/* ── COMMON COLUMN STYLES ── */
.dateka-testimonials__left,
.dateka-testimonials__right {
	padding: 44px 40px;
	box-sizing: border-box;
}

.dateka-testimonials__left {
	flex: 0 0 48%;
	max-width: 48%;
	min-width: 0;
	background-color: #f8fafc;
	border-right: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.dateka-testimonials__right {
	flex: 1 1 0%;
	min-width: 0;
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

/* ── SECTION TITLES ── */
.dateka-testimonials__section-title {
	color: var(--dateka-navy, #002755);
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 28px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* ─────────────────────────────────────
   LEFT — Infinite Marquee Logo Ribbon & Grid
───────────────────────────────────── */
.dateka-testimonials__marquee-container {
	width: 100%;
	overflow: hidden;
	position: relative;
	padding: 6px 0;
}

/* Edge gradient mask for smooth fade in/out + vertical flex stack for 3 rows */
.dateka-testimonials__marquee-mask {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.dateka-testimonials__marquee-row {
	width: 100%;
	overflow: hidden;
	display: flex;
}

.dateka-testimonials__marquee-track {
	display: flex;
	align-items: center;
	gap: 12px;
	width: max-content;
	animation: dateka-marquee-left 28s linear infinite;
	will-change: transform;
}

.dateka-testimonials__marquee-track--reverse {
	animation: dateka-marquee-right 24s linear infinite;
}

.dateka-testimonials__marquee-container:hover .dateka-testimonials__marquee-track {
	animation-play-state: paused;
}

@keyframes dateka-marquee-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@keyframes dateka-marquee-right {
	0% {
		transform: translateX(-50%);
	}
	100% {
		transform: translateX(0);
	}
}

.dateka-testimonials__ref-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dateka-testimonials__ref-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 14px 20px;
	border: 1px solid rgba(0, 39, 85, 0.08);
	border-radius: 12px;
	background-color: #ffffff;
	text-decoration: none !important;
	box-sizing: border-box;
	box-shadow: 0 4px 14px rgba(0, 39, 85, 0.04);
	transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
	flex-shrink: 0;
}

.dateka-testimonials__ref-item--marquee {
	width: 155px;
	height: 68px;
	min-height: 68px;
	padding: 10px 16px;
}

.dateka-testimonials__ref-item:hover {
	border-color: rgba(201, 144, 72, 0.45);
	box-shadow: 0 10px 24px rgba(0, 39, 85, 0.09);
	transform: translateY(-3px) scale(1.03);
}

.dateka-testimonials__ref-logo {
	display: block;
	max-height: 48px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.dateka-testimonials__ref-name {
	color: var(--dateka-navy, #002755);
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: center;
	word-break: break-word;
	line-height: 1.35;
}

/* ─────────────────────────────────────
   RIGHT — Testimonial Carousel (NO CUTOFF FIX)
───────────────────────────────────── */
.dateka-testimonials__carousel {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	outline: none;
	transition: height 350ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dateka-testimonials__track {
	display: flex;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
	transition: transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.dateka-testimonials__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 4px;
}

/* Sleek testimonial card */
.dateka-testimonials__test-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background: #ffffff;
	border: 1px solid rgba(0, 39, 85, 0.08);
	border-radius: 16px;
	padding: 34px 34px 26px;
	box-sizing: border-box;
	box-shadow: 0 8px 30px rgba(0, 39, 85, 0.05);
	width: 100%;
	max-width: 100%;
	position: relative;
	overflow: hidden;
}

/* Decorative Gold Top Border Accent */
.dateka-testimonials__test-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--dateka-gold, #C99048), var(--dateka-gold-accent, #D4AF37));
}

/* Opening Quote Mark */
.dateka-testimonials__test-quote {
	display: block;
	font-size: 3.5rem;
	line-height: 0.8;
	color: var(--dateka-gold, #C99048);
	font-family: Georgia, "Times New Roman", serif;
	margin-bottom: 14px;
	user-select: none;
	opacity: 0.85;
}

/* Testimonial Quote Text — Wrapped cleanly, NO CUTOFF */
.dateka-testimonials__test-text {
	color: var(--dateka-navy, #002755);
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	font-size: 0.9375rem;
	line-height: 1.75;
	margin: 0 0 20px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
	max-width: 100%;
	box-sizing: border-box;
}

/* Testimonial Author Footer */
.dateka-testimonials__test-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
}

.dateka-testimonials__test-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid var(--dateka-gold, #C99048);
	box-shadow: 0 0 0 3px rgba(201, 144, 72, 0.15);
}

.dateka-testimonials__test-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dateka-testimonials__test-name {
	display: block;
	color: var(--dateka-navy, #002755);
	font-family: var(--e-global-typography-primary-font-family, Montserrat, Arial, sans-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.dateka-testimonials__test-function {
	display: block;
	color: var(--dateka-gold, #C99048);
	font-family: var(--e-global-typography-text-font-family, "Roboto Mono", monospace);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

/* ── Carousel Navigation ── */
.dateka-testimonials__carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 24px;
}

.dateka-testimonials__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--dateka-navy, #002755);
	background: #ffffff;
	color: var(--dateka-navy, #002755);
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
	flex-shrink: 0;
}

.dateka-testimonials__btn:hover {
	background-color: var(--dateka-navy, #002755);
	border-color: var(--dateka-navy, #002755);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 39, 85, 0.2);
}

.dateka-testimonials__btn:focus-visible {
	outline: 2px solid var(--dateka-gold, #C99048);
	outline-offset: 2px;
}

/* Navigation Dots */
.dateka-testimonials__dots {
	display: flex;
	gap: 8px;
	align-items: center;
}

.dateka-testimonials__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background-color: #cbd5e1;
	padding: 0;
	cursor: pointer;
	transition: background-color 220ms ease, width 220ms ease, border-radius 220ms ease;
}

.dateka-testimonials__dot.is-active {
	background-color: var(--dateka-gold, #C99048);
	width: 22px;
	border-radius: 10px;
}

.dateka-testimonials__dot:focus-visible {
	outline: 2px solid var(--dateka-navy, #002755);
	outline-offset: 2px;
}

/* ─────────────────────────────────────
   RESPONSIVE — Tablet (≤ 1024px)
───────────────────────────────────── */
@media (max-width: 1024px) {
	.dateka-testimonials__left {
		flex: 0 0 42%;
		max-width: 42%;
		padding: 32px 24px;
	}

	.dateka-testimonials__right {
		padding: 32px 24px;
	}

	.dateka-testimonials__test-card {
		padding: 28px 24px 22px;
	}
}

/* ─────────────────────────────────────
   RESPONSIVE — Mobile (≤ 767px)
───────────────────────────────────── */
@media (max-width: 767px) {
	.dateka-testimonials__inner {
		flex-direction: column !important;
		border-radius: 12px;
	}

	.dateka-testimonials__left {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		border-right: none !important;
		border-bottom: 1px solid #e2e8f0;
		padding: 32px 20px;
		box-sizing: border-box !important;
	}

	.dateka-testimonials__right {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		padding: 32px 20px;
		box-sizing: border-box !important;
	}

	.dateka-testimonials__marquee-container {
		width: 100%;
	}

	.dateka-testimonials__marquee-mask {
		gap: 10px;
	}

	.dateka-testimonials__ref-item--marquee {
		width: 140px;
		height: 62px;
		min-height: 62px;
		padding: 8px 14px;
	}

	.dateka-testimonials__ref-item--marquee .dateka-testimonials__ref-logo {
		max-height: 38px;
	}

	.dateka-testimonials__ref-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.dateka-testimonials__test-card {
		padding: 24px 20px 20px;
	}

	.dateka-testimonials__section-title {
		font-size: 1.2rem;
		margin-bottom: 20px;
	}
}

@media (max-width: 480px) {
	.dateka-testimonials__left,
	.dateka-testimonials__right {
		padding: 24px 16px;
	}

	.dateka-testimonials__ref-item--marquee {
		width: 125px;
		height: 56px;
		min-height: 56px;
		padding: 6px 10px;
	}

	.dateka-testimonials__ref-item--marquee .dateka-testimonials__ref-logo {
		max-height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dateka-testimonials__marquee-track {
		animation: none;
	}
	.dateka-testimonials__track {
		transition: none;
	}
}

