/* Blog Post Preview (Listing) */
.blog-post-preview {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.blog-post-preview:last-child {
	border-bottom: none;
}

.blog-post-preview .featured-image-container {
	flex-shrink: 0;
	width: 180px;
	margin-top: 0.3rem;
}

.blog-post-preview .featured-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	border: none;
	margin: 0 !important;
}

.blog-post-preview .featured-image-container a {
	display: block;
	line-height: 0;
}

.blog-post-preview .blog-post-content {
	flex: 1;
	min-width: 0;
}

.blog-post-preview h2 {
	margin: 0 0 0.5rem 0;
	padding: 0;
	font-size: 1.8rem;
	line-height: 1.2;
	display: block;
	background: none;
}

.blog-post-preview h2 a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.blog-post-preview h2 a:hover {
	color: #0066cc;
}

.blog-post-preview .meta {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.blog-post-preview .meta span {
	margin-right: 1.5rem;
	display: inline-block;
}

.blog-post-preview .meta .date {
	margin-bottom: 0;
}

.blog-post-preview .meta i {
	margin-right: 0.3rem;
}

.blog-post-preview .meta a {
	color: #666;
	text-decoration: none;
}

.blog-post-preview .meta a:hover {
	color: #0066cc;
}

.blog-post-preview .excerpt {
	margin: 1rem 0;
	line-height: 1.6;
	color: #555;
}

.blog-post-preview .read-more {
	display: inline-block;
	margin-top: 0;
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.blog-post-preview .read-more:hover {
	text-decoration: underline;
}

/* Single Blog Post */
.blog-post {
	margin: 0 auto;
}

header.blog-post-header {
	background-color: transparent !important;
	background: none !important;
	padding: 0 !important;
	margin-bottom: 2rem;
	box-shadow: none !important;
	height: auto !important;
	display: block !important;
}

.blog-post .featured-image-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto 2rem auto;
	text-align: center;
}

.blog-post .featured-image {
	width: 100%;
	height: auto;
	max-height: 500px;
	object-fit: contain;
	display: block;
	border: none;
}

h1.blog-title,
.content .blog-post-header h1.blog-title,
.content .blog-post-header h1,
.content .blog-post h1 {
	font-size: 2.5rem !important;
	margin: 0 0 1rem 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	display: block !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #333 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.content .blog-post-header .meta {
	display: block !important;
	color: #888 !important;
	font-size: 0.9rem !important;
	margin: 0.5rem 0 2rem 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	line-height: normal !important;
}

.blog-post-header .meta span {
	margin-right: 1.5rem;
	display: inline-block;
}

.blog-post-header .meta i {
	margin-right: 0.5rem;
	color: #888;
}

/* Blog Content */
.blog-content {
	line-height: 1.8;
	font-size: 1.1rem;
	color: #333;
}

.blog-content p {
	margin-bottom: 1.5rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 2rem; }
.blog-content h3 {
	font-size: 1.7rem;
	color: #196eb4;
}
.blog-content h4 { font-size: 1.4rem; }

/* Paragraphs with images */
.blog-content p:has(img) {
	text-align: left;
}

.blog-content img {
	max-width: 100%;
	height: auto;
	margin: 2rem 0;
	display: block;
	border-radius: 4px;
	padding: 0.5rem;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* When image has caption after it, remove bottom margin */
.blog-content p:has(img):has(em) img {
	margin-bottom: 0.5rem;
}

/* Image captions - em tag styling */
.blog-content p:has(img) em {
	display: block;
	font-style: italic;
	color: #777;
	margin-top: 0;
}

.blog-content pre {
	background: #f5f5f5;
	padding: 1rem;
	overflow-x: auto;
	border-radius: 4px;
	margin: 1.5rem 0;
	border-left: 3px solid #0066cc;
}

.blog-content code {
	background: #f5f5f5;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
}

.blog-content pre code {
	background: none;
	padding: 0;
}

.blog-content blockquote {
	border-left: 4px solid #0066cc;
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	color: #555;
	font-style: italic;
}

.blog-content ul,
.blog-content ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.blog-content li {
	margin-bottom: 0.5rem;
}

.blog-content a {
	color: #0066cc;
	text-decoration: none;
}

.blog-content a:hover {
	text-decoration: underline;
}

.blog-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.blog-content th,
.blog-content td {
	border: 1px solid #ddd;
	padding: 0.75rem;
	text-align: left;
}

.blog-content th {
	background: #f5f5f5;
	font-weight: 600;
}

/* Blog Post Footer */
.blog-post-footer {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.blog-post-footer .back-link {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.blog-post-footer .back-link:hover {
	text-decoration: underline;
}

/* No Posts Message */
.no-posts {
	padding: 2rem;
	text-align: center;
	color: #666;
	font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.blog-post h1 {
		font-size: 2rem;
	}

	.blog-post-preview {
		flex-direction: column;
	}

	.blog-post-preview .featured-image-container {
		width: 100%;
	}

	.blog-post-preview h2 {
		font-size: 1.5rem;
	}

	.blog-content {
		font-size: 1rem;
	}

	.blog-post .meta span,
	.blog-post-preview .meta span {
		display: block;
		margin-right: 0;
		margin-bottom: 0.25rem;
	}

	.blog-post-preview .meta span:last-child {
		margin-bottom: 0;
	}

	.blog-content pre {
		font-size: 0.85rem;
	}
}
