/**
 * Blog Page Designer Styles
 * Version: 1.2.0
 * Author: ODC (https://onlinedreamz.com)
 */

.bpd-container {
    width: 100%;
    margin: 30px auto;
    box-sizing: border-box;
}

.bpd-container * {
    box-sizing: border-box;
}

/* Header */
.bpd-header {
    margin-bottom: 30px;
    text-align: left;
}

.bpd-title {
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.bpd-intro {
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Posts wrapper */
.bpd-posts-wrap {
    width: 100%;
}

/* Grid Layout */
.bpd-layout-grid .bpd-posts-wrap {
    display: grid;
    gap: 30px;
}

.bpd-cols-1 .bpd-posts-wrap { grid-template-columns: 1fr; }
.bpd-cols-2 .bpd-posts-wrap { grid-template-columns: repeat(2, 1fr); }
.bpd-cols-3 .bpd-posts-wrap { grid-template-columns: repeat(3, 1fr); }
.bpd-cols-4 .bpd-posts-wrap { grid-template-columns: repeat(4, 1fr); }

/* List Layout */
.bpd-layout-list .bpd-posts-wrap {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bpd-layout-list .bpd-post-card {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

.bpd-layout-list .bpd-post-thumb {
    width: 320px;
    min-width: 320px;
    height: 220px;
    margin-bottom: 0;
}

/* Post Card Common */
.bpd-post-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.bpd-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.bpd-post-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f1f3f5;
}

.bpd-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.bpd-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.bpd-post-card:hover .bpd-post-thumb img {
    transform: scale(1.05);
}

.bpd-post-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bpd-entry-title {
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.bpd-entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
}

.bpd-entry-title a:hover {
    color: #0073aa;
}

.bpd-entry-meta {
    color: #888888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.bpd-meta-sep {
    color: #cccccc;
}

.bpd-entry-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.bpd-entry-excerpt p {
    margin: 0;
}

.bpd-read-more {
    margin-top: auto;
}

.bpd-read-more-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bpd-read-more-link:hover {
    color: #005177;
    text-decoration: underline;
}

.bpd-no-posts {
    font-size: 16px;
    color: #777777;
    padding: 20px 0;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .bpd-cols-4 .bpd-posts-wrap,
    .bpd-cols-3 .bpd-posts-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    .bpd-layout-list .bpd-post-thumb {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 640px) {
    .bpd-cols-4 .bpd-posts-wrap,
    .bpd-cols-3 .bpd-posts-wrap,
    .bpd-cols-2 .bpd-posts-wrap {
        grid-template-columns: 1fr;
    }
    .bpd-layout-list .bpd-post-card {
        flex-direction: column;
    }
    .bpd-layout-list .bpd-post-thumb {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    .bpd-post-content {
        padding: 18px;
    }
}
