{% set mid = tpl_mid %}
{% set links = tpl_links %}

{% set wrapper_class = 'imbtnav-wrapper imbtnav mb-3' %}
{% set title = 'Why us?' %}
{% set row_classes = 'imbtnav' %}
{% set expanded = true %}
{% set status = 'default' %}
{% set size = 'lg' %}
{% set cols = 4 %}
{% set col_classes = 'col-lg-3 col-6 btn-col' %}

{% set groups = [] %}
{% for links in tpl_links|batch(4) %}
    {% set group %}
        {% include '@organisms/tm-menu/menu-bt/menu-bt.twig' with {
            'title': false,
        } %}
    {% endset %}

    {% set groups = groups|merge([group]) %}
{% endfor %}

{% if groups is not empty %}
    <h2 class="imbtnav-title">{{ title }}</h2>
    {% include "@organisms/tm-scaffold/rows-cols/rows-cols.twig" with {
        'wrapper_class': ['nav-buttons', wrapper_class]|join(' '),
        'auto_height': true,
        'batch': 1,
        'items': groups,
        'scrolling_mobile': true,
        'scrolling_dots': true,
        'row_class': 'm-0',
        'col_class': 'w-100',
    } %}
{% endif %}
