.boletimInformativo {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.tituloNoticias {
  width: 100%;
  margin: 0 0 30px 0;
  font-size: 1.8rem;

}

.noticia-imagem {
    max-width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}



/* Contêiner que segura as notícias lado a lado */
.listaNoticias {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Cada card de notícia */
.boxNoticias {
  flex: 1 1 calc(33.333% - 20px); /* 3 colunas */
  background-color: #fff;
  min-height: 420px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Imagem */
.boxNoticias .foto {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.boxNoticias .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.boxNoticias .foto img:hover {
  transform: scale(1.2);
}

/* Título */
.boxNoticias .titulo {
  border-left: 4px solid #e69d0d;
  padding: 15px 20px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}

/* Introdução */
.boxNoticias .introducao {
  flex: 1;
  padding: 15px;
  color: #7f8499;
  text-align: justify;
  font-size: 0.95rem;
  box-sizing: border-box;
}


/* === Compartilhamento === */
.compartilhar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 13px;
  margin-top: 3px;
  font-size: 0.9rem;
  color: #555;
}

.compartilhar span {
  opacity: 0.9;
}

.compartilhar img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: inline-block;
}

.compartilhar img:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.compartilhar #compartilhar1{
   justify-content: left;
   margin-left: -80%;
}

.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: left;
    margin-left: 60px;
    margin-top:100px;
}

.noticia-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 300px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.noticia-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.noticia-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
    border: 2px solid #b2dfdb; /* Borda bonita em tom pastel */
    box-shadow: 0 2px 8px rgba(0,123,94,0.08);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.noticia-card img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,123,94,0.18);
    border-color: #007b5e; /* Destaca a borda ao passar o mouse */
}

.noticia-card h3 {
    margin: 8px 0 8px 0;
    font-size: 1.2em;
    color: #007b5e;
    text-align: center;
}

.noticia-card p {
    font-size: 1em;
    color: #444;
    margin-bottom: 16px;
    text-align: center;
}

.btn-leia-mais {
    background: #007b5e;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-leia-mais:hover {
    background: #005a43;
}

.custom-share-menu {
    display: none;
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 180px;
    right: 0;
    top: 40px;
}

.custom-share-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 3px;
    margin: 2px 8px;
}

.custom-share-menu .opcao-instagram {
    color: #E1306C;
}

.custom-share-menu .opcao-facebook {
    color: #4267B2;
}
.custom-share-menu .opcao-whatsapp {
    color: #25D366;
}

.custom-share-menu a img {   
    width: auto;
    height: auto;
    object-fit: contain;
    aspect-ratio: unset;
}

.custom-share-menu a:hover {
    background: #f2f2f2;
}

.icon-rede-social {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    margin: 0;
    display: inline-block;
    transition: transform 0.2s;
}
.icon-rede-social:hover {
    transform: scale(1.1);
}

    .ver-mais {
    text-align: center;
    margin-top: 30px;
    }

    .btn-ver-mais {
    padding: 10px 20px;
    background-color: #007b5e;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    }

    .btn-ver-mais:hover {
    background-color: #005a43;
    }

#video {
  cursor: pointer; /* mantém o cursor interativo */
  display: block;  /* garante que as margens funcionem */
  max-width: 40%; /* ocupa até 100% do espaço disponível */
  height: auto;    /* mantém a proporção */
  margin: 20px auto; /* centraliza horizontalmente */
  border-radius: 8px; /* opcional, só para estética */
}

#video.paused {
  /* Estilo quando o vídeo está pausado */
  opacity: 0.8;
}


/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .boxNoticias {
        max-width: 45%; /* duas colunas */
    }

    .noticia-card {
        width: 45%; /* Reduz a largura dos cartões */
    }

    .boxNoticias { max-width: 48%; }

    .listaNoticias{
        margin-top: 180px;
    }
}


@media (max-width: 768px) {
    .boxNoticias {
        max-width: 100%; /* uma coluna */
    }

    .tituloNoticias {
        font-size: 1.5rem;
        margin-left:  5%;
    }


    .noticia-card {
        width: 100%; /* Cartões ocupando 100% da largura */
    }

    .noticia-card img {
        height: 140px; /* Ajusta a altura da imagem */
    }

    .btn-leia-mais {
        padding: 6px 12px; /* Ajusta o tamanho do botão */
    }
    .boxNoticias { max-width: 100%; }

    /* Botão "Veja mais notícias aqui" */

}

/* Responsividade para telas muito pequenas (menores que 480px) */
@media (max-width: 480px) {
    .noticias-grid {
        gap: 16px; /* Reduz o espaço entre os itens */
    }

    .noticia-card {
        width: 100%; /* Cartões ocupando toda a largura */
        padding: 12px; /* Ajusta o padding dos cartões */
    }

    .noticia-card img {
        height: 120px; /* Ajusta a altura da imagem */
    }

    .btn-leia-mais {
        padding: 10px 20px; /* Ajusta o tamanho do botão */
        font-size: 0.9em; /* Ajusta o tamanho da fonte do botão */
    }

      .logoApaeBrasil{
        left: -140%;
    }

    #tituloNews{
        font-size: 1.5em; /* Ajusta o tamanho do título */
        
    }

    .listaNoticias{
        margin-top: 140px;
    }
}
