@php
$columns = (int) ($options['columns'] ?? 3);
$color = $options['color'] ?? 'light';
$padding = $options['padding'] ?? 'lg';
$alignment = $options['alignment'] ?? 'center';
$colSize = (int) (12 / max(1, $columns));
@endphp
<section class="page-block-features py-{{ $padding }} {{ pb_bg_class($color) }} text-{{ $alignment }}">
    <div class="container">
        @if(! empty($data['title']))<h2 class="mb-4">{{ $data['title'] }}</h2>@endif
        @if(! empty($data['subtitle']))<p class="lead mb-5">{!! e($data['subtitle']) !!}</p>@endif
        <div class="row g-4">
            @foreach($data['items'] ?? [] as $item)
                <div class="col-md-{{ $colSize }}">
                    @if(! empty($item['icon']))<i class="{{ $item['icon'] }} fa-3x text-primary mb-3"></i>@endif
                    <h4>{{ $item['title'] ?? '' }}</h4>
                    @if(! empty($item['description']))<p class="text-muted">{{ $item['description'] }}</p>@endif
                </div>
            @endforeach
        </div>
    </div>
</section>
