/* Improved CSS for MSN Latest Posts Plugin */

.msn-latest-posts-container {
    margin: 20px auto; /* Added vertical margin for breathing room */
    max-width: 1200px;
    padding: 0px; /* Added internal padding */
    border-radius: 8px;
    box-sizing: border-box;
    /* Background, font size, font family, text color, and line height are set via inline styles */
}

.msn-post {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msn-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.msn-post-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.msn-post-image {
    flex: 0 0 200px;
    overflow: hidden;
}

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

.msn-post-content {
    padding: 3px 4px 0px 4px; /* Increased padding for better spacing */
    flex: 1;
}

.msn-post-title {
    font-size: 1.5em;
    margin: 0 0 0px;
    line-height: 1.2;
}

.msn-post-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.msn-post-excerpt {
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .msn-post {
        flex-direction: column;
    }
    .msn-post-image {
        flex: none;
        width: 100%;
        height: auto;
        max-height: 250px;
    }
}
