@php
$color = $options['color'] ?? 'primary';
$padding = $options['padding'] ?? 'xl';
$alignment = $options['alignment'] ?? 'center';
@endphp
<section class="page-block-cta py-{{ $padding }} {{ pb_bg_class($color) }} text-white text-{{ $alignment }}">
    <div class="container">
        <h2 class="mb-3">{{ $data['title'] ?? '' }}</h2>
        @if(! empty($data['subtitle']))<p class="lead mb-4">{!! e($data['subtitle']) !!}</p>@endif
        @if(! empty($data['cta_text']) && ! empty($data['cta_link']))
            <a href="{{ localized_url($data['cta_link']) }}" class="btn btn-light btn-lg">{{ $data['cta_text'] }}</a>
        @endif
    </div>
</section>
