/* Blog Post Layout - Bootstrap grid + component styles */

.bpl-no-posts {
    padding: 20px !important;
    text-align: center !important;
    color: #666 !important;
}

/* Equal-height columns (same as sample) */
#bpl-layout.bpl-wrapper .row {
    align-items: stretch !important;
}
#bpl-layout.bpl-wrapper .row > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}

/* Slider (left column) - same height as middle */
#bpl-layout.bpl-wrapper .bpl-slider {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #f5f5f5 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
}

#bpl-layout.bpl-wrapper .bpl-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

#bpl-layout.bpl-wrapper .bpl-slide.bpl-slide-active {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-link {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: #fff !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-bg {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 100% !important;
}

#bpl-layout.bpl-wrapper .bpl-placeholder {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%) !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-meta {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-date,
#bpl-layout.bpl-wrapper .bpl-slide-cats {
    font-size: 13px !important;
    opacity: 0.9 !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-cats a {
    color: inherit !important;
    text-decoration: none !important;
}

#bpl-layout.bpl-wrapper .bpl-slide-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Slider arrows */
#bpl-layout.bpl-wrapper .bpl-slider-prev,
#bpl-layout.bpl-wrapper .bpl-slider-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.4) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
}

#bpl-layout.bpl-wrapper .bpl-slider-prev:hover,
#bpl-layout.bpl-wrapper .bpl-slider-next:hover {
    background: rgba(0,0,0,0.6) !important;
}

#bpl-layout.bpl-wrapper .bpl-slider-prev { left: 12px !important; }
#bpl-layout.bpl-wrapper .bpl-slider-next { right: 12px !important; }

/* Slider dots */
#bpl-layout.bpl-wrapper .bpl-slider-dots {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 8px !important;
    padding: 0 24px !important;
}

#bpl-layout.bpl-wrapper .bpl-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255,255,255,0.5) !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s !important;
}

#bpl-layout.bpl-wrapper .bpl-dot:hover,
#bpl-layout.bpl-wrapper .bpl-dot.bpl-dot-active {
    background: #fff !important;
}

/* Middle column - medium posts */
#bpl-layout.bpl-wrapper .bpl-column-middle .bpl-post {
    margin-bottom: 1.5rem !important;
}

#bpl-layout.bpl-wrapper .bpl-column-middle .bpl-post:last-child {
    margin-bottom: 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-medium .bpl-post-thumb {
    display: block !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    aspect-ratio: 16/10 !important;
    background: #eee !important;
    width: 100% !important;
}

#bpl-layout.bpl-wrapper .bpl-post-medium .bpl-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 100% !important;
}

#bpl-layout.bpl-wrapper .bpl-post-medium .bpl-post-content {
    padding-top: 10px !important;
}

#bpl-layout.bpl-wrapper .bpl-post-meta {
    font-size: 13px !important;
    color: #666 !important;
    display: block !important;
    margin: 0 0 6px 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-meta a {
    color: inherit !important;
    text-decoration: none !important;
}

#bpl-layout.bpl-wrapper .bpl-post-title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

#bpl-layout.bpl-wrapper .bpl-post-title a:hover {
    text-decoration: underline !important;
}

/* Right column - 4 posts same total height as middle, equal height items */
#bpl-layout.bpl-wrapper .bpl-column-right-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    gap: 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-column-right .bpl-post {
    margin-bottom: 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-small {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    align-items: center !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #eee !important;
}

#bpl-layout.bpl-wrapper .bpl-column-right .bpl-post-small:last-child {
    border-bottom: none !important;
}

#bpl-layout.bpl-wrapper .bpl-post-small .bpl-post-thumb {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #eee !important;
}

#bpl-layout.bpl-wrapper .bpl-post-small .bpl-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#bpl-layout.bpl-wrapper .bpl-post-small .bpl-post-content {
    flex: 1 !important;
    min-width: 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-cat {
    font-size: 12px !important;
    color: #666 !important;
    display: block !important;
    margin: 0 0 4px 0 !important;
}

#bpl-layout.bpl-wrapper .bpl-post-cat a {
    color: inherit !important;
    text-decoration: none !important;
}

#bpl-layout.bpl-wrapper .bpl-post-small .bpl-post-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* Override Bootstrap/theme affecting our columns */
#bpl-layout.bpl-wrapper.row .bpl-column {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile: stack columns, slider keeps min-height */
@media (max-width: 991.98px) {
    #bpl-layout.bpl-wrapper .bpl-slider {
        min-height: 280px !important;
    }
    #bpl-layout.bpl-wrapper .bpl-slide-title {
        font-size: 1.25rem !important;
    }
    #bpl-layout.bpl-wrapper .bpl-post-small {
        flex: none !important;
        padding: 0.75rem 0 !important;
    }
    #bpl-layout.bpl-wrapper .bpl-post-small .bpl-post-thumb {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
    }
}
