/* Bento Grid Container */
.angie-bento-grid {
    display: grid;
    width: 100%;
    /* Default is overridden by controls */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-flow: dense; /* Helps fill gaps */
}

/* Base Card Style */
.angie-bento-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.angie-bento-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

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

/* Overlay */
.angie-bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    z-index: 2;
}

/* Content */
.angie-bento-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Default */
    padding: 20px;
    box-sizing: border-box;
}

/* Grid Spans */
.angie-span-1x1 { grid-column: span 1; grid-row: span 1; }
.angie-span-2x1 { grid-column: span 2; grid-row: span 1; }
.angie-span-1x2 { grid-column: span 1; grid-row: span 2; }
.angie-span-2x2 { grid-column: span 2; grid-row: span 2; }

/* Responsive Fallbacks handled by Elementor controls where possible, 
   but ensuring basic fluidity here */
@media (max-width: 1024px) {
    /* Tablet adjustments handled via Elementor Responsive Controls */
}

@media (max-width: 767px) {
    .angie-bento-grid {
        grid-template-columns: 1fr !important; /* Force single column on mobile */
        grid-auto-rows: minmax(250px, auto) !important;
    }
    .angie-bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Typography & Elements */
.angie-bento-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
    text-transform: uppercase;
}

.angie-bento-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
}

.angie-bento-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.angie-bento-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 10px;
}

/* Hover Effects */
.angie-bento-hover-zoom .angie-bento-item:hover .angie-bento-bg,
.angie-bento-hover-both .angie-bento-item:hover .angie-bento-bg {
    transform: scale(1.1);
}

.angie-bento-hover-lift .angie-bento-item:hover,
.angie-bento-hover-both .angie-bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 5;
}
