/* ============================================================
   Blog List Page
   ============================================================ */

.blog-list-page .WWABody {
    padding: 10px 15px 30px;
}

.blog-list-heading {
    margin-bottom: 20px;
}

.blog-list-heading h1 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin: 0 10px;
}

.blog-list-grid {
    padding: 0 20px;
}

/* ---- Card ---- */
.blog-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e4d4;
    border-radius: 6px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
    padding: 0;
}

.blog-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Image column */
.blog-card-img {
    padding: 0;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

/* Body column */
.blog-card-body {
    padding: 22px 26px 22px;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.2rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: none;
}

.blog-card-title a:hover {
    color: #2c5f2d;
}

.blog-card-excerpt {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 0;
    text-align: justify;
    text-justify: inter-word;
    flex-grow: 1;
}

/* Read more — separator line above, button at bottom-end of reading direction */
.blog-read-more-row {
    border-top: 1px solid #e8e4d4;
    margin-top: 16px;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* RTL: flex-end pushes button to physical left (logical end) */
.blog-list-page[dir="rtl"] .blog-read-more-row {
    justify-content: flex-end;
    direction: rtl;
}

.blog-read-more {
    display: inline-block;
    padding: 5px 14px;
    background-color: #e2f0d9;
    color: #000;
    font-size: 0.88rem;
    border: 1px solid #c3ddb0;
    border-radius: 2px;
    text-decoration: none;
}

.blog-read-more:hover {
    background-color: #c8e6b0;
    color: #000;
    text-decoration: none;
}

/* ---- RTL card text alignment ---- */
.blog-list-page[dir="rtl"] .blog-card {
    direction: rtl;
}

.blog-list-page[dir="rtl"] .blog-card-body {
    text-align: right;
    direction: rtl;
}

.blog-list-page[dir="rtl"] .blog-card-title {
    text-align: right;
}

.blog-list-page[dir="rtl"] .blog-card-title a {
    display: block;
    text-align: right;
}

.blog-list-page[dir="rtl"] .blog-card-excerpt {
    text-align: right;
    direction: rtl;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .blog-card-img,
    .blog-card-body {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .blog-card-img img {
        height: 200px;
    }

    .blog-card-body {
        padding: 16px;
    }
}
