/* ==========================================================================
   Blog — widget Elementor "Blog (Carrossel de Posts)".
   Cards padronizados com imagem, título, resumo, data (ícone relógio),
   categorias coloridas, setas fora da viewport e paginação em traço.
   ========================================================================== */

.sm-blog {
	width: 100%;
}

.sm-blog__slide {
	height: auto;
}

/* Card ------------------------------------------------------------------ */
.sm-blog__post {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #ffffff;
	border-radius: 16px;
	box-sizing: border-box;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
}

.sm-blog__post:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Imagem ---------------------------------------------------------------- */
.sm-blog__media {
	flex-shrink: 0;
}

.sm-blog__media-link {
	display: block;
	line-height: 0;
}

.sm-blog__thumbnail {
	height: 190px;
	overflow: hidden;
	background-color: #eef7f1;
}

.sm-blog__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sm-blog__thumbnail--placeholder {
	position: relative;
	background: linear-gradient(135deg, #027635, #0ea65a);
}

.sm-blog__thumbnail--placeholder::after {
	content: "Soluções Moderna";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-family: 'Nunito', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Corpo do card --------------------------------------------------------- */
.sm-blog__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 20px 24px 24px;
}

/* Título ---------------------------------------------------------------- */
.sm-blog__title-link {
	text-decoration: none;
}

.sm-blog__title {
	margin: 0 0 10px;
	color: #1f2937;
	font-family: 'Nunito', 'Roboto', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.25s ease;
}

.sm-blog__title-link:hover .sm-blog__title {
	color: #027635;
}

/* Resumo ---------------------------------------------------------------- */
.sm-blog__excerpt {
	margin: 0 0 16px;
	color: #6b7280;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

.sm-blog__readmore {
	margin-left: 4px;
	color: #027635;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.sm-blog__readmore:hover {
	color: #ea6f31;
}

/* Footer: data + categorias --------------------------------------------- */
.sm-blog__footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}

.sm-blog__meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

/* Data com ícone de relógio --------------------------------------------- */
.sm-blog__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9ca3af;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	white-space: nowrap;
}

.sm-blog__date-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: #9ca3af;
}

.sm-blog__date time {
	color: inherit;
	font: inherit;
}

/* Tags como badges coloridos --------------------------------------------- */
.sm-blog__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sm-blog__tag {
	font-family: 'Work Sans', sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 4px;
	display: inline-block;
	text-decoration: none;
	line-height: 1.2;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sm-blog__tag:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* Paginação em traço (dashes) ------------------------------------------- */
.sm-blog .sm-carousel__dots {
	gap: 8px;
	margin-top: 28px;
}

.sm-blog .sm-carousel__dot {
	width: 24px;
	height: 4px;
	border-radius: 2px;
	background-color: #d1d5db;
}

.sm-blog .sm-carousel__dot.is-active {
	width: 36px;
	background-color: #027635;
}

/* Setas fora da viewport ------------------------------------------------ */
.sm-blog .sm-carousel__arrow {
	width: 40px;
	height: 40px;
	background-color: #ffffff;
	color: #027635;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 50%;
}

.sm-blog .sm-carousel__arrow:hover {
	background-color: #027635;
	color: #ffffff;
}

.sm-blog .sm-carousel__arrow--prev {
	left: -20px;
}

.sm-blog .sm-carousel__arrow--next {
	right: -20px;
}

.sm-blog .sm-carousel__arrow svg {
	width: 38%;
	height: 38%;
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 767px) {
	.sm-blog__post {
		padding: 0;
	}

	.sm-blog__body {
		padding: 16px;
	}

	.sm-blog__title {
		font-size: 16px;
	}

	.sm-blog__thumbnail {
		height: 160px;
	}

	.sm-blog .sm-carousel__arrow {
		width: 32px;
		height: 32px;
	}

	.sm-blog .sm-carousel__arrow--prev {
		left: 4px;
	}

	.sm-blog .sm-carousel__arrow--next {
		right: 4px;
	}

	.sm-blog .sm-carousel__dots {
		margin-top: 20px;
	}

	.sm-blog .sm-carousel__dot {
		width: 18px;
		height: 3px;
	}

	.sm-blog .sm-carousel__dot.is-active {
		width: 28px;
	}
}
