.smec-latest-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.smec-latest-posts.smec-columns-1 { grid-template-columns: 1fr; }
.smec-latest-posts.smec-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smec-latest-posts.smec-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smec-latest-posts.smec-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.smec-post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.smec-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.smec-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.smec-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smec-post-content {
    padding: 20px;
}

.smec-post-date {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.smec-post-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.smec-post-title a {
    color: #111827;
    text-decoration: none;
}

.smec-post-title a:hover {
    color: #2563eb;
}

.smec-post-excerpt {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.smec-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.smec-read-more:hover {
    text-decoration: underline;
}

.smec-latest-posts-error,
.smec-latest-posts-empty {
    padding: 15px;
    border-radius: 8px;
    background: #f3f4f6;
}

@media (max-width: 1024px) {
    .smec-latest-posts.smec-columns-4,
    .smec-latest-posts.smec-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .smec-latest-posts,
    .smec-latest-posts.smec-columns-4,
    .smec-latest-posts.smec-columns-3,
    .smec-latest-posts.smec-columns-2 {
        grid-template-columns: 1fr;
    }
}
