#card-destaque {
    display: flex;
    /* flex-direction: column; */ /*assim fic em linha*/
    gap: 20px;
    /* background: #333; */
    /* padding: 8px; */
    border-radius: 8px;
    color: #fff;
}

#card-destaque .foto {
    display: flex;
    width: 400px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;

    /* importante */
    flex: 0 0 400px; /* não deixa flex recalcular largura */
}


#card-destaque .foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    flex: 1;          /* ocupa o box */
    min-width: 0;     /* ← MUITO importante em flex */
    min-height: 0;

    display: block;
    transition: transform 0.35s ease;
}

#card-destaque .foto:hover img {

    transform: scale(1.06);
}



.content-destaque {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-destaque .publicacao {
    font-size: 1.1rem;
    color: #696969;
}

.content-destaque h1 {
    font-size: 2.1rem;
    color: #161616;    
}

.content-destaque p {
    font-size: 1.5rem;
    color: #2e2e2e;    
}

/* 
----------------------
PARA O GRID DE POSTS
-----------------------
*/

#grid-posts {
    display: flex;
    padding: 20px 0;
    justify-content: flex-start;

    gap: 20px;
    flex-wrap: wrap;

}

#card-posts {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 550px;
    border-radius: 20px;
    background: #eeeeee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
    overflow: hidden;   
}

#card-posts .foto-card {
    
    overflow: hidden;
    width: 100%; 
    height: 200px;
    background: #ffffff;
   
}

#card-posts .foto-card img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    display: block;

    transition: transform 0.35s ease;
 
}

.content-posts {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 14px;
}



#card-posts .foto-card:hover img {
    transform: scale(1.06);
}

#card-posts h1 {
    font-size: 1.5rem;
    color: #161616;    
}

#card-posts p {
    font-size: 1.1rem;
    color: #2e2e2e; 
    
    display: -webkit-box;           /* necessário para line-clamp */
    -webkit-box-orient: vertical;   /* orientação vertical */
    -webkit-line-clamp: 3;          /* limita a 3 linhas */
    line-clamp: 3;                  /* padrão para compatibilidade */
    overflow: hidden;               /* esconde o texto extra */
    text-overflow: ellipsis;        /* adiciona reticências no final */
    line-height: 1.3em;             /* ajuste conforme sua fonte */
    max-height: 4.5em;              /* 3 linhas x line-height */
    
}

#card-posts a {
    color: #ff7070;    
}

/* Parte do autor e publicação */

#card-posts #autor {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

#card-posts #autor .foto {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    overflow: hidden;
}

#card-posts #autor .foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#card-posts a:hover{
  color: rgb(150, 2, 2);
}

#autor .autor-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

}

#autor .autor-info h3 {
    font-size: 1rem;
    color: #464646;    
}

/* data de publicação */
#autor .autor-info p { 
    font-size: 0.90rem;
    color: #777777;    
}