.ba-realizacie-card-366 {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Shadow around the box while hovered */
.ba-realizacie-card-366:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ba-image-container-366 {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ba-image-after-366,
.ba-image-before-366 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Zoom effect to image when hovering on box */
.ba-realizacie-card-366:hover .ba-image-after-366,
.ba-realizacie-card-366:hover .ba-image-before-366 {
    transform: scale(1.08);
}

.ba-image-before-366 {
    z-index: 2;
    opacity: 0;
}

.ba-image-before-366.active {
    opacity: 1;
}

.ba-labels-top-left-366 {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    z-index: 5;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ba-label-toggle-366 {
    border: none;
    outline: none;
    background: #fff;
    color: #1a3365;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ba-label-toggle-366.active {
    background: #5d6170;
    color: #fff;
}

.ba-badge-top-right-366 {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: #1a3365;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
}

.ba-content-area-366 {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ba-text-wrap-366 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ba-title-366 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0d1b3e;
}

.ba-location-wrap-366 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.ba-pin-icon-366 {
    color: #64748b;
}

.ba-location-366 {
    font-size: 14px;
}

.ba-action-wrap-366 {
    flex-shrink: 0;
}

.ba-detail-btn-366 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff4fa;
    color: #1a3365;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.ba-detail-btn-366:hover {
    background: #e2ebf6;
    color: #1a3365;
}

/* Responsiveness and Mobile Optimization */
@media (max-width: 576px) {
    .ba-content-area-366 {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .ba-text-wrap-366 {
        text-align: left;
        gap: 6px;
    }
    
    .ba-title-366 {
        font-size: 16px;
    }
    
    .ba-location-366 {
        font-size: 13px;
    }
    
    .ba-action-wrap-366 {
        width: 100%;
    }
    
    .ba-detail-btn-366 {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px 18px;
    }
    
    .ba-labels-top-left-366 {
        top: 12px;
        left: 12px;
    }
    
    .ba-label-toggle-366 {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .ba-badge-top-right-366 {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 10px;
    }
}
