<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * KBMembershipQuestionsSeeder
 *
 * Seeds 20 Q&A items for the Membership knowledge base category.
 * All content relates to SSHIA membership in South Sudan context.
 */
class KBMembershipQuestionsSeeder extends Seeder
{
    use KBQuestionSeederHelper;

    public function run(): void
    {
        $this->seedQuestions('membership', $this->questions());
    }

    private function questions(): array
    {
        return [
            [
                'title'      => 'How do I apply for SSHIA membership?',
                'content'    => '<p>Applying for SSHIA (South Sudan Health Informatics Association) membership is a straightforward process. You can apply online through the SSHIA member portal or submit a physical application at the SSHIA secretariat in Juba. The application requires proof of your health informatics qualifications, a valid national ID or passport, two passport-sized photographs, and payment of the applicable membership fee. Applications are reviewed by the Membership Committee within 14 working days.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['membership', 'application', 'SSHIA', 'registration'],
                'is_featured' => true,
                'answers'    => [
                    '<p>To apply for SSHIA membership, follow these steps:</p><ol><li><strong>Visit the SSHIA portal</strong> at sshia.org and click "Become a Member".</li><li><strong>Select your membership category</strong> — Student, Associate, Full, Fellow, Corporate, Institutional, or Honorary.</li><li><strong>Complete the online form</strong> with your personal details, qualifications, and professional experience.</li><li><strong>Upload required documents</strong>: academic certificates, national ID/passport, and a professional CV.</li><li><strong>Pay the membership fee</strong> via mobile money (MTN/Airtel), bank transfer, or at the SSHIA office.</li><li><strong>Await approval</strong> — the Membership Committee reviews applications within 14 working days and notifies you by email and SMS.</li></ol><p>Once approved, you receive a membership certificate and access to the member portal.</p>',
                    '<p>You can also apply in person at the SSHIA Secretariat located in Juba, South Sudan. Bring originals and photocopies of your academic certificates, a valid national ID, two passport photos, and the completed application form (available at the office). The processing fee must be paid at the time of submission.</p>',
                ],
            ],
            [
                'title'      => 'What are the different SSHIA membership categories?',
                'content'    => '<p>SSHIA offers several membership categories designed to accommodate health informatics professionals at different career stages, as well as organisations and institutions. Understanding which category applies to you ensures you pay the correct fee and receive the appropriate benefits.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['membership categories', 'student', 'associate', 'fellow', 'corporate'],
                'is_featured' => true,
                'answers'    => [
                    '<p>SSHIA has seven official membership categories:</p><ul><li><strong>Student Member</strong> — For students enrolled in health informatics or related programmes at accredited institutions. Reduced fee applies.</li><li><strong>Associate Member</strong> — For professionals with less than two years of experience in health informatics or related fields.</li><li><strong>Full Member</strong> — For qualified health informatics professionals with at least two years of relevant experience.</li><li><strong>Fellow</strong> — For distinguished professionals with significant contributions to health informatics in South Sudan or globally. Nomination required.</li><li><strong>Corporate Member</strong> — For private companies and organisations operating in the health informatics sector.</li><li><strong>Institutional Member</strong> — For government ministries, hospitals, NGOs, and academic institutions.</li><li><strong>Honorary Member</strong> — Awarded by the SSHIA Board to individuals who have made exceptional contributions to health informatics.</li></ul>',
                    '<p>If you are unsure which category applies to you, contact the SSHIA Membership Desk at membership@sshia.org or call the Juba secretariat. The team will assess your qualifications and experience and recommend the most appropriate category.</p>',
                ],
            ],
            [
                'title'      => 'What are the annual membership fees for each category?',
                'content'    => '<p>SSHIA membership fees are reviewed annually by the Board of Directors. Fees are structured to be affordable for South Sudanese health professionals while ensuring the association can sustain its programmes and services.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['fees', 'membership fee', 'annual subscription', 'payment'],
                'answers'    => [
                    '<p>The current annual membership fees are as follows (all amounts in South Sudanese Pounds unless stated otherwise):</p><ul><li><strong>Student Member</strong>: SSP 5,000 per year</li><li><strong>Associate Member</strong>: SSP 15,000 per year</li><li><strong>Full Member</strong>: SSP 25,000 per year</li><li><strong>Fellow</strong>: SSP 30,000 per year</li><li><strong>Corporate Member</strong>: SSP 150,000 per year</li><li><strong>Institutional Member</strong>: SSP 200,000 per year</li><li><strong>Honorary Member</strong>: No fee (honorary status)</li></ul><p>Fees can be paid annually or in quarterly instalments. Contact the SSHIA finance office for USD equivalent rates for international members.</p>',
                    '<p>SSHIA also offers a monthly contribution scheme for members who prefer to spread payments. Log in to the member portal and navigate to "Payments" to set up a standing order or recurring mobile money payment.</p>',
                ],
            ],
            [
                'title'      => 'How do I renew my SSHIA membership?',
                'content'    => '<p>SSHIA membership runs on an annual cycle from the date of approval. Members receive renewal reminders 60 days, 30 days, and 7 days before expiry via email and SMS. Timely renewal ensures uninterrupted access to member benefits.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['renewal', 'membership renewal', 'expiry', 'subscription'],
                'answers'    => [
                    '<p>To renew your SSHIA membership:</p><ol><li>Log in to the <strong>SSHIA Member Portal</strong> at sshia.org.</li><li>Navigate to <strong>My Membership &gt; Renew Membership</strong>.</li><li>Confirm your personal details are up to date.</li><li>Select your payment method (mobile money, bank transfer, or cash at the office).</li><li>Complete payment and download your renewed membership certificate.</li></ol><p>Renewal can also be done at the SSHIA Secretariat in Juba. Bring your previous membership card and payment. Renewals processed within 30 days of expiry attract no penalty. Late renewals (after expiry) may require re-application.</p>',
                    '<p>If your membership has lapsed for more than 12 months, you will need to submit a fresh application rather than a renewal. The Membership Committee will review your application and may waive the re-application fee depending on the circumstances of the lapse.</p>',
                ],
            ],
            [
                'title'      => 'What benefits do SSHIA members receive?',
                'content'    => '<p>SSHIA membership provides access to a wide range of professional development resources, networking opportunities, and advocacy support. Benefits vary by membership category.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['benefits', 'member benefits', 'privileges', 'networking'],
                'is_featured' => true,
                'answers'    => [
                    '<p>SSHIA members enjoy the following benefits:</p><ul><li><strong>Professional Development</strong>: Access to SSHIA training programmes, workshops, and webinars at discounted or no cost.</li><li><strong>Mentorship</strong>: Eligibility to participate in the SSHIA Mentorship Programme as a mentor or mentee.</li><li><strong>Networking</strong>: Access to the SSHIA member directory and community discussion boards.</li><li><strong>Knowledge Base</strong>: Full access to the SSHIA Knowledge Base, research publications, and resource library.</li><li><strong>Advocacy</strong>: Representation in national health informatics policy discussions and government engagements.</li><li><strong>Certification</strong>: SSHIA-endorsed certificates for completed training and mentorship programmes.</li><li><strong>Employment Support</strong>: Access to the SSHIA job board and career advisory services.</li><li><strong>Voting Rights</strong>: Full Members and Fellows can vote in SSHIA elections and stand for leadership positions.</li></ul>',
                    '<p>Corporate and Institutional members additionally receive co-branding opportunities, priority access to SSHIA research data, and the ability to post job vacancies on the SSHIA platform at no additional cost.</p>',
                ],
            ],
            [
                'title'      => 'Can I upgrade my SSHIA membership category?',
                'content'    => '<p>Yes, SSHIA members can upgrade their membership category as their qualifications and experience grow. Upgrades are subject to meeting the eligibility criteria for the target category.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['upgrade', 'membership upgrade', 'category change', 'promotion'],
                'answers'    => [
                    '<p>To upgrade your membership category, log in to the SSHIA portal and navigate to <strong>My Membership &gt; Upgrade Category</strong>. You will be prompted to upload supporting documents (e.g., updated CV, additional certificates, or employer letter) and pay any difference in the annual fee. The Membership Committee reviews upgrade requests within 10 working days. Common upgrades include Student to Associate, Associate to Full Member, and Full Member to Fellow (which requires a formal nomination).</p>',
                    '<p>For the Fellow category specifically, you cannot self-nominate. A current Fellow or the SSHIA Board must nominate you. The nomination must be supported by evidence of significant contributions to health informatics in South Sudan, such as published research, policy contributions, or leadership in major health informatics projects.</p>',
                ],
            ],
            [
                'title'      => 'How do I access the SSHIA member portal?',
                'content'    => '<p>The SSHIA member portal is the central hub for managing your membership, accessing resources, registering for training, and engaging with the community. It is accessible via any web browser on desktop or mobile.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['portal', 'login', 'member portal', 'account access'],
                'answers'    => [
                    '<p>To access the SSHIA member portal:</p><ol><li>Go to <strong>sshia.org</strong> and click <strong>Member Login</strong> in the top navigation.</li><li>Enter your registered email address and password.</li><li>If you have two-factor authentication (2FA) enabled, enter the OTP sent to your phone.</li><li>You will be directed to your personalised dashboard.</li></ol><p>If you have forgotten your password, click <strong>Forgot Password</strong> on the login page and follow the reset instructions sent to your email. If you have not yet registered on the portal, click <strong>Register</strong> and use the email address you provided during your membership application.</p>',
                    '<p>The portal is optimised for mobile browsers, so you can access it on your smartphone without needing to install an app. For the best experience, use Chrome, Firefox, or Edge on a stable internet connection.</p>',
                ],
            ],
            [
                'title'      => 'What documents are required for SSHIA membership application?',
                'content'    => '<p>SSHIA requires specific documents to verify your identity, qualifications, and professional standing. Having these ready before starting your application will speed up the process.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['documents', 'requirements', 'application documents', 'certificates'],
                'answers'    => [
                    '<p>The following documents are required for all membership categories:</p><ul><li><strong>Valid national ID or passport</strong> (scanned copy)</li><li><strong>Passport-sized photograph</strong> (recent, clear background)</li><li><strong>Academic certificates</strong> relevant to health informatics or a related field</li><li><strong>Professional CV</strong> (for Associate, Full Member, and Fellow categories)</li><li><strong>Employer letter or proof of employment</strong> (for Full Member and Fellow)</li><li><strong>Completed application form</strong> (available on the portal or at the secretariat)</li></ul><p>Corporate and Institutional members must additionally provide a certificate of incorporation or registration, and a letter of authorisation from the organisation\'s leadership.</p>',
                    '<p>All documents should be in PDF or JPEG format and not exceed 2MB per file when uploading online. If submitting physically, bring both originals and clear photocopies. Documents in languages other than English must be accompanied by a certified translation.</p>',
                ],
            ],
            [
                'title'      => 'How long does SSHIA membership approval take?',
                'content'    => '<p>The SSHIA Membership Committee meets regularly to review applications. Processing times depend on the completeness of your application and the volume of applications being processed.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['approval', 'processing time', 'application status', 'waiting period'],
                'answers'    => [
                    '<p>Standard membership applications are processed within <strong>14 working days</strong> of receiving a complete application with all required documents and payment. You will receive an email and SMS notification once your application is approved or if additional information is required. You can also check your application status by logging into the portal and navigating to <strong>My Membership &gt; Application Status</strong>.</p>',
                    '<p>Applications submitted with incomplete documents or unpaid fees are placed on hold and will not be processed until all requirements are met. The 14-day processing clock starts from the date all requirements are fulfilled, not the date of initial submission.</p>',
                ],
            ],
            [
                'title'      => 'Can international health professionals join SSHIA?',
                'content'    => '<p>SSHIA welcomes health informatics professionals from outside South Sudan who have a professional interest in or connection to health informatics in South Sudan or the East African region.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['international', 'diaspora', 'foreign members', 'global membership'],
                'answers'    => [
                    '<p>Yes, international health informatics professionals can join SSHIA as Associate or Full Members. The application process is the same as for local members, but documents must be submitted online. Fees for international members are quoted in USD. International members enjoy all the same benefits as local members, including access to the knowledge base, training programmes (online), and the community forum. They can also participate in SSHIA research collaborations and advocacy initiatives.</p>',
                    '<p>South Sudanese health professionals living in the diaspora are particularly encouraged to join SSHIA. The association has a dedicated Diaspora Engagement Programme that connects diaspora members with opportunities to contribute to health informatics development in South Sudan, including remote mentorship, research collaboration, and policy advisory roles.</p>',
                ],
            ],
            [
                'title'      => 'What happens if I do not pay my membership fee on time?',
                'content'    => '<p>Timely payment of membership fees is important for maintaining your active membership status and uninterrupted access to SSHIA services and benefits.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['late payment', 'membership lapse', 'suspension', 'fee arrears'],
                'answers'    => [
                    '<p>If your membership fee is not paid by the renewal deadline, your membership status changes to <strong>Grace Period</strong> for 30 days. During this period, you retain read-only access to the portal but cannot register for training, access premium resources, or vote in elections. After the 30-day grace period, your membership is <strong>suspended</strong> and portal access is fully restricted. To reinstate a suspended membership, you must pay all outstanding fees plus a reinstatement fee. Memberships suspended for more than 12 months require a fresh application.</p>',
                    '<p>SSHIA sends automated reminders at 60 days, 30 days, 14 days, and 7 days before your renewal date. If you are experiencing financial hardship, contact the SSHIA Membership Desk before your renewal date to discuss a payment plan or fee waiver. SSHIA has a hardship fund for members in genuine financial difficulty.</p>',
                ],
            ],
            [
                'title'      => 'How do I update my personal details on the SSHIA member portal?',
                'content'    => '<p>Keeping your contact details and professional information up to date ensures you receive important communications from SSHIA and that your member profile accurately reflects your current role and qualifications.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['profile update', 'personal details', 'contact information', 'account settings'],
                'answers'    => [
                    '<p>To update your personal details, log in to the SSHIA portal and navigate to <strong>My Profile &gt; Edit Profile</strong>. You can update your name, phone number, email address, physical address, employer, job title, and professional qualifications. Changes to your name or membership category require supporting documents and approval from the Membership Committee. All other changes take effect immediately upon saving.</p>',
                    '<p>If you change your email address, you will receive a verification link at the new address. Your old email will continue to work until the new one is verified. If you lose access to your registered email, contact the SSHIA support team at support@sshia.org with proof of identity to update your email manually.</p>',
                ],
            ],
            [
                'title'      => 'Does SSHIA offer membership fee waivers or scholarships?',
                'content'    => '<p>SSHIA is committed to making membership accessible to all health informatics professionals in South Sudan, including those facing financial constraints.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['fee waiver', 'scholarship', 'financial assistance', 'hardship fund'],
                'answers'    => [
                    '<p>Yes, SSHIA offers a limited number of fee waivers and scholarships each year, primarily for:</p><ul><li><strong>Students</strong> from low-income backgrounds enrolled in accredited health informatics programmes</li><li><strong>Health workers</strong> in remote or underserved areas of South Sudan</li><li><strong>Members</strong> experiencing documented financial hardship</li></ul><p>To apply for a fee waiver, submit a written request to the SSHIA Membership Desk explaining your circumstances, along with supporting documentation (e.g., student enrolment letter, employer letter, or financial hardship declaration). Applications are reviewed by the Membership Committee on a case-by-case basis.</p>',
                    '<p>SSHIA also partners with international organisations such as WHO, UNICEF, and health informatics associations in the region to provide sponsored memberships for qualifying professionals. Watch the SSHIA website and social media channels for announcements about sponsored membership opportunities.</p>',
                ],
            ],
            [
                'title'      => 'How do I verify my SSHIA membership certificate?',
                'content'    => '<p>SSHIA membership certificates include a unique verification code that allows employers, institutions, and other parties to confirm the authenticity of a certificate online.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['certificate verification', 'membership certificate', 'authenticity', 'verification code'],
                'answers'    => [
                    '<p>To verify an SSHIA membership certificate, visit <strong>sshia.org/verify</strong> and enter the unique certificate number printed on the certificate. The system will display the member\'s name, membership category, and validity period. This service is available to the public and does not require a login. Employers and institutions are encouraged to verify certificates before accepting them as proof of SSHIA membership.</p>',
                    '<p>If a certificate cannot be verified through the online portal, it may be because the certificate was issued before the online verification system was introduced, or because the membership has since lapsed. In such cases, contact the SSHIA Membership Desk at membership@sshia.org with the certificate details for manual verification.</p>',
                ],
            ],
            [
                'title'      => 'Can an organisation hold SSHIA membership on behalf of its staff?',
                'content'    => '<p>Organisations that employ health informatics professionals can take out Institutional or Corporate membership, which provides benefits for the organisation and its designated staff members.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['institutional membership', 'corporate membership', 'organisational membership', 'staff benefits'],
                'answers'    => [
                    '<p>Yes. Under an Institutional or Corporate membership, the organisation nominates up to five designated staff members who receive individual member benefits (portal access, training discounts, knowledge base access). The organisation itself also receives co-branding rights, priority access to SSHIA research, and the ability to post job vacancies. Additional staff can be added to the membership for a per-person fee. Contact the SSHIA Membership Desk for a corporate membership package tailored to your organisation\'s size and needs.</p>',
                    '<p>Government ministries, county health departments, hospitals, and NGOs operating in South Sudan\'s health sector are eligible for Institutional membership. This is particularly beneficial for organisations that want to build the health informatics capacity of their workforce through SSHIA training and mentorship programmes.</p>',
                ],
            ],
            [
                'title'      => 'What is the SSHIA membership number and how is it used?',
                'content'    => '<p>Every approved SSHIA member is assigned a unique membership number that serves as their permanent identifier within the SSHIA system.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['membership number', 'member ID', 'identifier', 'registration number'],
                'answers'    => [
                    '<p>Your SSHIA membership number is a unique alphanumeric code assigned upon approval of your membership application. It appears on your membership certificate, member card, and in your portal profile. You will need your membership number when registering for SSHIA training programmes, applying for mentorship, submitting research for publication, and when citing your SSHIA membership in professional documents. Your membership number remains the same for life, even if you upgrade your membership category.</p>',
                    '<p>If you have lost your membership number, log in to the SSHIA portal — it is displayed prominently on your dashboard. Alternatively, contact the SSHIA Membership Desk with your registered email address and national ID number to retrieve it.</p>',
                ],
            ],
            [
                'title'      => 'How does SSHIA protect member data and privacy?',
                'content'    => '<p>SSHIA takes the privacy and security of member data seriously. The association complies with applicable data protection laws and follows international best practices for data security.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['data privacy', 'data protection', 'GDPR', 'member data', 'security'],
                'answers'    => [
                    '<p>SSHIA collects and processes member data solely for the purposes of membership management, service delivery, and communication. Member data is stored on secure servers and is not shared with third parties without explicit consent, except where required by law. Members can request a copy of their personal data, request corrections, or request deletion of their data by contacting the SSHIA Data Protection Officer at dpo@sshia.org. The SSHIA Privacy Policy is available on the website and is updated whenever there are material changes to data handling practices.</p>',
                    '<p>The SSHIA member directory is only accessible to logged-in members and displays only the information each member has chosen to make visible in their profile settings. You can control what information is visible to other members by navigating to <strong>My Profile &gt; Privacy Settings</strong> in the portal.</p>',
                ],
            ],
            [
                'title'      => 'Can I transfer my SSHIA membership to another person?',
                'content'    => '<p>SSHIA membership is personal and non-transferable. It is tied to the individual\'s identity, qualifications, and professional standing.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['transfer', 'non-transferable', 'membership transfer'],
                'answers'    => [
                    '<p>No, SSHIA membership cannot be transferred to another person. Each individual must apply for their own membership. This policy ensures that membership benefits, certificates, and professional recognition are accurately attributed to the qualifying individual. If you are aware of someone using your membership credentials, report it immediately to the SSHIA Membership Desk so that appropriate action can be taken.</p>',
                    '<p>For Corporate and Institutional memberships, the designated staff members can be changed by the organisation\'s authorised representative. To change a designated staff member, submit a written request to the SSHIA Membership Desk with the details of the outgoing and incoming staff member. The change takes effect within 5 working days.</p>',
                ],
            ],
            [
                'title'      => 'What is the SSHIA Code of Conduct for members?',
                'content'    => '<p>All SSHIA members are bound by the SSHIA Code of Conduct, which sets out the professional and ethical standards expected of health informatics professionals in South Sudan.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['code of conduct', 'ethics', 'professional standards', 'member obligations'],
                'answers'    => [
                    '<p>The SSHIA Code of Conduct requires members to:</p><ul><li>Uphold the highest standards of professional integrity and honesty in all health informatics work</li><li>Respect patient confidentiality and data privacy at all times</li><li>Avoid conflicts of interest and disclose any potential conflicts to relevant parties</li><li>Treat colleagues, clients, and the public with respect and dignity</li><li>Contribute positively to the advancement of health informatics in South Sudan</li><li>Comply with all applicable laws and regulations governing health information management</li><li>Report unethical conduct by other members to the SSHIA Ethics Committee</li></ul><p>Violations of the Code of Conduct can result in suspension or termination of membership following an investigation by the Ethics Committee.</p>',
                    '<p>The full SSHIA Code of Conduct document is available in the member portal under <strong>Resources &gt; Governance Documents</strong>. New members are required to read and acknowledge the Code of Conduct as part of the membership application process.</p>',
                ],
            ],
            [
                'title'      => 'How do I cancel my SSHIA membership?',
                'content'    => '<p>Members who wish to discontinue their SSHIA membership can do so by submitting a formal cancellation request. Membership fees already paid are generally non-refundable.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['cancellation', 'membership cancellation', 'resignation', 'withdrawal'],
                'answers'    => [
                    '<p>To cancel your SSHIA membership, log in to the portal and navigate to <strong>My Membership &gt; Cancel Membership</strong>, or send a written cancellation request to membership@sshia.org. Your membership will remain active until the end of the current membership year. Membership fees already paid are non-refundable. Upon cancellation, your portal access will be deactivated at the end of the membership period and your member certificate will be invalidated. You are welcome to re-apply for membership in the future.</p>',
                    '<p>If you are cancelling due to a change in career or relocation, consider placing your membership on hold rather than cancelling. SSHIA offers a membership pause option for up to 12 months for members who are temporarily unable to engage with the association. Contact the Membership Desk to discuss this option.</p>',
                ],
            ],
        ];
    }
}
