/**
 * Blog Post 1 – cartões no carrossel (estrutura Embla = carousel.css; aqui só layout dos posts).
 */

.shadcn-blog-post1-section {
	--shadcn-carousel-gap: 1.5rem;
	padding-top: var(--shadcn-blog-post1-section-padding-top, var(--sui-section-padding-top, clamp(3rem, 8vw, 8rem)));
	padding-bottom: var(--shadcn-blog-post1-section-padding-bottom, var(--sui-section-padding-bottom, clamp(3rem, 8vw, 8rem)));
}

/* Isolamento: reset local de img dentro do bloco (tema costuma forçar max-width/height com !important). */
.shadcn-blog-post1-section img {
	max-width: none !important;
	height: auto !important;
}

/* Largura do contentor só neste bloco (o carrossel CPT mantém max-width: none em carousel.css). */
.shadcn-blog-post1-section .shadcn-carousel-container {
	max-width: 100rem;
	margin-left: auto;
	margin-right: auto;
}

.shadcn-blog-post1-header .shadcn-carousel-header-text {
	gap: 0.75rem;
}

.shadcn-blog-post1-header--nav-only {
	justify-content: flex-end;
}

.shadcn-blog-post1-header--nav-only .shadcn-carousel-header-text:empty {
	display: none;
}

.shadcn-blog-post1-heading {
	margin-bottom: 0;
}

.shadcn-blog-post1-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	font-weight: 500;
	color: var(--sui-gp-text);
	text-decoration: none;
}

.shadcn-blog-post1-cta-icon {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.shadcn-blog-post1-cta:hover .shadcn-blog-post1-cta-icon,
.shadcn-blog-post1-cta:focus-visible .shadcn-blog-post1-cta-icon {
	transform: translate(0.15rem, -0.15rem);
}

.shadcn-blog-post1-slide {
	height: auto;
	align-self: stretch;
}

.shadcn-blog-post1-slide > article {
	height: 100%;
}

.shadcn-blog-post1-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	text-decoration: none;
	color: var(--sui-gp-text);
	border-radius: 0.75rem;
	box-sizing: border-box;
}

.shadcn-blog-post1-media {
	width: 100%;
	flex-shrink: 0;
	align-self: stretch;
	min-width: 0;
}

/*
 * Caixa 3:2; line-height:0 evita espaço por baseline abaixo da img (gaps em temas globais).
 */
.shadcn-blog-post1-section .shadcn-blog-post1-aspect {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	display: block;
	line-height: 0;
	border-radius: 0.75rem;
	background: var(--muted, #f4f4f5);
}

/*
 * Especificidade > reset da secção e > tema (img { height: auto !important; max-width: 100% !important; }).
 */
.shadcn-blog-post1-section .shadcn-blog-post1-aspect > img.shadcn-blog-post1-img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.shadcn-blog-post1-section .shadcn-blog-post1-card:hover .shadcn-blog-post1-aspect > img.shadcn-blog-post1-img,
.shadcn-blog-post1-section .shadcn-blog-post1-card:focus-visible .shadcn-blog-post1-aspect > img.shadcn-blog-post1-img {
	transform: scale(1.05);
}

/* h3: tipografia no Personalizar */
.shadcn-blog-post1-title {
	margin: 0;
	padding-top: 1rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.shadcn-blog-post1-excerpt {
	margin: 0.5rem 0 0;
	line-height: 1.5;
	color: var(--sui-gp-text-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.shadcn-blog-post1-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
}

.shadcn-blog-post1-avatar {
	display: flex;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 9999px;
	background: var(--muted, #f4f4f5);
}

.shadcn-blog-post1-avatar .avatar,
.shadcn-blog-post1-avatar img,
.shadcn-blog-post1-avatar-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.shadcn-blog-post1-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--sui-gp-text);
}

.shadcn-blog-post1-author-text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.125rem;
}

.shadcn-blog-post1-author-name {
	font-weight: 500;
	color: var(--sui-gp-text);
}

.shadcn-blog-post1-date {
	font-size: 0.75rem;
	color: var(--sui-gp-text-muted);
}
