/* Blog Posts Grid Widget Styles */

.ebpg-grid {
    display: grid;
    grid-template-columns: repeat(var(--ebpg-columns, 3), 1fr);
    gap: 24px;
    width: 100%;
}

/* Card */
.ebpg-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebpg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.ebpg-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.ebpg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ebpg-no-image {
    background-color: #C6E450;
}

.ebpg-card:hover .ebpg-image {
    transform: scale(1.05);
}

/* Overlay on hover */
.ebpg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ebpg-card:hover .ebpg-image-overlay {
    opacity: 1;
}

.ebpg-hover-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Content */
.ebpg-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ebpg-title {
    font-size: 18px;
    font-weight: 700;
    color: #0E0F0C;
    margin: 0;
    line-height: 1.3;
}

.ebpg-excerpt {
    font-size: 14px;
    font-weight: 400;
    color: #6B6B6B;
    margin: 0;
    line-height: 1.5;
}

.ebpg-arrow {
    display: inline-flex;
    align-items: center;
    color: #0E0F0C;
    margin-top: 5px;
}

.ebpg-arrow svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .ebpg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ebpg-grid {
        grid-template-columns: 1fr;
    }

    .ebpg-content {
        padding: 16px;
    }

    .ebpg-title {
        font-size: 16px;
    }
}