/* ensino.css - Estilos específicos para a página de Ensino */

/* Estilos gerais da página */
.ensino-page {
  padding-top: 80px;
  background-color: #f8f9fa;
}

.page-header {
  background: linear-gradient(rgba(47, 158, 65, 0.9), rgba(36, 125, 53, 0.9)), 
              url('../assets/banner-ensino.jpg') center/cover no-repeat;
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header .lead {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Seção de materiais */
.materials-section {
  padding: 2rem 0;
}

.material-category {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.material-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.material-category h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.material-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.toggle-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.toggle-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.materials-list {
  list-style: none;
  padding: 0;
  display: none; /* Inicialmente oculto */
  animation: fadeIn 0.5s ease;
}

.materials-list.show {
  display: block;
}

.materials-list li {
  margin-bottom: 0.8rem;
}

.materials-list li a {
  display: block;
  padding: 0.8rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.materials-list li a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.materials-list li a::before {
  content: "📄";
  margin-right: 10px;
}

/* Animação */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 991.98px) {
  .page-header {
    padding: 4rem 0;
  }
  
  .page-header h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 3rem 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header .lead {
    font-size: 1.1rem;
  }
  
  .material-category {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
}