.wise-post-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(var(--wise-post-grid-columns, 3), 1fr);
    gap: 30px;
    margin: 30px 0;
}

.wise-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wise-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wise-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.wise-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.wise-post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

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

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

.wise-post-title a:hover {
    color: var(--wise-post-grid-accent);
}

.wise-post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wise-post-footer {
    margin-top: auto;
}

.wise-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wise-post-grid-accent);
    text-decoration: none;
}

.wise-post-read-more svg {
    transition: transform 0.3s ease;
}

.wise-post-read-more:hover svg {
    transform: translateX(4px);
}

/* Style Variants */
.wise-post-grid-wrapper.style-2 .wise-post-card {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eee;
}

.wise-post-grid-wrapper.style-2 .wise-post-content {
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .wise-post-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wise-post-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Editor Specific */
.wp-block-gutenwise-post-grid-block {
    display: block;
}
