/* Blog News Pro - Estilos Frontend */

.bnp_blog_module_wrapper {
    margin: 20px 0;
    width: 100%;
    font-family: inherit;
}

.bnp-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bnp-post-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.bnp-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.bnp-card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Layouts de Tarjetas */

/* Option A: Left Media / Right Content */
.bnp-layout-left-media .bnp-card-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
}

/* Option B: Right Media / Left Content */
.bnp-layout-right-media .bnp-card-inner {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    align-items: center;
}

/* Option C: Overlay */
.bnp-layout-overlay .bnp-post-card {
    position: relative;
}
.bnp-layout-overlay .bnp-post-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.bnp-layout-overlay .bnp-card-inner {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    color: #ffffff;
    min-height: 280px;
    justify-content: flex-end;
}
.bnp-layout-overlay .bnp-post-title a {
    color: #ffffff !important;
}

/* Relación de Aspecto de Videos e Imágenes */
.bnp-post-media {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.bnp-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.bnp-ratio-9-16 {
    aspect-ratio: 9 / 16;
    max-height: 480px;
}

.bnp-video-container {
    width: 100%;
    height: 100%;
}

.bnp-video-container iframe,
.bnp-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.bnp-placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #94a3b8;
    font-weight: 600;
}

/* Elementos */
.bnp-category-badge a {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.bnp-post-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.bnp-post-title a {
    color: #0f172a;
    text-decoration: none;
}

.bnp-post-date {
    font-size: 0.85rem;
    color: #64748b;
}

.bnp-post-excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Estilos de Slider Vertical */
.bnp-slider-vertical .swiper-container {
    height: 500px;
}

@media (max-width: 768px) {
    .bnp-layout-left-media .bnp-card-inner,
    .bnp-layout-right-media .bnp-card-inner {
        grid-template-columns: 1fr;
    }
}
