/*!
 * Dreamcode Testimonial Carousel - Style
 * Author: dreamcode
 */

.dc-testimonial-carousel {
	--dc-spacing: 230px;
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	direction: rtl;
	font-family: inherit;
	overflow-x: hidden;
}

/* ---------- ردیف آواتارها + فلش‌ها ---------- */
.dc-carousel-avatars {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 170px;
	margin-bottom: 18px;
    flex-direction: row-reverse;
}

.dc-avatars-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.dc-avatar-item {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) translateX(0) scale(0.3);
	opacity: 0;
	pointer-events: none;
	transition: transform .5s ease, opacity .5s ease, z-index 0s;
	z-index: 1;
}

.dc-avatar-item.is-active {
	transform: translate(-50%, -50%) translateX(0) scale(1);
	opacity: 1;
	z-index: 5;
	pointer-events: auto;
}

.dc-avatar-item.is-prev {
	transform: translate(-50%, -50%) translateX(calc(var(--dc-spacing) * 1)) scale(.6);
	opacity: .65;
	z-index: 4;
	pointer-events: auto;
}

.dc-avatar-item.is-next {
	transform: translate(-50%, -50%) translateX(calc(var(--dc-spacing) * -1)) scale(.6);
	opacity: .65;
	z-index: 4;
	pointer-events: auto;
}

.dc-avatar-inner {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 10px 25px rgba(20, 30, 60, .12);
	background: #f2f4f8;
}

.dc-avatar-item:not(.is-active) .dc-avatar-inner {
	width: 65px;
	height: 65px;
}

.dc-avatar-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- فلش‌ها ---------- */
.dc-arrow {
	position: relative;
	z-index: 6;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 100%!important;
	border: none;
	background: #ffffff;
	color: #2b3a55;
	box-shadow: 0 6px 16px rgba(20, 30, 60, .1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
	margin: 0 -20%;
}

.dc-arrow:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 20px rgba(20, 30, 60, .18);
}

.dc-arrow svg {
	width: 18px;
	height: 18px;
}

/* در RTL آیکون‌ها بصری معکوس نمی‌شوند تا دقیقاً مطابق طرح باشند */
.dc-arrow-prev svg {
	transform: scaleX(1);
}

/* ---------- نقاط ---------- */
.dc-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
}

.dc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #cfd8ea;
	cursor: pointer;
	padding: 0;
	transition: background-color .25s ease, transform .25s ease;
}

.dc-dot.is-active {
	background: #4b8fe2;
	transform: scale(1.25);
}

/* ---------- محتوا (نام و متن) ---------- */
.dc-content {
	position: relative;
	min-height: 110px;
}

.dc-content-item {
	position: absolute;
	inset: 0 0 auto 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.dc-content-item.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .4s ease, transform .4s ease;
}

.dc-name {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #1e2a3f;
}

.dc-text {
	margin: 0 auto;
	max-width: 620px;
	font-size: 15px;
	line-height: 2;
	color: #7a8699;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 767px) {
	.dc-testimonial-carousel {
		--dc-spacing: 130px;
	}
	.dc-avatar-inner {
		width: 90px;
		height: 90px;
	}
	.dc-avatar-item:not(.is-active) .dc-avatar-inner {
		width: 46px;
		height: 46px;
	}
	.dc-carousel-avatars {
		height: 130px;
	}
	.dc-text {
		font-size: 14px;
		padding: 0 10px;
	}
}
