<?php

namespace Database\Seeders\Pages;

use App\Models\PublishingPage;
use Illuminate\Database\Seeder;

/**
 * WhatWeDoActivitiesSeeder
 *
 * Seeds 9 individual "What We Do" activity pages for SSHIA:
 *   1. annual-conferences
 *   2. national-international-programs
 *   3. governing-board-membership
 *   4. workshops-seminars
 *   5. guidelines-standards
 *   6. international-partnerships
 *   7. capacity-building
 *   8. policy-advocacy
 *   9. fundraising
 *
 * Uses updateOrCreate — safe to run multiple times.
 * Compatible with MySQL 5.7 (JSON columns, no generated columns).
 */
class WhatWeDoActivitiesSeeder extends Seeder
{
    public function run(): void
    {
        foreach ($this->pages() as $page) {
            PublishingPage::updateOrCreate(
                ['slug' => $page['slug']],
                $page
            );
        }
    }

    private function pages(): array
    {
        return [
            $this->annualConferences(),
            $this->nationalInternationalPrograms(),
            $this->governingBoardMembership(),
            $this->workshopsSeminars(),
            $this->guidelinesStandards(),
            $this->internationalPartnerships(),
            $this->capacityBuilding(),
            $this->policyAdvocacy(),
            $this->fundraising(),
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 1. Annual Conferences
    // ─────────────────────────────────────────────────────────────────────────
    private function annualConferences(): array
    {
        return [
            'title'            => 'Annual Conferences',
            'slug'             => 'annual-conferences',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Annual Conferences — SSHIA',
                'meta_description' => 'SSHIA organises annual conferences and meetings that unite digital health professionals across South Sudan to share knowledge and set the national digital health agenda.',
                'keywords'         => ['SSHIA annual conference', 'digital health conference South Sudan', 'health informatics summit', 'SSHIA events'],
                'og_image'         => '/assets/img/og-annual-conferences.jpg',
                'canonical_url'    => '/pages/annual-conferences',
                'robots'           => 'index, follow',
                'schema_type'      => 'Event',
            ],
            'theme_colors'     => ['primary' => '#2563eb', 'secondary' => '#1d4ed8'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Annual Conferences',
                    'subtitle'         => 'Uniting digital health professionals across South Sudan every year',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-blue-700 via-blue-800 to-indigo-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'View All Events', 'url' => '/pages/what-we-do', 'style' => 'primary', 'icon' => 'calendar-alt'],
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Bringing the Community Together',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>The SSHIA Annual Conference is the flagship event of the South Sudan Health Informatics Association. Each year, we convene digital health professionals, policymakers, researchers, technology providers, and international partners under one roof to share knowledge, showcase innovations, and collectively shape the national digital health agenda.</p><p>These gatherings are more than meetings — they are catalysts for collaboration, policy change, and professional growth.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'What to Expect',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'Keynote Addresses', 'description' => 'Hear from leading voices in digital health, government, and international organisations on the state and future of health informatics in South Sudan and the region.', 'icon' => 'microphone-alt', 'theme_color' => '#2563eb'],
                        ['title' => 'Technical Sessions', 'description' => 'Deep-dive workshops and panel discussions covering EHR implementation, data analytics, telemedicine, interoperability, and emerging digital health technologies.', 'icon' => 'laptop-medical', 'theme_color' => '#7c3aed'],
                        ['title' => 'Networking & Exhibitions', 'description' => 'Connect with peers, explore technology exhibitions, and build partnerships that drive digital health innovation across South Sudan.', 'icon' => 'handshake', 'theme_color' => '#16a34a'],
                    ],
                ],
                [
                    'type'    => 'split_screen',
                    'layout'  => 'right',
                    'background' => 'white',
                    'image'   => '/assets/img/conference-hall.jpg',
                    'image_alt' => 'SSHIA Annual Conference Hall',
                    'title'   => 'Why Attend?',
                    'content' => '<ul><li>Stay current with the latest digital health trends and innovations</li><li>Earn continuing professional development (CPD) credits</li><li>Influence national digital health policy and standards</li><li>Expand your professional network across sectors</li><li>Access funding and partnership opportunities</li><li>Showcase your organisation\'s work to a national audience</li></ul>',
                    'button'  => ['label' => 'Register Interest', 'url' => '/membership/apply', 'style' => 'primary'],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#2563eb',
                    'title'            => 'Join Us at the Next Conference',
                    'content'          => 'SSHIA members receive priority registration and discounted rates for all annual conferences. Become a member today to secure your place.',
                    'buttons'          => [
                        ['label' => 'Apply for Membership', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                        ['label' => 'Contact Us', 'url' => '/pages/support', 'style' => 'outline', 'icon' => 'envelope'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 2. National & International Programs
    // ─────────────────────────────────────────────────────────────────────────
    private function nationalInternationalPrograms(): array
    {
        return [
            'title'            => 'National & International Programs',
            'slug'             => 'national-international-programs',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'National & International Programs — SSHIA',
                'meta_description' => 'SSHIA coordinates national and international programs that advance digital health adoption and best practices across South Sudan and the wider region.',
                'keywords'         => ['SSHIA programs', 'digital health South Sudan', 'international health informatics', 'national digital health program'],
                'og_image'         => '/assets/img/og-programs.jpg',
                'canonical_url'    => '/pages/national-international-programs',
                'robots'           => 'index, follow',
                'schema_type'      => 'Organization',
            ],
            'theme_colors'     => ['primary' => '#0d9488', 'secondary' => '#0f766e'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'National & International Programs',
                    'subtitle'         => 'Connecting South Sudan to global digital health best practices and opportunities',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-teal-700 via-teal-800 to-cyan-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Our Partnerships', 'url' => '/pages/international-partnerships', 'style' => 'primary', 'icon' => 'globe'],
                        ['label' => 'Get Involved', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Programs That Bridge Local Needs and Global Solutions',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>SSHIA designs and coordinates programs that address South Sudan\'s unique digital health challenges while drawing on international expertise, standards, and funding. Our programs span the full spectrum of digital health — from infrastructure and systems to workforce development and policy reform.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Program Areas',
                    'columns' => 2,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'National Digital Health Strategy', 'description' => 'Supporting the Ministry of Health in developing and implementing a national digital health strategy aligned with WHO and Africa CDC frameworks.', 'icon' => 'map', 'theme_color' => '#0d9488'],
                        ['title' => 'Health Information Systems', 'description' => 'Coordinating the rollout and strengthening of DHIS2, OpenMRS, and other health information systems across South Sudan\'s health facilities.', 'icon' => 'database', 'theme_color' => '#0284c7'],
                        ['title' => 'Regional Collaboration', 'description' => 'Participating in East African and continental digital health networks to share lessons, align standards, and access regional technical support.', 'icon' => 'network-wired', 'theme_color' => '#7c3aed'],
                        ['title' => 'Donor-Funded Initiatives', 'description' => 'Managing and coordinating programs funded by international donors including WHO, USAID, and the Global Fund to advance digital health priorities.', 'icon' => 'donate', 'theme_color' => '#16a34a'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#0d9488',
                    'title'            => 'Partner With SSHIA on a Program',
                    'content'          => 'We welcome collaboration with government agencies, NGOs, academic institutions, and international organisations. Reach out to explore how we can work together.',
                    'buttons'          => [
                        ['label' => 'Contact Us', 'url' => '/pages/support', 'style' => 'primary', 'icon' => 'envelope'],
                        ['label' => 'View Partnerships', 'url' => '/pages/international-partnerships', 'style' => 'outline', 'icon' => 'handshake'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 3. Governing Board & Membership
    // ─────────────────────────────────────────────────────────────────────────
    private function governingBoardMembership(): array
    {
        return [
            'title'            => 'Governing Board & Membership',
            'slug'             => 'governing-board-membership',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Governing Board & Membership — SSHIA',
                'meta_description' => 'Learn about SSHIA\'s governing board structure and how to become a member of South Sudan\'s leading digital health professional association.',
                'keywords'         => ['SSHIA membership', 'SSHIA governing board', 'digital health association South Sudan', 'join SSHIA'],
                'og_image'         => '/assets/img/og-membership.jpg',
                'canonical_url'    => '/pages/governing-board-membership',
                'robots'           => 'index, follow',
                'schema_type'      => 'Organization',
            ],
            'theme_colors'     => ['primary' => '#6d28d9', 'secondary' => '#7c3aed'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Governing Board & Membership',
                    'subtitle'         => 'Strong leadership and an active membership community driving digital health forward',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-violet-700 via-purple-800 to-indigo-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Apply for Membership', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                        ['label' => 'Learn About Governance', 'url' => '/pages/governance', 'style' => 'outline', 'icon' => 'landmark'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Leadership That Serves the Community',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>SSHIA is governed by an elected board of directors drawn from across the digital health, health informatics, and technology sectors. The governing board provides strategic direction, ensures accountability, and represents the interests of all members. Alongside strong governance, our growing membership base is the lifeblood of the association.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Membership Benefits',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'Professional Recognition', 'description' => 'Gain recognition as a certified digital health professional in South Sudan, with access to SSHIA credentials and membership certificates.', 'icon' => 'certificate', 'theme_color' => '#6d28d9'],
                        ['title' => 'Networking Access', 'description' => 'Connect with a national community of digital health practitioners, policymakers, researchers, and technology providers.', 'icon' => 'users', 'theme_color' => '#0284c7'],
                        ['title' => 'Training & CPD', 'description' => 'Access member-exclusive training programmes, workshops, and continuing professional development opportunities at discounted rates.', 'icon' => 'graduation-cap', 'theme_color' => '#16a34a'],
                        ['title' => 'Policy Influence', 'description' => 'Participate in shaping national digital health policies, standards, and guidelines through SSHIA\'s advocacy and consultation processes.', 'icon' => 'landmark', 'theme_color' => '#dc2626'],
                        ['title' => 'Conference Access', 'description' => 'Receive priority registration and discounted rates for SSHIA\'s annual conferences, seminars, and special events.', 'icon' => 'calendar-alt', 'theme_color' => '#d97706'],
                        ['title' => 'Resource Library', 'description' => 'Access SSHIA\'s growing library of publications, guidelines, research reports, and digital health resources.', 'icon' => 'book-open', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#6d28d9',
                    'title'            => 'Become a Member Today',
                    'content'          => 'Join hundreds of digital health professionals who are shaping the future of health informatics in South Sudan. Membership is open to individuals and organisations.',
                    'buttons'          => [
                        ['label' => 'Apply Now', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                        ['label' => 'View Membership Categories', 'url' => '/pages/memberships', 'style' => 'outline', 'icon' => 'list'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 4. Workshops & Seminars
    // ─────────────────────────────────────────────────────────────────────────
    private function workshopsSeminars(): array
    {
        return [
            'title'            => 'Workshops & Seminars',
            'slug'             => 'workshops-seminars',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Workshops & Seminars — SSHIA',
                'meta_description' => 'SSHIA organises hands-on workshops and seminars on digital health topics for practitioners, policymakers, and stakeholders across South Sudan.',
                'keywords'         => ['SSHIA workshops', 'digital health training South Sudan', 'health informatics seminar', 'SSHIA learning events'],
                'og_image'         => '/assets/img/og-workshops.jpg',
                'canonical_url'    => '/pages/workshops-seminars',
                'robots'           => 'index, follow',
                'schema_type'      => 'EducationEvent',
            ],
            'theme_colors'     => ['primary' => '#0891b2', 'secondary' => '#0e7490'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Workshops & Seminars',
                    'subtitle'         => 'Hands-on learning experiences that build real digital health skills',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-cyan-700 via-cyan-800 to-sky-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Browse Training', 'url' => '/training', 'style' => 'primary', 'icon' => 'chalkboard-teacher'],
                        ['label' => 'Register Interest', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Learning by Doing',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>SSHIA\'s workshops and seminars are designed to deliver practical, applicable knowledge to digital health practitioners and stakeholders. From introductory sessions for new entrants to advanced technical workshops for experienced professionals, our learning events cover the full breadth of digital health topics relevant to South Sudan\'s health system.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Workshop Topics',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'Electronic Health Records', 'description' => 'Practical training on implementing, managing, and optimising EHR systems in South Sudan\'s health facilities.', 'icon' => 'file-medical', 'theme_color' => '#0891b2'],
                        ['title' => 'Health Data Analytics', 'description' => 'Workshops on collecting, analysing, and visualising health data to support evidence-based decision-making.', 'icon' => 'chart-bar', 'theme_color' => '#7c3aed'],
                        ['title' => 'Telemedicine & mHealth', 'description' => 'Seminars on deploying telemedicine and mobile health solutions to extend healthcare reach in remote areas.', 'icon' => 'mobile-alt', 'theme_color' => '#16a34a'],
                        ['title' => 'Cybersecurity in Health', 'description' => 'Training on protecting health information systems and patient data from cyber threats and breaches.', 'icon' => 'shield-alt', 'theme_color' => '#dc2626'],
                        ['title' => 'Interoperability Standards', 'description' => 'Technical workshops on HL7 FHIR, OpenHIE, and other standards that enable health system interoperability.', 'icon' => 'project-diagram', 'theme_color' => '#d97706'],
                        ['title' => 'Digital Health Leadership', 'description' => 'Leadership seminars for health managers and policymakers on driving digital transformation in their organisations.', 'icon' => 'user-tie', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#0891b2',
                    'title'            => 'Attend Our Next Workshop',
                    'content'          => 'SSHIA members receive priority access and discounted rates for all workshops and seminars. Browse our training calendar or register your interest today.',
                    'buttons'          => [
                        ['label' => 'View Training Calendar', 'url' => '/training', 'style' => 'primary', 'icon' => 'calendar-alt'],
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 5. Guidelines & Standards
    // ─────────────────────────────────────────────────────────────────────────
    private function guidelinesStandards(): array
    {
        return [
            'title'            => 'Guidelines & Standards',
            'slug'             => 'guidelines-standards',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Guidelines & Standards — SSHIA',
                'meta_description' => 'SSHIA develops national guidelines and standards for digital health practices and regulates digital solution providers in South Sudan.',
                'keywords'         => ['digital health standards South Sudan', 'SSHIA guidelines', 'health informatics regulation', 'digital health policy'],
                'og_image'         => '/assets/img/og-guidelines.jpg',
                'canonical_url'    => '/pages/guidelines-standards',
                'robots'           => 'index, follow',
                'schema_type'      => 'GovernmentService',
            ],
            'theme_colors'     => ['primary' => '#7c3aed', 'secondary' => '#6d28d9'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Guidelines & Standards',
                    'subtitle'         => 'Setting the national framework for safe, effective, and interoperable digital health in South Sudan',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-violet-700 via-violet-800 to-purple-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'View Publications', 'url' => '/research/publications', 'style' => 'primary', 'icon' => 'file-alt'],
                        ['label' => 'Policy Advocacy', 'url' => '/pages/policy-advocacy', 'style' => 'outline', 'icon' => 'bullhorn'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'A Regulatory Foundation for Digital Health',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>SSHIA plays a central role in developing the national regulatory and standards framework for digital health in South Sudan. We work with the Ministry of Health, international standards bodies, and technology providers to create guidelines that ensure digital health solutions are safe, effective, interoperable, and aligned with national health priorities.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Our Standards Work',
                    'columns' => 2,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'National Digital Health Guidelines', 'description' => 'Developing comprehensive guidelines for the implementation, management, and evaluation of digital health solutions across South Sudan\'s health system.', 'icon' => 'file-contract', 'theme_color' => '#7c3aed'],
                        ['title' => 'Interoperability Standards', 'description' => 'Adopting and adapting international standards (HL7 FHIR, ICD-10, SNOMED CT) to ensure health systems can communicate and share data seamlessly.', 'icon' => 'project-diagram', 'theme_color' => '#0284c7'],
                        ['title' => 'Provider Regulation', 'description' => 'Establishing a regulatory framework for companies and organisations providing digital health solutions in South Sudan, ensuring quality and accountability.', 'icon' => 'shield-check', 'theme_color' => '#dc2626'],
                        ['title' => 'Data Governance', 'description' => 'Developing policies and standards for health data governance, privacy, security, and ethical use of health information.', 'icon' => 'lock', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#7c3aed',
                    'title'            => 'Contribute to Standards Development',
                    'content'          => 'SSHIA welcomes input from practitioners, researchers, and technology providers in developing national digital health guidelines and standards.',
                    'buttons'          => [
                        ['label' => 'Join the Conversation', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'comments'],
                        ['label' => 'Contact Us', 'url' => '/pages/support', 'style' => 'outline', 'icon' => 'envelope'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 6. International Partnerships
    // ─────────────────────────────────────────────────────────────────────────
    private function internationalPartnerships(): array
    {
        return [
            'title'            => 'International Partnerships',
            'slug'             => 'international-partnerships',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'International Partnerships — SSHIA',
                'meta_description' => 'SSHIA establishes partnerships with international and regional digital health bodies to amplify impact and connect South Sudan to global health informatics networks.',
                'keywords'         => ['SSHIA partnerships', 'international digital health', 'WHO health informatics', 'Africa digital health partnership'],
                'og_image'         => '/assets/img/og-partnerships.jpg',
                'canonical_url'    => '/pages/international-partnerships',
                'robots'           => 'index, follow',
                'schema_type'      => 'Organization',
            ],
            'theme_colors'     => ['primary' => '#059669', 'secondary' => '#047857'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'International Partnerships',
                    'subtitle'         => 'Connecting South Sudan to the global digital health community',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-emerald-700 via-emerald-800 to-green-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Partner With Us', 'url' => '/pages/support', 'style' => 'primary', 'icon' => 'handshake'],
                        ['label' => 'Our Programs', 'url' => '/pages/national-international-programs', 'style' => 'outline', 'icon' => 'globe'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Amplifying Impact Through Collaboration',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>No country can advance digital health in isolation. SSHIA actively builds and maintains partnerships with international and regional digital health bodies, bringing global expertise, resources, and networks to bear on South Sudan\'s health informatics challenges. These partnerships amplify our impact and ensure South Sudan is connected to the global digital health agenda.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Partnership Areas',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'WHO & UN Agencies', 'description' => 'Collaborating with the World Health Organization and UN agencies on digital health strategy, standards, and implementation support.', 'icon' => 'globe-africa', 'theme_color' => '#059669'],
                        ['title' => 'Africa CDC & AHAIC', 'description' => 'Engaging with the Africa Centres for Disease Control and the Africa Health Agenda International Conference to align with continental digital health priorities.', 'icon' => 'map-africa', 'theme_color' => '#0284c7'],
                        ['title' => 'Academic Institutions', 'description' => 'Partnering with universities and research institutions globally to advance health informatics research, education, and knowledge exchange.', 'icon' => 'university', 'theme_color' => '#7c3aed'],
                        ['title' => 'Technology Partners', 'description' => 'Working with leading health technology companies to bring innovative, affordable digital health solutions to South Sudan\'s health system.', 'icon' => 'laptop-code', 'theme_color' => '#d97706'],
                        ['title' => 'Donor Organisations', 'description' => 'Building relationships with bilateral and multilateral donors to mobilise funding for digital health programs and infrastructure.', 'icon' => 'donate', 'theme_color' => '#dc2626'],
                        ['title' => 'Regional Networks', 'description' => 'Participating in East African health informatics networks to share experiences, align approaches, and collaborate on cross-border health data challenges.', 'icon' => 'network-wired', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#059669',
                    'title'            => 'Become a Partner',
                    'content'          => 'We welcome partnerships with organisations that share our commitment to advancing digital health in South Sudan. Contact us to explore collaboration opportunities.',
                    'buttons'          => [
                        ['label' => 'Get in Touch', 'url' => '/pages/support', 'style' => 'primary', 'icon' => 'envelope'],
                        ['label' => 'Learn About Our Work', 'url' => '/pages/what-we-do', 'style' => 'outline', 'icon' => 'info-circle'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 7. Capacity Building
    // ─────────────────────────────────────────────────────────────────────────
    private function capacityBuilding(): array
    {
        return [
            'title'            => 'Capacity Building',
            'slug'             => 'capacity-building',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Capacity Building — SSHIA',
                'meta_description' => 'SSHIA implements capacity-building programs and certification courses to grow a skilled digital health workforce in South Sudan.',
                'keywords'         => ['digital health capacity building', 'SSHIA certification', 'health informatics training South Sudan', 'digital health workforce'],
                'og_image'         => '/assets/img/og-capacity-building.jpg',
                'canonical_url'    => '/pages/capacity-building',
                'robots'           => 'index, follow',
                'schema_type'      => 'EducationOrganization',
            ],
            'theme_colors'     => ['primary' => '#0284c7', 'secondary' => '#0369a1'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Capacity Building',
                    'subtitle'         => 'Growing a skilled, certified digital health workforce for South Sudan',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-sky-700 via-sky-800 to-blue-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Browse Training', 'url' => '/training', 'style' => 'primary', 'icon' => 'graduation-cap'],
                        ['label' => 'Apply for Mentorship', 'url' => '/mentorship', 'style' => 'outline', 'icon' => 'user-friends'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Investing in People',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>Sustainable digital health transformation depends on a skilled, motivated workforce. SSHIA\'s capacity-building programs are designed to equip health professionals, technologists, and managers with the knowledge and skills they need to implement, manage, and optimise digital health solutions. From foundational courses to advanced certifications, we invest in people at every stage of their career.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Our Capacity Building Programs',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'Certification Courses', 'description' => 'Structured certification programs in health informatics, digital health management, and health data analytics, recognised nationally and regionally.', 'icon' => 'certificate', 'theme_color' => '#0284c7'],
                        ['title' => 'Mentorship Program', 'description' => 'A structured mentorship program connecting emerging digital health professionals with experienced practitioners for guided career development.', 'icon' => 'user-friends', 'theme_color' => '#7c3aed'],
                        ['title' => 'Train-the-Trainer', 'description' => 'Building a cadre of qualified trainers who can deliver digital health education at facility, county, and state levels across South Sudan.', 'icon' => 'chalkboard-teacher', 'theme_color' => '#16a34a'],
                        ['title' => 'Online Learning', 'description' => 'Flexible online courses and webinars that allow health professionals to learn at their own pace, regardless of location.', 'icon' => 'laptop', 'theme_color' => '#d97706'],
                        ['title' => 'Academic Partnerships', 'description' => 'Collaborating with universities to integrate health informatics into undergraduate and postgraduate health curricula.', 'icon' => 'university', 'theme_color' => '#dc2626'],
                        ['title' => 'Continuing Education', 'description' => 'Regular CPD events, webinars, and short courses to keep practitioners current with evolving digital health technologies and practices.', 'icon' => 'book-reader', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#0284c7',
                    'title'            => 'Start Your Learning Journey',
                    'content'          => 'Explore SSHIA\'s training programmes and certification courses. SSHIA members receive priority access and discounted rates.',
                    'buttons'          => [
                        ['label' => 'Browse Training', 'url' => '/training', 'style' => 'primary', 'icon' => 'graduation-cap'],
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 8. Policy Advocacy
    // ─────────────────────────────────────────────────────────────────────────
    private function policyAdvocacy(): array
    {
        return [
            'title'            => 'Policy Advocacy',
            'slug'             => 'policy-advocacy',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Policy Advocacy — SSHIA',
                'meta_description' => 'SSHIA advocates for supportive digital health policies and sustainable funding at national and regional levels in South Sudan.',
                'keywords'         => ['digital health policy South Sudan', 'SSHIA advocacy', 'health informatics policy', 'digital health funding'],
                'og_image'         => '/assets/img/og-policy-advocacy.jpg',
                'canonical_url'    => '/pages/policy-advocacy',
                'robots'           => 'index, follow',
                'schema_type'      => 'GovernmentService',
            ],
            'theme_colors'     => ['primary' => '#ea580c', 'secondary' => '#c2410c'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Policy Advocacy',
                    'subtitle'         => 'Championing the policies and funding that make digital health transformation possible',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-orange-700 via-orange-800 to-red-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Our Positions', 'url' => '/research/publications', 'style' => 'primary', 'icon' => 'file-alt'],
                        ['label' => 'Guidelines & Standards', 'url' => '/pages/guidelines-standards', 'style' => 'outline', 'icon' => 'file-contract'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Shaping the Enabling Environment',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>Digital health transformation requires more than technology — it requires the right policies, regulations, and funding to create an enabling environment. SSHIA advocates at national and regional levels to ensure that digital health is prioritised in health plans, budgets, and legislation. We represent the voice of the digital health community in policy forums and government consultations.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Our Advocacy Priorities',
                    'columns' => 2,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'National Digital Health Policy', 'description' => 'Advocating for the development and implementation of a comprehensive national digital health policy that provides a clear framework for investment and action.', 'icon' => 'landmark', 'theme_color' => '#ea580c'],
                        ['title' => 'Sustainable Funding', 'description' => 'Engaging with government and donors to secure sustainable, long-term funding for digital health infrastructure, programs, and workforce development.', 'icon' => 'coins', 'theme_color' => '#16a34a'],
                        ['title' => 'Regulatory Reform', 'description' => 'Advocating for regulatory frameworks that protect patients, ensure quality, and create a level playing field for digital health solution providers.', 'icon' => 'balance-scale', 'theme_color' => '#7c3aed'],
                        ['title' => 'Data Privacy Legislation', 'description' => 'Pushing for robust data privacy and security legislation that protects patient information while enabling the beneficial use of health data.', 'icon' => 'user-shield', 'theme_color' => '#0284c7'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#ea580c',
                    'title'            => 'Add Your Voice',
                    'content'          => 'SSHIA members can participate in policy consultations, sign advocacy letters, and contribute to position papers. Join us to make your voice heard.',
                    'buttons'          => [
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'primary', 'icon' => 'user-plus'],
                        ['label' => 'Contact Us', 'url' => '/pages/support', 'style' => 'outline', 'icon' => 'envelope'],
                    ],
                ],
            ],
        ];
    }

    // ─────────────────────────────────────────────────────────────────────────
    // 9. Fundraising
    // ─────────────────────────────────────────────────────────────────────────
    private function fundraising(): array
    {
        return [
            'title'            => 'Fundraising',
            'slug'             => 'fundraising',
            'is_published'     => true,
            'published_at'     => now(),
            'layout'           => 'default',
            'show_breadcrumbs' => true,
            'show_sidebar'     => false,
            'seo_meta'         => [
                'meta_title'       => 'Fundraising — SSHIA',
                'meta_description' => 'SSHIA conducts fundraising activities to support proposed projects and strategic investments in digital health across South Sudan.',
                'keywords'         => ['SSHIA fundraising', 'digital health funding South Sudan', 'support SSHIA', 'health informatics investment'],
                'og_image'         => '/assets/img/og-fundraising.jpg',
                'canonical_url'    => '/pages/fundraising',
                'robots'           => 'index, follow',
                'schema_type'      => 'DonateAction',
            ],
            'theme_colors'     => ['primary' => '#16a34a', 'secondary' => '#15803d'],
            'content_blocks'   => [
                [
                    'type'             => 'hero',
                    'title'            => 'Fundraising',
                    'subtitle'         => 'Mobilising resources to sustain and scale digital health transformation in South Sudan',
                    'height'           => 'medium',
                    'text_alignment'   => 'center',
                    'background_color' => 'from-green-700 via-green-800 to-emerald-900',
                    'overlay'          => true,
                    'overlay_opacity'  => 0.45,
                    'buttons'          => [
                        ['label' => 'Support Our Work', 'url' => '/pages/support', 'style' => 'primary', 'icon' => 'hand-holding-heart'],
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
                [
                    'type'       => 'text',
                    'title'      => 'Investing in South Sudan\'s Digital Health Future',
                    'background' => 'white',
                    'text_align' => 'center',
                    'content'    => '<p>SSHIA\'s programs and initiatives require sustained investment to deliver lasting impact. We conduct fundraising activities to mobilise resources from members, donors, corporate partners, and international organisations. Every contribution — large or small — helps advance digital health in South Sudan and improves health outcomes for millions of people.</p>',
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'How Funds Are Used',
                    'columns' => 3,
                    'background' => 'gray',
                    'style'   => 'elevated',
                    'cards'   => [
                        ['title' => 'Training & Education', 'description' => 'Funding scholarships, training programs, and certification courses for digital health professionals who cannot afford fees.', 'icon' => 'graduation-cap', 'theme_color' => '#16a34a'],
                        ['title' => 'Research & Publications', 'description' => 'Supporting research projects, knowledge-sharing platforms, and the publication of guidelines and best practice documents.', 'icon' => 'flask', 'theme_color' => '#0284c7'],
                        ['title' => 'Infrastructure & Technology', 'description' => 'Investing in the digital infrastructure needed to support SSHIA\'s programs, including platforms, tools, and connectivity.', 'icon' => 'server', 'theme_color' => '#7c3aed'],
                        ['title' => 'Events & Conferences', 'description' => 'Organising and hosting national conferences, workshops, and seminars that bring the digital health community together.', 'icon' => 'calendar-alt', 'theme_color' => '#d97706'],
                        ['title' => 'Policy & Advocacy', 'description' => 'Funding advocacy campaigns, policy research, and engagement with government and international bodies.', 'icon' => 'bullhorn', 'theme_color' => '#dc2626'],
                        ['title' => 'Operational Sustainability', 'description' => 'Ensuring SSHIA has the operational capacity — staff, systems, and resources — to deliver on its mission long-term.', 'icon' => 'cogs', 'theme_color' => '#0f766e'],
                    ],
                ],
                [
                    'type'    => 'card_section',
                    'title'   => 'Ways to Support SSHIA',
                    'columns' => 2,
                    'background' => 'white',
                    'style'   => 'bordered',
                    'cards'   => [
                        ['title' => 'Individual Membership', 'description' => 'Join SSHIA as an individual member. Your membership fees directly fund our programs and activities.', 'icon' => 'user', 'theme_color' => '#16a34a'],
                        ['title' => 'Corporate Sponsorship', 'description' => 'Partner with SSHIA as a corporate sponsor. We offer tailored sponsorship packages for organisations that want to support digital health in South Sudan.', 'icon' => 'building', 'theme_color' => '#0284c7'],
                        ['title' => 'Project Grants', 'description' => 'Fund a specific SSHIA project or initiative. We work with donors to design targeted grants that deliver measurable impact.', 'icon' => 'donate', 'theme_color' => '#7c3aed'],
                        ['title' => 'In-Kind Support', 'description' => 'Contribute expertise, technology, or other resources to support SSHIA\'s work. We welcome in-kind contributions from organisations of all sizes.', 'icon' => 'gift', 'theme_color' => '#d97706'],
                    ],
                ],
                [
                    'type'             => 'cta',
                    'style'            => 'centered',
                    'background_type'  => 'gradient',
                    'background_color' => '#16a34a',
                    'title'            => 'Make a Difference Today',
                    'content'          => 'Your support helps SSHIA deliver programs that transform digital health in South Sudan. Contact us to discuss how you can contribute.',
                    'buttons'          => [
                        ['label' => 'Contact Us', 'url' => '/pages/support', 'style' => 'primary', 'icon' => 'envelope'],
                        ['label' => 'Become a Member', 'url' => '/membership/apply', 'style' => 'outline', 'icon' => 'user-plus'],
                    ],
                ],
            ],
        ];
    }
}
