/* Blog Single Styles */

/* Hero */
.hp-blog-hero {
	padding: 80px 0 0;
	background: var(--h-color-surface);
}

.hp-blog-hero__inner {
	text-align: center;
	margin-bottom: 60px;
}

.hp-blog-hero__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--h-color-text-secondary);
	font-weight: 500;
}

.hp-badge--primary {
	background: rgba(var(--h-color-primary-rgb), 0.1);
	color: var(--h-color-primary);
	border-color: rgba(var(--h-color-primary-rgb), 0.2);
}

.hp-blog-hero__title {
	font-size: 48px;
	font-weight: 800;
	color: var(--h-color-heading);
	margin-bottom: 24px;
	line-height: 1.2;
}

.hp-blog-hero__excerpt {
	font-size: 22px;
	color: var(--h-color-text-secondary);
	line-height: 1.6;
	margin-bottom: 40px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Author Info in Hero */
.hp-blog-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.hp-blog-author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.hp-blog-author-info {
	text-align: left;
}

.hp-blog-author-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--h-color-heading);
}

.hp-blog-author-expertise {
	display: block;
	font-size: 14px;
	color: var(--h-color-text-tertiary);
}

/* Featured Image */
.hp-blog-hero__image-wrapper {
	margin-bottom: -60px; /* Overlap effect */
	position: relative;
	z-index: 10;
}

.hp-blog-hero__image {
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	display: block;
}

/* Body Layout */
.hp-blog-body-section {
	padding: 120px 0 80px;
	background: #fff;
}

/* Content Narrative */
.hp-blog-narrative {
	font-size: 19px;
	line-height: 1.8;
	color: var(--h-color-text);
}

.hp-blog-narrative h2, 
.hp-blog-narrative h3 {
	color: var(--h-color-heading);
	margin-top: 48px;
	margin-bottom: 24px;
}

.hp-blog-narrative h2 {
	font-size: 32px;
	font-weight: 700;
}

.hp-blog-narrative h3 {
	font-size: 24px;
	font-weight: 600;
}

.hp-blog-narrative p {
	margin-bottom: 24px;
}

.hp-blog-narrative ul, 
.hp-blog-narrative ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.hp-blog-narrative li {
	margin-bottom: 12px;
}

.hp-blog-narrative blockquote {
	border-left: 4px solid var(--h-color-primary);
	padding-left: 24px;
	margin: 32px 0;
	font-size: 22px;
	font-style: italic;
	color: var(--h-color-text-secondary);
}

/* TOC */
.hp-blog-toc {
	background: var(--h-color-surface-alt);
	padding: 32px;
	border-radius: 12px;
	margin-bottom: 48px;
}

.hp-blog-toc h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* FAQ */
.hp-blog-faq-section h2 {
	margin-top: 0;
}

.hp-blog-faq-content p {
	margin-bottom: 16px;
}

/* Author Box */
.hp-blog-author-box {
	background: var(--h-color-surface-alt);
	padding: 40px;
	border-radius: 16px;
	margin-top: 60px;
}

.hp-blog-author-box__inner {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.hp-blog-author-box__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
}

.hp-blog-author-box__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 4px;
}

.hp-blog-author-box__expertise {
	display: block;
	font-size: 14px;
	color: var(--h-color-text-tertiary);
	margin-bottom: 16px;
}

.hp-blog-author-box__bio {
	font-size: 16px;
	line-height: 1.6;
	color: var(--h-color-text-secondary);
	margin: 0;
}

@media (max-width: 768px) {
	.hp-blog-author-box__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Related Content */
.hp-blog-related-section {
	padding: 80px 0;
	background: var(--h-color-surface);
	border-top: 1px solid var(--h-color-border-subtle);
}

.hp-blog-related-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 40px;
	text-align: center;
}

.hp-blog-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

.hp-related-snippet-card {
	background: #fff;
	border: 1px solid var(--h-color-border-subtle);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-related-snippet-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.05);
	border-color: var(--h-color-primary);
}

.hp-related-snippet-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.hp-related-snippet-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background: var(--h-color-surface-alt);
}

.hp-related-snippet-content {
	padding: 20px;
}

.hp-related-snippet-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--h-color-primary);
	background: rgba(var(--h-color-primary-rgb), 0.1);
	padding: 4px 8px;
	border-radius: 8px;
	margin-bottom: 12px;
}

.hp-related-snippet-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 8px;
	line-height: 1.4;
}

.hp-related-snippet-excerpt {
	font-size: 14px;
	color: var(--h-color-text-secondary);
	margin: 0;
	line-height: 1.5;
}
