/* =========================================================
   YCM Ebook Section widget — structural layout only.
   Colors/typography/spacing come from Elementor Style
   controls; the values here are sensible fallbacks.
   ========================================================= */

.ycm-ebook {
	background-color: #eff3ff;
	padding: 80px 0;
}

.ycm-ebook__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	display: flex;
	align-items: center;
	gap: 56px;
	box-sizing: border-box;
}

.ycm-ebook__content {
	flex: 1 1 50%;
	min-width: 0;
}

.ycm-ebook__media {
	flex: 1 1 50%;
	min-width: 0;
}

/* Image on the left variant */
.ycm-ebook--image-left .ycm-ebook__inner {
	flex-direction: row-reverse;
}

/* --- Badge --- */
.ycm-ebook__badge {
	display: inline-block;
	background-color: #ffe5a4;
	color: #5a4a1a;
	font-size: 15px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 24px;
}

/* --- Heading --- */
.ycm-ebook__heading {
	font-size: 56px;
	line-height: 1.1;
	font-weight: 800;
	color: #070707;
	margin: 0 0 22px;
}

/* --- Description --- */
.ycm-ebook__desc {
	font-size: 17px;
	line-height: 1.65;
	color: #374151;
	margin-bottom: 30px;
	max-width: 600px;
}

.ycm-ebook__desc p {
	margin: 0 0 18px;
}

.ycm-ebook__desc p:last-child {
	margin-bottom: 0;
}

/* --- Button --- */
.ycm-ebook__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: 10px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

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

/* --- Image card (outer + inner frame) --- */
.ycm-ebook__card {
	position: relative;
	background-color: #fff;
	border-radius: 28px;
	padding: 32px;
	box-shadow: 0 24px 60px rgba(16, 24, 40, 0.10);
}

.ycm-ebook__frame {
	background-color: #fff;
	border: 1px solid #eaecf2;
	border-radius: 18px;
	padding: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.ycm-ebook__frame img {
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	object-fit: contain;
}

/* --- Floating "E Book" tag --- */
.ycm-ebook__tag {
	position: absolute;
	left: 20px;
	bottom: 40px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #fff;
	color: #111;
	padding: 14px 22px;
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(16, 24, 40, 0.18);
	line-height: 1;
}

.ycm-ebook__tag-icon {
	display: inline-flex;
}

.ycm-ebook__tag-text {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

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

@media (max-width: 767px) {
	.ycm-ebook {
		padding: 48px 0;
	}
	.ycm-ebook__inner,
	.ycm-ebook--image-left .ycm-ebook__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}
	.ycm-ebook__heading {
		font-size: 34px;
	}
	.ycm-ebook__card {
		padding: 20px;
	}
	.ycm-ebook__frame {
		padding: 20px;
	}
	.ycm-ebook__tag {
		left: 12px;
		bottom: 20px;
		padding: 12px 16px;
	}
}

/* ---- Typography: title + content use Roboto ---- */
.ycm-ebook__badge,
.ycm-ebook__heading,
.ycm-ebook__desc,
.ycm-ebook__desc p,
.ycm-ebook__btn,
.ycm-ebook__tag-text {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
