<section id="programs" class="relative py-20 lg:py-28 bg-gradient-to-b from-gray-50 to-white overflow-hidden">
    <!-- Background Pattern -->
    <div class="absolute inset-0 opacity-30" style="background-image: radial-gradient(circle at 2px 2px, #e5e7eb 1px, transparent 0); background-size: 32px 32px;"></div>

    <div class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <!-- Section Header -->
        <div class="text-center mb-12 reveal">
            <div class="inline-flex items-center space-x-2 bg-primary-50 text-primary-600 px-4 py-1.5 rounded-full text-sm font-medium mb-4">
                <i class="fas fa-book-open text-xs"></i>
                <span>Our Programs</span>
            </div>
            <h2 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 mb-4 font-display">
                Course <span class="gradient-text">Objectives &amp; Topics</span>
            </h2>
            <div class="section-divider max-w-24 mx-auto mb-6"></div>
            <p class="text-gray-600 text-lg max-w-2xl mx-auto">
                Our professional mediation training covers comprehensive modules designed to equip you with essential skills for effective dispute resolution.
            </p>
        </div>

        <!-- Course Objectives -->
        <div class="mb-16 reveal">
            <div class="bg-gradient-to-r from-primary-600 to-primary-700 rounded-3xl p-8 lg:p-10 text-white relative overflow-hidden">
                <div class="absolute top-0 right-0 w-64 h-64 bg-white/5 rounded-full -translate-y-1/2 translate-x-1/3"></div>
                <div class="absolute bottom-0 left-0 w-48 h-48 bg-white/5 rounded-full translate-y-1/2 -translate-x-1/4"></div>

                <div class="relative z-10">
                    <h3 class="text-2xl font-bold mb-6 font-display flex items-center space-x-3">
                        <div class="w-10 h-10 bg-white/20 rounded-xl flex items-center justify-center">
                            <i class="fas fa-bullseye"></i>
                        </div>
                        <span>Course Objectives</span>
                    </h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        @foreach([
                            'Understand the role mediation plays in different sectors',
                            'Increase ability to manage complex technical issues across multiple parties',
                            'Acquire techniques and hands-on experience for dealing with future contingencies',
                            'Develop advanced facilitation skills to promote communication between parties',
                            'Acquire competencies to distinguish issues from interests and develop solutions',
                            'Sharpen mediation skills with in-depth, real-time feedback from master practitioners',
                            'Enhance listening, probing, and evaluation skills',
                            'Tackle complex disputes in different sectors',
                        ] as $objective)
                            <div class="flex items-start space-x-3 bg-white/10 rounded-xl px-4 py-3 backdrop-blur-sm">
                                <div class="w-6 h-6 bg-accent-400 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5">
                                    <i class="fas fa-check text-white text-xs"></i>
                                </div>
                                <span class="text-sm text-white/90 leading-relaxed">{{ $objective }}</span>
                            </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>

        <!-- Course Topics in Grid Tabs -->
        <div class="reveal" x-data="{ activeModule: 'module1' }">
            <!-- Module Tabs -->
            <div class="flex flex-wrap justify-center gap-2 mb-8">
                @foreach([
                    ['id' => 'module1', 'label' => 'Module 1', 'subtitle' => 'Foundation'],
                    ['id' => 'module2', 'label' => 'Module 2', 'subtitle' => 'Tools & Process'],
                    ['id' => 'module3', 'label' => 'Module 3', 'subtitle' => 'Ethics & Practice'],
                    ['id' => 'module4', 'label' => 'Module 4', 'subtitle' => 'Specializations'],
                    ['id' => 'module5', 'label' => 'Module 5', 'subtitle' => 'Assessment'],
                ] as $tab)
                    <button
                        @click="activeModule = '{{ $tab['id'] }}'"
                        class="px-5 py-2.5 rounded-xl text-sm font-medium transition-all duration-300"
                        :class="activeModule === '{{ $tab['id'] }}' ? 'bg-primary-500 text-white shadow-lg shadow-primary-500/30' : 'bg-gray-100 text-gray-600 hover:bg-gray-200'"
                    >
                        <div>{{ $tab['label'] }}</div>
                        <div class="text-xs" :class="activeModule === '{{ $tab['id'] }}' ? 'text-primary-100' : 'text-gray-400'">{{ $tab['subtitle'] }}</div>
                    </button>
                @endforeach
            </div>

            <!-- Module 1 Topics -->
            <div x-show="activeModule === 'module1'" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3">
                @foreach([
                    ['title' => 'Welcome & Introductions', 'icon' => 'fa-handshake', 'color' => 'primary'],
                    ['title' => 'Overview of ADR', 'icon' => 'fa-balance-scale', 'color' => 'accent'],
                    ['title' => 'ADR Continuum', 'icon' => 'fa-project-diagram', 'color' => 'green'],
                    ['title' => 'Definition of Conflict', 'icon' => 'fa-bolt', 'color' => 'amber'],
                    ['title' => 'Necessary Knowledge', 'icon' => 'fa-brain', 'color' => 'purple'],
                    ['title' => 'Nature & Dynamics of Conflict', 'icon' => 'fa-arrows-alt', 'color' => 'primary'],
                    ['title' => 'Strategic Conflict Management', 'icon' => 'fa-chess', 'color' => 'accent'],
                    ['title' => 'Group/Team Mediation', 'icon' => 'fa-users', 'color' => 'green'],
                    ['title' => 'Communication Skills', 'icon' => 'fa-comments', 'color' => 'amber'],
                    ['title' => 'Negotiation Skills', 'icon' => 'fa-handshake-angle', 'color' => 'purple'],
                    ['title' => 'Emotional Intelligence', 'icon' => 'fa-heart', 'color' => 'accent'],
                    ['title' => 'Introduction to Mediation', 'icon' => 'fa-door-open', 'color' => 'primary'],
                ] as $topic)
                    <div class="topic-chip bg-white rounded-xl p-4 text-center border border-gray-100 shadow-sm hover:border-primary-200 cursor-default">
                        <div class="w-10 h-10 bg-{{ $topic['color'] }}-50 text-{{ $topic['color'] }}-500 rounded-xl mx-auto mb-2 flex items-center justify-center">
                            <i class="fas {{ $topic['icon'] }} text-sm"></i>
                        </div>
                        <span class="text-xs font-medium text-gray-700 leading-tight block">{{ $topic['title'] }}</span>
                    </div>
                @endforeach
            </div>

            <!-- Module 2 Topics -->
            <div x-show="activeModule === 'module2'" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3">
                @foreach([
                    ['title' => 'Tools of a Mediator', 'icon' => 'fa-toolbox', 'color' => 'primary'],
                    ['title' => 'Personality Types', 'icon' => 'fa-user-tag', 'color' => 'accent'],
                    ['title' => 'Cases for Mediation', 'icon' => 'fa-folder-open', 'color' => 'green'],
                    ['title' => 'The Mediation Process', 'icon' => 'fa-route', 'color' => 'amber'],
                    ['title' => 'Joint Session Techniques', 'icon' => 'fa-people-arrows', 'color' => 'purple'],
                    ['title' => 'Caucusing Techniques', 'icon' => 'fa-user-shield', 'color' => 'primary'],
                    ['title' => 'Managing Impasse', 'icon' => 'fa-unlock', 'color' => 'accent'],
                    ['title' => 'Key Mediation Techniques', 'icon' => 'fa-key', 'color' => 'green'],
                ] as $topic)
                    <div class="topic-chip bg-white rounded-xl p-4 text-center border border-gray-100 shadow-sm hover:border-primary-200 cursor-default">
                        <div class="w-10 h-10 bg-{{ $topic['color'] }}-50 text-{{ $topic['color'] }}-500 rounded-xl mx-auto mb-2 flex items-center justify-center">
                            <i class="fas {{ $topic['icon'] }} text-sm"></i>
                        </div>
                        <span class="text-xs font-medium text-gray-700 leading-tight block">{{ $topic['title'] }}</span>
                    </div>
                @endforeach
            </div>

            <!-- Module 3 Topics -->
            <div x-show="activeModule === 'module3'" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3">
                @foreach([
                    ['title' => 'Mediator Role & Ethics', 'icon' => 'fa-gavel', 'color' => 'primary'],
                    ['title' => 'Commercial Mediation', 'icon' => 'fa-briefcase', 'color' => 'accent'],
                    ['title' => 'Party-Directed Mediation', 'icon' => 'fa-hand-point-right', 'color' => 'green'],
                    ['title' => 'Supervisor-Subordinate', 'icon' => 'fa-sitemap', 'color' => 'amber'],
                    ['title' => 'Overcoming Obstacles', 'icon' => 'fa-mountain', 'color' => 'purple'],
                    ['title' => 'Psychology in Mediation', 'icon' => 'fa-brain', 'color' => 'primary'],
                    ['title' => 'Common Mistakes', 'icon' => 'fa-exclamation-triangle', 'color' => 'accent'],
                    ['title' => 'Co-Mediation', 'icon' => 'fa-user-friends', 'color' => 'green'],
                    ['title' => 'Agreement Writing', 'icon' => 'fa-file-signature', 'color' => 'amber'],
                    ['title' => 'Qualities of a Mediator', 'icon' => 'fa-star', 'color' => 'purple'],
                ] as $topic)
                    <div class="topic-chip bg-white rounded-xl p-4 text-center border border-gray-100 shadow-sm hover:border-primary-200 cursor-default">
                        <div class="w-10 h-10 bg-{{ $topic['color'] }}-50 text-{{ $topic['color'] }}-500 rounded-xl mx-auto mb-2 flex items-center justify-center">
                            <i class="fas {{ $topic['icon'] }} text-sm"></i>
                        </div>
                        <span class="text-xs font-medium text-gray-700 leading-tight block">{{ $topic['title'] }}</span>
                    </div>
                @endforeach
            </div>

            <!-- Module 4 Topics -->
            <div x-show="activeModule === 'module4'" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3">
                @foreach([
                    ['title' => 'Community Mediation', 'icon' => 'fa-home', 'color' => 'primary'],
                    ['title' => 'Family Mediation', 'icon' => 'fa-people-roof', 'color' => 'accent'],
                    ['title' => 'Court-Annexed Mediation', 'icon' => 'fa-landmark', 'color' => 'green'],
                    ['title' => 'Legal Disputes', 'icon' => 'fa-scale-balanced', 'color' => 'amber'],
                    ['title' => 'Process Obstacles', 'icon' => 'fa-ban', 'color' => 'purple'],
                    ['title' => 'Settlement Barriers', 'icon' => 'fa-shield-halved', 'color' => 'primary'],
                    ['title' => 'Culture & Mediation', 'icon' => 'fa-globe-africa', 'color' => 'accent'],
                    ['title' => 'Role of Lawyers', 'icon' => 'fa-user-tie', 'color' => 'green'],
                    ['title' => 'Role of Experts', 'icon' => 'fa-user-graduate', 'color' => 'amber'],
                    ['title' => 'Developing a Practice', 'icon' => 'fa-seedling', 'color' => 'purple'],
                    ['title' => 'Assignment of Plays', 'icon' => 'fa-theater-masks', 'color' => 'primary'],
                ] as $topic)
                    <div class="topic-chip bg-white rounded-xl p-4 text-center border border-gray-100 shadow-sm hover:border-primary-200 cursor-default">
                        <div class="w-10 h-10 bg-{{ $topic['color'] }}-50 text-{{ $topic['color'] }}-500 rounded-xl mx-auto mb-2 flex items-center justify-center">
                            <i class="fas {{ $topic['icon'] }} text-sm"></i>
                        </div>
                        <span class="text-xs font-medium text-gray-700 leading-tight block">{{ $topic['title'] }}</span>
                    </div>
                @endforeach
            </div>

            <!-- Module 5 Topics -->
            <div x-show="activeModule === 'module5'" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-2" x-transition:enter-end="opacity-100 translate-y-0" class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3">
                @foreach([
                    ['title' => 'Role Plays with Feedback', 'icon' => 'fa-theater-masks', 'color' => 'primary'],
                    ['title' => 'Group Debriefing', 'icon' => 'fa-people-group', 'color' => 'accent'],
                    ['title' => 'Assessment', 'icon' => 'fa-clipboard-check', 'color' => 'green'],
                    ['title' => 'Online Mediation Practice', 'icon' => 'fa-laptop', 'color' => 'amber'],
                    ['title' => 'Business Disputes', 'icon' => 'fa-building', 'color' => 'purple'],
                    ['title' => 'Successful Mediator', 'icon' => 'fa-trophy', 'color' => 'primary'],
                    ['title' => 'Mediators Ethics', 'icon' => 'fa-scroll', 'color' => 'accent'],
                    ['title' => 'Post-Course Assignment', 'icon' => 'fa-pencil-alt', 'color' => 'green'],
                    ['title' => 'Evaluation & Certificates', 'icon' => 'fa-certificate', 'color' => 'amber'],
                ] as $topic)
                    <div class="topic-chip bg-white rounded-xl p-4 text-center border border-gray-100 shadow-sm hover:border-primary-200 cursor-default">
                        <div class="w-10 h-10 bg-{{ $topic['color'] }}-50 text-{{ $topic['color'] }}-500 rounded-xl mx-auto mb-2 flex items-center justify-center">
                            <i class="fas {{ $topic['icon'] }} text-sm"></i>
                        </div>
                        <span class="text-xs font-medium text-gray-700 leading-tight block">{{ $topic['title'] }}</span>
                    </div>
                @endforeach
            </div>

            <!-- Training Info Banner -->
            <div class="mt-12 bg-gradient-to-r from-primary-50 to-accent-50 rounded-2xl p-6 lg:p-8 border border-primary-100 reveal">
                <div class="flex flex-col md:flex-row items-center justify-between gap-6">
                    <div class="flex items-start space-x-4">
                        <div class="w-14 h-14 bg-gradient-to-br from-primary-500 to-accent-500 rounded-2xl flex items-center justify-center flex-shrink-0 shadow-lg">
                            <i class="fas fa-graduation-cap text-white text-xl"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-gray-900 text-lg mb-1">Professional Mediation Training Programme 2026</h4>
                            <p class="text-gray-600 text-sm">We offer mediation training that brings lessons to life through role-play simulations mirroring real-life disputes. Our program includes lectures, debrief sessions, interactive discussions, and opportunities to watch the latest mediation practice videos.</p>
                        </div>
                    </div>
                    <a href="{{ url('/register/trainee') }}" class="btn-shine bg-gradient-to-r from-primary-500 to-primary-600 text-white px-6 py-3 rounded-full font-semibold text-sm transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 whitespace-nowrap inline-flex items-center space-x-2">
                        <span>Enroll Now</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
</section>
