/**
 * Latest Posts Display Plugin Styles
 * Pixel-perfect design matching the provided image
 */

.lpd-latest-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    font-family: 'Poppins', Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.lpd-post-card {
    display: flex;
    background-color: transparent;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.lpd-post-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
    border-radius: 22px 22px 22px 22px !important;
}

.lpd-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 22px 22px 22px 22px !important;
    overflow: hidden;
}

.lpd-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 22px 22px 22px 22px !important;
}

.lpd-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    border-radius: 22px 22px 22px 22px !important;
}

.lpd-post-content {
    flex: 1;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    background-color: transparent;
}

.lpd-post-date {
    font-size: 14px;
    color: #5C6366;
    margin-bottom: 12px;
    font-weight: 400;
}

.lpd-post-title {
    margin: 0 0 16px 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    color: #094358;
    flex: 0 0 auto;
}

.lpd-post-title a {
    color: #094358;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 15px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpd-post-title a:hover {
    color: #094358;
    opacity: 0.8;
}

.lpd-know-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #3FA5B8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-top: 0;
    width: fit-content;
}

.lpd-know-more:hover {
    color: #3FA5B8;
    opacity: 0.8;
}


/* Responsive Design */
@media (max-width: 768px) {
    .lpd-post-card {
        flex-direction: column;
    }
    
    .lpd-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .lpd-post-content {
        min-height: auto;
        padding: 16px;
    }
    
    .lpd-latest-posts-container {
        padding: 16px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .lpd-post-title {
        font-size: 16px;
    }
    
    .lpd-post-date {
        font-size: 12px;
    }
    
    .lpd-know-more {
        font-size: 13px;
    }
}
