/**
 * Testimonial Section - Glass card on gradient background
 *
 * @package Hello_Elementor_Child
 */

.yakda-testimonial {
	position: relative;
	z-index: 2;
	min-height: 560px;
	padding: 80px 0 120px;
	overflow: hidden;
}

/* Layer 1: Background */
.yakda-testimonial__bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.yakda-testimonial__gradient {
	position: absolute;
	inset: 0;
background: linear-gradient(135deg, #1e3a5f 0%, #9bcd2c 30%, #09352C 60%, #0c0d0e 100%);
	opacity: 0.95;
}

.yakda-testimonial__hero {
	position: absolute;
	top: -5%;
	right: -5%;
	width: 55%;
	height: 110%;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	animation: yakda-testimonial-zoom 20s ease-in-out infinite alternate;
}

.yakda-testimonial__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.4) 50%, transparent 100%);
}

@keyframes yakda-testimonial-zoom {
	0% { transform: scale(1); }
	100% { transform: scale(1.05); }
}

/* Layer 2: Glass Card */
.yakda-testimonial__wrap {
	position: relative;
	z-index: 2;
	margin-top: 120px;
}

.yakda-testimonial__card {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: center;
	padding: 50px 60px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: yakda-testimonial-card-in 0.8s ease-out;
}

@keyframes yakda-testimonial-card-in {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.yakda-testimonial {
	animation: yakda-testimonial-fadeup 0.6s ease-out;
}

@keyframes yakda-testimonial-fadeup {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Left Side */
.yakda-testimonial__label {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #09352c;
}

.yakda-testimonial__heading {
	margin: 0 0 24px;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	letter-spacing: 0.02em;
}

.yakda-testimonial__support-img {
	margin-bottom: 24px;
}

.yakda-testimonial__support-img img {
	display: block;
	max-width: 80px;
	height: auto;
	border-radius: 8px;
}

.yakda-testimonial__stats {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
}

.yakda-testimonial__stats-icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
color: #09352c;
}

/* Right Side - Slider */
.yakda-testimonial__right {
	position: relative;
}

.yakda-testimonial__slider {
	position: relative;
	min-height: 180px;
}

.yakda-testimonial__slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.yakda-testimonial__slide.yakda-testimonial__slide--active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.yakda-testimonial__quote {
	margin: 0 0 24px;
	max-width: 480px;
	font-size: 1.125rem;
	line-height: 1.7;
	color: #fff;
	font-style: normal;
}

.yakda-testimonial__client {
	display: flex;
	align-items: center;
	gap: 16px;
}

.yakda-testimonial__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.yakda-testimonial__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yakda-testimonial__client-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.yakda-testimonial__client-name {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.yakda-testimonial__client-position {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.yakda-testimonial__nav {
	display: flex;
	gap: 8px;
	margin-top: 24px;
	justify-content: flex-end;
}

.yakda-testimonial__nav-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.yakda-testimonial__nav-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.yakda-testimonial__nav-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Responsive */
@media (max-width: 991px) {
	.yakda-testimonial__card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.yakda-testimonial__left {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.yakda-testimonial__quote {
		margin-left: auto;
		margin-right: auto;
	}

	.yakda-testimonial__client {
		justify-content: center;
	}

	.yakda-testimonial__nav {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.yakda-testimonial {
		padding: 48px 0 80px;
		min-height: auto;
	}

	.yakda-testimonial__wrap {
		margin-top: 60px;
	}

	.yakda-testimonial__card {
		padding: 25px;
		gap: 32px;
	}

	.yakda-testimonial__quote {
		text-align: center;
		font-size: 1rem;
	}

	.yakda-testimonial__client {
		flex-direction: column;
		text-align: center;
	}

	.yakda-testimonial__hero {
		width: 70%;
		right: -15%;
	}
}
