/* [B] Elementor Related Posts - Base Styles (Light Preset) */

.bdw-erp-wrapper {
    width: 100%;
}

.bdw-erp-grid {
    display: grid;
    /* Default gap and columns; safely overridden by Elementor */
    gap: 20px; 
    grid-template-columns: repeat(3, 1fr);
}

.bdw-erp-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #ffffff; /* Light theme base */
    border: 1px solid #e5e7eb; /* Soft border */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bdw-erp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Soft, premium shadow on hover */
    text-decoration: none;
}

.bdw-erp-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Modern aspect ratio */
    overflow: hidden;
    background-color: #f3f4f6; /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdw-erp-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bdw-erp-card:hover .bdw-erp-image-wrapper img {
    transform: scale(1.03);
}

.bdw-erp-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.bdw-erp-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bdw-erp-term {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #003366; /* Elegant dark blue default */
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.bdw-erp-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827; /* Near black */
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.bdw-erp-meta {
    font-size: 0.85rem;
    color: #6b7280; /* Gray text */
    margin-top: auto; /* Pushes meta to the bottom of the card */
}

/* Fallback responsive behavior if Elementor breakpoints aren't perfectly mapped */
@media (max-width: 768px) {
    .bdw-erp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .bdw-erp-grid {
        grid-template-columns: 1fr !important;
    }
}