/**
 * Latest Blog Posts Widget Styles
 */
.padaviva-latest-blog-posts {
    margin-bottom: 30px;
}

.latest-posts-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.latest-post-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.latest-post-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

.post-snippet {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.post-snippet p {
    margin: 0 0 10px 0;
}

.post-read-more {
    color: #007bff;
    text-decoration: underline;
    font-size: 14px;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.post-read-more:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-posts-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-snippet {
        font-size: 13px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

