/* Sparkling Minds Blog — single post styles */

.sm-blog--single .sm-blog__inner,
.sm-blog--single {
	max-width: 1180px;
	margin: 0 auto;
}

.sm-blog__article {
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.sm-blog__article-header {
	max-width: 760px;
	margin: 0 auto 32px;
	text-align: left;
}

.sm-blog__article-header .sm-pill {
	margin-bottom: 16px;
}

.sm-blog__article-title {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	line-height: 1.2;
	margin: 0 0 18px;
	font-weight: 700;
}

.sm-blog__article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--sm-muted);
	font-size: 0.95rem;
	margin-bottom: 28px;
}
.sm-blog__author-avatar {
	border-radius: 50%;
	margin-right: 4px;
}
.sm-blog__meta-sep { opacity: .6; }

.sm-blog__article-hero {
	margin: 0;
}
.sm-blog__article-hero img {
	width: 100%;
	height: auto;
	border-radius: var(--sm-card-radius);
	display: block;
}

/* Article layout: TOC sidebar + body */
.sm-blog__article-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	max-width: 980px;
	margin: 32px auto 0;
}
@media (max-width: 900px) {
	.sm-blog__article-layout {
		grid-template-columns: 1fr;
	}
	.sm-blog__toc-wrap { order: -1; }
}

.sm-blog__toc {
	position: sticky;
	top: 24px;
	border-left: 2px solid var(--sm-border);
	padding-left: 18px;
}
.sm-blog__toc-title {
	margin: 0 0 12px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--sm-muted);
	font-weight: 700;
}
.sm-blog__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sm-blog__toc-item--h3 { padding-left: 14px; }
.sm-blog__toc-item a {
	color: var(--sm-text);
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.4;
}
.sm-blog__toc-item a:hover { color: #2b6cb0; }

/* Body typography */
.sm-blog__article-body {
	font-size: 1.05rem;
	line-height: 1.75;
}
.sm-blog__article-body p { margin: 0 0 1.1em; }
.sm-blog__article-body h2 {
	font-size: 1.6rem;
	margin: 2em 0 .6em;
	font-weight: 700;
}
.sm-blog__article-body h3 {
	font-size: 1.25rem;
	margin: 1.6em 0 .5em;
	font-weight: 700;
}
.sm-blog__article-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--sm-card-radius);
	margin: 1.2em 0;
}
.sm-blog__article-body ul,
.sm-blog__article-body ol {
	padding-left: 1.4em;
	margin: 0 0 1.1em;
}
.sm-blog__article-body li { margin-bottom: .35em; }
.sm-blog__article-body blockquote {
	border-left: 4px solid #2b6cb0;
	margin: 1.4em 0;
	padding: .4em 0 .4em 1.2em;
	color: var(--sm-text);
	font-style: italic;
}

/* CTA */
.sm-blog__cta {
	margin: 40px 0 0;
	padding: 28px 28px 30px;
	border-radius: var(--sm-card-radius);
	background: linear-gradient(135deg, #2b6cb0 0%, #1d4ed8 100%);
	color: #fff;
	text-align: center;
}
.sm-blog__cta-title {
	margin: 0 0 8px;
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
}
.sm-blog__cta-body { margin-bottom: 18px; opacity: .95; }
.sm-blog__cta-body p:last-child { margin-bottom: 0; }
.sm-blog__cta-button {
	display: inline-block;
	padding: 12px 24px;
	background: #fff;
	color: #2b6cb0;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s ease;
}
.sm-blog__cta-button:hover { transform: translateY(-1px); }

/* Author bio */
.sm-blog__author {
	max-width: 980px;
	margin: 40px auto 0;
	padding: 24px;
	border: 1px solid var(--sm-border);
	border-radius: var(--sm-card-radius);
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 20px;
	align-items: start;
	background: var(--sm-bg-soft);
}
.sm-blog__author-avatar-lg img { border-radius: 50%; }
.sm-blog__author-label {
	margin: 0 0 4px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--sm-muted);
	font-weight: 700;
}
.sm-blog__author-name-lg {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
}
.sm-blog__author-bio {
	margin: 0;
	color: var(--sm-text);
	line-height: 1.6;
}
@media (max-width: 600px) {
	.sm-blog__author { grid-template-columns: 1fr; text-align: center; }
	.sm-blog__author-avatar-lg { justify-self: center; }
}

/* Related */
.sm-blog__related {
	max-width: 1080px;
	margin: 56px auto 0;
}
.sm-blog__related-title {
	font-size: 1.4rem;
	margin: 0 0 18px;
	font-weight: 700;
}
.sm-blog__grid--related {
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
	.sm-blog__grid--related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.sm-blog__grid--related { grid-template-columns: 1fr; }
}
