/* =========================================================
   QTECH – Layered Testimonials (Stacked Carousel)
   - Active بالنص
   - يمين 2 + يسار 2
   - Infinite loop
   - بدون Opacity (كلهم 1)
========================================================= */

/* wrapper (اختياري) */
.qtech-layered-wrapper {
	position: relative;
	width: 100%;
}

/* مهم: نخلي السلايدر داخل الفيو بورت بدون "مشفت" للصفحة */
.qtech-layered-slider {
	width: 100%;
	overflow: hidden; /* يمنع خروج/انزياح خارج القسم */
}

/* سلايد أساس */
.qtech-layered-slider .swiper-slide {
	/* خلي Swiper هو اللي يتحكم بالعرض (خصوصاً مع slidesPerView)
	   إذا بدك تحدد عرض ثابت رجعه، بس غالباً رح يعمل مشاكل مع loop */
	/* width: 180px;  */

	transform-origin: center center;

	/* ✅ لا تعمّل transition على z-index لأنه يسبب flicker */
	transition: transform 0.45s ease, filter 0.45s ease;
	will-change: transform, filter;

	/* كلهم واضحين */
	opacity: 1;
	filter: none;

	/* افتراضياً أصغر شوي */
	transform: scale(0.90);
	z-index: 10;
}

/* الكارد */
.qtech-layered-card {
	background: #05070a;
	border-radius: 20px;
	padding: 18px 22px;
	border: 1px solid rgba(255, 0, 0, 0.55);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);

	/* عشان الزوايا تبين صح */
	overflow: hidden;
}

/* =========================
   LAYERS (بدون opacity)
========================= */

/* Active (النص) */
.qtech-layer-active {
    transform: scale(1) !important;
    z-index: 960 !important;
    filter: none !important;
    opacity: 1 !important;
}

/* يسار 1 */
.qtech-layer-left-1 {
	transform: scale(0.96);
	z-index: 50;
	filter: brightness(0.92);
}

/* يمين 1 */
.qtech-layer-right-1 {
	transform: scale(0.96);
	z-index: 50;
	filter: brightness(0.92);
}

/* يسار 2 */
.qtech-layer-left-2 {
	transform: scale(0.93);
	z-index: 40;
	filter: brightness(0.86) blur(0.2px);
}

/* يمين 2 */
.qtech-layer-right-2 {
	transform: scale(0.93);
	z-index: 9 !important;
	filter: brightness(0.86) blur(0.2px);
}

/* أبعد من 2 (خلفية) */
.qtech-layer-deep {
	transform: scale(0.90);
	z-index: 20;
	filter: brightness(0.78) blur(0.5px);
}

/* Active card styling (إطار أقوى + ظل أعلى) */
.qtech-layer-active .qtech-layered-card {
	border-color: rgba(255, 0, 0, 0.95);
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
}

/* =========================
   CONTENT (Photo / Typography)
========================= */

.qtech-layered-top {
	display: flex;
	align-items: center;
	gap: 18px;
}

.qtech-layered-photo {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	overflow: hidden;
	flex: 0 0 auto;
}

.qtech-layered-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qtech-layered-name {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	line-height: 1.1;
}

.qtech-layered-job {
	font-size: 13px;
	font-weight: 600;
	margin-top: 6px;
	opacity: 0.95; /* هذا مش opacity للـ slide — بس للنص */
}

.qtech-layered-body {
	margin-top: 14px;
}

.qtech-layered-desc {
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
	opacity: 0.9; /* نفس الفكرة: للنص فقط */
}



/* =========================================================
   NO PHOTO CASE
   إذا ما في صورة، خلّي الاسم والمنصب ياخذوا كل العرض
========================================================= */

/* عندما لا يوجد عنصر صورة داخل التوب */
.qtech-layered-top:not(:has(.qtech-layered-photo)) {
	/* نمنع أي حجز لمساحة صورة */
	align-items: flex-start;
}

/* خلّي الميتا (الاسم + المنصب) بعرض كامل */
.qtech-layered-top:not(:has(.qtech-layered-photo)) .qtech-layered-meta {
	width: 100%;
}

/* كبّر الاسم شوي لأنه صار لحاله */
.qtech-layered-top:not(:has(.qtech-layered-photo)) .qtech-layered-name {
	font-size: 24px;
}

/* مسافة طبيعية تحت الاسم */
.qtech-layered-top:not(:has(.qtech-layered-photo)) .qtech-layered-job {
	margin-top: 8px;
}


/* =========================
   MOBILE: سلايدر عادي واضح
========================= */
@media (max-width: 767px) {
	.qtech-layered-slider {
		overflow: hidden;
	}

	.qtech-layered-slider .swiper-slide {
		transform: none !important;
		filter: none !important;
		z-index: auto !important;
	}
}
