.ebs-post-grid {
    width: 100%;
}

.ebs-post-grid__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.ebs-post-grid__card {
    display: flex;
    flex-direction: column;
}

.ebs-post-grid__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ebs-post-grid__link:hover {
    transform: translateY(-4px);
    opacity: 0.95;
}

.ebs-post-grid__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #e5e7eb;
    margin-bottom: 14px;
}

.ebs-post-grid__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ebs-post-grid__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ebs-post-grid__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbe4f0, #f3f4f6);
}

.ebs-post-grid__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.ebs-post-grid__excerpt {
    margin-top: 10px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ebs-post-grid__empty {
    padding: 20px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .ebs-post-grid__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ebs-post-grid__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ebs-post-grid__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .ebs-post-grid__title {
        font-size: 18px;
    }
}
