/*
 * [B] Elementor Featured Post - Estilos Base
 * Cores, bordas e espaçamentos são controláveis dinamicamente via Elementor.
 */

.bdw-efp-wrapper {
    width: 100%;
}

.bdw-efp-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b; /* Fallback */
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bdw-efp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e7eb; /* Fallback */
}

/* Mudança crucial aqui: de Grid para Flexbox */
.bdw-efp-card {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Garante que as duas metades tenham a mesma altura */
    background: #ffffff; /* Fallback */
    border: 1px solid #e5e7eb; /* Fallback */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.bdw-efp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

/* Container da Imagem: ocupa 50% */
.bdw-efp-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    min-height: 300px; /* Previne que o card colapse se não houver texto */
}

/* A imagem em si: absoluta e com object-fit */
.bdw-efp-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Mantém o centro da imagem focado */
    transition: transform 0.6s ease;
}

.bdw-efp-card:hover .bdw-efp-img img {
    transform: scale(1.04);
}

.bdw-efp-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.bdw-efp-img-placeholder svg {
    width: 64px;
    height: 64px;
}

/* Container do Texto: ocupa 50% */
.bdw-efp-content {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o texto verticalmente se a imagem for maior */
}

.bdw-efp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.bdw-efp-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f4aab; /* Fallback */
    background: rgba(15, 74, 171, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
}

.bdw-efp-meta-text {
    font-size: 0.8rem;
    color: #64748b; /* Fallback */
}

.bdw-efp-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #cbd5e1; /* Fallback */
}

.bdw-efp-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
    color: #1e293b; /* Fallback */
}

.bdw-efp-excerpt {
    font-size: 0.95rem;
    color: #475569; /* Fallback */
    line-height: 1.65;
    margin: 0 0 32px 0;
}

.bdw-efp-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #0f4aab; /* Fallback */
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: gap 0.3s ease, color 0.2s ease;
    margin-top: auto; /* Empurra a seta para o fundo caso o texto seja curto */
}

.bdw-efp-card:hover .bdw-efp-read-link {
    gap: 14px;
}

.bdw-efp-read-link svg {
    width: 16px;
    height: 16px;
}

/* Responsividade Avançada */
@media (max-width: 992px) {
    .bdw-efp-card {
        flex-direction: column; /* Empilha no tablet/mobile */
    }
    
    .bdw-efp-img {
        flex: none;
        width: 100%;
        /* Truque para manter a proporção 16:9 apenas no mobile */
        padding-top: 56.25%; 
        min-height: 0;
    }
    
    .bdw-efp-content {
        flex: none;
        width: 100%;
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .bdw-efp-title {
        font-size: 1.5rem;
    }
    .bdw-efp-content {
        padding: 24px;
    }
}