.news-article-card {
      max-width: 900px; /* Largura máxima do artigo */
      margin: 0 auto;   /* Centraliza o card na página */
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
      overflow: hidden; /* Garante que a imagem não "vaze" dos cantos arredondados */
    }

    /* --- Imagem e Legenda --- */
    .article-figure {
      margin: 0;
      padding: 0;
    }

    .article-figure img {
      width: 100%;       /* Imagem responsiva */
      height: auto;
      display: block;    /* Remove espaço extra abaixo da imagem */
      border-bottom: 1px solid #eee;
    }

    .article-figure figcaption {
      padding: 0.75rem 2rem;
      font-size: 0.85rem;
      color: #667;
      background-color: #f9f9f9;
      text-align: center;
    }

    /* --- Corpo do Artigo (Wrapper do conteúdo) --- */
    .article-body {
      padding: 2rem 2.5rem; /* Espaçamento interno */
    }

    /* --- Cabeçalho: Título, Tags, Metadados --- */
    .article-header {
      border-bottom: 2px solid #f0f0f0;
      padding-bottom: 1.5rem;
      margin-bottom: 1.5rem;
    }

    /* Migalhas de pão (Breadcrumbs) */
    .breadcrumb {
      list-style: none;
      padding: 0;
      margin: 0 0 1rem 0;
      font-size: 0.9rem;
    }
    .breadcrumb li {
      display: inline;
      color: #888;
    }
    .breadcrumb li + li::before {
      content: "/";
      margin: 0 0.5rem;
    }
    .breadcrumb a {
      color: rgb(30, 150, 200);;
      text-decoration: none;
      
    }
    .breadcrumb a:hover {
      text-decoration: underline;
    }

    /* Tags de Categoria (Logo acima do título) */
    .category-tags {
      margin-bottom: 0.5rem;
    }
    .category-tags .tag {
      display: inline-block;
      background-color: rgb(30, 150, 200);
      color: #fff;
      padding: 0.25rem 0.75rem;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 600;
      margin-right: 0.5rem;
    }
    /* Cor alternativa para a segunda tag */
    .category-tags .tag:last-child {
      background-color: rgb(50, 102, 142);
    }


    /* Título Principal (H1) */
    .article-header h1 {
      font-size: 2.0rem; /* Tamanho grande e impactante */
      font-weight: 700;
      color: #111;
      margin: 0 0 1rem 0;
      line-height: 1.2;
    }

    /* Metadados (Data, Visualizações) */
    .metadata {
      display: flex;
      gap: 1.5rem; /* Espaço entre os itens */
      font-size: 0.9rem;
      color: #555;
    }
    .metadata span {
      display: flex;
      align-items: center;
      gap: 0.4rem; /* Espaço entre o ícone e o texto */
    }

    /* --- Conteúdo: Parágrafos, Listas --- */
    .article-content {
      font-size: 1.1rem;
      color: #222;
      text-align: justify;
    }

    /* Lide (Lead): O primeiro parágrafo destacado */
    .article-content .lead {
      font-size: 1.25rem;
      font-weight: 500;
      color: #000;
      margin-bottom: 2rem;
    }

    /* Subtítulos (H2) */
    .article-content h2 {
      font-size: 1.75rem;
      font-weight: 600;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
      border-bottom: 2px solid #007bff;
      padding-bottom: 0.5rem;
    }

    /* Listas (ul) */
    .article-content ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      margin-bottom: 1.5rem;
    }
    .article-content li {
      margin-bottom: 0.5rem;
    }

    /* --- Rodapé: Tags de Tópico e Botão "Voltar" --- */
    .article-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap; /* Para ecrãs pequenos */
      gap: 1.5rem;
      border-top: 1px solid #eee;
      padding-top: 1.5rem;
      margin-top: 2rem;
    }

    .topic-tags strong {
      margin-right: 0.5rem;
    }
    .topic-tags span {
      background-color: #e9ecef;
      color: #555;
      padding: 0.25rem 0.75rem;
      border-radius: 5px;
      font-size: 0.85rem;
      margin-right: 0.25rem;
    }

    .back-button {
      background-color: #6c757d;
      color: #fff;
      padding: 0.75rem 1.25rem;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      transition: background-color 0.3s ease;
    }
    .back-button:hover {
      background-color: #5a6268;
    }

    /* Campo de pesquisa */
#news-search {
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

#news-search:focus {
    border-color: rgb(30, 150, 200);
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,0.2);
}

/* Container de cards */
.news-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}


/* Card base */
.item {
    width: 340px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 6px 6px 18px rgba(0,0,0,0.18);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Imagem */
.post-image {
    position: relative;
}

.post-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.item:hover .post-image img {
    transform: scale(1.03);
}

/* Data e autor sobre o topo do conteúdo */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #444;
}

.post-date {
    color: #444;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.post-date a {
    text-decoration: none;
    color:  #444;
}

.post-date p {
    text-decoration: none;
    color:  #444;
    font-size: 10px;
}

.author-name {
    color: #555;
    font-size: 0.8rem;
}

.author-name p {
    color: #555;
    font-size: 10px;
}


.author-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.author-name a:hover {
    color: rgb(30, 150, 200);
}

/* Conteúdo principal */
.post-content {
    padding: 1.3rem;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.post-title a,h5 {
    color: rgb(30, 150, 200); /* verde característico da imagem */
    font-style: normal;
    text-decoration: none;
}



.post-title a,h5:hover {
    color: rgb(18, 59, 90);
}

.post-summary{
    text-align: justify;
}

/* Texto resumo */
.post-content-bottom p {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* Botão "Ler mais" */
.more-link {
    display: inline-block;
    font-size: 0.8rem;
    padding: 6px 14px;
    border: 1px solid rgb(30, 150, 200);
    border-radius: 4px;
    color: rgb(30, 150, 200);
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: rgb(30, 150, 200);
    color: #fff;
}

/* Hover com ícone */
.post-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.item:hover .post-hover {
    opacity: 1;
}

.post-hover a {
    color: #fff;
    font-size: 1.3rem;
    border-radius: 100%;
    padding: 8px;
}