/**
 * Related Posts Styles
 */
.elementic-related-posts {
	margin: 50px 0;
	padding: 40px 0;
	border-top: 2px solid #e0e0e0;
}

.related-posts-title {
	font-size: 28px;
	margin-bottom: 30px;
	color: #333;
	position: relative;
	padding-bottom: 15px;
}

.related-posts-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: var(--elementic-primary-color, #ff8c00);
}

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

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

.related-post-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.related-post-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.related-post-thumbnail {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
}

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

.related-post-item:hover .related-post-thumbnail img {
	transform: scale(1.05);
}

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

.related-post-category {
	margin-bottom: 10px;
}

.category-link {
	display: inline-block;
	padding: 4px 12px;
	background: var(--elementic-primary-color, #ff8c00);
	color: #fff;
	font-size: 12px;
	text-decoration: none;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background 0.3s ease;
}

.category-link:hover {
	background: var(--elementic-secondary-color, #e67a00);
}

.related-post-title {
	font-size: 18px;
	margin: 0 0 10px;
	line-height: 1.4;
}

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

.related-post-title a:hover {
	color: var(--elementic-primary-color, #ff8c00);
}

.related-post-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
}

.related-post-date i {
	color: var(--elementic-primary-color, #ff8c00);
	margin-right: 5px;
}

.related-post-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

/* List layout */
.elementic-related-posts-list .related-post-item {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 20px;
}

.elementic-related-posts-list .related-post-thumbnail {
	aspect-ratio: 4/3;
}

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

	.elementic-related-posts-list .related-post-item {
		grid-template-columns: 1fr;
	}
}
