/* =========================================================
   HOME BLOG
========================================================= */

.vr-home-blog,
.vr-home-blog * {
	box-sizing: border-box;
}

.vr-home-blog {
	width: 100%;
	padding: 96px 24px;
	background: #ffffff;
}

.vr-home-blog__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* =========================================================
   CABEÇALHO
========================================================= */

.vr-home-blog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 48px;
	margin-bottom: 48px;
}

.vr-home-blog__heading {
	width: 100%;
	max-width: 780px;
}

.vr-home-blog__title {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: clamp(38px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.045em;
	color: #021627;
}

.vr-home-blog__subtitle {
	margin: 8px 0 0;
	font-family: "Poppins", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: #334155;
}

.vr-home-blog__description {
	max-width: 760px;
	margin: 24px 0 0;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	color: #5f6874;
}

.vr-home-blog__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	min-height: 48px;
	margin-top: 112px;
	padding: 0 20px;
	border: 1px solid rgba(2, 22, 39, 0.14);
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	color: #021627;
	background: #ffffff;
	transition:
		background-color 220ms ease,
		color 220ms ease,
		border-color 220ms ease,
		transform 220ms ease,
		box-shadow 220ms ease;
}

.vr-home-blog__button:hover {
	border-color: #021627;
	color: #ffffff;
	background: #021627;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(2, 22, 39, 0.12);
}

.vr-home-blog__button-icon {
	flex: 0 0 auto;
	transition: transform 220ms ease;
}

.vr-home-blog__button:hover .vr-home-blog__button-icon {
	transform: translateX(4px);
}

/* =========================================================
   GRID
========================================================= */

.vr-home-blog__posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
	align-items: stretch;
}

/* =========================================================
   CARD
========================================================= */

.vr-home-post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(2, 22, 39, 0.09);
	border-radius: 20px;
	background: #ffffff;
	box-shadow:
		0 2px 6px rgba(2, 22, 39, 0.03),
		0 12px 32px rgba(2, 22, 39, 0.06);
	transition:
		transform 240ms ease,
		box-shadow 240ms ease,
		border-color 240ms ease;
}

.vr-home-post-card:hover {
	border-color: rgba(200, 33, 39, 0.22);
	transform: translateY(-6px);
	box-shadow:
		0 6px 14px rgba(2, 22, 39, 0.05),
		0 22px 48px rgba(2, 22, 39, 0.12);
}

/* =========================================================
   IMAGEM
========================================================= */

.vr-home-post-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	flex: 0 0 auto;
	background: #eef1f4;
}

.vr-home-post-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.vr-home-post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vr-home-post-card:hover .vr-home-post-card__image {
	transform: scale(1.045);
}

.vr-home-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#021627 0%,
			#18324b 60%,
			#c82127 100%
		);
}

.vr-home-post-card__placeholder-brand {
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

/* =========================================================
   CONTEÚDO
========================================================= */

.vr-home-post-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 26px;
}

.vr-home-post-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 18px;
}

.vr-home-post-card__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	color: #a3161c;
	background: rgba(200, 33, 39, 0.09);
	transition:
		color 200ms ease,
		background-color 200ms ease;
}

.vr-home-post-card__category:hover {
	color: #ffffff;
	background: #c82127;
}

.vr-home-post-card__meta-separator {
	width: 3px;
	height: 3px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #a7afb8;
}

.vr-home-post-card__reading-time {
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #77808b;
}

/* =========================================================
   TÍTULO E RESUMO
========================================================= */

.vr-home-post-card__title {
	display: -webkit-box;
	min-height: 60px;
	margin: 0;
	overflow: hidden;
	font-family: "Poppins", sans-serif;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.025em;
	color: #021627;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vr-home-post-card__title-link {
	color: inherit;
	text-decoration: none;
	transition: color 200ms ease;
}

.vr-home-post-card__title-link:hover {
	color: #c82127;
}

.vr-home-post-card__excerpt {
	display: -webkit-box;
	min-height: 72px;
	margin: 18px 0 0;
	overflow: hidden;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	color: #68717d;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* =========================================================
   RODAPÉ DO CARD
========================================================= */

.vr-home-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid rgba(2, 22, 39, 0.08);
}

.vr-home-post-card__date {
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #87909b;
}

.vr-home-post-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	color: #021627;
	transition: color 200ms ease;
}

.vr-home-post-card__link:hover {
	color: #c82127;
}

.vr-home-post-card__link-icon {
	flex: 0 0 auto;
	transition: transform 220ms ease;
}

.vr-home-post-card__link:hover .vr-home-post-card__link-icon {
	transform: translateX(4px);
}

/* =========================================================
   ESTADO VAZIO
========================================================= */

.vr-home-blog__empty {
	padding: 32px;
	border: 1px dashed rgba(2, 22, 39, 0.16);
	border-radius: 16px;
	text-align: center;
	background: #f8fafb;
}

.vr-home-blog__empty p {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #68717d;
}

/* =========================================================
   RESPONSIVIDADE — TABLET
========================================================= */

@media (max-width: 1024px) {

	.vr-home-blog {
		padding: 72px 24px;
	}

	.vr-home-blog__header {
		gap: 32px;
	}

	.vr-home-blog__button {
		margin-top: 96px;
	}

	.vr-home-blog__posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

}

/* =========================================================
   RESPONSIVIDADE — MOBILE
========================================================= */

@media (max-width: 767px) {

	.vr-home-blog {
		padding: 56px 20px;
	}

	.vr-home-blog__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 26px;
		margin-bottom: 36px;
	}

	.vr-home-blog__heading {
		max-width: none;
	}

	.vr-home-blog__title {
		font-size: 32px;
		line-height: 1.12;
		letter-spacing: -0.035em;
	}

	.vr-home-blog__subtitle {
		font-size: 16px;
	}

	.vr-home-blog__description {
		margin-top: 18px;
		font-size: 15px;
		line-height: 1.7;
	}

	.vr-home-blog__button {
		width: 100%;
		margin-top: 0;
	}

	.vr-home-blog__posts {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.vr-home-post-card__content {
		padding: 22px;
	}

	.vr-home-post-card__title {
		min-height: auto;
		font-size: 20px;
	}

	.vr-home-post-card__excerpt {
		min-height: auto;
	}

}

/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 420px) {

	.vr-home-post-card__meta {
		align-items: flex-start;
	}

	.vr-home-post-card__footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

}

/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.vr-home-blog__button,
	.vr-home-blog__button-icon,
	.vr-home-post-card,
	.vr-home-post-card__image,
	.vr-home-post-card__category,
	.vr-home-post-card__title-link,
	.vr-home-post-card__link,
	.vr-home-post-card__link-icon {
		transition: none;
	}

	.vr-home-blog__button:hover,
	.vr-home-post-card:hover {
		transform: none;
	}

	.vr-home-post-card:hover .vr-home-post-card__image {
		transform: none;
	}

}