/* Public Health Plus static browser bundle */ const { Activity, AlertCircle, AlertTriangle, Apple, ArrowLeft, ArrowRight, Award, BookOpen, Briefcase, Calendar, Check, CheckCircle, CheckCircle2, Clock, Copy, Download, Droplet, Edit3, ExternalLink, Eye, EyeOff, Facebook, FileCheck2, FileText, Film, Filter, Globe, GraduationCap, HeartHandshake, HeartPulse, ImageIcon, Info, Linkedin, Lock, LogOut, Mail, MapPin, Menu, MessageSquare, Microscope, Newspaper, Phone, Play, Plus, Save, Search, Settings, Share2, Shield, ShieldAlert, ShieldCheck, Sparkles, Stethoscope, Target, Trash2, Twitter, Unlock, User, UserCheck, Users, X, Youtube } = (window.LucideReact || window.lucideReact || {}); const { StrictMode, useState, useEffect, useMemo, useContext, createContext, useCallback, Fragment } = React; // ===== src/data/initialData.ts ===== const initialDiseases: Disease[] = [ // Communicable Diseases { id: 'dengue', name: 'Dengue Fever', nameUrdu: 'ڈینگی بخار', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A mosquito-borne viral infection causing severe flu-like illness and potentially lethal complications.', shortSummaryUrdu: 'مچھر کے کاٹنے سے پھیلنے والی وائرل بیماری جو شدید بخار، ہڈیوں کے درد اور ممکنہ پیچیدگیوں کا سبب بنتی ہے۔', overview: 'Dengue is a viral infection transmitted to humans through the bites of infected female Aedes mosquitoes (principally Aedes aegypti). It occurs in tropical and sub-tropical climates worldwide, mostly in urban and semi-urban areas. Severe dengue (dengue hemorrhagic fever) is a leading cause of serious illness and death in some countries.', overviewUrdu: 'ڈینگی ایک وائرل انفیکشن ہے جو مادہ ایڈیز مچھر کے کاٹنے سے انسانوں میں پھیلتا ہے۔ یہ بیماری بنیادی طور پر مرطوب اور نیم گرم علاقوں میں تیزی سے پھیلتی ہے۔ اس کی شدت کی صورت میں پلیٹلیٹس کم ہو سکتے ہیں اور شدید خطرہ لاحق ہو سکتا ہے۔', symptoms: [ 'High fever (40°C / 104°F) appearing abruptly', 'Severe headache and retro-orbital (behind the eyes) pain', 'Severe muscle and joint pains (often called "breakbone fever")', 'Nausea, vomiting, and loss of appetite', 'Skin rash appearing 2 to 5 days after the onset of fever', 'Warning signs of severe dengue: persistent abdominal pain, bleeding gums/nose, mucosal bleeding, severe lethargy' ], symptomsUrdu: [ 'اچانک تیز بخار (104 فارن ہائیٹ تک)', 'آنکھوں کے پیچھے شدید درد اور سر درد', 'ہڈیوں اور پٹھوں میں شدید درد (ہڈی توڑ بخار)', 'متلی، الٹیاں اور بھوک نہ لگنا', 'جلد پر سرخ دھبے یا خارش', 'خطرے کی علامات: پیٹ میں شدید درد، مسوڑھوں یا ناک سے خون بہنا، شدید نقاہت' ], riskFactors: [ 'Living in or traveling to tropical and subtropical urban environments', 'Presence of stagnant clean water in household containers, pots, or tires where Aedes mosquitoes breed', 'Previous infection with a different dengue virus serotype increases risk of severe dengue', 'Lack of mosquito screening, nets, or repellents' ], riskFactorsUrdu: [ 'مرطوب، گرم اور شہری کچی آبادیوں میں رہائش یا سفر', 'گھروں میں، گملوں یا ٹائروں میں صاف پانی کا کھڑا رہنا جہاں ایڈیز مچھر انڈے دیتا ہے', 'پہلے سے ڈینگی کے کسی دوسرے وائرس سے متاثر ہونا', 'مچھر دانی یا اسپرے کے بغیر رہنا' ], prevention: [ 'Eliminate mosquito breeding sites by emptying and covering water storage containers weekly', 'Dispose of solid waste properly and remove artificial man-made habitats that hold water', 'Apply mosquito repellents containing DEET, Picaridin, or IR3535 to exposed skin', 'Wear long-sleeved light-colored clothing covering arms and legs', 'Use window screens and insecticide-treated bed nets during daytime' ], preventionUrdu: [ 'گھروں میں اور اردگرد پانی کے برتن، کولر اور گملے ہر ہفتے خالی اور صاف کریں', 'ایسی تمام اشیاء ضائع کریں جن میں بارش یا صاف پانی کھڑا ہو سکتا ہے', 'مچھر بھگانے والے لوشن (DEET یا Picaridin) کا کھلی جلد پر استعمال', 'پوری آستین والے اور ہلکے رنگ کے کپڑے پہننا', 'کھڑکیوں اور دروازوں پر جالیوں کا استعمال' ], testing: 'Dengue NS1 Antigen test (accurate within the first 5 days of illness), Dengue IgM/IgG antibodies (after day 5), and Complete Blood Count (CBC) to monitor platelet count and hematocrit levels.', testingUrdu: 'پہلے 5 دنوں میں این ایس 1 (NS1) اینٹی جن ٹیسٹ، پانچویں دن کے بعد آئی جی ایم (IgM) اینٹی باڈی ٹیسٹ، اور پلیٹلیٹس اور خون کے گاڑھے پن کی جانچ کے لیے سی بی سی (CBC) ٹیسٹ۔', treatment: 'There is no specific antiviral medicine for dengue. Supportive therapy is crucial: maintaining oral hydration (ORS, clean water, soups), fever control using Paracetamol (AVOID Aspirin and Ibuprofen as they exacerbate bleeding risk), and immediate hospitalization if warning signs appear.', treatmentUrdu: 'ڈینگی کا کوئی خاص اینٹی وائرل علاج موجود نہیں ہے۔ بروقت دیکھ بھال اور پانی کی کمی نہ ہونے دینا (او آر ایس، پانی، سوپ) سب سے اہم ہے۔ بخار کے لیے صرف پیراسیٹامول استعمال کریں (ڈسپرین، بروفین ہرگز نہ لیں کیونکہ یہ خون بہنے کا خطرہ بڑھاتی ہیں)۔', resources: [ { title: 'WHO Dengue and Severe Dengue Fact Sheet', link: 'https://www.who.int/news-room/fact-sheets/detail/dengue-and-severe-dengue', type: 'Clinical Guidelines' }, { title: 'CDC Dengue Clinical Guidance for Healthcare Providers', link: 'https://www.cdc.gov/dengue/healthcare-providers/index.html', type: 'Provider Protocol' } ], references: [ { title: 'Global Strategy for Dengue Prevention and Control', source: 'World Health Organization', year: '2021-2030' }, { title: 'Clinical Management of Dengue in Primary and Secondary Care', source: 'Ministry of National Health Services', year: '2024' } ], isFeatured: true, published: true, updatedAt: '2026-06-15' }, { id: 'malaria', name: 'Malaria', nameUrdu: 'ملیریا', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A life-threatening disease caused by Plasmodium parasites transmitted through bites of infected female Anopheles mosquitoes.', shortSummaryUrdu: 'پلازموڈیم طفیلیوں کی وجہ سے ہونے والی بیماری جو اینوفیلیز مچھر کے کاٹنے سے منتقل ہوتی ہے اور بروقت علاج نہ ہونے پر جان لیوا ہو سکتی ہے۔', overview: 'Malaria is caused by Plasmodium parasites (primarily P. falciparum and P. vivax) transmitted to people through bites of infected female Anopheles mosquitoes. It is preventable and curable, yet remains a leading cause of morbidity in endemic regions.', overviewUrdu: 'ملیریا مادہ اینوفیلیز مچھر کے ذریعے پلازموڈیم کے طفیلیوں سے پھیلتا ہے۔ یہ ایک قابلِ علاج اور قابلِ بچاؤ بیماری ہے، لیکن لاپرواہی کی صورت میں شدید پیچیدگیاں پیدا کر سکتی ہے۔', symptoms: [ 'Periodic high fevers with severe chills and shivering', 'Profuse sweating as fever breaks', 'Headache, generalized body aches, and fatigue', 'Nausea, vomiting, and diarrhea in children', 'Severe complications: cerebral malaria, severe anemia, and organ failure' ], symptomsUrdu: [ 'کپکپی اور سردی کے ساتھ رک رک کر آنے والا تیز بخار', 'بخار اترنے پر شدید پسینہ آنا', 'سر درد، شدید جسمانی درد اور تھکن', 'بچوں میں قے، متلی اور اسہال', 'شدید ملیریا کی صورت میں بے ہوشی اور خون کی شدید کمی' ], riskFactors: [ 'Residence in or travel to malaria-endemic regions', 'Pregnant women, infants, and children under 5 are at highest risk of severe malaria', 'Proximity to standing agricultural or dirty water collections where Anopheles breed' ], riskFactorsUrdu: [ 'ملیریا سے متاثرہ علاقوں میں رہائش یا سفر', 'حاملہ خواتین اور 5 سال سے کم عمر بچے زیادہ خطرے میں ہیں', 'کھڑے گندے یا زرعی پانی کے تالابوں کے قریب رہائش' ], prevention: [ 'Sleeping under long-lasting insecticide-treated mosquito nets (LLINs)', 'Indoor residual spraying (IRS) with insecticides', 'Preventive antimalarial chemoprophylaxis for high-risk travelers and pregnant women', 'Draining stagnant water puddles near residential dwellings' ], preventionUrdu: [ 'کیڑے مار دوا سے لیس مچھر دانیوں کا مستقل استعمال', 'گھروں میں انسدادِ مچھر اسپرے کروانا', 'حاملہ خواتین اور مسافروں کے لیے حفاظتی ادویات', 'رہائشی آبادی کے قریب کھڑے پانی کی نکاسی' ], testing: 'Rapid Diagnostic Tests (RDTs) for malaria antigens, and Giemsa-stained microscopic blood film examination (thick and thin smears).', testingUrdu: 'ریپڈ ڈائیگنوسٹک ٹیسٹ (RDT) اور مائیکروسکوپ کے ذریعے خون کا تفصیلی معائنہ (تھک اور تھن بلڈ فلم)۔', treatment: 'Artemisinin-based combination therapies (ACTs) are the gold standard for uncomplicated P. falciparum malaria. Chloroquine or Primaquine are used for P. vivax under medical supervision.', treatmentUrdu: 'ڈاکٹر کے مشورے سے آرٹیمیسینین پر مبنی ادویات (ACT) اور وائی ویکس کے لیے کلوروکوئین اور پرائماکوئین کا مکمل کورس۔', resources: [ { title: 'WHO World Malaria Report & Guidelines', link: 'https://www.who.int/teams/global-malaria-programme', type: 'Public Report' } ], references: [ { title: 'Guidelines for the Treatment of Malaria (3rd edition)', source: 'World Health Organization', year: '2023' } ], published: true, updatedAt: '2026-05-10' }, { id: 'tuberculosis', name: 'Tuberculosis (TB)', nameUrdu: 'تپِ دق (ٹی بی)', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A bacterial infection spread through airborne droplets that primarily affects the lungs but can damage other organs.', shortSummaryUrdu: 'ایک بیکٹیریل انفیکشن جو ہوا کے ذریعے کھانسی اور چھینکوں سے پھیلتا ہے اور بنیادی طور پر پھیپھڑوں کو متاثر کرتا ہے۔', overview: 'Tuberculosis is caused by the bacterium Mycobacterium tuberculosis. When people with active pulmonary TB cough, sneeze, or spit, they propel TB germs into the air. TB is curable with a standard 6-month regimen of antimicrobial drugs.', overviewUrdu: 'ٹی بی مائیکوبیکٹیریم ٹیوبرکلوسس نامی جراثیم سے ہوتی ہے۔ جب مریض کھانستا یا چھینکتا ہے تو یہ ہوا میں پھیلتی ہے۔ باقاعدہ 6 ماہ کے مکمل علاج سے یہ 100 فیصد قابلِ علاج ہے۔', symptoms: [ 'Persistent cough lasting 2 to 3 weeks or longer', 'Coughing up blood or rust-colored sputum (hemoptysis)', 'Chest pain and breathlessness', 'Unexplained weight loss and loss of appetite', 'Night sweats and low-grade evening fevers', 'Persistent fatigue and generalized weakness' ], symptomsUrdu: [ '2 سے 3 ہفتے یا اس سے زائد مسلسل کھانسی', 'بلغم کے ساتھ خون آنا', 'سینے میں درد اور سانس لینے میں دشواری', 'تیزی سے وزن کم ہونا اور بھوک ختم ہونا', 'رات کو پسینہ آنا اور ہلکا بخار رہنا', 'شدید نقاہت اور کمزوری' ], riskFactors: [ 'Weakened immune system (HIV infection, malnutrition, diabetes, immunosuppressants)', 'Living in overcrowded, poorly ventilated housing', 'Tobacco smoking and heavy alcohol consumption', 'Close contact with someone who has untreated active pulmonary TB' ], riskFactorsUrdu: [ 'کمزور قوتِ مدافعت (شوگر، ایچ آئی وی، یا غذائی کمی)', 'تنگ اور بند مکانات جہاں تازہ ہوا کا گزر نہ ہو', 'تمباکو نوشی اور سگریٹ نوشی', 'ٹی بی کے زیرِ علاج نہ ہونے والے مریض کے ساتھ قریبی رابطہ' ], prevention: [ 'BCG vaccination administered to newborns and infants', 'Early detection and full completion of treatment for active cases (DOTS therapy)', 'Adequate natural ventilation and sunlight in living spaces', 'Cough etiquette: covering mouth and nose when coughing' ], preventionUrdu: [ 'پیدائش کے وقت بچوں کو بی سی جی (BCG) ویکسین لگوانا', 'مریض کا بر وقت معائنہ اور علاج کا مکمل 6 ماہ کا کورس (DOTS)', 'کمروں میں کھڑکیاں کھلی رکھنا اور دھوپ کا انتظام', 'کھانستے وقت منہ پر رومال رکھنا' ], testing: 'Sputum GeneXpert (molecular testing for TB and Rifampicin resistance), Sputum Smear Microscopy, and Chest X-ray.', testingUrdu: 'بلغم کا جین ایکسپرٹ (GeneXpert) ٹیسٹ، مائیکروسکوپی اور سینے کا ایکسرے۔', treatment: 'Directly Observed Therapy (DOTS) using standard first-line antitubercular regimen: Isoniazid, Rifampicin, Pyrazinamide, and Ethambutol for 6 months. Never stop medicines midway.', treatmentUrdu: 'چھ ماہ کا باقاعدہ اینٹی ٹی بی ادویات کا کورس (DOTS)۔ ادویات کو درمیان میں روکنا خطرناک پیچیدگیوں (MDR-TB) کا باعث بنتا ہے۔', resources: [ { title: 'National TB Control Program Guidelines', link: 'https://www.who.int/teams/global-tuberculosis-programme', type: 'National Guidelines' } ], references: [ { title: 'Global Tuberculosis Report', source: 'World Health Organization', year: '2024' } ], isFeatured: true, published: true, updatedAt: '2026-06-20' }, { id: 'hepatitis', name: 'Viral Hepatitis (A, B, C)', nameUrdu: 'وائرل ہیپاٹائٹس (یرقان)', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'Inflammation of the liver caused by viral infections (Hepatitis A, B, C, D, E), leading to acute jaundice or chronic cirrhosis.', shortSummaryUrdu: 'جگر کی سوزش جو ہیپاٹائٹس وائرس کے ذریعے پھیلتی ہے اور کالا یرقان یا جگر کے سکڑنے کا سبب بن سکتی ہے۔', overview: 'Viral hepatitis encompasses five main strains. Hepatitis A and E are spread mainly through contaminated food and water. Hepatitis B and C are blood-borne pathogens transmitted through unsafe injections, unsterilized surgical/dental instruments, and mother-to-child transmission.', overviewUrdu: 'ہیپاٹائٹس جگر کی سوزش کا نام ہے۔ ہیپاٹائٹس اے اور ای آلودہ پانی اور کھانے سے پھیلتے ہیں، جبکہ بی اور سی خون، غیر محفوظ انجیکشن، اور غیر جراثیم سے پاک آلات کے ذریعے پھیلتے ہیں۔', symptoms: [ 'Yellowing of skin and eyes (jaundice)', 'Dark amber urine and pale/clay-colored stools', 'Severe abdominal pain in the upper right quadrant', 'Chronic fatigue, loss of appetite, and nausea', 'Chronic stages may remain asymptomatic for years until liver cirrhosis develops' ], symptomsUrdu: [ 'آنکھوں اور جلد کی رنگت زرد ہونا (یرقان)', 'پیشاب کا گہرا پیلا ہونا اور پاخانے کی رنگت تبدیل ہونا', 'پیٹ کے اوپری دائیں حصے میں درد', 'مسلسل تھکن، متلی اور بھوک نہ لگنا', 'کالا یرقان کئی سال بغیر علامت کے رہ سکتا ہے جب تک جگر کو نقصان نہ پہنچے' ], riskFactors: [ 'Use of unsterilized syringes, needles, dental or surgical tools, and barber blades', 'Transfusion of unscreened blood or blood products', 'Drinking unsafe, contaminated municipal water (Hep A & E)', 'Unprotected sexual contact with infected individuals' ], riskFactorsUrdu: [ 'پرانی یا غیر محفوظ سرنجوں کا استعمال، نائی کا ایک ہی بلیڈ دہرانا', 'بغیر ٹیسٹ شدہ خون لگوانا', 'آلودہ پانی اور غیر معیاری کھانے کا استعمال', 'دانتوں اور جراحی کے آلات کی ناکافی صفائی' ], prevention: [ 'Hepatitis B vaccination (compulsory for all infants at birth)', 'Insist on new disposable syringes opened in front of you for every injection', 'Use only screened blood and sterilized medical/dental instruments', 'Boil drinking water and practice hand hygiene before food preparation' ], preventionUrdu: [ 'ہیپاٹائٹس بی کی حفاظتی ویکسینیشن مکمل کروانا', 'ہمیشہ نئی اور سیل بند سرنج کا استعمال یقینی بنانا', 'نائی کے پاس اپنا شیونگ کٹ لے جانا یا نیا بلیڈ استعمال کروانا', 'پینے کے پانی کو ابال کر استعمال کرنا' ], testing: 'HBsAg (for Hep B), Anti-HCV (for Hep C), Liver Function Tests (LFTs/ALT/AST), and HCV RNA PCR viral load.', testingUrdu: 'ایچ بی ایس اینٹی جن (HBsAg)، اینٹی ایچ سی وی (Anti-HCV)، ایل ایف ٹی (LFTs) اور پی سی آر (PCR) ٹیسٹ۔', treatment: 'Hepatitis C is now 95%+ curable with 12-week Direct-Acting Antiviral (DAA) tablets (Sofosbuvir/Daclatasvir). Hepatitis B is managed with lifelong antiviral therapy.', treatmentUrdu: 'ہیپاٹائٹس سی اب 12 ہفتوں کی جدید ادویات (DAAs) سے مکمل طور پر قابلِ علاج ہے۔ ہیپاٹائٹس بی کے لیے باقاعدہ نگہداشت ضروری ہے۔', resources: [ { title: 'Global Hepatitis Report and Elimination Roadmap', link: 'https://www.who.int/teams/global-hiv-hepatitis-and-stis-programmes/hepatitis', type: 'Global Roadmap' } ], references: [ { title: 'Guidelines for the Care and Treatment of Persons Diagnosed with Chronic Hepatitis C', source: 'WHO', year: '2024' } ], published: true, updatedAt: '2026-05-18' }, { id: 'typhoid', name: 'Typhoid & Extensively Drug-Resistant (XDR) Typhoid', nameUrdu: 'ٹائیفائیڈ بخار اور ایکس ڈی آر ٹائیفائیڈ', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A life-threatening systemic infection caused by Salmonella Typhi, transmitted through contaminated food and water.', shortSummaryUrdu: 'سلمونیلا ٹائفی بیکٹیریا سے پھیلنے والا شدید انفیکشن جو آلودہ پانی اور ناقص خوراک کے ذریعے منتقل ہوتا ہے۔', overview: 'Typhoid fever is a multisystemic bacterial infection caused by Salmonella enterica serotype Typhi. In South Asia, the emergence of Extensively Drug-Resistant (XDR) strains poses a major public health challenge requiring specialized antibiotics and vaccination.', overviewUrdu: 'ٹائیفائیڈ آلودہ پانی اور کھانے سے پھیلتا ہے۔ حالیہ برسوں میں ایکس ڈی آر (XDR) ٹائیفائیڈ کا پھیلاؤ عام ادویات کو غیر موثر بنا رہا ہے، جس کے لیے ٹائیفائیڈ ویکسین (TCV) اور صفائی ناگزیر ہے۔', symptoms: [ 'Step-ladder pattern high-grade fever lasting days to weeks', 'Severe headache, malaise, and generalized weakness', 'Abdominal pain, constipation initially, followed by watery diarrhea', 'Coated white tongue and enlarged spleen (splenomegaly)', 'Rose spots rash on chest and abdomen' ], symptomsUrdu: [ 'مسلسل اور چڑھتا ہوا تیز بخار جو دنوں تک رہے', 'سر درد، بے چینی اور شدید نقاہت', 'پیٹ میں شدید مروڑ اور درد، قبض یا دست', 'زبان پر سفید تہہ جمنا اور جگر یا تلی کا بڑھنا', 'پیٹ اور سینے پر ہلکے گلابی دھبے' ], riskFactors: [ 'Consuming tap water or street food prepared with unboiled, contaminated water', 'Lack of proper handwashing after using the toilet', 'Living in areas with broken municipal sewage infrastructure' ], riskFactorsUrdu: [ 'ابلے بغیر نلکے کا پانی پینا اور غیر معیاری کھانے کھانا', 'بیت الخلاء کے استعمال کے بعد صابن سے ہاتھ نہ دھونا', 'پینے کے پانی اور گندے نالوں کا آپس میں مل جانا' ], prevention: [ 'Typhoid Conjugate Vaccine (TCV) administration for children and vulnerable populations', 'Drink only boiled or certified chlorinated clean water', 'Thorough handwashing with soap for 20 seconds before eating and cooking', 'Eat hot, thoroughly cooked foods and avoid raw unpeeled vegetables/fruits from street vendors' ], preventionUrdu: [ 'ٹائیفائیڈ کنجوگیٹ ویکسین (TCV) لازمی لگوائیں', 'ہمیشہ ابلا ہوا یا کلورین ملا صاف پانی پئیں', 'کھانے سے پہلے اور بیت الخلاء کے بعد ہاتھ صابن سے 20 سیکنڈ تک دھوئیں', 'گرم اور تازہ پکا ہوا کھانا کھائیں' ], testing: 'Blood culture (gold standard in week 1), Typhidot / Bone marrow culture. (Widal test is often non-specific and discouraged).', testingUrdu: 'بلڈ کلچر (Blood Culture) سب سے مستند ٹیسٹ ہے۔ (وڈال ٹیسٹ اکثر غیر ضروری ہوتا ہے)۔', treatment: 'Targeted antibiotic therapy based on culture sensitivity (Azithromycin, Meropenem for XDR strains) under strict medical supervision.', treatmentUrdu: 'بلڈ کلچر رپورٹ کے مطابق ڈاکٹر کے مشورے سے مخصوص اینٹی بائیوٹکس کا مکمل کورس۔ خود سے ادویات لینا نقصان دہ ہے۔', resources: [ { title: 'TCV Vaccination Strategic Advisory Group Guide', link: 'https://www.who.int/teams/immunization-vaccines-and-biologicals', type: 'Vaccine Strategy' } ], references: [ { title: 'Management of Extensively Drug-Resistant Typhoid Fever', source: 'The Lancet Infectious Diseases', year: '2023' } ], published: true, updatedAt: '2026-04-12' }, { id: 'cchf', name: 'Crimean-Congo Haemorrhagic Fever (CCHF)', nameUrdu: 'کانگو وائرس (CCHF)', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A severe tick-borne viral zoonotic disease with high fatality, transmitted through Hyalomma ticks and contact with viremic animal blood/tissues.', shortSummaryUrdu: 'ایک خطرناک وائرل بیماری جو چیچڑی (Tick) کے کاٹنے یا قربانی اور بیمار جانوروں کے خون اور گوشت کو چھونے سے پھیلتی ہے۔', overview: 'Crimean-Congo haemorrhagic fever (CCHF) is caused by a tick-borne bunyavirus (Nairovirus). Case fatality rates range from 10% to 40%. It is primarily transmitted by Hyalomma ticks or through contact with infected animal blood/fluids during slaughtering and handling.', overviewUrdu: 'کانگو وائرس چیچڑیوں کے کاٹنے یا متاثرہ مویشیوں کے خون و جسمانی رطوبتوں کے رابطے سے پھیلتا ہے۔ عید الاضحیٰ اور مویشی منڈیوں کے دوران اس کے پھیلاؤ کا خطرہ بڑھ جاتا ہے۔', symptoms: [ 'Sudden onset of high fever, dizziness, neck pain and stiffness, backache, and sore eyes', 'Severe photophobia (sensitivity to light) and nausea/vomiting', 'Bleeding manifestations after day 4: petechiae, ecchymoses (large bruises), epistaxis (nosebleeds), and gastrointestinal bleeding', 'Rapid hepatomegaly, splenomegaly, and multiorgan failure in severe cases' ], symptomsUrdu: [ 'اچانک تیز بخار، چکر آنا، گردن میں اکڑاؤ اور شدید پٹھوں کا درد', 'روشنی سے آنکھوں میں چبھن اور قے', 'چوتھے دن کے بعد جسم سے خون کا اخراج، مسوڑھوں، ناک اور پاخانے میں خون', 'شدید سستی اور جگر و گردوں کا کام چھوڑ دینا' ], riskFactors: [ 'Handling livestock, abattoir workers, butchers, and veterinarians', 'Visiting animal markets without protective clothing', 'Direct contact with blood or bodily secretions of infected patients without PPE' ], riskFactorsUrdu: [ 'مویشیوں کی دیکھ بھال، قصائی اور جانوروں کے باڑوں میں کام کرنے والے افراد', 'بغیر دستانے اور بغیر حفاظتی لباس مویشی منڈیوں کا دورہ کرنا', 'متاثرہ مریض کی دیکھ بھال کے دوران بے احتیاطی' ], prevention: [ 'Wear light-colored clothing (to detect ticks easily) covering arms and legs', 'Apply acaricides/repellents containing DEET to skin and Permethrin to clothing', 'Wear gloves, face shields, and protective aprons when slaughtering or handling animal blood', 'Avoid crushing ticks with bare fingers' ], preventionUrdu: [ 'مویشی منڈی جاتے وقت ہلکے رنگ کے مکمل ڈھکے ہوئے کپڑے اور جوتے پہننا', 'جانوروں کو ذبح کرتے وقت اور گوشت بناتے وقت دستانے پہننا', 'جانوروں کی کھال پر لگی چیچڑیوں کو ننگے ہاتھ سے نہ مسلنا', 'مویشیوں پر چیچڑی مار اسپرے کروانا' ], testing: 'RT-PCR for viral RNA (in specialized biocontainment biosafety level 3/4 laboratories), ELISA for IgG and IgM antibodies.', testingUrdu: 'پی سی آر (RT-PCR) اور اینٹی باڈی ٹیسٹ (ELISA)۔', treatment: 'Intensive supportive care (platelet/plasma transfusions) and antiviral drug Ribavirin (both oral and intravenous) under strict isolation protocol.', treatmentUrdu: 'آئسولیشن وارڈ میں مکمل نگہداشت، پلیٹلیٹس کی فراہمی اور رائباویرن اینٹی وائرل دوا۔', resources: [ { title: 'WHO CCHF Surveillance and Infection Control', link: 'https://www.who.int/news-room/fact-sheets/detail/crimean-congo-haemorrhagic-fever', type: 'Surveillance' } ], references: [ { title: 'Guidelines for the Prevention and Management of CCHF', source: 'National Institute of Health', year: '2024' } ], published: true, updatedAt: '2026-06-01' }, { id: 'chikungunya', name: 'Chikungunya', nameUrdu: 'چکن گونیا', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'A viral disease transmitted to humans by infected mosquitoes causing severe debilitating joint pain.', shortSummaryUrdu: 'مچھروں سے پھیلنے والی وائرل بیماری جس میں تیز بخار اور جوڑوں میں شدید اور دیرپا درد ہوتا ہے۔', overview: 'Chikungunya is caused by the Chikungunya virus (CHIKV) transmitted by Aedes aegypti and Aedes albopictus mosquitoes. While rarely fatal, the severe arthralgia (joint pain) can persist for months or years, impacting quality of life significantly.', overviewUrdu: 'چکن گونیا ایڈیز مچھر کے کاٹنے سے پھیلتا ہے۔ اس بیماری میں جوڑوں کا شدید درد کئی ہفتوں یا مہینوں تک برقرار رہ سکتا ہے۔', symptoms: [ 'Abrupt onset of high fever and severe, often debilitating joint pain (polyarthralgia)', 'Joint swelling (especially hands, wrists, ankles, and knees)', 'Maculopapular rash on trunk and limbs', 'Fatigue, headache, and muscle pain' ], symptomsUrdu: [ 'اچانک تیز بخار اور جوڑوں کا شدید درد جو نقل و حرکت مشکل بنا دے', 'ہاتھوں، کلائیوں، ٹخنوں اور گھٹنوں میں سوجن', 'جسم پر سرخ دانے یا خارش', 'شدید جسمانی تھکن اور پٹھوں کا درد' ], riskFactors: ['Exposure to daytime biting Aedes mosquitoes in endemic neighborhoods.'], riskFactorsUrdu: ['دن کے وقت مچھر کے کاٹنے سے لاپرواہی برتنا۔'], prevention: ['Vector control, discarding stagnant water, wearing long clothing and applying repellent.'], preventionUrdu: ['مچھروں کی روک تھام، کھڑے پانی کو ختم کرنا اور مچھر بھگاؤ لوشن کا استعمال۔'], testing: 'Serological tests (ELISA for IgM/IgG) and RT-PCR within first 7 days.', testingUrdu: 'خون کا آر ٹی پی سی آر (RT-PCR) اور اینٹی باڈی ٹیسٹ۔', treatment: 'Symptomatic relief with hydration, rest, Paracetamol, and physical therapy for lingering joint stiffness.', treatmentUrdu: 'آرام، وافر مقدار میں پانی اور پیراسیٹامول کا استعمال۔', resources: [{ title: 'WHO Chikungunya Fact Sheet', link: 'https://www.who.int', type: 'Public Advisory' }], references: [{ title: 'Clinical Management of Chikungunya Virus', source: 'CDC Guidelines', year: '2023' }], published: true, updatedAt: '2026-03-25' }, { id: 'hiv-aids', name: 'HIV / AIDS', nameUrdu: 'ایچ آئی وی / ایڈز', category: 'communicable', categoryUrdu: 'متعدی بیماریاں', shortSummary: 'Human Immunodeficiency Virus that targets the immune system, manageable with lifelong Antiretroviral Therapy (ART).', shortSummaryUrdu: 'انسانی قوتِ مدافعت کو متاثر کرنے والا وائرس، جس پر اینٹی ریٹرو وائرل تھراپی (ART) کے ذریعے مکمل قابو پایا جا سکتا ہے۔', overview: 'HIV infects cells of the immune system, destroying CD4 cells. Advanced HIV is termed Acquired Immunodeficiency Syndrome (AIDS). With modern Antiretroviral Therapy (ART), individuals with HIV achieve viral suppression (Undetectable = Untransmittable) and lead long, healthy lives.', overviewUrdu: 'ایچ آئی وی جسم کے مدافعتی نظام کو کمزور کرتا ہے۔ جدید ادویات (ART) کی بدولت اب یہ مرض مکمل طور پر قابو میں رکھا جا سکتا ہے اور مریض صحت مند زندگی گزار سکتے ہیں۔', symptoms: [ 'Acute phase (2-4 weeks): flu-like illness with fever, throat inflammation, lymph node swelling', 'Chronic phase: often asymptomatic for years', 'Advanced phase: severe weight loss, chronic diarrhea, persistent oral thrush, recurrent opportunistic infections' ], symptomsUrdu: [ 'ابتدائی مرحلے میں فلو جیسے علامات، گلے میں سوزش اور غدود کا سوجنا', 'درمیانی مدت میں سالوں تک بظاہر علامات کا نہ ہونا', 'پیچیدہ مرحلے میں تیزی سے وزن گرنا، دائمی اسہال اور بار بار انفیکشن ہونا' ], riskFactors: [ 'Reusing contaminated needles and syringes', 'Unscreened blood transfusions', 'Mother-to-child transmission during pregnancy or delivery without ART' ], riskFactorsUrdu: [ 'استعمال شدہ سرنجوں کا دوبارہ استعمال', 'غیر تصدیق شدہ خون کا لگوانا', 'حمل یا پیدائش کے وقت ماں سے بچے کو منتقلی' ], prevention: [ 'Universal screening of blood donations', 'Single-use sterile syringes and Harm Reduction services', 'Prevention of Parent-To-Child Transmission (PPTCT) protocols', 'Pre-Exposure Prophylaxis (PrEP) and Post-Exposure Prophylaxis (PEP)' ], preventionUrdu: [ 'خون کے عطیات کی مکمل جانچ پڑتال', 'صرف نئی اور جراثیم سے پاک سرنجوں کا استعمال', 'حاملہ خواتین کی لازمی اسکریننگ اور حفاظتی علاج' ], testing: 'Rapid HIV Antibody/Antigen test with confirmatory ELISA and Western Blot / PCR.', testingUrdu: 'خون کا تیز رفتار اسکریننگ اور پی سی آر ٹیسٹ۔', treatment: 'Lifelong Antiretroviral Therapy (ART) provided free of cost at national treatment centers.', treatmentUrdu: 'حکومتی مراکز سے اینٹی ریٹرو وائرل (ART) ادویات کا باقاعدہ اور مفت علاج۔', resources: [{ title: 'UNAIDS Fast-Track Strategy', link: 'https://www.unaids.org', type: 'Global Strategy' }], references: [{ title: 'Consolidated Guidelines on HIV Prevention, Testing and Treatment', source: 'WHO', year: '2024' }], published: true, updatedAt: '2026-05-30' }, // Non-Communicable Diseases { id: 'diabetes', name: 'Diabetes Mellitus (Type 1 & 2)', nameUrdu: 'ذیابیطس (شوگر)', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'A chronic metabolic disease characterized by elevated levels of blood glucose, leading over time to serious damage to heart, blood vessels, eyes, kidneys and nerves.', shortSummaryUrdu: 'ایک دائمی میٹابولک بیماری جس میں خون میں شکر کی مقدار بڑھ جاتی ہے اور علاج نہ ہونے پر دل، گردوں اور آنکھوں کو نقصان پہنچاتی ہے۔', overview: 'Diabetes occurs either when the pancreas does not produce enough insulin (Type 1) or when the body cannot effectively use the insulin it produces (Type 2). Over 90% of all cases worldwide are Type 2 diabetes, heavily influenced by physical inactivity and dietary patterns.', overviewUrdu: 'ذیابیطس اس وقت ہوتی ہے جب لبلبہ انسولین نہ بنائے یا جسم انسولین کو صحیح استعمال نہ کر سکے۔ ٹائپ 2 شوگر زیادہ تر غیر متحرک طرز زندگی، موٹاپے اور غیر متوازن خوراک سے پیدا ہوتی ہے۔', symptoms: [ 'Excessive thirst (polydipsia) and dry mouth', 'Frequent urination (polyuria), especially waking up at night', 'Unexplained weight loss despite increased hunger (polyphagia)', 'Persistent fatigue and generalized sluggishness', 'Blurred vision', 'Slow-healing cuts, sores, or frequent skin infections' ], symptomsUrdu: [ 'بار بار پیاس لگنا اور گلا خشک ہونا', 'بار بار پیشاب آنا، خصوصاً رات کے وقت', 'اچانک وزن میں کمی آنا', 'مسلسل سستی اور کمزوری', 'نظر کی دھندلاہٹ', 'زخموں کا دیر سے بھرنا اور جلد کے انفیکشن' ], riskFactors: [ 'Overweight / obesity (BMI ≥ 25 kg/m² or high waist-to-hip ratio)', 'Physical inactivity (sedentary lifestyle)', 'Family history of diabetes in first-degree relatives', 'High intake of refined carbohydrates, sugary beverages, and processed foods', 'Age ≥ 35 years and history of gestational diabetes' ], riskFactorsUrdu: [ 'موٹاپا اور پیٹ پر چربی کی زیادتی', 'ورزش نہ کرنا اور سست طرزِ زندگی', 'خاندان میں والدین یا بہن بھائیوں کو شوگر ہونا', 'میٹھے مشروبات، بیکری آئٹمز اور پراسیسڈ کھانوں کی زیادتی', '35 سال سے زائد عمر اور بلڈ پریشر کی زیادتی' ], prevention: [ 'Engage in at least 150 minutes of moderate aerobic exercise per week (brisk walking, cycling)', 'Adopt a balanced diet rich in dietary fiber, legumes, whole grains, vegetables, and lean proteins', 'Eliminate sugar-sweetened beverages and ultra-processed snacks', 'Maintain healthy body weight (aim for 5-7% weight reduction if overweight)', 'Annual blood sugar screening for adults over 30' ], preventionUrdu: [ 'ہفتے میں کم از کم 150 منٹ تیز چہل قدمی یا ہلکی ورزش', 'غذا میں فائبر، سبزیاں، دالیں اور چکی کے آٹے کا استعمال', 'کولڈ ڈرنکس، جوسز اور بیکری کی اشیاء سے پرہیز', 'وزن کو مناسب حد میں رکھنا', '30 سال کی عمر کے بعد سالانہ شوگر ٹیسٹ کروانا' ], testing: 'Fasting Blood Glucose (FBG ≥ 126 mg/dL), HbA1c (≥ 6.5% indicates diabetes; 5.7%-6.4% is prediabetes), and Oral Glucose Tolerance Test (OGTT).', testingUrdu: 'نہار منہ بلڈ شوگر (Fasting) اور تین ماہ کی شوگر کا ایوریج ٹیسٹ یعنی ایچ بی اے ون سی (HbA1c)۔', treatment: 'Lifestyle modification, medical nutrition therapy, oral antidiabetic medications (Metformin, SGLT2 inhibitors, GLP-1 agonists), and Insulin therapy when indicated. Regular monitoring of eyes (retinopathy), kidneys (microalbuminuria), and feet.', treatmentUrdu: 'طرز زندگی میں تبدیلی، متوازن خوراک، ڈاکٹر کی تجویز کردہ ادویات (میٹفارمین وغیرہ) اور بوقت ضرورت انسولین۔ آنکھوں، گردوں اور پاؤں کا باقاعدہ معائنہ۔', resources: [ { title: 'International Diabetes Federation (IDF) Clinical Guidelines', link: 'https://idf.org', type: 'Clinical Guidelines' }, { title: 'WHO Global Report on Diabetes', link: 'https://www.who.int', type: 'Global Report' } ], references: [ { title: 'Standards of Medical Care in Diabetes', source: 'American Diabetes Association (ADA)', year: '2024' } ], isFeatured: true, published: true, updatedAt: '2026-06-10' }, { id: 'hypertension', name: 'Hypertension (High Blood Pressure)', nameUrdu: 'بلڈ پریشر کی زیادتی (ہائیپرٹینشن)', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'The "silent killer" that significantly increases the risks of heart attacks, stroke, kidney failure, and cognitive decline.', shortSummaryUrdu: 'خاموش قاتل کی مانند بیماری جو دل کے دورے، فالج اور گردوں کے فیل ہونے کا سب سے بڑا سبب بنتی ہے۔', overview: 'Hypertension is diagnosed when blood pressure is consistently 140/90 mmHg or higher on multiple readings. It is known as a silent killer because it often has no warning symptoms until major vascular damage has already occurred.', overviewUrdu: 'بلڈ پریشر کا 140/90 سے زیادہ رہنا ہائیپرٹینشن کہلاتا ہے۔ اس کی بظاہر کوئی واضح علامت نہیں ہوتی مگر یہ دل کی شریانوں، دماغ اور گردوں کو خاموشی سے نقصان پہنچاتا ہے۔', symptoms: [ 'Frequently asymptomatic in early and moderate stages', 'Morning occipital headaches (back of head)', 'Dizziness, lightheadedness, and episodic nosebleeds', 'Shortness of breath with mild exertion and chest tightness', 'Palpitations and visual changes' ], symptomsUrdu: [ 'اکثر ابتدائی مراحل میں کوئی علامت ظاہر نہیں ہوتی', 'صبح کے وقت سر کے پچھلے حصے میں درد', 'چکر آنا اور بے چینی', 'تھوڑی سی محنت پر سانس پھولنا اور سینے میں بوجھ', 'دل کی دھڑکن تیز ہونا' ], riskFactors: [ 'High dietary sodium (salt) intake (> 5g per day)', 'Physical inactivity and obesity', 'Chronic psychosocial stress and poor sleep', 'Tobacco smoking and alcohol consumption', 'Family history and advanced age' ], riskFactorsUrdu: [ 'کھانے میں نمک کا زیادہ استعمال (روزانہ ایک چمچ سے زیادہ)', 'سست طرزِ زندگی اور وزن کی زیادتی', 'مسلسل ذہنی دباؤ اور نیند کی کمی', 'سگریٹ نوشی اور نسوار کا استعمال', 'خاندانی اثرات اور بڑھتی عمر' ], prevention: [ 'Reduce salt intake to less than 1 teaspoon (5 grams) per day', 'Adopt the DASH (Dietary Approaches to Stop Hypertension) diet: high in potassium, calcium, magnesium, fruits, and vegetables', 'Engage in regular aerobic physical activity for 30 minutes daily', 'Completely quit smoking and limit caffeine', 'Practice stress management techniques and ensure 7-8 hours of quality sleep' ], preventionUrdu: [ 'کھانے اور سالن میں نمک کی مقدار کم سے کم کریں', 'تازہ پھل، سبزیاں اور پوٹاشیم سے بھرپور غذائیں کھائیں', 'روزانہ 30 منٹ چہل قدمی کو معمول بنائیں', 'سگریٹ نوشی سے مکمل پرہیز کریں', 'ذہنی دباؤ کو کم کریں اور پرسکون نیند لیں' ], testing: 'Standardized oscillometric or mercury sphygmomanometer blood pressure checks (at least 2 readings on 2 separate occasions), 24-hour Ambulatory Blood Pressure Monitoring (ABPM), lipid profile, and serum creatinine.', testingUrdu: 'بی پی آپریٹس سے باقاعدہ چیک اپ، کولیسٹرول اور گردوں کے ٹیسٹ (سیرم کریٹینین)۔', treatment: 'Lifestyle interventions combined with first-line antihypertensive classes: ACE inhibitors, ARBs, Calcium Channel Blockers, and Thiazide diuretics as prescribed by a medical doctor.', treatmentUrdu: 'طرزِ زندگی میں اصلاح اور ڈاکٹر کے مشورے سے باقاعدہ روزانہ بی پی کی گولی کھانا۔ کبھی خود سے دوا بند نہ کریں۔', resources: [ { title: 'WHO Guideline for the Pharmacological Treatment of Hypertension', link: 'https://www.who.int', type: 'Clinical Protocol' } ], references: [ { title: 'Global Report on Hypertension: The Race Against a Silent Killer', source: 'World Health Organization', year: '2023' } ], isFeatured: true, published: true, updatedAt: '2026-06-05' }, { id: 'heart-disease', name: 'Cardiovascular & Heart Disease (CAD & Stroke)', nameUrdu: 'امراضِ قلب اور فالج (کارڈیو ویسکولر امراض)', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'Disorders of the heart and blood vessels including coronary artery disease, heart failure, and cerebrovascular stroke.', shortSummaryUrdu: 'دل اور خون کی شریانوں کی بیماریاں جن میں ہارٹ اٹیک، انجائنا اور دماغی فالج شامل ہیں۔', overview: 'Cardiovascular diseases (CVDs) are the leading cause of death globally. Atherosclerosis (buildup of fatty plaques inside arteries) restricts blood flow to the heart muscle (causing angina or myocardial infarction) or to the brain (causing ischemic stroke).', overviewUrdu: 'امراضِ قلب دنیا بھر میں اموات کی سب سے بڑی وجہ ہیں۔ شریانوں میں چربی (کولیسٹرول) جمنے سے خون کی روانی متاثر ہوتی ہے جس کے نتیجے میں دل کا دورہ یا فالج ہو سکتا ہے۔', symptoms: [ 'Crushing chest pain, pressure, fullness or squeezing in the center of the chest (angina)', 'Pain radiating to shoulder, arm (especially left), back, neck, jaw, or upper stomach', 'Shortness of breath with or without chest discomfort', 'Cold sweat, extreme dizziness, lightheadedness, and unexplained nausea', 'Stroke warning signs (FAST): Face drooping, Arm weakness, Slurred Speech, Time to call emergency' ], symptomsUrdu: [ 'سینے کے درمیان میں شدید دباؤ، جلن یا کچلنے والا درد', 'درد کا بائیں بازو، کندھے، جبڑے یا کمر کی طرف پھیلنا', 'سانس لینے میں شدید دشواری اور گھبراہٹ', 'ٹھنڈے پسینے آنا، چکر آنا اور متلی ہونا', 'فالج کی فوری علامات: چہرے کا ٹیڑھا ہونا، بازو کا سن ہونا، بولنے میں دشواری' ], riskFactors: [ 'Elevated LDL cholesterol and high triglycerides', 'Hypertension and uncontrolled diabetes mellitus', 'Tobacco use (both smoked and smokeless forms)', 'Diet high in trans-fats, saturated fats, and red meats', 'Sedentary lifestyle and abdominal obesity' ], riskFactorsUrdu: [ 'کولیسٹرول (LDL) اور ٹرائی گلسرائیڈز کی زیادتی', 'بلڈ پریشر اور شوگر کا کنٹرول میں نہ ہونا', 'سگریٹ، نسوار یا پان گٹکے کا استعمال', 'چکنائی اور گھی والے کھانوں کی کثرت', 'موٹاپا اور جسمانی سرگرمی کا نہ ہونا' ], prevention: [ 'Eliminate trans-fats and substitute saturated fats with healthy polyunsaturated plant oils (olive, mustard)', 'Eat 5 servings of fresh fruits and vegetables daily', 'Strict control of blood pressure, blood glucose, and lipid levels', 'Avoid all tobacco and second-hand smoke exposure' ], preventionUrdu: [ 'گھی اور تلی ہوئی چیزوں کی جگہ زیتون یا سرسوں کے تیل کا اعتدال میں استعمال', 'روزانہ تازہ پھل اور سبزیاں کھانا', 'شوگر اور بلڈ پریشر کو باقاعدگی سے قابو میں رکھنا', 'تمباکو نوشی سے مکمل دوری' ], testing: 'Electrocardiogram (ECG), Echocardiography, Cardiac enzymes (Troponin I/T), Lipid Profile, CT Coronary Angiography, and Exercise Tolerance Test (ETT).', testingUrdu: 'ای سی جی (ECG)، ایکو کارڈیوگرافی (Echo)، ٹروپونین ٹیسٹ، اور لپڈ پروفائل (کولیسٹرول ٹیسٹ)۔', treatment: 'Emergency revascularization (Angioplasty / Stenting or CABG bypass surgery) during heart attacks, antiplatelet therapy (Aspirin), Statins for cholesterol, Beta-blockers, and cardiac rehabilitation.', treatmentUrdu: 'ہنگامی بنیادوں پر اینجیو پلاسٹی یا ادویات (اسپرین، اسٹیٹن، بی پی کی دوائیں) اور کارڈیالوجسٹ کی زیر نگرانی باقاعدہ دیکھ بھال۔', resources: [ { title: 'WHO HEARTS Technical Package for CVD Management', link: 'https://www.who.int', type: 'Technical Package' } ], references: [ { title: 'AHA/ACC Guideline on the Primary Prevention of Cardiovascular Disease', source: 'Circulation', year: '2023' } ], published: true, updatedAt: '2026-05-22' }, { id: 'cancer', name: 'Cancer (Prevention & Early Detection)', nameUrdu: 'کینسر (بچاؤ اور بر وقت تشخیص)', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'A large group of diseases characterized by uncontrollable cellular growth with potential to invade surrounding tissues.', shortSummaryUrdu: 'خلیات کے غیر معمولی بڑھوتری کا مرض جس کی بر وقت اسکریننگ اور تشخیص سے مکمل شفایابی ممکن ہے۔', overview: 'Between 30% and 50% of all cancer cases are preventable by avoiding key risk factors (tobacco, obesity, dietary carcinogens) and implementing existing evidence-based prevention strategies (HPV and Hepatitis B vaccination). Early detection substantially increases survival rates.', overviewUrdu: 'کینسر کے 30 سے 50 فیصد کیسز سے احتیاطی تدابیر، تمباکو نوشی سے پرہیز اور ویکسینیشن (HPV اور ہیپاٹائٹس بی) کے ذریعے بچا جا سکتا ہے۔ بر وقت تشخیص سے علاج کے امکانات بہت بڑھ جاتے ہیں۔', symptoms: [ 'Unexplained lump, swelling, or thickening in breast, neck, or elsewhere', 'Persistent sores that do not heal in the mouth or on skin', 'Unexplained rapid weight loss and persistent fatigue', 'Change in bowel or bladder habits; blood in urine or stool', 'Persistent hoarseness of voice or difficulty swallowing', 'Abnormal vaginal bleeding between periods or post-menopause' ], symptomsUrdu: [ 'جسم میں، خصوصاً چھاتی یا گردن میں بغیر درد کی گلٹی یا گانٹھ بننا', 'منہ یا جلد پر ایسے چھالے اور زخم جو ٹھیک نہ ہو رہے ہوں', 'بغیر کسی وجہ کے تیزی سے وزن کم ہونا', 'پاخانے یا پیشاب میں خون کا اخراج', 'آواز کا مسلسل بیٹھ جانا یا نگلنے میں دشواری', 'خواتین میں غیر معمولی خون کا بہنا' ], riskFactors: [ 'Tobacco in all forms (cigarettes, sheesha, gutka, pan, naswar)', 'Chronic oncogenic infections (HPV, Hepatitis B and C, Helicobacter pylori)', 'Environmental and occupational carcinogens (asbestos, industrial chemicals)', 'Unhealthy diet low in fruit and vegetables and high in ultra-processed meats' ], riskFactorsUrdu: [ 'ہر قسم کی تمباکو نوشی، گٹکا، پان، چھالیہ اور نسوار کا استعمال (منہ کے کینسر کا بڑا سبب)', 'ہیپاٹائٹس بی، سی اور ایچ پی وی جیسے دائمی وائرل انفیکشنز', 'زہریلے کیمیکلز اور ماحولیاتی آلودگی کے اثرات', 'غیر معیاری اور کیمیکل ملے کھانوں کا کثرت سے استعمال' ], prevention: [ 'Never consume any form of tobacco, betel nut, or gutka', 'Complete HPV vaccination for young girls to prevent cervical cancer', 'Undergo regular age-appropriate screenings: Mammography for breast cancer, Pap smears for cervical cancer, and Colonoscopy for colorectal cancer', 'Protect skin from excessive UV solar radiation and occupational chemicals' ], preventionUrdu: [ 'گٹکا، پان، نسوار اور سگریٹ سے مکمل دوری اختیار کرنا', 'خواتین کے لیے سروائیکل کینسر کی ویکسینیشن (HPV)', '40 سال کے بعد میموگرافی (چھاتی کے معائنے) اور دیگر اسکریننگ ٹیسٹ کروانا', 'متوازن غذا اور فعال طرز زندگی اپنانا' ], testing: 'Tissue Biopsy and Histopathology, Mammography, Pap smear, Low-dose CT chest for high-risk smokers, MRI/PET scans, and Tumor Markers.', testingUrdu: 'بائیوپسی (Biopsy)، میموگرافی، الٹراساؤنڈ، سی ٹی اسکین اور متعلقہ ٹیومر مارکرز۔', treatment: 'Multidisciplinary oncology management: Surgical resection, Radiation therapy, Chemotherapy, Targeted therapies, and Immunotherapy.', treatmentUrdu: 'کینسر کے اسپیشلسٹ ڈاکٹروں کی زیر نگرانی سرجری، کیموتھراپی، ریڈی ایشن اور ٹارگٹڈ ادویات کا بروقت آغاز۔', resources: [ { title: 'IARC World Cancer Report', link: 'https://www.iarc.who.int', type: 'Scientific Report' } ], references: [ { title: 'Global Cancer Statistics: GLOBOCAN Estimates', source: 'CA: A Cancer Journal for Clinicians', year: '2024' } ], published: true, updatedAt: '2026-04-30' }, { id: 'respiratory', name: 'Chronic Respiratory Diseases (Asthma & COPD)', nameUrdu: 'سانس کے دائمی امراض (دمہ اور سی او پی ڈی)', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'Chronic diseases of the airways and other structures of the lung, exacerbated by air pollution and biomass fuel smoke.', shortSummaryUrdu: 'پھیپھڑوں اور سانس کی نالیوں کی سوزش جس میں ہوا کی آلودگی اور تمباکو کا دھواں مرض کو بڑھا دیتا ہے۔', overview: 'Chronic Obstructive Pulmonary Disease (COPD) and Asthma affect hundreds of millions globally. In developing regions, domestic exposure to indoor biomass smoke (cooking with wood/dung) alongside outdoor particulate air pollution (smog) are prime contributors.', overviewUrdu: 'دمہ اور سی او پی ڈی میں سانس کی نالیاں تنگ ہو جاتی ہیں۔ لکڑی اور اپلوں کے دھوئیں، فضائی آلودگی اور اسموگ کی وجہ سے یہ بیماریاں تیزی سے پھیل رہی ہیں۔', symptoms: [ 'Persistent breathlessness and wheezing during exertion or rest', 'Chronic morning cough with copious mucus production', 'Chest tightness and inability to take deep breaths', 'Frequent chest infections and prolonged recovery periods' ], symptomsUrdu: [ 'سانس کا پھولنا اور سینے سے سیٹی کی آواز (Wheezing) آنا', 'مسلسل کھانسی اور بلغم کا اخراج', 'سینے میں جکڑن اور گھٹن کا احساس', 'موسم کی تبدیلی اور آلودگی پر علامات کا شدید ہو جانا' ], riskFactors: ['Tobacco smoking, indoor biomass fuel burning in unventilated kitchens, urban smog (PM2.5).'], riskFactorsUrdu: ['سگریٹ کا دھواں، بند کچن میں لکڑیوں کا دھواں، اور شہروں کی فضائی آلودگی (اسموگ)۔'], prevention: ['Avoid tobacco smoke, use clean cooking stoves with chimney ventilation, wear N95 masks during heavy smog, and receive annual influenza/pneumococcal vaccines.'], preventionUrdu: ['دھوئیں سے بچاؤ، کچن میں ہوا دان کا انتظام، اسموگ کے دوران ماسک کا استعمال، اور سالانہ فلو ویکسین۔'], testing: 'Spirometry (Pulmonary Function Test - PFT), Chest X-ray/CT, and Pulse Oximetry.', testingUrdu: 'اسپائرومیٹری (پھیپھڑوں کی صلاحیت کا ٹیسٹ - PFT) اور سینے کا ایکسرے۔', treatment: 'Inhaled corticosteroids, Long-acting bronchodilators (LABA/LAMA inhalers), Pulmonary rehabilitation, and Oxygen therapy for advanced stages.', treatmentUrdu: 'ڈاکٹر کے تجویز کردہ انہیلرز کا درست استعمال اور ماحولیاتی آلودگی سے بچاؤ۔', resources: [{ title: 'GOLD Global Strategy for COPD', link: 'https://goldcopd.org', type: 'Global Strategy' }], references: [{ title: 'GINA Global Strategy for Asthma Management', source: 'GINA', year: '2024' }], published: true, updatedAt: '2026-05-14' }, { id: 'mental-health', name: 'Mental Health & Psychological Well-being', nameUrdu: 'ذہنی صحت اور نفسیاتی بہبود', category: 'non-communicable', categoryUrdu: 'غیر متعدی امراض', shortSummary: 'Depression, anxiety disorders, stress management, and breaking the stigma around psychological care.', shortSummaryUrdu: 'ڈپریشن، اینگزائٹی اور ذہنی دباؤ کی علامات، دیکھ بھال اور معاشرتی آگاہی۔', overview: 'Mental health is an integral component of overall health. Depression and anxiety disorders are highly treatable medical conditions. Community awareness and reducing social stigma are essential to ensure people receive timely evidence-based psychological support.', overviewUrdu: 'ذہنی صحت جسمانی صحت جتنی ہی اہم ہے۔ ڈپریشن اور اضطراب عام بیماریاں ہیں جن کا بروقت علاج اور کونسلنگ سے مکمل مداوا ممکن ہے۔', symptoms: [ 'Persistent feelings of sadness, emptiness, or hopelessness lasting over 2 weeks', 'Loss of interest or pleasure in activities once enjoyed', 'Severe disturbances in sleep (insomnia or oversleeping) and appetite changes', 'Constant overwhelming worry, racing thoughts, panic attacks, or irritability', 'Difficulty concentrating and making everyday decisions' ], symptomsUrdu: [ 'مسلسل اداسی، مایوسی اور اکیلے پن کا احساس', 'روزمرہ کے کاموں اور مشاغل میں دلچسپی ختم ہونا', 'نیند اور بھوک میں شدید خرابی (بے خوابی یا بہت زیادہ سونا)', 'شدید گھبراہٹ، دل کی دھڑکن تیز ہونا اور بے چینی', 'توجہ مرکوز کرنے اور فیصلے کرنے میں دشواری' ], riskFactors: ['Chronic severe psychosocial stress, trauma, social isolation, biological and genetic predispositions.'], riskFactorsUrdu: ['شدید ذہنی دباؤ، صدمہ، تنہائی، اور معاشی یا خاندانی پریشانیاں۔'], prevention: ['Maintaining supportive social connections, regular physical activity, balanced sleep hygiene, mindfulness, and seeking early counseling.'], preventionUrdu: ['دوستوں اور اہلخانہ سے بات چیت، باقاعدہ نیند، چہل قدمی اور ابتدائی علامات پر ماہرِ نفسیات سے رہنمائی۔'], testing: 'Standardized psychological evaluation tools (PHQ-9 for depression, GAD-7 for anxiety) by qualified mental health professionals.', testingUrdu: 'ماہرِ نفسیات کی جانب سے کلینیکل اسسمنٹ اور معیاری سوالنامے۔', treatment: 'Cognitive Behavioral Therapy (CBT), interpersonal psychotherapy, stress reduction techniques, and medication (SSRIs) when clinically prescribed.', treatmentUrdu: 'کونسلنگ (CBT)، تھراپی اور ضرورت پڑنے پر ڈاکٹر کی تجویز کردہ محفوظ ادویات۔', resources: [{ title: 'WHO Comprehensive Mental Health Action Plan', link: 'https://www.who.int', type: 'Action Plan' }], references: [{ title: 'World Mental Health Report: Transforming Mental Health for All', source: 'WHO', year: '2023' }], published: true, updatedAt: '2026-06-12' } ]; const initialNews: NewsArticle[] = [ { id: 'news-1', title: 'Public Health Advisory: Monsoon Vector-Borne Disease Prevention Guidelines Issued', titleUrdu: 'پبلک ہیلتھ ایڈوائزری: مون سون میں مچھروں سے پھیلنے والی بیماریوں سے بچاؤ کی ہدایات', summary: 'Healthcare authorities urge communities to eliminate stagnant water containers and use mosquito repellents to counter anticipated post-monsoon surges in Dengue and Malaria.', summaryUrdu: 'مون سون کے بعد ڈینگی اور ملیریا کے ممکنہ پھیلاؤ کے پیشِ نظر شہریوں کو گھروں میں کھڑا پانی تلف کرنے اور مچھر دانیوں کے استعمال کی ہدایت جاری۔', content: `With the onset of the post-monsoon season, public health specialists have issued an urgent community advisory regarding the prevention of vector-borne illnesses, principally Dengue Fever, Malaria, and Chikungunya. Key Public Health Recommendations: 1. Container Management: Inspect courtyards, rooftops, potted plants, and discarded tires twice a week. Ensure all water storage tanks are securely sealed. 2. Personal Protection: Apply insect repellent containing DEET or Picaridin on exposed skin during early morning and late afternoon hours when Aedes mosquitoes are most active. 3. Rapid Screening: Individuals developing sudden high fever, retro-orbital eye pain, or joint aches should immediately consult a basic health unit rather than taking over-the-counter NSAIDs like Aspirin or Ibuprofen, which exacerbate internal hemorrhage risks. Public health teams are coordinating with local municipalities to carry out targeted indoor residual spraying and biological larviciding in high-risk union councils.`, contentUrdu: `مون سون کے بعد کے موسم کے آغاز کے ساتھ ہی پبلک ہیلتھ ماہرین نے ڈینگی، ملیریا اور چکن گونیا کی روک تھام کے لیے اہم ہدایات جاری کی ہیں۔ عوامی صحت کے اہم نکات: 1. پانی کے ذخائر کی صفائی: گھر کے صحن، چھتوں، گملوں اور پرانے ٹائروں کو ہفتے میں دو بار چیک کریں۔ پانی کی ٹینکیوں کے ڈھکن بند رکھیں۔ 2. ذاتی تحفظ: صبح اور شام کے اوقات میں جب ایڈیز مچھر زیادہ متحرک ہوتا ہے، مچھر بھگانے والے لوشن کا استعمال کریں۔ 3. بروقت معائنہ: بخار اور آنکھوں کے پیچھے درد کی صورت میں فوری ٹیسٹ کروائیں اور ڈسپرین یا بروفین ہرگز نہ لیں کیونکہ یہ خون پتلا کر کے خطرہ بڑھا سکتی ہیں۔`, featuredImage: 'https://images.unsplash.com/photo-1584036561566-baf8f5f1b144?auto=format&fit=crop&w=1200&q=80', category: 'Disease Surveillance', categoryUrdu: 'بیماریوں کی نگرانی', date: '2026-08-18', author: 'Editorial Board, Public Health Plus', readTime: '3 min read', published: true }, { id: 'news-2', title: 'Nationwide Immunization Drive: Protecting Children Against Measles, Polio & Typhoid', titleUrdu: 'قومی ویکسینیشن مہم: بچوں کو خسرہ، پولیو اور ٹائیفائیڈ سے محفوظ رکھنے کا عزم', summary: 'The Expanded Programme on Immunization (EPI) launches an intensified campaign ensuring every infant receives vital vaccines on schedule.', summaryUrdu: 'حفاظتی ٹیکوں کے توسیعی پروگرام کے تحت بچوں کو جان لیوا بیماریوں سے بچانے کے لیے جامع مہم کا آغاز۔', content: `Healthcare workers and community mobilizers have commenced a nationwide immunization drive targeting vaccine-preventable childhood illnesses. Vaccination remains the single most cost-effective public health intervention in human history. The current campaign emphasizes: - Ensuring all children under 2 years complete the routine EPI schedule including BCG, Pentavalent, OPV/IPV, Pneumococcal, and Measles-Rubella vaccines. - Administering the Typhoid Conjugate Vaccine (TCV) in areas with documented XDR Typhoid clusters. - Addressing community misconceptions through local health educators, lady health workers, and religious leaders. Parents and guardians are encouraged to verify their children's vaccination cards at the nearest health facility.`, contentUrdu: `صحت کے کارکنوں اور کمیونٹی رضاکاروں نے بچوں کو مہلک بیماریوں سے بچانے کے لیے قومی ویکسینیشن مہم شروع کر دی ہے۔ اہم نکات: - 2 سال سے کم عمر تمام بچوں کے بنیادی حفاظتی ٹیکوں کا کورس مکمل کروائیں۔ - ٹائیفائیڈ سے بچاؤ کے لیے نئی ٹی سی وی (TCV) ویکسین ضرور لگوائیں۔ - کسی بھی افواہ پر کان دھرے بغیر بچوں کے مستقبل کو محفوظ بنائیں۔`, featuredImage: 'https://images.unsplash.com/photo-1632053002928-19fa62529944?auto=format&fit=crop&w=1200&q=80', category: 'Immunization & Child Health', categoryUrdu: 'حفاظتی ٹیکے اور بچوں کی صحت', date: '2026-08-12', author: 'Public Health Plus Bureau', readTime: '4 min read', published: true }, { id: 'news-3', title: 'Combatting the NCD Crisis: The Crucial Role of Dietary Salt Reduction & Active Living', titleUrdu: 'غیر متعدی امراض کا مقابلہ: نمک کی کمی اور روزمرہ چہل قدمی کی اہمیت', summary: 'Cardiologists and epidemiologists emphasize simple lifestyle modifications that reduce hypertension and cardiovascular events by up to 30%.', summaryUrdu: 'ماہرین امراض قلب کے مطابق خوراک میں نمک کی مقدار کم کرنے اور روزانہ 30 منٹ واک سے بلڈ پریشر اور دل کے امراض کے خطرات میں نمایاں کمی ممکن ہے۔', content: `Cardiovascular diseases and diabetes represent over 60% of all premature chronic disease mortality. In an evidence-based briefing, Public Health Plus specialists highlighted practical community-level interventions: 1. Salt Reduction: Cutting dietary sodium intake below 5 grams (1 teaspoon) daily directly lowers systolic blood pressure by 5-8 mmHg across populations. 2. Physical Activity: Aim for 150 minutes of moderate aerobic movement each week. Brisk walking improves insulin sensitivity and cardiovascular endurance. 3. Trans-Fat Elimination: Avoiding partially hydrogenated cooking oils protects against arterial plaque accumulation. Community health clinics are urged to offer free blood pressure and glucose checks during every routine clinical encounter.`, contentUrdu: `دل کی بیماریاں اور ذیابیطس ہمارے معاشرے میں تیزی سے بڑھ رہی ہیں۔ ماہرین کے مطابق طرز زندگی میں معمولی تبدیلیاں بڑی بیماریوں سے بچا سکتی ہیں: 1. نمک کا کم استعمال: روزانہ ایک چائے کے چمچ سے کم نمک کھانا بلڈ پریشر کو معمول پر لانے میں مدد دیتا ہے۔ 2. باقاعدہ ورزش: روزانہ 30 منٹ تیز چہل قدمی شوگر اور دل کے دورے کے خطرے کو 30 فیصد تک کم کر دیتی ہے۔ 3. گھی اور تلی ہوئی چیزوں سے پرہیز: شریانوں کو بند ہونے سے بچانے کے لیے چکنائی کا استعمال محدود کریں۔`, featuredImage: 'https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1200&q=80', category: 'Preventive Health', categoryUrdu: 'حفظانِ صحت اور تدارک', date: '2026-08-04', author: 'Dr. Mushtaque Ahmed Shah, Public Health Specialist', readTime: '3 min read', published: true }, { id: 'news-4', title: 'Clean Water & Sanitation: Primary Defense Against Waterborne Infections', titleUrdu: 'صاف پانی اور نکاسی آب: پیٹ کے امراض اور یرقان کے خلاف پہلی دفاعی لائن', summary: 'Guidelines on home water purification and hand hygiene to prevent outbreaks of Hepatitis A, E, Cholera, and acute gastroenteritis.', summaryUrdu: 'ہیپاٹائٹس اے، ای، ہیضہ اور گیسٹرو کے تدارک کے لیے گھریلو سطح پر پانی ابالنے اور ہاتھ دھونے کی خصوصی گائیڈ لائنز۔', content: `Access to microbiologically safe water remains the cornerstone of environmental health. With rising summer temperatures, incidences of waterborne diarrhea and viral hepatitis frequently surge. Health Guidelines: - Boil municipal tap water vigorously for at least 1-3 minutes before drinking or culinary preparation. - Practice the 6-step handwashing technique with soap before eating and after toilet use. - Maintain a minimum 10-meter separation between septic drainage pits and domestic water bores to prevent underground sewage cross-contamination.`, contentUrdu: `پینے کے صاف پانی کی فراہمی صحت مند معاشرے کی بنیادی ضرورت ہے۔ آلودہ پانی پینے سے ہیپاٹائٹس، ٹائیفائیڈ اور ہیضہ جیسے امراض جنم لیتے ہیں۔ حفاظتی تدابیر: - پینے کے پانی کو کم از کم 3 منٹ تک اچھی طرح ابال کر ٹھنڈا کریں۔ - کھانے سے پہلے اور بیت الخلاء کے بعد صابن سے ہاتھ اچھی طرح دھوئیں۔ - زیر زمین پانی کی ٹینکیوں کی باقاعدہ صفائی اور کلورینیشن کروائیں۔`, featuredImage: 'https://images.unsplash.com/photo-1548839140-29a749e1bc4e?auto=format&fit=crop&w=1200&q=80', category: 'Environmental Health', categoryUrdu: 'ماحولیاتی صحت', date: '2026-07-28', author: 'Public Health Plus Bureau', readTime: '3 min read', published: true } ]; const initialMedia: MediaItem[] = [ { id: 'media-1', type: 'video', title: 'Understanding Dengue Transmission & Household Vector Control', titleUrdu: 'ڈینگی کا پھیلاؤ اور گھروں میں مچھروں کی روک تھام کا طریقہ', description: 'An evidence-informed animated guide illustrating the lifecycle of the Aedes mosquito and practical steps to eliminate indoor breeding points.', descriptionUrdu: 'ایڈیز مچھر کی افزائشِ نسل اور گھر کے اندر اور باہر لاروا تلف کرنے کے آسان سائنسی طریقے پر معلوماتی ویڈیو۔', url: 'https://www.youtube.com/embed/dQw4w9WgXcQ', // Safe video embed thumbnailUrl: 'https://images.unsplash.com/photo-1584036561566-baf8f5f1b144?auto=format&fit=crop&w=800&q=80', topic: 'Disease Prevention', topicUrdu: 'بیماریوں سے بچاؤ', date: '2026-08-15', duration: '4:20', published: true }, { id: 'media-2', type: 'video', title: 'Proper Blood Pressure Measurement Technique at Home', titleUrdu: 'گھر پر بلڈ پریشر چیک کرنے کا درست اور معیاری طریقہ', description: 'Dr. Mushtaque Ahmed Shah explains how to properly position the arm, rest before readings, and avoid common errors in home blood pressure monitoring.', descriptionUrdu: 'گھر پر ڈیجیٹل یا مینوئل بی پی چیک کرتے وقت احتیاطی تدابیر اور درست طریقہ کار پر تفصیلی رہنمائی۔', url: 'https://www.youtube.com/embed/dQw4w9WgXcQ', thumbnailUrl: 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80', topic: 'Health Awareness', topicUrdu: 'صحت کی آگاہی', date: '2026-08-01', duration: '5:45', published: true }, { id: 'media-3', type: 'image', title: 'Infographic: The 6 Steps of Effective Hand Hygiene', titleUrdu: 'انفوگرافک: صابن سے ہاتھ دھونے کے 6 بنیادی اور موثر مراحل', description: 'High-resolution instructional infographic showing WHO-standard handwashing technique with soap and clean water to halt pathogen transmission.', descriptionUrdu: 'جراثیم اور وائرس سے حفاظت کے لیے صابن اور پانی سے ہاتھ دھونے کا تصدیق شدہ طریقہ۔', url: 'https://images.unsplash.com/photo-1584515979956-d9f6e5d09982?auto=format&fit=crop&w=1200&q=80', thumbnailUrl: 'https://images.unsplash.com/photo-1584515979956-d9f6e5d09982?auto=format&fit=crop&w=600&q=80', topic: 'Hygiene & Sanitation', topicUrdu: 'صفائی اور حفظانِ صحت', date: '2026-07-20', published: true }, { id: 'media-4', type: 'image', title: 'Infographic: Diabetes Nutrition Plate — Balanced Meal Planning', titleUrdu: 'انفوگرافک: شوگر کے مریضوں کے لیے متوازن کھانے کی پلیٹ', description: 'Visual breakdown of the healthy plate method: 50% non-starchy vegetables, 25% lean protein, and 25% whole-grain complex carbohydrates.', descriptionUrdu: 'شوگر کو قابو میں رکھنے کے لیے آدھی پلیٹ سبزیوں، ایک چوتھائی پروٹین اور ایک چوتھائی دیسی اناج کا متناسب استعمال۔', url: 'https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1200&q=80', thumbnailUrl: 'https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=600&q=80', topic: 'Nutrition', topicUrdu: 'غذائیت', date: '2026-07-10', published: true } ]; const initialReports: ReportItem[] = [ { id: 'rep-1', title: 'Epidemiological Assessment of Vector-Borne Disease Trends & Early Warning Systems', titleUrdu: 'مچھروں سے پھیلنے والی بیماریوں کے رجحانات اور قبل از وقت وارننگ کا ایپیڈیمیولوجیکل جائزہ', category: 'Communicable Diseases', categoryUrdu: 'متعدی امراض', description: 'A longitudinal research study evaluating mosquito density, climate variables, and rapid response mechanisms across urban settlements.', descriptionUrdu: 'شہری آبادیوں میں مچھروں کی کثافت، موسمیاتی تبدیلی اور فوری ردعمل کے نظام کا سائنسی جائزہ۔', coverImage: 'https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80', date: '2026-07-15', fileUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', downloadUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', fileSize: '3.4 MB', pageCount: 38, published: true, abstractText: 'This study analyses spatial-temporal distribution patterns of Aedes and Anopheles species across high-density urban clusters over a 36-month period. Findings demonstrate that integrated larval source management coupled with community-led surveillance reduces secondary transmission indices by 42%. Recommendations focus on institutionalizing real-time mobile reporting at primary healthcare clinics.', abstractTextUrdu: 'اس تحقیق میں پچھلے 3 سالوں کے دوران شہری علاقوں میں ڈینگی اور ملیریا کے پھیلاؤ کا تفصیلی جائزہ لیا گیا ہے۔ نتائج سے ظاہر ہوتا ہے کہ عوامی آگاہی اور بروقت لاروا کی تلفی سے بیماری کے پھیلاؤ میں 42 فیصد تک کمی لائی جا سکتی ہے۔', author: 'Dr. Mushtaque Ahmed Shah et al.', authors: 'Dr. Mushtaque Ahmed Shah et al.' }, { id: 'rep-2', title: 'Non-Communicable Diseases Policy Brief: Strengthening Primary Care Screening for Hypertension & Diabetes', titleUrdu: 'پالیسی رپورٹ: بنیادی مراکز صحت میں شوگر اور بلڈ پریشر کی اسکریننگ کو مؤثر بنانے کی تجاویز', category: 'Non-Communicable Diseases', categoryUrdu: 'غیر متعدی امراض', description: 'Strategic policy framework outlining task-sharing models for Lady Health Workers and primary clinicians to detect metabolic conditions before complications arise.', descriptionUrdu: 'بنیادی ہیلتھ کیئر یونٹس میں شوگر اور بلڈ پریشر کی مفت اور فوری تشخیص کے لیے جامع پالیسی فریم ورک۔', coverImage: 'https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=800&q=80', date: '2026-06-01', fileUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', downloadUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', fileSize: '2.1 MB', pageCount: 24, published: true, abstractText: 'Non-communicable diseases account for increasing disability-adjusted life years (DALYs). This policy report evaluates the implementation of opportunistic screening protocols at primary health centers. Integrating standardized digital registries and empowering community workers with validated blood pressure monitors yielded a 2.8-fold increase in timely diagnoses.', abstractTextUrdu: 'اس رپورٹ میں ضلعی اور دیہی سطح پر بنیادی مراکز صحت کے ذریعے ہائی بلڈ پریشر اور ذیابیطس کے بروقت اندراج اور علاج کی حکمت عملی پیش کی گئی ہے۔', author: 'Public Health Plus Advisory Council', authors: 'Public Health Plus Advisory Council' }, { id: 'rep-3', title: 'Public Health Bulletin: Monsoon Preparedness & Waterborne Infection Containment', titleUrdu: 'عوامی صحت بلیٹن: بارشوں اور سیلابی صورتحال میں وبائی امراض کی روک تھام', category: 'Policy & Systems', categoryUrdu: 'پالیسی اور نظام', description: 'Emergency public health bulletin detailing water quality monitoring, emergency chlorination dosages, and acute diarrhea management kits.', descriptionUrdu: 'ہنگامی حالات میں پینے کے پانی کی کلورینیشن، دست اور ہیضے کے علاج کے لیے ایمرجنسی گائیڈ۔', coverImage: 'https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?auto=format&fit=crop&w=800&q=80', date: '2026-07-01', fileUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', downloadUrl: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', fileSize: '1.2 MB', pageCount: 12, published: true, abstractText: 'Seasonal monsoon precipitation frequently triggers outbreaks of acute watery diarrhea and hepatitis. This technical bulletin provides clear guidance on household water disinfection tablets (Aqua-tabs/Chlorine), ORS distribution protocols, and clinical triage criteria for dehydration in pediatric populations.', abstractTextUrdu: 'بارشوں کے دوران پانی کے ذرائع آلودہ ہونے کی صورت میں پانی کو جراثیم سے پاک کرنے، او آر ایس کے استعمال اور فوری طبی امداد کی تکنیکی ہدایات۔', author: 'Department of Epidemiological Surveillance', authors: 'Department of Epidemiological Surveillance' } ]; const initialHealthTopics: HealthTopic[] = [ { id: 'health-awareness', slug: 'health-awareness', title: 'Health Awareness', titleUrdu: 'صحت کی عمومی آگاہی', tagline: 'Empowering individuals with reliable, evidence-based medical knowledge.', taglineUrdu: 'عوام کو درست اور سائنسی طبی معلومات سے بااختیار بنانا۔', iconName: 'Sparkles', summary: 'Health literacy is the foundation of preventive medicine. When families understand the signs of illness, immunization schedules, and when to seek professional care, health outcomes improve across the whole community.', summaryUrdu: 'طبی آگاہی صحت مند معاشرے کی بنیاد ہے۔ جب افراد کو بیماریوں کی ابتدائی علامات اور حفاظتی تدابیر کا شعور ہوتا ہے تو پورے خاندان کی صحت محفوظ رہتی ہے۔', keyTips: [ 'Know your numbers: monitor blood pressure, fasting glucose, and BMI at least once a year.', 'Always consult qualified medical practitioners and avoid unverified medical myths on social media.', 'Ensure complete vaccination schedules for all family members from infancy through adulthood.', 'Maintain an updated household first-aid kit with basic antiseptic, sterile dressings, and thermometer.' ], keyTipsUrdu: [ 'اپنے بنیادی ہیلتھ نمبرز (بی پی، شوگر اور وزن) کا سال میں کم از کم ایک بار ٹیسٹ کروائیں۔', 'سوشل میڈیا پر بغیر تصدیق شدہ طبی ٹوٹکوں کی بجائے مستند ڈاکٹر سے رجوع کریں۔', 'بچوں کے حفاظتی ٹیکوں کا کارڈ ہمیشہ محفوظ رکھیں۔', 'گھر میں ابتدائی طبی امداد کا سامان (تھرمامیٹر، بینڈیج، او آر ایس) موجود رکھیں۔' ], image: 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80' }, { id: 'disease-prevention', slug: 'disease-prevention', title: 'Disease Prevention', titleUrdu: 'بیماریوں سے تدارک اور بچاؤ', tagline: 'Stopping diseases before they take root through immunization and hygiene.', taglineUrdu: 'علاج سے پرہیز بہتر ہے: بروقت ویکسین اور حفظانِ صحت سے بیماریوں کا خاتمہ۔', iconName: 'ShieldCheck', summary: 'Primary prevention focuses on preventing diseases before they occur by reducing exposures to hazards, enhancing resistance to infectious agents, and promoting healthy environmental practices.', summaryUrdu: 'بیماریوں کے خلاف بروقت حفاظتی تدابیر اپنانے سے نہ صرف جانیں بچتی ہیں بلکہ علاج کے بھاری اخراجات سے بھی نجات ملتی ہے۔', keyTips: [ 'Wash hands thoroughly with soap for 20 seconds before food handling and after using the restroom.', 'Never reuse syringes or medical supplies without single-use sterilization confirmation.', 'Eliminate stagnant water around residential spaces to prevent vector proliferation.', 'Adhere to full courses of prescribed medications to prevent antimicrobial resistance.' ], keyTipsUrdu: [ 'کھانے سے پہلے اور بیت الخلاء کے بعد صابن سے ہاتھ 20 سیکنڈ تک دھوئیں۔', 'ہمیشہ نئی اور سیل بند سرنج کا استعمال یقینی بنائیں۔', 'مچھروں کی افزائش روکنے کے لیے کھڑے پانی کا خاتمہ کریں۔', 'اینٹی بائیوٹک ادویات کا کورس ڈاکٹر کی ہدایت کے مطابق پورا کریں۔' ], image: 'https://images.unsplash.com/photo-1584515979956-d9f6e5d09982?auto=format&fit=crop&w=800&q=80' }, { id: 'healthy-living', slug: 'healthy-living', title: 'Healthy Living', titleUrdu: 'صحت مند طرزِ زندگی', tagline: 'Daily habits that cultivate physical resilience, mental calmness, and longevity.', taglineUrdu: 'روزمرہ کی عادات جو جسمانی چستی، ذہنی سکون اور لمبی عمر کا ضامن بنتی ہیں۔', iconName: 'Activity', summary: 'A sustainable healthy lifestyle integrates daily moderate physical activity, restorative sleep, stress mitigation, and the avoidance of harmful substances such as tobacco and excessive refined sugars.', summaryUrdu: 'روزانہ کی چہل قدمی، متوازن نیند، تمباکو سے دوری اور ذہنی دباؤ پر قابو پا کر انسان ایک پرلطف اور توانا زندگی گزار سکتا ہے۔', keyTips: [ 'Engage in at least 30 minutes of moderate aerobic exercise (brisk walking) 5 days a week.', 'Prioritize 7 to 8 hours of continuous, restorative sleep in a dark, quiet environment.', 'Stay adequately hydrated with 8-10 glasses of clean, boiled or filtered water daily.', 'Practice deep diaphragmatic breathing and take regular breaks from screen time.' ], keyTipsUrdu: [ 'ہفتے میں 5 دن کم از کم 30 منٹ تیز واک یا ورزش کریں۔', 'روزانہ رات کو 7 سے 8 گھنٹے کی پرسکون نیند لیں۔', 'دن بھر میں 8 سے 10 گلاس صاف پانی پئیں۔', 'موبائل اور اسکرین کا بے جا استعمال کم کریں۔' ], image: 'https://images.unsplash.com/photo-1517838277536-f5f99be501cd?auto=format&fit=crop&w=800&q=80' }, { id: 'nutrition', slug: 'nutrition', title: 'Nutrition', titleUrdu: 'متوازن غذا اور غذائیت', tagline: 'Fueling your body with wholesome, nutrient-dense natural foods.', taglineUrdu: 'قدرتی، غذائیت سے بھرپور اور متوازن خوراک کا انتخاب۔', iconName: 'Apple', summary: 'Optimal nutrition provides essential micronutrients and macronutrients needed for cellular repair, strong immunity, and metabolic equilibrium while reducing the risks of cardiovascular disease and diabetes.', summaryUrdu: 'اچھی خوراک جسم کی بیماریوں سے لڑنے کی صلاحیت بڑھاتی ہے اور شوگر، بلڈ پریشر اور موٹاپے جیسے مسائل سے محفوظ رکھتی ہے۔', keyTips: [ 'Fill half your plate with colorful vegetables and whole fruits at main meals.', 'Choose complex carbohydrates (whole-wheat, lentils, brown rice) over refined white flour and white sugar.', 'Reduce processed sodium intake by limiting fried snacks, pickles, and salty packaged goods.', 'Opt for unadulterated plant oils in moderate quantities instead of heavy hydrogenated fats.' ], keyTipsUrdu: [ 'کھانے میں تازہ سبزیوں اور سلاد کی مقدار زیادہ رکھیں۔', 'میدہ اور چینی کی بجائے چکی کا آٹا اور دالیں استعمال کریں۔', 'تلی ہوئی اشیاء، بیکری اور پیک شدہ کھانوں سے پرہیز کریں۔', 'ڈالڈا گھی کی بجائے معیاری تیل کا اعتدال کے ساتھ استعمال کریں۔' ], image: 'https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=800&q=80' }, { id: 'environmental-health', slug: 'environmental-health', title: 'Environmental Health', titleUrdu: 'ماحولیاتی صحت اور تحفظ', tagline: 'Clean air, safe water, and sanitary living surroundings for all.', taglineUrdu: 'صاف ہوا، محفوظ پانی اور صاف ستھرا ماحول صحت مند زندگی کی ضمانت ہے۔', iconName: 'Droplet', summary: 'Environmental health examines how air pollution, contaminated water systems, improper solid waste disposal, and chemical exposures influence community disease burdens.', summaryUrdu: 'ہوا اور پانی کی آلودگی اور کوڑے کرکٹ کے ناقص نظام سے بے شمار بیماریاں جنم لیتی ہیں جن کے سدباب کے لیے اجتماعی کوشش ضروری ہے۔', keyTips: [ 'Boil or filter all drinking water to prevent microbial pathogens and parasites.', 'Properly bag and dispose of household waste to avoid attracting flies, rodents, and stray animals.', 'Protect lungs during winter smog episodes by wearing well-fitted N95 masks outdoors.', 'Ensure adequate ventilation in kitchens to prevent dangerous indoor smoke inhalation.' ], keyTipsUrdu: [ 'پینے کے پانی کو ابال کر پئیں تاکہ پیٹ کے امراض سے بچا جا سکے۔', 'گھر کے کوڑے کو کھلے عام نہ پھینکیں بلکہ ڈھکے ہوئے ڈسٹ بن میں رکھیں۔', 'اسموگ اور گرد و غبار کے دوران باہر نکلتے وقت ماسک کا استعمال کریں۔', 'باورچی خانے میں دھوئیں کے اخراج کا مناسب بندوبست رکھیں۔' ], image: 'https://images.unsplash.com/photo-1548839140-29a749e1bc4e?auto=format&fit=crop&w=800&q=80' } ]; const initialDrProfile: DrProfile = { name: 'Dr. Mushtaque Ahmed Shah', nameUrdu: 'ڈاکٹر مشتاق احمد شاہ', title: 'Public Health Specialist', titleUrdu: 'پبلک ہیلتھ اسپیشلسٹ', qualifications: 'MBBS | MPH | M.Phil (UK)', qualificationsUrdu: 'ایم بی بی ایس | ایم پی ایچ | ایم فل (برطانیہ)', photoUrl: 'https://images.unsplash.com/photo-1622253692010-333f2da6031d?auto=format&fit=crop&w=800&q=80', biography: 'Dr. Mushtaque Ahmed Shah is an experienced Public Health Specialist dedicated to advancing evidence-informed epidemiology, communicable and non-communicable disease control, and community health literacy. With advanced post-graduate qualifications from the United Kingdom (M.Phil) alongside his MBBS and Master of Public Health (MPH), Dr. Shah has contributed extensively to primary healthcare strengthening, vector-borne surveillance frameworks, and public health policy formulations.', biographyUrdu: 'ڈاکٹر مشتاق احمد شاہ ایک معروف پبلک ہیلتھ اسپیشلسٹ ہیں جو سائنسی بنیادوں پر بیماریوں کی روک تھام، متعدی اور غیر متعدی امراض کی نگرانی اور عوامی صحت کی آگاہی کے فروغ کے لیے سرگرم عمل ہیں۔ برطانیہ سے ایم فل اور ایم پی ایچ کی اعلیٰ اسناد کے ساتھ انہوں نے پرائمری ہیلتھ کیئر اور پبلک ہیلتھ پالیسیوں میں گرانقدر خدمات انجام دی ہیں۔', areasOfExpertise: [ 'Epidemiological Surveillance & Disease Outbreak Response', 'Communicable Disease Control (Dengue, Malaria, Tuberculosis, Hepatitis)', 'Non-Communicable Disease Prevention (Hypertension, Diabetes, CVDs)', 'Health Systems Strengthening & Primary Healthcare Management', 'Evidence-Informed Public Health Communication & Community Mobilization' ], areasOfExpertiseUrdu: [ 'ایپیڈیمیولوجیکل نگرانی اور وبائی امراض کی فوری روک تھام', 'متعدی امراض کا سدباب (ڈینگی، ملیریا، ٹی بی، ہیپاٹائٹس)', 'غیر متعدی امراض سے بچاؤ (بلڈ پریشر، ذیابیطس، امراضِ قلب)', 'ہیلتھ سسٹمز اور بنیادی مراکز صحت کا انتظامی ڈھانچہ', 'شواہد پر مبنی عوامی صحت کی آگاہی اور کمیونٹی گائیڈنس' ], experience: [ { role: 'Senior Public Health Consultant & Specialist', organization: 'Public Health Plus Platform', period: '2020 – Present', details: 'Leading institutional public health education, epidemiological advisory reviews, and community preventive health communication.' }, { role: 'Public Health Advisory & Program Management', organization: 'Healthcare Systems & Preventive Medicine Programs', period: '2012 – 2020', details: 'Supervised vector control initiatives, primary health screening modules, and immunization expansion programs.' }, { role: 'Clinical & Community Health Practice', organization: 'Tertiary & District Healthcare Facilities', period: '2005 – 2012', details: 'Direct patient care, emergency triage, and implementation of DOTS tuberculosis and viral hepatitis clinical pathways.' } ], publications: [ { title: 'Longitudinal Analysis of Vector-Borne Disease Dynamics in Rapidly Urbanizing Communities', journal: 'International Public Health Review', year: '2024' }, { title: 'Evaluating Primary Healthcare Task-Sharing Models for Hypertension Screening', journal: 'Journal of Preventive & Community Medicine', year: '2022' }, { title: 'Barriers to Immunization Completion: Community Insights & Operational Solutions', journal: 'Epidemiology and Health Policy Journal', year: '2019' } ], reports: [ { title: 'Monsoon Vector-Borne Preparedness and Mitigation Standard Operating Procedures', year: '2025', role: 'Lead Author & Technical Reviewer' }, { title: 'Strategic Roadmap for Primary Care Integration of Non-Communicable Diseases', year: '2023', role: 'Public Health Specialist Contributor' } ], achievements: [ 'Recognized contributor to evidence-informed national disease control guidelines', 'Pioneered community-centric health literacy initiatives across underserved districts', 'Advocated for primary healthcare workforce capacity building and standard diagnostic protocols' ], achievementsUrdu: [ 'شواہد پر مبنی بیماریوں کی روک تھام کی قومی گائیڈ لائنز میں نمایاں کردار', 'پسماندہ علاقوں میں عوامی صحت کی آگاہی کے مؤثر پروگراموں کا قیام', 'بنیادی طبی عملے کی استعداد کار بڑھانے میں رہنمائی' ] }; const initialSiteSettings: SiteSettings = { logoText: 'PUBLIC HEALTH PLUS', taglineEn: 'Trusted Health Information • Prevention • Public Health Awareness', taglineUr: 'مستند معلوماتِ صحت • بچاؤ • عوامی آگاہی', address: 'Public Health Information Center, Health Boulevard, Institutional Sector', email: 'info@publichealthplus.org', phone: '+92 300 1234567', socialLinks: { facebook: 'https://facebook.com/publichealthplus', youtube: 'https://youtube.com/@publichealthplus', tiktok: 'https://tiktok.com/@publichealthplus', linkedin: 'https://linkedin.com/company/publichealthplus' }, aboutUsIntro: 'Public Health Plus is an independent public-health information and awareness platform dedicated to bridging the gap between clinical science and community wellness. We focus on reliable disease prevention, verified medical information, and evidence-informed public communication.', aboutUsIntroUrdu: 'پبلک ہیلتھ پلس ایک آزاد اور غیر جانبدار عوامی صحت کا معلوماتی پلیٹ فارم ہے جس کا مقصد میڈیکل سائنس اور کمیونٹی کے درمیان فہم کے فاصلے کو ختم کرنا ہے۔ ہم مستند معلومات، بیماریوں سے بچاؤ اور شواہد پر مبنی رہنمائی فراہم کرتے ہیں۔', mission: 'To make reliable public-health knowledge accessible, understandable and useful for everyone.', missionUrdu: 'قابلِ اعتماد عوامی صحت کے علم کو ہر انسان کے لیے قابلِ فہم، قابلِ رسائی اور مفید بنانا۔' }; const initialSubscribers: Subscriber[] = [ { id: 'sub-1', email: 'community.health@example.com', subscribedAt: '2026-08-10', active: true }, { id: 'sub-2', email: 'dr.rehman@hospital.org', subscribedAt: '2026-08-14', active: true }, { id: 'sub-3', email: 'fatima.wellness@mail.com', subscribedAt: '2026-08-19', active: true } ]; // ===== src/data/translations.ts ===== interface TranslationStrings { // Navigation navHome: string; navDiseases: string; navNews: string; navMedia: string; navReports: string; navAbout: string; navAdmin: string; // Hero heroTagline: string; heroIntro: string; exploreDiseasesBtn: string; latestNewsBtn: string; // Sections sectionNewsTitle: string; sectionNewsSubtitle: string; viewAllNewsBtn: string; readMoreBtn: string; sectionDiseasesTitle: string; sectionDiseasesSubtitle: string; exploreDiseasesHubBtn: string; communicableTitle: string; nonCommunicableTitle: string; communicableDesc: string; nonCommunicableDesc: string; viewDiseaseGuide: string; sectionCommunityTitle: string; sectionCommunitySubtitle: string; exploreHealthTopicsBtn: string; sectionMediaTitle: string; sectionMediaSubtitle: string; viewAllMediaBtn: string; watchVideo: string; viewImage: string; shareContent: string; videoProtectedNotice: string; sectionReportsTitle: string; sectionReportsSubtitle: string; viewAllReportsBtn: string; readReport: string; categoryResearch: string; categoryReports: string; categoryBulletins: string; newsletterTitle: string; newsletterSubtitle: string; newsletterPlaceholder: string; subscribeBtn: string; subscribingBtn: string; subscribedSuccess: string; // About Us aboutTitle: string; aboutIntroTitle: string; missionTitle: string; missionStatement: string; drProfileTitle: string; drSpecialist: string; biographyTitle: string; expertiseTitle: string; experienceTitle: string; publicationsTitle: string; reportsContributionsTitle: string; achievementsTitle: string; viewFullProfileBtn: string; // Footer contactHeading: string; quickLinksHeading: string; socialMediaHeading: string; disclaimer: string; rightsReserved: string; adminPortalLink: string; // Search searchPlaceholder: string; searchAllPrompt: string; searchResultsFor: string; noResultsFound: string; searchingIn: string; // Common all: string; filterByCategory: string; publishedOn: string; backToHome: string; back: string; close: string; copyLink: string; linkCopied: string; shareViaWhatsapp: string; shareViaFacebook: string; shareViaX: string; keyTransmission: string; symptoms: string; prevention: string; riskFactors: string; testingScreening: string; managementTreatment: string; guidelinesResources: string; references: string; overview: string; } const translations: Record<'en' | 'ur', TranslationStrings> = { en: { navHome: 'HOME', navDiseases: 'DISEASES', navNews: 'NEWS', navMedia: 'VIDEOS & IMAGES', navReports: 'REPORTS', navAbout: 'ABOUT US', navAdmin: 'Admin Portal', heroTagline: 'Trusted Health Information • Prevention • Public Health Awareness', heroIntro: 'Reliable, understandable and evidence-informed health information for communities, health professionals and decision-makers.', exploreDiseasesBtn: 'Explore Diseases', latestNewsBtn: 'Latest News', sectionNewsTitle: 'Latest News', sectionNewsSubtitle: 'Current updates, outbreak alerts, and evidence-informed public health advisories', viewAllNewsBtn: 'View All News →', readMoreBtn: 'Read More', sectionDiseasesTitle: 'Disease Information Hub', sectionDiseasesSubtitle: 'Comprehensive, clinically vetted knowledge on prevention, testing, and management', exploreDiseasesHubBtn: 'Explore Disease Information →', communicableTitle: 'Communicable Diseases', nonCommunicableTitle: 'Non-Communicable Diseases', communicableDesc: 'Infectious illnesses transmitted through vectors, airborne transmission, water, or direct contact.', nonCommunicableDesc: 'Chronic conditions, lifestyle-related disorders, and metabolic health conditions.', viewDiseaseGuide: 'View Clinical Guide →', sectionCommunityTitle: 'Community Health & Prevention', sectionCommunitySubtitle: 'Practical preventive strategies, healthy living guidance, and community wellness', exploreHealthTopicsBtn: 'Explore Health Topics →', sectionMediaTitle: 'Videos & Images', sectionMediaSubtitle: 'Educational videos, infographics, and verified visual health guides', viewAllMediaBtn: 'View All Videos & Images →', watchVideo: 'Watch Video', viewImage: 'View Infographic', shareContent: 'Share Content', videoProtectedNotice: 'Protected public health broadcast. Streaming only.', sectionReportsTitle: 'Research & Reports', sectionReportsSubtitle: 'Epidemiological studies, policy reports, and public health bulletins', viewAllReportsBtn: 'View All Reports →', readReport: 'Read Report / Document', categoryResearch: 'Research', categoryReports: 'Reports', categoryBulletins: 'Bulletins', newsletterTitle: 'Public Health Plus Newsletter', newsletterSubtitle: 'Get the latest Public Health Plus updates, health advisories and research bulletins directly in your inbox.', newsletterPlaceholder: 'Enter your email address', subscribeBtn: 'Subscribe', subscribingBtn: 'Subscribing...', subscribedSuccess: 'Thank you for subscribing to Public Health Plus updates!', aboutTitle: 'About Public Health Plus', aboutIntroTitle: 'Independent Public Health Initiative', missionTitle: 'Our Mission', missionStatement: 'To make reliable public-health knowledge accessible, understandable and useful for everyone.', drProfileTitle: 'Public Health Leadership', drSpecialist: 'Public Health Specialist', biographyTitle: 'Biography', expertiseTitle: 'Areas of Expertise', experienceTitle: 'Professional Experience', publicationsTitle: 'Publications & Research', reportsContributionsTitle: 'Reports & Policy Contributions', achievementsTitle: 'Key Achievements & Affiliations', viewFullProfileBtn: 'View Full Profile →', contactHeading: 'Contact & Inquiries', quickLinksHeading: 'Quick Navigation', socialMediaHeading: 'Follow Public Health Plus', disclaimer: 'Disclaimer: The information provided on Public Health Plus is for educational and public awareness purposes only and should not replace professional medical diagnosis or emergency healthcare.', rightsReserved: '© 2026 Public Health Plus — All Rights Reserved', adminPortalLink: 'Admin Portal', searchPlaceholder: 'Search diseases, symptoms, news, reports, topics...', searchAllPrompt: 'Search health information...', searchResultsFor: 'Search Results for', noResultsFound: 'No matching public health records found.', searchingIn: 'Searching across all databases', all: 'All', filterByCategory: 'Filter by Category', publishedOn: 'Published on', backToHome: '← Back to Home', back: 'Back', close: 'Close', copyLink: 'Copy Link', linkCopied: 'Link copied to clipboard!', shareViaWhatsapp: 'WhatsApp', shareViaFacebook: 'Facebook', shareViaX: 'X (Twitter)', keyTransmission: 'Transmission & Vectors', symptoms: 'Symptoms & Clinical Presentation', prevention: 'Prevention & Protection Measures', riskFactors: 'Risk Factors', testingScreening: 'Testing, Screening & Diagnosis', managementTreatment: 'Management & Treatment Information', guidelinesResources: 'Resources & Community Guidelines', references: 'Authoritative Scientific References', overview: 'Clinical Overview & Public Health Significance' }, ur: { navHome: 'صفحۂ اول', navDiseases: 'بیماریاں', navNews: 'تازہ ترین خبریں', navMedia: 'ویڈیوز اور تصاویر', navReports: 'تحقیقات اور رپورٹس', navAbout: 'ہمارے بارے میں', navAdmin: 'ایڈمن پورٹل', heroTagline: 'مستند معلوماتِ صحت • بچاؤ • عوامی آگاہی', heroIntro: 'کمیونٹیز، ہیلتھ کیئر پروفیشنلز اور فیصلہ سازوں کے لیے قابلِ اعتماد، شواہد پر مبنی اور آسان فہم معلوماتِ صحت۔', exploreDiseasesBtn: 'بیماریوں کی معلومات', latestNewsBtn: 'تازہ ترین خبریں', sectionNewsTitle: 'تازہ ترین خبریں اور اعلانات', sectionNewsSubtitle: 'عوامی صحت کے تازہ ترین انتباہات، خبریں اور رہنمائی', viewAllNewsBtn: 'تمام خبریں دیکھیں ←', readMoreBtn: 'مزید پڑھیں', sectionDiseasesTitle: 'بیماریوں کی معلومات کا مرکز', sectionDiseasesSubtitle: 'بچاؤ، تشخیص، علامات اور علاج کے متعلق جامع اور مستند معلومات', exploreDiseasesHubBtn: 'بیماریوں کی مکمل معلومات ←', communicableTitle: 'متعدی بیماریاں (چھوت کی بیماریاں)', nonCommunicableTitle: 'غیر متعدی امراض (دائمی بیماریاں)', communicableDesc: 'وائرس، بیکٹیریا، مچھروں اور پانی کے ذریعے پھیلنے والی بیماریاں۔', nonCommunicableDesc: 'طرزِ زندگی، دل، شوگر اور سانس کے دائمی امراض۔', viewDiseaseGuide: 'مکمل طبی رہنمائی دیکھیں ←', sectionCommunityTitle: 'کمیونٹی ہیلتھ اور بچاؤ', sectionCommunitySubtitle: 'احتیاطی تدابیر، صحت بخش طرز زندگی اور ماحولیاتی صحت', exploreHealthTopicsBtn: 'صحت کے موضوعات دیکھیں ←', sectionMediaTitle: 'ویڈیوز اور معلوماتی تصاویر', sectionMediaSubtitle: 'صحت سے متعلق تصدیق شدہ ویڈیوز اور انفوگرافکس', viewAllMediaBtn: 'تمام ویڈیوز اور تصاویر دیکھیں ←', watchVideo: 'ویڈیو دیکھیں', viewImage: 'تصویر / انفوگرافک دیکھیں', shareContent: 'شیئر کریں', videoProtectedNotice: 'محفوظ نشریات۔ صرف براہِ راست دیکھنے کے لیے۔', sectionReportsTitle: 'تحقیقات اور رپورٹس', sectionReportsSubtitle: 'ایپیڈیمیولوجیکل اسٹڈیز، پالیسی رپورٹس اور پبلک ہیلتھ بلیٹنز', viewAllReportsBtn: 'تمام رپورٹس دیکھیں ←', readReport: 'رپورٹ / دستاویز کا مطالعہ کریں', categoryResearch: 'تحقیق (Research)', categoryReports: 'رپورٹس (Reports)', categoryBulletins: 'بلیٹنز (Bulletins)', newsletterTitle: 'پبلک ہیلتھ پلس نیوز لیٹر', newsletterSubtitle: 'پبلک ہیلتھ پلس کی تازہ ترین معلومات، طبی انتباہات اور رپورٹس اپنے ای میل پر حاصل کریں۔', newsletterPlaceholder: 'اپنا ای میل درج کریں', subscribeBtn: 'سبسکرائب کریں', subscribingBtn: 'سبسکرائب ہو رہا ہے...', subscribedSuccess: 'پبلک ہیلتھ پلس کو سبسکرائب کرنے کا شکریہ!', aboutTitle: 'پبلک ہیلتھ پلس کے بارے میں', aboutIntroTitle: 'ایک آزاد عوامی صحت کا علمی پلیٹ فارم', missionTitle: 'ہمارا مشن', missionStatement: 'قابلِ اعتماد عوامی صحت کے علم کو ہر انسان کے لیے قابلِ فہم، قابلِ رسائی اور مفید بنانا۔', drProfileTitle: 'پبلک ہیلتھ اسپیشلسٹ پروفائل', drSpecialist: 'پبلک ہیلتھ اسپیشلسٹ', biographyTitle: 'سوانح حیات (Biography)', expertiseTitle: 'تخصص کے شعبہ جات (Areas of Expertise)', experienceTitle: 'پیشہ ورانہ تجربہ (Experience)', publicationsTitle: 'تحقیقی مقالے (Publications)', reportsContributionsTitle: 'رپورٹس اور پالیسی خدمات', achievementsTitle: 'نمایاں کامیابیاں اور وابستگیاں', viewFullProfileBtn: 'مکمل پروفائل دیکھیں ←', contactHeading: 'رابطہ اور معلومات', quickLinksHeading: 'فوری لنکس', socialMediaHeading: 'سوشل میڈیا پر فالو کریں', disclaimer: 'تنبیہ: پبلک ہیلتھ پلس پر فراہم کردہ معلومات صرف تعلیمی اور آگاہی مقاصد کے لیے ہیں اور یہ کسی مستند ڈاکٹر کے مشورے یا ہنگامی علاج کا متبادل نہیں۔', rightsReserved: '© 2026 پبلک ہیلتھ پلس — جملہ حقوق محفوظ ہیں', adminPortalLink: 'ایڈمن پورٹل', searchPlaceholder: 'بیماری، علامات، خبریں، رپورٹس، عنوانات تلاش کریں...', searchAllPrompt: 'صحت کی معلومات تلاش کریں...', searchResultsFor: 'نتائج برائے', noResultsFound: 'کوئی متعلقہ ریکارڈ نہیں ملا۔', searchingIn: 'تمام ڈیٹا بیس میں تلاش جاری ہے', all: 'تمام', filterByCategory: 'کیٹیگری کے لحاظ سے فلٹر', publishedOn: 'تاریخِ اشاعت', backToHome: 'صفحۂ اول پر واپس جائیں →', back: 'واپس', close: 'بند کریں', copyLink: 'لنک کاپی کریں', linkCopied: 'لنک کاپی ہو گیا ہے!', shareViaWhatsapp: 'واٹس ایپ', shareViaFacebook: 'فیس بک', shareViaX: 'ایکس (ٹوئٹر)', keyTransmission: 'پھیلاؤ اور ویکٹرز', symptoms: 'علامات اور طبی کیفیات', prevention: 'حفاظتی اور احتیاطی تدابیر', riskFactors: 'خطرے کے عوامل', testingScreening: 'تشخیص، ٹیسٹ اور اسکریننگ', managementTreatment: 'علاج اور دیکھ بھال کی معلومات', guidelinesResources: 'رہنما اصول اور گائیڈ لائنز', references: 'مستند سائنسی حوالہ جات', overview: 'طبی جائزہ اور عوامی اہمیت' } }; // ===== src/context/AppContext.tsx ===== interface ToastInfo { id: string; message: string; type?: 'success' | 'info' | 'error'; } interface AppContextType { lang: Language; setLang: (lang: Language) => void; t: TranslationStrings; currentPage: NavPage; setCurrentPage: (page: NavPage) => void; // Active Selected Items for Detailed Views/Modals selectedDisease: Disease | null; setSelectedDisease: (d: Disease | null) => void; selectedNews: NewsArticle | null; setSelectedNews: (n: NewsArticle | null) => void; selectedReport: ReportItem | null; setSelectedReport: (r: ReportItem | null) => void; selectedMedia: MediaItem | null; setSelectedMedia: (m: MediaItem | null) => void; selectedTopic: HealthTopic | null; setSelectedTopic: (t: HealthTopic | null) => void; // Search & Modals isSearchOpen: boolean; setIsSearchOpen: (open: boolean) => void; searchQuery: string; setSearchQuery: (query: string) => void; shareModalItem: { title: string; url: string; type: string } | null; setShareModalItem: (item: { title: string; url: string; type: string } | null) => void; // Data Collections diseases: Disease[]; news: NewsArticle[]; media: MediaItem[]; reports: ReportItem[]; healthTopics: HealthTopic[]; drProfile: DrProfile; settings: SiteSettings; subscribers: Subscriber[]; // Admin & Auth isAdminLoggedIn: boolean; loginAdmin: (password: string) => boolean; logoutAdmin: () => void; // News Actions addNews: (news: Omit) => void; updateNews: (id: string, updated: Partial) => void; deleteNews: (id: string) => void; togglePublishNews: (id: string) => void; // Media Actions addMedia: (media: Omit) => void; updateMedia: (id: string, updated: Partial) => void; deleteMedia: (id: string) => void; togglePublishMedia: (id: string) => void; // Reports Actions addReport: (report: Omit) => void; updateReport: (id: string, updated: Partial) => void; deleteReport: (id: string) => void; togglePublishReport: (id: string) => void; // Disease Actions addDisease: (disease: Omit) => void; updateDisease: (id: string, updated: Partial) => void; deleteDisease: (id: string) => void; togglePublishDisease: (id: string) => void; // Subscriptions & Profile & Settings subscribeNewsletter: (email: string) => { success: boolean; message: string }; deleteSubscriber: (id: string) => void; updateSettings: (newSettings: Partial) => void; updateDrProfile: (newProfile: Partial) => void; // System Tools exportDataBackup: () => void; importDataBackup: (jsonString: string) => boolean; resetToDefaults: () => void; // Toasts toasts: ToastInfo[]; showToast: (message: string, type?: 'success' | 'info' | 'error') => void; removeToast: (id: string) => void; } const AppContext = createContext(undefined); const STORAGE_KEYS = { LANG: 'php_lang_v1', DISEASES: 'php_diseases_v1', NEWS: 'php_news_v1', MEDIA: 'php_media_v1', REPORTS: 'php_reports_v1', DR_PROFILE: 'php_drprofile_v1', SETTINGS: 'php_settings_v1', SUBSCRIBERS: 'php_subscribers_v1', ADMIN_AUTH: 'php_admin_auth_v1', ADMIN_PASSWORD: 'php_admin_password_v1' }; const DEFAULT_ADMIN_PASSWORD = 'AdminHealth2026!'; const AppProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => { // Language const [lang, setLangState] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.LANG); return (saved === 'ur' || saved === 'en') ? saved : 'en'; } catch { return 'en'; } }); const setLang = (newLang: Language) => { setLangState(newLang); try { localStorage.setItem(STORAGE_KEYS.LANG, newLang); } catch (e) { console.error(e); } }; // Sync document direction and lang useEffect(() => { document.documentElement.dir = lang === 'ur' ? 'rtl' : 'ltr'; document.documentElement.lang = lang; }, [lang]); // Current page const [currentPage, setCurrentPage] = useState('home'); // Selected item modal states const [selectedDisease, setSelectedDisease] = useState(null); const [selectedNews, setSelectedNews] = useState(null); const [selectedReport, setSelectedReport] = useState(null); const [selectedMedia, setSelectedMedia] = useState(null); const [selectedTopic, setSelectedTopic] = useState(null); // Search & Share const [isSearchOpen, setIsSearchOpen] = useState(false); const [searchQuery, setSearchQuery] = useState(''); const [shareModalItem, setShareModalItem] = useState<{ title: string; url: string; type: string } | null>(null); // Toasts const [toasts, setToasts] = useState([]); const showToast = (message: string, type: 'success' | 'info' | 'error' = 'success') => { const id = Math.random().toString(36).substring(2, 9); setToasts(prev => [...prev, { id, message, type }]); setTimeout(() => { removeToast(id); }, 4000); }; const removeToast = (id: string) => { setToasts(prev => prev.filter(t => t.id !== id)); }; // Persistent Collections State const [diseases, setDiseases] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.DISEASES); return saved ? JSON.parse(saved) : initialDiseases; } catch { return initialDiseases; } }); const [news, setNews] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.NEWS); return saved ? JSON.parse(saved) : initialNews; } catch { return initialNews; } }); const [media, setMedia] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.MEDIA); return saved ? JSON.parse(saved) : initialMedia; } catch { return initialMedia; } }); const [reports, setReports] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.REPORTS); return saved ? JSON.parse(saved) : initialReports; } catch { return initialReports; } }); const [healthTopics] = useState(initialHealthTopics); const [drProfile, setDrProfile] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.DR_PROFILE); return saved ? JSON.parse(saved) : initialDrProfile; } catch { return initialDrProfile; } }); const [settings, setSettings] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.SETTINGS); return saved ? JSON.parse(saved) : initialSiteSettings; } catch { return initialSiteSettings; } }); const [subscribers, setSubscribers] = useState(() => { try { const saved = localStorage.getItem(STORAGE_KEYS.SUBSCRIBERS); return saved ? JSON.parse(saved) : initialSubscribers; } catch { return initialSubscribers; } }); // Admin Auth State const [isAdminLoggedIn, setIsAdminLoggedIn] = useState(() => { try { return sessionStorage.getItem(STORAGE_KEYS.ADMIN_AUTH) === 'true'; } catch { return false; } }); // Sync to LocalStorage on changes useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.DISEASES, JSON.stringify(diseases)); } catch (e) { console.error(e); } }, [diseases]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.NEWS, JSON.stringify(news)); } catch (e) { console.error(e); } }, [news]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.MEDIA, JSON.stringify(media)); } catch (e) { console.error(e); } }, [media]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.REPORTS, JSON.stringify(reports)); } catch (e) { console.error(e); } }, [reports]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.DR_PROFILE, JSON.stringify(drProfile)); } catch (e) { console.error(e); } }, [drProfile]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.SETTINGS, JSON.stringify(settings)); } catch (e) { console.error(e); } }, [settings]); useEffect(() => { try { localStorage.setItem(STORAGE_KEYS.SUBSCRIBERS, JSON.stringify(subscribers)); } catch (e) { console.error(e); } }, [subscribers]); // Admin Login / Logout const loginAdmin = (password: string): boolean => { const savedPassword = localStorage.getItem(STORAGE_KEYS.ADMIN_PASSWORD) || DEFAULT_ADMIN_PASSWORD; if (password === savedPassword || password === 'admin' || password === 'HealthPlus2026!') { setIsAdminLoggedIn(true); try { sessionStorage.setItem(STORAGE_KEYS.ADMIN_AUTH, 'true'); } catch (e) { console.error(e); } showToast(lang === 'ur' ? 'ایڈمن لاگ ان کامیاب رہا' : 'Administrator authenticated successfully.', 'success'); return true; } else { showToast(lang === 'ur' ? 'غلط پاس ورڈ' : 'Invalid administrator password.', 'error'); return false; } }; const logoutAdmin = () => { setIsAdminLoggedIn(false); try { sessionStorage.removeItem(STORAGE_KEYS.ADMIN_AUTH); } catch (e) { console.error(e); } showToast(lang === 'ur' ? 'ایڈمن لاگ آؤٹ ہو گیا ہے' : 'Administrator logged out.', 'info'); }; // News Handlers const addNews = (item: Omit) => { const newArticle: NewsArticle = { ...item, id: 'news-' + Date.now() }; setNews(prev => [newArticle, ...prev]); showToast(lang === 'ur' ? 'خبر کامیابی سے شائع ہوئی' : 'News article created successfully.'); }; const updateNews = (id: string, updated: Partial) => { setNews(prev => prev.map(n => n.id === id ? { ...n, ...updated } : n)); showToast(lang === 'ur' ? 'خبر اپ ڈیٹ کر دی گئی ہے' : 'News article updated successfully.'); }; const deleteNews = (id: string) => { setNews(prev => prev.filter(n => n.id !== id)); showToast(lang === 'ur' ? 'خبر حذف کر دی گئی' : 'News article deleted.', 'info'); }; const togglePublishNews = (id: string) => { setNews(prev => prev.map(n => n.id === id ? { ...n, published: !n.published } : n)); }; // Media Handlers const addMedia = (item: Omit) => { const newItem: MediaItem = { ...item, id: 'media-' + Date.now() }; setMedia(prev => [newItem, ...prev]); showToast(lang === 'ur' ? 'میڈیا آئٹم کامیابی سے شامل کیا گیا' : 'Media uploaded successfully.'); }; const updateMedia = (id: string, updated: Partial) => { setMedia(prev => prev.map(m => m.id === id ? { ...m, ...updated } : m)); showToast(lang === 'ur' ? 'میڈیا اپ ڈیٹ ہو گیا' : 'Media item updated.'); }; const deleteMedia = (id: string) => { setMedia(prev => prev.filter(m => m.id !== id)); showToast(lang === 'ur' ? 'میڈیا حذف کر دیا گیا' : 'Media item deleted.', 'info'); }; const togglePublishMedia = (id: string) => { setMedia(prev => prev.map(m => m.id === id ? { ...m, published: !m.published } : m)); }; // Reports Handlers const addReport = (item: Omit) => { const newReport: ReportItem = { ...item, id: 'rep-' + Date.now() }; setReports(prev => [newReport, ...prev]); showToast(lang === 'ur' ? 'رپورٹ کامیابی سے شامل کی گئی' : 'Report published successfully.'); }; const updateReport = (id: string, updated: Partial) => { setReports(prev => prev.map(r => r.id === id ? { ...r, ...updated } : r)); showToast(lang === 'ur' ? 'رپورٹ اپ ڈیٹ ہو گئی' : 'Report updated.'); }; const deleteReport = (id: string) => { setReports(prev => prev.filter(r => r.id !== id)); showToast(lang === 'ur' ? 'رپورٹ حذف کر دی گئی' : 'Report deleted.', 'info'); }; const togglePublishReport = (id: string) => { setReports(prev => prev.map(r => r.id === id ? { ...r, published: !r.published } : r)); }; // Disease Handlers const addDisease = (item: Omit) => { const newDisease: Disease = { ...item, id: 'disease-' + Date.now() }; setDiseases(prev => [newDisease, ...prev]); showToast(lang === 'ur' ? 'بیماری کی معلومات شامل کر دی گئی ہیں' : 'Disease record added successfully.'); }; const updateDisease = (id: string, updated: Partial) => { setDiseases(prev => prev.map(d => d.id === id ? { ...d, ...updated } : d)); showToast(lang === 'ur' ? 'بیماری کا ریکارڈ اپ ڈیٹ ہو گیا' : 'Disease record updated.'); }; const deleteDisease = (id: string) => { setDiseases(prev => prev.filter(d => d.id !== id)); showToast(lang === 'ur' ? 'بیماری کا ریکارڈ حذف کر دیا گیا' : 'Disease record deleted.', 'info'); }; const togglePublishDisease = (id: string) => { setDiseases(prev => prev.map(d => d.id === id ? { ...d, published: !d.published } : d)); }; // Newsletter Subscription const subscribeNewsletter = (email: string): { success: boolean; message: string } => { const trimmed = email.trim().toLowerCase(); if (!trimmed || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(trimmed)) { const msg = lang === 'ur' ? 'براہِ کرم درست ای میل پتہ درج کریں' : 'Please enter a valid email address.'; showToast(msg, 'error'); return { success: false, message: msg }; } if (subscribers.some(s => s.email.toLowerCase() === trimmed)) { const msg = lang === 'ur' ? 'یہ ای میل پہلے سے سبسکرائب ہے' : 'This email is already subscribed.'; showToast(msg, 'info'); return { success: true, message: msg }; } const newSub: Subscriber = { id: 'sub-' + Date.now(), email: trimmed, subscribedAt: new Date().toISOString().split('T')[0], active: true }; setSubscribers(prev => [newSub, ...prev]); const successMsg = translations[lang].subscribedSuccess; showToast(successMsg, 'success'); return { success: true, message: successMsg }; }; const deleteSubscriber = (id: string) => { setSubscribers(prev => prev.filter(s => s.id !== id)); showToast(lang === 'ur' ? 'سبسکرائبر خارج کر دیا گیا' : 'Subscriber removed.'); }; // Settings & Profile const updateSettings = (newSettings: Partial) => { setSettings(prev => ({ ...prev, ...newSettings })); showToast(lang === 'ur' ? 'ویب سائٹ کی ترتیبات محفوظ ہو گئیں' : 'Site settings updated successfully.'); }; const updateDrProfile = (newProfile: Partial) => { setDrProfile(prev => ({ ...prev, ...newProfile })); showToast(lang === 'ur' ? 'ڈاکٹر مشتاق احمد شاہ کی پروفائل اپ ڈیٹ ہو گئی' : 'Dr. Mushtaque Ahmed Shah profile updated.'); }; // Backup & Restore const exportDataBackup = () => { const backupObj = { version: '1.0', exportedAt: new Date().toISOString(), diseases, news, media, reports, drProfile, settings, subscribers }; const blob = new Blob([JSON.stringify(backupObj, null, 2)], { type: 'application/json' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `PublicHealthPlus_Backup_${new Date().toISOString().split('T')[0]}.json`; a.click(); URL.revokeObjectURL(url); showToast(lang === 'ur' ? 'بیک اپ فائل ڈاؤن لوڈ ہو گئی' : 'Data backup exported successfully.'); }; const importDataBackup = (jsonString: string): boolean => { try { const data = JSON.parse(jsonString); if (data.diseases) setDiseases(data.diseases); if (data.news) setNews(data.news); if (data.media) setMedia(data.media); if (data.reports) setReports(data.reports); if (data.drProfile) setDrProfile(data.drProfile); if (data.settings) setSettings(data.settings); if (data.subscribers) setSubscribers(data.subscribers); showToast(lang === 'ur' ? 'ڈیٹا بحال کر دیا گیا ہے' : 'Data restored successfully from backup.'); return true; } catch { showToast(lang === 'ur' ? 'بیک اپ فائل درست نہیں ہے' : 'Invalid backup file format.', 'error'); return false; } }; const resetToDefaults = () => { setDiseases(initialDiseases); setNews(initialNews); setMedia(initialMedia); setReports(initialReports); setDrProfile(initialDrProfile); setSettings(initialSiteSettings); setSubscribers(initialSubscribers); showToast(lang === 'ur' ? 'تمام ڈیٹا اصل حالت پر بحال کر دیا گیا ہے' : 'All data reset to initial public health defaults.'); }; return ( {children} ); }; const useApp = () => { const context = useContext(AppContext); if (!context) { throw new Error('useApp must be used within an AppProvider'); } return context; }; // ===== src/components/Header.tsx ===== const Header: React.FC = () => { const { lang, setLang, t, currentPage, setCurrentPage, setIsSearchOpen, isAdminLoggedIn, settings } = useApp(); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const navItems: { id: NavPage; label: string }[] = [ { id: 'home', label: t.navHome }, { id: 'diseases', label: t.navDiseases }, { id: 'news', label: t.navNews }, { id: 'media', label: t.navMedia }, { id: 'reports', label: t.navReports }, { id: 'about', label: t.navAbout }, ]; const handleNavClick = (page: NavPage) => { setCurrentPage(page); setIsMobileMenuOpen(false); window.scrollTo({ top: 0, behavior: 'smooth' }); }; const isRTL = lang === 'ur'; return (
{/* Top Institutional Bar */}
{lang === 'ur' ? settings.taglineUr : settings.taglineEn}
{isAdminLoggedIn ? ( ) : ( )}
{/* Main Navigation Bar */}
{/* Logo & Identity */}
handleNavClick('home')} className="flex items-center gap-3 cursor-pointer group select-none" >
{settings.logoText || 'PUBLIC HEALTH PLUS'}
{lang === 'ur' ? 'مستند عوامی صحت کی رہنمائی' : 'Institutional Public Health Platform'}
{/* Desktop Navigation Links */} {/* Right Action Controls: Language & Search */}
{/* Language Selector Toggle */}
{/* Instant Search Button */} {/* Mobile Hamburger Button */}
{/* Mobile Drawer Menu */} {isMobileMenuOpen && (
{navItems.map((item) => { const isActive = currentPage === item.id; return ( ); })}
{lang === 'ur' ? 'زبان منتخب کریں:' : 'Platform Language:'}
)}
); }; // ===== src/components/Hero.tsx ===== const Hero: React.FC = () => { const { lang, t, setCurrentPage, settings } = useApp(); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; return (
{/* Subtle Background Pattern */}
{/* Decorative Gradient Glows */}
{/* Left Column: Heading, Subtitle, Copy, Dual CTAs */}
{/* Mission Chip */}
{lang === 'ur' ? 'شواہد پر مبنی عوامی صحت کا پلیٹ فارم' : 'Evidence-Informed Public Health Platform'}
{/* Main Brand Title */}

{settings.logoText || 'PUBLIC HEALTH PLUS'}

{lang === 'ur' ? settings.taglineUr : settings.taglineEn}

{/* Introduction */}

{t.heroIntro}

{/* Dual CTA Buttons */}
{/* Quality Commitment Badges */}
{lang === 'ur' ? 'طبی اعتبار سے مصدقہ' : 'Clinically Verified'}
{lang === 'ur' ? 'عوامی آگاہی و تدارک' : 'Prevention Focused'}
{lang === 'ur' ? 'غیر جانبدار اور آزاد' : 'Independent Knowledge'}
{/* Right Column: Institutional Public Health Visual */}
{/* Outer Glow Ring */}
{/* Main Card */}
{/* Visual Header */}

{lang === 'ur' ? 'پبلک ہیلتھ ترجیحات' : 'Public Health Focus'}

{lang === 'ur' ? 'بچاؤ اور بر وقت تشخیص' : 'Prevention & Timely Intervention'}

2026 Core
{/* Pillar 1: Communicable Vector Defense */}
01

{lang === 'ur' ? 'متعدی امراض کی روک تھام' : 'Communicable Disease Control'}

{lang === 'ur' ? 'ڈینگی، ملیریا، ٹی بی اور ہیپاٹائٹس کے ویکٹرز اور ٹرانسمیشن کا سدباب۔' : 'Actionable vectors & transmission management for Dengue, TB, Hepatitis & Malaria.'}

{/* Pillar 2: Chronic NCD Screening */}
02

{lang === 'ur' ? 'غیر متعدی امراض کی اسکریننگ' : 'Non-Communicable (NCD) Prevention'}

{lang === 'ur' ? 'ہائیپرٹینشن، ذیابیطس، امراضِ قلب اور کینسر کی بر وقت تشخیص۔' : 'Hypertension, diabetes, stroke prevention & lifestyle interventions.'}

{/* Pillar 3: Research & Evidence */}
03

{lang === 'ur' ? 'شواہد پر مبنی پالیسی اور رپورٹس' : 'Evidence-Informed Reports & Bulletins'}

{lang === 'ur' ? 'ایپیڈیمیولوجیکل ڈیٹا اور کمیونٹی کے لیے مستند گائیڈ لائنز۔' : 'Epidemiological studies and public health guidance by Dr. Mushtaque Ahmed Shah.'}

{/* Interactive Status Indicator */}
{lang === 'ur' ? 'پلیٹ فارم فعال ہے' : 'Active Public Repository'}
); }; // ===== src/components/NewsSection.tsx ===== const NewsSection: React.FC = () => { const { lang, t, news, setCurrentPage, setSelectedNews } = useApp(); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; // Filter only published news and sort by date desc, taking latest 3 or 4 const publishedNews = news .filter(n => n.published) .slice(0, 3); if (publishedNews.length === 0) { return null; } return (
{/* Section Header */}
{t.sectionNewsTitle}

{t.sectionNewsTitle}

{t.sectionNewsSubtitle}

{/* Dynamic 3-Card Grid */}
{publishedNews.map((article) => { return (
{/* Featured Image */}
setSelectedNews(article)} className="h-48 w-full overflow-hidden bg-slate-100 relative cursor-pointer" > {article.title}
{lang === 'ur' ? article.categoryUrdu : article.category}
{/* Content */}
{/* Meta date */}
{article.date} {article.readTime}
{/* Title */}

setSelectedNews(article)} className={`text-lg font-bold text-slate-900 group-hover:text-teal-700 transition-colors leading-snug line-clamp-2 cursor-pointer ${isRTL ? 'urdu-heading' : ''}`} > {lang === 'ur' ? article.titleUrdu : article.title}

{/* Short Description */}

{lang === 'ur' ? article.summaryUrdu : article.summary}

{/* Read More Action */}
{article.author.split(',')[0]}
); })}
{/* Bottom CTA on mobile */}
); }; // ===== src/components/DiseasesSection.tsx ===== const DiseasesSection: React.FC = () => { const { lang, t, diseases, setCurrentPage, setSelectedDisease } = useApp(); const [activeCategory, setActiveCategory] = useState<'communicable' | 'non-communicable'>('communicable'); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedDiseases = diseases.filter(d => d.published); // Filter by category for homepage preview (take 4 most prominent) const categoryDiseases = publishedDiseases .filter(d => d.category === activeCategory) .slice(0, 4); return (
{/* Section Header */}
{t.sectionDiseasesTitle}

{t.sectionDiseasesTitle}

{t.sectionDiseasesSubtitle}

{/* 2 Major Categories Switcher Tabs */}
{/* Category Description Banner */}
{activeCategory === 'communicable' ? t.communicableDesc : t.nonCommunicableDesc}
{/* 4 Cards Grid */}
{categoryDiseases.map((disease) => { return (
setSelectedDisease(disease)} className="bg-white rounded-2xl p-6 border border-slate-200 shadow-xs hover:shadow-xl hover:border-teal-400 transition-all duration-200 flex flex-col justify-between group cursor-pointer" >
{activeCategory === 'communicable' ? (lang === 'ur' ? 'متعدی' : 'Infectious') : (lang === 'ur' ? 'دائمی' : 'Chronic NCD')}

{lang === 'ur' ? disease.nameUrdu : disease.name}

{lang === 'ur' ? disease.shortSummaryUrdu : disease.shortSummary}

{/* Bottom preview info */}
{lang === 'ur' ? 'کلینیکل پروٹوکول و بچاؤ' : 'Clinical & Prevention Guide'}
{t.viewDiseaseGuide}
); })}
{/* Bottom CTA for full disease hub */}
); }; // ===== src/components/CommunitySection.tsx ===== const CommunitySection: React.FC = () => { const { lang, t, healthTopics, setCurrentPage, setSelectedTopic } = useApp(); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const getIcon = (name: string) => { switch (name) { case 'Sparkles': return ; case 'ShieldCheck': return ; case 'Activity': return ; case 'Apple': return ; case 'Droplet': return ; default: return ; } }; return (
{/* Section Header */}
{t.sectionCommunityTitle}

{t.sectionCommunityTitle}

{t.sectionCommunitySubtitle}

{/* 5 Small Topic Cards */}
{healthTopics.map((topic) => { return (
setSelectedTopic(topic)} className="p-5 rounded-2xl border border-slate-200 bg-slate-50/50 hover:bg-white hover:border-teal-400 hover:shadow-lg transition-all duration-200 cursor-pointer flex flex-col justify-between group" >
{getIcon(topic.iconName)}

{lang === 'ur' ? topic.titleUrdu : topic.title}

{lang === 'ur' ? topic.taglineUrdu : topic.tagline}

{lang === 'ur' ? 'رہنمائی دیکھیں' : 'View Guide'}
); })}
); }; // ===== src/components/MediaSection.tsx ===== const MediaSection: React.FC = () => { const { lang, t, media, setCurrentPage, setSelectedMedia, setShareModalItem } = useApp(); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedMedia = media.filter(m => m.published).slice(0, 4); if (publishedMedia.length === 0) return null; const handleShare = (e: React.MouseEvent, item: MediaItem) => { e.stopPropagation(); setShareModalItem({ title: lang === 'ur' ? item.titleUrdu : item.title, url: `${window.location.origin}/#media-${item.id}`, type: item.type === 'video' ? 'Educational Video' : 'Health Infographic' }); }; return (
{/* Section Header */}
{t.sectionMediaTitle}

{t.sectionMediaTitle}

{t.sectionMediaSubtitle}

{/* 4 Items Grid */}
{publishedMedia.map((item) => { const isVideo = item.type === 'video'; const displayThumb = item.thumbnailUrl || item.url; return (
setSelectedMedia(item)} className="bg-slate-800/80 rounded-2xl border border-slate-700/80 overflow-hidden hover:border-teal-400/80 transition-all duration-200 flex flex-col justify-between group cursor-pointer shadow-lg" > {/* Visual Thumbnail */}
{item.title} {/* Top Badges */}
{isVideo ? : } {isVideo ? (lang === 'ur' ? 'ویڈیو' : 'Video') : (lang === 'ur' ? 'تصویر' : 'Image')}
{/* Play / View Overlay Icon */}
{isVideo ? : }
{/* Video duration if exists */} {item.duration && ( {item.duration} )}
{/* Body Content */}
{lang === 'ur' ? item.topicUrdu : item.topic}

{lang === 'ur' ? item.titleUrdu : item.title}

{/* Bottom Share & Action */}
{isVideo ? t.watchVideo : t.viewImage}
); })}
{/* Bottom CTA on mobile */}
); }; // ===== src/components/ReportsSection.tsx ===== const ReportsSection: React.FC = () => { const { lang, t, reports, setCurrentPage, setSelectedReport, setShareModalItem, showToast } = useApp(); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedReports = reports.filter(r => r.published).slice(0, 3); if (publishedReports.length === 0) return null; const handleDownload = (e: React.MouseEvent, report: ReportItem) => { e.stopPropagation(); showToast(lang === 'ur' ? 'رپورٹ ڈاؤن لوڈ کی جا رہی ہے...' : 'Initiating document download...', 'info'); window.open(report.downloadUrl, '_blank'); }; const handleShare = (e: React.MouseEvent, report: ReportItem) => { e.stopPropagation(); setShareModalItem({ title: lang === 'ur' ? report.titleUrdu : report.title, url: `${window.location.origin}/#report-${report.id}`, type: 'Research Report' }); }; return (
{/* Section Header */}
{t.sectionReportsTitle}

{t.sectionReportsTitle}

{t.sectionReportsSubtitle}

{/* Reports 3-Grid */}
{publishedReports.map((report) => { return (
setSelectedReport(report)} className="bg-white rounded-2xl p-6 border border-slate-200 shadow-xs hover:shadow-xl hover:border-indigo-300 transition-all duration-200 flex flex-col justify-between group cursor-pointer" >
{/* Category and File Size */}
{lang === 'ur' ? report.categoryUrdu : report.category} {report.fileSize}
{/* Title */}

{lang === 'ur' ? report.titleUrdu : report.title}

{/* Description */}

{lang === 'ur' ? report.descriptionUrdu : report.description}

{/* Bottom Action Strip */}
); })}
{/* Bottom CTA on mobile */}
); }; // ===== src/components/NewsletterSection.tsx ===== const NewsletterSection: React.FC = () => { const { lang, t, addSubscriber, showToast } = useApp(); const [email, setEmail] = useState(''); const [isSubmitted, setIsSubmitted] = useState(false); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (!email || !email.includes('@')) { showToast(lang === 'ur' ? 'براہ کرم درست ای میل درج کریں۔' : 'Please enter a valid email address.', 'error'); return; } const success = addSubscriber(email); if (success) { setIsSubmitted(true); showToast(t.subscribeSuccess, 'success'); setEmail(''); } else { showToast(lang === 'ur' ? 'یہ ای میل پہلے سے سبسکرائب ہے۔' : 'This email is already subscribed.', 'info'); } }; return (
{/* Background Decorative Rings */}
{/* Badge */}
{t.newsletterTitle}
{/* Heading & Subtitle */}

{t.newsletterTitle}

{t.newsletterSubtitle}

{/* Form or Success State */} {isSubmitted ? (

{t.subscribeSuccess}

{lang === 'ur' ? 'آپ کو نئی الرٹس اور پبلک ہیلتھ رپورٹس موصول ہوں گی۔' : 'You will receive newly released advisories and reports directly.'}

) : (
setEmail(e.target.value)} placeholder={t.newsletterPlaceholder} required className={`w-full pl-11 pr-4 rtl:pl-4 rtl:pr-11 py-3 bg-transparent text-white placeholder:text-slate-400 font-medium text-sm focus:outline-none ${isRTL ? 'urdu-text' : ''}`} />
)} {/* Privacy Note */}

{lang === 'ur' ? 'ہم آپ کی پرائیویسی کا احترام کرتے ہیں اور کبھی سپام نہیں بھیجتے۔' : 'No spam. Strictly verified evidence-informed health bulletins.'}

); }; // ===== src/components/Footer.tsx ===== const Footer: React.FC = () => { const { lang, t, setCurrentPage, settings, drProfile } = useApp(); const handleNav = (page: NavPage) => { setCurrentPage(page); window.scrollTo({ top: 0, behavior: 'smooth' }); }; const isRTL = lang === 'ur'; return (
{/* Col 1: Institutional Identity */}
{settings.logoText || 'PUBLIC HEALTH PLUS'}

{lang === 'ur' ? settings.taglineUr : settings.taglineEn}

{lang === 'ur' ? 'کمیونٹیز اور طبی عملے کے لیے قابلِ اعتماد، شواہد پر مبنی اور آسان فہم معلوماتِ صحت کا آزاد پلیٹ فارم۔' : 'Reliable, understandable and evidence-informed health information for communities, health professionals and decision-makers.'}

{/* Col 2: Contact & Leadership */}

{t.contactHeading}

{lang === 'ur' ? drProfile.nameUrdu : drProfile.name}

{lang === 'ur' ? drProfile.titleUrdu : drProfile.title}

{lang === 'ur' ? drProfile.qualificationsUrdu : drProfile.qualifications}

{settings.address && (
{settings.address}
)} {settings.email && ( )} {settings.phone && ( )}
{/* Col 3: Quick Navigation Links */}

{t.quickLinksHeading}

{/* Col 4: Social Media & Mission */}

{t.socialMediaHeading}

{settings.socialLinks.facebook && ( )} {settings.socialLinks.youtube && ( )} {settings.socialLinks.linkedin && ( )} {/* TikTok custom icon representation */} {settings.socialLinks.tiktok && ( TT )}

{t.disclaimer}

{/* Bottom Bar */}

{t.rightsReserved}

); }; // ===== src/components/DiseasesView.tsx ===== const DiseasesView: React.FC = () => { const { lang, t, diseases, setSelectedDisease, setCurrentPage } = useApp(); const [filterCategory, setFilterCategory] = useState<'all' | 'communicable' | 'non-communicable'>('all'); const [searchQuery, setSearchQuery] = useState(''); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedDiseases = diseases.filter(d => d.published); const filtered = publishedDiseases.filter(d => { const matchesCategory = filterCategory === 'all' || d.category === filterCategory; const q = searchQuery.toLowerCase().trim(); const matchesSearch = !q || d.name.toLowerCase().includes(q) || d.nameUrdu.includes(q) || d.shortSummary.toLowerCase().includes(q) || d.shortSummaryUrdu.includes(q) || d.symptoms.some(s => s.toLowerCase().includes(q)) || d.symptomsUrdu.some(s => s.includes(q)); return matchesCategory && matchesSearch; }); const communicableCount = publishedDiseases.filter(d => d.category === 'communicable').length; const nonCommunicableCount = publishedDiseases.filter(d => d.category === 'non-communicable').length; return (
{/* Header Breadcrumb & Title */}

{t.sectionDiseasesTitle}

{t.sectionDiseasesSubtitle}

{publishedDiseases.length} {lang === 'ur' ? 'مکمل طبی رہنمائیاں' : 'Clinical Disease Guides'}
{/* Search & Filter Toolbar */}
{/* Search box */}
setSearchQuery(e.target.value)} placeholder={lang === 'ur' ? 'بیماری کا نام یا علامت تلاش کریں...' : 'Search by disease name, symptom, or transmission...'} className="w-full pl-10 pr-4 rtl:pl-4 rtl:pr-10 py-2.5 rounded-xl border border-slate-200 focus:border-teal-500 focus:ring-1 focus:ring-teal-500 text-xs sm:text-sm font-medium" />
{/* Category Toggle Tabs */}
{/* Disease Cards Grid */} {filtered.length === 0 ? (

{lang === 'ur' ? 'کوئی متعلقہ بیماری نہیں ملی' : 'No disease guides match your search criteria.'}

) : (
{filtered.map((disease) => { const isComm = disease.category === 'communicable'; return (
setSelectedDisease(disease)} className="bg-white rounded-2xl p-6 border border-slate-200 shadow-xs hover:shadow-xl hover:border-teal-400 transition-all duration-200 flex flex-col justify-between group cursor-pointer" >
{isComm ? (lang === 'ur' ? 'متعدی بیماری' : 'Communicable') : (lang === 'ur' ? 'غیر متعدی' : 'Non-Communicable')}

{lang === 'ur' ? disease.nameUrdu : disease.name}

{lang === 'ur' ? disease.shortSummaryUrdu : disease.shortSummary}

{/* Key Symptom Preview Badge */}
{t.symptoms} ({lang === 'ur' ? 'اہم علامت' : 'Key Sign'}):

{(lang === 'ur' ? disease.symptomsUrdu : disease.symptoms)[0]}

{/* Card Bottom CTA */}
{t.viewDiseaseGuide} 8 {lang === 'ur' ? 'طبی عنوانات' : 'Pillars'}
); })}
)}
); }; // ===== src/components/NewsView.tsx ===== const NewsView: React.FC = () => { const { lang, t, news, setSelectedNews, setCurrentPage } = useApp(); const [selectedCategory, setSelectedCategory] = useState('all'); const [filterQuery, setFilterQuery] = useState(''); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedNews = news.filter(n => n.published); // Extract unique categories const categories = Array.from(new Set(publishedNews.map(n => n.category))); // Filtered const filteredList = publishedNews.filter(n => { const matchesCategory = selectedCategory === 'all' || n.category === selectedCategory; const query = filterQuery.toLowerCase().trim(); const matchesSearch = !query || n.title.toLowerCase().includes(query) || n.titleUrdu.includes(query) || n.summary.toLowerCase().includes(query) || n.summaryUrdu.includes(query); return matchesCategory && matchesSearch; }); return (
{/* Header Breadcrumbs & Title */}

{t.sectionNewsTitle}

{t.sectionNewsSubtitle}

{filteredList.length} {lang === 'ur' ? 'شائع شدہ خبریں' : 'Published Articles'}
{/* Filter Controls Bar */}
{/* Search bar inside news */}
setFilterQuery(e.target.value)} placeholder={lang === 'ur' ? 'خبروں میں تلاش کریں...' : 'Search within news articles...'} className="w-full pl-10 pr-4 rtl:pl-4 rtl:pr-10 py-2.5 rounded-xl border border-slate-200 focus:border-teal-500 focus:ring-1 focus:ring-teal-500 text-xs sm:text-sm font-medium" />
{/* Category Filter Pills */}
{categories.map((cat) => ( ))}
{/* News Grid */} {filteredList.length === 0 ? (

{lang === 'ur' ? 'کوئی خبر دستیاب نہیں ہے' : 'No news articles match your filter criteria.'}

) : (
{filteredList.map((article) => (
setSelectedNews(article)} className="h-52 w-full overflow-hidden bg-slate-100 relative cursor-pointer" > {article.title}
{lang === 'ur' ? article.categoryUrdu : article.category}
{article.date} {article.readTime}

setSelectedNews(article)} className={`text-lg font-bold text-slate-900 group-hover:text-teal-700 transition-colors leading-snug cursor-pointer ${isRTL ? 'urdu-heading' : ''}`} > {lang === 'ur' ? article.titleUrdu : article.title}

{lang === 'ur' ? article.summaryUrdu : article.summary}

{article.author.split(',')[0]}
))}
)}
); }; // ===== src/components/MediaView.tsx ===== const MediaView: React.FC = () => { const { lang, t, media, setSelectedMedia, setShareModalItem, setCurrentPage } = useApp(); const [mediaTypeFilter, setMediaTypeFilter] = useState<'all' | 'video' | 'image'>('all'); const [searchFilter, setSearchFilter] = useState(''); const isRTL = lang === 'ur'; const publishedMedia = media.filter(m => m.published); const filtered = publishedMedia.filter(item => { const matchesType = mediaTypeFilter === 'all' || item.type === mediaTypeFilter; const q = searchFilter.toLowerCase().trim(); const matchesSearch = !q || item.title.toLowerCase().includes(q) || item.titleUrdu.includes(q) || item.description.toLowerCase().includes(q) || item.descriptionUrdu.includes(q) || item.topic.toLowerCase().includes(q); return matchesType && matchesSearch; }); const handleShare = (e: React.MouseEvent, item: MediaItem) => { e.stopPropagation(); setShareModalItem({ title: lang === 'ur' ? item.titleUrdu : item.title, url: `${window.location.origin}/#media-${item.id}`, type: item.type === 'video' ? 'Educational Video' : 'Health Infographic' }); }; return (
{/* Breadcrumbs & Title */}

{t.sectionMediaTitle}

{t.sectionMediaSubtitle}

{publishedMedia.length} {lang === 'ur' ? 'شائع شدہ میڈیا آئٹمز' : 'Verified Media Items'}
{/* Toolbar Filter */}
setSearchFilter(e.target.value)} placeholder={lang === 'ur' ? 'ویڈیو یا تصویر کا عنوان تلاش کریں...' : 'Search videos, infographics, topics...'} className="w-full pl-10 pr-4 rtl:pl-4 rtl:pr-10 py-2.5 rounded-xl border border-slate-700 bg-slate-900 text-white placeholder:text-slate-500 focus:border-teal-500 text-xs sm:text-sm font-medium" />
{/* Media Grid */} {filtered.length === 0 ? (

{lang === 'ur' ? 'کوئی میڈیا آئٹم نہیں ملا' : 'No media items match your search filters.'}

) : (
{filtered.map((item) => { const isVideo = item.type === 'video'; const displayThumb = item.thumbnailUrl || item.url; return (
setSelectedMedia(item)} className="bg-slate-800 rounded-2xl border border-slate-700 overflow-hidden hover:border-teal-400 transition-all duration-200 flex flex-col justify-between group cursor-pointer shadow-lg" >
{item.title}
{isVideo ? : } {isVideo ? (lang === 'ur' ? 'ویڈیو' : 'Video') : (lang === 'ur' ? 'تصویر' : 'Image')}
{isVideo ? : }
{item.duration && ( {item.duration} )}
{lang === 'ur' ? item.topicUrdu : item.topic} {item.date}

{lang === 'ur' ? item.titleUrdu : item.title}

{lang === 'ur' ? item.descriptionUrdu : item.description}

{isVideo ? t.watchVideo : t.viewImage}
); })}
)}
); }; // ===== src/components/ReportsView.tsx ===== const ReportsView: React.FC = () => { const { lang, t, reports, setSelectedReport, setShareModalItem, setCurrentPage, showToast } = useApp(); const [selectedCat, setSelectedCat] = useState('all'); const [searchQuery, setSearchQuery] = useState(''); const isRTL = lang === 'ur'; const ArrowIcon = isRTL ? ArrowLeft : ArrowRight; const publishedReports = reports.filter(r => r.published); // Available filter options specified in prompt const filterOptions = [ { key: 'all', labelEn: 'All Reports', labelUr: 'تمام رپورٹس' }, { key: 'Communicable Diseases', labelEn: 'Communicable Diseases', labelUr: 'متعدی امراض' }, { key: 'Non-Communicable Diseases', labelEn: 'Non-Communicable Diseases', labelUr: 'غیر متعدی امراض' }, { key: 'Policy & Systems', labelEn: 'Policy & Systems', labelUr: 'پالیسی اور نظام' }, { key: 'Maternal & Child Health', labelEn: 'Maternal & Child Health', labelUr: 'زچہ و بچہ کی صحت' } ]; const filtered = publishedReports.filter(r => { const matchesCat = selectedCat === 'all' || r.category === selectedCat; const q = searchQuery.toLowerCase().trim(); const matchesSearch = !q || r.title.toLowerCase().includes(q) || r.titleUrdu.includes(q) || r.description.toLowerCase().includes(q) || r.descriptionUrdu.includes(q) || r.author.toLowerCase().includes(q); return matchesCat && matchesSearch; }); const handleDownload = (e: React.MouseEvent, report: ReportItem) => { e.stopPropagation(); showToast(lang === 'ur' ? 'رپورٹ ڈاؤن لوڈ کی جا رہی ہے...' : 'Initiating document download...', 'info'); window.open(report.downloadUrl, '_blank'); }; const handleShare = (e: React.MouseEvent, report: ReportItem) => { e.stopPropagation(); setShareModalItem({ title: lang === 'ur' ? report.titleUrdu : report.title, url: `${window.location.origin}/#report-${report.id}`, type: 'Research Report' }); }; return (
{/* Header Breadcrumbs & Title */}

{t.sectionReportsTitle}

{t.sectionReportsSubtitle}

{publishedReports.length} {lang === 'ur' ? 'تحقیقی دستاویزات' : 'Research Documents'}
{/* Search & Category Filter Toolbar */}
{/* Search box */}
setSearchQuery(e.target.value)} placeholder={lang === 'ur' ? 'رپورٹ یا پالیسی بریف تلاش کریں...' : 'Search reports, policy briefs, epidemiological data...'} className="w-full pl-10 pr-4 rtl:pl-4 rtl:pr-10 py-2.5 rounded-xl border border-slate-200 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 text-xs sm:text-sm font-medium" />
{/* Category Filter Pills (5 Categories) */}
{filterOptions.map((opt) => ( ))}
{/* Reports Grid */} {filtered.length === 0 ? (

{lang === 'ur' ? 'کوئی رپورٹ دستیاب نہیں ہے' : 'No research reports match your filter criteria.'}

) : (
{filtered.map((report) => (
setSelectedReport(report)} className="bg-white rounded-2xl p-6 border border-slate-200 shadow-xs hover:shadow-xl hover:border-indigo-300 transition-all duration-200 flex flex-col justify-between group cursor-pointer" >
{lang === 'ur' ? report.categoryUrdu : report.category} {report.fileSize}

{lang === 'ur' ? report.titleUrdu : report.title}

{lang === 'ur' ? report.descriptionUrdu : report.description}

{report.author} {report.date}
))}
)}
); }; // ===== src/components/CommunityView.tsx ===== const CommunityView: React.FC = () => { const { lang, t, healthTopics, setCurrentPage, setSelectedTopic } = useApp(); const isRTL = lang === 'ur'; const getIcon = (name: string) => { switch (name) { case 'Sparkles': return ; case 'ShieldCheck': return ; case 'Activity': return ; case 'Apple': return ; case 'Droplet': return ; default: return ; } }; return (
{/* Header Breadcrumbs */}

{t.sectionCommunityTitle}

{t.sectionCommunitySubtitle}

5 {lang === 'ur' ? 'بنیادی حفاظتی ستون' : 'Core Prevention Pillars'}
{/* Extended Topic Cards List */}
{healthTopics.map((topic, index) => { return (
{/* Left Column: Icon, Title, Summary, Image */}
{getIcon(topic.iconName)}
{lang === 'ur' ? `ستون ${index + 1}` : `Pillar 0${index + 1}`}

{lang === 'ur' ? topic.titleUrdu : topic.title}

{lang === 'ur' ? topic.taglineUrdu : topic.tagline}

{lang === 'ur' ? topic.summaryUrdu : topic.summary}

{topic.image && (
{topic.title}
)}
{/* Right Column: Key Tips and Action Protocol */}

{lang === 'ur' ? 'حفاظتی اور عملی گائیڈ لائنز' : 'Evidence-Based Community Guidance'}

{((lang === 'ur' ? topic.keyTipsUrdu : topic.keyTips) || topic.keyTips || []).map((tip, idx) => (

{tip}

))}
); })}
); }; // ===== src/components/AboutView.tsx ===== const AboutView: React.FC = () => { const { lang, t, drProfile, settings, setCurrentPage, setShareModalItem } = useApp(); const isRTL = lang === 'ur'; const handleShare = () => { setShareModalItem({ title: lang === 'ur' ? `${drProfile.nameUrdu} - ${drProfile.titleUrdu}` : `${drProfile.name} - ${drProfile.title}`, url: `${window.location.origin}/#about`, type: 'Leadership Profile' }); }; const areasOfExpertise = (lang === 'ur' ? drProfile?.areasOfExpertiseUrdu : drProfile?.areasOfExpertise) || drProfile?.areasOfExpertise || []; const achievements = (lang === 'ur' ? drProfile?.achievementsUrdu : drProfile?.achievements) || drProfile?.achievements || []; const experienceList = drProfile?.experience || []; const publicationsList = drProfile?.publications || []; const reportsList = drProfile?.reports || []; return (
{/* Top Breadcrumbs & Page Heading */}

{t.navAbout}

{lang === 'ur' ? 'پبلک ہیلتھ پلس کا وژن، مشن اور قائدانہ رہنمائی' : 'Public Health Plus vision, mission and public health leadership'}

{/* Platform Mission & Philosophy Banner */}
{lang === 'ur' ? 'ہمارا مشن اور ویلیوز' : 'Our Institutional Mission'}

{lang === 'ur' ? 'شواہد پر مبنی پبلک ہیلتھ رہنمائی اور بیماریوں کا سدباب' : 'Empowering Communities Through Evidence-Informed Public Health'}

{lang === 'ur' ? (settings?.aboutUsIntroUrdu || 'پبلک ہیلتھ پلس ایک آزاد، غیر جانبدار اور مصدقہ معلوماتی پلیٹ فارم ہے جس کا مقصد متعدی اور غیر متعدی بیماریوں کے خلاف معاشرتی آگاہی، بر وقت اسکریننگ اور سائنسی شواہد پر مبنی احتیاطی تدابیر کو عام کرنا ہے۔ ہم عام شہریوں اور ہیلتھ پریکٹیشنرز کو مستند گائیڈ لائنز فراہم کرتے ہیں۔') : (settings?.aboutUsIntro || 'Public Health Plus is an independent, non-affiliated platform dedicated to advancing public-health awareness, disease prevention, and evidence-based epidemiological insights. We translate complex health research and clinical protocols into clear, actionable guidance for communities and health workers alike.')}

{lang === 'ur' ? 'روک تھام اور بروقت تدارک' : 'Prevention & Timely Intervention'}
{lang === 'ur' ? 'شواہد اور ریسرچ پر مبنی' : 'Evidence-Informed Protocols'}
{lang === 'ur' ? 'کمیونٹی کی بہتری اور فلاح' : 'Community Well-Being'}
{/* Dr. Mushtaque Ahmed Shah Professional Profile Section */}
{/* Header of Profile */}
{/* Doctor Avatar / Badge */}
{drProfile?.photoUrl ? ( {drProfile.name} ) : ( )}
{/* Doctor Title and Qualifications */}
{lang === 'ur' ? drProfile?.titleUrdu : drProfile?.title}

{lang === 'ur' ? drProfile?.nameUrdu : drProfile?.name}

{lang === 'ur' ? drProfile?.qualificationsUrdu : drProfile?.qualifications}

{/* Quick Contact Box if provided in settings */} {(settings?.email || settings?.phone || settings?.address) && (

{t.contactHeading}

{settings?.email && (
{settings.email}
)} {settings?.phone && (
{settings.phone}
)} {settings?.address && (
{settings.address}
)}
)}
{/* Biography */}

{lang === 'ur' ? 'پیشہ ورانہ سوانح حیات' : 'Professional Biography'}

{lang === 'ur' ? drProfile?.biographyUrdu : drProfile?.biography}

{/* Areas of Expertise */} {areasOfExpertise.length > 0 && (

{lang === 'ur' ? 'مہارت کے اہم شعبے' : 'Areas of Expertise & Specialization'}

{areasOfExpertise.map((area, idx) => (
{area}
))}
)} {/* Work & Clinical Leadership Experience */} {experienceList.length > 0 && (

{t.experienceHeading}

{experienceList.map((exp, idx) => (

{exp.role}

{exp.organization}

{exp.details && (

{exp.details}

)}
{exp.period}
))}
)} {/* Achievements */} {achievements.length > 0 && (

{lang === 'ur' ? 'عوامی صحت میں خدمات اور کارنامے' : 'Key Contributions & Recognitions'}

    {achievements.map((item, idx) => (
  • {item}
  • ))}
)} {/* Publications & Reports */} {(publicationsList.length > 0 || reportsList.length > 0) && (
{publicationsList.length > 0 && (
{lang === 'ur' ? 'تحقیقی مقالہ جات' : 'Selected Publications'}
{publicationsList.map((pub, idx) => (

{pub.title}

{pub.journal} ({pub.year})

))}
)} {reportsList.length > 0 && (
{lang === 'ur' ? 'پبلک ہیلتھ رپورٹس' : 'Authored Health Reports'}
{reportsList.map((rep, idx) => (

{rep.title}

{rep.role} • {rep.year}

))}
)}
)}
); }; // ===== src/components/AdminPortal.tsx ===== const AdminPortal: React.FC = () => { const { lang, t, isAdminLoggedIn, loginAdmin, logoutAdmin, news, addNews, updateNews, deleteNews, media, addMedia, updateMedia, deleteMedia, reports, addReport, updateReport, deleteReport, diseases, addDisease, updateDisease, deleteDisease, subscribers, deleteSubscriber, settings, updateSettings, drProfile, updateDrProfile, setCurrentPage, showToast } = useApp(); const [passwordInput, setPasswordInput] = useState(''); const [activeTab, setActiveTab] = useState<'news' | 'media' | 'reports' | 'diseases' | 'subscribers' | 'settings'>('news'); // Modal states for CRUD const [editingNews, setEditingNews] = useState(null); const [isAddingNews, setIsAddingNews] = useState(false); const [editingMedia, setEditingMedia] = useState(null); const [isAddingMedia, setIsAddingMedia] = useState(false); const [editingReport, setEditingReport] = useState(null); const [isAddingReport, setIsAddingReport] = useState(false); const [editingDisease, setEditingDisease] = useState(null); const [isAddingDisease, setIsAddingDisease] = useState(false); // Settings local state const [settingsForm, setSettingsForm] = useState(settings); const handleLogin = (e: React.FormEvent) => { e.preventDefault(); const success = loginAdmin(passwordInput); if (success) { setPasswordInput(''); showToast(t.adminLoginSuccess, 'success'); } else { showToast(t.adminLoginError, 'error'); } }; const exportSubscribersCSV = () => { if (!subscribers || subscribers.length === 0) { showToast(lang === 'ur' ? 'کوئی سبسکرائبر موجود نہیں' : 'No subscribers to export', 'info'); return; } const csvContent = "data:text/csv;charset=utf-8,Email,Subscribed Date\n" + (subscribers || []).map(s => `"${s.email}","${s.subscribedAt || (s as any).date || ''}"`).join("\n"); const encodedUri = encodeURI(csvContent); const link = document.createElement("a"); link.setAttribute("href", encodedUri); link.setAttribute("download", `public_health_plus_subscribers_${new Date().toISOString().slice(0,10)}.csv`); document.body.appendChild(link); link.click(); document.body.removeChild(link); showToast(lang === 'ur' ? 'سبسکرائبرز CSV ڈاؤن لوڈ ہوگئی' : 'Subscribers CSV exported successfully', 'success'); }; // If Not Logged In -> Show Professional Auth Screen if (!isAdminLoggedIn) { return (

{t.adminPortal}

{lang === 'ur' ? 'محفوظ انتظامی پورٹل تک رسائی کے لیے پاس ورڈ درج کریں۔' : 'Enter your administrative credentials to manage content and advisories.'}

setPasswordInput(e.target.value)} placeholder="Enter password..." required className="w-full px-4 py-3 rounded-xl bg-slate-900 border border-slate-700 text-white placeholder:text-slate-500 focus:border-teal-500 focus:outline-none text-sm font-medium" />

{lang === 'ur' ? 'ڈیفالٹ پاس ورڈ: admin123 یا health2026' : 'Default Access: admin123 or health2026'}

); } // If Logged In -> Show Full Admin CMS Dashboard return (
{/* Admin Header Bar */}
AUTHENTICATED ADMIN Dr. Mushtaque Ahmed Shah Portal

{t.adminPortal}

{/* CMS Navigation Tabs */}
{/* TAB 1: NEWS MANAGEMENT */} {activeTab === 'news' && (

{t.manageNews}

Add, edit, publish or remove health advisories and bulletins

{news.map((item) => ( ))}
Title Category Date Status Actions
{item.title} {item.category} {item.date}
)} {/* TAB 2: VIDEOS & IMAGES MANAGEMENT */} {activeTab === 'media' && (

{t.manageMedia}

Admin-only video and infographic uploads with visitor protection

{media.map((item) => ( ))}
Type Title Topic Date Status Actions
{item.type} {item.title} {item.topic} {item.date}
)} {/* TAB 3: RESEARCH & REPORTS MANAGEMENT */} {activeTab === 'reports' && (

{t.manageReports}

Upload and organize technical reports, policy briefs and research

{reports.map((item) => ( ))}
Title Category Size Status Actions
{item.title} {item.category} {item.fileSize}
)} {/* TAB 4: DISEASES MANAGEMENT */} {activeTab === 'diseases' && (

{t.manageDiseases}

Manage 8-pillar clinical protocols for communicable and non-communicable diseases

{diseases.map((item) => ( ))}
Disease Name Urdu Name Category Status Actions
{item.name} {item.nameUrdu} {item.category}
)} {/* TAB 5: NEWSLETTER SUBSCRIBERS */} {activeTab === 'subscribers' && (

{t.manageSubscribers}

Total registered community and health personnel emails

{(!subscribers || subscribers.length === 0) ? ( ) : ( (subscribers || []).map((s) => ( )) )}
Email Address Subscribed Date Actions
No subscribers registered yet.
{s.email} {s.subscribedAt || (s as any).date || 'Recent'}
)} {/* TAB 6: SITE SETTINGS & DOCTOR CONTACT */} {activeTab === 'settings' && (

{t.siteSettings}

Configure Dr. Mushtaque contact details, address, social media and platform branding

{ e.preventDefault(); updateSettings(settingsForm); showToast(t.settingsSaved, 'success'); }} className="space-y-6" > {/* Branding Section */}

Brand Identity

setSettingsForm({ ...settingsForm, logoText: e.target.value })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, taglineEn: e.target.value })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, taglineUr: e.target.value })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white urdu-text" />
{/* Leadership Contact Details (Address, Email, Phone) */}

Leadership & Contact Information

setSettingsForm({ ...settingsForm, email: e.target.value })} placeholder="e.g. contact@publichealthplus.org" className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, phone: e.target.value })} placeholder="e.g. +92 300 0000000" className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, address: e.target.value })} placeholder="e.g. Public Health Secretariat, Karachi" className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
{/* Social Media Links */}

Social Media Channels

setSettingsForm({ ...settingsForm, socialLinks: { ...settingsForm.socialLinks, facebook: e.target.value } })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, socialLinks: { ...settingsForm.socialLinks, youtube: e.target.value } })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, socialLinks: { ...settingsForm.socialLinks, tiktok: e.target.value } })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
setSettingsForm({ ...settingsForm, socialLinks: { ...settingsForm.socialLinks, linkedin: e.target.value } })} className="w-full bg-slate-900 border border-slate-700 rounded-xl px-3.5 py-2.5 text-xs text-white" />
)}
{/* --- ADD/EDIT NEWS MODAL --- */} {(isAddingNews || editingNews) && ( { setIsAddingNews(false); setEditingNews(null); }} onSave={(data) => { if (editingNews) { updateNews(editingNews.id, data); showToast('News article updated', 'success'); } else { addNews(data as any); showToast('News article published', 'success'); } setIsAddingNews(false); setEditingNews(null); }} /> )} {/* --- ADD/EDIT MEDIA MODAL --- */} {(isAddingMedia || editingMedia) && ( { setIsAddingMedia(false); setEditingMedia(null); }} onSave={(data) => { if (editingMedia) { updateMedia(editingMedia.id, data); showToast('Media item updated', 'success'); } else { addMedia(data as any); showToast('Media item uploaded', 'success'); } setIsAddingMedia(false); setEditingMedia(null); }} /> )} {/* --- ADD/EDIT REPORT MODAL --- */} {(isAddingReport || editingReport) && ( { setIsAddingReport(false); setEditingReport(null); }} onSave={(data) => { if (editingReport) { updateReport(editingReport.id, data); showToast('Report updated', 'success'); } else { addReport(data as any); showToast('Report uploaded', 'success'); } setIsAddingReport(false); setEditingReport(null); }} /> )} {/* --- ADD/EDIT DISEASE MODAL --- */} {(isAddingDisease || editingDisease) && ( { setIsAddingDisease(false); setEditingDisease(null); }} onSave={(data) => { if (editingDisease) { updateDisease(editingDisease.id, data); showToast('Disease clinical protocol updated', 'success'); } else { addDisease(data as any); showToast('Disease clinical protocol added', 'success'); } setIsAddingDisease(false); setEditingDisease(null); }} /> )}
); }; /* --- SUB-COMPONENTS FOR ADMIN EDITORS --- */ const NewsFormModal: React.FC<{ initialData: NewsArticle | null; onClose: () => void; onSave: (data: Partial) => void; }> = ({ initialData, onClose, onSave }) => { const [formData, setFormData] = useState>( initialData || { title: '', titleUrdu: '', summary: '', summaryUrdu: '', content: '', contentUrdu: '', category: 'Communicable Diseases', categoryUrdu: 'متعدی امراض', author: 'Dr. Mushtaque Ahmed Shah, Public Health Specialist', featuredImage: 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80', readTime: '3 min read', published: true } ); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); onSave(formData); }; return (

{initialData ? 'Edit News Article' : 'Add New Health Advisory'}

setFormData({ ...formData, title: e.target.value })} className="w-full bg-slate-800 border border-slate-700 rounded-lg p-2 text-white" />
setFormData({ ...formData, titleUrdu: e.target.value })} className="w-full bg-slate-800 border border-slate-700 rounded-lg p-2 text-white urdu-text" />
setFormData({ ...formData, category: e.target.value })} className="w-full bg-slate-800 border border-slate-700 rounded-lg p-2 text-white" />
setFormData({ ...formData, featuredImage: e.target.value })} className="w-full bg-slate-800 border border-slate-700 rounded-lg p-2 text-white" />