/*
Theme Name: Machining Lessons Child
Description: Custom child theme for Machining Lessons
Author: Machining Lessons
Template: hello-elementor
Version: 1.0.0
Text Domain: machining-lessons-child
*/

/* Single-post page */

.ml-single-post {
	--ml-dark: #12384a;
	--ml-blue: #0789c5;
	--ml-text: #526773;
	width: 100%;
}

.ml-single-hero {
	display: flex;
	min-height: 480px;
	align-items: flex-end;
	padding: 140px 24px 70px;
	color: #fff;
	background-color: #073f63;
	background-position: center;
	background-size: cover;
}

.ml-single-hero-inner {
	width: min(1100px, 100%);
	margin: 0 auto;
}

.ml-single-back {
	display: inline-block;
	margin-bottom: 22px;
	color: #7bd7f4;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.ml-single-title {
	max-width: 1000px;
	margin: 0;
	color: #fff;
	font-size: clamp(40px, 6vw, 70px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.ml-single-date {
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
}

.ml-single-article {
	padding: 70px 24px 85px;
	background: #fff;
}

.ml-single-content {
	width: min(860px, 100%);
	margin: 0 auto;
	color: var(--ml-text);
	font-size: 18px;
	line-height: 1.75;
}

.ml-single-content > :first-child {
	margin-top: 0;
}

.ml-single-content h2,
.ml-single-content h3 {
	color: var(--ml-dark);
	line-height: 1.2;
}

.ml-single-content h2 {
	margin: 1.7em 0 0.6em;
	font-size: clamp(29px, 4vw, 40px);
}

.ml-single-content h3 {
	margin: 1.5em 0 0.55em;
	font-size: clamp(23px, 3vw, 30px);
}

.ml-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.ml-single-content a {
	color: var(--ml-blue);
}

@media (max-width: 700px) {
	.ml-single-hero {
		min-height: 390px;
		padding: 110px 18px 50px;
	}

	.ml-single-article {
		padding: 50px 18px 65px;
	}

	.ml-single-content {
		font-size: 17px;
	}
}

/* =========================================================
   ARTICLE META
   ========================================================= */

.ml-article-footer {
	margin-top: 64px;
	padding-top: 36px;
	border-top: 1px solid #dfe6e9;
}

.ml-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px 38px;
	margin-bottom: 38px;
}

.ml-article-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ml-article-meta-label {
	color: #758893;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ml-article-meta-value {
	color: #12384a;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.5;
}

.ml-article-meta-value a {
	color: #0789c5;
	text-decoration: none;
}

.ml-article-meta-value a:hover,
.ml-article-meta-value a:focus {
	color: #056b99;
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* =========================================================
   AUTHOR BOX
   ========================================================= */

.ml-author-box {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 28px;
	background: #f3f6f7;
	border: 1px solid #dfe6e9;
	border-radius: 10px;
}

.ml-author-avatar {
	flex: 0 0 80px;
}

.ml-author-avatar img {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.ml-author-content {
	flex: 1 1 auto;
	min-width: 0;
}

.ml-author-label {
	margin: 0 0 5px !important;
	color: #758893;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.ml-author-name {
	margin: 0 0 8px !important;
	color: #12384a;
	font-size: 23px !important;
	font-weight: 750;
	line-height: 1.25;
}

.ml-author-name a {
	color: inherit;
	text-decoration: none;
}

.ml-author-name a:hover,
.ml-author-name a:focus {
	color: #0789c5;
}

.ml-author-description {
	margin: 0 !important;
	color: #526773;
	font-size: 16px;
	line-height: 1.65;
}


/* =========================================================
   MACHINING LESSONS CTA
   ========================================================= */

.ml-single-cta {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 72px 24px;
	color: #ffffff;
	background:
		radial-gradient(
			circle at 88% 15%,
			rgba(51, 178, 224, 0.24),
			transparent 38%
		),
		linear-gradient(
			135deg,
			#052f49 0%,
			#073f63 62%,
			#075d83 100%
		);
}

.ml-single-cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 34px 70px;
	align-items: center;
	box-sizing: border-box;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.ml-single-cta-copy {
	max-width: 800px;
}

.ml-single-cta-eyebrow {
	margin: 0 0 12px !important;
	color: #7bd7f4 !important;
	font-size: 13px !important;
	font-weight: 750 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ml-single-cta-copy h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(31px, 4vw, 46px);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.ml-single-cta-copy > p:last-child {
	max-width: 760px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
	line-height: 1.65;
}

.ml-single-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 15px 23px;
	color: #073f63 !important;
	background: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.ml-single-cta-button:hover,
.ml-single-cta-button:focus {
	color: #073f63 !important;
	background: #dff3fb;
	border-color: #dff3fb;
	transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	.ml-single-cta-inner {
		display: block;
	}

	.ml-single-cta-button {
		margin-top: 28px;
	}
}

@media (max-width: 600px) {
	.ml-article-footer {
		margin-top: 48px;
		padding-top: 28px;
	}

	.ml-article-meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.ml-author-box {
		display: block;
		padding: 23px;
	}

	.ml-author-avatar {
		margin-bottom: 16px;
	}

	.ml-single-cta {
		padding: 54px 18px;
	}

	.ml-single-cta-copy > p:last-child {
		font-size: 17px;
	}

	.ml-single-cta-button {
		width: 100%;
		white-space: normal;
	}
}

@media (max-width: 420px) {
	.ml-article-meta {
		grid-template-columns: 1fr;
	}

	.ml-author-avatar,
	.ml-author-avatar img {
		width: 68px;
		height: 68px;
	}

	.ml-single-cta-button {
		padding-right: 18px;
		padding-left: 18px;
	}
}