.midland-recent-posts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Lato", Sans-serif;
}

.midland-recent-posts-wrapper .midland-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.midland-recent-posts-wrapper .midland-post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.midland-recent-posts-wrapper .midland-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.midland-recent-posts-wrapper .midland-post-card:focus-visible {
    outline: 3px solid #21AFA5;
    outline-offset: 3px;
}

.midland-recent-posts-wrapper .midland-post-thumb {
    height: 240px;
    overflow: hidden;
    background: #e3f2f1;
}

.midland-recent-posts-wrapper .midland-post-thumb img,
.midland-recent-posts-wrapper .midland-post-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.midland-recent-posts-wrapper .midland-post-card:hover .midland-post-thumb img {
    transform: scale(1.03);
}

.midland-recent-posts-wrapper .midland-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.midland-recent-posts-wrapper .midland-post-title {
    margin: 0;
    color: #2222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.midland-recent-posts-wrapper .midland-read-more-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 20px;
    border: 1px solid #2222;
    border-radius: 8px;
    background: #fdfdfd;
    color: #2222;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.midland-recent-posts-wrapper .midland-post-card:hover .midland-read-more-btn {
    border-color: #21AFA5;
    background: #21AFA5;
    color: #fff;
}

.midland-recent-posts-wrapper .midland-no-recent-posts {
    margin: 0;
    color: #8F8D8D;
    text-align: center;
}

@media (max-width: 992px) {
    .midland-recent-posts-wrapper .midland-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.midland-elementor-recent-posts .midland-elementor-post-grid {
    display: grid;
    grid-template-columns: repeat(var(--midland-desktop-columns, 3), minmax(0, 1fr));
    gap: 24px;
}

.midland-recent-seo-widget .midland-posts-grid {
    grid-template-columns: repeat(var(--midland-recent-columns, 3), minmax(0, 1fr));
}

.midland-elementor-recent-posts .midland-elementor-post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.midland-elementor-recent-posts .midland-elementor-post-card:focus-visible {
    outline: 3px solid #21AFA5;
    outline-offset: 3px;
}

.midland-elementor-recent-posts .midland-elementor-post-thumb {
    height: 220px;
    overflow: hidden;
    background: #e3f2f1;
}

.midland-elementor-recent-posts .midland-elementor-post-thumb img,
.midland-elementor-recent-posts .midland-elementor-post-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.midland-elementor-recent-posts .midland-elementor-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
}

.midland-elementor-recent-posts .recent-post-title,
.midland-elementor-recent-posts .recent-post-excerpt {
    margin: 0;
}

.midland-elementor-recent-posts .recent-post-read-more {
    margin-top: auto;
    color: #21AFA5;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .midland-elementor-recent-posts .midland-elementor-post-grid {
        grid-template-columns: repeat(var(--midland-tablet-columns, 2), minmax(0, 1fr));
    }
    .midland-recent-seo-widget .midland-posts-grid {
        grid-template-columns: repeat(min(var(--midland-recent-columns, 3), 2), minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .midland-elementor-recent-posts .midland-elementor-post-grid {
        grid-template-columns: repeat(var(--midland-mobile-columns, 1), minmax(0, 1fr));
    }
    .midland-recent-seo-widget .midland-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}