/**
 * Posts Grid Widget Styles
 */
.posts-grid-widget {
    width: 100%;
}

.posts-grid-list {
    display: grid;
}

.posts-grid-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.posts-grid-card .post-grid-image {
    display: block;
    overflow: hidden;
    position: relative;
}

.posts-grid-card .post-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.posts-grid-card:hover .post-grid-image img {
    transform: scale(1.05);
}

.posts-grid-card .post-grid-image .no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.posts-grid-card .post-grid-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.posts-grid-card .post-grid-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-grid-card .post-grid-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-grid-card .post-grid-excerpt {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-grid-card .post-grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.posts-grid-card .post-grid-date {
    font-size: 14px;
}

.posts-grid-card .post-grid-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.posts-grid-card .post-grid-arrow svg {
    transition: fill 0.3s ease;
    stroke: currentColor;
}

.posts-grid-card:hover .post-grid-arrow {
    transform: translateX(4px);
}
