@php($d = $d ?? [])
<section class="vs-section cl-services" id="services">
    <div class="vs-container">
        <div class="cl-head" data-aos="fade-up">
            <span class="cl-eyebrow cl-eyebrow-dark"><span class="cl-eyebrow-bar"></span> Our departments</span>
            <h2 class="cl-h2">{{ $d['heading'] ?? 'Comprehensive veterinary services' }}</h2>
            @if(!empty($d['subheading']))<p class="cl-lead">{{ $d['subheading'] }}</p>@endif
        </div>
        <div class="cl-depts">
            @foreach(($d['items'] ?? []) as $i => $item)
                <div class="cl-dept" data-aos="fade-up" data-aos-delay="{{ ($i % 3) * 80 }}">
                    <div class="cl-dept-icon"><i class="{{ $item['icon'] ?? 'fas fa-stethoscope' }}"></i></div>
                    <div class="cl-dept-body">
                        <h3>{{ $item['title'] ?? '' }}</h3>
                        <p>{{ $item['text'] ?? '' }}</p>
                        <a href="#contact" class="cl-dept-link">Read more <i class="fas fa-arrow-right-long"></i></a>
                    </div>
                    <span class="cl-dept-num">0{{ $i + 1 }}</span>
                </div>
            @endforeach
        </div>
    </div>
</section>
