/* =========================================================
   BOTÕES REUTILIZÁVEIS (CTA e Hero compartilham as classes)
   ========================================================= */
.mea-cta-buttons,
.mea-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.mea-cta-button,
.mea-hero-button,
.mea-posts-button {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
}

.mea-cta-button:hover,
.mea-hero-button:hover,
.mea-posts-button:hover {
	transform: translateY(-2px);
}

/* Estilos: preenchido / contorno / texto */
.mea-btn-contorno {
	background-color: transparent !important;
}

.mea-btn-texto {
	background-color: transparent !important;
	border-color: transparent !important;
	padding-left: 4px !important;
	padding-right: 4px !important;
}

/* Tamanhos */
.mea-btn-tam-pequeno {
	padding: 8px 18px;
	font-size: 13px;
}

.mea-btn-tam-medio {
	padding: 14px 32px;
	font-size: 16px;
}

.mea-btn-tam-grande {
	padding: 18px 42px;
	font-size: 19px;
}

.mea-btn-full {
	display: block;
	width: 100%;
}

/* =========================================================
   CAIXA DE CTA
   ========================================================= */
.mea-cta-box {
	padding: 40px;
	text-align: center;
}

.mea-cta-title {
	margin: 0 0 12px;
	font-size: 28px;
	color: #ffffff;
	font-weight: 700;
}

.mea-cta-desc {
	margin: 0 0 24px;
	color: #d8d8e6;
	font-size: 16px;
}

/* =========================================================
   CONTADOR ANIMADO
   ========================================================= */
.mea-counter-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.mea-counter-item {
	padding: 10px;
}

.mea-counter-value {
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.mea-counter-number {
	display: inline-block;
}

.mea-counter-affix {
	font-size: 32px;
	font-weight: 700;
}

.mea-counter-prefix {
	margin-right: 4px;
}

.mea-counter-suffix {
	margin-left: 4px;
}

.mea-counter-title {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 500;
}

/* =========================================================
   DEPOIMENTO / CARROSSEL
   ========================================================= */
.mea-carousel {
	position: relative;
}

.mea-carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.mea-carousel-track {
	display: flex;
	gap: 20px;
	transition: transform 0.4s ease;
	will-change: transform;
}

.mea-carousel-slide {
	flex-shrink: 0;
}

.mea-testimonial-card {
	padding: 28px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.mea-testimonial-stars {
	font-size: 18px;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.mea-testimonial-text {
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	margin: 0 0 20px;
	flex-grow: 1;
}

.mea-testimonial-photo {
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0;
	display: block;
}

.mea-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mea-testimonial-info {
	flex-grow: 1;
}

.mea-testimonial-name {
	font-weight: 700;
	font-size: 15px;
}

.mea-testimonial-role {
	font-size: 13px;
	opacity: 0.7;
}

.mea-testimonial-logo {
	width: 90px;
	height: auto;
	object-fit: contain;
}

.mea-testimonial-logo.mea-logo-pos-topo {
	margin-bottom: 16px;
}

.mea-testimonial-logo.mea-logo-pos-canto {
	position: absolute;
	top: 20px;
	right: 20px;
	margin: 0;
}

.mea-testimonial-logo.mea-logo-pos-rodape {
	margin-left: auto;
}

/* Posição da foto: topo (padrão, já funciona via ordem natural do HTML) */

/* Posição da foto: esquerda/direita do bloco de autor */
.mea-photo-direita .mea-testimonial-author {
	flex-direction: row-reverse;
}

.mea-photo-direita .mea-testimonial-logo.mea-logo-pos-rodape {
	margin-left: 0;
	margin-right: auto;
	order: -1;
}

/* Setas */
.mea-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid #333333;
	background: #ffffff;
	color: #333333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	z-index: 2;
	transition: opacity 0.2s ease;
}

.mea-carousel-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.mea-carousel-prev {
	left: -21px;
}

.mea-carousel-next {
	right: -21px;
}

/* Dots */
.mea-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.mea-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #cccccc;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.mea-carousel-dot.active {
	background-color: #6c5ce7;
	border-color: #6c5ce7;
}

/* =========================================================
   GRID DE VÍDEOS DO YOUTUBE
   ========================================================= */
.mea-yt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mea-yt-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9; /* sobrescrito inline por vídeo conforme a proporção escolhida */
	cursor: pointer;
	background: #000000;
	line-height: 0;
}

.mea-yt-thumb {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border: 0 !important;
}

/* Salvaguarda para navegadores muito antigos sem suporte a aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
	.mea-yt-thumb-wrap {
		height: 0;
		padding-top: 56.25%;
	}
}

.mea-yt-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease;
}

.mea-yt-thumb-wrap:hover .mea-yt-overlay {
	background-color: rgba(0, 0, 0, 0.4);
}

.mea-yt-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(255, 0, 0, 0.85);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.mea-yt-thumb-wrap:hover .mea-yt-play-icon {
	transform: translate(-50%, -50%) scale(1.1);
}

.mea-yt-title {
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #333333;
}

.mea-yt-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
	color: #333333;
}

.mea-yt-pagination button {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
	padding: 8px 18px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.mea-yt-pagination button:disabled {
	opacity: 0.35;
	cursor: default;
}

.mea-yt-page-indicator {
	font-size: 14px;
}

.mea-yt-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}

.mea-yt-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
}

.mea-yt-lightbox-video,
.mea-yt-lightbox-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.mea-yt-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

body.mea-yt-lightbox-aberto {
	overflow: hidden;
}

/* =========================================================
   HERO
   ========================================================= */
.mea-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	box-sizing: border-box;
	padding: 40px;
}

.mea-hero-video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100% !important;
	min-height: 100% !important;
	width: auto;
	height: auto;
	max-width: none !important;
	transform: translate(-50%, -50%);
	object-fit: cover !important;
	z-index: 0;
}

.mea-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0.4;
	z-index: 1;
}

.mea-hero-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	width: 100%;
}

.mea-hero-title {
	margin: 0 0 20px;
	font-weight: 800;
	line-height: 1.2;
	font-size: clamp(28px, 5vw, 52px);
}

.mea-hero-subtitle {
	margin: 0 0 30px;
	font-size: clamp(15px, 2vw, 19px);
	line-height: 1.6;
}

/* =========================================================
   GRID DE POSTS
   ========================================================= */
.mea-posts-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mea-posts-layout-lista_vertical .mea-posts-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mea-posts-layout-lista_horizontal .mea-posts-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 24px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}

.mea-posts-layout-lista_horizontal .mea-posts-item {
	flex: 0 0 auto;
	width: 300px;
	scroll-snap-align: start;
}

.mea-posts-item {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
}

.mea-posts-item-horizontal {
	flex-direction: row;
	align-items: stretch;
}

.mea-posts-item-horizontal.mea-img-pos-direita {
	flex-direction: row-reverse;
}

.mea-posts-item-horizontal .mea-posts-thumb-wrap {
	flex: 0 0 240px;
	width: 240px;
}

.mea-posts-item-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.mea-posts-thumb-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #eeeeee;
	line-height: 0;
}

.mea-posts-thumb {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.mea-posts-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	position: relative;
}

.mea-posts-categoria {
	display: inline-block;
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	border-radius: 20px;
	background-color: #6c5ce7;
	color: #ffffff;
	margin-bottom: 10px;
}

.mea-posts-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.mea-posts-title a {
	color: inherit;
	text-decoration: none;
}

.mea-posts-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	opacity: 0.7;
	margin-bottom: 10px;
}

.mea-posts-resumo {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 16px;
	opacity: 0.85;
	flex-grow: 1;
}

.mea-posts-button {
	align-self: flex-start;
	position: relative;
	z-index: 6; /* fica acima do link que cobre o card inteiro */
}

/* Em telas pequenas, a lista vertical vira card empilhado (imagem em cima) */
@media (max-width: 600px) {
	.mea-posts-item-horizontal {
		flex-direction: column;
	}

	.mea-posts-item-horizontal .mea-posts-thumb-wrap {
		flex-basis: auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}
