/* Estilos para os artigos */
.section {
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.section.fade-in {
  opacity: 1;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
}

.article-item {
  display: none;
  text-align: justify;
}

.article-item h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: left;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.article-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin: 1.5rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Botão de voltar */
#close-article {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s;
}

.back-icon {
  width: 18px;
  height: 18px;
}

/* Grade de tópicos */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Ajustes para os cards */
.generator-card {
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.simple-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  padding: 0.5rem;
}

.generator-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.generator-icon svg {
  width: 30px;
  height: 30px;
}

.generator-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.3s;
}

.generator-card:hover .generator-title h2 {
  color: var(--primary);
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 20px;
}

table {
  width: 100%;
  background: #F9F7F0;
  border-radius: 5px;
}
table tr {
  padding: 5px;
  text-align: center;
}
table tr:nth-child(odd) {
  background: #FAFAED;
}
thead tr:nth-child(1) {
  background: #F2EBC9;
}
thead th {
  border-top-right-radius: 5px!important;
  border-top-left-radius: 5px!important;
}
/* Responsividade */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .article-container {
    padding: 1.5rem;
  }
  
  .article-item h2 {
    font-size: 1.75rem;
  }
}