/*
 * CareMyWebsite - Single Blog Template CSS
 * File: single-blog.css
 *
 * Add this file to your child theme and enqueue it from functions.php:
 *
 * wp_enqueue_style(
 *   'cmw-single-blog',
 *   get_stylesheet_directory_uri() . '/single-blog.css',
 *   array(),
 *   '1.0.0'
 * );
 */

:root {
	--cmw-lime: #d8ed16;
	--cmw-lime-dark: #b9ce00;
	--cmw-black: #111111;
	--cmw-dark: #171717;
	--cmw-text: #202020;
	--cmw-muted: #666666;
	--cmw-border: #e6e6e6;
	--cmw-bg: #f7f7f5;
	--cmw-white: #ffffff;
	--cmw-radius: 18px;
}

.cmw-single-blog {
	background: var(--cmw-white);
	color: var(--cmw-text);
	font-family: inherit;
}

.cmw-container {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
}

/* Hero */
.cmw-blog-hero {
	background:
		linear-gradient(90deg, rgba(10,10,10,.98) 0%, rgba(10,10,10,.90) 52%, rgba(10,10,10,.42) 100%);
	color: #fff;
	padding: 76px 0 70px;
	position: relative;
	overflow: hidden;
}

.cmw-blog-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(216,237,22,.10) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.cmw-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
	gap: 64px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.cmw-eyebrow {
	display: inline-block;
	color: var(--cmw-lime);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.cmw-hero-copy h1,
.cmw-blog-hero h1,
.cmw-blog-hero .elementor-heading-title {
	color: #fff !important;
	font-size: clamp(42px, 5vw, 72px);
	line-height: 1.02;
	letter-spacing: -.035em;
	margin: 0 0 24px;
	max-width: 780px;
}

.cmw-hero-excerpt {
	color: rgba(255,255,255,.82);
	font-size: 18px;
	line-height: 1.7;
	max-width: 700px;
	margin: 0 0 28px;
}

.cmw-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	color: rgba(255,255,255,.78);
	font-size: 14px;
}

.cmw-author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cmw-author-avatar {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50%;
	object-fit: cover;
}

.cmw-author span {
	display: grid;
	gap: 2px;
}

.cmw-author strong {
	color: #fff;
	font-size: 14px;
}

.cmw-author small {
	color: rgba(255,255,255,.58);
	font-size: 11px;
}

.cmw-meta-separator {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--cmw-lime);
}

.cmw-hero-image {

	border-radius: 24px;
	overflow: hidden;
	background: #222;
	box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.cmw-featured-image {
	width: 100%;
	height: 100%;

	display: block;
	object-fit: cover;
}

.cmw-image-placeholder {

	display: grid;
	place-items: center;
	color: var(--cmw-lime);
	font-size: 28px;
	font-weight: 700;
}


/* H2 / H3 / H4 table of contents */
.cmw-toc { display:grid; gap:2px; }
.cmw-toc .cmw-toc-h3 { padding-left:10px; font-size:13px; }
.cmw-toc .cmw-toc-h4 { padding-left:20px; font-size:12px; color:#777; }
.cmw-toc a:hover { padding-left:5px; color:#111; }
.cmw-toc .cmw-toc-h3:hover { padding-left:15px; }
.cmw-toc .cmw-toc-h4:hover { padding-left:25px; }

/* Social sharing */
.cmw-share-links { display:grid; grid-template-columns:repeat(4,38px); gap:9px; }
.cmw-share-links a, .cmw-share-links button { width:38px; height:38px; border:1px solid var(--cmw-border); border-radius:50%; display:grid; place-items:center; color:#222; background:#fff; text-decoration:none; font-family:inherit; font-size:11px; font-weight:800; cursor:pointer; padding:0; transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease; }
.cmw-share-links a:hover, .cmw-share-links button:hover { background:var(--cmw-lime); border-color:var(--cmw-lime); color:#111; transform:translateY(-2px); }
.cmw-share-note { color:#999; font-size:11px; line-height:1.5; margin:12px 0 0; max-width:230px; }

/* Article */
.cmw-article-section {
	padding: 80px 0;
}

.cmw-content-grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 820px);
	gap: 70px;
	justify-content: center;
}

.cmw-sidebar {
	position: relative;
}

.cmw-sidebar-box {
	position: sticky;
	top: 30px;
}

.cmw-sidebar-title {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 18px;
}

.cmw-toc {
	border-left: 2px solid var(--cmw-border);
	padding-left: 18px;
}

.cmw-toc a {
	display: block;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	padding: 7px 0;
	text-decoration: none;
}

.cmw-toc a:hover,
.cmw-toc a.is-active {
	color: #111;
}

.cmw-toc-empty {
	color: #999;
	font-size: 13px;
	line-height: 1.5;
}

.cmw-share-box {
	margin-top: 44px;
}



.cmw-entry-content {
	font-size: 18px;
	line-height: 1.85;
	color: #333;
}

.cmw-entry-content > * {
	max-width: 100%;
}

.cmw-entry-content h2,
.cmw-entry-content h3,
.cmw-entry-content h4 {
	color: #111;
	line-height: 1.2;
	letter-spacing: -.02em;
	margin-top: 18px;
	margin-bottom: 18px;
}

.cmw-entry-content h2 {
	font-size: 34px;
}

.cmw-entry-content h3 {
	font-size: 27px;
}

.cmw-entry-content p {
	margin: 0 0 22px;
}

.cmw-entry-content a {
	color: #789000;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cmw-entry-content ul,
.cmw-entry-content ol {
	padding-left: 25px;
	margin: 0 0 24px;
}

.cmw-entry-content li {
	margin-bottom: 9px;
}

.cmw-entry-content blockquote {
	margin: 35px 0;
	padding: 25px 30px;
	border-left: 5px solid var(--cmw-lime);
	background: #f5f6ed;
	border-radius: 0 14px 14px 0;
	font-size: 21px;
	font-weight: 600;
	color: #222;
}

.cmw-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.cmw-entry-content figure {
	margin: 32px 0;
}

.cmw-entry-content figcaption {
	color: #777;
	font-size: 13px;
	text-align: center;
	margin-top: 8px;
}

.cmw-tags {
	border-top: 1px solid var(--cmw-border);
	border-bottom: 1px solid var(--cmw-border);
	padding: 20px 0;
	margin-top: 50px;
	font-size: 14px;
}

.cmw-tags > span {
	font-weight: 700;
	margin-right: 10px;
}

.cmw-tags a {
	display: inline-block;
	margin-right: 8px;
	color: #555;
	text-decoration: none;
}

/* Navigation */
.cmw-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding: 0 0 70px;
}

.cmw-nav-item {
	border-top: 1px solid var(--cmw-border);
	padding-top: 20px;
}

.cmw-nav-next {
	text-align: right;
}

.cmw-nav-label {
	display: block;
	color: #888;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}

.cmw-nav-title a {
	color: #111;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.cmw-nav-title a:hover {
	color: #8aa000;
}

/* Related */
.cmw-related {
	background: var(--cmw-bg);
	padding: 80px 0;
}

.cmw-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 32px;
}

.cmw-section-heading h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.1;
	letter-spacing: -.03em;
}

.cmw-text-link {
	color: #222;
	font-weight: 700;
	text-decoration: none;
}

.cmw-text-link:hover {
	color: #849700;
}

.cmw-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.cmw-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: var(--cmw-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.cmw-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.cmw-card-image {
	display: block;
	height: 210px;
	background: #111;
	overflow: hidden;
}

.cmw-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.cmw-card:hover .cmw-card-image img {
	transform: scale(1.04);
}

.cmw-card-image span {
	height: 100%;
	display: grid;
	place-items: center;
	color: var(--cmw-lime);
	font-size: 22px;
	font-weight: 700;
}

.cmw-card-body {
	padding: 24px;
}

.cmw-card-category {
	display: inline-block;
	background: var(--cmw-lime);
	color: #111;
	padding: 5px 9px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.cmw-card h3 {
	font-size: 23px;
	line-height: 1.2;
	margin: 0 0 10px;
	letter-spacing: -.02em;
}

.cmw-card h3 a {
	color: #111;
	text-decoration: none;
}

.cmw-card p {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 18px;
}

.cmw-read-more {
	color: #8a9d00;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.cmw-read-more span {
	font-size: 18px;
	margin-left: 4px;
}

/* CTA */
.cmw-cta-wrap {
	padding: 50px 0 80px;
}

.cmw-cta {
	background: #111;
	color: #fff;
	border-radius: 22px;
	padding: 34px 42px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

.cmw-cta-icon {
	width: 58px;
	height: 58px;
	border: 2px solid var(--cmw-lime);
	color: var(--cmw-lime);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 25px;
	font-weight: 800;
}

.cmw-cta-copy h2 {
	color: #fff;
	margin: 0 0 7px;
	font-size: 25px;
	line-height: 1.2;
}

.cmw-cta-copy p {
	color: rgba(255,255,255,.68);
	margin: 0;
	font-size: 14px;
}

.cmw-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.cmw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
}

.cmw-btn-primary {
	background: var(--cmw-lime);
	color: #111 !important;
}

.cmw-btn-outline {
	border: 1px solid rgba(255,255,255,.45);
	color: #fff !important;
	background: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
	.cmw-hero-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.cmw-hero-image {
		min-height: 320px;
	}

	.cmw-featured-image {
		min-height: 320px;
	}

	.cmw-content-grid {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.cmw-sidebar-box {
		position: static;
	}

	.cmw-sidebar {
		order: 2;
	}

	.cmw-post-content {
		order: 1;
	}

	.cmw-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cmw-cta {
		grid-template-columns: auto 1fr;
	}

	.cmw-cta-actions {
		grid-column: 2;
	}
}

@media (max-width: 700px) {
	.cmw-container {
		width: min(100% - 32px, 1280px);
	}

	.cmw-blog-hero {
		padding: 52px 0;
	}

	.cmw-hero-copy h1 {
		font-size: 42px;
	}

	.cmw-hero-excerpt {
		font-size: 16px;
	}

	.cmw-article-section,
	.cmw-related {
		padding: 55px 0;
	}

	.cmw-entry-content {
		font-size: 16px;
	}

	.cmw-entry-content h2 {
		font-size: 29px;
	}

	.cmw-related-grid {
		grid-template-columns: 1fr;
	}

	.cmw-section-heading {
		display: block;
	}

	.cmw-text-link {
		display: inline-block;
		margin-top: 15px;
	}

	.cmw-post-navigation {
		grid-template-columns: 1fr;
		padding-bottom: 45px;
	}

	.cmw-nav-next {
		text-align: left;
	}

	.cmw-cta {
		grid-template-columns: 1fr;
		padding: 28px;
	}

	.cmw-cta-actions {
		grid-column: auto;
	}

	.cmw-author-box {
		padding: 20px;
	}

	.cmw-post-meta {
		gap: 10px;
	}
}
