/* ==========================================================================
   Betty Gotuje – Related Recipes Styling
   ========================================================================== */

.bg-related-recipes {
	margin-top: 40px;
	margin-bottom: 24px;
	padding-top: 32px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bg-related-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--heading-primary, #1f1f1f);
	line-height: 1.3;
}

.bg-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.bg-related-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #eaeaea;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bg-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: #d8d8d8;
}

.bg-related-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.bg-related-thumb-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f2f2;
}

.bg-related-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bg-related-card:hover .bg-related-thumb {
	transform: scale(1.04);
}

.bg-related-content {
	padding: 12px 14px 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bg-related-cat {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #e67e22;
	margin-bottom: 6px;
}

.bg-related-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #222222;
	margin: 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bg-related-card:hover .bg-related-card-title {
	color: var(--accent-hover, #c0392b);
}

/* Hide old chronological post navigation on single recipe posts */
.single-post .post-navigation,
.single-post #nav-below {
	display: none !important;
}

/* Responsive: sleek row format on mobile screens */
@media (max-width: 680px) {
	.bg-related-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bg-related-card {
		flex-direction: row;
	}

	.bg-related-card-link {
		flex-direction: row;
		align-items: center;
		width: 100%;
	}

	.bg-related-thumb-wrap {
		width: 110px;
		min-width: 110px;
		height: 85px;
		aspect-ratio: auto;
	}

	.bg-related-content {
		padding: 10px 14px;
	}

	.bg-related-card-title {
		font-size: 0.9rem;
		-webkit-line-clamp: 2;
	}
}
