/* ==========================================================================
   Loop de Posts — layouts de card: abas, cases, case destaque 1/2 e blog.
   Marcação em inc/post-loop-cards.php (o preview do editor espelha as classes).
   ========================================================================== */
.act-post-loop--tabs .act-post-loop-items,
.act-post-loop--cases .act-post-loop-items,
.act-post-loop--feature-2 .act-post-loop-items,
.act-post-loop--blog .act-post-loop-items,
.act-post-loop--blog-featured .act-post-loop-items {
	display: grid;
	grid-template-columns: repeat(var(--act-loop-columns, 3), minmax(0, 1fr));
	gap: 22px;
	justify-items: stretch;
}

.act-post-loop--blog-featured {
	position: sticky;
	top: calc(var(--header-height, 80px) + var(--spacing-lg));
}

.act-post-loop--cases .act-post-loop-items {
	gap: 26px;
}

.act-post-loop--feature-1 .act-post-loop-items {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.act-loop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--cor-fundo-secundario);
	border: 1px solid var(--cor-extra-secundaria);
	--act-card-overlay: rgba(11, 17, 58, 0.69);
}

.act-loop-card__title {
	margin: 0;
	font-family: var(--font-1);
	font-size: var(--fs-4);
	font-weight: 700;
	line-height: 1.4;
	color: var(--cor-destaque);
}

.act-loop-card__title a {
	color: inherit;
	text-decoration: none;
}

/* O link do título cobre o card inteiro. */
.act-loop-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.act-loop-card__excerpt {
	margin: 0;
	font-size: var(--fs-6);
	color: var(--cor-texto);
}

.act-loop-card__cover {
	position: relative;
	overflow: hidden;
	background: var(--cor-destaque);
}

.act-loop-card__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--act-card-overlay);
	pointer-events: none;
}

.act-loop-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.act-loop-card__category,
.act-loop-card__eyebrow {
	font-family: var(--font-2);
	font-size: var(--fs-7);
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--cor-secundaria);
}

/* ---- Abas ---------------------------------------------------------------- */
.act-post-loop-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--cor-extra-secundaria);
}

.act-post-loop-tabs__tab {
	margin: 0 22px -1px 0;
	padding: 12px 22px 12px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	font-family: var(--font-2);
	font-size: var(--fs-7);
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--cor-texto-secundario);
	cursor: pointer;
}

.act-post-loop-tabs__tab:hover,
.act-post-loop-tabs__tab.is-active {
	color: var(--cor-destaque);
}

.act-post-loop-tabs__tab.is-active {
	border-bottom-color: var(--cor-principal);
}

.act-post-loop-tabs__nav+.act-post-loop-items {
	margin-top: 56px;
}

.act-loop-card[hidden] {
	display: none;
}

.act-loop-card--tab {
	justify-content: space-between;
	gap: 14px;
	padding: 24px;
	min-height: 263px;
	--act-card-overlay: rgba(33, 63, 91, 0.42);
}

.act-loop-card--tab .act-loop-card__cover {
	height: 69px;
	border-radius: 5px;
}

/* ---- Cases / Case destaque ---------------------------------------------- */
.act-loop-card--case .act-loop-card__cover {
	height: 200px;
}

.act-loop-card__badge {
	position: absolute;
	top: 20px;
	left: 12px;
	right: 12px;
	z-index: 1;
	font-family: var(--font-2);
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cor-extra-secundaria);
}

.act-loop-card__metric {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 18px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.act-loop-card__metric-value {
	font-family: var(--font-1);
	font-size: 36px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	color: var(--cor-secundaria);
}

.act-loop-card__metric-label {
	font-family: var(--font-2);
	font-size: 10.5px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.act-loop-card--case .act-loop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 28px 28px 26px;
}

.act-loop-card--case .act-loop-card__eyebrow {
	font-size: 10.5px;
	letter-spacing: 0.06em;
}

.act-loop-card--case .act-loop-card__excerpt {
	font-size: 13.5px;
	line-height: 1.6;
}

.act-loop-card__more {
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--font-2);
	font-size: 12px;
	line-height: 1.6;
	color: var(--cor-principal);
}

/* Case destaque 1: capa à esquerda, texto grande à direita. */
.act-loop-card--feature-1 {
	flex-direction: row;
	--act-card-overlay: rgba(22, 37, 51, 0.86);
}

.act-loop-card--feature-1 .act-loop-card__cover {
	flex: 1 1 0;
	height: auto;
	min-height: 340px;
}

.act-loop-card--feature-1 .act-loop-card__body {
	flex: 0 1 770px;
	justify-content: center;
	gap: 16px;
	padding: 44px;
}

.act-loop-card--feature-1 .act-loop-card__badge {
	top: 20px;
	left: 20px;
	font-size: var(--fs-7);
	letter-spacing: 0;
}

.act-loop-card--feature-1 .act-loop-card__metric {
	left: 20px;
	bottom: 24px;
}

.act-loop-card--feature-1 .act-loop-card__metric-value {
	font-size: var(--fs-2);
	font-style: normal;
	font-weight: 600;
}

.act-loop-card--feature-1 .act-loop-card__metric-label {
	font-size: var(--fs-7);
	letter-spacing: 0;
}

.act-loop-card--feature-1 .act-loop-card__eyebrow {
	font-size: var(--fs-7);
	letter-spacing: 0;
}

.act-loop-card--feature-1 .act-loop-card__title {
	font-size: var(--fs-3);
	font-weight: 600;
}

.act-loop-card--feature-1 .act-loop-card__excerpt {
	font-size: var(--fs-6);
	line-height: 1.9;
}

.act-loop-card__button {
	align-self: flex-start;
	margin-top: 8px;
	padding: 14px 26px;
	border: 1px solid var(--cor-destaque);
	border-radius: 2px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.01em;
	color: var(--cor-destaque);
}

/* Case destaque 2: card horizontal compacto. */
.act-loop-card--feature-2 {
	flex-direction: row;
	align-items: stretch;
}

.act-loop-card--feature-2 .act-loop-card__cover {
	flex: 0 0 48%;
	height: auto;
	min-height: 361px;
}

.act-loop-card--feature-2 .act-loop-card__body {
	flex: 1 1 0;
	min-width: 0;
	justify-content: space-between;
}

/* ---- Blog ---------------------------------------------------------------- */
.act-loop-card--blog {
	justify-content: space-between;
	min-height: 281px;
	background: #ECEAE1;
	border-color: var(--cor-extra-secundaria);
	--act-card-overlay: rgba(47, 60, 111, 0.67);
}

.act-loop-card--blog .act-loop-card__cover {
	height: 69px;
}

.act-loop-card--blog .act-loop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px 20px;
}

.act-loop-card--blog .act-loop-card__category {
	color: var(--cor-principal);
}

.act-loop-card__readtime {
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--font-2);
	font-size: 11px;
	line-height: 1.6;
	color: var(--cor-texto-secundario);
}

/* ---- Blog destaque ------------------------------------------------------- */
.act-loop-card--blog-featured {
	background: var(--cor-fundo-secundario);
	--act-card-overlay: rgba(22, 41, 51, 0.92);
}

.act-loop-card--blog-featured .act-loop-card__cover {
	height: 280px;
}

.act-loop-card--blog-featured .act-loop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 32px 32px 28px;
}

.act-loop-card--blog-featured .act-loop-card__category {
	font-size: 10.5px;
	letter-spacing: 0.06em;
	color: var(--cor-principal);
}

.act-loop-card--blog-featured .act-loop-card__title {
	font-size: var(--fs-3);
	font-weight: 600;
	line-height: 1.3;
}

.act-loop-card--blog-featured .act-loop-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
}

.act-loop-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-md);
	margin-top: auto;
	padding-top: 20px;
}

.act-loop-card__footer .act-loop-card__readtime {
	margin-top: 0;
	padding-top: 0;
}

@media (max-width: 991px) {

	.act-post-loop--tabs .act-post-loop-items,
	.act-post-loop--cases .act-post-loop-items,
	.act-post-loop--feature-2 .act-post-loop-items,
	.act-post-loop--blog .act-post-loop-items,
	.act-post-loop--blog-featured .act-post-loop-items {
		grid-template-columns: repeat(min(var(--act-loop-columns, 3), 2), minmax(0, 1fr));
	}

	.act-loop-card--feature-1,
	.act-loop-card--feature-2 {
		flex-direction: column;
	}

	.act-loop-card--feature-1 .act-loop-card__cover,
	.act-loop-card--feature-2 .act-loop-card__cover {
		flex-basis: auto;
		min-height: 240px;
	}

	.act-loop-card--feature-1 .act-loop-card__body {
		flex-basis: auto;
		padding: 28px;
	}
}

@media (max-width: 767px) {

	.act-post-loop--tabs .act-post-loop-items,
	.act-post-loop--cases .act-post-loop-items,
	.act-post-loop--feature-2 .act-post-loop-items,
	.act-post-loop--blog .act-post-loop-items,
	.act-post-loop--blog-featured .act-post-loop-items {
		grid-template-columns: 1fr;
	}

	.act-post-loop-tabs__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.act-post-loop-tabs__tab {
		white-space: nowrap;
	}
}
/* ==========================================================================
   Hover dos cards do Loop de Posts (todos os layouts): borda na cor principal,
   leve elevação com sombra, zoom suave na imagem e destaque do link/título.
   ========================================================================== */
.act-loop-card,
.act-post-loop-item {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.act-loop-card:hover,
.act-loop-card:focus-within {
	border-color: var(--cor-principal);
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.act-post-loop-item:hover,
.act-post-loop-item:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.act-loop-card__img,
.act-post-loop-thumb img {
	transition: transform 0.5s ease;
}

.act-loop-card:hover .act-loop-card__img,
.act-post-loop-item:hover .act-post-loop-thumb img {
	transform: scale(1.05);
}

.act-loop-card__title a,
.act-loop-card__more,
.act-loop-card__button {
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.act-loop-card:hover .act-loop-card__title a,
.act-loop-card:focus-within .act-loop-card__title a {
	color: var(--cor-principal);
}

.act-loop-card:hover .act-loop-card__more {
	text-decoration: underline;
}

/* Botão do "Blog destaque"/"Case destaque 1" ganha preenchimento no hover do card. */
.act-loop-card:hover .act-loop-card__button {
	background-color: var(--cor-destaque);
	color: var(--cor-branco);
}

@media (prefers-reduced-motion: reduce) {

	.act-loop-card,
	.act-post-loop-item,
	.act-loop-card__img,
	.act-post-loop-thumb img {
		transition: none;
	}

	.act-loop-card:hover,
	.act-post-loop-item:hover,
	.act-loop-card:hover .act-loop-card__img,
	.act-post-loop-item:hover .act-post-loop-thumb img {
		transform: none;
	}
}
