/* WP News API Importer Pro — grade de notícias (shortcode / widget Elementor) */

.wnaip-grid-wrapper {
	margin: 24px 0;
}

.wnaip-grid-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 3px solid #d63638;
	display: inline-block;
}

.wnaip-news-grid {
	display: grid;
	grid-template-columns: repeat(var(--wnaip-cols, 5), 1fr);
	gap: 20px;
}

/* Tablet: força 3 colunas independentemente do valor configurado para desktop. */
@media (max-width: 1024px) {
	.wnaip-news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Celular: força 2 colunas. */
@media (max-width: 600px) {
	.wnaip-news-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

.wnaip-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wnaip-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.wnaip-card-thumb {
	position: relative;
	display: block;
	/* Proporção 16:9 */
	padding-top: 56.25%;
	background: #eef0f2;
	overflow: hidden;
}

.wnaip-card-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wnaip-card-noimage {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e7e9ec 25%, #f3f4f5 25%, #f3f4f5 50%, #e7e9ec 50%, #e7e9ec 75%, #f3f4f5 75%, #f3f4f5);
	background-size: 20px 20px;
}

.wnaip-card-body {
	padding: 12px 14px 16px;
}

.wnaip-card-title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 8px;
	font-weight: 700;
}

.wnaip-card-title a {
	color: #1d2327;
	text-decoration: none;
}

.wnaip-card-title a:hover {
	color: #d63638;
}

.wnaip-card-date {
	font-size: 12px;
	color: #6b7280;
	display: block;
}

.wnaip-empty {
	padding: 20px;
	text-align: center;
	color: #6b7280;
	background: #f6f7f7;
	border-radius: 6px;
}
