﻿.video-reviews-section {
	padding-top: 12px;
	padding-bottom: clamp(84px, 7vw, 126px);
	text-align: center;
}

.video-carousel {
	position: relative;
	width: min(840px, 100%);
	margin: 30px auto 0;
}

.video-viewport {
	width: 100%;
}

.video-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	width: 100%;
	margin: 0 auto;
	perspective: 1400px;
}

.video-card {
	position: relative;
	aspect-ratio: 0.78;
	border: 0;
	border-radius: 16px;
	padding: 0;
	perspective: 1200px;
	background: transparent;
	color: var(--solene-white);
}

.video-card-inner {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	transform-style: preserve-3d;
	transition: transform 0.62s cubic-bezier(0.2, 0.78, 0.22, 1);
}

.video-card.is-flipped .video-card-inner {
	transform: rotateY(180deg);
}

.video-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: inherit;
	background: #2b1706;
	color: var(--solene-white);
	box-shadow: var(--solene-shadow);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.video-face-back {
	pointer-events: none;
	transform: rotateY(180deg);
}

.video-card.is-flipped .video-face-front {
	pointer-events: none;
}

.video-card.is-flipped .video-face-back {
	pointer-events: auto;
}

.video-face > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.08) contrast(1.03);
	transition: transform 0.38s ease, filter 0.38s ease;
}

.video-face-front::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.68) 100%);
}

.video-card:hover .video-face-front > img,
.video-card.is-flipped .video-face-front > img {
	transform: scale(1.04);
	filter: saturate(1.16) contrast(1.05) brightness(1.04);
}

.video-card.is-flipped .video-face {
	animation: solene-video-flip-glow 0.72s ease;
}

.video-time {
	position: absolute;
	z-index: 2;
	right: 10px;
	top: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.62);
	font-size: 10px;
	font-weight: 900;
}

.video-flip-cue,
.video-flip-close {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(19, 10, 5, 0.66);
	color: var(--solene-white);
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(10px);
}

.video-flip-cue {
	top: 10px;
	left: 10px;
}

body.rtl .video-flip-cue {
	left: auto;
	right: 10px;
}

.video-flip-cue span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.video-flip-cue::before {
	content: "";
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-right-color: currentColor;
	border-bottom-color: currentColor;
	border-radius: 999px;
	transform: rotate(-38deg);
}

.video-flip-cue::after {
	content: "";
	position: absolute;
	top: 11px;
	right: 8px;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 7px solid currentColor;
	transform: rotate(-46deg);
}

.video-flip-close {
	top: 10px;
	right: 10px;
}

body.rtl .video-flip-close {
	right: auto;
	left: 10px;
}

.video-flip-close::before,
.video-flip-close::after {
	content: "";
	position: absolute;
	width: 15px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.video-flip-close::before {
	transform: rotate(45deg);
}

.video-flip-close::after {
	transform: rotate(-45deg);
}

.video-card strong {
	position: absolute;
	z-index: 2;
	left: 16px;
	right: 16px;
	bottom: 16px;
	text-align: left;
	font-size: 13px;
	font-weight: 900;
}

.tap-note {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 28px auto 0;
	padding: 0 20px;
	border-radius: 999px;
	background: rgba(255, 244, 223, 0.12);
	color: var(--solene-white);
	font-size: 11px;
	font-weight: 900;
}

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.78);
}

.video-modal[hidden] {
	display: none;
}

.video-modal video {
	width: min(440px, 94vw);
	max-height: 82vh;
	border-radius: var(--solene-radius);
	background: var(--solene-black);
}

.video-close {
	position: fixed;
	right: 22px;
	top: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--solene-cream);
	color: var(--solene-black);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}


.video-face-back > img {
	filter: blur(8px) saturate(0.92) brightness(0.48);
	transform: scale(1.08);
}

.video-face-back::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(25, 13, 7, 0.78), rgba(25, 13, 7, 0.94)),
		radial-gradient(circle at 18% 16%, rgba(255, 227, 154, 0.22), transparent 34%),
		radial-gradient(circle at 82% 84%, rgba(236, 111, 85, 0.16), transparent 30%);
}

.video-back-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;
	padding: 22px;
	text-align: center;
}

.video-stars {
	display: flex;
	gap: 5px;
	color: #ffe39a;
	filter: drop-shadow(0 5px 12px rgba(255, 203, 96, 0.26));
}

.video-stars span {
	width: 18px;
	height: 18px;
	background: currentColor;
	clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.video-back-content p {
	max-width: 220px;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.35;
}

.video-play-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 168px;
	min-height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 999px;
	background: linear-gradient(135deg, #ffe39a 0%, #f2a53b 48%, #ec6f55 100%);
	color: #1d0f08;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(238, 128, 63, 0.34);
	animation: solene-cart-breathe 2.4s ease-in-out infinite;
}

.video-play-button::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
}

.video-nav,
.video-dots {
	display: none;
}

@keyframes solene-video-flip-glow {
	0% {
		box-shadow: var(--solene-shadow);
	}
	45% {
		box-shadow: 0 28px 72px rgba(255, 203, 96, 0.32);
	}
	100% {
		box-shadow: var(--solene-shadow);
	}
}

@media (max-width: 767px) {
	.video-card-grid {
		display: flex;
		grid-template-columns: none;
		justify-content: flex-start;
		gap: 0;
		max-width: none;
		transform: translateX(var(--video-slide-offset, 0));
		transition: transform 0.34s ease;
	}

	.video-carousel {
		width: min(360px, 100%);
		overflow: visible;
		padding: 0 34px 38px;
	}

	.video-viewport {
		overflow: hidden;
		border-radius: 16px;
	}

	.video-card {
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		min-height: 430px;
	}

	.video-nav {
		position: absolute;
		top: 45%;
		z-index: 5;
		display: grid;
		place-items: center;
		width: 30px;
		height: 54px;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--solene-white);
		cursor: pointer;
		transform: translateY(-50%);
		filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.7));
	}

	.video-nav::before {
		content: "";
		width: 20px;
		height: 20px;
		border-top: 4px solid currentColor;
		border-right: 4px solid currentColor;
	}

	.video-nav-prev {
		left: 2px;
	}

	.video-nav-prev::before {
		transform: rotate(-135deg);
	}

	.video-nav-next {
		right: 2px;
	}

	.video-nav-next::before {
		transform: rotate(45deg);
	}

	.video-dots {
		position: absolute;
		left: 50%;
		bottom: 0;
		display: flex;
		justify-content: center;
		gap: 8px;
		transform: translateX(-50%);
	}

	.video-dots button {
		width: 8px;
		height: 8px;
		border: 1px solid rgba(255, 255, 255, 0.72);
		border-radius: 999px;
		padding: 0;
		background: transparent;
		cursor: pointer;
	}

	.video-dots button.is-active {
		width: 24px;
		background: var(--solene-white);
	}
}

@media (max-width: 420px) {
	.video-card-grid {
		max-width: 300px;
	}

	.video-card {
		aspect-ratio: auto;
		min-height: 420px;
	}
}

.video-reviews-section {
	background:
		radial-gradient(circle at 18% 14%, rgba(183, 169, 151, 0.18), transparent 34%),
		linear-gradient(180deg, #f2efe8 0%, #4d382a 100%);
}

.video-carousel {
	width: min(980px, 100%);
}

.video-card-grid {
	gap: clamp(16px, 2vw, 26px);
}

.video-card {
	aspect-ratio: 0.74;
	border-radius: 8px;
	transition: transform 0.24s ease, filter 0.24s ease;
}

.video-card:hover,
.video-card:focus-within {
	transform: translateY(-6px);
	filter: drop-shadow(0 18px 28px rgba(77, 56, 42, 0.2));
}

.video-face {
	border-color: rgba(244, 241, 235, 0.18);
	background: #4d382a;
	box-shadow: 0 20px 46px rgba(77, 56, 42, 0.22);
}

.video-time,
.video-flip-cue,
.video-flip-close {
	background: rgba(77, 56, 42, 0.74);
	color: #f4f1eb;
}

.video-face-back::after {
	background:
		linear-gradient(180deg, rgba(77, 56, 42, 0.76), rgba(77, 56, 42, 0.94)),
		radial-gradient(circle at 18% 16%, rgba(183, 169, 151, 0.24), transparent 34%),
		radial-gradient(circle at 82% 84%, rgba(244, 241, 235, 0.14), transparent 30%);
}

.video-play-button {
	background: #f4f1eb;
	color: #4d382a;
	box-shadow: 0 12px 26px rgba(77, 56, 42, 0.22);
}

@media (max-width: 767px) {
	.video-carousel {
		width: min(380px, 100%);
	}

	.video-card:hover,
	.video-card:focus-within {
		transform: none;
	}
}

.video-reviews-section {
	padding-top: clamp(64px, 6vw, 96px);
	background:
		linear-gradient(135deg, rgba(200, 164, 93, 0.12), transparent 30%),
		linear-gradient(180deg, #f4f1eb 0%, #ffffff 100%);
}

.video-heading h2,
.video-heading p {
	color: #4d382a;
}

.video-card {
	border-radius: 8px;
}

.video-face {
	border-color: rgba(200, 164, 93, 0.28);
	background: #4d382a;
	box-shadow: 0 18px 42px rgba(77, 56, 42, 0.16);
}

.video-time,
.video-flip-cue,
.video-flip-close {
	border: 0;
	background: rgba(77, 56, 42, 0.78);
	color: #ffffff;
}

.video-play-button {
	border-color: #4d382a;
	background: #ffffff;
	color: #4d382a;
}

.video-nav {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #4d382a;
	filter: none;
}

.video-nav:hover,
.video-nav:focus-visible {
	color: #c8a45d;
}

.video-dots button {
	border-color: rgba(77, 56, 42, 0.42);
}

.video-dots button.is-active {
	background: #c8a45d;
	border-color: #c8a45d;
}

/* ملاحظة تعديل: القواعد التالية تجعل عنوان قسم الفيديو مثل الأقسام السابقة وتضيف زر تشغيل واضح وتأثير للوقت. */
.video-heading h2 {
	color: #4d382a;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 900;
	line-height: 1.02;
	text-transform: uppercase;
	text-shadow:
		0 0 16px rgba(200, 164, 93, 0.42),
		0 5px 0 rgba(200, 164, 93, 0.18),
		0 18px 34px rgba(77, 56, 42, 0.16);
}

.video-heading p {
	position: relative;
	width: fit-content;
	max-width: min(780px, calc(100vw - 34px));
	margin-inline: auto;
	padding: 14px 28px;
	border: 1px solid rgba(200, 164, 93, 0.54);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #4d382a;
	font-size: clamp(16px, 1.45vw, 20px);
	font-weight: 900;
	line-height: 1.35;
	box-shadow:
		0 0 0 7px rgba(200, 164, 93, 0.08),
		0 0 38px rgba(200, 164, 93, 0.28),
		0 18px 48px rgba(77, 56, 42, 0.1);
}

.video-heading p::before {
	content: "";
	position: absolute;
	inset: -9px;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(circle, rgba(200, 164, 93, 0.22), transparent 68%);
	filter: blur(3px);
}

.video-time {
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.68);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(200, 164, 93, 0.28)),
		rgba(77, 56, 42, 0.84);
	color: #ffffff;
	font-size: 11px;
	box-shadow:
		0 0 0 6px rgba(200, 164, 93, 0.12),
		0 0 28px rgba(200, 164, 93, 0.5),
		0 12px 24px rgba(77, 56, 42, 0.28);
	animation: solene-video-time-pulse 2.4s ease-in-out infinite;
}

.video-front-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: clamp(78px, 8vw, 104px);
	height: clamp(78px, 8vw, 104px);
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	background:
		radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), transparent 28%),
		linear-gradient(135deg, #f8e7bb, #c8a45d);
	color: #4d382a;
	cursor: pointer;
	box-shadow:
		0 0 0 10px rgba(200, 164, 93, 0.14),
		0 0 42px rgba(200, 164, 93, 0.58),
		0 18px 38px rgba(77, 56, 42, 0.28);
	transform: translate(-50%, -50%);
	transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
	animation: solene-video-play-glow 2.6s ease-in-out infinite;
}

.video-front-play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 17px solid transparent;
	border-bottom: 17px solid transparent;
	border-left: 25px solid currentColor;
	filter: drop-shadow(0 4px 8px rgba(77, 56, 42, 0.22));
}

.video-front-play span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.video-front-play:hover,
.video-front-play:focus-visible {
	filter: brightness(1.08);
	transform: translate(-50%, -50%) scale(1.06);
}

.video-card.is-waiting-video .video-front-play {
	pointer-events: none;
	opacity: 0.68;
}

.video-card strong {
	left: 12px;
	right: 12px;
	bottom: 18px;
	text-align: center;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	text-shadow: 0 8px 18px rgba(0, 0, 0, 0.48);
}

@keyframes solene-video-time-pulse {
	0%,
	100% {
		transform: translateY(0) scale(1);
		box-shadow:
			0 0 0 6px rgba(200, 164, 93, 0.12),
			0 0 28px rgba(200, 164, 93, 0.5),
			0 12px 24px rgba(77, 56, 42, 0.28);
	}
	50% {
		transform: translateY(-2px) scale(1.05);
		box-shadow:
			0 0 0 9px rgba(200, 164, 93, 0.18),
			0 0 42px rgba(200, 164, 93, 0.68),
			0 16px 30px rgba(77, 56, 42, 0.3);
	}
}

@keyframes solene-video-play-glow {
	0%,
	100% {
		box-shadow:
			0 0 0 10px rgba(200, 164, 93, 0.14),
			0 0 42px rgba(200, 164, 93, 0.58),
			0 18px 38px rgba(77, 56, 42, 0.28);
	}
	50% {
		box-shadow:
			0 0 0 15px rgba(200, 164, 93, 0.18),
			0 0 60px rgba(200, 164, 93, 0.76),
			0 22px 46px rgba(77, 56, 42, 0.32);
	}
}

@media (max-width: 767px) {
	.video-heading h2 {
		font-size: clamp(30px, 8vw, 38px);
		text-shadow:
			0 0 14px rgba(200, 164, 93, 0.44),
			0 12px 28px rgba(77, 56, 42, 0.16);
	}

	.video-heading p {
		width: min(100%, 390px);
		padding: 13px 18px;
		font-size: clamp(15px, 3.8vw, 17px);
		line-height: 1.42;
	}

	.video-front-play {
		width: 86px;
		height: 86px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.video-time,
	.video-front-play {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}

/* ملاحظة تعديل: توحيد شكل كل كروت الفيديو مثل الكارت الأول وتكبير عنوان الفيديو أسفل الصورة. */
.video-card {
	aspect-ratio: 0.72;
	border-radius: 12px;
	overflow: visible;
}

.video-face {
	border: 1px solid rgba(200, 164, 93, 0.48);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(77, 56, 42, 0.18);
}

.video-face-front::after {
	background:
		linear-gradient(180deg, rgba(77, 56, 42, 0.02) 0%, rgba(77, 56, 42, 0.06) 42%, rgba(77, 56, 42, 0.72) 100%);
}

.video-face > img {
	object-position: center;
	filter: saturate(1.08) contrast(1.02) brightness(1.02);
}

.video-card strong {
	bottom: 20px;
	font-size: 15px;
	line-height: 1.25;
}

@media (max-width: 767px) {
	.video-card {
		min-height: 430px;
		border-radius: 12px;
	}

	.video-face {
		border-radius: 12px;
	}

	.video-card strong {
		font-size: 15px;
	}
}
