﻿/* Container with rounded corners and clipping */
.blur-card {
    position: relative;
    height: 220px; /* or any height you like */
    border-radius: 4px;
    overflow: hidden;
    /* pass the image in via CSS var for convenience */
    --bg: url('');
}

/* Background image layer */
.blur-card_bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.1); /* hides blur-edge artifacts */
    will-change: transform; /* tiny perf hint */
}

/* Optional darkening/contrast overlay */
.blur-card_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.10), rgba(0,0,0,.45) );
}

/* Foreground content */
.blur-card_content {
    position: relative;
    z-index: 1; /* above bg + overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* text at bottom */
    padding: 16px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    gap: 4px;
}
