/* Títulos de período da matriz curricular */
.matriz-curricular h2 {
	margin-top: 2.5rem;
	padding: 0.6rem 1rem;
	background: linear-gradient(135deg, #3fa14c 0%, #2d7a38 100%);
	color: #fff;
	font-size: 1.4rem;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.matriz-curricular h2:first-of-type {
	margin-top: 1rem;
}

/* Tabelas da matriz curricular com colunas alinhadas */
.matriz-curricular table {
	table-layout: fixed;
	width: 100%;
}

/* Larguras das colunas */
.matriz-curricular table th:nth-child(1),
.matriz-curricular table td:nth-child(1) {
	width: 120px; /* Código */
}

.matriz-curricular table th:nth-child(3),
.matriz-curricular table td:nth-child(3) {
	width: 70px; /* CH */
}

.matriz-curricular table th:nth-child(4),
.matriz-curricular table td:nth-child(4) {
	width: 120px; /* Pré-requisito */
}

/* Responsividade para mobile */
@media screen and (max-width: 768px) {
	.matriz-curricular {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.matriz-curricular table {
		min-width: 500px;
	}

	.matriz-curricular h2 {
		font-size: 1.1rem;
		padding: 0.5rem 0.8rem;
	}
}
