/*
Theme Name: AncesGen
Theme URI: https://ancesgen-ufrgs.com.br
Author: AncesGen
Description: Tema institucional próprio do AncesGen
Version: 1.0
*/


/* ==================================================
   RESET GLOBAL
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #000;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ==========================================
   CONTAINER GLOBAL DO SITE
========================================== */

.home-ancesgen, 
.ancesgen-container {
  max-width: 1450px;
  margin: 0 auto;
  padding-left: 20px;  /* Ajustado para igualar os lados */
  padding-right: 20px; /* Ajustado para igualar os lados */
  width: 100%;         /* Garante que ocupe a tela antes de chegar no max-width */
}


/* ==================================================
   HOME — ESTRUTURA BASE
================================================== */

.home-ancesgen section {
  margin: 40px 0;
}


/* ==================================================
   GRID (HOME E EDITORIAIS)
================================================== */

.home-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==================================================
   ESTILO PARA PÁGINAS PADRÃO (POLÍTICAS, ETC.)
================================================== */
/* Apenas para afastar o conteúdo do topo nas páginas padrão */
.page-default .page-post {
    margin-top: 60px !important; 
    margin-bottom: 60px !important;
}
/* ==================================================
   CARDS
================================================== */

.card-destaque {
  grid-column: span 2;
  background: #daecda;
}

.card-col {
  background: #ffffff;
}

.card-institucional {
  background: #eeeeee;
}

.card-inner {
  padding: 15px;
}

.card-inner img {
  width: 100%;
}


/* ==================================================
   META E TEXTOS
================================================== */

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  text-transform: uppercase;
  margin: 8px 0;
}

.card-meta .tag {
  color: #c00000;
  font-weight: bold;
}

.card-meta .date {
  color: #333;
}

.card-title {
  text-transform: uppercase;
  font-size: 16px;
  margin: 6px 0;
}

.card-excerpt {
  font-size: 13px;
  line-height: 1.4;
}


/* ==================================================
   SINGLE POST
================================================== */

.single-ancesgen {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 60px;
}

.single-post .card-meta {
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.single-post .single-title {
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 10px 0 30px;
}

.single-post .single-content {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}


/* Imagem do post */

.single-image {
  text-align: center;
}

.single-image img {
  max-width: 900px;
  margin: 40px auto;
}


/* Navegação do post */

.single-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  font-size: 13px;
}

.single-navigation a:hover {
  color: #5a5a5a;
}


/* Compartilhamento */

.single-share {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.single-share img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

.single-share a:hover img {
  opacity: 1;
}


/* ==================================================
   RESPONSIVO GLOBAL
================================================== */

@media (max-width: 768px) {

  .home-grid-4,
  .home-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-destaque {
    grid-column: span 1;
  }

  .single-ancesgen {
    padding: 60px 20px;
  }

  .single-navigation {
    flex-direction: column;
    gap: 15px;
  }

}

/* ==================================================
   GRID DE CATEGORIAS / ARQUIVOS
================================================== */

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Cria colunas responsivas */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.editorial-item {
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.editorial-item:hover {
    transform: translateY(-5px); /* Efeito suave ao passar o mouse */
}

.editorial-image img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Não deixa a imagem esticar/achatar */
    display: block;
}

.editorial-content {
    padding: 20px 0;
}

/* Container para Data e Categoria */
.editorial-meta {
    display: flex;
    justify-content: space-between; /* Data na esquerda, Categoria na direita */
    align-items: center;
    margin-bottom: 10px;
}

/* Estilo da Data (1px menor que os 12px anteriores) */
.editorial-date {
    font-size: 11px;
    color: #d32f2f;
    text-transform: uppercase;
}

/* Estilo da Categoria (1px menor que os 12px anteriores) */
.editorial-category, 
.editorial-category a {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #d32f2f; /* Vermelho padrão, mude se desejar */
    text-decoration: none;
}

.editorial-category a:hover {
    text-decoration: underline;
}

/* Ajuste no Título se quiser acompanhar a redução */
.editorial-title {
    font-size: 21px; /* Era 22px */
    line-height: 1.3;
    margin-bottom: 15px;
}

.editorial-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.editorial-title a {
    text-decoration: none;
    color: #000;
}

.editorial-excerpt p {
    font-size: 15px;
    color: #000;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

.read-more {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border-bottom: 2px solid #000;
    align-self: flex-start;
}

/* Paginação */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 16px;
    background: #eee;
    text-decoration: none;
    color: #000;
    margin: 0 4px;
}

.pagination .current {
    background: #000;
    color: #fff;
}