/* Hero Section com Background */
.novidades-hero {
	padding: 80px 0 80px;
	min-height: 50vh;
	background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&q=80');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	position: relative;
	overflow: hidden;
	text-align: center;
	display: flex;
	align-items: center;
}

.novidades-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(35, 23, 115, 0.85) 0%, rgba(26, 18, 85, 0.85) 100%);
	z-index: 1;
}

.novidades-hero-content {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
	animation: fadeInUp 0.8s ease-out;
}

.novidades-hero h1 {
	font-size: 4rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 24px;
	letter-spacing: -1px;
	line-height: 1.2;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.novidades-hero p {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.95);
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.7;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Container Principal */
.novidades-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}

/* Seção de Artigos */
.novidades-content {
	padding: 100px 0;
	background: #ffffff;
	position: relative;
}

.novidades-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(35, 23, 115, 0.08), transparent);
}

/* Grid de Artigos */
.novidades-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 48px;
	margin-top: 64px;
}

.artigo-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(35, 23, 115, 0.06);
	display: flex;
	flex-direction: column;
	animation: fadeInUp 0.6s ease-out backwards;
}

.artigo-card:nth-child(1) { animation-delay: 0.1s; }
.artigo-card:nth-child(2) { animation-delay: 0.2s; }
.artigo-card:nth-child(3) { animation-delay: 0.3s; }
.artigo-card:nth-child(4) { animation-delay: 0.4s; }

.artigo-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #ffc107, #ffd54f);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.artigo-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 48px rgba(35, 23, 115, 0.15);
	border-color: rgba(255, 193, 7, 0.4);
}

.artigo-card:hover::before {
	transform: scaleX(1);
}

.artigo-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	background: #f1f5f9;
}

.artigo-card:hover .artigo-image {
	transform: scale(1.03);
}

.artigo-content {
	padding: 32px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.artigo-categoria {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: #231773;
	background: rgba(35, 23, 115, 0.12);
	padding: 8px 18px;
	border-radius: 24px;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.artigo-card:hover .artigo-categoria {
	background: rgba(255, 193, 7, 0.15);
	color: #1a1255;
}

.artigo-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #231773;
	margin-bottom: 16px;
	line-height: 1.3;
	letter-spacing: -0.3px;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.artigo-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.artigo-card:hover .artigo-title {
	color: #ffc107;
}

.artigo-excerpt {
	font-size: 1rem;
	color: #475569;
	line-height: 1.7;
	margin-bottom: 24px;
	flex: 1;
	letter-spacing: 0.1px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.artigo-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #231773;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	position: relative;
	padding-bottom: 4px;
}

.artigo-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #ffc107, #ffd54f);
	transition: width 0.3s ease;
}

.artigo-link:hover {
	color: #ffc107;
}

.artigo-link:hover::after {
	width: 100%;
}

.artigo-link:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: 4px;
	border-radius: 4px;
}

.pagination-btn:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: 2px;
}

.artigo-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(35, 23, 115, 0.1);
	font-size: 0.9rem;
	color: #64748b;
}

.artigo-date {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: #94a3b8;
}

.artigo-date svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	opacity: 0.7;
}

/* Paginação */
.novidades-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 80px;
	padding-top: 64px;
	border-top: 1px solid rgba(35, 23, 115, 0.08);
}

.pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: #ffffff;
	color: #231773;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid rgba(35, 23, 115, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 0.95rem;
}

.pagination-btn:hover {
	background: rgba(35, 23, 115, 0.05);
	border-color: rgba(35, 23, 115, 0.2);
	transform: translateY(-1px);
}

.pagination-btn.current {
	background: #231773;
	color: #ffffff;
	border-color: #231773;
	cursor: default;
	box-shadow: 0 4px 12px rgba(35, 23, 115, 0.25);
}

/* Mensagem quando não há artigos */
.nenhum-artigo {
	text-align: center;
	padding: 80px 24px;
}

.nenhum-artigo h3 {
	font-size: 2rem;
	color: #231773;
	margin-bottom: 16px;
}

.nenhum-artigo p {
	font-size: 1.1rem;
	color: #475569;
	line-height: 1.7;
}

/* Responsividade */
@media (max-width: 992px) {
	.novidades-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.novidades-hero {
		padding: 100px 0 60px;
		min-height: 45vh;
	}
	
	.novidades-hero h1 {
		font-size: 2.5rem;
	}
	
	.novidades-hero p {
		font-size: 1.1rem;
	}
	
	.novidades-content {
		padding: 64px 0;
	}
	
	.novidades-grid {
		gap: 32px;
		margin-top: 48px;
	}
	
	.artigo-content {
		padding: 24px;
	}
	
	.artigo-title {
		font-size: 1.4rem;
	}
	
	.artigo-image {
		height: 240px;
	}
}

@media (max-width: 480px) {
	.novidades-container {
		padding: 0 16px;
	}
	
	.novidades-hero h1 {
		font-size: 2rem;
	}
	
	.artigo-content {
		padding: 20px;
	}
}
