.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: left;
    margin: 32px 0;
    margin-top:10px;    
}

.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);
}

/* Responsividade para telas menores que 1024px */
@media (max-width: 1024px) {
    .noticia-card {
        width: 45%; /* Reduz a largura dos cartões */
    }
}

/* Responsividade para telas menores que 768px (tablets e telas menores) */
@media (max-width: 768px) {
    .noticias-grid {
        justify-content: center; /* Centraliza os cartões */
    }

    .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 */
    }
}

/* 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 */
        
    }
}