
{% if show_dummy_data == true %}
    {% set p = {
        'pagedata': {
            'Services Intro': [{
                'Title': {'value': 'Our Services'},
                'Subtitle': {'value': 'Comprehensive Healthcare Solutions'},
                'Content': {'value': 'We provide a full range of pharmacy services designed to meet all your healthcare needs.'},
                'CTA Link': {'value': '/all-services'},
                'CTA Text': {'value': 'View All Services'}
            }],
            'Services': [{
                'Service Name': {'value': 'Prescription Services'},
                'Service Image': {'value': 'prescription-icon.svg'},
                'Service Description': {'value': '<p>Professional prescription dispensing and medication management.</p>'}
            }]
        }
    } %}
    {% set category = {
        'content_blocks_title': 'Category Services',
        'content_blocks_subtitle': 'Specialized services for this category'
    } %}
    {% set section_id = 'services-section' %}
    {% set class = 'homepage-services' %}
    {% set button_hidden = false %}
{% endif %}

{% 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 %}
