.wegreen-latest-posts {
    margin: 2em 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #374151;
    line-height: 1.6;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wegreen-latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

h2.wegreen-latest-title {
    font-size: 1.125rem!important;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
h3.wegreen-latest-title {
    margin-bottom: 0.25rem!important;
}
h2.wegreen-latest-title {
    margin-bottom: 0!important;
}

.wegreen-more-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.wegreen-more-link:hover {
    color: #2563eb;
}

.wegreen-arrow {
    transition: transform 0.2s ease;
}

.wegreen-more-link:hover .wegreen-arrow {
    transform: translateX(4px);
}

.wegreen-latest-posts-grid {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.wegreen-latest-post {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.wegreen-latest-post:hover {
    transform: translateX(2px);
}

.wegreen-latest-post:last-child {
    margin-bottom: 0;
}

.wegreen-latest-image {
    width: 4rem;
    height: 3rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.wegreen-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wegreen-latest-content {
    flex: 1;
    min-width: 0;
}

.wegreen-latest-title {
    font-size: 0.875rem!important;
    font-weight: 500;
    line-height: 1.4;
}

.wegreen-latest-title a {
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.wegreen-latest-post:hover .wegreen-latest-title a {
    color: #3b82f6;
}

.wegreen-latest-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.wegreen-latest-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wegreen-latest-date:before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.wegreen-latest-author {
    display: none;
}

.wegreen-latest-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 10px;
}

.wegreen-latest-comments:before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.wegreen-latest-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6b7280;
    margin-top: 0.25rem;
    display: none;
}

/* Widget styling */
.widget .wegreen-latest-posts {
    margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wegreen-latest-posts-grid {
        padding: 1rem;
    }
    
    .wegreen-latest-header {
        padding: 0.75rem 1rem;
    }
}

/* Editor styles */
.wegreen-latest-posts-block {
    padding: 1em;
    border: 1px dashed #ccc;
    margin: 1em 0;
} 