/* Limit content width to 1200px and create 3 column layout */
.site-main .elementor-widget-posts .elementor-posts-container,
.elementor-widget-posts .elementor-grid,
.blog-posts-grid {
    max-width: 1200px;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}

@media (max-width: 1024px) {
    .site-main .elementor-widget-posts .elementor-posts-container,
    .elementor-widget-posts .elementor-grid,
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .site-main .elementor-widget-posts .elementor-posts-container,
    .elementor-widget-posts .elementor-grid,
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog cards border-radius 20px, padding 25px, box shadow, white background */
.elementor-widget-posts .elementor-post,
.blog-card,
article.post {
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    border: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* All blog images height 320px and object-fit cover */
.elementor-widget-posts .elementor-post__thumbnail img,
.blog-card img,
article.post .post-thumbnail img {
    height: 320px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

/* Reduce heading sizes */
.elementor-widget-posts .elementor-post__title,
.elementor-widget-posts .elementor-post__title a,
.blog-card h2,
.blog-card h3,
article.post .entry-title,
article.post .entry-title a {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
    font-weight: 600 !important;
}

/* Buttons should have auto width */
.elementor-widget-posts .elementor-post__read-more,
.blog-card .read-more,
article.post .read-more,
.elementor-button {
    width: auto !important;
    display: inline-block !important;
    padding: 10px 20px !important;
    margin-top: auto !important;
}

/* Remove excessive margins and padding from text elements */
.elementor-widget-posts .elementor-post__excerpt p,
.blog-card p,
article.post .entry-content p {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}