/* =============================================
   News & Media Widget — Semantic HTML + Flexbox
   ============================================= */

/* ---------- Section ---------- */
/*
 * BACKGROUND: defina a cor #edf0f2 diretamente na seção/coluna do Elementor
 * (Style > Background > Classic > Color), não aqui no widget.
 * Assim o fundo se estende pela largura total da seção.
 */
.nam-news-section {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	padding-top: 60px;
	padding-bottom: 60px;
	box-sizing: border-box;
}

/* ---------- Header ---------- */
.nam-news-section__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

.nam-news-section__header-text {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nam-news-section__heading {
	font-family: 'Inter', sans-serif;
	font-size: 36px;
	font-weight: 400;
	line-height: 44px;
	color: #1a1a1a;
	margin: 0 0 8px 0;
	padding: 0;
}

.nam-news-section__subheading {
	font-family: 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 26px;
	color: #6e6e6e;
	margin: 0 0 32px 0;
	padding: 0;
}

/* ---------- Button ---------- */
.nam-news-section__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #1a3a5c;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	padding: 12px 24px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.3s ease;
	flex-shrink: 0;
	box-sizing: border-box;
}

.nam-news-section__btn:hover,
.nam-news-section__btn:focus {
	background-color: #2b9ad1;
	color: #ffffff;
}

.nam-news-section__btn-icon {
	display: block;
	flex-shrink: 0;
	color: #ffffff;
	transition: transform 0.3s ease;
}

.nam-news-section__btn:hover .nam-news-section__btn-icon,
.nam-news-section__btn:focus .nam-news-section__btn-icon {
	transform: translateX(4px);
}

/* ---------- Grid ---------- */
.nam-news-grid {
	display: flex;
	gap: 24px;
	width: 100%;
	margin-top: 40px;
}

/* ---------- Card ---------- */
.nam-news-card {
	display: flex;
	flex-direction: column;
	flex: 1 0 0;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
	padding: 24px;
	box-sizing: border-box;
	min-width: 0;
	transition: box-shadow 0.2s ease;
}

.nam-news-card:hover {
	box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
}

.nam-news-card__date {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #6e7180;
	margin-bottom: 8px;
}

.nam-news-card__category {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	color: #2b7bb2;
	letter-spacing: 0.52px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.nam-news-card__title {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 26px;
	color: #1a1a1a;
	margin: 0 0 auto 0;
	padding: 0;
	flex: 1;
}

.nam-news-card__title-link {
	color: inherit;
	text-decoration: none;
}

.nam-news-card__title-link:hover,
.nam-news-card__title-link:focus {
	color: #2b7bb2;
}

.nam-news-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	color: #2b7bb2;
	text-decoration: none;
	margin-top: 16px;
}

.nam-news-card__link:hover,
.nam-news-card__link:focus {
	text-decoration: underline;
}

.nam-news-card__link-icon {
	display: block;
	flex-shrink: 0;
}

/* ---------- Empty State ---------- */
.nam-news-section__empty {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #6e7180;
	margin: 40px 0 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.nam-news-section {
		padding: 48px 40px;
	}

	.nam-news-grid {
		flex-wrap: wrap;
	}

	.nam-news-card {
		flex: 1 1 calc(50% - 12px);
	}
}

@media (max-width: 640px) {
	.nam-news-section {
		padding: 40px 20px;
	}

	.nam-news-section__header {
		flex-direction: column;
		gap: 16px;
	}

	.nam-news-section__heading {
		font-size: 28px;
		line-height: 36px;
	}

	.nam-news-grid {
		flex-direction: column;
	}

	.nam-news-card {
		flex: 1 1 100%;
	}
}
