/* Listagem de cursos */
.row-cursos {
	row-gap: 30px;
	margin-right: -15px;
	margin-left: -15px;
}

.row-cursos > * {
	display: flex;
}

:is(.single-postcard-curso, .single-postcard-revisao) {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--color-text-10);
	border-radius: 42px;
	background: var(--color-background-4);
	box-shadow: 0 2px 3px var(--color-text-15);
	transition: var(--transition-fast);
}

:is(.single-postcard-curso__link, .single-postcard-revisao__link) {
	display: block;
	width: 100%;
	height: 100%;
}

:is(.single-postcard-curso__reference-art, .single-postcard-revisao__reference-art) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

:is(.single-postcard-curso__content, .single-postcard-revisao__content) {
	--course-accent: var(--color-text);
	position: relative;
	display: flex;
	flex-flow: column;
	min-height: 100%;
	aspect-ratio: 3 / 4;
	padding: 34px 38px 38px;
	color: var(--color-text);
}

:is(.single-postcard-curso, .single-postcard-revisao).color-rosa :is(.single-postcard-curso__content, .single-postcard-revisao__content) {
	--course-accent: var(--color-secondary);
}

:is(.single-postcard-curso, .single-postcard-revisao).color-azul :is(.single-postcard-curso__content, .single-postcard-revisao__content) {
	--course-accent: var(--color-blue);
}

:is(.single-postcard-curso, .single-postcard-revisao).color-verde :is(.single-postcard-curso__content, .single-postcard-revisao__content) {
	--course-accent: #286447;
}

:is(.single-postcard-curso__brand, .single-postcard-revisao__brand) {
	position: absolute;
	top: 25px;
	left: 30px;
	display: flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	color: var(--course-accent);
}

:is(.single-postcard-curso__brand, .single-postcard-revisao__brand) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) {
	color: var(--course-accent);
	margin: 15px 0 22px;
	text-align: center;
}

:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) h2 {
	margin: 0;
	color: inherit;
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.065em;
	text-transform: uppercase;
}

:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) strong {
	display: block;
	margin-top: -5px;
	font-family: var(--font-accent);
	font-size: 50px;
	font-style: italic;
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.045em;
}

:is(.single-postcard-curso__media, .single-postcard-revisao__media) {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
	justify-content: center;
	margin: 0 -5px 20px;
}

:is(.single-postcard-curso__featured-image, .single-postcard-revisao__featured-image) {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 215px;
	object-fit: contain;
}

:is(.single-postcard-curso__description, .single-postcard-revisao__description) {
	flex: 0 0 auto;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--color-text-55);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
}

:is(.single-postcard-curso__description, .single-postcard-revisao__description) > :last-child {
	margin-bottom: 0;
}

:is(.single-postcard-curso__description, .single-postcard-revisao__description) strong,
:is(.single-postcard-curso__description, .single-postcard-revisao__description) em {
	font-family: var(--font-accent);
}

:is(.single-postcard-curso__description, .single-postcard-revisao__description) em {
	font-style: italic;
}

:is(.single-postcard-curso__description, .single-postcard-revisao__description) strong {
	font-weight: 600;
}

:is(.single-postcard-curso, .single-postcard-revisao):hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 24px var(--color-text-14);
}

.cursos-empty {
	width: 100%;
	text-align: center;
}

@media (max-width: 1199px) {

	:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) h2 {
		font-size: 26px;

	}

	:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) strong {
		font-size: 60px;
	}

	:is(.single-postcard-curso__description, .single-postcard-revisao__description) {
		font-size: 16px;
	}

	:is(.single-postcard-curso__featured-image, .single-postcard-revisao__featured-image) {
		max-height: 280px;
	}
}
@media (max-width: 991px) {
	.row-cursos {
		row-gap: 20px;
	}

	:is(.single-postcard-curso, .single-postcard-revisao) {
		border-radius: 26px;
	}

	:is(.single-postcard-curso__content, .single-postcard-revisao__content) {
		padding: 28px 30px 32px;
	}
	:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) h2 {
		font-size: 22px;

	}

	:is(.single-postcard-curso__heading, .single-postcard-revisao__heading) strong {
		font-size: 50px;
	}

	:is(.single-postcard-curso__description, .single-postcard-revisao__description) {
		font-size: 16px;
	}

	:is(.single-postcard-curso__featured-image, .single-postcard-revisao__featured-image) {
		max-height: 220px;
	}
}

@media (max-width: 767px) {
	.row-cursos {
		margin-right: -5px;
		margin-left: -5px;
	}

	.row-cursos > * {
		padding-right: 5px;
		padding-left: 5px;
	}

	:is(.single-postcard-curso, .single-postcard-revisao) {
		max-width: 440px;
		margin-right: auto;
		margin-left: auto;
		border-radius: 24px;
	}

	:is(.single-postcard-curso__content, .single-postcard-revisao__content) {
		padding: 25px 25px 34px;
	}

	:is(.single-postcard-curso__content, .single-postcard-revisao__content){
		aspect-ratio: inherit;
	}

}
