
{% if service_page is empty %}
    {% set service_page = p %}
{% endif %}

{% if intro_title is empty %}
    {% set intro_title = service_page.pagedata['Services Intro'][0]['Title']['value'] %}
{% endif %}

{% if intro_subtitle is empty %}
    {% set intro_subtitle = service_page.pagedata['Services Intro'][0]['Subtitle']['value'] %}
{% endif %}

{% if intro_content is empty %}
    {% set intro_content = service_page.pagedata['Services Intro'][0]['Content']['value'] %}
{% endif %}

{% if button_link is empty %}
    {% set button_link = service_page.pagedata['Services Intro'][0]['CTA Link']['value'] %}
{% endif %}

{% if button_text is empty %}
    {% set button_text = service_page.pagedata['Services Intro'][0]['CTA Text']['value'] %}
{% endif %}

{% if intro_title is not empty or intro_subtitle is not empty or intro_content is not empty or service_page.pagedata['Services'][0]['Service Name']['value'] is not empty %}
    
    <div
            {% if section_id is not empty %}id="{{ section_id }}"{% endif %}
            class="serviceBanner darkBg {{ class }}"
    >
        
        
        <div class="wrapper">
    
            {% include 'includes/elements/intro_block.twig' with {
                intro_title: (category.content_blocks_title ?: intro_title),
                intro_subtitle: intro_subtitle,
                intro_content: (category.content_blocks_subtitle ?: intro_content),
                class: 'servicesIntro'
            }%}
    
            {% include 'includes/elements/service_list.twig' %}
    
            {% if button_link is not empty and button_text is not empty and button_hidden is empty %}
                <div class="buttonWrap">
                    <a href="{{ button_link }}" class="button buttonWhite">{{ button_text }}</a>
                </div> <!-- .buttonWrap -->
            {% endif %}
    
    
        </div> <!-- .wrapper -->
       
    
    </div> <!-- .serviceBanner -->
    
{% endif %}
