/* === BLOG TEMPLATE STYLES === */

.blog-hero {
	padding: 140px 0 60px;
	position: relative;
}

.post-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

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

.blog-featured-image-wrapper {
	margin-top: 4rem;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.featured-image-container {
	padding: 0;
	overflow: hidden;
	position: relative;
	border-radius: 24px;
	aspect-ratio: 16 / 9;
}

.featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.8;
}

/* ARTICLE BODY FORMATTING */
.blog-content-section {
	padding: 60px 0 100px;
}

.content-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 4rem;
	max-width: 1000px;
}

.blog-article {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #d1d1d1;
}

.blog-article h2 {
	font-size: 2rem;
	margin: 3rem 0 1.5rem;
	color: white;
}

.blog-article p {
	margin-bottom: 1.5rem;
}

.blog-article .lead {
	font-size: 1.4rem;
	color: white;
	font-weight: 500;
	line-height: 1.6;
}

.blog-article blockquote {
	border-left: 3px solid var(--primary);
	padding-left: 1.5rem;
	margin: 3rem 0;
	font-style: italic;
	font-size: 1.25rem;
	color: white;
}

.blog-article ul {
	margin: 2rem 0;
	padding-left: 1.2rem;
}

.blog-article li {
	margin-bottom: 0.75rem;
}

/* Content Callout Box */
.content-callout {
	background: rgba(0, 229, 255, 0.05);
	border: 1px solid rgba(0, 229, 255, 0.2);
	padding: 1.5rem;
	border-radius: 12px;
	display: flex;
	gap: 1rem;
	margin: 2.5rem 0;
}

.content-callout p {
	margin: 0;
	font-size: 0.95rem;
	color: #fff;
}

/* Sidebar */
.blog-sidebar {
	position: sticky;
	top: 120px;
	height: fit-content;
}

.sidebar-cta {
	padding: 2rem;
	text-align: center;
}

.sidebar-cta h3 {
	margin-bottom: 1rem;
}

/* Related Posts */
.related-posts {
	padding: 60px 0;
	border-top: 1px solid var(--border);
}

.section-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.related-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.related-card {
	padding: 2rem;
	transition: 0.3s;
}

.related-card:hover {
	border-color: var(--primary);
	transform: translateY(-5px);
}

.related-tag {
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.blog-sidebar {
		display: none;
	}

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

.blog-header h1 {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.05;
	/* letter-spacing: -0.05em; */
	margin-bottom: 2rem;
	max-width: 950px;
	margin-left: auto;
	margin-right: auto;
}

/* Ensure the gradient span looks extra sharp */
.text-gradient-cyan {
	background: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	/* Helps with rendering gradients on some browsers */
}

/* Add a subtle "glow" to the headline so it lifts off the grid */
.blog-header h1 {
	text-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

/* Mobile Adjustment - Don't forget to keep it readable on phones */
@media (max-width: 768px) {
	.blog-header h1 {
		font-size: 2.8rem;
		letter-spacing: -0.03em;
	}
}



/* === BLOG LIST SPECIFIC STYLES === */

.blog-list-hero {
	padding: 140px 0 60px;
	position: relative;
}

.blog-list-hero h1 {
	font-size: 4rem;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.05em;
	margin-bottom: 1.5rem;
}

/* Featured Card Layout */
.featured-post {
	margin-top: 4rem;
}

.featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 0;
	overflow: hidden;
	padding: 0;
	border-radius: 24px;
	transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover {
	border-color: var(--primary);
	transform: translateY(-5px);
}

.featured-image-side {
	height: 400px;
	overflow: hidden;
}

.featured-image-side img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.6s;
}

.featured-card:hover .featured-image-side img {
	transform: scale(1.05);
}

.featured-content-side {
	padding: 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.featured-content-side h2 {
	font-size: 2.5rem;
	margin: 1rem 0;
	line-height: 1.2;
}

/* Post Tags */
.post-tag {
	color: var(--primary);
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.post-footer {
	margin-top: auto;
	display: flex;
	gap: 1.5rem;
	color: #666;
	font-size: 0.85rem;
	font-weight: 500;
}

/* Filter Navigation */
.blog-filters {
	margin: 4rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 1.5rem 0;
}

.filter-group {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.filter-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-muted);
	padding: 0.6rem 1.2rem;
	border-radius: 50px;
	cursor: pointer;
	font-weight: 600;
	transition: 0.2s;
}

.filter-btn:hover {
	color: white;
}

.filter-btn.active {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--border);
	color: white;
}

/* Blog Grid */
.blog-main-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 4rem;
}

.blog-card {
	padding: 0;
	overflow: hidden;
	height: 100%;
	transition: 0.3s;
}

.blog-card:hover {
	border-color: var(--primary);
	transform: translateY(-5px);
}

.card-link {
	display: block;
	height: 100%;
}

.card-img {
	height: 200px;
	overflow: hidden;
}

.card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	padding: 2rem;
}

.card-body h3 {
	margin: 0.8rem 0;
	font-size: 1.35rem;
	line-height: 1.4;
}

.card-body p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-pagination {
	margin: 4rem 0 8rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
	.blog-list-hero h1 {
		font-size: 3rem;
	}

	.featured-card {
		grid-template-columns: 1fr;
	}

	.featured-image-side {
		height: 250px;
	}

	.blog-main-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.blog-main-grid {
		grid-template-columns: 1fr;
	}

	.filter-group {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
}