/**
 * AQMA — Box Editorial
 * Stylesheet
 *
 * @package AQMA_Editorial_Box
 * @version 1.0.0
 */

/* Container Principal do Widget - Fundo 100% transparente por padrão */
.aqma-editorial-box {
	position: relative;
	box-sizing: border-box;
	background: transparent;
	padding: 20px;
	width: 100%;
}

.aqma-editorial-box__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	box-sizing: border-box;
	width: 100%;
}

/* Header: Marcador e Etiqueta */
.aqma-editorial-box__badge-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 5px;
	line-height: 1;
}

/* Marcador Vertical Magenta */
.aqma-editorial-box__marker {
	display: inline-block;
	flex-shrink: 0;
	width: 4px;
	height: 16px;
	background-color: #D94391;
	margin-right: 8px;
	border-radius: 0;
	transition: background-color 0.3s ease;
}

/* Etiqueta Editorial */
.aqma-editorial-box__badge {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #202020;
	line-height: 1.2;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

/* Título Serifado Elegante */
.aqma-editorial-box__title {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 29px;
	font-weight: 400;
	line-height: 1.05;
	color: #202020;
	margin-top: 0;
	margin-bottom: 4px;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

/* Descrição Sem Serifa */
.aqma-editorial-box__description {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #303030;
	margin-top: 0;
	margin-bottom: 7px;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

.aqma-editorial-box__description p {
	margin: 0;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

.aqma-editorial-box__description p:not(:last-child) {
	margin-bottom: 0.5em;
}

/* Chamada para Ação (CTA) */
.aqma-editorial-box__cta-wrapper {
	display: block;
	margin-top: 0;
}

.aqma-editorial-box__cta {
	display: inline-flex;
	align-items: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #202020;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s ease;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

.aqma-editorial-box__cta:hover,
.aqma-editorial-box__cta:focus {
	color: #202020;
}

/* Texto do CTA e Sublinhado */
.aqma-editorial-box__cta-text {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.aqma-editorial-box__cta--no-underline .aqma-editorial-box__cta-text {
	text-decoration: none;
}

/* Ícone do CTA */
.aqma-editorial-box__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	transition: transform 0.3s ease, color 0.3s ease;
}

.aqma-editorial-box__cta-icon svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
	display: inline-block;
	vertical-align: middle;
	transition: fill 0.3s ease;
}

.aqma-editorial-box__cta--icon-after .aqma-editorial-box__cta-icon {
	margin-left: 6px;
}

.aqma-editorial-box__cta--icon-before .aqma-editorial-box__cta-icon {
	margin-right: 6px;
}

/* Efeito Hover do Ícone */
.aqma-editorial-box__cta--icon-hover-move:hover.aqma-editorial-box__cta--icon-after .aqma-editorial-box__cta-icon,
.aqma-editorial-box__cta--icon-after.aqma-editorial-box__cta--icon-hover-move:hover .aqma-editorial-box__cta-icon {
	transform: translateX(4px);
}

.aqma-editorial-box__cta--icon-hover-move:hover.aqma-editorial-box__cta--icon-before .aqma-editorial-box__cta-icon,
.aqma-editorial-box__cta--icon-before.aqma-editorial-box__cta--icon-hover-move:hover .aqma-editorial-box__cta-icon {
	transform: translateX(-4px);
}

/* Alinhamento: Esquerda */
.aqma-editorial-box--align-left .aqma-editorial-box__inner {
	align-items: flex-start;
	text-align: left;
}
.aqma-editorial-box--align-left .aqma-editorial-box__badge-wrapper {
	justify-content: flex-start;
}
.aqma-editorial-box--align-left .aqma-editorial-box__cta-wrapper {
	text-align: left;
}

/* Alinhamento: Centro */
.aqma-editorial-box--align-center .aqma-editorial-box__inner {
	align-items: center;
	text-align: center;
}
.aqma-editorial-box--align-center .aqma-editorial-box__badge-wrapper {
	justify-content: center;
}
.aqma-editorial-box--align-center .aqma-editorial-box__cta-wrapper {
	text-align: center;
}

/* Alinhamento: Direita */
.aqma-editorial-box--align-right .aqma-editorial-box__inner {
	align-items: flex-end;
	text-align: right;
}
.aqma-editorial-box--align-right .aqma-editorial-box__badge-wrapper {
	justify-content: flex-end;
}
.aqma-editorial-box--align-right .aqma-editorial-box__cta-wrapper {
	text-align: right;
}

/* Responsividade de Alinhamento: Tablet */
@media (max-width: 1024px) {
	.aqma-editorial-box--align-tablet-left .aqma-editorial-box__inner {
		align-items: flex-start;
		text-align: left;
	}
	.aqma-editorial-box--align-tablet-left .aqma-editorial-box__badge-wrapper {
		justify-content: flex-start;
	}
	.aqma-editorial-box--align-tablet-left .aqma-editorial-box__cta-wrapper {
		text-align: left;
	}

	.aqma-editorial-box--align-tablet-center .aqma-editorial-box__inner {
		align-items: center;
		text-align: center;
	}
	.aqma-editorial-box--align-tablet-center .aqma-editorial-box__badge-wrapper {
		justify-content: center;
	}
	.aqma-editorial-box--align-tablet-center .aqma-editorial-box__cta-wrapper {
		text-align: center;
	}

	.aqma-editorial-box--align-tablet-right .aqma-editorial-box__inner {
		align-items: flex-end;
		text-align: right;
	}
	.aqma-editorial-box--align-tablet-right .aqma-editorial-box__badge-wrapper {
		justify-content: flex-end;
	}
	.aqma-editorial-box--align-tablet-right .aqma-editorial-box__cta-wrapper {
		text-align: right;
	}
}

/* Responsividade de Alinhamento: Mobile */
@media (max-width: 767px) {
	.aqma-editorial-box--align-mobile-left .aqma-editorial-box__inner {
		align-items: flex-start;
		text-align: left;
	}
	.aqma-editorial-box--align-mobile-left .aqma-editorial-box__badge-wrapper {
		justify-content: flex-start;
	}
	.aqma-editorial-box--align-mobile-left .aqma-editorial-box__cta-wrapper {
		text-align: left;
	}

	.aqma-editorial-box--align-mobile-center .aqma-editorial-box__inner {
		align-items: center;
		text-align: center;
	}
	.aqma-editorial-box--align-mobile-center .aqma-editorial-box__badge-wrapper {
		justify-content: center;
	}
	.aqma-editorial-box--align-mobile-center .aqma-editorial-box__cta-wrapper {
		text-align: center;
	}

	.aqma-editorial-box--align-mobile-right .aqma-editorial-box__inner {
		align-items: flex-end;
		text-align: right;
	}
	.aqma-editorial-box--align-mobile-right .aqma-editorial-box__badge-wrapper {
		justify-content: flex-end;
	}
	.aqma-editorial-box--align-mobile-right .aqma-editorial-box__cta-wrapper {
		text-align: right;
	}
}

/* Compatibilidade com WP Dark Mode - Fundo transparente intocado */
[data-wp-dark-mode-active] .aqma-editorial-box {
	background: transparent;
}
