Physiology of yoga and meditation presentation ppt for 1 st year mbbs seminar

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

physiology of yoga meditation MBBS seminar topics ANS cardiovascular respiratory effects

Finding Sources
Finding Sources
Finding Sources
Running Command

ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"

Running Command

mkdir -p /home/daytona/workspace/yoga-physiology-ppt && echo "created"

Writing File

~/yoga-physiology-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Physiology of Yoga and Meditation";

// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const C = {
  deepTeal:   "0D4F5C",   // dominant dark background
  midTeal:    "12748A",
  softTeal:   "1A9BB5",
  accent:     "5DD9C1",   // bright accent (mint-green)
  gold:       "F4C94E",   // highlight accent
  white:      "FFFFFF",
  offWhite:   "EAF6F8",
  dark:       "0A2E35",
  lightBg:    "E8F8F5",
  bodyText:   "1A3C45",
  subText:    "2E7D8E",
};

// ─── HELPER: section label bar ──────────────────────────────────────────────
function sectionBar(slide, label) {
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.38,
    fill: { color: C.deepTeal },
  });
  slide.addText(label.toUpperCase(), {
    x: 0.18, y: 0, w: 9.6, h: 0.38,
    fontSize: 9, bold: true, color: C.accent,
    valign: "middle", charSpacing: 3, margin: 0,
  });
}

// ─── HELPER: content slide base ─────────────────────────────────────────────
function contentSlide(title, sectionLabel) {
  const slide = pres.addSlide();
  // light off-white background
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 5.625,
    fill: { color: C.offWhite },
  });
  sectionBar(slide, sectionLabel);
  // left accent strip
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0.38, w: 0.08, h: 5.245,
    fill: { color: C.accent },
  });
  // title
  slide.addShape(pres.ShapeType.rect, {
    x: 0.08, y: 0.38, w: 9.92, h: 0.82,
    fill: { color: C.midTeal },
  });
  slide.addText(title, {
    x: 0.28, y: 0.38, w: 9.5, h: 0.82,
    fontSize: 22, bold: true, color: C.white,
    valign: "middle", margin: 0,
  });
  return slide;
}

// ─── HELPER: bullet list ────────────────────────────────────────────────────
function addBullets(slide, items, opts = {}) {
  const {
    x = 0.3, y = 1.32, w = 9.4, h = 4.0,
    fontSize = 16, color = C.bodyText,
    bulletColor = C.softTeal, bold = false,
  } = opts;
  const rows = items.map((item, i) => ({
    text: item,
    options: {
      bullet: { code: "25B6", color: bulletColor },
      breakLine: i < items.length - 1,
      fontSize, color, bold,
    },
  }));
  slide.addText(rows, { x, y, w, h, valign: "top", paraSpaceBefore: 4 });
}

// ─── HELPER: two-column layout ──────────────────────────────────────────────
function addTwoCol(slide, leftTitle, leftItems, rightTitle, rightItems, opts = {}) {
  const { y = 1.32 } = opts;
  // Left card
  slide.addShape(pres.ShapeType.rect, {
    x: 0.2, y, w: 4.55, h: 0.38,
    fill: { color: C.softTeal },
  });
  slide.addText(leftTitle, {
    x: 0.2, y, w: 4.55, h: 0.38,
    fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0,
  });
  slide.addShape(pres.ShapeType.rect, {
    x: 0.2, y: y + 0.38, w: 4.55, h: 3.55,
    fill: { color: "FFFFFF" }, line: { color: C.softTeal, width: 1 },
  });
  const leftRows = leftItems.map((t, i) => ({
    text: t, options: {
      bullet: { code: "25B6", color: C.softTeal },
      breakLine: i < leftItems.length - 1,
      fontSize: 14, color: C.bodyText,
    },
  }));
  slide.addText(leftRows, { x: 0.3, y: y + 0.48, w: 4.35, h: 3.3, valign: "top", paraSpaceBefore: 4 });

  // Right card
  slide.addShape(pres.ShapeType.rect, {
    x: 5.25, y, w: 4.55, h: 0.38,
    fill: { color: C.accent },
  });
  slide.addText(rightTitle, {
    x: 5.25, y, w: 4.55, h: 0.38,
    fontSize: 12, bold: true, color: C.dark, align: "center", valign: "middle", margin: 0,
  });
  slide.addShape(pres.ShapeType.rect, {
    x: 5.25, y: y + 0.38, w: 4.55, h: 3.55,
    fill: { color: "FFFFFF" }, line: { color: C.accent, width: 1 },
  });
  const rightRows = rightItems.map((t, i) => ({
    text: t, options: {
      bullet: { code: "25B6", color: C.accent },
      breakLine: i < rightItems.length - 1,
      fontSize: 14, color: C.bodyText,
    },
  }));
  slide.addText(rightRows, { x: 5.35, y: y + 0.48, w: 4.35, h: 3.3, valign: "top", paraSpaceBefore: 4 });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 1 — TITLE SLIDE
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  // Full dark background
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.deepTeal } });
  // Decorative circle top-right
  s.addShape(pres.ShapeType.ellipse, { x: 7.2, y: -0.8, w: 3.5, h: 3.5, fill: { color: C.midTeal }, line: { color: C.midTeal } });
  s.addShape(pres.ShapeType.ellipse, { x: 7.7, y: -0.3, w: 2.5, h: 2.5, fill: { color: C.softTeal }, line: { color: C.softTeal } });
  // Bottom decorative strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.2, w: 10, h: 0.425, fill: { color: C.accent } });
  // Subtitle strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 3.68, w: 10, h: 0.06, fill: { color: C.gold } });

  // Institution label
  s.addText("1st YEAR MBBS SEMINAR  |  PHYSIOLOGY DEPARTMENT", {
    x: 0.5, y: 0.28, w: 9, h: 0.35,
    fontSize: 9.5, color: C.accent, bold: true, charSpacing: 2.5, margin: 0,
  });

  // Main title
  s.addText("PHYSIOLOGY OF", {
    x: 0.5, y: 0.75, w: 7, h: 0.85,
    fontSize: 38, color: C.white, bold: false, margin: 0,
  });
  s.addText("YOGA &", {
    x: 0.5, y: 1.55, w: 7, h: 1.0,
    fontSize: 64, color: C.accent, bold: true, margin: 0,
  });
  s.addText("MEDITATION", {
    x: 0.5, y: 2.5, w: 7, h: 1.0,
    fontSize: 64, color: C.gold, bold: true, margin: 0,
  });

  // Subtitle
  s.addText("Physiological mechanisms, organ system effects & clinical relevance", {
    x: 0.5, y: 3.75, w: 8.5, h: 0.5,
    fontSize: 13.5, color: C.offWhite, italic: true, margin: 0,
  });

  // Bottom bar text
  s.addText("Presenter: ________________   |   Guide: ________________   |   Date: June 2026", {
    x: 0.3, y: 5.22, w: 9.4, h: 0.38,
    fontSize: 9, color: C.dark, bold: false, align: "center", margin: 0,
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 2 — OVERVIEW / CONTENTS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Overview & Contents", "INTRODUCTION");
  const topics = [
    "Definition & Historical Background",
    "Types of Yoga & Meditation",
    "Autonomic Nervous System Effects",
    "Cardiovascular System Effects",
    "Respiratory System Effects",
    "Neuroendocrine & Hormonal Effects",
    "Musculoskeletal & Metabolic Effects",
    "Brain & Psychological Effects",
    "Clinical Applications & Evidence",
    "Summary & Conclusion",
  ];
  // Two-column numbered list
  const left = topics.slice(0, 5);
  const right = topics.slice(5);
  const makeNumbered = (arr, startIndex) =>
    arr.map((t, i) => ({
      text: `${startIndex + i + 1}.  ${t}`,
      options: {
        breakLine: i < arr.length - 1,
        fontSize: 16, color: C.bodyText, bold: false,
      },
    }));
  s.addShape(pres.ShapeType.rect, {
    x: 0.18, y: 1.32, w: 4.6, h: 4.0,
    fill: { color: "FFFFFF" }, line: { color: C.accent, width: 1 },
  });
  s.addText(makeNumbered(left, 0), { x: 0.38, y: 1.42, w: 4.3, h: 3.8, valign: "top", paraSpaceBefore: 6 });
  s.addShape(pres.ShapeType.rect, {
    x: 5.22, y: 1.32, w: 4.6, h: 4.0,
    fill: { color: "FFFFFF" }, line: { color: C.accent, width: 1 },
  });
  s.addText(makeNumbered(right, 5), { x: 5.42, y: 1.42, w: 4.3, h: 3.8, valign: "top", paraSpaceBefore: 6 });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 3 — DEFINITION & HISTORY
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Definition & Historical Background", "INTRODUCTION");
  // Definition box
  s.addShape(pres.ShapeType.rect, {
    x: 0.18, y: 1.32, w: 9.65, h: 0.9,
    fill: { color: C.midTeal },
  });
  s.addText([
    { text: "YOGA", options: { bold: true, color: C.gold } },
    { text: " (Sanskrit: युज, 'to unite'): a mind-body discipline combining physical postures (asanas), breath control (pranayama), and meditation to achieve union of body, mind, and spirit.", options: { color: C.white } },
  ], { x: 0.28, y: 1.32, w: 9.4, h: 0.9, fontSize: 14, valign: "middle" });

  s.addShape(pres.ShapeType.rect, {
    x: 0.18, y: 2.28, w: 9.65, h: 0.88,
    fill: { color: C.softTeal },
  });
  s.addText([
    { text: "MEDITATION", options: { bold: true, color: C.gold } },
    { text: ": a practice of focused attention, awareness, and mental stillness — producing a reproducible psychophysiological state termed the 'Relaxation Response' (Benson, 1975).", options: { color: C.white } },
  ], { x: 0.28, y: 2.28, w: 9.4, h: 0.88, fontSize: 14, valign: "middle" });

  addBullets(s, [
    "Originated in ancient India — Vedic texts (~1500 BCE), Patanjali's Yoga Sutras (~400 CE)",
    "Patanjali's Ashtanga (8-limbed) Yoga: Yama, Niyama, Asana, Pranayama, Pratyahara, Dharana, Dhyana, Samadhi",
    "Modern scientific study began in the 1950s–70s (Wenger, Anand, Benson)",
    "WHO recognizes yoga & meditation as complementary integrative health practices",
  ], { y: 3.22, fontSize: 15 });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 4 — TYPES OF YOGA
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Types of Yoga & Meditation", "CLASSIFICATION");
  const yogaTypes = [
    ["Hatha Yoga", "Physical postures + breath; prepares body for meditation"],
    ["Raja Yoga", "Mind control & meditation (Patanjali system)"],
    ["Karma Yoga", "Selfless action & service"],
    ["Jnana Yoga", "Path of knowledge & wisdom"],
    ["Bhakti Yoga", "Devotion and surrender"],
    ["Kundalini Yoga", "Energy activation, chanting, movement"],
  ];
  const medTypes = [
    ["Mindfulness", "Non-judgmental present-moment awareness (MBSR)"],
    ["Transcendental", "Use of mantras, eyes closed (TM — Maharishi)"],
    ["Breath-focused", "Pranayama: deep breathing, alternate nostril"],
    ["Loving-kindness", "Cultivation of compassion & positive emotion"],
    ["Guided Imagery", "Visualization for relaxation response"],
    ["Body Scan", "Progressive relaxation, proprioception awareness"],
  ];

  // Yoga table
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 1.32, w: 4.6, h: 0.38, fill: { color: C.midTeal } });
  s.addText("YOGA TYPES", { x: 0.18, y: 1.32, w: 4.6, h: 0.38, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
  yogaTypes.forEach(([t, d], i) => {
    const yy = 1.72 + i * 0.55;
    s.addShape(pres.ShapeType.rect, { x: 0.18, y: yy, w: 1.6, h: 0.5, fill: { color: i % 2 === 0 ? C.softTeal : C.accent } });
    s.addText(t, { x: 0.18, y: yy, w: 1.6, h: 0.5, fontSize: 10, bold: true, color: i % 2 === 0 ? C.white : C.dark, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: 1.78, y: yy, w: 3.0, h: 0.5, fill: { color: i % 2 === 0 ? "F0FAFB" : "FFFBEE" }, line: { color: C.accent, width: 0.5 } });
    s.addText(d, { x: 1.88, y: yy, w: 2.8, h: 0.5, fontSize: 10, color: C.bodyText, valign: "middle", margin: 0 });
  });

  // Meditation table
  s.addShape(pres.ShapeType.rect, { x: 5.22, y: 1.32, w: 4.6, h: 0.38, fill: { color: C.accent } });
  s.addText("MEDITATION TYPES", { x: 5.22, y: 1.32, w: 4.6, h: 0.38, fontSize: 12, bold: true, color: C.dark, align: "center", valign: "middle", margin: 0 });
  medTypes.forEach(([t, d], i) => {
    const yy = 1.72 + i * 0.55;
    s.addShape(pres.ShapeType.rect, { x: 5.22, y: yy, w: 1.6, h: 0.5, fill: { color: i % 2 === 0 ? C.softTeal : C.midTeal } });
    s.addText(t, { x: 5.22, y: yy, w: 1.6, h: 0.5, fontSize: 10, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: 6.82, y: yy, w: 3.0, h: 0.5, fill: { color: i % 2 === 0 ? "F0FAFB" : "FFFBEE" }, line: { color: C.softTeal, width: 0.5 } });
    s.addText(d, { x: 6.92, y: yy, w: 2.8, h: 0.5, fontSize: 10, color: C.bodyText, valign: "middle", margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 5 — AUTONOMIC NERVOUS SYSTEM
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Autonomic Nervous System (ANS) Effects", "ANS PHYSIOLOGY");
  // Central concept box
  s.addShape(pres.ShapeType.rect, {
    x: 3.5, y: 1.35, w: 3.0, h: 0.72,
    fill: { color: C.gold },
  });
  s.addText("YOGA / MEDITATION", {
    x: 3.5, y: 1.35, w: 3.0, h: 0.72,
    fontSize: 13, bold: true, color: C.dark, align: "center", valign: "middle", margin: 0,
  });
  // Arrow right
  s.addShape(pres.ShapeType.rect, { x: 4.6, y: 2.12, w: 0.8, h: 0.15, fill: { color: C.dark } });

  // Sympathetic dampening
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 2.35, w: 4.3, h: 0.42, fill: { color: "D9534F" } });
  s.addText("SYMPATHETIC DAMPENING", { x: 0.18, y: 2.35, w: 4.3, h: 0.42, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
  const sympItems = [
    "↓ Norepinephrine & Epinephrine",
    "↓ Heart rate (resting bradycardia with training)",
    "↓ Blood pressure (SBP & DBP)",
    "↓ Cortisol & ACTH secretion",
    "↓ Fight-or-flight arousal",
    "↓ Muscle tension & oxygen consumption",
  ];
  const sympRows = sympItems.map((t, i) => ({
    text: t,
    options: { bullet: { code: "25BC", color: "D9534F" }, breakLine: i < sympItems.length - 1, fontSize: 13, color: C.bodyText },
  }));
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 2.77, w: 4.3, h: 2.75, fill: { color: "FEF0F0" }, line: { color: "D9534F", width: 0.8 } });
  s.addText(sympRows, { x: 0.3, y: 2.87, w: 4.08, h: 2.55, valign: "top", paraSpaceBefore: 4 });

  // Parasympathetic enhancement
  s.addShape(pres.ShapeType.rect, { x: 5.52, y: 2.35, w: 4.3, h: 0.42, fill: { color: "5CB85C" } });
  s.addText("PARASYMPATHETIC ENHANCEMENT", { x: 5.52, y: 2.35, w: 4.3, h: 0.42, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
  const paraItems = [
    "↑ Vagal tone (↑ HRV — heart rate variability)",
    "↑ Acetylcholine release",
    "↑ Rest-digest-repair state",
    "↑ Baroreceptor sensitivity",
    "↑ Slow oscillations in BP (Mayer waves)",
    "↓ Sympathovagal ratio",
  ];
  const paraRows = paraItems.map((t, i) => ({
    text: t,
    options: { bullet: { code: "25B2", color: "5CB85C" }, breakLine: i < paraItems.length - 1, fontSize: 13, color: C.bodyText },
  }));
  s.addShape(pres.ShapeType.rect, { x: 5.52, y: 2.77, w: 4.3, h: 2.75, fill: { color: "F0FEF0" }, line: { color: "5CB85C", width: 0.8 } });
  s.addText(paraRows, { x: 5.64, y: 2.87, w: 4.08, h: 2.55, valign: "top", paraSpaceBefore: 4 });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 6 — CARDIOVASCULAR EFFECTS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Cardiovascular System Effects", "CVS PHYSIOLOGY");
  addTwoCol(
    s,
    "ACUTE EFFECTS (Single Session)",
    [
      "↓ HR by 5-10 bpm during practice",
      "↓ SBP by 5-15 mmHg during deep relaxation",
      "↑ Peripheral vasodilation",
      "↑ Cardiac output transiently in vigorous asanas",
      "Inversions (Sirsasana): ↑ venous return → baroreceptor activation",
    ],
    "CHRONIC EFFECTS (Regular Practice)",
    [
      "↓ Resting HR (training bradycardia)",
      "↓ SBP 5-17 mmHg; DBP 3-10 mmHg (meta-analyses)",
      "↑ Heart Rate Variability (HRV) — index of vagal tone",
      "↓ LDL cholesterol; ↑ HDL",
      "↓ Atherosclerotic risk markers (hs-CRP, fibrinogen)",
      "Beneficial in hypertension, CAD, heart failure",
    ]
  );
  // Evidence box
  s.addShape(pres.ShapeType.rect, {
    x: 0.18, y: 5.1, w: 9.65, h: 0.42,
    fill: { color: C.deepTeal },
  });
  s.addText([
    { text: "KEY EVIDENCE: ", options: { bold: true, color: C.gold } },
    { text: "Cramer et al. (2014) — systematic review of 44 RCTs; yoga significantly reduces BP in hypertensive patients comparable to aerobic exercise.", options: { color: C.offWhite } },
  ], { x: 0.28, y: 5.1, w: 9.4, h: 0.42, fontSize: 10, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 7 — RESPIRATORY EFFECTS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Respiratory System Effects", "RESPIRATORY PHYSIOLOGY");

  // Pranayama types row
  const pranayamas = [
    { name: "Nadi Shodhana", desc: "Alternate nostril breathing — equalizes tidal airflow, balances ANS" },
    { name: "Kapalabhati", desc: "Rapid forced exhalations — exercises diaphragm, expels CO₂" },
    { name: "Bhramari", desc: "Humming breath — stimulates vagus via vibration, ↑ NO production" },
    { name: "Ujjayi", desc: "'Victorious' breath — partial glottic closure, ↑ airway resistance → diaphragmatic training" },
  ];
  pranayamas.forEach((p, i) => {
    const xPos = 0.18 + i * 2.42;
    s.addShape(pres.ShapeType.rect, { x: xPos, y: 1.32, w: 2.3, h: 0.48, fill: { color: i % 2 === 0 ? C.softTeal : C.accent } });
    s.addText(p.name, { x: xPos, y: 1.32, w: 2.3, h: 0.48, fontSize: 11, bold: true, color: i % 2 === 0 ? C.white : C.dark, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: xPos, y: 1.80, w: 2.3, h: 1.1, fill: { color: "FFFFFF" }, line: { color: i % 2 === 0 ? C.softTeal : C.accent, width: 0.8 } });
    s.addText(p.desc, { x: xPos + 0.08, y: 1.80, w: 2.14, h: 1.1, fontSize: 11, color: C.bodyText, valign: "middle" });
  });

  // Measurable changes
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 3.0, w: 9.65, h: 0.38, fill: { color: C.midTeal } });
  s.addText("MEASURABLE PHYSIOLOGICAL CHANGES WITH TRAINING", {
    x: 0.18, y: 3.0, w: 9.65, h: 0.38, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0,
  });

  const changes = [
    ["↑ Vital Capacity (VC)", "Diaphragmatic strengthening improves maximum air volume"],
    ["↑ FEV₁ & PEFR", "Improved airway patency; benefit in asthma & COPD"],
    ["↓ Respiratory Rate", "Slower, deeper breaths (4-8 breaths/min vs 12-20 normal)"],
    ["↑ Tidal Volume", "Greater diaphragmatic excursion per breath"],
    ["↑ Breath-Hold Time", "Improved CO₂ tolerance & chemoreceptor adaptation"],
    ["↑ SaO₂ efficiency", "Better ventilation-perfusion matching at rest"],
  ];
  changes.forEach(([param, mech], i) => {
    const xPos = i < 3 ? 0.18 : 5.18;
    const yy = 3.42 + (i % 3) * 0.65;
    s.addShape(pres.ShapeType.rect, { x: xPos, y: yy, w: 2.0, h: 0.58, fill: { color: C.deepTeal } });
    s.addText(param, { x: xPos, y: yy, w: 2.0, h: 0.58, fontSize: 11.5, bold: true, color: C.accent, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: xPos + 2.0, y: yy, w: 2.78, h: 0.58, fill: { color: "F5FDFE" }, line: { color: C.accent, width: 0.5 } });
    s.addText(mech, { x: xPos + 2.08, y: yy, w: 2.6, h: 0.58, fontSize: 11, color: C.bodyText, valign: "middle", margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 8 — NEUROENDOCRINE EFFECTS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Neuroendocrine & Hormonal Effects", "NEUROENDOCRINE");

  // HPA axis section
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 1.32, w: 4.6, h: 0.42, fill: { color: "8E44AD" } });
  s.addText("HPA AXIS MODULATION", { x: 0.18, y: 1.32, w: 4.6, h: 0.42, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  const hpaItems = [
    "↓ Cortisol (salivary & plasma) — key stress hormone",
    "↓ ACTH & CRH output from hypothalamus",
    "↓ Inflammatory cytokines (IL-6, TNF-α, NF-κB)",
    "↑ DHEA-S (protective adrenal androgen)",
    "Normalization of HPA feedback in stress disorders",
  ];
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 1.74, w: 4.6, h: 3.0, fill: { color: "F9F0FF" }, line: { color: "8E44AD", width: 0.8 } });
  const hpaRows = hpaItems.map((t, i) => ({
    text: t,
    options: { bullet: { code: "25C6", color: "8E44AD" }, breakLine: i < hpaItems.length - 1, fontSize: 13.5, color: C.bodyText },
  }));
  s.addText(hpaRows, { x: 0.3, y: 1.85, w: 4.35, h: 2.8, valign: "top", paraSpaceBefore: 5 });

  // Neurotransmitters
  s.addShape(pres.ShapeType.rect, { x: 5.22, y: 1.32, w: 4.6, h: 0.42, fill: { color: "1A6B6B" } });
  s.addText("NEUROTRANSMITTER CHANGES", { x: 5.22, y: 1.32, w: 4.6, h: 0.42, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  const ntItems = [
    "↑ GABA (gamma-aminobutyric acid) — yoga > walking (Streeter 2010)",
    "↑ Serotonin — mood stabilization, ↓ depression",
    "↑ β-Endorphin & Enkephalins — pain modulation",
    "↑ Dopamine — reward, attention, motivation",
    "↑ Brain-derived neurotrophic factor (BDNF)",
    "↓ Glutamate — reduced excitotoxicity",
  ];
  s.addShape(pres.ShapeType.rect, { x: 5.22, y: 1.74, w: 4.6, h: 3.0, fill: { color: "E8F8F5" }, line: { color: "1A6B6B", width: 0.8 } });
  const ntRows = ntItems.map((t, i) => ({
    text: t,
    options: { bullet: { code: "25C6", color: "1A6B6B" }, breakLine: i < ntItems.length - 1, fontSize: 13, color: C.bodyText },
  }));
  s.addText(ntRows, { x: 5.34, y: 1.85, w: 4.35, h: 2.8, valign: "top", paraSpaceBefore: 4 });

  // Melatonin note
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 4.85, w: 9.65, h: 0.65, fill: { color: C.deepTeal } });
  s.addText([
    { text: "MELATONIN: ", options: { bold: true, color: C.gold } },
    { text: "Evening meditation raises melatonin via pineal gland activation — improves sleep onset & quality. Shown by Harinath et al. (2004) in Rajayoga practitioners.", options: { color: C.white } },
  ], { x: 0.3, y: 4.85, w: 9.3, h: 0.65, fontSize: 11.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 9 — BRAIN & CNS EFFECTS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Brain & Psychological Effects", "CNS PHYSIOLOGY");

  addTwoCol(
    s,
    "EEG / BRAIN WAVE CHANGES",
    [
      "↑ Alpha waves (8-13 Hz) — relaxed alertness, begin soon after practice starts",
      "↑ Theta waves (4-8 Hz) — deep meditative states, creativity",
      "↑ Gamma waves (>30 Hz) — long-term meditators; focused attention",
      "↓ Beta dominance (stress/anxiety state)",
      "Coherence between frontal & parietal lobes during meditation",
    ],
    "STRUCTURAL BRAIN CHANGES (Neuroplasticity)",
    [
      "↑ Cortical thickness — insula, prefrontal cortex (PFC), somatosensory cortex",
      "↑ Hippocampal grey matter volume — memory & emotional regulation",
      "↓ Amygdala volume & reactivity — reduced fear/stress responses",
      "↑ Default Mode Network (DMN) deactivation — reduced mind-wandering",
      "↑ Corpus callosum integrity — bilateral integration",
    ]
  );

  // Bottom note
  s.addShape(pres.ShapeType.rect, {
    x: 0.18, y: 5.1, w: 9.65, h: 0.42,
    fill: { color: C.deepTeal },
  });
  s.addText([
    { text: "SARA LAZAR (Harvard, 2005): ", options: { bold: true, color: C.gold } },
    { text: "Meditators showed significantly greater cortical thickness in areas associated with attention and interoception compared to non-meditators.", options: { color: C.offWhite } },
  ], { x: 0.28, y: 5.1, w: 9.4, h: 0.42, fontSize: 10.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 10 — MUSCULOSKELETAL & METABOLIC
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Musculoskeletal & Metabolic Effects", "MSK & METABOLISM");

  const data = [
    { cat: "Musculoskeletal", color: C.softTeal, items: [
      "↑ Flexibility & joint range of motion (ROM)",
      "↑ Muscle strength & endurance (especially core)",
      "↑ Proprioception & balance (cerebellum, vestibular)",
      "↓ Chronic low back pain, neck pain",
      "↑ Bone mineral density (weightbearing asanas)",
    ]},
    { cat: "Metabolism", color: "E67E22", items: [
      "↓ Fasting blood glucose & HbA1c (Type 2 DM benefit)",
      "↓ BMI & waist-hip ratio with regular practice",
      "↑ Insulin sensitivity",
      "↓ Triglycerides; favorable lipid profile",
      "↑ Basal metabolic rate (vigorous Vinyasa)",
    ]},
    { cat: "Immune System", color: "8E44AD", items: [
      "↑ NK cell activity & lymphocyte counts",
      "↓ Inflammatory markers (CRP, IL-6, TNF-α)",
      "↑ Secretory IgA (mucosal immunity)",
      "↑ Telomerase activity — may slow cellular aging",
      "Benefit in autoimmune conditions",
    ]},
  ];

  data.forEach((col, i) => {
    const xPos = 0.18 + i * 3.25;
    s.addShape(pres.ShapeType.rect, { x: xPos, y: 1.32, w: 3.1, h: 0.42, fill: { color: col.color } });
    s.addText(col.cat.toUpperCase(), { x: xPos, y: 1.32, w: 3.1, h: 0.42, fontSize: 11.5, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: xPos, y: 1.74, w: 3.1, h: 3.75, fill: { color: "FFFFFF" }, line: { color: col.color, width: 0.8 } });
    const rows = col.items.map((t, j) => ({
      text: t,
      options: { bullet: { code: "25B6", color: col.color }, breakLine: j < col.items.length - 1, fontSize: 12.5, color: C.bodyText },
    }));
    s.addText(rows, { x: xPos + 0.1, y: 1.84, w: 2.9, h: 3.55, valign: "top", paraSpaceBefore: 5 });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 11 — CLINICAL APPLICATIONS
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Clinical Applications & Evidence", "CLINICAL RELEVANCE");

  const conditions = [
    { cond: "Hypertension", evidence: "↓ SBP 5-17 mmHg; DBP 3-10 mmHg — JNC 8 lists lifestyle measures", color: C.softTeal },
    { cond: "Type 2 Diabetes", evidence: "↓ HbA1c, ↓ FBG, ↑ insulin sensitivity; ADA endorses yoga", color: "E67E22" },
    { cond: "Depression & Anxiety", evidence: "↑ GABA, serotonin; comparable to antidepressants in mild-moderate cases", color: "8E44AD" },
    { cond: "Asthma & COPD", evidence: "↑ FEV₁, ↑ VC, ↓ frequency of attacks with pranayama", color: "1A6B6B" },
    { cond: "Chronic Pain (LBP)", evidence: "↓ Pain scores; ↑ function — evidence level: Moderate-Strong RCTs", color: "D9534F" },
    { cond: "Insomnia", evidence: "↑ Melatonin, ↑ GABA; yoga nidra improves sleep architecture", color: C.midTeal },
    { cond: "PTSD / Stress", evidence: "↓ Cortisol, ↓ amygdala reactivity; Trauma-sensitive yoga (van der Kolk)", color: C.deepTeal },
    { cond: "CAD Rehabilitation", evidence: "Ornish Program: regression of atherosclerosis with yoga + diet", color: "C0392B" },
  ];

  conditions.forEach((item, i) => {
    const col = i % 2 === 0 ? 0.18 : 5.12;
    const row = Math.floor(i / 2);
    const yy = 1.32 + row * 1.02;
    s.addShape(pres.ShapeType.rect, { x: col, y: yy, w: 2.1, h: 0.88, fill: { color: item.color } });
    s.addText(item.cond, { x: col, y: yy, w: 2.1, h: 0.88, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x: col + 2.1, y: yy, w: 2.68, h: 0.88, fill: { color: "FAFAFA" }, line: { color: item.color, width: 0.6 } });
    s.addText(item.evidence, { x: col + 2.18, y: yy, w: 2.5, h: 0.88, fontSize: 11, color: C.bodyText, valign: "middle", margin: 0 });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 12 — RELAXATION RESPONSE
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("The Relaxation Response — Benson (1975)", "INTEGRATIVE MECHANISM");

  // Central concept
  s.addShape(pres.ShapeType.roundRect, {
    x: 2.8, y: 1.32, w: 4.4, h: 0.78,
    fill: { color: C.gold }, rectRadius: 0.1,
  });
  s.addText("RELAXATION RESPONSE", {
    x: 2.8, y: 1.32, w: 4.4, h: 0.78,
    fontSize: 16, bold: true, color: C.dark, align: "center", valign: "middle", margin: 0,
  });

  // Two columns: Trigger vs Response
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 2.2, w: 4.5, h: 0.4, fill: { color: C.midTeal } });
  s.addText("TRIGGERS / INDUCTION", { x: 0.18, y: 2.2, w: 4.5, h: 0.4, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
  addBullets(s, [
    "Sustained repetitive focus (mantra, breath, word)",
    "Passive attitude toward intrusive thoughts",
    "Quiet environment (not strictly required)",
    "Comfortable body position",
    "Consistent daily practice (≥20 min sessions)",
  ], { x: 0.28, y: 2.62, w: 4.3, h: 2.85, fontSize: 14 });

  s.addShape(pres.ShapeType.rect, { x: 5.32, y: 2.2, w: 4.5, h: 0.4, fill: { color: C.accent } });
  s.addText("PHYSIOLOGICAL RESPONSES", { x: 5.32, y: 2.2, w: 4.5, h: 0.4, fontSize: 12, bold: true, color: C.dark, align: "center", valign: "middle", margin: 0 });
  const respItems = [
    "↓ O₂ consumption & CO₂ production",
    "↓ Respiratory rate",
    "↓ Heart rate",
    "↓ Blood pressure",
    "Slow alpha-wave EEG predominance",
    "↓ Serum lactate (→ ↓ anxiety)",
    "↑ Skin resistance (↓ galvanic response)",
  ];
  const respRows = respItems.map((t, i) => ({
    text: t,
    options: { bullet: { code: "25B6", color: C.accent }, breakLine: i < respItems.length - 1, fontSize: 14, color: C.bodyText },
  }));
  s.addText(respRows, { x: 5.42, y: 2.62, w: 4.3, h: 2.85, valign: "top", paraSpaceBefore: 3 });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 13 — SUMMARY TABLE
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("Summary — Organ-System Effects at a Glance", "SUMMARY");

  const tableData = [
    ["SYSTEM", "KEY PHYSIOLOGICAL CHANGE", "CLINICAL RELEVANCE"],
    ["Autonomic NS", "↓ Sympathetic tone; ↑ Parasympathetic / vagal tone; ↑ HRV", "Stress reduction, cardiovascular protection"],
    ["Cardiovascular", "↓ HR, BP; ↑ HRV; favorable lipids", "Hypertension, CAD prevention"],
    ["Respiratory", "↑ VC, FEV₁, PEFR; ↓ RR; diaphragm strengthening", "Asthma, COPD, dyspnea"],
    ["Neuroendocrine", "↓ Cortisol; ↑ GABA, serotonin, β-endorphin, BDNF", "Anxiety, depression, pain"],
    ["Brain (CNS)", "↑ Alpha/theta EEG; ↑ grey matter; ↓ amygdala", "PTSD, stress, cognition"],
    ["Metabolic", "↓ FBG, HbA1c; ↑ insulin sensitivity; ↓ BMI", "Type 2 Diabetes, obesity"],
    ["Immune", "↓ CRP, IL-6; ↑ NK cells; ↑ IgA", "Inflammatory & autoimmune disease"],
    ["MSK", "↑ Flexibility, strength, proprioception; ↓ pain", "LBP, arthritis, rehabilitation"],
  ];

  const colWidths = [1.5, 4.5, 3.3];
  const rowH = 0.48;
  const xStart = 0.18;
  const yStart = 1.35;

  tableData.forEach((row, rIdx) => {
    const yPos = yStart + rIdx * rowH;
    row.forEach((cell, cIdx) => {
      const xPos = xStart + colWidths.slice(0, cIdx).reduce((a, b) => a + b, 0) + cIdx * 0.03;
      const isHeader = rIdx === 0;
      const bgColor = isHeader
        ? C.deepTeal
        : rIdx % 2 === 0 ? "EAF6F8" : "FFFFFF";
      s.addShape(pres.ShapeType.rect, {
        x: xPos, y: yPos, w: colWidths[cIdx], h: rowH,
        fill: { color: bgColor },
        line: { color: C.accent, width: 0.5 },
      });
      s.addText(cell, {
        x: xPos + 0.06, y: yPos, w: colWidths[cIdx] - 0.1, h: rowH,
        fontSize: isHeader ? 10.5 : 10,
        bold: isHeader,
        color: isHeader ? C.gold : C.bodyText,
        valign: "middle",
        margin: 0,
      });
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 14 — CONCLUSION
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.deepTeal } });
  // Decorative circles
  s.addShape(pres.ShapeType.ellipse, { x: -0.5, y: 3.5, w: 3.5, h: 3.5, fill: { color: C.midTeal }, line: { color: C.midTeal } });
  s.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -0.8, w: 3.2, h: 3.2, fill: { color: C.softTeal }, line: { color: C.softTeal } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.35, fill: { color: C.accent } });

  s.addText("CONCLUSION", {
    x: 0.5, y: 0.45, w: 9, h: 0.65,
    fontSize: 30, bold: true, color: C.gold, margin: 0, charSpacing: 3,
  });

  const points = [
    "Yoga and meditation are not merely cultural practices — they induce measurable, reproducible physiological changes across multiple organ systems.",
    "The core mechanism is modulation of the Autonomic Nervous System: shifting the sympathovagal balance toward parasympathetic dominance (Relaxation Response).",
    "Key downstream effects: ↓ Cortisol, ↑ GABA/Serotonin, ↓ HR & BP, ↑ HRV, ↑ grey matter, ↑ lung function.",
    "Evidence-based clinical applications include hypertension, Type 2 DM, anxiety, depression, COPD, chronic pain, and CAD rehabilitation.",
    "Regular practice induces neuroplasticity — structural brain changes visible on MRI — making these effects durable.",
    "As future physicians, integrating knowledge of yoga physiology equips us to recommend evidence-based mind-body medicine to our patients.",
  ];

  const rows = points.map((t, i) => ({
    text: `${i + 1}.  ${t}`,
    options: { breakLine: i < points.length - 1, fontSize: 14.5, color: i === 0 || i === 5 ? C.accent : C.offWhite, bold: i === 0 || i === 5 },
  }));
  s.addText(rows, { x: 0.5, y: 1.2, w: 9.0, h: 4.0, valign: "top", paraSpaceBefore: 7 });

  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.28, w: 10, h: 0.345, fill: { color: C.accent } });
  s.addText('"Yoga is the journey of the self, through the self, to the self."  — Bhagavad Gita', {
    x: 0.3, y: 5.28, w: 9.4, h: 0.345,
    fontSize: 10, italic: true, color: C.dark, align: "center", valign: "middle", margin: 0,
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 15 — REFERENCES
// ═══════════════════════════════════════════════════════════════════════════════
{
  const s = contentSlide("References", "REFERENCES");
  const refs = [
    "1. Benson H, Beary JF, Carol MP. The relaxation response. Psychiatry. 1974;37(1):37-46.",
    "2. Patanjali. Yoga Sutras (~400 CE). Classical Sanskrit text.",
    "3. Streeter CC et al. Effects of yoga versus walking on mood, anxiety, and brain GABA levels. J Altern Complement Med. 2010;16(11):1145-52.",
    "4. Cramer H et al. A systematic review and meta-analysis of yoga for hypertension. Am J Hypertens. 2014;27(9):1146-51.",
    "5. Lazar SW et al. Meditation experience is associated with increased cortical thickness. Neuroreport. 2005;16(17):1893-7.",
    "6. Harinath K et al. Effects of Hatha yoga and Omkar meditation on cardiorespiratory performance, psychologic profile, and melatonin secretion. J Altern Complement Med. 2004;10(2):261-8.",
    "7. Ross A, Thomas S. The health benefits of yoga and exercise: a review of comparison studies. J Altern Complement Med. 2010;16(1):3-12.",
    "8. Innes KE, Bourguignon C, Taylor AG. Risk indices associated with the insulin resistance syndrome, cardiovascular disease, and possible protection with yoga: A systematic review. J Am Board Fam Pract. 2005;18:491-519.",
    "9. Guyton & Hall Textbook of Medical Physiology, 14th Ed. — Autonomic Nervous System chapter.",
    "10. Harrison's Principles of Internal Medicine, 22nd Ed. (2025) — Complementary and Integrative Medicine.",
  ];
  const refRows = refs.map((t, i) => ({
    text: t,
    options: { breakLine: i < refs.length - 1, fontSize: 12, color: C.bodyText },
  }));
  s.addText(refRows, { x: 0.28, y: 1.38, w: 9.4, h: 4.1, valign: "top", paraSpaceBefore: 4 });
}

// ─── WRITE FILE ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/yoga-physiology-ppt/Physiology_of_Yoga_and_Meditation.pptx" })
  .then(() => console.log("SUCCESS: PPTX written"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/yoga-physiology-ppt && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/yoga-physiology-ppt/

Your presentation is ready! Download it here:

Physiology of Yoga and Meditation

Presentation · PPTX


What's inside — 15 slides

#SlideContent
1Title SlideDeep teal + gold design, institution/presenter fields
2Overview & ContentsNumbered 10-topic outline
3Definition & HistorySanskrit etymology, Patanjali's Ashtanga Yoga, WHO recognition
4Types of Yoga & MeditationSide-by-side tables: 6 yoga types + 6 meditation types
5ANS EffectsTwo-column: Sympathetic dampening vs Parasympathetic enhancement
6Cardiovascular EffectsAcute vs chronic effects; Cramer meta-analysis evidence box
7Respiratory Effects4 Pranayama types + 6 measurable spirometry parameters
8Neuroendocrine EffectsHPA axis (cortisol) + neurotransmitter changes (GABA, serotonin, BDNF) + melatonin
9Brain & CNS EffectsEEG wave changes + structural neuroplasticity (Lazar 2005)
10Musculoskeletal & MetabolicThree-column: MSK, Metabolism, Immune effects
11Clinical Applications8-condition grid with disease + evidence summary
12Relaxation ResponseBenson's model - triggers vs physiological responses
13Summary Table8-system organ chart: change + clinical relevance
14Conclusion6 key takeaways on dark background + Bhagavad Gita quote
15References10 citations including Harrison's, Guyton, key RCTs
Design: Deep teal / mint-accent / gold palette; dark title & conclusion slides, clean light content slides with colored section bars and card-style layouts. Ready for direct seminar use - just fill in your name and guide's name on slide 1.
This is a shared conversation. Sign in to Orris to start your own chat.