/**
 * Single Related
 * -------------------------------------------------------
 * Artigos relacionados exibidos após o conteúdo e autor.
 *
 * @package Valore_RH_Core
 * @since   1.0.0
 */

.vr-single-related {
	padding: 80px 20px 96px;
	background: #f7f9fb;
	font-family: "Poppins", sans-serif;
}

.vr-single-related__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.vr-single-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 38px;
}

.vr-single-related__heading {
	max-width: 680px;
}

.vr-single-related__eyebrow {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d97d0e;
}

.vr-single-related__title {
	margin: 0 0 10px;
	font-family: "Poppins", sans-serif;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	color: #021627;
}

.vr-single-related__description {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: #667085;
}

.vr-single-related__all-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	padding-bottom: 4px;
	border-bottom: 1px solid #021627;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	color: #021627;
	transition:
		gap 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.vr-single-related__all-link:hover {
	gap: 13px;
	border-color: #d97d0e;
	text-decoration: none;
	color: #d97d0e;
}

.vr-single-related__all-link:focus-visible {
	outline: 3px solid rgba(247, 164, 55, 0.35);
	outline-offset: 5px;
	border-radius: 3px;
}

.vr-single-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}

.vr-single-related__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e3e8ef;
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(2, 22, 39, 0.07);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.vr-single-related__card:hover {
	transform: translateY(-6px);
	border-color: rgba(247, 164, 55, 0.55);
	box-shadow: 0 22px 48px rgba(2, 22, 39, 0.13);
}

.vr-single-related__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e9edf2;
}

.vr-single-related__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.vr-single-related__card:hover .vr-single-related__image {
	transform: scale(1.045);
}

.vr-single-related__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	background:
		linear-gradient(
			135deg,
			#021627 0%,
			#0c334f 100%
		);
}

.vr-single-related__placeholder span {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffffff;
}

.vr-single-related__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.vr-single-related__category-wrapper {
	margin-bottom: 11px;
}

.vr-single-related__category {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	background: #fff7e9;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	color: #b56308;
}

a.vr-single-related__category:hover {
	background: #f7a437;
	text-decoration: none;
	color: #021627;
}

a.vr-single-related__category:focus-visible {
	outline: 3px solid rgba(247, 164, 55, 0.35);
	outline-offset: 3px;
}

.vr-single-related__card-title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 56px;
	margin: 0 0 12px;
	font-family: "Poppins", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.38;
	color: #021627;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vr-single-related__card-title a {
	text-decoration: none;
	color: inherit;
}

.vr-single-related__card-title a:hover {
	text-decoration: none;
	color: #b56308;
}

.vr-single-related__card-title a:focus-visible {
	outline: 3px solid rgba(247, 164, 55, 0.35);
	outline-offset: 3px;
	border-radius: 3px;
}

.vr-single-related__excerpt {
	display: -webkit-box;
	overflow: hidden;
	min-height: 72px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	color: #667085;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.vr-single-related__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	color: #7b8492;
}

.vr-single-related__separator {
	color: #c1c7d0;
}

.vr-single-related__read-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	color: #021627;
	transition:
		gap 0.2s ease,
		color 0.2s ease;
}

.vr-single-related__read-link:hover {
	gap: 12px;
	text-decoration: none;
	color: #d97d0e;
}

.vr-single-related__read-link:focus-visible {
	outline: 3px solid rgba(247, 164, 55, 0.35);
	outline-offset: 4px;
	border-radius: 3px;
}

@media (max-width: 960px) {
	.vr-single-related {
		padding-top: 70px;
		padding-bottom: 80px;
	}

	.vr-single-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vr-single-related__card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		max-width: calc(50% - 13px);
	}
}

@media (max-width: 768px) {
	.vr-single-related {
		padding: 64px 20px 72px;
	}

	.vr-single-related__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 22px;
		margin-bottom: 30px;
	}

	.vr-single-related__title {
		font-size: 28px;
	}
}

@media (max-width: 620px) {
	.vr-single-related {
		padding-right: 16px;
		padding-left: 16px;
	}

	.vr-single-related__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.vr-single-related__card:last-child:nth-child(odd) {
		grid-column: auto;
		max-width: none;
	}

	.vr-single-related__content {
		padding: 22px;
	}

	.vr-single-related__card-title {
		min-height: auto;
		font-size: 19px;
		-webkit-line-clamp: 3;
	}

	.vr-single-related__excerpt {
		min-height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vr-single-related__card,
	.vr-single-related__image,
	.vr-single-related__all-link,
	.vr-single-related__read-link {
		transition: none;
	}

	.vr-single-related__card:hover {
		transform: none;
	}

	.vr-single-related__card:hover .vr-single-related__image {
		transform: none;
	}
}