/*!
 * Modern Blog Post Layout - Margaret BTA Books
 * Clean, minimal, centered design
 */

/* ========================================
   Hide Page Header Banner on Single Posts
   ======================================== */

.single-post .page-header,
.single .page-header {
	display: none !important;
}

/* Adjust top spacing when banner is hidden */
.single-post .blog-one,
.single .blog-one {
	padding-top: 60px;
}

/* ========================================
   Main Container
   ======================================== */

.modern-blog-post {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

.modern-blog-layout {
	background: transparent;
}

/* ========================================
   Breadcrumb
   ======================================== */

.blog-breadcrumb {
	font-family: 'Mulish', sans-serif;
	font-size: 14px;
	color: #666;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.blog-breadcrumb a {
	color: #666;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
	color: #8C6324;
}

.blog-breadcrumb .separator {
	margin: 0 8px;
	color: #999;
}

.blog-breadcrumb .current-category {
	color: #8C6324;
	font-weight: 600;
}

/* ========================================
   Post Title
   ======================================== */

.modern-blog-title {
	font-family: 'Fraunces', serif !important;
	font-size: 48px;
	line-height: 1.2;
	font-weight: 600;
	color: #0e0502;
	margin-bottom: 24px;
	text-align: left;
}

@media (max-width: 768px) {
	.modern-blog-title {
		font-size: 32px;
	}
}

/* ========================================
   Author Meta
   ======================================== */

.modern-blog-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
}

.modern-blog-meta .author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.modern-blog-meta .author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.modern-blog-meta .author-name {
	font-family: 'Mulish', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0e0502;
}

.modern-blog-meta .post-date {
	font-family: 'Mulish', sans-serif;
	font-size: 13px;
	color: #666;
}

/* ========================================
   Featured Image
   ======================================== */

.modern-blog-image {
	margin-bottom: 40px;
	border-radius: 12px;
	overflow: hidden;
}

.modern-blog-image .featured-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

/* ========================================
   Post Content
   ======================================== */

.modern-blog-content {
	font-family: 'Mulish', sans-serif;
	font-size: 18px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 40px;
}

.modern-blog-content p {
	margin-bottom: 24px;
}

.modern-blog-content h2,
.modern-blog-content h3,
.modern-blog-content h4 {
	font-family: 'Fraunces', serif !important;
	font-weight: 600;
	color: #0e0502;
	margin-top: 40px;
	margin-bottom: 20px;
}

.modern-blog-content h2 {
	font-size: 32px;
	line-height: 1.3;
}

.modern-blog-content h3 {
	font-size: 24px;
	line-height: 1.4;
}

.modern-blog-content h4 {
	font-size: 20px;
	line-height: 1.4;
}

.modern-blog-content ul,
.modern-blog-content ol {
	margin: 24px 0;
	padding-left: 24px;
}

.modern-blog-content li {
	margin-bottom: 12px;
	line-height: 1.8;
}

.modern-blog-content a {
	color: #8C6324;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.modern-blog-content a:hover {
	color: #D6B06B;
}

.modern-blog-content blockquote {
	border-left: 4px solid #8C6324;
	padding-left: 24px;
	margin: 32px 0;
	font-style: italic;
	color: #555;
	font-size: 20px;
}

.modern-blog-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 24px 0;
}

/* ========================================
   Tags
   ======================================== */

.modern-blog-tags {
	margin-bottom: 60px;
	padding-top: 30px;
	border-top: 1px solid #e5e5e5;
}

.modern-blog-tags a {
	display: inline-block;
	padding: 8px 16px;
	margin: 0 8px 8px 0;
	background: #f5f5f5;
	color: #666;
	border-radius: 20px;
	font-size: 14px;
	font-family: 'Mulish', sans-serif;
	text-decoration: none;
	transition: all 0.3s ease;
}

.modern-blog-tags a:hover {
	background: #8C6324;
	color: #fff;
}

/* ========================================
   Related Posts Section
   ======================================== */

.modern-related-posts {
	margin-top: 80px;
	padding-top: 60px;
	border-top: 2px solid #e5e5e5;
}

.related-posts-title {
	font-family: 'Fraunces', serif !important;
	font-size: 36px;
	font-weight: 600;
	color: #0e0502;
	text-align: center;
	margin-bottom: 50px;
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 60px;
}

@media (max-width: 768px) {
	.related-posts-grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   Related Post Card
   ======================================== */

.related-post-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #f0f0f0;
}

.related-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-post-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

.related-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
	transform: scale(1.05);
}

.related-post-content {
	padding: 24px;
}

.related-post-category {
	display: inline-block;
	font-family: 'Mulish', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8C6324;
	margin-bottom: 12px;
}

.related-post-title {
	font-family: 'Fraunces', serif !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 12px;
}

.related-post-title a {
	color: #0e0502;
	text-decoration: none;
	transition: color 0.3s ease;
}

.related-post-title a:hover {
	color: #8C6324;
}

.related-post-excerpt {
	font-family: 'Mulish', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 12px;
}

.related-post-date {
	font-family: 'Mulish', sans-serif;
	font-size: 13px;
	color: #999;
}

/* ========================================
   Remove Sidebar on Single Posts
   ======================================== */

.single-post .blog-one .row > div:last-child.sidebar {
	display: none;
}

.single-post .blog-one .row > div:first-child {
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* ========================================
   Page Links (Pagination within post)
   ======================================== */

.page-links {
	margin: 40px 0;
	font-family: 'Mulish', sans-serif;
	font-size: 16px;
	font-weight: 600;
}

.page-links a {
	padding: 8px 16px;
	margin: 0 4px;
	background: #f5f5f5;
	color: #666;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.page-links a:hover {
	background: #8C6324;
	color: #fff;
}

/* ========================================
   Comments Section Styling
   ======================================== */

.comments-area {
	max-width: 800px;
	margin: 60px auto 0;
	padding-top: 40px;
	border-top: 1px solid #e5e5e5;
}

.comments-title {
	font-family: 'Fraunces', serif !important;
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 30px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
	.modern-blog-post {
		padding: 20px 15px;
	}
	
	.modern-blog-content {
		font-size: 16px;
	}
	
	.related-posts-title {
		font-size: 28px;
	}
}
