/* Estilo para o container de artigos */
.artigos {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.1);
  text-align: left;
}

/* Estilo para cada artigo */
.artigo-item {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fcfcfc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  cursor: pointer;
}

.artigo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 4px rgba(0, 0, 0, 0.15);
}

/* Título do artigo */
.artigo-item h3 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #022001bf;;
  margin-bottom: 12px;
  text-align: left;
}

/* Categoria, Data e Autor */
.artigo-item .categoria-autor {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #529F72; 
}

.artigo-item .categoria-autor span {
  font-weight: 700;
}

.artigo-item .categoria-autor .autor {
  font-style: italic;
  color: #529F72; 
  font-weight: bold;
}


/* REGISTRO DOI */
.artigo-item p strong {
  font-weight: bold;
  color: #333333;
}

/* Resumo do conteúdo */
.artigo-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  margin: 5px 0;
  text-align: left;
}

/* Link "Ler mais" */
.artigo-item .ler-mais {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  background: #3a7151;
  padding: 12px 26px;
  border-radius: 8px;
}

.artigo-item .ler-mais:hover {
  color: #fcfcfc;
}

/* Responsividade para dispositivos menores */
@media (max-width: 768px) {
  .artigos {
    padding: 20px 10px;
  }

  .artigo-item {
    padding: 15px;
  }

  .artigo-item h3 {
    font-size: 20px;
  }

  .artigo-item p {
    font-size: 13px;
  }
}

/* Paginação */
.paginacao {
  margin-top: 20px;
  text-align: center;
}

.paginacao button {
  margin: 0 5px;
  padding: 10px 15px;
  background-color: #529F72; /* Cor de fundo */
  color: white; 
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

.paginacao button:hover {
  background-color: #3a7151; /* Cor de hover */
  transform: scale(1.05); /* Aumenta ligeiramente */
}

.paginacao button:disabled {
  background-color: #d0d0d0;
  cursor: not-allowed;
}

/* Estilo para o container do loader */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* Estilo para o texto do loader */
.loading p {
  font-size: 16px;
  font-weight: bold;
  color: #529F72;
  margin-top: 10px;
}

/* Estilo do spinner */
.spinner {
  border: 4px solid #f3f3f3; /* Fundo claro */
  border-top: 4px solid #529F72; /* Cor principal */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Animação do spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Links no título, categoria e autor */
.link-titulo,
.link-categoria,
.link-autor {
  text-decoration: none;
  color: inherit; /* Usa a cor atual do elemento */
  font-weight: bold;
  transition: color 0.3s ease;
}

.link-titulo:hover,
.link-categoria:hover,
.link-autor:hover {
  color: #58aa79; /* Altera a cor ao passar o mouse */
}


