/**
 * Sweans CIE Addon — CIE Video (ACF section2_*)
 * Scoped under .sweans-cie-video
 */

.sweans-cie-video {
	position: relative;
}

.sweans-cie-video--editor-preview .outperform-inner {
	padding: 0 16px;
}

.sweans-cie-video *,
.sweans-cie-video *::before,
.sweans-cie-video *::after {
	box-sizing: border-box;
}

.sweans-cie-video .outperform-section {
	width: 100%;
	padding: 60px 0;
}

.sweans-cie-video .outperform-inner {
	max-width: 1620px;
	margin: 0 auto;
}

.sweans-cie-video .outperform-heading {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: clamp(26px, 4.5vw, 58px);
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111111;
	text-align: center;
	margin-bottom: 36px;
}

.sweans-cie-video .outperform-heading .highlight,
.sweans-cie-video .outperform-heading span {
	color: #1e7bbf;
	font-weight: 700;
}

.sweans-cie-video .video-wrap {
	position: relative;
	width: 100%;
	max-width: 1620px;
	height: 620px;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: #1a1a1a;
	margin: 0 auto 40px;
}

@media (max-width: 1620px) {
	.sweans-cie-video .video-wrap {
		height: calc(100vw * (620 / 1620));
	}
}

@media (max-width: 768px) {
	.sweans-cie-video .video-wrap {
		height: calc(100vw * (620 / 1620));
		margin-bottom: 28px;
		border-radius: 0;
	}
}

.sweans-cie-video .video-wrap img.video-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.35s ease;
}

.sweans-cie-video .video-wrap:hover img.video-thumb {
	opacity: 0.85;
}

.sweans-cie-video .video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
	transition: background 0.3s;
}

.sweans-cie-video .video-wrap:hover .video-overlay {
	background: rgba(0, 0, 0, 0.28);
}

.sweans-cie-video .play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(52px, 7vw, 80px);
	height: clamp(52px, 7vw, 80px);
	border-radius: 50%;
	background: #1e7bbf;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, transform 0.25s;
	z-index: 2;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sweans-cie-video .video-wrap:hover .play-btn {
	background: #1565a3;
	transform: translate(-50%, -50%) scale(1.08);
}

.sweans-cie-video .play-btn svg {
	width: 36%;
	height: 36%;
	fill: #ffffff;
	margin-left: 4px;
}

.sweans-cie-video .video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: none;
	z-index: 5;
}

.sweans-cie-video .outperform-desc,
.sweans-cie-video .sweans-cie-video-contents p {
	font-size: clamp(14px, 1.4vw, 17px);
	line-height: 1.75;
	color: #333333;
	margin-bottom: 28px;
	max-width: 960px;
}

.sweans-cie-video .outperform-list,
.sweans-cie-video .sweans-cie-video-contents ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sweans-cie-video .outperform-list li,
.sweans-cie-video .sweans-cie-video-contents ul li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: clamp(13px, 1.3vw, 16px);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111111;
	line-height: 1.4;
}

.sweans-cie-video .outperform-list li::before,
.sweans-cie-video .sweans-cie-video-contents ul li::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	/* Use background-color only — matches Elementor “Bullet color” (avoids background + background-color overlap). */
	background-color: #1e7bbf;
	margin-top: 8px;
}

.sweans-cie-video .yt-fallback-link {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-family: "Barlow", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	padding: 14px 24px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 5;
	transition: background 0.2s;
}

.sweans-cie-video .yt-fallback-link:hover {
	background: rgba(0, 0, 0, 0.92);
}

.sweans-cie-video .modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.sweans-cie-video .modal-backdrop.open {
	display: flex;
}

.sweans-cie-video .modal-content {
	position: relative;
	width: 90vw;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: visible;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sweans-cie-video .modal-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 6px;
	display: block;
}

.sweans-cie-video .modal-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: none;
	color: #111;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
	transition: background 0.2s, transform 0.2s;
	z-index: 10;
}

.sweans-cie-video .modal-close:hover {
	background: #f0f0f0;
	transform: scale(1.1);
}

@media (max-width: 480px) {
	.sweans-cie-video .modal-close {
		top: -14px;
		right: -14px;
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
}

/* Download Specifications Button */
.sweans-cie-video .cie-dl-btn-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.sweans-cie-video .cie-dl-btn {
	display: inline-block;
	background-color: #00537C;
	font-family: "Magistral Medium", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	color: #FFFFFF;
	border-radius: 0;
	padding: 25px 40px;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.25s ease;
	cursor: pointer;
	border: none;
}

.sweans-cie-video .cie-dl-btn:hover {
	background-color: #003d5c;
	color: #FFFFFF;
}

/* Call Now Button — mobile only (≤500px) */
.sweans-cie-video .cie-call-btn-wrap {
	display: none;
	justify-content: center;
	margin-bottom: 36px;
}

.sweans-cie-video .cie-call-btn {
	display: inline-block;
	background-color: #00537C;
	font-family: "Magistral Medium", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	color: #FFFFFF;
	fill: #FFFFFF;
	border-radius: 0;
	padding: 25px 40px;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.25s ease;
	cursor: pointer;
	border: none;
	width: 100%;
	text-align: center;
}

.sweans-cie-video .cie-call-btn:hover {
	background-color: #003d5c;
	color: #FFFFFF;
}

@media (max-width: 500px) {
	.sweans-cie-video .cie-call-btn-wrap {
		display: flex;
	}
}

@keyframes sweans-cv-fadeUp {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sweans-cie-video .outperform-heading {
	animation: sweans-cv-fadeUp 0.65s ease both;
}

.sweans-cie-video .video-wrap {
	animation: sweans-cv-fadeUp 0.65s 0.1s ease both;
}

.sweans-cie-video .outperform-desc,
.sweans-cie-video .sweans-cie-video-contents {
	animation: sweans-cv-fadeUp 0.65s 0.2s ease both;
}

.sweans-cie-video .outperform-list,
.sweans-cie-video .sweans-cie-video-contents ul {
	animation: sweans-cv-fadeUp 0.65s 0.3s ease both;
}

@media (max-width: 768px) {
	.sweans-cie-video .outperform-section {
		padding: 40px 0;
	}

	.sweans-cie-video .outperform-heading {
		padding: 0 16px;
		margin-bottom: 24px;
	}

	.sweans-cie-video .outperform-desc,
	.sweans-cie-video .sweans-cie-video-contents p {
		padding: 0 16px;
		margin-bottom: 20px;
	}

	.sweans-cie-video .outperform-list,
	.sweans-cie-video .sweans-cie-video-contents ul {
		padding: 0 16px;
	}

	.sweans-cie-video .video-wrap {
		margin-bottom: 28px;
	}
}

@media (max-width: 480px) {
	.sweans-cie-video .outperform-section {
		padding: 30px 0;
	}

	.sweans-cie-video .outperform-heading {
		padding: 0 14px;
	}

	.sweans-cie-video .outperform-desc,
	.sweans-cie-video .sweans-cie-video-contents p {
		padding: 0 14px;
	}

	.sweans-cie-video .outperform-list,
	.sweans-cie-video .sweans-cie-video-contents ul {
		padding: 0 14px;
	}

	.sweans-cie-video .outperform-list li,
	.sweans-cie-video .sweans-cie-video-contents ul li {
		gap: 10px;
	}
}
