{% set bgcolor = content.field_card_background.0['#markup'] ? 'bg-' ~ content.field_card_background.0['#markup'] : '' %}
{% set url = content.field_card_link.0['#plain_text'] %}

{{ include('octaviab:card', {
  image: content.field_media_image,
  location: content.field_location,
  title: content.field_card_title,
  icon: content.field_icon,
  content: content.field_card_content,
  footer: content.field_card_footer,
  bg_color: content.field_card_link.0['#plain_text'],
  url: url
}, with_context = false) }}