/* ==========================================================================
   FRONT PAGE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 6rem 0;
	text-align: center;
	color: #fff;
	position: relative;
}

.hero-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.hero-title {
	color: #fff;
	margin-bottom: var(--space-4);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-size: 3rem;
	line-height: 1.1;
}

.hero-subtitle {
	font-size: var(--text-xl);
	color: #f0f0f0;
	margin-bottom: var(--space-8);
}

.hero-buttons {
	display: flex;
	gap: var(--space-4);
	justify-content: center;
}

/* Botões Hero */
.btn-hero-main,
.btn-hero-main:visited {
	background-color: #fff;
	color: var(--cor-primaria);
}

.btn-hero-main:hover,
.btn-hero-main:active {
	box-shadow: rgba(242, 92, 5, 0.25) 0 8px 15px;
	transform: translateY(-2px);
	color: var(--cor-primaria);
}

.btn-hero-alternativo,
.btn-hero-alternativo:visited {
	background-color: rgba(245, 245, 245, 0.5);
	color: #fff;
}

.btn-hero-alternativo:hover,
.btn-hero-alternativo:active {
	box-shadow: rgba(242, 92, 5, 0.25) 0 8px 15px;
	transform: translateY(-2px);
	color: #fff;
}

/* --------------------------------------------------------------------------
   2. Enade Section
   -------------------------------------------------------------------------- */
.enade-section {
	padding: 3rem 0;
	background-color: #f9f9f9;
}

.enade-container {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.enade-info {
	flex: 1; /* Ocupa o espaço disponível */
}

.enade-info h2 {
	margin-bottom: 1rem;
	color: var(--cor-primaria);
}

.enade-info p {
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.enade-saiba-mais-btn,
.enade-saiba-mais-btn:visited {
	background-color: var(--cor-primaria);
	color: #fff;
}

.enade-saiba-mais-btn:hover,
.enade-saiba-mais-btn:active {
	transform: translateY(-2px);
	background-color: var(--cor-primaria-media);
	color: #fff;
}

.enade-nota {
	flex: 1;
	display: flex;
	justify-content: center;
}

.enade-retangulo {
	padding: 2rem 4rem;
	background-color: #fff;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.enade-retangulo p:first-child {
	font-size: var(--text-xl);
	font-weight: 700;
	margin-bottom: 1rem;
}

.enade-nota-text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.enade-nota-text p {
	font-size: 4rem;
	font-weight: 800;
	color: var(--cor-primaria);
	margin: 0;
	line-height: 1;
}

.enade-nota-text i {
	font-size: 3.5rem;
	color: var(--cor-primaria);
}

/* --------------------------------------------------------------------------
   3. Quick Access (Acesso Rápido)
   -------------------------------------------------------------------------- */
.quick-access-section {
	padding: 6rem 0;
	background-color: #fff;
}

.section-title {
	text-align: center;
	color: var(--cor-primaria);
	margin-bottom: var(--space-8);
	position: relative;
	display: inline-block;
	width: 100%;
}

.quick-access-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
}

.icon-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--cor-fundo-claro);
	padding: var(--space-6);
	border-radius: 8px;
	text-decoration: none;
	color: var(--cor-texto-claro);
	transition: all 0.2s ease;
	text-align: center;
	width: 308px;
	height: 200px;
}

.icon-card:hover {
	transform: translateY(-5px);
	background-color: var(--cor-primaria-clara);
	color: #fff;
}

.icon-card i {
	font-size: 5rem;
	margin-bottom: var(--space-2);
	color: var(--cor-primaria);
	transition: color 0.2s;
}

.icon-card:hover i {
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Latest News (Notícias e Slider) - ESTILO EDITORIAL (JORNALÍSTICO)
   -------------------------------------------------------------------------- */
.latest-news-section {
	padding: var(--space-12) 0;
	background-color: #fff;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* O GRID MESTRE: Slider à esquerda, Lista à direita */
.main-news-grid {
	display: grid;
	grid-template-columns: 2fr 1fr; /* 2 partes para o slider, 1 parte para a lista */
	gap: var(--space-8); /* Aumentei o gap para dar respiro */
	align-items: start;
}

/* --- Coluna Esquerda: Slider --- */
.news-slider-wrapper {
	width: 100%;
	position: relative;
	border-radius: 8px; /* Arredondamento mais sutil */
	overflow: hidden;
	/* Removemos a sombra pesada para ficar mais clean */
}

.escs-news-slider {
	width: 100%;
	height: 450px;
}

.escs-news-slider .slider-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 2rem;
	color: #fff;
}

.slide-caption h3 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--cor-primaria) !important;
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
	background-color: var(--cor-primaria) !important;
}

/* --- Coluna Direita: Lista de Notícias (Estilo Lista) --- */
.side-news-list {
	display: flex;
	flex-direction: column;
	height: 450px;
	/* Distribui o espaço para alinhar com o slider, mas sem esticar */
	justify-content: flex-start;
	gap: 0; /* O gap será controlado pelo padding dos itens */
}

/* O ITEM DE NOTÍCIA (Base Resetada - Sem cara de Card) */
.news-card {
	background: transparent;
	border: none;
	box-shadow: none;
	display: flex;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s;
}

/* Especificidades da Lista Lateral (Imagem Esq, Texto Dir) */
.side-news-list .news-card {
	flex-direction: row; /* Coloca lado a lado */
	align-items: flex-start;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #eee; /* Linha separadora fina */
}

.side-news-list .news-card:last-child {
	border-bottom: none; /* Remove linha do último */
	padding-bottom: 0;
	margin-bottom: 0;
}

.news-card-link {
	display: flex;
	flex-direction: inherit; /* Herda a direção do pai (row ou column) */
	width: 100%;
	text-decoration: none;
	color: inherit;
	gap: 1rem;
}

/* Imagem da Lista Lateral */
.side-news-list .news-image {
	width: 140px; /* Largura fixa */
	height: 100px; /* Altura fixa */
	flex-shrink: 0; /* Não deixa esmagar */
	border-radius: 6px;
	overflow: hidden;
}

.side-news-list .news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* Conteúdo de Texto */
.news-content {
	padding: 0; /* Remove padding interno do antigo card */
	display: flex;
	flex-direction: column;
}

.news-date {
	font-size: 0.75rem;
	color: var(--cor-primaria);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
	letter-spacing: 0.5px;
}

.news-title {
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.3;
	color: #1a1a1a;
	font-weight: 700;
	/* Efeito de hover no título */
	transition: color 0.2s;
}

.news-card:hover .news-title {
	color: var(--cor-primaria);
}

.news-card:hover .news-image img {
	transform: scale(1.05); /* Zoom sutil na imagem ao passar o mouse */
}

/* --------------------------------------------------------------------------
   6. Bottom News Grid (Grid Inferior de 3 notícias)
   -------------------------------------------------------------------------- */
.bottom-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 3rem;
}

.bottom-news-grid .news-card {
	flex-direction: column;
}

.bottom-news-grid .news-image {
	width: 100%;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.bottom-news-grid .news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bottom-news-grid .news-title {
	font-size: 1.15rem; /* Um pouco maior que a lateral */
}

.bottom-news-grid .news-excerpt {
	font-size: 0.9rem;
	color: #555;
	margin-top: 0.5rem;
	line-height: 1.5;
}

/* Botão Ver Todas */
.footer-news-section {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.see-more-link,
.see-more-link:visited {
	background-color: var(--cor-primaria);
	color: #fff;
}

.see-more-link:hover,
.see-more-link:active {
	transform: translateY(-2px);
	color: #fff;
}

/* --------------------------------------------------------------------------
    DEPOIMENTOS
-------------------------------------------------------------------------- */
/* --- Sessão de Depoimentos --- */
.testimonials-section {
	padding: 4rem 0;
	background-color: #f8f9fa;
	background-size: cover;
	background-position: center;
}

.testimonials-header {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin-bottom: 3rem;
}

.testimonials-title {
	text-align: center;
	color: var(--cor-primaria);
	position: relative;
	display: inline-block;
	width: 100%;
	margin-bottom: 1rem;
}

.testimonials-subtitle {
	padding: 0rem 10rem;
	text-align: center;
	font-size: var(--text-lg);
}

/* Grid Layout */
.testimonials-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

/* Card do Depoimento */
.testimonial-card {
	background-color: #ffffff;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	position: relative;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	flex: 1 1 300px;
	max-width: 400px;
	width: 100%;
	text-decoration: none;
	cursor: pointer;
}

.testimonial-card:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

/* Ícone de Aspas (Background) */
.quote-icon {
	position: absolute;
	top: -10px;
	right: 10px;
	font-size: 5rem;
	color: var(--cor-primaria-clara);
	opacity: 0.5;
	transform: rotate(12deg);
	pointer-events: none;
	transition: color 0.3s ease;
}

.testimonial-card:hover .quote-icon {
	opacity: 1;
}

.testimonial-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.testimonial-text {
	flex-grow: 1;
	margin-bottom: 1.5rem;
	font-style: italic;
	color: #374151;
	font-size: 1.125rem;
	line-height: 1.6;
}

.testimonial-text p {
	margin: 0;
}

/* Rodapé do Card (Autor) */
.testimonial-author {
	display: flex;
	align-items: center;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.avatar-img,
.avatar-placeholder {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	object-fit: cover;
	margin-right: 1rem;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cor-primaria);
}

.avatar-placeholder {
	background-color: #e5e7eb;
}

.author-info {
	display: flex;
	flex-direction: column;
}

.author-name {
	font-weight: 700;
	color: #111827;
	margin: 0;
	font-size: 1rem;
	font-family: inherit;
}

.author-role {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cor-primaria);
}

/* ==========================================================================
	Media Queries (Responsivo)
========================================================================== */
/* Tablet (max 1024px) */

@media screen and (max-width: 1024px) {
	.enade-container {
		flex-direction: column;
		text-align: center;
	}

	.enade-info,
	.enade-nota {
		width: 100%;
	}

	.enade-info p {
		width: 100%;
	}

	.main-news-grid {
		grid-template-columns: 1fr;
	}

	.side-news-list {
		height: auto;
		flex-direction: row;
	}

	.news-image {
		height: 180px;
	}

	.bottom-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile (max 768px) */
@media screen and (max-width: 768px) {
	.main-news-grid,
	.latest-news-section {
		padding: 1rem;
	}

	.escs-news-slider {
		height: 250px;
	}

	.side-news-list {
		flex-direction: column;
	}

	.hero-title {
		font-size: 2rem;
		padding: 0rem 1rem;
	}

	.enade-info p {
		padding: 0rem 1rem;
	}

	.enade-nota-text p {
		font-size: 3rem;
	}

	.bottom-news-grid {
		grid-template-columns: 1fr;
		padding: 1rem;
		margin-top: 0;
	}

	.bottom-news-grid .news-card {
		border-top: 1px solid #eee;
	}

	.bottom-news-grid .news-card-link {
		padding-top: 2rem;
	}

	.testimonials-subtitle {
		padding: 0.5rem 2rem;
	}

	.btn-hero-main,
	.btn-hero-alternativo {
		padding: 1rem;
	}

	.section-title {
		margin-bottom: 1rem;
		margin-top: 0.85rem;
	}

	.footer-news-section {
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	.quick-access-section {
		padding: 2rem 0rem;
	}

	.hero-subtitle {
		padding: 0rem 1rem;
	}
}
