/**
 * EB Testimonials Widget Styles
 *
 * Overlapping layout: large image with testimonial content floating on top.
 * Image position can be left or right.
 */

.eb-testimonials {
	position: relative;
	padding: 80px 0;
	min-height: 450px;
}

/* Image — positioned to one side */
.eb-testimonials__image {
	position: relative;
	width: 60%;
	min-height: 500px;
	overflow: hidden;
}

.eb-testimonials__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	border-radius: 4px;
	transition: transform 0.6s ease;
}

.eb-testimonials:hover .eb-testimonials__image img {
	transform: scale(1.03);
}

/* Content — floats on top of image from the opposite side */
.eb-testimonials__content {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 45%;
	max-width: 520px;
	background: rgba(248, 250, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 48px;
	z-index: 2;
}

/* Image LEFT → content floats from RIGHT */
.eb-testimonials--image-left .eb-testimonials__image {
	margin-right: auto;
}
.eb-testimonials--image-left .eb-testimonials__content {
	right: 0;
}

/* Image RIGHT → content floats from LEFT */
.eb-testimonials--image-right .eb-testimonials__image {
	margin-left: auto;
}
.eb-testimonials--image-right .eb-testimonials__content {
	left: 0;
}

/* Quote mark — decorative */
.eb-testimonials__quote-mark {
	font-size: 100px;
	line-height: 0.6;
	color: #E5E7EB;
	font-family: Georgia, serif;
	position: absolute;
	top: 24px;
	right: 32px;
	opacity: 0.5;
	pointer-events: none;
}

/* Slides */
.eb-testimonials__slides {
	position: relative;
	min-height: 160px;
}

.eb-testimonials__slide {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	transition: opacity 600ms ease;
	pointer-events: none;
}

.eb-testimonials__slide.active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
}

/* Quote text */
.eb-testimonials__text {
	font-size: 0.9375rem;
	line-height: 1.8;
	color: #4B5563;
	margin: 0 0 24px;
	padding: 0;
	border: none;
	font-style: normal;
}

/* Author row */
.eb-testimonials__author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.eb-testimonials__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.eb-testimonials__author-info {
	display: flex;
	flex-direction: column;
}

.eb-testimonials__name {
	font-size: 13px;
	font-weight: 600;
	color: #1E1B4B;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.eb-testimonials__position {
	font-size: 12px;
	color: #6B7280;
	margin-top: 2px;
}

/* Dots */
.eb-testimonials__dots {
	display: flex;
	gap: 8px;
	margin-top: 28px;
}

.eb-testimonials__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid #E5E7EB;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.eb-testimonials__dot:hover {
	border-color: #B09360;
}

.eb-testimonials__dot.active {
	background-color: #B09360;
	border-color: #B09360;
}

/* Responsive */
@media (max-width: 1024px) {
	.eb-testimonials__image {
		width: 55%;
	}
	.eb-testimonials__content {
		width: 50%;
		padding: 36px;
	}
}

@media (max-width: 768px) {
	.eb-testimonials {
		padding: 40px 0;
		min-height: auto;
	}

	.eb-testimonials__image {
		width: 100%;
		min-height: 280px;
	}

	.eb-testimonials__content {
		position: relative;
		top: auto;
		left: auto !important;
		right: auto !important;
		transform: none;
		width: 100%;
		max-width: none;
		margin-top: -40px;
		padding: 32px 24px;
	}

	.eb-testimonials__quote-mark {
		font-size: 60px;
		top: 16px;
		right: 20px;
	}
}
