/*
 * Mehrad inline Video Introduction.
 */

.elementor-widget-mehrad_video_introduction .elementor-widget-container{
	overflow:visible;
}

.mehrad-video-introduction{
	--mvi-gap:70px;
	--mvi-radius:28px;
	--mvi-title:#30333a;
	--mvi-subtitle:#777d86;
	--mvi-text:#80858d;
	--mvi-accent:#ffa000;
	--mvi-button-text:#fff;
	--mvi-frame:#e5e7eb;
	--mvi-bar:#fff;
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(0,1fr);
	grid-template-areas:"content media";
	align-items:center;
	gap:var(--mvi-gap);
	width:100%;
	max-width:100%;
	direction:rtl;
}

.mehrad-video-introduction--media-left{
	grid-template-areas:"media content";
}

.mehrad-video-introduction--media-right{
	grid-template-areas:"content media";
}

.mehrad-video-introduction__content{
	grid-area:content;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	min-width:0;
	text-align:right;
}

.mehrad-video-introduction__logo{
	display:block!important;
	width:auto!important;
	max-width:min(240px,70%)!important;
	height:auto!important;
	max-height:76px!important;
	margin:0 0 8px!important;
	padding:0!important;
	border:0!important;
	object-fit:contain!important;
	object-position:right center!important;
}

.mehrad-video-introduction__content h2{
	margin:0;
	color:var(--mvi-title);
	font-size:31px;
	font-weight:950;
	line-height:1.55;
}

.mehrad-video-introduction__subtitle{
	margin:3px 0 20px;
	color:var(--mvi-subtitle);
	font-size:15px;
	font-weight:700;
	line-height:1.8;
}

.mehrad-video-introduction__description{
	color:var(--mvi-text);
	font-size:16px;
	font-weight:600;
	line-height:2.15;
}

.mehrad-video-introduction__description > *:first-child{
	margin-top:0;
}

.mehrad-video-introduction__description > *:last-child{
	margin-bottom:0;
}

.mehrad-video-introduction__button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:15px;
	min-width:152px;
	min-height:56px;
	margin-top:24px;
	padding:0 22px;
	border-radius:18px 18px 18px 6px;
	background:var(--mvi-accent);
	color:var(--mvi-button-text)!important;
	font-size:14px;
	font-weight:950;
	text-decoration:none!important;
	transition:transform .25s ease,box-shadow .25s ease;
}

.mehrad-video-introduction__button:hover{
	transform:translateY(-2px);
	box-shadow:0 12px 28px color-mix(in srgb,var(--mvi-accent) 24%,transparent);
}

.mehrad-video-introduction__button-icon{
	width:16px;
	height:16px;
	fill:currentColor;
}

.mehrad-video-introduction__frame{
	grid-area:media;
	min-width:0;
	padding:14px;
	overflow:hidden;
	border:1px solid var(--mvi-frame);
	border-radius:calc(var(--mvi-radius) + 6px);
	background:var(--mvi-bar);
}

.mehrad-video-introduction__media{
	position:relative;
	width:100%;
	aspect-ratio:16 / 9;
	overflow:hidden;
	border-radius:var(--mvi-radius);
	background:#181818;
	line-height:0;
}

.mehrad-video-introduction__video,
.mehrad-video-introduction__cover,
.mehrad-video-introduction__cover-only{
	position:absolute;
	inset:0;
	display:block!important;
	width:100%!important;
	height:100%!important;
	max-width:none!important;
	max-height:none!important;
	margin:0!important;
	padding:0!important;
	border:0!important;
	border-radius:inherit!important;
	object-fit:cover!important;
	object-position:center!important;
}

.mehrad-video-introduction__cover{
	z-index:2;
	transition:opacity .3s ease,visibility .3s ease;
}

.mehrad-video-introduction.is-playing .mehrad-video-introduction__cover{
	opacity:0;
	visibility:hidden;
	pointer-events:none;
}

.mehrad-video-introduction__play{
	position:absolute;
	inset:50% auto auto 50%;
	z-index:4;
	display:grid;
	place-items:center;
	width:58px;
	height:58px;
	padding:0;
	border:0;
	border-radius:18px;
	background:#00c853;
	color:#fff;
	cursor:pointer;
	box-shadow:0 12px 30px rgba(0,200,83,.3);
	transform:translate(-50%,-50%);
	transition:opacity .25s ease,visibility .25s ease,transform .25s ease;
}

.mehrad-video-introduction__play span{
	width:0;
	height:0;
	margin-inline-start:4px;
	border-top:9px solid transparent;
	border-bottom:9px solid transparent;
	border-inline-start:15px solid currentColor;
}

.mehrad-video-introduction__play:hover{
	transform:translate(-50%,-50%) scale(1.06);
}

.mehrad-video-introduction.is-playing .mehrad-video-introduction__play{
	opacity:0;
	visibility:hidden;
	pointer-events:none;
}

.mehrad-video-introduction__empty-media{
	display:grid;
	place-items:center;
	width:100%;
	height:100%;
	color:#d1d5db;
	font-size:14px;
	font-weight:800;
}

.mehrad-video-introduction__bar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:14px;
	min-height:66px;
	padding:11px 14px 0;
	color:var(--mvi-title);
}

.mehrad-video-introduction__bar strong{
	font-size:15px;
	font-weight:950;
}

.mehrad-video-introduction__bar span{
	display:inline-flex;
	align-items:center;
	gap:7px;
	color:var(--mvi-subtitle);
	font-size:13px;
	font-weight:750;
	direction:ltr;
}

.mehrad-video-introduction__clock{
	width:16px;
	height:16px;
	fill:currentColor;
}

html.dark .mehrad-video-introduction,
html[data-theme="dark"] .mehrad-video-introduction,
body.dark .mehrad-video-introduction,
body[data-theme="dark"] .mehrad-video-introduction{
	--mvi-title:#f7f9fc;
	--mvi-subtitle:#c0cad8;
	--mvi-text:#dbe3ee;
	--mvi-accent:#ffb52b;
	--mvi-button-text:#fff;
	--mvi-frame:#46566d;
	--mvi-bar:#29364a;
}

@media(max-width:900px){
	.mehrad-video-introduction,
	.mehrad-video-introduction--media-left,
	.mehrad-video-introduction--media-right{
		grid-template-columns:1fr;
		grid-template-areas:"content" "media";
		gap:32px;
	}
}

@media(max-width:767px){
	.mehrad-video-introduction{
		gap:24px;
	}
	.mehrad-video-introduction__content h2{
		font-size:25px;
	}
	.mehrad-video-introduction__description{
		font-size:14px;
		line-height:2;
	}
	.mehrad-video-introduction__frame{
		padding:8px;
		border-radius:calc(var(--mvi-radius) + 3px);
	}
	.mehrad-video-introduction__bar{
		min-height:58px;
		padding-inline:9px;
	}
	.mehrad-video-introduction__button{
		min-height:52px;
	}
}

@media(prefers-reduced-motion:reduce){
	.mehrad-video-introduction__button,
	.mehrad-video-introduction__cover,
	.mehrad-video-introduction__play{
		transition:none!important;
	}
}
