/**
 * Estilos da Seção de Notícias
 * Baseado no design do Figma: https://www.figma.com/design/2rcaSa39itFunffZVnYFDd/Natal-RPC-2025?node-id=19281-2238
 */

.news-section {
	background: var(--color-green); /* Verde #0c7003 */
	padding: 80px 112px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	align-items: center;
	position: relative;
	overflow: hidden;
	min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.news-section__header {
	width: 100%;
	max-width: 1216px;
    padding-block: 12px;
}

.news-section__header-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ffffff;
}

.news-section__title {
	font-family: var(--font-family-headings);
	font-size: 4rem; /* 64px no Figma - mantido maior que --font-size-title */
	font-weight: var(--font-weight-extrabold);
	line-height: 1;
	margin: 0;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.news-section__description {
	font-family: var(--font-family-body);
	font-size: var(--font-size-description); /* 1.5rem */
	line-height: var(--line-height-description); /* 1.25 */
	margin: 0;
	max-width: 1004px;
}

.news-section__description p {
	margin: 0;
}

.news-section__cta-button {
	background: var(--color-secondary); /* Verde #0c7003 */
	border: 2px solid #064800;
	border-width: 0 2px 3px 0;
	border-radius: 6px;
	padding: 16px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-family-body);
	font-size: 1rem; /* 16px */
	font-weight: var(--font-weight-bold);
	color: #ffffff;
	text-decoration: none;
	transition: var(--transition-base);
	cursor: pointer;
	white-space: nowrap;
}

.news-section__cta-button:hover {
	background: #0a5d02;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   GRID DE NOTÍCIAS
   ============================================ */

.news-section__container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: 100%;
	max-width: 1232px;
}

.news-section__card {
	background: #ffffff;
	border-radius: 24px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	height: 407px;
	box-shadow: 16px 16px 2px 0px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transition: var(--transition-base);
}

.news-section__card:hover {
	transform: translateY(-4px);
	box-shadow: 20px 20px 4px 0px rgba(0, 0, 0, 0.3);
}

/* Thumbnail */
.news-section__card-thumbnail {
	width: 100%;
	height: 191px;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.news-section__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-section__card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e0e0e0;
}

.news-section__card-placeholder-text {
	font-family: var(--font-family-body);
	font-size: var(--font-size-sm);
	color: #999999;
}

/* Content */
.news-section__card-content {
	display: flex;
	flex-direction: column;
	padding-inline: 16px;
    padding-block: 16px;
    gap: 12px;
	flex: 1;
}

.news-section__card-title {
	font-family: var(--font-family-headings);
	font-size: 1.5rem; /* 24px - mantido específico para cards */
	font-weight: var(--font-weight-extrabold);
	line-height: 1;
	color: #000000;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-section__card-excerpt {
	font-family: var(--font-family-body);
	font-size: var(--font-size-base); /* 1rem */
	line-height: var(--line-height-base); /* 1.5 */
	color: #000000;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Button */
.news-section__card-button {
	background: var(--color-secondary); /* Verde #0c7003 */
	border: 2px solid #064800;
	border-width: 0 2px 3px 0;
	border-radius: 6px;
	padding: 16px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-family-body);
	font-size: 1rem; /* 16px */
	font-weight: var(--font-weight-bold);
	color: #ffffff;
	text-decoration: none;
	transition: var(--transition-base);
	cursor: pointer;
	white-space: nowrap;
    margin-inline: 16px;
    margin-bottom: 16px;
	/* width: 100%; */
}

.news-section__card-button:hover {
	background: #0a5d02;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER - BOTÃO "CONFIRA TODAS NOTÍCIAS"
   ============================================ */

.news-section__footer {
	position: relative;
	z-index: 2;
	margin-top: 32px;
}

.news-section__all-news-button {
	background: #e51e45; /* Vermelho */
	border: 2px solid #064800;
	border-width: 0 2px 3px 0;
	border-radius: 6px;
	padding: 16px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-family-body);
	font-size: 1rem; /* 16px */
	font-weight: var(--font-weight-bold);
	color: #ffffff;
	text-decoration: none;
	transition: var(--transition-base);
	cursor: pointer;
	white-space: nowrap;
}

.news-section__all-news-button:hover {
	background: #c91a3a;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   DIVISOR DE ARBUSTO
   ============================================ */

.news-section__divider {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1;
	pointer-events: none;
}

.news-section__divider-img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: bottom;
	/* A imagem define o final do componente e faz a junção com a próxima seção */
}

/* ============================================
   ESTADO VAZIO
   ============================================ */

.news-section__empty {
	text-align: center;
	color: #ffffff;
	padding: 64px 0;
}

.news-section__empty p {
	font-family: var(--font-family-body);
	font-size: var(--font-size-lg);
	margin: 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */

/* Breakpoint para notebooks de tela pequena (1366x768) */
@media (max-width: 1366px) {
	.news-section {
		padding: 72px 80px;
	}

	.news-section__container {
		max-width: 1100px;
	}
}

@media (max-width: 1199.98px) {
	.news-section {
		padding: 64px 56px;
	}

	.news-section__container {
		max-width: 100%;
	}
}

@media (max-width: 991.98px) {
	.news-section {
		padding: 48px 32px;
		gap: 48px;
	}

	.news-section__title {
		font-size: 3rem; /* Ajuste intermediário para tablet */
	}

	.news-section__description {
		font-size: 1.25rem; /* Ajuste intermediário para tablet */
	}

	.news-section__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.news-section__card {
		height: auto;
		min-height: 407px;
	}
}

@media (max-width: 767.98px) {
	.news-section {
		padding: 40px 24px;
		gap: 32px;
	}

	.news-section__title {
		font-size: var(--font-size-title-mobile); /* 2.5rem */
		line-height: var(--line-height-title);
	}

	.news-section__description {
		font-size: var(--font-size-description-mobile); /* 1.125rem */
		line-height: var(--line-height-description);
	}

	.news-section__container {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.news-section__card {
		height: auto;
		min-height: auto;
	}
}

