/* Non-critical CSS for homepage - Loaded after LCP */

/* Enhanced styles for featured post */
.featured-post {
	transition: all 0.3s ease;
	border: 1px solid rgb(var(--gray-light));
}

.featured-post:hover {
	box-shadow: var(--card-shadow-hover);
	transform: translateY(-4px);
}

.featured-post img, .featured-post picture img {
	transition: transform 0.3s ease;
}

.featured-post:hover img {
	transform: scale(1.05);
}

.featured-post .date {
	color: rgb(var(--gray));
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

.featured-post a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.featured-post a:hover h2 {
	color: rgb(var(--accent));
}

/* Other posts grid */
.other-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.post-card {
	background: var(--bg-surface);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: all 0.3s ease;
	border: 1px solid rgb(var(--gray-light));
}

.post-card:hover {
	box-shadow: var(--card-shadow-hover);
	transform: translateY(-4px);
}

.post-card img, .post-card picture img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

.post-card-content {
	padding: 1.5rem;
}

.post-card h3 {
	font-size: 1.2rem;
	margin: 0 0 0.75rem 0;
	color: rgb(var(--black));
	line-height: 1.3;
	font-weight: bold;
}

.post-card .date {
	color: rgb(var(--gray));
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.post-card .description {
	color: rgb(var(--gray-dark));
	font-size: 0.95rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.post-card a:hover h3 {
	color: rgb(var(--accent));
}

/* Responsive adjustments */
@media (max-width: 720px) {
	.featured-post {
		padding: 1.5rem;
	}
	
	.featured-post h2 {
		font-size: 1.3rem;
	}
	
	.other-posts {
		grid-template-columns: 1fr;
	}
}