/* =========================================
   CARDS DE NOTÍCIAS (News Feed)
   ========================================= */

/* O Cartão da Notícia */
.escs-news-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

/* Hover no Card Inteiro */
.escs-news-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
	border-color: #cbd5e1;
}

/* --- Cabeçalho --- */
.escs-news-header {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 0rem 2rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.escs-news-thumb-link {
	display: block;
	width: 100%;
	height: 240px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.escs-news-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.escs-news-card:hover .escs-news-img {
	transform: scale(1.05);
}

.escs-news-badges {
	top: 1rem;
	left: 1rem;
	z-index: 10;
	pointer-events: none;
}

.escs-badge-category {
	background-color: #64748b;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2rem;
	text-decoration: none;
	pointer-events: auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.escs-badge-category:hover {
	background-color: #77808e;
	color: #fff;
}

/* --- Corpo do Card --- */
.escs-news-body {
	padding: 0rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Meta dados (Data) */
.escs-news-meta-top {
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: #64748b;
}

.escs-meta-date i {
	margin-right: 5px;
}

/* Título */
.escs-news-title {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.escs-news-title a {
	text-decoration: none;
	color: #1e293b;
	transition: color 0.2s;
}

.escs-news-title a:hover {
	color: var(--cor-primaria);
}

/* Resumo (Excerpt) */
.escs-news-excerpt {
	font-size: 1rem;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

/* Rodapé Interno */
.escs-news-footer {
	margin-top: auto;
	padding: 1rem 0rem;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.escs-news-footer i {
	color: #64748b;
}

.escs-news-author {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: #64748b;
	font-weight: 500;
}

.escs-read-more-blog {
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background-color: var(--cor-primaria);
	padding: 0.3rem 1rem;
	border-radius: 0.5rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: gap 0.2s;
}

.escs-read-more-blog:hover {
	gap: 8px;
	background-color: var(--cor-primaria-clara);
	color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
	.escs-news-thumb-link {
		height: 200px;
	}

	.escs-news-body {
		padding: 1.25rem;
	}

	.escs-news-title {
		font-size: 1.25rem;
	}

	.escs-news-header {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0.8rem;
	}

	.escs-news-footer {
		flex-direction: column;
		gap: 1rem;
	}
}
