/* ===========================
   BWB Noir — Blog Grid
   =========================== */

#bwb-blog {
    padding: 4rem 1.5rem;
    color: #ffffff;
}

.bwb-blog-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 0 3rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Grid: 3 colunas no desktop */
.bwb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* Card */
.bwb-blog-card {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        background-color 0.5s ease,
        color 0.15s ease,
        border-color 0.4s ease,
        transform 0.25s ease;
}

/* Área da thumbnail */
.bwb-blog-thumb-wrap {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Imagem da thumbnail */
.bwb-blog-thumb {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 220px;
    /* controla a altura da área de imagem */
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Conteúdo do card */
.bwb-blog-card-body {
    padding: 1.5rem 1.4rem;
}

/* Título */
.bwb-blog-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.bwb-blog-title a {
    color: inherit;
    text-decoration: none;
}

/* Excerpt */
.bwb-blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

/* Read more */
.bwb-blog-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* HOVER: estilo inspirado no menu */
.bwb-blog-card:hover,
.bwb-blog-card:focus-within {
    background-color: #ffffff;
    color: #111111;
    border-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Hover na imagem: leve zoom + leve escurecida */
.bwb-blog-card:hover .bwb-blog-thumb,
.bwb-blog-card:focus-within .bwb-blog-thumb {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Links herdam a cor do card */
.bwb-blog-card:hover a,
.bwb-blog-card:focus-within a {
    color: inherit;
}

/* Mensagem sem posts */
.bwb-blog-empty {
    grid-column: 1 / -1;
    opacity: 0.7;
}

/* ===========================
   RESPONSIVO
   =========================== */

/* Até 900px: 2 colunas */
@media (max-width: 900px) {
    .bwb-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Até 600px: 1 coluna */
@media (max-width: 600px) {
    .bwb-blog-grid {
        grid-template-columns: 1fr;
    }

    .bwb-blog-thumb {
        max-height: 200px;
    }
}