 /* Estlizização de arquivos com mesmo layout 
*  
*   Observe o nome das classes: cpt-post-list, cpt-post-item, .btn-cpt-post
* 
*
*/
   /* Lista de itens do post */
.cpt-post-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%; 
    padding: 0 15px; /* Espaçamento lateral */
    box-sizing: border-box;
}

/* Estilo do item */
.cpt-post-item {
    display: flex;
    justify-content: space-between; /* Espaça texto e botão */
    align-items: center;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-left: 5px solid #016b2b; /* Borda à esquerda */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Efeito hover */
.cpt-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Título do informativo */
.cpt-post-item h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

/* Título clicável */
.post-title-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.post-title-link:hover {
    color: #01491e; 
    text-decoration: underline;
}

/* Texto de descrição */
.cpt-post-item p {
    margin: 0 0 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    max-height: 4.5em; /* Limite para 3 linhas de texto */
    overflow: hidden; /* Oculta o texto excedente */
    text-overflow: ellipsis; /* Adiciona "..." ao final do texto cortado */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
}

   
    .btn-cpt-post {
         margin-left: 15px; 
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background-color: #0d6efd;
        border: none;
        padding: 10px 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        text-transform: uppercase;
         align-self: flex-start; /* Garante que o botão fique no topo */
         white-space: nowrap; /* Evita quebra de linha no botão */
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-cpt-post:hover {
        color: white;
        transform: scale(1.05); 
        background-color: #1f5bb5;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
   .btn-cpt-post:visited {
           color: white;
    }


/* Anexos */ 

.cpt-post-attachment-list ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.cpt-post-attachment-list li {
    display: flex;
    align-items: center; /* Alinha o ícone e o texto verticalmente */
    margin-bottom: 10px; /* Espaçamento entre os itens */
    border-bottom: 1px solid #ddd; /* Linha separadora */
    padding-bottom: 5px;
}

.cpt-post-attachment-list .icon-pdf {
    font-size: 1.5rem; /* Tamanho do ícone */
    color: #e3342f; /* Vermelho para o ícone de PDF */
}


/* Sidebar Lateral */
.sidebar-cpt-post {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0; /* Fundo claro */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column; 
    gap: 20px; /* Espaço entre as seções */
}

.sidebar-cpt-post ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    gap: 10px; 
}

.sidebar-cpt-post ul li {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
}

.sidebar-cpt-post ul li .icon-cpt-post {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    color: #2c7ae7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-cpt-post ul li a {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.sidebar-cpt-post ul li a:hover {
    color: #2c7ae7;
    text-decoration: underline;
}

  

/* Responsividade */
@media (max-width: 768px) {
    
      .hide-mobile {
        display: none; /* Oculta o elemento */
    }
    
    .cpt-post-item {
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left; 
    }

    .cpt-post-item div:last-child {
        width: 100%; 
        text-align: center; 
    }

    .cpt-post-item a.btn-cpt-post {
        margin-top: 15px; 
        display: inline-block; 
        text-align: center; 
    }
}