/* Grid Container */
.bento-grid-a9e16d46 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
}

/* Card Styling */
.bento-card-a9e16d46 {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card-a9e16d46:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Background Image */
.bento-bg-a9e16d46 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.bento-card-a9e16d46:hover .bento-bg-a9e16d46 {
    transform: scale(1.08);
}

/* Overlay Gradient */
.bento-overlay-a9e16d46 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.bento-card-a9e16d46:hover .bento-overlay-a9e16d46 {
    opacity: 0.9;
}

/* Content Area */
.bento-content-a9e16d46 {
    position: relative;
    z-index: 3;
    padding: 24px;
    color: #fff;
    width: 100%;
}

.bento-cat-a9e16d46 {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    color: #fff;
}

.bento-title-a9e16d46 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.bento-meta-a9e16d46 {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #eee;
}

.bento-excerpt-a9e16d46 {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ddd;
}

/* Specific Sizes */
.bento-size-1x1 { 
    grid-column: span 1; 
    grid-row: span 1; 
    min-height: 250px; 
}
.bento-size-2x1 { 
    grid-column: span 2; 
    grid-row: span 1; 
    min-height: 250px; 
}
.bento-size-1x2 { 
    grid-column: span 1; 
    grid-row: span 2; 
    min-height: 520px; 
}
.bento-size-2x2 { 
    grid-column: span 2; 
    grid-row: span 2; 
    min-height: 520px; 
}

/* Adjustments for smaller cards */
.bento-size-1x1 .bento-title-a9e16d46 { font-size: 1.2rem; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid-a9e16d46 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .bento-size-1x1 { grid-column: span 1; grid-row: span 1; }
    .bento-size-2x1 { grid-column: span 2; grid-row: span 1; }
    .bento-size-1x2 { grid-column: span 1; grid-row: span 2; }
    .bento-size-2x2 { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 767px) {
    .bento-grid-a9e16d46 { 
        grid-template-columns: 1fr; 
    }
    /* On mobile, break everything down to standard blocks to avoid layout breakage */
    .bento-size-1x1, 
    .bento-size-2x1, 
    .bento-size-1x2, 
    .bento-size-2x2 {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }
}
