{% import "./macros_typography.html.twig" as macrosTypography %}
{% import "./macros_button.html.twig" as macrosButton %}
{% for section in content.services %}
{% set item = sulu_content_load(section.id,{'title': 'title', 'url': 'url', 'description': 'description', 'image': 'image', 'icon': 'icon'}) %}
<section class="service-section text-blue pt-16 md:pt-20 {{loop.last ? 'pb-[70px] md:pb-20' : 'pb-8 md:pb-10'}}" section-shade="light">
<div
class="big-container flex flex-col {{loop.index is odd ? 'lg:flex-row-reverse' : 'lg:flex-row'}} justify-between gap-6">
<div class="lg:w-7/12">
<div
class="relative w-full min-h-[250px] md:min-h-[350px] lg:min-h-[695px] {{loop.index is even ? 'clip-path-tl-br' : 'clip-path-tr-bl'}} overflow-hidden">
{# image size 1730 × 1390 webp ~70-100kb #}
{% if item.content.image|length > 0 %}
{% set image = item.content.image.url %}
<img class="absolute object-cover w-full h-full"
zoom-out
zoom-out-trigger="scroll"
src="{{ image }}"
alt="{{item.content.title}} image"
loading="lazy">
{% endif %}
</div>
</div>
<div class="lg:w-4/12">
<div class="max-w-[90px]"
fade
fade-trigger="scroll">
{# Image size 100*100 #}
<img class="w-full"
src="{{ item.content.icon }}"
alt="{{ item.content.title }} icon"
loading="lazy">
</div>
<h2 class="h2 mt-6 lg:mt-20"
split-direction="top"
split-trigger="scroll">{{item.content.title}}</h2>
<div class="text-sm sm:w-8/12 lg:w-full mt-6 lg:mt-8"
fade
fade-trigger="scroll">{{ item.content.description | raw}}</div>
{{macrosButton.arrowLink({
'wrappClass': 'mt-6 lg:mt-12',
'text': content.textLink,
'href': sulu_content_path(item.content.url),
'trigger': 'scroll'
})}}
</div>
</div>
</section>
{% endfor %}