/* =========================================================
   BLOCO DE NOTÍCIAS
   CSS exclusivo para .noticias-grade
   ========================================================= */

.noticias-grade {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px 50px;
  box-sizing: border-box;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.noticias-grade__titulo {
  margin-bottom: 55px;
}

.noticias-grade__titulo h2 {
  margin: 0;
  padding: 0;

  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;

  color: #193b63;
}


/* =========================================================
   GRID
   3 COLUNAS
   ========================================================= */

.noticias-grade__grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: 24px;
  row-gap: 48px;

  width: 100%;
}


/* =========================================================
   CARD
   ========================================================= */

.noticia-card {
  min-width: 0;

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}


/*
 * Classe adicionada pelo JavaScript
 */
.noticia-card.noticia-visivel {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   LINK
   ========================================================= */

.noticia-card__link {
  display: block;

  width: 100%;

  color: inherit;
  text-decoration: none;

  outline: none;
}


/* =========================================================
   DATA
   ========================================================= */

.noticia-card__data {
  width: 100%;

  margin-bottom: 4px;

  color: #6c7c8e;

  font-size: 15px;
  line-height: 1.4;

  font-weight: 400;
}


/* =========================================================
   IMAGEM
   ========================================================= */

.noticia-card__imagem {
  position: relative;

  width: 100%;

  /*
   * Proporção aproximada da imagem apresentada
   */
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: 7px;

  background: #eeeeee;
}


/*
 * Todas as imagens terão exatamente
 * o mesmo tamanho visual
 */

.noticia-card__imagem img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}


/* =========================================================
   EFEITO AO PASSAR O MOUSE
   ========================================================= */

.noticia-card__link:hover .noticia-card__imagem img {
  transform: scale(1.04);
  filter: brightness(0.94);
}


/* =========================================================
   CONTEÚDO / TÍTULO
   ========================================================= */

.noticia-card__conteudo {
  width: 100%;

  margin-top: 16px;
}


.noticia-card__conteudo h3 {
  width: 100%;

  margin: 0;
  padding: 0;

  color: #193b63;

  font-size: 17px;
  line-height: 1.45;

  font-weight: 400;

  /*
   * IMPORTANTE:
   * deixa o texto justificado
   */
  text-align: justify;

  /*
   * Evita palavras muito grandes
   * quebrarem o layout
   */
  overflow-wrap: break-word;
}


/* =========================================================
   SETA
   ========================================================= */

.noticia-card__seta {
  display: inline-block;

  margin-left: 8px;

  font-size: 22px;
  line-height: 1;

  transition:
    transform 0.3s ease;
}


.noticia-card__link:hover .noticia-card__seta {
  transform: translateX(6px);
}


/* =========================================================
   ACESSIBILIDADE - FOCO
   ========================================================= */

.noticia-card__link:focus-visible {
  outline: 3px solid rgba(25, 59, 99, 0.35);
  outline-offset: 5px;

  border-radius: 5px;
}


/* =========================================================
   BOTÃO "VER MAIS"
   ========================================================= */

.noticias-grade__rodape {
  margin-top: 48px;
}


.noticias-grade__botao {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 224px;
  min-height: 59px;

  padding: 14px 28px;

  box-sizing: border-box;

  border-radius: 6px;

  background: #193b63;
  color: #ffffff;

  font-size: 16px;
  font-weight: 400;

  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.noticias-grade__botao:hover {
  background: #102f52;

  transform: translateY(-2px);

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}


.noticias-grade__botao:focus-visible {
  outline: 3px solid rgba(25, 59, 99, 0.35);
  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .noticias-grade {
    padding-left: 20px;
    padding-right: 20px;
  }

  .noticias-grade__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 22px;
    row-gap: 40px;
  }

  .noticias-grade__titulo {
    margin-bottom: 40px;
  }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

  .noticias-grade {
    padding-left: 16px;
    padding-right: 16px;
  }

  .noticias-grade__titulo {
    margin-bottom: 30px;
  }

  .noticias-grade__titulo h2 {
    font-size: 32px;
  }

  .noticias-grade__grid {
    grid-template-columns: 1fr;

    row-gap: 38px;
  }

  .noticia-card__conteudo h3 {
    font-size: 16px;
  }

  .noticias-grade__rodape {
    margin-top: 38px;
  }

}