/* =========================================================================
   Video Post Carousel – v2.1
   Defaults match the reference design; every value can be changed in
   Elementor (Style tab), which always wins over these defaults.
   ========================================================================= */

.vce-carousel-wrap {
	position: relative;
	width: 100%;
}

/* ---------- Grid layout (unchanged behaviour) ---------- */
.vce-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 24px;
	width: 100%;
}
.vce-grid-item { min-width: 0; display: flex; }
@media ( max-width: 1024px ) { .vce-grid { grid-template-columns: repeat( 2, 1fr ); } }
@media ( max-width: 767px )  { .vce-grid { grid-template-columns: repeat( 1, 1fr ); } }

/* ---------- Carousel: viewport, edge fades, moving track ---------- */
.vce-marquee {
	--vce-gap: 22px;
	--vce-fade-w: 12%;
	--vce-card-w: 420px;
}

.vce-viewport {
	position: relative;
	overflow: hidden;
	padding: 24px 0 30px;
}

.vce-marquee.has-fade .vce-viewport::before,
.vce-marquee.has-fade .vce-viewport::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: var(--vce-fade-w);
	pointer-events: none;
}
.vce-marquee.has-fade .vce-viewport::before {
	left: 0;
	background: linear-gradient(90deg, var(--vce-fade, #0a0c10) 0%, var(--vce-fade, #0a0c10) 12%, transparent 100%);
}
.vce-marquee.has-fade .vce-viewport::after {
	right: 0;
	background: linear-gradient(270deg, var(--vce-fade, #0a0c10) 0%, var(--vce-fade, #0a0c10) 12%, transparent 100%);
}

.vce-track {
	display: flex;
	align-items: stretch;
	gap: var(--vce-gap);
	width: max-content;
	will-change: transform;
	backface-visibility: hidden;
}

.vce-slide {
	display: flex;
	flex: 0 0 var(--vce-card-w);
	width: var(--vce-card-w);
	min-width: 0;
}

.vce-marquee.is-draggable .vce-viewport { cursor: grab; touch-action: pan-y; }
.vce-marquee.is-dragging .vce-viewport { cursor: grabbing; }
.vce-marquee.is-dragging .vce-card { pointer-events: none; }

/* Reduced motion: a swipeable row instead of auto-scroll */
.vce-marquee.is-static .vce-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.vce-marquee.is-static .vce-slide { scroll-snap-align: start; }
.vce-marquee.is-static.has-fade .vce-viewport::before,
.vce-marquee.is-static.has-fade .vce-viewport::after { display: none; }

/* ---------- Card ---------- */
.vce-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: #0e1116;
	background-image: radial-gradient(120% 60% at 50% 100%, rgba(255, 255, 255, 0.025), transparent 70%);
	border: 1px solid rgba(52, 199, 123, 0.22);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.vce-card:hover {
	border-color: rgba(52, 199, 123, 0.55);
	transform: translateY(-4px);
}

.vce-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	flex-shrink: 0;
	overflow: hidden;
	background: #0b0e12;
}

.vce-media video,
.vce-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vce-media-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.vce-media-embed iframe,
.vce-media-embed video,
.vce-media-embed embed,
.vce-media-embed object {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
	object-fit: cover;
}

/* Some video plugins wrap the embed in a 16:9 padding-ratio div. */
.vce-media-embed > div {
	position: absolute !important;
	inset: 0 !important;
	padding: 0 !important;
	height: 100% !important;
}

.vce-media-placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient( 45deg, #151a20, #151a20 10px, #1b2128 10px, #1b2128 20px );
}

.vce-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px 20px 20px;
	min-height: 0;
}

.vce-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0 0 24px;
	color: #ffffff;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}

.vce-description {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Read More button ---------- */
.vce-button {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	align-self: stretch;
	min-height: 50px;
	padding: 16px 28px;
	border-radius: 10px;
	background-color: var(--vce-btn-a, #0a9150);
	color: #ffffff;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 3px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .25s ease, color .25s ease, filter .25s ease, box-shadow .25s ease;
}

/* Gradient type (Style › Button › Background Type) */
.vce-btn-bg-gradient .vce-button {
	background-image: linear-gradient(90deg, var(--vce-btn-a, #0a9150) 0%, var(--vce-btn-b, #3ccb86) 100%);
}
.vce-btn-bg-gradient .vce-button:hover,
.vce-btn-bg-gradient .vce-button:focus {
	background-image: linear-gradient(90deg,
		var(--vce-btn-a-h, var(--vce-btn-a, #0a9150)) 0%,
		var(--vce-btn-b-h, var(--vce-btn-b, #3ccb86)) 100%);
}
.vce-btn-bg-solid .vce-button { background-image: none; }

.vce-button:hover,
.vce-button:focus {
	text-decoration: none;
	filter: brightness(1.08);
}
.vce-button:focus-visible { outline: 2px solid var(--vce-btn-b, #3ccb86); outline-offset: 3px; }

/* Glow (Style › Button › Glow) – follows the button color unless a Glow Color is set */
.vce-btn-glow-yes .vce-button {
	--vce-glow-auto: rgba(38, 201, 116, 0.38);
	--vce-glow-auto: color-mix(in srgb, var(--vce-btn-a, #0a9150) 45%, transparent);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 10px 26px -8px var(--vce-glow, var(--vce-glow-auto)),
		0 0 18px -6px var(--vce-glow, var(--vce-glow-auto));
}
.vce-btn-glow-yes .vce-button:hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.28),
		0 14px 34px -8px var(--vce-glow, var(--vce-glow-auto)),
		0 0 26px -4px var(--vce-glow, var(--vce-glow-auto));
}

.vce-button svg,
.vce-button i {
	font-size: 1em;
	line-height: 1;
}
.vce-button svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Arrows ---------- */
.vce-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(52, 199, 123, 0.55);
	border-radius: 50%;
	background: #0e1116;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease;
	user-select: none;
}
.vce-nav:hover { border-color: #34c77b; }
.vce-nav:focus-visible { outline: 2px solid #34c77b; outline-offset: 3px; }
.vce-nav-prev { left: 10px; }
.vce-nav-next { right: 10px; }

/* ---------- Dots (keeps the old "Pagination Dots" style controls working) ---------- */
.vce-carousel-wrap .swiper-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.vce-carousel-wrap .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(52, 199, 123, 0.35);
	opacity: 1;
	margin: 0 !important;
	cursor: pointer;
}
.vce-carousel-wrap .swiper-pagination-bullet-active { background: #34c77b; }
.vce-carousel-wrap .swiper-pagination-bullet:focus-visible { outline: 2px solid #34c77b; outline-offset: 3px; }

.vce-no-posts {
	padding: 40px;
	text-align: center;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	color: #666;
}

@media (max-width: 767px) {
	.vce-nav { width: 36px; height: 36px; }
	.vce-title { font-size: 19px; margin-bottom: 18px; }
	.vce-content { padding: 18px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.vce-card, .vce-button { transition: none; }
	.vce-card:hover { transform: none; }
}
