/* =================================================
   Testimonial data — grouped by speciality.
   Each entry has type: "video" | "post"
   - video: shown as a play card (poster + duration)
   - post: shown as before/after image pair + story
   Used by both the home-page Testimonials section
   and the dedicated testimonials.html page.
   ================================================= */

const TESTIMONIAL_SPECIALITIES = [
  { key: "dengue",        label: "Dengue & Viral Fevers",      accent: "#B85C00" },
  { key: "arthritis",     label: "Arthritis & Joint Pain",     accent: "#1F8A5B" },
  { key: "spondylosis",   label: "Spondylosis & Back Pain",    accent: "#2A6FDB" },
  { key: "paralysis",     label: "Paralysis",                  accent: "#221A66" },
  { key: "asthma",        label: "Asthma",                     accent: "#1A1453" },
  { key: "crohns",        label: "Crohn's Disease",            accent: "#8E2A4C" },
  { key: "liver",         label: "Chronic Liver Disease",      accent: "#7A4D17" },
  { key: "gbs",           label: "Guillain-Barré Syndrome",    accent: "#0E5E78" },
  { key: "psoriasis",     label: "Psoriasis",                  accent: "#C8102E" },
];

const VIDEO_TESTIMONIALS = {
  psoriasis: [
    { type: "video", name: "Ravi Mehta",       age: 41, loc: "Hyderabad",  dur: "3:42", years: "8 years",  headline: "Clear skin for the first time in a decade." },
    { type: "post",  name: "Sunita Patel",     age: 36, loc: "Ahmedabad",  span: "6 mo", years: "6 years",
      headline: "Off steroids, no flare-ups in 14 months.",
      story: "Plaques across her back and elbows for six years. Tapered off topical steroids in week 4. By month 6, only faint pigmentation remained.",
      slots: 2 },
    { type: "video", name: "Amit Reddy",       age: 28, loc: "Bengaluru",  dur: "2:55", years: "5 years",  headline: "My scalp psoriasis is finally gone." },
    { type: "post",  name: "Lakshmi Iyer",     age: 52, loc: "Chennai",    span: "9 mo", years: "12 years",
      headline: "Three months in, the patches stopped spreading.",
      story: "Spreading psoriasis across both legs for 12 years. Stabilised by week 8, clearing by month 4, near-complete by month 9.",
      slots: 2 },
    { type: "video", name: "Vivek Sharma",     age: 33, loc: "Delhi",      dur: "3:21", years: "4 years",  headline: "From whole-body covered to almost clear." },
  ],
  asthma: [
    { type: "video", name: "Priya Nair",       age: 29, loc: "Kochi",       dur: "3:12", years: "10 years", headline: "I haven't touched an inhaler in 8 months." },
    { type: "post",  name: "Rohit Kulkarni",   age: 44, loc: "Pune",        span: "12 mo", years: "15 years",
      headline: "Off long-term steroids without a single attack.",
      story: "Daily inhaler use for 15 years. Tapered off oral steroids by month 3, off inhaler by month 8, no attacks since.",
      slots: 2 },
    { type: "video", name: "Anjali Singh",     age: 22, loc: "Lucknow",     dur: "2:48", years: "since childhood", headline: "First winter without a hospital visit." },
    { type: "video", name: "Mahesh Rao",       age: 58, loc: "Mangaluru",   dur: "3:55", years: "20 years", headline: "Breathing normally — no more nebuliser." },
    { type: "post",  name: "Kavya Menon",      age: 31, loc: "Trivandrum",  span: "Pregnancy", years: "7 years",
      headline: "Pregnancy without asthma attacks.",
      story: "Severe asthma since teens. Started treatment 4 months before conception. No flare-ups through full pregnancy and delivery.",
      slots: 2 },
  ],
  spondylosis: [
    { type: "video", name: "Suresh Yadav",     age: 49, loc: "Hyderabad",   dur: "4:22", years: "9 years",  headline: "No more painkillers, no more nerve blocks." },
    { type: "post",  name: "Meera Joshi",      age: 55, loc: "Mumbai",      span: "4 mo", years: "6 years",
      headline: "I can sit at my desk again — for hours.",
      story: "Cervical spondylosis with daily painkillers. By month 2, painkiller dose halved. By month 4, completely off medication.",
      slots: 2 },
    { type: "video", name: "Karthik Subbu",    age: 38, loc: "Coimbatore",  dur: "3:09", years: "4 years",  headline: "Avoided cervical surgery completely." },
    { type: "video", name: "Geetha Rao",       age: 62, loc: "Vijayawada",  dur: "5:14", years: "11 years", headline: "Lower back pain — gone in five months." },
    { type: "post",  name: "Rahul Bose",       age: 34, loc: "Kolkata",     span: "6 mo", years: "3 years",
      headline: "Back to playing badminton on weekends.",
      story: "L4-L5 disc bulge, told to avoid sports. Six months of treatment — full mobility restored, back on the court.",
      slots: 2 },
  ],
  crohns: [
    { type: "video", name: "Anita R.",         age: 39, loc: "Mumbai",      dur: "4:34", years: "5 years",  headline: "Five years of pain — gone in three months." },
    { type: "post",  name: "Devansh Khanna",   age: 27, loc: "Gurgaon",     span: "8 mo", years: "4 years",
      headline: "Lasting remission. Surgery cancelled.",
      story: "Crohn's flare requiring surgical consult. After 8 months: colonoscopy showed near-complete mucosal healing. Surgery cancelled.",
      slots: 2 },
    { type: "video", name: "Pooja Sethi",      age: 31, loc: "Jaipur",      dur: "4:11", years: "6 years",  headline: "I eat what I want now. No flare-ups." },
    { type: "post",  name: "Ashok Bhandari",   age: 46, loc: "Indore",      span: "10 mo", years: "8 years",
      headline: "Off biologics for the first time in years.",
      story: "On biologics for 5 years. Tapered with supervision over 10 months. CRP normalised, symptom-free.",
      slots: 2 },
    { type: "video", name: "Nisha Verma",      age: 24, loc: "Chandigarh",  dur: "2:43", years: "3 years",  headline: "Weight gain back, energy back." },
  ],
  dengue: [
    { type: "video", name: "Rapolu A.B.",      age: 67, loc: "Hyderabad",   dur: "3:08", years: "acute",    headline: "Platelets at 32k. Fever gone the next morning." },
    { type: "video", name: "Family Reddy",     age: 0,  loc: "Warangal",    dur: "2:46", years: "acute",    headline: "All four of us — recovered in 48 hours." },
    { type: "post",  name: "Vasanth Kumar",    age: 35, loc: "Hyderabad",   span: "5 days", years: "acute",
      headline: "₹1.8 lakh hospital bill avoided.",
      story: "Admitted with dengue, platelets at 28k. DAHT started day 2. Discharged in 5 days with platelets at 142k — no transfusion needed.",
      slots: 2 },
    { type: "video", name: "Saritha P.",       age: 41, loc: "Khammam",     dur: "2:55", years: "acute",    headline: "Chikungunya joint pain — gone in 3 days." },
    { type: "video", name: "Rajesh Goud",      age: 29, loc: "Hyderabad",   dur: "3:17", years: "acute",    headline: "Discharged before allopathy could act." },
  ],
  arthritis: [
    { type: "video", name: "Saraswati Devi",   age: 62, loc: "Karimnagar",  dur: "5:04", years: "14 years", headline: "I walked into my grandson's wedding." },
    { type: "post",  name: "Mohan Lal",        age: 71, loc: "Hyderabad",   span: "8 mo", years: "18 years",
      headline: "Knee replacement postponed indefinitely.",
      story: "Bone-on-bone arthritis. Surgery scheduled. Eight months of treatment — pain at 1/10, walking 5 km daily. Surgery cancelled.",
      slots: 2 },
    { type: "video", name: "Bhavana Reddy",    age: 48, loc: "Vizag",       dur: "3:38", years: "7 years",  headline: "Off methotrexate. CRP normalised." },
    { type: "post",  name: "Pradeep Naidu",    age: 56, loc: "Tirupati",    span: "2 yrs", years: "10 years",
      headline: "Gout attacks haven't returned in 2 years.",
      story: "Recurring gout flares every 6-8 weeks. Began treatment in 2022 — uric acid normalised by month 4, attack-free since.",
      slots: 2 },
    { type: "video", name: "Indira Pillai",    age: 64, loc: "Bengaluru",   dur: "3:21", years: "12 years", headline: "I climb stairs again, unaided." },
  ],
  paralysis: [
    { type: "video", name: "Suresh Chandra",   age: 52, loc: "Bengaluru",   dur: "5:46", years: "post-stroke", headline: "Walking again within weeks." },
    { type: "post",  name: "Ramesh Babu",      age: 67, loc: "Hyderabad",   span: "16 wks", years: "post-stroke",
      headline: "Regained 80% function in my right side.",
      story: "Right-sided hemiplegia post-stroke. Started DAHT week 2. Walking with cane by week 8, unaided by week 16.",
      slots: 2 },
    { type: "video", name: "Lalita K.",        age: 58, loc: "Karimnagar",  dur: "3:52", years: "facial",   headline: "Bell's palsy — full recovery in 6 weeks." },
    { type: "post",  name: "Vinod Pawar",      age: 49, loc: "Aurangabad",  span: "12 wks", years: "post-stroke",
      headline: "Speech and grip — back.",
      story: "Stroke left-side weakness, slurred speech. Speech clear by week 6, grip strength restored by week 12.",
      slots: 2 },
    { type: "video", name: "Anand Shetty",     age: 61, loc: "Mangaluru",   dur: "3:27", years: "post-stroke", headline: "From wheelchair to morning walks." },
  ],
  liver: [
    { type: "video", name: "Brijesh Tiwari",   age: 54, loc: "Varanasi",    dur: "4:47", years: "cirrhosis", headline: "Liver enzymes back in normal range." },
    { type: "post",  name: "Sunil Agarwal",    age: 61, loc: "Delhi",       span: "12 mo", years: "fibrosis",
      headline: "Avoided transplant evaluation.",
      story: "Stage 3 fibrosis, transplant evaluation scheduled. After 12 months: FibroScan improved from F3 to F1. Evaluation cancelled.",
      slots: 2 },
    { type: "video", name: "Kiran Reddy",      age: 47, loc: "Hyderabad",   dur: "3:54", years: "cirrhosis", headline: "Energy back, ascites resolved." },
    { type: "post",  name: "Ramana Murthy",    age: 58, loc: "Rajahmundry", span: "10 mo", years: "fibrosis",
      headline: "Living a normal life again.",
      story: "Chronic fatigue, jaundice episodes. ALT/AST normalised by month 5, energy levels restored by month 10.",
      slots: 2 },
    { type: "video", name: "Bhaskar Rao",      age: 65, loc: "Nellore",     dur: "3:38", years: "cirrhosis", headline: "Stopped getting worse. Started getting better." },
  ],
  gbs: [
    { type: "video", name: "Aravind Menon",    age: 36, loc: "Kochi",       dur: "6:12", years: "GBS",      headline: "I came in unable to use my hands." },
    { type: "post",  name: "Sandhya R.",       age: 28, loc: "Bengaluru",   span: "11 wks", years: "GBS",
      headline: "From ICU to fully walking — 11 weeks.",
      story: "ICU on ventilator, complete paralysis. DAHT started day 6. Off ventilator week 3, walking unaided week 11.",
      slots: 2 },
    { type: "video", name: "Krishna Murthy",   age: 44, loc: "Hyderabad",   dur: "5:33", years: "GBS",      headline: "Allopathy said permanent damage. They were wrong." },
    { type: "post",  name: "Deepa Iyer",       age: 39, loc: "Chennai",     span: "14 wks", years: "GBS",
      headline: "Back to teaching after full recovery.",
      story: "Severe GBS, told permanent residual weakness was likely. Fourteen weeks later: full motor function restored, back in classroom.",
      slots: 2 },
    { type: "video", name: "Vijay Anand",      age: 51, loc: "Madurai",     dur: "5:21", years: "GBS",      headline: "Driving, working, normal life — restored." },
  ],
};

if (typeof window !== "undefined") {
  window.TESTIMONIAL_SPECIALITIES = TESTIMONIAL_SPECIALITIES;
  window.VIDEO_TESTIMONIALS = VIDEO_TESTIMONIALS;
  window.CASE_STUDY_EXTENSION = {
    // optional per-testimonial extra detail keyed by `${slug}-${idx}`.
    // missing keys fall back to a sensible template generated at render time.
    // Add real case details here as they become available.
  };
}
