@foreach ($slides as $slide)
@php
$align = match ($slide->text_position ?? 'left') {
'center' => ['wrap' => 'justify-center', 'block' => 'text-center mx-auto', 'row' => 'sm:justify-center'],
'right' => ['wrap' => 'justify-end', 'block' => 'text-right ml-auto', 'row' => 'sm:justify-end'],
default => ['wrap' => 'justify-start', 'block' => 'text-left', 'row' => ''],
};
@endphp
{{-- Background image — fills the entire slide --}}
{{-- Readability overlay — sits above image, below text --}}
@if ($slide->overlay_enabled)
@endif
{{-- Overlay content --}}
@if ($slide->subtitle)
{{ $slide->subtitle }}
@endif
{{ $slide->title }}
@if ($slide->description)
{{ $slide->description }}
@endif
@if ($slide->button_text || $slide->button2_text)
@endif
@endforeach
{{-- Navigation arrows --}}
@if ($hero['show_arrows'])
@endif
{{-- Navigation dots --}}
@if ($hero['show_dots'])
@endif