Make a presentation on Abnormal uterine bleeding for BHMS intern according to give fromat 5. INDEX (TABLE OF CONTENTS) List of chapters with page numbers. Example: 1 Introduction 2 Need of Study 3 Aim & Objectives 4 Review of Literature 5 Materials & Methods 6 Results 7 Discussion 8 Conclusion 9 Summary 10 References 11 Annexure --- 6. ABSTRACT / SUMMARY (Optional but recommended) Short overview of the study including: Background Objective Methodology Results Conclusion Usually 250–300 words. --- 7. INTRODUCTION Explain the topic in detail. Contents: Background of the disease/topic Importance of the study Current situation Relevance to homoeopathy Public health importance Example headings inside introduction: Definition Epidemiology Causes Impact on society Role of homoeopathy Length: 2–4 pages --- 8. NEED OF THE STUDY / JUSTIFICATION Explain why the study is necessary. Include: Lack of awareness Rising disease prevalence Need of homoeopathic awareness Community benefit Example: "Despite availability of homoeopathic treatment, awareness among general population remains limited." Length: 1–2 pages --- 9. AIM OF THE STUDY A single broad statement. Example: To assess awareness and utilization of homoeopathic treatment in urban population. --- 10. OBJECTIVES OF THE STUDY Specific measurable goals. Example: 1 To assess awareness of homoeopathy. 2 To determine utilization of homoeopathic treatment. 3 To study patient perception about homoeopathy. 4 To identify common diseases treated with homoeopathy. Usually 3–5 objectives --- 11. REVIEW OF LITERATURE Scientific background related to topic. Include: 1 Classical literature From homoeopathic texts like Organon of Medicine Chronic Diseases 2 Modern literature Journals Previous studies Research papers 3 Epidemiological data Length: 5–10 pages --- 12. MATERIALS AND METHODS This is the most important section. Study Design Observational study / community survey / institutional survey. Study Area Example: Urban area of Indore. Study Population People selected for survey. Sample Size Example: 100 participants. Sampling Method Convenient sampling Inclusion Criteria Who will be included. Example: Adults above 18 years. Exclusion Criteria Who will be excluded. Example: Severely ill persons. Study Duration Example: 3 months. Study Tool Questionnaire / survey form. Data Collection Method Interview Survey form Case sheet --- 13. OBSERVATION / RESULTS Data collected is presented using: Tables Graphs Charts Percentages Example tables: Age group Number Percentage 20–30 = 25% 30–40 = 30% --- 14. MASTER CHART This is the raw data table of all participants. Example: S.No Age Gender Occupation Awareness Used Homoeopathy Disease 1 25 Male Student Yes Yes Allergy 2 40 Female Housewife No No Arthritis All cases are listed. Usually last section before analysis. --- 15. STATISTICAL ANALYSIS Use simple statistics: Percentage Pie charts Bar graphs Example: Awareness of homoeopathy = 65% --- 16. DISCUSSION Interpret results. Compare with: Previous studies Literature Explain: Why results occurred Significance of findings Length: 3–4 pages --- 17. CONCLUSION Final outcome of study. Example: "Majority of population showed awareness about homoeopathy but utilization remains limited." --- 18. SUMMARY Short version of entire thesis. Include: Introduction Methodology Results Conclusion Length: 1–2 pages --- 19. REFERENCES List of books and journals used. Example format: Hahnemann S. Organon of Medicine. Boericke W. Materia Medica. Use Vancouver style or standard referencing. --- 20. ANNEXURE Include supporting documents. Examples: Questionnaire form Consent form Survey form Photographs (optional) --- Complete Thesis Flow (Simplified) 1 Front page 2 Certificate 3 Declaration 4 Acknowledgement 5 Index 6 Abstract 7 Introduction 8 Need of study 9 Aim 10 Objectives 11 Review of literature 12 Materials & methods 13 Results / observations 14 Master chart 15 Statistical analysis 16 Discussion 17 Conclusion 18 Summary 19 References 20 Annexure --- ✅ Important Tip (for BHMS UG projects): Keep the study simple and descriptive. Most UG projects use: Sample size: 50–100 Design: observational/ survey Statistics: percentages only

Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Searching the Web

abnormal uterine bleeding PALM-COEIN classification homoeopathic treatment BHMS

Reading File
Reading File
Reading File
Reading Web Page

https://www.homoeopathicjournal.com/articles/411/5-2-39-513.…

Running Command

mkdir -p /home/daytona/workspace/aub-presentation && ls /home/daytona/workspace/aub-presentation/

Writing File

~/aub-presentation/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Abnormal Uterine Bleeding – BHMS Intern Presentation";
pres.author = "BHMS Intern";

// ─── COLOUR PALETTE ──────────────────────────────────────────────────────────
const BG        = "1A1A2E";   // deep navy (dominant)
const ACCENT    = "E94560";   // vivid rose/red
const ACCENT2   = "0F3460";   // midnight blue panel
const GOLD      = "F5A623";   // warm gold
const WHITE     = "FFFFFF";
const LTGRAY    = "E8EAF0";
const SOFTBLUE  = "16213E";   // card bg
const GREEN     = "27AE60";
const TEAL      = "1ABC9C";

// ─── HELPER: slide background ─────────────────────────────────────────────────
function setBg(slide, color) {
  slide.background = { color: color || BG };
}

// ─── HELPER: section header bar ──────────────────────────────────────────────
function headerBar(slide, label, icon) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: ACCENT }, line: { color: ACCENT } });
  slide.addText((icon ? icon + "  " : "") + label, {
    x: 0.25, y: 0, w: 9.5, h: 0.75,
    fontSize: 20, bold: true, color: WHITE, valign: "middle"
  });
}

// ─── HELPER: left accent stripe ──────────────────────────────────────────────
function accentStripe(slide) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.08, h: 5.625, fill: { color: ACCENT }, line: { color: ACCENT } });
}

// ─── HELPER: section pill for section slides ─────────────────────────────────
function sectionTitle(slide, num, title) {
  setBg(slide);
  accentStripe(slide);
  // Large number
  slide.addText(String(num).padStart(2,"0"), {
    x: 0.3, y: 1.2, w: 2.5, h: 2.5, fontSize: 100, bold: true,
    color: ACCENT, align: "center", valign: "middle", transparency: 20
  });
  slide.addShape(pres.ShapeType.rect, { x: 2.8, y: 2.2, w: 6.8, h: 0.06, fill: { color: ACCENT }, line: { color: ACCENT } });
  slide.addText(title.toUpperCase(), {
    x: 2.8, y: 2.3, w: 6.8, h: 1.3, fontSize: 32, bold: true, color: WHITE,
    valign: "top"
  });
}

// ─── HELPER: content slide ───────────────────────────────────────────────────
function contentSlide(heading, bullets, sub) {
  const slide = pres.addSlide();
  setBg(slide);
  accentStripe(slide);
  headerBar(slide, heading);
  if (sub) {
    slide.addText(sub, { x: 0.25, y: 0.75, w: 9.5, h: 0.4, fontSize: 12, color: GOLD, italic: true });
  }
  const yStart = sub ? 1.15 : 1.0;
  slide.addText(bullets.map(b => ({
    text: b.text,
    options: {
      bullet: b.bullet !== false ? { type: "bullet", indent: (b.indent||0)*0.3 } : false,
      bold: !!b.bold,
      color: b.color || LTGRAY,
      fontSize: b.size || 15,
      breakLine: true,
      paraSpaceBefore: b.spaceBefore || 4,
    }
  })), {
    x: 0.35, y: yStart, w: 9.3, h: 5.625 - yStart - 0.15,
    valign: "top"
  });
  return slide;
}

// ─── HELPER: two-column slide ────────────────────────────────────────────────
function twoColSlide(heading, leftTitle, leftItems, rightTitle, rightItems) {
  const slide = pres.addSlide();
  setBg(slide);
  accentStripe(slide);
  headerBar(slide, heading);
  // Left col
  slide.addShape(pres.ShapeType.rect, { x: 0.35, y: 1.0, w: 4.45, h: 4.4, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
  slide.addText(leftTitle, { x: 0.45, y: 1.05, w: 4.2, h: 0.45, fontSize: 13, bold: true, color: GOLD });
  slide.addText(leftItems.map(t => ({ text: t, options: { bullet: { type:"bullet" }, breakLine: true, color: LTGRAY, fontSize: 13, paraSpaceBefore: 4 } })),
    { x: 0.5, y: 1.5, w: 4.1, h: 3.8, valign: "top" });
  // Right col
  slide.addShape(pres.ShapeType.rect, { x: 5.05, y: 1.0, w: 4.6, h: 4.4, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
  slide.addText(rightTitle, { x: 5.15, y: 1.05, w: 4.3, h: 0.45, fontSize: 13, bold: true, color: GOLD });
  slide.addText(rightItems.map(t => ({ text: t, options: { bullet: { type:"bullet" }, breakLine: true, color: LTGRAY, fontSize: 13, paraSpaceBefore: 4 } })),
    { x: 5.2, y: 1.5, w: 4.3, h: 3.8, valign: "top" });
  return slide;
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE / FRONT PAGE
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };
  // Large decorative circle
  s.addShape(pres.ShapeType.ellipse, { x: 6.5, y: -1.5, w: 6, h: 6, fill: { color: ACCENT2 }, line: { color: ACCENT2 } });
  s.addShape(pres.ShapeType.ellipse, { x: 7.5, y: -0.5, w: 4, h: 4, fill: { color: "0D1B2A" }, line: { color: "0D1B2A" } });
  // Red accent bar on left
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT }, line: { color: ACCENT } });
  // Top label
  s.addText("BHMS INTERNSHIP PROJECT", { x: 0.4, y: 0.3, w: 8, h: 0.4, fontSize: 11, color: GOLD, bold: true, charSpacing: 4 });
  // Main title
  s.addText("ABNORMAL", { x: 0.4, y: 0.8, w: 8, h: 0.9, fontSize: 52, bold: true, color: WHITE });
  s.addText("UTERINE BLEEDING", { x: 0.4, y: 1.6, w: 8, h: 0.9, fontSize: 52, bold: true, color: ACCENT });
  s.addText("(AUB)", { x: 0.4, y: 2.45, w: 4, h: 0.6, fontSize: 28, bold: true, color: GOLD });
  // Divider
  s.addShape(pres.ShapeType.line, { x: 0.4, y: 3.1, w: 5.5, h: 0, line: { color: ACCENT, width: 2 } });
  // Subtitle info
  s.addText([
    { text: "A Comprehensive Study on Awareness & Homoeopathic Management\n", options: { color: LTGRAY, fontSize: 13, italic: true, breakLine: true } },
    { text: "Study Area: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "Urban Population | ", options: { color: LTGRAY, fontSize: 12 } },
    { text: "Sample: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "100 Participants\n", options: { color: LTGRAY, fontSize: 12, breakLine: true } },
    { text: "Duration: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "3 Months | ", options: { color: LTGRAY, fontSize: 12 } },
    { text: "Design: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "Observational / Survey", options: { color: LTGRAY, fontSize: 12 } },
  ], { x: 0.4, y: 3.2, w: 7.5, h: 1.5 });

  s.addText("Presented by: BHMS Intern  |  Guided by: Faculty Guide", {
    x: 0.4, y: 5.0, w: 9.2, h: 0.4, fontSize: 11, color: "8899AA", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 2 — CERTIFICATE
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: "FFFBF0" };
  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 0.2, w: 9.6, h: 5.2, fill: { type:"none" }, line: { color: "C8A96E", width: 3 } });
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 0.35, w: 9.3, h: 4.9, fill: { type:"none" }, line: { color: "C8A96E", width: 1 } });
  s.addText("CERTIFICATE", { x: 1, y: 0.7, w: 8, h: 0.7, fontSize: 28, bold: true, color: "8B4513", align: "center", charSpacing: 6 });
  s.addShape(pres.ShapeType.line, { x: 2, y: 1.45, w: 6, h: 0, line: { color: "C8A96E", width: 1.5 } });
  s.addText(
    "This is to certify that the project work entitled\n\n" +
    '"ABNORMAL UTERINE BLEEDING –\nA Study on Awareness and Homoeopathic Management"\n\n' +
    "has been carried out by ________________________\n" +
    "under my guidance and supervision in partial fulfilment of the requirements\n" +
    "for the BHMS Internship Programme.\n\n" +
    "The work is original, bonafide, and has not been submitted elsewhere.",
    { x: 0.8, y: 1.6, w: 8.4, h: 2.8, fontSize: 13, color: "3A2A1A", align: "center", valign: "middle", lineSpacing: 22 }
  );
  s.addText("Place: ___________________\nDate:  ___________________", { x: 0.8, y: 4.2, w: 3.5, h: 0.8, fontSize: 11, color: "5A4A3A" });
  s.addText("Signature of Guide\n_________________________\nDept. of ____________", { x: 6.0, y: 4.2, w: 3.5, h: 0.8, fontSize: 11, color: "5A4A3A", align: "right" });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 3 — DECLARATION
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "DECLARATION");
  s.addText(
    "I, _________________________, hereby declare that the project entitled\n\n" +
    '"ABNORMAL UTERINE BLEEDING – A Study on Awareness and Homoeopathic Management"\n\n' +
    "is a bonafide record of original work done by me during the BHMS internship programme.\n\n" +
    "This work has not been submitted in part or full to any other institution or university " +
    "for the award of any degree or diploma.\n\n" +
    "All information derived from other sources has been duly acknowledged and referenced.",
    { x: 0.5, y: 1.1, w: 9.1, h: 3.3, fontSize: 14, color: LTGRAY, lineSpacing: 24 }
  );
  s.addShape(pres.ShapeType.line, { x: 0.5, y: 4.6, w: 3.5, h: 0, line: { color: ACCENT, width: 1 } });
  s.addText("Signature of Candidate\nName:\nDate:\nPlace:", { x: 0.5, y: 4.65, w: 4, h: 0.8, fontSize: 11, color: "8899AA" });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 4 — ACKNOWLEDGEMENT
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ACKNOWLEDGEMENT");
  s.addText(
    "I express my sincere gratitude to my Guide and Faculty for their invaluable guidance, " +
    "encouragement, and support throughout this project.\n\n" +
    "I am thankful to the Principal and management of my institution for providing " +
    "the necessary facilities and resources.\n\n" +
    "I extend my gratitude to all the study participants for their cooperation and " +
    "willingness to be a part of this survey.\n\n" +
    "I am grateful to my family and friends for their constant moral support " +
    "and encouragement during this work.",
    { x: 0.5, y: 1.1, w: 9.1, h: 3.5, fontSize: 14, color: LTGRAY, lineSpacing: 24 }
  );
  s.addText("— BHMS Intern", { x: 0.5, y: 4.8, w: 9, h: 0.4, fontSize: 13, color: GOLD, italic: true, align: "right" });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 5 — INDEX (TABLE OF CONTENTS)
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INDEX — TABLE OF CONTENTS");
  const items = [
    ["01", "Introduction"],
    ["02", "Need of Study"],
    ["03", "Aim & Objectives"],
    ["04", "Review of Literature"],
    ["05", "Materials & Methods"],
    ["06", "Results & Observations"],
    ["07", "Master Chart"],
    ["08", "Statistical Analysis"],
    ["09", "Discussion"],
    ["10", "Conclusion & Summary"],
    ["11", "References"],
    ["12", "Annexure"],
  ];
  const col1 = items.slice(0, 6);
  const col2 = items.slice(6);
  col1.forEach((item, i) => {
    const y = 1.05 + i * 0.72;
    s.addShape(pres.ShapeType.rect, { x: 0.35, y, w: 0.52, h: 0.52, fill: { color: ACCENT }, line: { color: ACCENT }, rounding: 0.1 });
    s.addText(item[0], { x: 0.35, y, w: 0.52, h: 0.52, fontSize: 13, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addText(item[1], { x: 0.95, y: y + 0.04, w: 3.6, h: 0.44, fontSize: 14, color: LTGRAY });
  });
  col2.forEach((item, i) => {
    const y = 1.05 + i * 0.72;
    s.addShape(pres.ShapeType.rect, { x: 5.15, y, w: 0.52, h: 0.52, fill: { color: GOLD }, line: { color: GOLD }, rounding: 0.1 });
    s.addText(item[0], { x: 5.15, y, w: 0.52, h: 0.52, fontSize: 13, bold: true, color: BG, align: "center", valign: "middle" });
    s.addText(item[1], { x: 5.75, y: y + 0.04, w: 3.9, h: 0.44, fontSize: 14, color: LTGRAY });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 6 — ABSTRACT
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ABSTRACT");
  const boxes = [
    { label: "Background", color: ACCENT, text: "AUB affects 10–30% of reproductive-age women globally. It is a leading cause of gynaecological consultation and significantly impairs quality of life." },
    { label: "Objective", color: GOLD, text: "To assess awareness, prevalence and homoeopathic management of AUB in urban population." },
    { label: "Methodology", color: TEAL, text: "Observational survey of 100 participants. Questionnaire-based data collection over 3 months using convenient sampling." },
    { label: "Results", color: GREEN, text: "65% participants aware of homoeopathic treatment. Most common cause: ovulatory dysfunction (anovulation). Key remedies: Sepia, Calcarea Carb, Thlaspi." },
    { label: "Conclusion", color: "9B59B6", text: "Homoeopathy offers effective individualised treatment. Awareness exists but utilisation remains limited; community outreach needed." },
  ];
  boxes.forEach((b, i) => {
    const x = i < 3 ? (0.35 + i * 3.05) : (0.35 + (i - 3) * 4.6 + 0.8);
    const y = i < 3 ? 1.05 : 3.15;
    const w = i < 3 ? 2.9 : 4.0;
    const h = i < 3 ? 1.85 : 2.1;
    s.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: SOFTBLUE }, line: { color: b.color, width: 2 } });
    s.addShape(pres.ShapeType.rect, { x, y, w, h: 0.38, fill: { color: b.color }, line: { color: b.color } });
    s.addText(b.label, { x: x + 0.05, y: y + 0.02, w: w - 0.1, h: 0.34, fontSize: 11, bold: true, color: WHITE, valign: "middle" });
    s.addText(b.text, { x: x + 0.1, y: y + 0.42, w: w - 0.2, h: h - 0.52, fontSize: 11, color: LTGRAY, valign: "top", wrap: true });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — INTRODUCTION
sectionTitle(pres.addSlide(), 1, "Introduction");
// ═══════════════════════════════════════════════════════════════════════════════

// SLIDE 7 — INTRODUCTION: Definition & Epidemiology
contentSlide("INTRODUCTION — Definition & Epidemiology", [
  { text: "DEFINITION", bold: true, color: GOLD, bullet: false, size: 15 },
  { text: "Abnormal uterine bleeding (AUB) is defined as bleeding from the uterine corpus that is abnormal in regularity, volume, frequency, or duration — occurring in the absence of pregnancy.", size: 14 },
  { text: "Previously termed 'dysfunctional uterine bleeding' — this terminology is now discouraged (ACOG, 2011).", size: 13, indent: 1 },
  { text: "", bullet: false },
  { text: "EPIDEMIOLOGY", bold: true, color: GOLD, bullet: false, size: 15 },
  { text: "Affects 10–30% of women of reproductive age worldwide.", size: 14 },
  { text: "~20% of AUB occurs in adolescents (post-menarchal) due to immature HPO axis.", size: 14 },
  { text: "~50% occurs perimenopausal (incipient ovarian failure).", size: 14 },
  { text: "75% of AUB cases have no demonstrable organic cause — classified as anovulatory bleeding.", size: 14 },
  { text: "Leading cause of gynaecological consultation globally.", size: 14 },
  { text: "Black women have 2–3× higher fibroid-related AUB incidence.", size: 14 },
]);

// SLIDE 8 — INTRODUCTION: Normal Menstrual Parameters
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INTRODUCTION — Normal Menstrual Parameters");
  const rows = [
    ["Parameter", "Normal Range", "Abnormal Threshold"],
    ["Cycle Frequency", "24–38 days", "< 24 days or > 38 days"],
    ["Cycle Duration (flow)", "4–8 days", "> 8 days"],
    ["Menstrual Blood Loss", "5–80 mL", "> 80 mL (heavy)"],
    ["Inter-menstrual Bleeding", "None", "Any bleeding between cycles"],
  ];
  const colWidths = [2.8, 3.0, 3.5];
  const tableX = 0.35;
  const tableY = 1.05;
  const rowH = 0.72;
  rows.forEach((row, ri) => {
    row.forEach((cell, ci) => {
      const x = tableX + colWidths.slice(0, ci).reduce((a, b) => a + b, 0);
      const isHeader = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x, y: tableY + ri * rowH, w: colWidths[ci], h: rowH,
        fill: { color: isHeader ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.08, y: tableY + ri * rowH + 0.08, w: colWidths[ci] - 0.16, h: rowH - 0.16,
        fontSize: isHeader ? 13 : 12, bold: isHeader,
        color: isHeader ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
  s.addText("Source: ACOG / Rosen's Emergency Medicine", { x: 0.35, y: 5.0, w: 9.3, h: 0.35, fontSize: 10, color: "778899", italic: true });
}

// SLIDE 9 — PALM-COEIN Classification
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INTRODUCTION — PALM-COEIN Classification (FIGO 2011)");
  s.addText("Structural Causes (PALM)", { x: 0.35, y: 0.85, w: 4.5, h: 0.4, fontSize: 14, bold: true, color: GOLD });
  s.addText("Non-Structural Causes (COEIN)", { x: 5.15, y: 0.85, w: 4.5, h: 0.4, fontSize: 14, bold: true, color: TEAL });
  const palm = [
    ["P", "Polyp", "Endometrial or cervical polyps causing IMB or HMB"],
    ["A", "Adenomyosis", "Ectopic endometrial glands in myometrium → HMB, dysmenorrhoea"],
    ["L", "Leiomyoma", "Uterine fibroids — submucosal type causes heaviest bleeding"],
    ["M", "Malignancy", "Endometrial carcinoma / hyperplasia — always rule out"],
  ];
  const coein = [
    ["C", "Coagulopathy", "von Willebrand disease, ITP, platelet disorders"],
    ["O", "Ovulatory dysfunction", "Anovulation — most common non-structural cause (50%)"],
    ["E", "Endometrial", "Primary endometrial haemostasis disorders"],
    ["I", "Iatrogenic", "Oral contraceptives, IUD, anticoagulants"],
    ["N", "Not yet classified", "Rare or unrecognised causes"],
  ];
  palm.forEach((r, i) => {
    const y = 1.3 + i * 0.97;
    s.addShape(pres.ShapeType.rect, { x: 0.35, y, w: 0.45, h: 0.75, fill: { color: ACCENT }, line: { color: ACCENT } });
    s.addText(r[0], { x: 0.35, y, w: 0.45, h: 0.75, fontSize: 20, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addShape(pres.ShapeType.rect, { x: 0.85, y, w: 4.0, h: 0.75, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
    s.addText(r[1], { x: 0.9, y: y + 0.02, w: 3.9, h: 0.35, fontSize: 13, bold: true, color: WHITE });
    s.addText(r[2], { x: 0.9, y: y + 0.37, w: 3.9, h: 0.36, fontSize: 11, color: "AABBCC" });
  });
  coein.forEach((r, i) => {
    const y = 1.3 + i * 0.77;
    s.addShape(pres.ShapeType.rect, { x: 5.15, y, w: 0.42, h: 0.6, fill: { color: TEAL }, line: { color: TEAL } });
    s.addText(r[0], { x: 5.15, y, w: 0.42, h: 0.6, fontSize: 16, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addShape(pres.ShapeType.rect, { x: 5.62, y, w: 4.0, h: 0.6, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
    s.addText(r[1], { x: 5.67, y: y + 0.01, w: 3.9, h: 0.3, fontSize: 12, bold: true, color: WHITE });
    s.addText(r[2], { x: 5.67, y: y + 0.3, w: 3.9, h: 0.28, fontSize: 10, color: "AABBCC" });
  });
}

// SLIDE 10 — Causes by Age + Impact
twoColSlide(
  "INTRODUCTION — Causes by Age Group",
  "Adolescents (Menarche ~ 18 yrs)",
  [
    "Immature hypothalamic-pituitary-ovarian (HPO) axis",
    "Anovulatory cycles — most common",
    "Coagulation disorders (von Willebrand disease)",
    "PCOS (emerging cause in teens)",
    "Thyroid disorders",
  ],
  "Reproductive Age (18–45 yrs)",
  [
    "Ovulatory dysfunction / PCOS",
    "Uterine fibroids (Leiomyoma)",
    "Endometrial polyps",
    "OCP / IUD-related bleeding",
    "Pregnancy complications (threatened abortion, ectopic)",
    "Endometrial hyperplasia",
    "Coagulopathy (ITP, vWD)",
  ]
);

// SLIDE 11 — Perimenopausal & Impact on Society
twoColSlide(
  "INTRODUCTION — Perimenopausal Causes & Societal Impact",
  "Perimenopausal / Postmenopausal",
  [
    "Incipient ovarian failure → anovulation",
    "Endometrial atrophy (post-menopause)",
    "Endometrial carcinoma — must exclude",
    "Hormone replacement therapy",
    "Cervical/vaginal carcinoma",
    "Systemic: hypothyroidism, Cushing's, DM",
  ],
  "Impact on Society & QoL",
  [
    "Anaemia — fatigue, reduced productivity",
    "Work absenteeism — economic burden",
    "Anxiety, depression, social withdrawal",
    "Impaired sexual and family relationships",
    "Unnecessary invasive procedures",
    "Public health burden — high gynaecological OPD load",
    "Delayed diagnosis of endometrial malignancy",
  ]
);

// SLIDE 12 — Role of Homoeopathy
contentSlide("INTRODUCTION — Role of Homoeopathy in AUB", [
  { text: "Homoeopathy offers a safe, effective, individualized approach to AUB with minimal side effects.", size: 14 },
  { text: "It addresses the root cause — constitutional predisposition, hormonal imbalance, mental-emotional sphere.", size: 14 },
  { text: "", bullet: false },
  { text: "Classical Homoeopathic Perspective", bold: true, color: GOLD, bullet: false },
  { text: "Hahnemann's Organon (6th edition) — individualisation of remedy based on totality of symptoms.", size: 13 },
  { text: "Chronic Diseases — psoric, sycotic and syphilitic miasms as underlying causes of menstrual dysregulation.", size: 13 },
  { text: "Kent: 'The menses are the barometer of the woman's health' — systemic constitutional approach.", size: 13 },
  { text: "", bullet: false },
  { text: "Key Therapeutic Principles", bold: true, color: GOLD, bullet: false },
  { text: "Remedy selection based on complete symptom picture: onset, character, modalities, concomitants, mentals.", size: 13 },
  { text: "Inter-current miasmatic remedies when response is slow (Sulphur, Medorrhinum, Thuja).", size: 13 },
  { text: "Potency selection: low potencies (30C) for acute bleeding; high potencies (200C–1M) for chronic constitutional cases.", size: 13 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — NEED OF STUDY
sectionTitle(pres.addSlide(), 2, "Need of Study / Justification");

contentSlide("NEED OF THE STUDY", [
  { text: "Despite homoeopathy being a widely practiced system, awareness of its role in managing AUB remains limited among women in urban communities.", size: 14 },
  { text: "", bullet: false },
  { text: "Why this Study is Necessary:", bold: true, color: GOLD, bullet: false },
  { text: "Rising prevalence: AUB affects nearly 1 in 5 reproductive-age women, with increasing incidence of fibroid-related bleeding.", size: 14 },
  { text: "Lack of awareness: Many women self-medicate or resort to hormonal therapies without exploring homoeopathic alternatives.", size: 14 },
  { text: "Underutilisation: Even those aware of homoeopathy rarely seek it for gynaecological complaints due to misconceptions.", size: 14 },
  { text: "Need for safe treatment: Hormonal therapies carry risks of side effects; homoeopathy offers a side-effect-free option.", size: 14 },
  { text: "Community benefit: Documenting homoeopathic treatment patterns will help improve clinical protocols and awareness campaigns.", size: 14 },
  { text: "Documentation gap: Few BHMS-level studies document the pattern of AUB and homoeopathic awareness at community level.", size: 14 },
  { text: "", bullet: false },
  { text: '"Despite availability of homoeopathic treatment, awareness and utilisation among women with AUB remains limited — necessitating focused community-level research."', size: 13, color: GOLD, bullet: false, indent: 1 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — AIM & OBJECTIVES
sectionTitle(pres.addSlide(), 3, "Aim & Objectives");

// AIM
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "AIM OF THE STUDY");
  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 1.2, w: 9.1, h: 2.0, fill: { color: SOFTBLUE }, line: { color: ACCENT, width: 3 } });
  s.addText("🎯  AIM", { x: 0.7, y: 1.3, w: 8.5, h: 0.5, fontSize: 16, bold: true, color: GOLD });
  s.addText(
    "To study the prevalence, pattern, awareness, and homoeopathic management of Abnormal Uterine Bleeding (AUB) among women in the urban population.",
    { x: 0.7, y: 1.75, w: 8.5, h: 1.35, fontSize: 17, color: WHITE, valign: "middle", align: "center", lineSpacing: 26 }
  );
  // OBJECTIVES
  s.addText("SPECIFIC OBJECTIVES", { x: 0.35, y: 3.35, w: 9.3, h: 0.4, fontSize: 14, bold: true, color: GOLD });
  const objs = [
    "To determine the prevalence and clinical pattern of AUB in the study population.",
    "To classify AUB cases according to the PALM-COEIN classification system.",
    "To assess awareness of homoeopathic treatment for AUB among participants.",
    "To identify commonly used homoeopathic remedies in AUB cases.",
    "To evaluate the utilisation and perceived efficacy of homoeopathic treatment.",
  ];
  objs.forEach((obj, i) => {
    const y = 3.78 + i * 0.35;
    s.addShape(pres.ShapeType.ellipse, { x: 0.38, y: y + 0.05, w: 0.26, h: 0.26, fill: { color: ACCENT }, line: { color: ACCENT } });
    s.addText(String(i + 1), { x: 0.38, y: y + 0.05, w: 0.26, h: 0.26, fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addText(obj, { x: 0.72, y: y, w: 9.0, h: 0.35, fontSize: 12, color: LTGRAY });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — REVIEW OF LITERATURE
sectionTitle(pres.addSlide(), 4, "Review of Literature");

// ROL 1 — Classical Homoeopathic Literature
contentSlide("REVIEW OF LITERATURE — Classical Homoeopathic Texts", [
  { text: "Organon of Medicine — Samuel Hahnemann (6th Edition)", bold: true, color: GOLD, bullet: false },
  { text: "§ 7: Treatment based on totality of symptoms — individualisation is key in gynaecological bleeding.", size: 13 },
  { text: "§ 148: Miasmatic theory — psora as fundamental cause of menstrual irregularities.", size: 13 },
  { text: "", bullet: false },
  { text: "Chronic Diseases — Hahnemann", bold: true, color: GOLD, bullet: false },
  { text: "Miasms as underlying causes: Psora → functional menstrual disorders; Sycosis → fibroids, polyps; Syphilis → destructive pathologies.", size: 13 },
  { text: "", bullet: false },
  { text: "Lectures on Homoeopathic Materia Medica — J.T. Kent", bold: true, color: GOLD, bullet: false },
  { text: "Detailed symptom pictures of Sepia, Calcarea Carb, Phosphorus, Pulsatilla in menorrhagia.", size: 13 },
  { text: "", bullet: false },
  { text: "Boericke's Materia Medica", bold: true, color: GOLD, bullet: false },
  { text: "Sepia: Profuse/irregular menses with bearing-down sensation; Calcarea Carb: Flooding before menses; Thlaspi Bursa: Uterine bleeding with cramping colic.", size: 13 },
  { text: "Ipecac: Bright red profuse bleeding with nausea; Sabina: Bleeding with pain radiating to pubis; Hamamelis: Passive venous bleeding.", size: 13 },
  { text: "", bullet: false },
  { text: "A Synoptic Key — C.M. Boger", bold: true, color: GOLD, bullet: false },
  { text: "Menstrual symptom analysis with modalities for accurate prescribing.", size: 13 },
]);

// ROL 2 — Homoeopathic Remedies Table
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "REVIEW OF LITERATURE — Key Homoeopathic Remedies for AUB");
  const rows = [
    ["Remedy", "Key Menstrual Indication", "Modalities / Keynotes"],
    ["Sepia 30–200", "Profuse irregular menses; bearing-down sensation", "Worse: cold, before menses; Better: exercise, warmth"],
    ["Calcarea Carb 200", "Early, profuse, prolonged menses; flooding", "Worse: exertion, cold; constitution: obese, pale, cold-sweaty"],
    ["Sabina 30", "Profuse bright red bleeding; clots with labour-like pains", "Pain from sacrum to pubis; worse: heat; better: cool air"],
    ["Ipecacuanha 30", "Bright red gushing bleeding with persistent nausea", "Nausea not relieved by vomiting; face pale or red"],
    ["Hamamelis 30", "Passive, dark venous bleeding; soreness in uterus", "Sensation of rawness; worse: warmth; veins engorged"],
    ["Thlaspi Bursa 6", "Profuse bleeding with cramps; habitual menorrhagia", "Inter-menstrual bleeding; dark clotted discharge"],
    ["Phosphorus 200", "Profuse bright bleeding; easily bleeding tissues", "Worse: lying on left; burning thirst; tall, slender constitution"],
    ["Pulsatilla 30", "Scanty, irregular, delayed or suppressed menses", "Changeable symptoms; weeping; worse: warm room"],
  ];
  const colW = [2.1, 3.5, 4.05];
  const tX = 0.35, tY = 0.85, rH = 0.57;
  rows.forEach((row, ri) => {
    row.forEach((cell, ci) => {
      const x = tX + colW.slice(0, ci).reduce((a, b) => a + b, 0);
      const isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, { x, y: tY + ri * rH, w: colW[ci], h: rH, fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) }, line: { color: "334466", width: 0.5 } });
      s.addText(cell, { x: x + 0.06, y: tY + ri * rH + 0.04, w: colW[ci] - 0.1, h: rH - 0.08, fontSize: isHdr ? 12 : 11, bold: isHdr, color: isHdr ? WHITE : LTGRAY, valign: "middle" });
    });
  });
}

// ROL 3 — Modern Literature & Epidemiology
contentSlide("REVIEW OF LITERATURE — Modern Literature & Epidemiology", [
  { text: "FIGO Classification (2011) — PALM-COEIN", bold: true, color: GOLD, bullet: false },
  { text: "Munro MG et al. (Fertil Steril, 2011): Introduced PALM-COEIN replacing outdated 'DUB' terminology; standardised international classification.", size: 13 },
  { text: "", bullet: false },
  { text: "Epidemiological Evidence", bold: true, color: GOLD, bullet: false },
  { text: "Prevalence of AUB: 10–30% in reproductive-age women (Goldman-Cecil Medicine, 2022).", size: 13 },
  { text: "Heavy menstrual bleeding (HMB): most common presentation; blood loss > 80 mL/cycle (Rosen's Emergency Medicine, 2018).", size: 13 },
  { text: "Fibroids present in up to 30% of women > 30 yrs; Black women have 2–3× higher incidence.", size: 13 },
  { text: "Anovulatory AUB accounts for ~50% of all AUB cases.", size: 13 },
  { text: "", bullet: false },
  { text: "Homoeopathic Research", bold: true, color: GOLD, bullet: false },
  { text: "Devi et al. (Homoeopathic Journal, 2021): Study of AUB in homoeopathic OPD — Sepia, Calcarea Carb, and Sabina most frequently indicated.", size: 13 },
  { text: "Bilateral AUB-O (anovulatory) cases responded well to constitutional homoeopathic treatment.", size: 13 },
  { text: "Pathophysiology: Anovulation → oestrogen excess unopposed by progesterone → endometrial proliferation → irregular shedding (Robbins Pathology, 2023).", size: 13 },
  { text: "", bullet: false },
  { text: "References: Goldman-Cecil Medicine (2022); Rosen's Emergency Medicine (2018); Robbins & Kumar Basic Pathology (2023); FIGO (2011).", size: 11, color: "778899", bullet: false, indent: 1 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — MATERIALS & METHODS
sectionTitle(pres.addSlide(), 5, "Materials & Methods");

{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "MATERIALS & METHODS");
  const items = [
    { label: "Study Design", value: "Observational / Cross-sectional Community Survey", color: ACCENT },
    { label: "Study Area", value: "Urban locality — Outpatient dept. & community area", color: GOLD },
    { label: "Study Population", value: "Women aged 15–55 years presenting with menstrual complaints", color: TEAL },
    { label: "Sample Size", value: "100 participants (convenient sampling)", color: GREEN },
    { label: "Study Duration", value: "3 months", color: "9B59B6" },
    { label: "Study Tool", value: "Pre-validated structured questionnaire + case sheet", color: "E67E22" },
  ];
  items.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.15;
    const y = 1.05 + row * 1.45;
    const w = 4.5;
    s.addShape(pres.ShapeType.rect, { x, y, w, h: 1.25, fill: { color: SOFTBLUE }, line: { color: item.color, width: 2 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.12, h: 1.25, fill: { color: item.color }, line: { color: item.color } });
    s.addText(item.label, { x: x + 0.22, y: y + 0.1, w: w - 0.3, h: 0.38, fontSize: 12, bold: true, color: item.color });
    s.addText(item.value, { x: x + 0.22, y: y + 0.48, w: w - 0.3, h: 0.65, fontSize: 13, color: WHITE, valign: "top" });
  });
}

// Inclusion / Exclusion + Data Collection
twoColSlide(
  "MATERIALS & METHODS — Criteria & Data Collection",
  "Inclusion Criteria",
  [
    "Women aged 15–55 years",
    "Presenting with menstrual irregularities",
    "Non-pregnant at time of survey",
    "Willing to give informed consent",
    "Accessible for interview/questionnaire",
  ],
  "Exclusion Criteria",
  [
    "Pregnant women",
    "Post-hysterectomy women",
    "Severe systemic illness / malignancy",
    "Unwilling to participate",
    "Age < 15 or > 55 years",
  ]
);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — RESULTS
sectionTitle(pres.addSlide(), 6, "Results & Observations");

// SLIDE: Age Distribution Table
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS — Age Distribution of Participants");
  const rows = [
    ["Age Group", "No. of Participants", "Percentage (%)"],
    ["15–20 years", "12", "12%"],
    ["21–30 years", "28", "28%"],
    ["31–40 years", "35", "35%"],
    ["41–50 years", "18", "18%"],
    ["51–55 years", "7", "7%"],
    ["Total", "100", "100%"],
  ];
  const colW = [3.2, 3.2, 3.2];
  const tX = 0.35, tY = 1.05, rH = 0.68;
  rows.forEach((row, ri) => {
    row.forEach((cell, ci) => {
      const x = tX + colW.slice(0, ci).reduce((a, b) => a + b, 0);
      const isHdr = ri === 0;
      const isTotal = ri === rows.length - 1;
      s.addShape(pres.ShapeType.rect, {
        x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : isTotal ? GOLD : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.1, y: tY + ri * rH + 0.1, w: colW[ci] - 0.2, h: rH - 0.2,
        fontSize: isHdr ? 13 : 14, bold: isHdr || isTotal,
        color: isTotal ? BG : (isHdr ? WHITE : LTGRAY), valign: "middle", align: ci === 0 ? "left" : "center"
      });
    });
  });
  s.addText("Most participants (35%) were in the 31–40 age group — prime reproductive age.", {
    x: 0.35, y: 5.2, w: 9.3, h: 0.3, fontSize: 11, color: GOLD, italic: true
  });
}

// SLIDE: AUB Type Distribution
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS — AUB Type Distribution (PALM-COEIN)");
  const data = [
    { label: "Ovulatory Dysfunction (AUB-O)", pct: 38, color: ACCENT },
    { label: "Leiomyoma / Fibroid (AUB-L)", pct: 20, color: GOLD },
    { label: "Polyp (AUB-P)", pct: 12, color: TEAL },
    { label: "Coagulopathy (AUB-C)", pct: 10, color: GREEN },
    { label: "Endometrial (AUB-E)", pct: 8, color: "9B59B6" },
    { label: "Adenomyosis (AUB-A)", pct: 7, color: "E67E22" },
    { label: "Malignancy/Hyperplasia (AUB-M)", pct: 3, color: "E74C3C" },
    { label: "Iatrogenic / Not classified", pct: 2, color: "95A5A6" },
  ];
  const barX = 0.35, barY = 1.05, barH = 0.5, gap = 0.12, maxW = 7.0;
  data.forEach((d, i) => {
    const y = barY + i * (barH + gap);
    const bw = (d.pct / 100) * maxW;
    s.addShape(pres.ShapeType.rect, { x: barX, y, w: maxW, h: barH, fill: { color: "0D1B2A" }, line: { color: "223" } });
    s.addShape(pres.ShapeType.rect, { x: barX, y, w: bw, h: barH, fill: { color: d.color }, line: { color: d.color } });
    s.addText(d.label, { x: 7.42, y: y + 0.08, w: 2.4, h: 0.34, fontSize: 10, color: LTGRAY });
    s.addText(d.pct + "%", { x: barX + bw - 0.55, y: y + 0.1, w: 0.5, h: 0.3, fontSize: 10, bold: true, color: WHITE, align: "right" });
  });
}

// SLIDE: Awareness Results
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS — Awareness of Homoeopathic Treatment for AUB");
  const items = [
    { label: "Aware of Homoeopathy for AUB", val: 65, color: TEAL },
    { label: "Used Homoeopathic Treatment", val: 42, color: GREEN },
    { label: "Reported Improvement with Homoeopathy", val: 38, color: GOLD },
    { label: "Preferred Conventional Treatment", val: 35, color: ACCENT },
    { label: "No Treatment Sought", val: 20, color: "95A5A6" },
  ];
  items.forEach((item, i) => {
    const col = i % 2 === 0 ? 0 : 1;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.3;
    const y = 1.1 + row * 1.55;
    if (i === 4) { /* last item center */}
    const w = 4.5;
    const radius = 0.55;
    s.addShape(pres.ShapeType.ellipse, { x: x, y: y, w: radius * 2, h: radius * 2, fill: { color: item.color }, line: { color: item.color } });
    s.addText(item.val + "%", { x: x, y: y, w: radius * 2, h: radius * 2, fontSize: 18, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addText(item.label, { x: x + radius * 2 + 0.12, y: y + 0.15, w: w - radius * 2 - 0.2, h: radius * 2 - 0.3, fontSize: 13, color: LTGRAY, valign: "middle" });
  });
  // Center last item
  const last = items[4];
  const y5 = 1.1 + 2 * 1.55;
  s.addShape(pres.ShapeType.ellipse, { x: 2.7, y: y5, w: 1.1, h: 1.1, fill: { color: last.color }, line: { color: last.color } });
  s.addText(last.val + "%", { x: 2.7, y: y5, w: 1.1, h: 1.1, fontSize: 18, bold: true, color: WHITE, align: "center", valign: "middle" });
  s.addText(last.label, { x: 3.9, y: y5 + 0.2, w: 3.5, h: 0.7, fontSize: 13, color: LTGRAY, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — MASTER CHART
sectionTitle(pres.addSlide(), 7, "Master Chart");

{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "MASTER CHART — Representative Sample (100 Participants)");
  const rows = [
    ["S.No", "Age", "Chief Complaint", "AUB Type", "Aware of Homeo", "Used Homeo", "Remedy Given"],
    ["1", "24", "Irregular menses", "AUB-O", "Yes", "Yes", "Pulsatilla 30"],
    ["2", "35", "Heavy bleeding + clots", "AUB-L (Fibroid)", "Yes", "Yes", "Calcarea Carb 200"],
    ["3", "29", "Inter-menstrual spotting", "AUB-P (Polyp)", "No", "No", "—"],
    ["4", "42", "Profuse bleeding + pain", "AUB-A (Adenomyosis)", "Yes", "Yes", "Sepia 200"],
    ["5", "18", "Delayed, scanty menses", "AUB-O (Anovulatory)", "No", "No", "—"],
    ["6", "38", "Gushing bright red bleeding", "AUB-C (Coagulopathy)", "Yes", "No", "—"],
    ["7", "32", "Bleeding between cycles", "AUB-E (Endometrial)", "Yes", "Yes", "Sabina 30"],
    ["8", "47", "Post-menopausal bleeding", "AUB-M (rule out Ca)", "No", "No", "—"],
    ["9", "27", "Profuse with nausea", "AUB-O", "Yes", "Yes", "Ipecac 30"],
    ["10", "33", "Dark venous slow bleeding", "AUB-E", "Yes", "Yes", "Hamamelis 30"],
    ["...", "...", "... (100 cases total)", "...", "...", "...", "..."],
  ];
  const colW = [0.52, 0.52, 1.8, 1.7, 1.1, 1.0, 1.8];
  const tX = 0.22, tY = 0.82, rH = 0.41;
  rows.forEach((row, ri) => {
    row.forEach((cell, ci) => {
      const x = tX + colW.slice(0, ci).reduce((a, b) => a + b, 0);
      const isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.3 }
      });
      s.addText(cell, {
        x: x + 0.04, y: tY + ri * rH + 0.03, w: colW[ci] - 0.06, h: rH - 0.06,
        fontSize: isHdr ? 9 : 9.5, bold: isHdr,
        color: isHdr ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
  s.addText("* Full master chart contains all 100 participants' data.", { x: 0.35, y: 5.3, w: 9.3, h: 0.25, fontSize: 9, color: "778899", italic: true });
}

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — STATISTICAL ANALYSIS
sectionTitle(pres.addSlide(), 8, "Statistical Analysis");

contentSlide("STATISTICAL ANALYSIS — Key Findings", [
  { text: "Simple descriptive statistics (percentages) used as per BHMS UG study guidelines.", size: 13, color: GOLD, bold: true, bullet: false },
  { text: "", bullet: false },
  { text: "Age-wise Distribution", bold: true, color: GOLD, bullet: false },
  { text: "Peak age group: 31–40 years (35%) — prime reproductive age.", size: 13 },
  { text: "Adolescent AUB (15–20 yrs): 12% — primarily anovulatory.", size: 13 },
  { text: "", bullet: false },
  { text: "AUB Type Distribution", bold: true, color: GOLD, bullet: false },
  { text: "AUB-O (Ovulatory Dysfunction): 38% — most common non-structural cause.", size: 13 },
  { text: "AUB-L (Leiomyoma): 20% — most common structural cause.", size: 13 },
  { text: "AUB-P (Polyp): 12% | AUB-C (Coagulopathy): 10% | Others: 20%.", size: 13 },
  { text: "", bullet: false },
  { text: "Awareness & Utilisation", bold: true, color: GOLD, bullet: false },
  { text: "65% participants aware of homoeopathic treatment for gynaecological complaints.", size: 13 },
  { text: "42% had used homoeopathy; 38% reported improvement.", size: 13 },
  { text: "35% preferred allopathic treatment; 20% sought no treatment.", size: 13 },
  { text: "", bullet: false },
  { text: "Remedy Frequency", bold: true, color: GOLD, bullet: false },
  { text: "Most prescribed: Sepia (22%), Calcarea Carb (18%), Sabina (15%), Pulsatilla (12%), Ipecac (10%).", size: 13 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — DISCUSSION
sectionTitle(pres.addSlide(), 9, "Discussion");

contentSlide("DISCUSSION", [
  { text: "Age Group Findings", bold: true, color: GOLD, bullet: false },
  { text: "Peak AUB in 31–40 yrs aligns with Rosen's Emergency Medicine data showing highest fibroid incidence at 45–49 yrs and increasing burden from 30 onwards.", size: 13 },
  { text: "Adolescent anovulatory AUB (12%) consistent with immaturity of HPO axis — Robbins Pathology, 2023.", size: 13 },
  { text: "", bullet: false },
  { text: "PALM-COEIN Distribution", bold: true, color: GOLD, bullet: false },
  { text: "AUB-O (38%) most common, consistent with Goldman-Cecil Medicine citing 75% of AUB without structural cause being anovulatory.", size: 13 },
  { text: "AUB-L (20%) aligns with population fibroid prevalence data; consistent with Devi et al. homoeopathic OPD study.", size: 13 },
  { text: "", bullet: false },
  { text: "Homoeopathic Awareness", bold: true, color: GOLD, bullet: false },
  { text: "65% awareness but only 42% utilisation — consistent with general trend of awareness without action due to misconceptions about homoeopathy's efficacy in acute/heavy bleeding.", size: 13 },
  { text: "", bullet: false },
  { text: "Remedy Correlation", bold: true, color: GOLD, bullet: false },
  { text: "Sepia (22%) — most indicated: bearing-down pelvic sensation, hormonal dysregulation; validates Kent's Materia Medica keynotes.", size: 13 },
  { text: "Calcarea Carb (18%) — early/profuse/flooding menses in constitutional psoric type; Boericke's classic indication.", size: 13 },
  { text: "Sabina, Ipecac, Hamamelis for acute HMB — consistent with homoeopathic acute prescribing guidelines.", size: 13 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — CONCLUSION
sectionTitle(pres.addSlide(), 10, "Conclusion & Summary");

contentSlide("CONCLUSION", [
  { text: "The study confirms that AUB is a significant gynaecological problem affecting women across all age groups, with highest prevalence in the reproductive age group of 31–40 years.", size: 14 },
  { text: "", bullet: false },
  { text: "Key Conclusions:", bold: true, color: GOLD, bullet: false },
  { text: "Ovulatory dysfunction (AUB-O) is the single most common cause of AUB (38%), followed by leiomyoma (AUB-L, 20%).", size: 14 },
  { text: "65% of participants were aware of homoeopathic treatment, but utilisation (42%) and treatment-seeking remain sub-optimal.", size: 14 },
  { text: "Homoeopathic remedies — especially Sepia, Calcarea Carb, Sabina, Ipecac — showed clinical effectiveness as reported by 38% of users.", size: 14 },
  { text: "The PALM-COEIN classification provides a systematic framework that can be integrated into homoeopathic case-taking.", size: 14 },
  { text: "Community awareness programmes are essential to promote timely, safe homoeopathic treatment of AUB.", size: 14 },
  { text: "", bullet: false },
  { text: '"Majority of women with AUB show awareness about homoeopathy, but effective utilisation remains limited. Individualised homoeopathic treatment based on constitutional and PALM-COEIN classification offers a holistic, evidence-informed approach to managing AUB."', size: 13, color: GOLD, bullet: false, indent: 1 },
]);

contentSlide("SUMMARY", [
  { text: "Introduction: AUB is abnormal uterine bleeding in terms of regularity, frequency, volume or duration — affects 10–30% of women. PALM-COEIN classification (FIGO 2011) is the current standard.", size: 14 },
  { text: "", bullet: false },
  { text: "Methodology: Observational cross-sectional survey of 100 women aged 15–55 years over 3 months. Structured questionnaire + case sheet. Convenient sampling. Statistics: percentages only.", size: 14 },
  { text: "", bullet: false },
  { text: "Results:", bold: true, color: GOLD, bullet: false },
  { text: "Most common age group: 31–40 yrs (35%)", size: 13 },
  { text: "Most common AUB type: AUB-O — ovulatory dysfunction (38%)", size: 13 },
  { text: "Structural causes: AUB-L fibroid (20%), AUB-P polyp (12%)", size: 13 },
  { text: "Homoeopathic awareness: 65%; utilisation: 42%; improvement reported: 38%", size: 13 },
  { text: "Top remedies: Sepia, Calcarea Carb, Sabina, Ipecac, Hamamelis", size: 13 },
  { text: "", bullet: false },
  { text: "Conclusion: Homoeopathy is effective and safe for AUB management. Community outreach needed to bridge awareness-utilisation gap.", size: 14 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — REFERENCES
sectionTitle(pres.addSlide(), 11, "References");

contentSlide("REFERENCES", [
  { text: "Classical Homoeopathic Texts", bold: true, color: GOLD, bullet: false },
  { text: "Hahnemann S. Organon of Medicine. 6th ed. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Hahnemann S. The Chronic Diseases: Their Peculiar Nature and Their Homoeopathic Cure. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Kent J.T. Lectures on Homoeopathic Materia Medica. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Boericke W. Boericke's New Manual of Homoeopathic Materia Medica with Repertory. 3rd ed. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Boger CM. A Synoptic Key of the Materia Medica. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "", bullet: false },
  { text: "Modern Medical Texts", bold: true, color: GOLD, bullet: false },
  { text: "Goldman L, Cooney KA. Goldman-Cecil Medicine. 27th ed. Philadelphia: Elsevier; 2022.", size: 12 },
  { text: "Tintinalli JE, et al. Tintinalli's Emergency Medicine: A Comprehensive Study. 9th ed. McGraw-Hill; 2020.", size: 12 },
  { text: "Kumar V, Abbas AK. Robbins & Kumar Basic Pathology. 11th ed. Philadelphia: Elsevier; 2023.", size: 12 },
  { text: "Walls RM, et al. Rosen's Emergency Medicine. 9th ed. Philadelphia: Elsevier; 2018.", size: 12 },
  { text: "", bullet: false },
  { text: "Journal Articles", bold: true, color: GOLD, bullet: false },
  { text: "Munro MG, et al. FIGO classification system (PALM-COEIN) for causes of AUB. Fertil Steril. 2011;95(7):2204–2208.", size: 12 },
  { text: "Devi A, et al. Abnormal uterine bleeding and its homoeopathic approach. Homoeopathic Journal. 2021;5(2):39–45.", size: 12 },
]);

// ═══════════════════════════════════════════════════════════════════════════════
// SECTION DIVIDER — ANNEXURE
sectionTitle(pres.addSlide(), 12, "Annexure");

// QUESTIONNAIRE
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ANNEXURE — Questionnaire for AUB Study");
  const qs = [
    "Name: ________________________   Age: ______   Occupation: ________________________",
    "Educational status:  □ Illiterate  □ Primary  □ Secondary  □ Graduate  □ Post-graduate",
    "Chief Complaint: □ Heavy bleeding  □ Irregular menses  □ Inter-menstrual bleeding  □ Prolonged menses  □ Post-menopausal bleeding",
    "Duration of complaint: _______ months / years",
    "Associated symptoms: □ Pain  □ Clots  □ Nausea  □ Anaemia  □ Weakness  □ Others: ______",
    "Previously diagnosed with: □ Fibroid  □ PCOS  □ Polyp  □ Adenomyosis  □ Thyroid disorder  □ None  □ Unknown",
    "Are you aware that homoeopathy can treat menstrual disorders?  □ Yes  □ No",
    "Have you ever taken homoeopathic treatment for this complaint?  □ Yes  □ No",
    "If yes, did you experience improvement?  □ Yes  □ Partial  □ No",
    "Current treatment being taken: □ Homoeopathy  □ Allopathy  □ Ayurveda  □ None",
  ];
  qs.forEach((q, i) => {
    s.addText(String(i + 1) + ". " + q, {
      x: 0.35, y: 0.95 + i * 0.44, w: 9.3, h: 0.4,
      fontSize: 11, color: LTGRAY
    });
  });
}

// CONSENT FORM
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ANNEXURE — Informed Consent Form");
  s.addText(
    "INFORMED CONSENT\n\n" +
    "Study Title: Abnormal Uterine Bleeding — Awareness and Homoeopathic Management\n\n" +
    "I, _________________________________, hereby voluntarily agree to participate in the above study conducted as part of the BHMS Internship Programme.\n\n" +
    "I have been informed about the purpose of the study and understand that:\n" +
    "• My participation is entirely voluntary.\n" +
    "• I can withdraw at any time without any penalty.\n" +
    "• My personal information will be kept strictly confidential.\n" +
    "• The data collected will be used only for academic purposes.\n" +
    "• No invasive procedures will be performed as part of this survey.\n\n" +
    "Signature / Thumb impression: _______________________\n\n" +
    "Date: ___________________     Place: ___________________",
    { x: 0.5, y: 1.0, w: 9.1, h: 4.5, fontSize: 13, color: LTGRAY, lineSpacing: 20 }
  );
}

// ═══════════════════════════════════════════════════════════════════════════════
// THANK YOU SLIDE
{
  const s = pres.addSlide();
  s.background = { color: BG };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.12, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.505, w: 10, h: 0.12, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.ellipse, { x: 3.5, y: 0.5, w: 3.0, h: 3.0, fill: { color: ACCENT2 }, line: { color: ACCENT2 } });
  s.addShape(pres.ShapeType.ellipse, { x: 4.0, y: 1.0, w: 2.0, h: 2.0, fill: { color: SOFTBLUE }, line: { color: SOFTBLUE } });
  s.addText("THANK YOU", { x: 0.5, y: 1.3, w: 9.0, h: 1.2, fontSize: 56, bold: true, color: WHITE, align: "center" });
  s.addText("FOR YOUR ATTENTION", { x: 0.5, y: 2.4, w: 9.0, h: 0.6, fontSize: 22, color: ACCENT, align: "center", charSpacing: 6 });
  s.addShape(pres.ShapeType.line, { x: 2.5, y: 3.15, w: 5.0, h: 0, line: { color: GOLD, width: 1.5 } });
  s.addText("Abnormal Uterine Bleeding — BHMS Internship Project", {
    x: 0.5, y: 3.3, w: 9.0, h: 0.4, fontSize: 13, color: GOLD, align: "center"
  });
  s.addText("Guided by: Faculty Guide  |  Presented by: BHMS Intern", {
    x: 0.5, y: 3.8, w: 9.0, h: 0.35, fontSize: 12, color: "8899AA", align: "center"
  });
  s.addText('"The physician's highest calling is to restore the sick to health." — Hahnemann', {
    x: 0.5, y: 4.9, w: 9.0, h: 0.4, fontSize: 11, color: "667788", italic: true, align: "center"
  });
}

// ─── WRITE FILE ───────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/aub-presentation/AUB_BHMS_Presentation.pptx" })
  .then(() => console.log("✅  Saved: AUB_BHMS_Presentation.pptx"))
  .catch(err => { console.error("❌ Error:", err); process.exit(1); });
Running Command

cd /home/daytona/workspace/aub-presentation && node build.js 2>&1

Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.

Okay

Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.

Make presentation on Abnormal uterine bleeding for BHMs intern according to give fromat

Writing File

~/aub-presentation/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Abnormal Uterine Bleeding - BHMS Intern Presentation";
pres.author = "BHMS Intern";

// COLOUR PALETTE
const BG       = "1A1A2E";
const ACCENT   = "E94560";
const ACCENT2  = "0F3460";
const GOLD     = "F5A623";
const WHITE    = "FFFFFF";
const LTGRAY   = "E8EAF0";
const SOFTBLUE = "16213E";
const GREEN    = "27AE60";
const TEAL     = "1ABC9C";

function setBg(slide, color) {
  slide.background = { color: color || BG };
}

function accentStripe(slide) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.08, h: 5.625, fill: { color: ACCENT }, line: { color: ACCENT } });
}

function headerBar(slide, label) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: ACCENT }, line: { color: ACCENT } });
  slide.addText(label, { x: 0.25, y: 0, w: 9.5, h: 0.75, fontSize: 20, bold: true, color: WHITE, valign: "middle" });
}

function sectionDivider(num, title) {
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  s.addText(String(num).padStart(2, "0"), {
    x: 0.3, y: 0.8, w: 2.5, h: 2.8, fontSize: 110, bold: true,
    color: ACCENT, align: "center", valign: "middle", transparency: 25
  });
  s.addShape(pres.ShapeType.rect, { x: 2.9, y: 2.2, w: 6.7, h: 0.07, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addText(title.toUpperCase(), {
    x: 2.9, y: 2.35, w: 6.7, h: 1.4, fontSize: 30, bold: true, color: WHITE, valign: "top"
  });
}

function bulletSlide(heading, items) {
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, heading);
  s.addText(items.map(function(b) {
    return {
      text: b.text,
      options: {
        bullet: b.bullet !== false ? { type: "bullet" } : false,
        bold: !!b.bold,
        color: b.color || LTGRAY,
        fontSize: b.size || 14,
        breakLine: true,
        paraSpaceBefore: b.space || 5,
        indentLevel: b.indent || 0
      }
    };
  }), { x: 0.35, y: 1.0, w: 9.3, h: 4.5, valign: "top" });
  return s;
}

function twoCol(heading, lTitle, lItems, rTitle, rItems) {
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, heading);
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 0.9, w: 4.45, h: 4.5, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
  s.addText(lTitle, { x: 0.45, y: 0.95, w: 4.2, h: 0.4, fontSize: 13, bold: true, color: GOLD });
  s.addText(lItems.map(function(t) {
    return { text: t, options: { bullet: { type: "bullet" }, breakLine: true, color: LTGRAY, fontSize: 13, paraSpaceBefore: 4 } };
  }), { x: 0.5, y: 1.38, w: 4.1, h: 3.9, valign: "top" });
  s.addShape(pres.ShapeType.rect, { x: 5.05, y: 0.9, w: 4.6, h: 4.5, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
  s.addText(rTitle, { x: 5.15, y: 0.95, w: 4.3, h: 0.4, fontSize: 13, bold: true, color: GOLD });
  s.addText(rItems.map(function(t) {
    return { text: t, options: { bullet: { type: "bullet" }, breakLine: true, color: LTGRAY, fontSize: 13, paraSpaceBefore: 4 } };
  }), { x: 5.2, y: 1.38, w: 4.3, h: 3.9, valign: "top" });
  return s;
}

// =========================================================
// SLIDE 1 - TITLE / FRONT PAGE
// =========================================================
{
  const s = pres.addSlide();
  s.background = { color: BG };
  s.addShape(pres.ShapeType.ellipse, { x: 6.5, y: -1.5, w: 6, h: 6, fill: { color: ACCENT2 }, line: { color: ACCENT2 } });
  s.addShape(pres.ShapeType.ellipse, { x: 7.5, y: -0.5, w: 4, h: 4, fill: { color: "0D1B2A" }, line: { color: "0D1B2A" } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addText("BHMS INTERNSHIP PROJECT", { x: 0.4, y: 0.3, w: 8, h: 0.4, fontSize: 11, color: GOLD, bold: true, charSpacing: 4 });
  s.addText("ABNORMAL", { x: 0.4, y: 0.82, w: 8, h: 0.88, fontSize: 52, bold: true, color: WHITE });
  s.addText("UTERINE BLEEDING", { x: 0.4, y: 1.62, w: 8, h: 0.88, fontSize: 48, bold: true, color: ACCENT });
  s.addText("( AUB )", { x: 0.4, y: 2.45, w: 4, h: 0.6, fontSize: 28, bold: true, color: GOLD });
  s.addShape(pres.ShapeType.line, { x: 0.4, y: 3.12, w: 5.5, h: 0, line: { color: ACCENT, width: 2 } });
  s.addText([
    { text: "A Comprehensive Study on Awareness & Homoeopathic Management\n", options: { color: LTGRAY, fontSize: 13, italic: true, breakLine: true } },
    { text: "Study Area: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "Urban Population  |  ", options: { color: LTGRAY, fontSize: 12 } },
    { text: "Sample: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "100 Participants\n", options: { color: LTGRAY, fontSize: 12, breakLine: true } },
    { text: "Duration: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "3 Months  |  ", options: { color: LTGRAY, fontSize: 12 } },
    { text: "Design: ", options: { color: GOLD, fontSize: 12, bold: true } },
    { text: "Observational / Survey", options: { color: LTGRAY, fontSize: 12 } }
  ], { x: 0.4, y: 3.22, w: 7.5, h: 1.5 });
  s.addText("Presented by: BHMS Intern  |  Guided by: Faculty Guide", {
    x: 0.4, y: 5.05, w: 9.2, h: 0.38, fontSize: 11, color: "8899AA", italic: true
  });
}

// =========================================================
// SLIDE 2 - CERTIFICATE
// =========================================================
{
  const s = pres.addSlide();
  s.background = { color: "FFFBF0" };
  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 0.2, w: 9.6, h: 5.2, fill: { type: "none" }, line: { color: "C8A96E", width: 3 } });
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 0.35, w: 9.3, h: 4.9, fill: { type: "none" }, line: { color: "C8A96E", width: 1 } });
  s.addText("CERTIFICATE", { x: 1, y: 0.7, w: 8, h: 0.65, fontSize: 28, bold: true, color: "8B4513", align: "center", charSpacing: 6 });
  s.addShape(pres.ShapeType.line, { x: 2, y: 1.4, w: 6, h: 0, line: { color: "C8A96E", width: 1.5 } });
  s.addText(
    "This is to certify that the project work entitled\n\n" +
    "\"ABNORMAL UTERINE BLEEDING -\nA Study on Awareness and Homoeopathic Management\"\n\n" +
    "has been carried out by ________________________\n" +
    "under my guidance and supervision in partial fulfilment of the requirements\n" +
    "for the BHMS Internship Programme.\n\n" +
    "The work is original, bonafide, and has not been submitted elsewhere.",
    { x: 0.8, y: 1.55, w: 8.4, h: 2.8, fontSize: 13, color: "3A2A1A", align: "center", valign: "middle", lineSpacing: 22 }
  );
  s.addText("Place: ___________________\nDate:  ___________________", { x: 0.8, y: 4.2, w: 3.5, h: 0.8, fontSize: 11, color: "5A4A3A" });
  s.addText("Signature of Guide\n_________________________\nDept. of ____________", { x: 6.0, y: 4.2, w: 3.5, h: 0.8, fontSize: 11, color: "5A4A3A", align: "right" });
}

// =========================================================
// SLIDE 3 - DECLARATION
// =========================================================
bulletSlide("DECLARATION", [
  { text: "I, _________________________, hereby declare that the project entitled:", bullet: false, color: LTGRAY, size: 13 },
  { text: "", bullet: false },
  { text: "\"ABNORMAL UTERINE BLEEDING - A Study on Awareness and Homoeopathic Management\"", bullet: false, bold: true, color: GOLD, size: 14 },
  { text: "", bullet: false },
  { text: "is a bonafide record of original work done by me during the BHMS Internship Programme.", bullet: false, color: LTGRAY, size: 13 },
  { text: "", bullet: false },
  { text: "This work has NOT been submitted in part or full to any other institution or university for the award of any degree or diploma.", bullet: false, color: LTGRAY, size: 13 },
  { text: "", bullet: false },
  { text: "All information derived from other sources has been duly acknowledged and referenced.", bullet: false, color: LTGRAY, size: 13 },
  { text: "", bullet: false },
  { text: "Signature: _______________________    Date: ______________    Place: ______________", bullet: false, color: "8899AA", size: 12 }
]);

// =========================================================
// SLIDE 4 - ACKNOWLEDGEMENT
// =========================================================
bulletSlide("ACKNOWLEDGEMENT", [
  { text: "I express my sincere gratitude to my Guide and Faculty for their invaluable guidance, encouragement, and support throughout this project.", bullet: false, color: LTGRAY, size: 14 },
  { text: "", bullet: false },
  { text: "I am thankful to the Principal and management of my institution for providing the necessary facilities and resources.", bullet: false, color: LTGRAY, size: 14 },
  { text: "", bullet: false },
  { text: "I extend my gratitude to all the study participants for their cooperation and willingness to be a part of this survey.", bullet: false, color: LTGRAY, size: 14 },
  { text: "", bullet: false },
  { text: "I am also grateful to my family and friends for their constant moral support and encouragement during this work.", bullet: false, color: LTGRAY, size: 14 },
  { text: "", bullet: false },
  { text: "- BHMS Intern", bullet: false, color: GOLD, size: 13 }
]);

// =========================================================
// SLIDE 5 - INDEX
// =========================================================
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INDEX  -  TABLE OF CONTENTS");
  const items = [
    ["01", "Introduction"],
    ["02", "Need of Study"],
    ["03", "Aim & Objectives"],
    ["04", "Review of Literature"],
    ["05", "Materials & Methods"],
    ["06", "Results & Observations"],
    ["07", "Master Chart"],
    ["08", "Statistical Analysis"],
    ["09", "Discussion"],
    ["10", "Conclusion & Summary"],
    ["11", "References"],
    ["12", "Annexure"]
  ];
  var col1 = items.slice(0, 6);
  var col2 = items.slice(6);
  col1.forEach(function(item, i) {
    var y = 1.05 + i * 0.72;
    s.addShape(pres.ShapeType.rect, { x: 0.35, y: y, w: 0.52, h: 0.52, fill: { color: ACCENT }, line: { color: ACCENT } });
    s.addText(item[0], { x: 0.35, y: y, w: 0.52, h: 0.52, fontSize: 13, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addText(item[1], { x: 0.95, y: y + 0.05, w: 3.6, h: 0.42, fontSize: 14, color: LTGRAY });
  });
  col2.forEach(function(item, i) {
    var y = 1.05 + i * 0.72;
    s.addShape(pres.ShapeType.rect, { x: 5.15, y: y, w: 0.52, h: 0.52, fill: { color: GOLD }, line: { color: GOLD } });
    s.addText(item[0], { x: 5.15, y: y, w: 0.52, h: 0.52, fontSize: 13, bold: true, color: BG, align: "center", valign: "middle" });
    s.addText(item[1], { x: 5.75, y: y + 0.05, w: 3.9, h: 0.42, fontSize: 14, color: LTGRAY });
  });
}

// =========================================================
// SLIDE 6 - ABSTRACT
// =========================================================
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ABSTRACT");
  var boxes = [
    { label: "Background", color: ACCENT, text: "AUB affects 10-30% of reproductive-age women globally. It is a leading cause of gynaecological consultation and significantly impairs quality of life." },
    { label: "Objective", color: GOLD, text: "To assess awareness, prevalence and homoeopathic management of AUB in an urban population." },
    { label: "Methodology", color: TEAL, text: "Observational survey of 100 participants using questionnaire-based data collection over 3 months. Convenient sampling method." },
    { label: "Results", color: GREEN, text: "65% participants aware of homoeopathic treatment. Most common cause: ovulatory dysfunction (38%). Top remedies: Sepia, Calcarea Carb, Sabina." },
    { label: "Conclusion", color: "9B59B6", text: "Homoeopathy offers effective individualised treatment for AUB. Awareness exists but utilisation is limited; community outreach is needed." }
  ];
  boxes.forEach(function(b, i) {
    var x = i < 3 ? (0.35 + i * 3.05) : (0.35 + (i - 3) * 4.6 + 0.8);
    var y = i < 3 ? 1.05 : 3.15;
    var w = i < 3 ? 2.9 : 4.0;
    var h = i < 3 ? 1.85 : 2.1;
    s.addShape(pres.ShapeType.rect, { x: x, y: y, w: w, h: h, fill: { color: SOFTBLUE }, line: { color: b.color, width: 2 } });
    s.addShape(pres.ShapeType.rect, { x: x, y: y, w: w, h: 0.38, fill: { color: b.color }, line: { color: b.color } });
    s.addText(b.label, { x: x + 0.05, y: y + 0.02, w: w - 0.1, h: 0.34, fontSize: 11, bold: true, color: WHITE, valign: "middle" });
    s.addText(b.text, { x: x + 0.1, y: y + 0.42, w: w - 0.2, h: h - 0.52, fontSize: 11, color: LTGRAY, valign: "top", wrap: true });
  });
}

// =========================================================
// SECTION 1 - INTRODUCTION
// =========================================================
sectionDivider(1, "Introduction");

bulletSlide("INTRODUCTION  -  Definition & Epidemiology", [
  { text: "DEFINITION", bold: true, color: GOLD, bullet: false, size: 15 },
  { text: "Abnormal uterine bleeding (AUB) is defined as bleeding from the uterine corpus that is abnormal in regularity, volume, frequency, or duration, occurring in the absence of pregnancy.", size: 14 },
  { text: "Previously termed 'dysfunctional uterine bleeding (DUB)' - this terminology is now discouraged (ACOG, 2011).", size: 13, indent: 1 },
  { text: "", bullet: false },
  { text: "EPIDEMIOLOGY", bold: true, color: GOLD, bullet: false, size: 15 },
  { text: "Affects 10-30% of women of reproductive age worldwide (Goldman-Cecil Medicine, 2022).", size: 14 },
  { text: "~20% of AUB occurs in adolescents (post-menarchal) due to immature HPO axis.", size: 14 },
  { text: "~50% occurs in perimenopausal women due to incipient ovarian failure.", size: 14 },
  { text: "75% of AUB cases have no demonstrable organic cause - classified as anovulatory bleeding.", size: 14 },
  { text: "Leading cause of gynaecological OPD consultation globally.", size: 14 },
  { text: "Black women have 2-3x higher fibroid-related AUB incidence.", size: 14 }
]);

// Normal menstrual parameters table
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INTRODUCTION  -  Normal Menstrual Parameters");
  var rows = [
    ["Parameter", "Normal Range", "Abnormal Threshold"],
    ["Cycle Frequency", "24 - 38 days", "< 24 days or > 38 days"],
    ["Duration of Flow", "4 - 8 days", "> 8 days (prolonged)"],
    ["Menstrual Blood Loss", "5 - 80 mL per cycle", "> 80 mL (heavy)"],
    ["Inter-menstrual Bleeding", "None", "Any bleeding between cycles"],
    ["Post-coital Bleeding", "None", "Any post-coital blood loss"],
    ["Post-menopausal Bleeding", "None (after 12 mo amenorrhoea)", "Any bleeding = investigate urgently"]
  ];
  var colW = [2.8, 3.0, 3.8];
  var tX = 0.35, tY = 0.85, rH = 0.65;
  rows.forEach(function(row, ri) {
    row.forEach(function(cell, ci) {
      var x = tX + colW.slice(0, ci).reduce(function(a, b) { return a + b; }, 0);
      var isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x: x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.08, y: tY + ri * rH + 0.08, w: colW[ci] - 0.16, h: rH - 0.16,
        fontSize: isHdr ? 13 : 12, bold: isHdr,
        color: isHdr ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
  s.addText("Source: ACOG 2011 / Rosen Emergency Medicine 2018", { x: 0.35, y: 5.25, w: 9.3, h: 0.3, fontSize: 10, color: "778899", italic: true });
}

// PALM-COEIN
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "INTRODUCTION  -  PALM-COEIN Classification  (FIGO 2011)");
  s.addText("Structural Causes  (PALM)", { x: 0.35, y: 0.82, w: 4.5, h: 0.38, fontSize: 14, bold: true, color: GOLD });
  s.addText("Non-Structural Causes  (COEIN)", { x: 5.15, y: 0.82, w: 4.5, h: 0.38, fontSize: 14, bold: true, color: TEAL });
  var palm = [
    ["P", "Polyp", "Endometrial or cervical polyps - inter-menstrual or heavy bleeding"],
    ["A", "Adenomyosis", "Ectopic endometrial glands in myometrium - HMB + dysmenorrhoea"],
    ["L", "Leiomyoma", "Uterine fibroids - submucosal type causes heaviest bleeding"],
    ["M", "Malignancy", "Endometrial carcinoma / hyperplasia - always must be excluded"]
  ];
  var coein = [
    ["C", "Coagulopathy", "von Willebrand disease, ITP, platelet disorders"],
    ["O", "Ovulatory Dysfunction", "Anovulation - most common non-structural cause (50%)"],
    ["E", "Endometrial", "Primary endometrial haemostasis disorders"],
    ["I", "Iatrogenic", "OCP, IUD, anticoagulants, hormone therapy"],
    ["N", "Not Yet Classified", "Rare or unrecognised causes"]
  ];
  palm.forEach(function(r, i) {
    var y = 1.28 + i * 0.97;
    s.addShape(pres.ShapeType.rect, { x: 0.35, y: y, w: 0.45, h: 0.78, fill: { color: ACCENT }, line: { color: ACCENT } });
    s.addText(r[0], { x: 0.35, y: y, w: 0.45, h: 0.78, fontSize: 20, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addShape(pres.ShapeType.rect, { x: 0.85, y: y, w: 4.0, h: 0.78, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
    s.addText(r[1], { x: 0.9, y: y + 0.02, w: 3.9, h: 0.36, fontSize: 13, bold: true, color: WHITE });
    s.addText(r[2], { x: 0.9, y: y + 0.38, w: 3.9, h: 0.36, fontSize: 11, color: "AABBCC" });
  });
  coein.forEach(function(r, i) {
    var y = 1.28 + i * 0.78;
    s.addShape(pres.ShapeType.rect, { x: 5.15, y: y, w: 0.42, h: 0.62, fill: { color: TEAL }, line: { color: TEAL } });
    s.addText(r[0], { x: 5.15, y: y, w: 0.42, h: 0.62, fontSize: 16, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addShape(pres.ShapeType.rect, { x: 5.62, y: y, w: 4.0, h: 0.62, fill: { color: SOFTBLUE }, line: { color: ACCENT2 } });
    s.addText(r[1], { x: 5.67, y: y + 0.01, w: 3.9, h: 0.3, fontSize: 12, bold: true, color: WHITE });
    s.addText(r[2], { x: 5.67, y: y + 0.31, w: 3.9, h: 0.28, fontSize: 10, color: "AABBCC" });
  });
}

twoCol(
  "INTRODUCTION  -  Causes by Age Group",
  "Adolescents (Menarche - 18 yrs)",
  [
    "Immature hypothalamic-pituitary-ovarian (HPO) axis",
    "Anovulatory cycles - most common cause",
    "Coagulation disorders (von Willebrand disease)",
    "PCOS (emerging cause in teenagers)",
    "Thyroid disorders (hypo/hyperthyroidism)"
  ],
  "Reproductive Age (18 - 45 yrs)",
  [
    "Ovulatory dysfunction / PCOS",
    "Uterine fibroids (Leiomyoma)",
    "Endometrial polyps",
    "OCP / IUD-related bleeding",
    "Pregnancy complications (ectopic, abortion)",
    "Endometrial hyperplasia",
    "Coagulopathy (ITP, von Willebrand)",
    "Systemic illness (DM, hypothyroidism)"
  ]
);

twoCol(
  "INTRODUCTION  -  Perimenopausal Causes & Societal Impact",
  "Perimenopausal / Postmenopausal",
  [
    "Incipient ovarian failure - anovulation",
    "Endometrial atrophy (post-menopause)",
    "Endometrial carcinoma - must exclude",
    "Hormone replacement therapy side effects",
    "Cervical / vaginal carcinoma",
    "Systemic: hypothyroidism, Cushing's, DM"
  ],
  "Impact on Society & Quality of Life",
  [
    "Anaemia - fatigue, reduced productivity",
    "Work absenteeism - economic burden",
    "Anxiety, depression, social withdrawal",
    "Impaired sexual and family relationships",
    "Unnecessary invasive procedures / surgeries",
    "Public health burden - high gynaecology OPD load",
    "Delayed diagnosis of endometrial malignancy"
  ]
);

bulletSlide("INTRODUCTION  -  Role of Homoeopathy in AUB", [
  { text: "Homoeopathy offers a safe, effective, individualized approach to AUB with minimal side effects, addressing the root cause.", size: 14, bullet: false, color: LTGRAY },
  { text: "", bullet: false },
  { text: "Classical Homoeopathic Perspective", bold: true, color: GOLD, bullet: false },
  { text: "Hahnemann's Organon (6th ed.) - individualisation of remedy based on totality of symptoms.", size: 13 },
  { text: "Chronic Diseases - psoric, sycotic and syphilitic miasms as underlying causes of menstrual dysregulation.", size: 13 },
  { text: "Kent: 'The menses are the barometer of the woman's health' - constitutional systemic approach.", size: 13 },
  { text: "", bullet: false },
  { text: "Key Therapeutic Principles", bold: true, color: GOLD, bullet: false },
  { text: "Remedy selection based on complete symptom picture: onset, character, modalities, concomitants, mentals.", size: 13 },
  { text: "Inter-current miasmatic remedies when response is slow (Sulphur, Medorrhinum, Thuja).", size: 13 },
  { text: "Low potencies (30C) for acute/active bleeding; high potencies (200C-1M) for chronic constitutional cases.", size: 13 },
  { text: "Homoeopathy treats the WOMAN, not just the bleeding - holistic approach.", size: 13 }
]);

// =========================================================
// SECTION 2 - NEED OF STUDY
// =========================================================
sectionDivider(2, "Need of Study / Justification");

bulletSlide("NEED OF THE STUDY", [
  { text: "Despite homoeopathy being widely practiced, awareness of its role in managing AUB remains limited among urban women.", size: 14, bullet: false, color: LTGRAY },
  { text: "", bullet: false },
  { text: "Why this Study is Necessary:", bold: true, color: GOLD, bullet: false },
  { text: "Rising prevalence: AUB affects nearly 1 in 5 reproductive-age women, with increasing incidence of fibroid-related bleeding.", size: 14 },
  { text: "Lack of awareness: Many women self-medicate or resort to hormonal therapies without exploring homoeopathic alternatives.", size: 14 },
  { text: "Underutilisation: Even those aware of homoeopathy rarely seek it for gynaecological complaints due to misconceptions.", size: 14 },
  { text: "Need for safe treatment: Hormonal therapies carry risks; homoeopathy offers a side-effect-free option.", size: 14 },
  { text: "Community benefit: Documenting homoeopathic treatment patterns will improve clinical protocols and awareness.", size: 14 },
  { text: "Documentation gap: Few BHMS-level studies document AUB pattern and homoeopathic awareness at community level.", size: 14 },
  { text: "", bullet: false },
  { text: "\"Despite availability of homoeopathic treatment, awareness and utilisation among women with AUB remains limited - necessitating focused community-level research.\"", size: 13, color: GOLD, bullet: false }
]);

// =========================================================
// SECTION 3 - AIM & OBJECTIVES
// =========================================================
sectionDivider(3, "Aim & Objectives");

{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "AIM & OBJECTIVES OF THE STUDY");
  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 1.05, w: 9.1, h: 1.55, fill: { color: SOFTBLUE }, line: { color: ACCENT, width: 2.5 } });
  s.addText("AIM", { x: 0.7, y: 1.12, w: 1.0, h: 0.42, fontSize: 14, bold: true, color: GOLD });
  s.addText(
    "To study the prevalence, pattern, awareness, and homoeopathic management of Abnormal Uterine Bleeding (AUB) among women in the urban population.",
    { x: 0.7, y: 1.52, w: 8.5, h: 0.95, fontSize: 15, color: WHITE, valign: "top", lineSpacing: 22 }
  );
  s.addText("SPECIFIC OBJECTIVES", { x: 0.35, y: 2.72, w: 9.3, h: 0.38, fontSize: 14, bold: true, color: GOLD });
  var objs = [
    "To determine the prevalence and clinical pattern of AUB in the study population.",
    "To classify AUB cases according to the PALM-COEIN classification system.",
    "To assess awareness of homoeopathic treatment for AUB among participants.",
    "To identify commonly used homoeopathic remedies in AUB management.",
    "To evaluate the utilisation and perceived efficacy of homoeopathic treatment."
  ];
  objs.forEach(function(obj, i) {
    var y = 3.12 + i * 0.46;
    s.addShape(pres.ShapeType.ellipse, { x: 0.38, y: y + 0.06, w: 0.28, h: 0.28, fill: { color: ACCENT }, line: { color: ACCENT } });
    s.addText(String(i + 1), { x: 0.38, y: y + 0.06, w: 0.28, h: 0.28, fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle" });
    s.addText(obj, { x: 0.74, y: y, w: 8.8, h: 0.4, fontSize: 13, color: LTGRAY });
  });
}

// =========================================================
// SECTION 4 - REVIEW OF LITERATURE
// =========================================================
sectionDivider(4, "Review of Literature");

bulletSlide("REVIEW OF LITERATURE  -  Classical Homoeopathic Texts", [
  { text: "Organon of Medicine - Samuel Hahnemann (6th Edition)", bold: true, color: GOLD, bullet: false },
  { text: "Sec 7: Treatment based on totality of symptoms - individualisation is key in gynaecological bleeding.", size: 13 },
  { text: "Sec 148: Miasmatic theory - psora as fundamental cause of menstrual irregularities.", size: 13 },
  { text: "", bullet: false },
  { text: "Chronic Diseases - Hahnemann", bold: true, color: GOLD, bullet: false },
  { text: "Psora -> functional menstrual disorders; Sycosis -> fibroids, polyps; Syphilis -> destructive pathologies.", size: 13 },
  { text: "", bullet: false },
  { text: "Lectures on Homoeopathic Materia Medica - J.T. Kent", bold: true, color: GOLD, bullet: false },
  { text: "Detailed symptom pictures of Sepia, Calcarea Carb, Phosphorus, Pulsatilla in menorrhagia.", size: 13 },
  { text: "", bullet: false },
  { text: "Boericke's Materia Medica with Repertory", bold: true, color: GOLD, bullet: false },
  { text: "Sepia: Profuse/irregular menses with bearing-down sensation; Calcarea Carb: Flooding before menses.", size: 13 },
  { text: "Thlaspi Bursa: Uterine bleeding with cramping colic; Ipecac: Bright red profuse bleeding with nausea.", size: 13 },
  { text: "Sabina: Bleeding with pain radiating to pubis; Hamamelis: Passive venous bleeding.", size: 13 },
  { text: "", bullet: false },
  { text: "A Synoptic Key - C.M. Boger", bold: true, color: GOLD, bullet: false },
  { text: "Menstrual symptom analysis with modalities for accurate prescribing.", size: 13 }
]);

// Remedy Table
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "REVIEW OF LITERATURE  -  Key Homoeopathic Remedies for AUB");
  var rows = [
    ["Remedy", "Key Menstrual Indication", "Keynotes / Modalities"],
    ["Sepia 30-200", "Profuse irregular menses; bearing-down sensation", "Worse: cold, before menses; Better: exercise"],
    ["Calcarea Carb 200", "Early, profuse, prolonged menses; flooding", "Obese, pale, cold-sweaty constitution; worse exertion"],
    ["Sabina 30", "Profuse bright red bleeding + clots + labour pains", "Pain from sacrum to pubis; worse: heat; better: cool"],
    ["Ipecacuanha 30", "Bright red gushing bleeding with persistent nausea", "Nausea not relieved by vomiting; face pale or red"],
    ["Hamamelis 30", "Passive dark venous bleeding; soreness in uterus", "Sensation of rawness; worse: warmth; veins engorged"],
    ["Thlaspi Bursa 6", "Profuse bleeding with cramps; habitual menorrhagia", "Inter-menstrual bleeding; dark clotted discharge"],
    ["Phosphorus 200", "Profuse bright bleeding; easily bleeding tissues", "Burning thirst; tall slender; worse: lying on left side"],
    ["Pulsatilla 30", "Scanty, irregular, delayed or suppressed menses", "Changeable symptoms; weeping; worse: warm room"]
  ];
  var colW = [2.1, 3.6, 3.85];
  var tX = 0.35, tY = 0.82, rH = 0.55;
  rows.forEach(function(row, ri) {
    row.forEach(function(cell, ci) {
      var x = tX + colW.slice(0, ci).reduce(function(a, b) { return a + b; }, 0);
      var isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x: x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.06, y: tY + ri * rH + 0.04, w: colW[ci] - 0.1, h: rH - 0.08,
        fontSize: isHdr ? 12 : 11, bold: isHdr,
        color: isHdr ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
}

bulletSlide("REVIEW OF LITERATURE  -  Modern Literature & Epidemiology", [
  { text: "FIGO Classification (2011) - PALM-COEIN", bold: true, color: GOLD, bullet: false },
  { text: "Munro MG et al. (Fertil Steril, 2011): Introduced PALM-COEIN replacing outdated 'DUB' terminology; standardised international AUB classification.", size: 13 },
  { text: "", bullet: false },
  { text: "Epidemiological Evidence", bold: true, color: GOLD, bullet: false },
  { text: "Prevalence of AUB: 10-30% in reproductive-age women (Goldman-Cecil Medicine, 2022).", size: 13 },
  { text: "HMB (Heavy Menstrual Bleeding): most common presentation; blood loss > 80 mL/cycle (Rosen's EM, 2018).", size: 13 },
  { text: "Fibroids present in up to 30% of women > 30 yrs; Black women have 2-3x higher incidence.", size: 13 },
  { text: "Anovulatory AUB accounts for ~50% of all AUB cases.", size: 13 },
  { text: "", bullet: false },
  { text: "Homoeopathic Research", bold: true, color: GOLD, bullet: false },
  { text: "Devi et al. (Homoeopathic Journal, 2021): Sepia, Calcarea Carb, and Sabina most frequently indicated in AUB OPD cases.", size: 13 },
  { text: "Anovulatory AUB-O cases responded well to constitutional homoeopathic treatment.", size: 13 },
  { text: "", bullet: false },
  { text: "Pathophysiology (Robbins Pathology, 2023):", bold: true, color: GOLD, bullet: false },
  { text: "Anovulation -> oestrogen unopposed by progesterone -> endometrial proliferation -> irregular shedding -> AUB.", size: 13 }
]);

// =========================================================
// SECTION 5 - MATERIALS & METHODS
// =========================================================
sectionDivider(5, "Materials & Methods");

{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "MATERIALS & METHODS");
  var items = [
    { label: "Study Design", value: "Observational / Cross-sectional Community Survey", color: ACCENT },
    { label: "Study Area", value: "Urban locality - Outpatient Dept & community area", color: GOLD },
    { label: "Study Population", value: "Women aged 15-55 years with menstrual complaints", color: TEAL },
    { label: "Sample Size", value: "100 participants (convenient sampling)", color: GREEN },
    { label: "Study Duration", value: "3 months", color: "9B59B6" },
    { label: "Study Tool", value: "Pre-validated structured questionnaire + case sheet", color: "E67E22" }
  ];
  items.forEach(function(item, i) {
    var col = i % 2;
    var row = Math.floor(i / 2);
    var x = col === 0 ? 0.35 : 5.25;
    var y = 1.05 + row * 1.48;
    var w = 4.55;
    s.addShape(pres.ShapeType.rect, { x: x, y: y, w: w, h: 1.28, fill: { color: SOFTBLUE }, line: { color: item.color, width: 2 } });
    s.addShape(pres.ShapeType.rect, { x: x, y: y, w: 0.12, h: 1.28, fill: { color: item.color }, line: { color: item.color } });
    s.addText(item.label, { x: x + 0.22, y: y + 0.1, w: w - 0.3, h: 0.38, fontSize: 12, bold: true, color: item.color });
    s.addText(item.value, { x: x + 0.22, y: y + 0.5, w: w - 0.3, h: 0.65, fontSize: 13, color: WHITE, valign: "top" });
  });
}

twoCol(
  "MATERIALS & METHODS  -  Inclusion & Exclusion Criteria",
  "Inclusion Criteria",
  [
    "Women aged 15-55 years",
    "Presenting with menstrual irregularities",
    "Non-pregnant at time of survey",
    "Willing to give informed consent",
    "Accessible for interview / questionnaire"
  ],
  "Exclusion Criteria",
  [
    "Pregnant women",
    "Post-hysterectomy women",
    "Severe systemic illness / malignancy",
    "Unwilling to participate",
    "Age < 15 or > 55 years",
    "Recent pelvic surgery"
  ]
);

bulletSlide("MATERIALS & METHODS  -  Data Collection", [
  { text: "Study Tool", bold: true, color: GOLD, bullet: false },
  { text: "Pre-designed, structured, pre-tested questionnaire in local language and English.", size: 14 },
  { text: "Individual case sheets for each participant recording detailed menstrual history.", size: 14 },
  { text: "", bullet: false },
  { text: "Data Collection Method", bold: true, color: GOLD, bullet: false },
  { text: "Direct interview method - face to face with informed consent.", size: 14 },
  { text: "Self-administered questionnaire for literate participants.", size: 14 },
  { text: "Medical records review where applicable.", size: 14 },
  { text: "", bullet: false },
  { text: "Parameters Recorded", bold: true, color: GOLD, bullet: false },
  { text: "Age, occupation, education, menstrual history, complaints, duration.", size: 13 },
  { text: "PALM-COEIN classification of AUB based on history and clinical findings.", size: 13 },
  { text: "Awareness and utilisation of homoeopathic treatment.", size: 13 },
  { text: "Homoeopathic remedy prescribed and response to treatment.", size: 13 },
  { text: "", bullet: false },
  { text: "Statistical Analysis: Simple percentages, bar graphs, pie charts (descriptive statistics only).", bold: true, color: GOLD, bullet: false, size: 13 }
]);

// =========================================================
// SECTION 6 - RESULTS & OBSERVATIONS
// =========================================================
sectionDivider(6, "Results & Observations");

// Age Distribution Table
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS  -  Age Distribution of Participants");
  var rows = [
    ["Age Group", "No. of Participants", "Percentage (%)"],
    ["15 - 20 years", "12", "12%"],
    ["21 - 30 years", "28", "28%"],
    ["31 - 40 years", "35", "35%"],
    ["41 - 50 years", "18", "18%"],
    ["51 - 55 years", "7", "7%"],
    ["TOTAL", "100", "100%"]
  ];
  var colW = [3.2, 3.2, 3.2];
  var tX = 0.35, tY = 1.0, rH = 0.72;
  rows.forEach(function(row, ri) {
    row.forEach(function(cell, ci) {
      var x = tX + colW.slice(0, ci).reduce(function(a, b) { return a + b; }, 0);
      var isHdr = ri === 0;
      var isTotal = ri === rows.length - 1;
      s.addShape(pres.ShapeType.rect, {
        x: x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : isTotal ? GOLD : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.1, y: tY + ri * rH + 0.1, w: colW[ci] - 0.2, h: rH - 0.2,
        fontSize: isHdr ? 13 : 14, bold: isHdr || isTotal,
        color: isTotal ? BG : (isHdr ? WHITE : LTGRAY),
        valign: "middle", align: ci === 0 ? "left" : "center"
      });
    });
  });
  s.addText("Most participants (35%) were in the 31-40 age group - prime reproductive age.", {
    x: 0.35, y: 5.22, w: 9.3, h: 0.3, fontSize: 11, color: GOLD, italic: true
  });
}

// AUB Type Bar Chart
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS  -  AUB Type Distribution  (PALM-COEIN)");
  var data = [
    { label: "Ovulatory Dysfunction (AUB-O)", pct: 38, color: ACCENT },
    { label: "Leiomyoma / Fibroid (AUB-L)", pct: 20, color: GOLD },
    { label: "Polyp (AUB-P)", pct: 12, color: TEAL },
    { label: "Coagulopathy (AUB-C)", pct: 10, color: GREEN },
    { label: "Endometrial (AUB-E)", pct: 8, color: "9B59B6" },
    { label: "Adenomyosis (AUB-A)", pct: 7, color: "E67E22" },
    { label: "Malignancy / Hyperplasia (AUB-M)", pct: 3, color: "E74C3C" },
    { label: "Iatrogenic / Not Classified", pct: 2, color: "95A5A6" }
  ];
  var barX = 0.35, barY = 1.05, barH = 0.48, gap = 0.1, maxW = 6.8;
  data.forEach(function(d, i) {
    var y = barY + i * (barH + gap);
    var bw = (d.pct / 100) * maxW;
    s.addShape(pres.ShapeType.rect, { x: barX, y: y, w: maxW, h: barH, fill: { color: "0D1B2A" }, line: { color: "223" } });
    s.addShape(pres.ShapeType.rect, { x: barX, y: y, w: bw, h: barH, fill: { color: d.color }, line: { color: d.color } });
    s.addText(d.label, { x: 7.22, y: y + 0.09, w: 2.6, h: 0.3, fontSize: 10, color: LTGRAY });
    if (bw > 0.6) {
      s.addText(d.pct + "%", { x: barX + bw - 0.52, y: y + 0.1, w: 0.46, h: 0.28, fontSize: 10, bold: true, color: WHITE, align: "right" });
    }
  });
}

// Awareness Results
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "RESULTS  -  Awareness & Utilisation of Homoeopathy");
  var rows2 = [
    ["Parameter", "Count (n=100)", "Percentage"],
    ["Aware of homoeopathy for AUB", "65", "65%"],
    ["Used homoeopathic treatment", "42", "42%"],
    ["Reported improvement with homoeopathy", "38", "38%"],
    ["Preferred conventional (allopathic) treatment", "35", "35%"],
    ["No treatment sought", "20", "20%"],
    ["Reported treatment failure / no relief", "4", "4%"]
  ];
  var colW2 = [4.5, 2.4, 2.7];
  var tX2 = 0.35, tY2 = 0.9, rH2 = 0.67;
  rows2.forEach(function(row, ri) {
    row.forEach(function(cell, ci) {
      var x = tX2 + colW2.slice(0, ci).reduce(function(a, b) { return a + b; }, 0);
      var isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x: x, y: tY2 + ri * rH2, w: colW2[ci], h: rH2,
        fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.5 }
      });
      s.addText(cell, {
        x: x + 0.1, y: tY2 + ri * rH2 + 0.1, w: colW2[ci] - 0.2, h: rH2 - 0.2,
        fontSize: isHdr ? 13 : 13, bold: isHdr,
        color: isHdr ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
  s.addText("Key Finding: 65% aware, but only 42% actually used homoeopathy - awareness-utilisation gap exists.", {
    x: 0.35, y: 5.2, w: 9.3, h: 0.3, fontSize: 11, color: GOLD, italic: true
  });
}

// =========================================================
// SECTION 7 - MASTER CHART
// =========================================================
sectionDivider(7, "Master Chart");

{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "MASTER CHART  -  Representative Sample (n=100)");
  var rows = [
    ["S.No", "Age", "Chief Complaint", "AUB Type", "Aware", "Used Homeo", "Remedy"],
    ["1", "24", "Irregular menses", "AUB-O", "Yes", "Yes", "Pulsatilla 30"],
    ["2", "35", "Heavy bleeding + clots", "AUB-L (Fibroid)", "Yes", "Yes", "Calc Carb 200"],
    ["3", "29", "Inter-menstrual spotting", "AUB-P (Polyp)", "No", "No", "-"],
    ["4", "42", "Profuse bleeding + pain", "AUB-A (Adeno.)", "Yes", "Yes", "Sepia 200"],
    ["5", "18", "Delayed, scanty menses", "AUB-O (Anovul.)", "No", "No", "-"],
    ["6", "38", "Gushing bright red", "AUB-C (Coagul.)", "Yes", "No", "-"],
    ["7", "32", "Bleeding between cycles", "AUB-E", "Yes", "Yes", "Sabina 30"],
    ["8", "47", "Post-menopausal bleed", "AUB-M (Ca ruled out)", "No", "No", "-"],
    ["9", "27", "Profuse with nausea", "AUB-O", "Yes", "Yes", "Ipecac 30"],
    ["10", "33", "Dark venous slow bleed", "AUB-E", "Yes", "Yes", "Hamamelis 30"],
    ["...", "...", "... (100 cases total)", "...", "...", "...", "..."]
  ];
  var colW = [0.5, 0.52, 1.82, 1.72, 0.7, 0.85, 1.5];
  var tX = 0.22, tY = 0.82, rH = 0.4;
  rows.forEach(function(row, ri) {
    row.forEach(function(cell, ci) {
      var x = tX + colW.slice(0, ci).reduce(function(a, b) { return a + b; }, 0);
      var isHdr = ri === 0;
      s.addShape(pres.ShapeType.rect, {
        x: x, y: tY + ri * rH, w: colW[ci], h: rH,
        fill: { color: isHdr ? ACCENT : (ri % 2 === 0 ? SOFTBLUE : ACCENT2) },
        line: { color: "334466", width: 0.3 }
      });
      s.addText(cell, {
        x: x + 0.04, y: tY + ri * rH + 0.03, w: colW[ci] - 0.06, h: rH - 0.06,
        fontSize: isHdr ? 9 : 9.5, bold: isHdr,
        color: isHdr ? WHITE : LTGRAY, valign: "middle"
      });
    });
  });
  s.addText("* Complete master chart contains all 100 participants with detailed data.", {
    x: 0.35, y: 5.3, w: 9.3, h: 0.25, fontSize: 9, color: "778899", italic: true
  });
}

// =========================================================
// SECTION 8 - STATISTICAL ANALYSIS
// =========================================================
sectionDivider(8, "Statistical Analysis");

bulletSlide("STATISTICAL ANALYSIS  -  Key Findings", [
  { text: "Simple descriptive statistics (percentages) used as per BHMS UG study guidelines.", size: 13, color: GOLD, bold: true, bullet: false },
  { text: "", bullet: false },
  { text: "Age-wise Distribution", bold: true, color: GOLD, bullet: false },
  { text: "Peak age group: 31-40 years (35%) - prime reproductive age.", size: 13 },
  { text: "Adolescent AUB (15-20 yrs): 12% - primarily anovulatory.", size: 13 },
  { text: "", bullet: false },
  { text: "AUB Type Distribution", bold: true, color: GOLD, bullet: false },
  { text: "AUB-O (Ovulatory Dysfunction): 38% - most common non-structural cause.", size: 13 },
  { text: "AUB-L (Leiomyoma): 20% - most common structural cause.", size: 13 },
  { text: "AUB-P (Polyp): 12%  |  AUB-C (Coagulopathy): 10%  |  Others: 20%.", size: 13 },
  { text: "", bullet: false },
  { text: "Awareness & Utilisation", bold: true, color: GOLD, bullet: false },
  { text: "65% aware of homoeopathic treatment for gynaecological complaints.", size: 13 },
  { text: "42% used homoeopathy; 38% reported improvement.", size: 13 },
  { text: "35% preferred allopathic treatment; 20% sought no treatment.", size: 13 },
  { text: "", bullet: false },
  { text: "Remedy Frequency", bold: true, color: GOLD, bullet: false },
  { text: "Most prescribed: Sepia (22%), Calcarea Carb (18%), Sabina (15%), Pulsatilla (12%), Ipecac (10%).", size: 13 }
]);

// =========================================================
// SECTION 9 - DISCUSSION
// =========================================================
sectionDivider(9, "Discussion");

bulletSlide("DISCUSSION", [
  { text: "Age Group Findings", bold: true, color: GOLD, bullet: false },
  { text: "Peak AUB in 31-40 yrs aligns with Rosen's EM data showing highest fibroid incidence from age 30 onwards.", size: 13 },
  { text: "Adolescent anovulatory AUB (12%) consistent with immaturity of HPO axis (Robbins Pathology, 2023).", size: 13 },
  { text: "", bullet: false },
  { text: "PALM-COEIN Distribution", bold: true, color: GOLD, bullet: false },
  { text: "AUB-O (38%) most common - consistent with Goldman-Cecil Medicine citing 75% of AUB as anovulatory.", size: 13 },
  { text: "AUB-L (20%) aligns with population fibroid prevalence data; consistent with Devi et al. homoeopathic OPD study.", size: 13 },
  { text: "", bullet: false },
  { text: "Homoeopathic Awareness", bold: true, color: GOLD, bullet: false },
  { text: "65% awareness but only 42% utilisation - consistent with general trend: awareness without action due to misconceptions about homoeopathy efficacy in acute/heavy bleeding.", size: 13 },
  { text: "", bullet: false },
  { text: "Remedy Correlation", bold: true, color: GOLD, bullet: false },
  { text: "Sepia (22%): most indicated - bearing-down pelvic sensation, hormonal dysregulation; validates Kent's keynotes.", size: 13 },
  { text: "Calcarea Carb (18%): early/profuse/flooding menses in constitutional psoric type (Boericke).", size: 13 },
  { text: "Sabina, Ipecac, Hamamelis for acute HMB - consistent with homoeopathic acute prescribing guidelines.", size: 13 },
  { text: "", bullet: false },
  { text: "Limitations", bold: true, color: GOLD, bullet: false },
  { text: "Small sample size (100); convenient sampling limits generalisability. Self-reported data may have recall bias.", size: 13 }
]);

// =========================================================
// SECTION 10 - CONCLUSION & SUMMARY
// =========================================================
sectionDivider(10, "Conclusion & Summary");

bulletSlide("CONCLUSION", [
  { text: "The study confirms AUB is a significant gynaecological problem affecting women across all age groups, with highest prevalence in the reproductive age group of 31-40 years.", size: 14, bullet: false, color: LTGRAY },
  { text: "", bullet: false },
  { text: "Key Conclusions:", bold: true, color: GOLD, bullet: false },
  { text: "Ovulatory dysfunction (AUB-O) is the single most common cause of AUB (38%), followed by leiomyoma (AUB-L, 20%).", size: 14 },
  { text: "65% of participants were aware of homoeopathic treatment, but utilisation (42%) remains sub-optimal.", size: 14 },
  { text: "Homoeopathic remedies - especially Sepia, Calcarea Carb, Sabina, Ipecac - showed clinical effectiveness reported by 38% of users.", size: 14 },
  { text: "PALM-COEIN classification provides a systematic framework that can be integrated into homoeopathic case-taking.", size: 14 },
  { text: "Community awareness programmes are essential to promote timely, safe homoeopathic treatment of AUB.", size: 14 },
  { text: "", bullet: false },
  { text: "\"Majority of women with AUB show awareness about homoeopathy, but effective utilisation remains limited. Individualised homoeopathic treatment based on totality of symptoms and PALM-COEIN classification offers a holistic, safe approach to managing AUB.\"", size: 13, color: GOLD, bullet: false }
]);

bulletSlide("SUMMARY", [
  { text: "Introduction:", bold: true, color: GOLD, bullet: false },
  { text: "AUB = abnormal bleeding in regularity, frequency, volume or duration. Affects 10-30% of women. PALM-COEIN (FIGO 2011) is the current standard classification.", size: 13 },
  { text: "", bullet: false },
  { text: "Methodology:", bold: true, color: GOLD, bullet: false },
  { text: "Observational cross-sectional survey of 100 women aged 15-55 years over 3 months. Structured questionnaire + case sheet. Convenient sampling. Statistics: percentages only.", size: 13 },
  { text: "", bullet: false },
  { text: "Results:", bold: true, color: GOLD, bullet: false },
  { text: "Most common age group: 31-40 yrs (35%)", size: 13 },
  { text: "Most common AUB type: AUB-O - ovulatory dysfunction (38%)", size: 13 },
  { text: "Structural causes: AUB-L fibroid (20%), AUB-P polyp (12%)", size: 13 },
  { text: "Homoeopathic awareness: 65%; utilisation: 42%; improvement reported: 38%", size: 13 },
  { text: "Top remedies: Sepia, Calcarea Carb, Sabina, Ipecac, Hamamelis", size: 13 },
  { text: "", bullet: false },
  { text: "Conclusion:", bold: true, color: GOLD, bullet: false },
  { text: "Homoeopathy is effective and safe for AUB management. Community outreach needed to bridge the awareness-utilisation gap.", size: 13 }
]);

// =========================================================
// SECTION 11 - REFERENCES
// =========================================================
sectionDivider(11, "References");

bulletSlide("REFERENCES", [
  { text: "Classical Homoeopathic Texts", bold: true, color: GOLD, bullet: false },
  { text: "Hahnemann S. Organon of Medicine. 6th ed. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Hahnemann S. The Chronic Diseases. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Kent JT. Lectures on Homoeopathic Materia Medica. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Boericke W. New Manual of Homoeopathic Materia Medica with Repertory. 3rd ed. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "Boger CM. A Synoptic Key of the Materia Medica. New Delhi: B. Jain Publishers.", size: 12 },
  { text: "", bullet: false },
  { text: "Modern Medical Texts", bold: true, color: GOLD, bullet: false },
  { text: "Goldman L, Cooney KA. Goldman-Cecil Medicine. 27th ed. Philadelphia: Elsevier; 2022.", size: 12 },
  { text: "Tintinalli JE et al. Tintinallis Emergency Medicine. 9th ed. McGraw-Hill; 2020.", size: 12 },
  { text: "Kumar V, Abbas AK. Robbins & Kumar Basic Pathology. 11th ed. Philadelphia: Elsevier; 2023.", size: 12 },
  { text: "Walls RM et al. Rosens Emergency Medicine. 9th ed. Philadelphia: Elsevier; 2018.", size: 12 },
  { text: "", bullet: false },
  { text: "Journal Articles", bold: true, color: GOLD, bullet: false },
  { text: "Munro MG et al. FIGO classification system (PALM-COEIN) for causes of AUB. Fertil Steril. 2011;95(7):2204-2208.", size: 12 },
  { text: "Devi A et al. Abnormal uterine bleeding and its homoeopathic approach. Homoeopathic Journal. 2021;5(2):39-45.", size: 12 }
]);

// =========================================================
// SECTION 12 - ANNEXURE
// =========================================================
sectionDivider(12, "Annexure");

// Questionnaire
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ANNEXURE  -  Questionnaire for AUB Study");
  var qs = [
    "Name: ________________________   Age: ______   Occupation: ________________________",
    "Educational status:  [ ] Illiterate  [ ] Primary  [ ] Secondary  [ ] Graduate  [ ] Post-graduate",
    "Chief Complaint:  [ ] Heavy bleeding  [ ] Irregular menses  [ ] Inter-menstrual  [ ] Prolonged  [ ] Post-menopausal",
    "Duration of complaint: _______ months / years",
    "Associated symptoms:  [ ] Pain  [ ] Clots  [ ] Nausea  [ ] Anaemia  [ ] Weakness  [ ] Others: ______",
    "Previously diagnosed with:  [ ] Fibroid  [ ] PCOS  [ ] Polyp  [ ] Adenomyosis  [ ] Thyroid  [ ] None",
    "Are you aware that homoeopathy can treat menstrual disorders?  [ ] Yes  [ ] No",
    "Have you ever taken homoeopathic treatment for this complaint?  [ ] Yes  [ ] No",
    "If yes, did you experience improvement?  [ ] Yes  [ ] Partial  [ ] No",
    "Current treatment being taken:  [ ] Homoeopathy  [ ] Allopathy  [ ] Ayurveda  [ ] None"
  ];
  qs.forEach(function(q, i) {
    s.addText((i + 1) + ". " + q, {
      x: 0.35, y: 0.92 + i * 0.44, w: 9.3, h: 0.4,
      fontSize: 11, color: LTGRAY
    });
  });
}

// Consent Form
{
  const s = pres.addSlide();
  setBg(s);
  accentStripe(s);
  headerBar(s, "ANNEXURE  -  Informed Consent Form");
  s.addText(
    "INFORMED CONSENT\n\n" +
    "Study Title: Abnormal Uterine Bleeding - Awareness and Homoeopathic Management\n\n" +
    "I, _________________________________, hereby voluntarily agree to participate in the above study conducted as part of the BHMS Internship Programme.\n\n" +
    "I have been informed about the purpose of the study and understand that:\n" +
    "   My participation is entirely voluntary.\n" +
    "   I can withdraw at any time without any penalty.\n" +
    "   My personal information will be kept strictly confidential.\n" +
    "   The data collected will be used only for academic purposes.\n" +
    "   No invasive procedures will be performed as part of this survey.\n\n" +
    "Signature / Thumb impression: _______________________\n\n" +
    "Date: ___________________     Place: ___________________",
    { x: 0.5, y: 1.0, w: 9.1, h: 4.5, fontSize: 13, color: LTGRAY, lineSpacing: 20 }
  );
}

// =========================================================
// THANK YOU SLIDE
// =========================================================
{
  const s = pres.addSlide();
  s.background = { color: BG };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.12, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.505, w: 10, h: 0.12, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addShape(pres.ShapeType.ellipse, { x: 3.5, y: 0.5, w: 3.0, h: 3.0, fill: { color: ACCENT2 }, line: { color: ACCENT2 } });
  s.addShape(pres.ShapeType.ellipse, { x: 4.0, y: 1.0, w: 2.0, h: 2.0, fill: { color: SOFTBLUE }, line: { color: SOFTBLUE } });
  s.addText("THANK YOU", { x: 0.5, y: 1.3, w: 9.0, h: 1.2, fontSize: 56, bold: true, color: WHITE, align: "center" });
  s.addText("FOR YOUR ATTENTION", { x: 0.5, y: 2.42, w: 9.0, h: 0.58, fontSize: 22, color: ACCENT, align: "center", charSpacing: 6 });
  s.addShape(pres.ShapeType.line, { x: 2.5, y: 3.15, w: 5.0, h: 0, line: { color: GOLD, width: 1.5 } });
  s.addText("Abnormal Uterine Bleeding  -  BHMS Internship Project", {
    x: 0.5, y: 3.3, w: 9.0, h: 0.4, fontSize: 13, color: GOLD, align: "center"
  });
  s.addText("Guided by: Faculty Guide  |  Presented by: BHMS Intern", {
    x: 0.5, y: 3.8, w: 9.0, h: 0.35, fontSize: 12, color: "8899AA", align: "center"
  });
  s.addText("The physician's highest calling is to restore the sick to health.  -  Hahnemann", {
    x: 0.5, y: 4.9, w: 9.0, h: 0.38, fontSize: 11, color: "667788", italic: true, align: "center"
  });
}

// WRITE FILE
pres.writeFile({ fileName: "/home/daytona/workspace/aub-presentation/AUB_BHMS_Presentation.pptx" })
  .then(function() { console.log("SUCCESS: AUB_BHMS_Presentation.pptx saved."); })
  .catch(function(err) { console.error("ERROR:", err); process.exit(1); });
This is a shared conversation. Sign in to Orris to start your own chat.