/* Header */
.header {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; /* Espaçamento acima e abaixo da logo */
}
.header img {
    max-width: 220px;
    margin-top: 20px; /* Espaçamento superior extra */
}

/* Container de post */
.container-post {
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Cards menores */
    gap: 20px;
}
.container-post .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container-post .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.container-post .card .card-body {
    padding: 20px;
}

/* Box dentro do card */
.container-post .card .box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.container-post .card .box .title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}
.container-post .card .box .title h3 {
    font-size: 22px;
    font-weight: 600;
}
.container-post .card .box .description span,
.container-post .card .box .description p,
.container-post .card .box .description div {
    margin-bottom: 7px;
}
.container-post .card .box .description {
    padding-top: 10px;
    padding-bottom: 10px; /* Reduz o espaço no final antes dos botões */
}

/* Botões */
.container-post .card .box .button-post {
    display: flex;
    flex-wrap: nowrap; /* Botões lado a lado */
    gap: 10px; /* Espaço entre botões */
    padding-top: 10px;
    justify-content: space-between;
}

/* Botões alternados */
/* Botões ímpares: vermelho */
.container-post .card .box .button-post a:nth-child(odd) {
    background: #e53935; /* Vermelho */
    color: white;
}

/* Botões pares: azul */
.container-post .card .box .button-post a:nth-child(even) {
    background: #1e88e5; /* Azul */
    color: white;
}

/* Estilo geral dos botões */
.container-post .card .box .button-post a {
    flex: 1; /* Todos com largura igual */
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}
.container-post .card .box .button-post a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Imagem do carousel */
.container-post .card .left .carousel-inner,
.container-post .card .left .carousel-inner .carousel-item img {
    border-radius: 5px;
    width: 100%;
}

/* Responsividade */
@media screen and (max-width: 1200px) {
    .header img {
        max-width: 180px;
        margin-top: 15px;
    }
}
@media screen and (max-width: 768px) {
    .container-post {
        grid-template-columns: 1fr;
    }
    .container-post .card .box {
        text-align: center;
    }
    .container-post .card .box .button-post {
        flex-direction: column; /* Em telas pequenas, botões ficam um abaixo do outro */
    }
}
