/* ============================================
   Blog Cards Widget
   ============================================ */

.bai_blog_cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.bai_blog_card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.bai_blog_card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bai_blog_card-img-wrapper {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.bai_blog_card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bai_blog_card:hover .bai_blog_card-img-wrapper img {
    transform: scale(1.03);
}

.bai_blog_card-body {
    padding: 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bai_blog_separator {
    width: 40px;
    height: 1px;
    background-color: #dcdcdc;
    margin: 0 auto 15px auto;
}

.bai_blog_card-title {
    font-size: 16px;
    color: #333333;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.bai_blog_card-title a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.bai_blog_card:hover .bai_blog_card-title a {
    text-decoration: underline;
}

.bai_blog_card-desc {
    font-size: 13px;
    color: #777777;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.bai_blog_card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
}

.bai_blog_card-date {
    font-size: 12px;
    color: #999999;
}

.bai_blog_card-readmore {
    font-size: 14px;
    color: #444444;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.bai_blog_card-readmore:hover {
    color: #000000;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .bai_blog_cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bai_blog_cards-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 12px;
        padding: 10px 16px;
    }

    .bai_blog_cards-container::-webkit-scrollbar {
        display: none;
    }

    .bai_blog_card {
        flex-shrink: 0;
        width: calc((100% - 12px) / 1.2);
    }
}
