/* =========================================================
   YCM Videos widget — structural layout only.
   Colors/typography/spacing driven by Elementor Style controls.
   ========================================================= */

.ycm-videos {
	background-color: #fff;
	padding: 80px 0;
}

.ycm-videos__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* --- Header (centered) --- */
.ycm-videos__head {
	text-align: center;
	margin-bottom: 48px;
}

.ycm-videos__badge {
	display: inline-block;
	background-color: #fce9b5;
	color: #3a2e0a;
	font-size: 15px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.ycm-videos__heading {
	font-size: 48px;
	line-height: 1.1;
	font-weight: 800;
	color: #070707;
	margin: 0 auto;
	max-width: 760px;
}

/* --- Grid --- */
.ycm-videos__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

/* --- Card --- */
.ycm-videos__card {
	background-color: #eff3ff;
	border-radius: 20px;
	padding: 24px;
}

.ycm-videos__player {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	line-height: 0;
}

.ycm-videos__player[data-embed] {
	cursor: pointer;
}

.ycm-videos__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ycm-videos__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Play overlay (shown when using a plain YouTube thumbnail) */
.ycm-videos__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ycm-videos__play svg {
	filter: drop-shadow( 0 2px 6px rgba( 0, 0, 0, 0.35 ) );
}

.ycm-videos__play-bg {
	transition: fill 0.2s ease;
}

.ycm-videos__player--overlay:hover .ycm-videos__play-bg {
	fill: #ff0000;
}

.ycm-videos__player.is-playing .ycm-videos__play {
	display: none;
}

.ycm-videos__card-title {
	font-size: 26px;
	font-weight: 700;
	color: #111;
	margin: 0 0 12px;
}

.ycm-videos__card-desc {
	font-size: 16px;
	line-height: 1.55;
	color: #666d80;
	margin: 0;
	max-width: 440px;
}

/* --- Button --- */
.ycm-videos__actions {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.ycm-videos__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #0f67fe;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 15px 28px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.ycm-videos__btn:hover {
	background-color: #0b53d1;
	color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.ycm-videos__heading {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.ycm-videos {
		padding: 48px 0;
	}
	.ycm-videos__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ycm-videos__heading {
		font-size: 30px;
	}
	.ycm-videos__card-title {
		font-size: 22px;
	}
}

/* ---- Typography: title + content use Roboto ---- */
.ycm-videos__badge,
.ycm-videos__heading,
.ycm-videos__card-title,
.ycm-videos__card-desc,
.ycm-videos__btn {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
