Major depressive disorder: * Introduction * Epidemiology * Clinical features * DSM criterion * Management (pharmacological and non pharmacological) * Prognosis Bipolar disorder: * Introduction * Epidemiology * Clinical features * DSM criterion * Management (pharmacological and non pharmacological) * Prognosis

Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Finding Sources
Reading File
Reading File

Major Depressive Disorder (MDD)


Introduction

Major Depressive Disorder (MDD) is a primary mood disorder characterized by one or more discrete episodes of significant depressive symptoms lasting at least 2 weeks, causing marked impairment in social, occupational, or other areas of functioning. It is distinguished from normal sadness by its persistence, severity, and the genuine sense of illness patients experience - many patients first present to primary care reporting feeling "sick" rather than depressed. MDD is a biologically heterogeneous condition involving dysregulation of monoamine neurotransmitters (serotonin, norepinephrine, dopamine), disrupted hypothalamic-pituitary-adrenal (HPA) axis function, and reduced neuroplasticity - particularly decreased BDNF and hippocampal atrophy. It belongs to the spectrum of depressive disorders and must be differentiated from bipolar disorder, persistent depressive disorder (dysthymia), and secondary mood disorders due to medical conditions or substances.

Epidemiology

  • Lifetime prevalence: ~13-15% in high-income countries; 11% average across 18 countries in WHO World Mental Health (WMH) surveys
  • 12-month prevalence: 5-6% globally
  • Sex: 2-3x more common in females than males; female predominance begins at puberty and persists through menopause
  • Age of onset: Mean onset is in the mid-20s; can occur at any age; childhood and adolescent onset tends to be most severe
  • Recurrence: Cumulative probability of recurrence is 20-60% within 2 years and 70% by 5 years after a first episode
  • Socioeconomic factors: More common in persons with low income, the unemployed, divorced, and widowed
  • Comorbidity: Highly comorbid with anxiety disorders, substance use disorders, and chronic medical illness; MDD is diagnosed in 10-15% of cancer patients
Source: Kaplan & Sadock's Comprehensive Textbook of Psychiatry

Clinical Features

The core features are dysphoria (persistent low mood) and/or anhedonia (inability to experience pleasure). Patients will often describe feeling genuinely ill and can distinguish it from normal sadness.

Mood and Affect

  • Persistent sadness, emptiness, tearfulness
  • Emotional blunting or numbness
  • Anxiety (co-occurring in the majority)
  • Irritability (more prominent in children and adolescents)

Cognitive Symptoms

  • Negative views of self, the world, and the future (Beck's cognitive triad)
  • Ruminations about loss, guilt, death, and worthlessness
  • Difficulty concentrating, slowed thinking, poverty of thought content
  • Hopelessness and helplessness
  • Suicidal ideation (passive or active), with or without a plan

Neurovegetative Symptoms (Table 7-1)

CommonOccasionally Present
Fatigue, low energyDecreased libido
Insomnia (especially early morning awakening)Psychomotor retardation or agitation
Poor appetite and weight lossConstipation
Inattention/concentration difficultyDiurnal variation (worse in the AM)
  • Atypical depression: Reversal of neurovegetative symptoms - hypersomnia, hyperphagia (overeating), leaden paralysis, rejection sensitivity
  • Melancholic depression: Severe anhedonia, early morning awakening, profound guilt, worse in the AM, often "endogenous" (no identifiable external trigger)
  • Psychotic depression: Mood-congruent delusions (guilt, worthlessness, poverty, somatic illness) or hallucinations; seen in ~10% of MDD

Somatic Symptoms

  • Multiple physical complaints (headaches, GI disturbances, pain)
  • In children especially: somatic complaints are common presenting features
Source: Kaplan and Sadock's Synopsis of Psychiatry; Kaplan & Sadock's Comprehensive Textbook of Psychiatry

DSM-5 Diagnostic Criteria

A. Five (or more) of the following symptoms present during the same 2-week period, representing a change from previous functioning; at least one symptom must be either (1) depressed mood or (2) loss of interest/pleasure:
  1. Depressed mood most of the day, nearly every day (can be irritable mood in children/adolescents)
  2. Markedly diminished interest or pleasure in all, or almost all, activities (anhedonia)
  3. Significant weight loss/gain (>5% body weight in a month) or decreased/increased appetite
  4. Insomnia or hypersomnia
  5. Psychomotor agitation or retardation (observable by others)
  6. Fatigue or loss of energy
  7. Feelings of worthlessness or excessive/inappropriate guilt
  8. Diminished ability to think, concentrate, or indecisiveness
  9. Recurrent thoughts of death, suicidal ideation, suicide attempt, or specific plan
B. Symptoms cause clinically significant distress or impairment in social, occupational, or other areas of functioning.
C. Episode is not attributable to physiological effects of a substance or another medical condition.
D. The episode is not better explained by a psychotic disorder (e.g., schizoaffective disorder, schizophrenia).
E. There has never been a manic or hypomanic episode (if so, consider bipolar disorder).

DSM-5 Specifiers

  • With anxious distress
  • With mixed features
  • With melancholic features
  • With atypical features
  • With mood-congruent or mood-incongruent psychotic features
  • With catatonia
  • With peripartum onset (onset within 4 weeks postpartum)
  • With seasonal pattern (Seasonal Affective Disorder / SAD)
  • Severity: Mild (minimal symptoms, functions normally despite distress) / Moderate (4+ symptoms, difficulty with functioning) / Severe (many symptoms, well beyond required for diagnosis, with loss of self-esteem, suicidal ideation)
Source: Kaplan and Sadock's Synopsis of Psychiatry - Table 7-2

Management

Pharmacological Treatment

1. First-line Antidepressants
ClassAgentsNotes
SSRIsFluoxetine, Sertraline, Escitalopram, Paroxetine, CitalopramFirst choice; well-tolerated; safest in overdose
SNRIsVenlafaxine, Duloxetine, DesvenlafaxineUseful if anxiety or pain comorbidity
NDRIsBupropionNo sexual side effects; avoid in seizure history
TCAsAmitriptyline, Imipramine, NortriptylineEffective but narrow therapeutic index; dangerous in overdose
MAOIsPhenelzine, TranylcypromineReserved for atypical/treatment-resistant; dietary tyramine restrictions
  • Antidepressants take 10-20 days for initial effect and 4-6 weeks for full therapeutic response (correlates with upregulation of BDNF and TrkB receptors in hippocampus)
  • Adequate trial = minimum 4-6 weeks at therapeutic dose
  • Continue treatment for at least 6-12 months after remission to prevent relapse
  • For recurrent MDD (3+ episodes): consider indefinite maintenance therapy
2. Augmentation Strategies (for partial response)
  • Adding lithium to antidepressant
  • Adding atypical antipsychotics (aripiprazole, quetiapine, olanzapine)
  • Adding thyroid hormone (T3)
  • Combining two antidepressants with different mechanisms
3. For Psychotic Depression
  • Antidepressant + antipsychotic combination, or ECT
4. Novel/Newer Agents
  • Esketamine (Spravato) intranasal - FDA approved for treatment-resistant MDD
  • AXS-05 (dextromethorphan-bupropion) - approved for MDD

Non-Pharmacological Treatment

1. Psychotherapy
  • Cognitive Behavioral Therapy (CBT): Most evidence-based; addresses negative cognitive distortions; comparable to antidepressants for mild-moderate MDD; combination with medication superior for severe MDD (TADS study)
  • Interpersonal Therapy (IPT): Focuses on grief, role disputes, role transitions, and interpersonal deficits
  • Behavioral Activation Therapy
  • Psychodynamic Psychotherapy
2. Somatic Therapies
  • Electroconvulsive Therapy (ECT): Most effective treatment for severe, treatment-resistant, or psychotic depression; also used in pregnancy; 70-90% response rate
  • Transcranial Magnetic Stimulation (TMS): For treatment-resistant MDD; non-invasive; FDA approved
  • Light therapy: Especially effective for seasonal pattern MDD (SAD); 10,000 lux for 30 min/morning
3. Lifestyle Interventions
  • Aerobic exercise (30+ min, 3-5x/week) - proven antidepressant effect
  • Sleep hygiene
  • Omega-3 fatty acid supplementation (adjunctive benefit; supported by epidemiological data on fish consumption)
  • Psychoeducation for patient and family
Treatment Algorithm for Children/Adolescents (per AACAP guidelines):
  • Mild: Psychoeducation and supportive interventions
  • Moderate: CBT or IPT alone (especially if continued for 6+ months)
  • Moderate-severe / psychosis / active suicidality: Combined pharmacotherapy (fluoxetine) + CBT; this combination was superior to either alone in the TADS study
Source: Kaplan and Sadock's Synopsis of Psychiatry

Prognosis

  • Recovery from first episode: ~90% of youth recover from a first moderate-to-severe episode within 1-2 years
  • Recurrence rate: 20-60% within 2 years; 70% by 5 years; after a third episode, the risk of recurrence approaches 90%
  • Chronicity risk: ~15% of patients develop chronic depression (lasting >2 years)
  • Untreated episode duration: Mean 8-12 months in children; adults can have prolonged untreated episodes
  • Conversion to bipolar disorder: 20-40% of depressed youth eventually develop bipolar disorder; risk is higher with psychotic features, psychomotor retardation, and bipolar family history
  • Mortality: Suicide accounts for ~12% of adolescent mortalities in those with depressive disorders; 15% of patients with severe, chronic MDD die by suicide
  • Poor prognostic factors: Early age of onset, multiple prior episodes, comorbid psychiatric or medical illness, psychotic features, poor social support, ongoing stressors
  • Good prognostic factors: Prompt treatment, strong social support, absence of comorbidity, acute onset
Source: Kaplan and Sadock's Synopsis of Psychiatry


Bipolar Disorder (BD)


Introduction

Bipolar disorder is a chronic, episodic mood disorder characterized by the occurrence of manic, hypomanic, and/or depressive episodes. It represents one of the most disabling psychiatric conditions worldwide. The disorder is biologically driven, highly heritable, and affects nearly all areas of functioning. It is classified into several subtypes:
  • Bipolar I Disorder (BP-I): At least one manic episode (with or without depressive episodes); most severe subtype
  • Bipolar II Disorder (BP-II): At least one hypomanic episode and at least one major depressive episode; no full manic episodes
  • Cyclothymic Disorder: Chronic fluctuating mood with hypomanic and depressive periods not meeting full criteria
  • Bipolar Spectrum Disorder: Broader category including subthreshold presentations
The pathophysiology involves immune dysregulation (elevated inflammatory markers - TNF, IL-6, CRP), mitochondrial dysfunction, oxidative stress, disrupted circadian rhythms, and dopaminergic/glutamatergic dysregulation. The "kindling model" (neuroprogressive model) holds that each recurrence increases neurobiological damage and risk of further episodes.

Epidemiology

  • Bipolar I lifetime prevalence: ~1% worldwide (0.3-1.2%); NESARC study: 3.3% (including spectrum)
  • Bipolar II lifetime prevalence: ~0.5-1.1%; 12-month prevalence: 0.8%
  • Bipolar spectrum prevalence: 2.4% (cross-national WMH surveys)
  • Annual incidence: Generally less than 1%; varies 0.3-1.2% by country
  • Sex: Equal prevalence in men and women for Bipolar I. However:
    • Manic episodes more common in men
    • Depressive episodes more common in women
    • Mixed episodes and rapid cycling more common in women
  • Age of onset: Earlier than MDD; ranges from age 5-6 years to 50+ years; mean age ~30 years
    • Adolescent prevalence ~2% at age 13-14, doubling by age 18
  • Socioeconomic factors: Higher rates in divorced and single persons; higher incidence in upper socioeconomic groups; more common in non-college graduates (reflecting early onset impact on education)
  • Genetics: Heritability 70-80%; first-degree relatives have ~10-fold increased risk; MZ twin concordance 65-100%; DZ twin concordance 10-30%
Source: Kaplan and Sadock's Synopsis of Psychiatry; Kaplan & Sadock's Comprehensive Textbook of Psychiatry

Clinical Features

Manic Episode Features

  • Elevated, expansive, or irritable mood (most cardinal feature)
  • Inflated self-esteem or grandiosity (can reach delusional proportions)
  • Decreased need for sleep (feels rested after 3 hours; distinct from insomnia in depression)
  • More talkative or pressured speech
  • Flight of ideas or subjective experience of racing thoughts
  • Distractibility
  • Increased goal-directed activity (work, social, sexual) or psychomotor agitation
  • Impulsive, reckless behavior with high potential for harm: spending sprees, sexual indiscretions, unwise business investments, substance use
  • Psychotic features in severe mania: mood-congruent grandiose or persecutory delusions; hallucinations
Manic episode duration: At least 1 week (or any duration if hospitalization required)

Hypomanic Episode

  • Same symptom profile as mania but less severe, shorter (at least 4 days), does not cause marked impairment, no psychosis, no hospitalization required
  • Must be a clear change from baseline, observable by others

Depressive Episode in Bipolar Disorder

  • Clinically similar to unipolar MDD but:
    • More likely to include hypersomnia, hyperphagia, psychomotor retardation
    • More likely to have psychotic features
    • Higher risk of mixed features (depressive episodes with manic symptoms)
    • Misdiagnosis as unipolar MDD is common (delays correct diagnosis by average 7-10 years)

Mixed Features / Dysphoric Mania

  • Simultaneous manic and depressive symptoms
  • More common in women; associated with greater suicide risk
  • Responds less well to lithium; better response to valproate or atypical antipsychotics

Rapid Cycling Specifier

  • Four or more mood episodes per year
  • More common in women, in bipolar II, and with hypothyroidism
  • Associated with poorer prognosis and reduced lithium response

DSM-5 Diagnostic Criteria

Manic Episode (Required for Bipolar I)

A. A distinct period of abnormally and persistently elevated, expansive, or irritable mood and abnormally and persistently increased goal-directed activity or energy, lasting at least 1 week and present most of the day, nearly every day (or any duration if hospitalization required).
B. During the period of mood disturbance, three (or more) of the following (four if mood is only irritable):
  1. Inflated self-esteem or grandiosity
  2. Decreased need for sleep
  3. More talkative than usual / pressured speech
  4. Flight of ideas or racing thoughts
  5. Distractibility
  6. Increased goal-directed activity (social, work, sexual) or psychomotor agitation
  7. Excessive involvement in risky activities
C. Severe enough to cause marked impairment or requires hospitalization or has psychotic features.
D. Not attributable to substances or another medical condition.

Hypomanic Episode (Required for Bipolar II)

  • Same symptoms as above but lasting at least 4 consecutive days
  • Does not cause marked impairment, no hospitalization, no psychosis

Bipolar I Disorder

  • Criteria met for at least one manic episode (may or may not have depressive or hypomanic episodes)

Bipolar II Disorder

  • Criteria for at least one hypomanic episode AND at least one major depressive episode
  • No manic episodes ever

Cyclothymic Disorder

  • For at least 2 years (1 year in children): numerous periods of hypomanic and depressive symptoms not meeting full criteria
  • Symptoms present more than half the time; never more than 2 months symptom-free

DSM-5 Specifiers for Bipolar Disorders

  • With anxious distress
  • With mixed features
  • With rapid cycling
  • With melancholic features
  • With atypical features
  • With mood-congruent or mood-incongruent psychotic features
  • With catatonia
  • With peripartum onset
  • With seasonal pattern

Management

Pharmacological Treatment

1. Mood Stabilizers (Backbone of Treatment)
DrugKey UsesNotes
LithiumAcute mania, maintenance, bipolar depression, suicide preventionGold standard; narrow therapeutic index (0.6-1.2 mEq/L); monitor renal/thyroid; superior for classic euphoric mania
Valproate (Divalproex)Acute mania (especially mixed/rapid cycling), maintenanceFaster onset than lithium; better for dysphoric mania; teratogenic (neural tube defects)
CarbamazepineAcute mania, prophylaxis (especially dysphoric mania, rapid cycling)Autoinduction; blood dyscrasias risk (aplastic anemia 1:125,000); drug interactions; useful when lithium fails
LamotrigineBipolar depression prevention, maintenance (BP-II especially)Slow titration required to avoid Stevens-Johnson syndrome; less effective for acute mania
2. Atypical Antipsychotics (FDA-Approved for Bipolar)
  • Olanzapine, Quetiapine, Risperidone, Aripiprazole, Ziprasidone, Asenapine, Cariprazine, Lurasidone
  • Quetiapine: FDA approved for both acute bipolar depression and maintenance
  • Lurasidone: FDA approved for bipolar depression
  • All effective for acute mania; many useful in maintenance phase
3. Acute Mania Treatment
  • Lithium or valproate monotherapy (first-line)
  • Atypical antipsychotic monotherapy
  • Lithium/valproate + atypical antipsychotic (combination for severe/refractory mania)
  • Benzodiazepines (short-term for sedation, agitation)
  • Antidepressants should be avoided in acute mania (risk of switching or cycle acceleration)
4. Bipolar Depression Treatment
  • Quetiapine or lurasidone (monotherapy, FDA approved)
  • Lithium + antidepressant
  • Lamotrigine
  • OFC (Olanzapine-fluoxetine combination - Symbyax)
  • Avoid antidepressant monotherapy without mood stabilizer (risk of triggering mania)
5. Maintenance / Prophylaxis
  • Lithium (gold standard for prevention of both poles; also anti-suicidal effect)
  • Valproate
  • Lamotrigine (especially for depressive recurrences in BP-II)
  • Atypical antipsychotics (aripiprazole, quetiapine, olanzapine)
6. Special Considerations
  • Rapid cycling: Valproate preferred over lithium; check for hypothyroidism
  • Mixed features: Valproate or atypical antipsychotics preferred; lithium less effective
  • Pregnancy: Avoid valproate (teratogenic); lithium (cardiac defects but risk-benefit analysis); lamotrigine preferred if needed
  • Adjunctive NAC (N-acetylcysteine): Emerging evidence for all phases of bipolar; showed ~8 point reduction on MADRS for depression; NAC + aspirin may show better response rates

Non-Pharmacological Treatment

1. Psychotherapy (adjunctive to medications - not used alone)
  • Psychoeducation: Most important; helps patients recognize early warning signs, promotes medication adherence, reduces relapse rates
  • CBT for Bipolar: Addresses cognitive distortions, sleep disruption, and relapse prevention
  • Interpersonal and Social Rhythm Therapy (IPSRT): Focuses on stabilizing daily routines and sleep-wake cycles (disrupted circadian rhythms are central to bipolar pathophysiology)
  • Family-Focused Therapy (FFT): Reduces expressed emotion, improves communication; particularly beneficial in adolescents
  • Dialectical Behavior Therapy (DBT): Useful for emotional dysregulation, comorbid borderline traits
2. Electroconvulsive Therapy (ECT)
  • Highly effective for severe manic episodes not responding to medications
  • Effective for bipolar depression
  • Particularly useful in pregnancy
3. Lifestyle and Environmental Interventions
  • Sleep regulation: Disrupted sleep can trigger episodes; maintaining regular sleep-wake schedule is critical
  • Avoidance of substances: Alcohol and stimulants are major triggers
  • Stress reduction and routine maintenance
  • Psychoeducation regarding early warning signs
  • Aerobic exercise as adjunct for mood stabilization
4. Hospitalization
  • Required for acute mania with psychosis, agitation, danger to self or others
  • Involuntary commitment may be necessary for severe mania

Prognosis

  • Episode recurrence: Highly recurrent; longitudinal studies show patients spend ~60% of the time symptomatic (threshold or subthreshold)
  • Episode duration: Median manic episode duration 3-6 months in adults; mixed/rapid cycling episodes last ~1 year
  • Recovery: At least 80% of children and adolescents with BD achieve a period of recovery (8+ weeks with minimal symptoms)
  • Recurrence after recovery: 27-70% recurrence at 2-4 year follow-up
  • Kindling/neuroprogression: Each recurrence increases risk of subsequent episodes with greater severity, poorer remission, and greater cognitive dysfunction
  • Suicide risk: Approximately 15-20x higher than general population; highest during mixed episodes and depressive phases; lithium maintenance reduces suicide risk
  • Functional outcome: Even between episodes, significant impairment in cognitive, occupational, and social functioning is common
  • Bipolar II course: Stable diagnosis (patients rarely "upgrade" to Bipolar I); depressive episodes predominate; also carries significant morbidity
Poor prognostic factors:
  • Rapid cycling, mixed features
  • Early onset, psychotic features
  • Medication non-adherence
  • Comorbid substance abuse, anxiety disorders, ADHD
  • Low socioeconomic status, lack of social support
  • Antidepressant exposure without mood stabilizer
Favorable prognostic factors:
  • Later age of onset, euphoric (not mixed) mania
  • Lithium treatment, intact family/social support
  • Good medication adherence
  • Involvement in psychotherapy
Source: Kaplan and Sadock's Synopsis of Psychiatry; Kaplan & Sadock's Comprehensive Textbook of Psychiatry

Key Distinction: MDD and Bipolar Disorder share depressive episodes that are clinically indistinguishable at presentation. Distinguishing features pointing toward Bipolar Disorder include: personal or family history of mania/hypomania, early age of onset, multiple brief depressive episodes, psychomotor retardation, hypersomnia/hyperphagia, psychotic features in depression, and poor or paradoxical response to antidepressants (mood switching or increased cycling). This distinction is clinically critical as antidepressant monotherapy can destabilize bipolar disorder.

Cut short the contents and make a ppt for presentation

Reading File
Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/mood-disorders-ppt && ls /tmp/workspace/

Writing File

~/mood-disorders-ppt/build_ppt.py

from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.util import Inches, Pt
from io import BytesIO

prs = Presentation()
prs.slide_width = Inches(13.333)
prs.slide_height = Inches(7.5)

# ── Color Palette ────────────────────────────────────────────────
MDD_DARK   = RGBColor(0x1A, 0x3A, 0x5C)   # deep navy  (MDD header)
MDD_MED    = RGBColor(0x26, 0x6B, 0xA1)   # medium blue
MDD_LIGHT  = RGBColor(0xD6, 0xE8, 0xF7)   # pale blue  (MDD accent)
BD_DARK    = RGBColor(0x4A, 0x1A, 0x6B)   # deep purple (BD header)
BD_MED     = RGBColor(0x7B, 0x3F, 0xBF)   # medium purple
BD_LIGHT   = RGBColor(0xE8, 0xD6, 0xF7)   # pale purple (BD accent)
WHITE      = RGBColor(0xFF, 0xFF, 0xFF)
DARK_TEXT  = RGBColor(0x1E, 0x1E, 0x2E)
GRAY_BG    = RGBColor(0xF4, 0xF6, 0xF9)
ACCENT_RED = RGBColor(0xC0, 0x39, 0x2B)
GOLD       = RGBColor(0xE6, 0xAC, 0x00)

blank = prs.slide_layouts[6]

# ────────────────────────────────────────────────────────────────
# HELPERS
# ────────────────────────────────────────────────────────────────
def bg(slide, color):
    """Solid background rectangle covering the whole slide."""
    shape = slide.shapes.add_shape(1, 0, 0,
        prs.slide_width, prs.slide_height)
    shape.fill.solid()
    shape.fill.fore_color.rgb = color
    shape.line.fill.background()

def rect(slide, x, y, w, h, fill, line_color=None, line_w=None):
    shape = slide.shapes.add_shape(1,
        Inches(x), Inches(y), Inches(w), Inches(h))
    shape.fill.solid()
    shape.fill.fore_color.rgb = fill
    if line_color:
        shape.line.color.rgb = line_color
        shape.line.width = Pt(line_w or 1)
    else:
        shape.line.fill.background()
    return shape

def textbox(slide, x, y, w, h, text, size, bold=False, color=DARK_TEXT,
            align=PP_ALIGN.LEFT, wrap=True, italic=False, font="Calibri"):
    tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf = tb.text_frame
    tf.word_wrap = wrap
    tf.margin_left = 0; tf.margin_right = 0
    tf.margin_top = Pt(2); tf.margin_bottom = 0
    p = tf.paragraphs[0]
    p.alignment = align
    run = p.add_run()
    run.text = text
    run.font.name = font
    run.font.size = Pt(size)
    run.font.bold = bold
    run.font.italic = italic
    run.font.color.rgb = color
    return tf

def add_bullets(slide, x, y, w, h, items, size=13, color=DARK_TEXT,
                bold_first=False, indent=False, font="Calibri", line_space=None):
    """Add a text box with bullet items (using dash prefix)."""
    tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf = tb.text_frame
    tf.word_wrap = True
    tf.margin_left = Inches(0.05)
    tf.margin_right = 0
    tf.margin_top = Pt(2)
    tf.margin_bottom = 0
    first = True
    for item in items:
        if first:
            p = tf.paragraphs[0]
            first = False
        else:
            p = tf.add_paragraph()
        if line_space:
            from pptx.oxml.ns import qn
            from lxml import etree
            pPr = p._p.get_or_add_pPr()
            lnSpc = etree.SubElement(pPr, qn('a:lnSpc'))
            spcPct = etree.SubElement(lnSpc, qn('a:spcPct'))
            spcPct.set('val', str(int(line_space * 1000)))
        r = p.add_run()
        prefix = "    " if indent else ""
        r.text = prefix + ("• " if not indent else "  - ") + item
        r.font.name = font
        r.font.size = Pt(size)
        r.font.bold = bold_first and (item == items[0])
        r.font.color.rgb = color
    return tf

def section_header(slide, title, subtitle, dark, med, light):
    """Full-width colored header bar with section title."""
    bg(slide, GRAY_BG)
    # big color bar left
    rect(slide, 0, 0, 4.8, 7.5, dark)
    # right panel light
    rect(slide, 4.8, 0, 8.533, 7.5, GRAY_BG)
    # accent stripe
    rect(slide, 4.78, 0, 0.05, 7.5, med)
    # title on left
    textbox(slide, 0.4, 2.5, 4.0, 2.5, title, 40, bold=True,
            color=WHITE, align=PP_ALIGN.LEFT, font="Calibri")
    textbox(slide, 0.4, 4.8, 4.0, 0.8, subtitle, 16,
            color=light, align=PP_ALIGN.LEFT, font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 1 – COVER
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, DARK_TEXT)
# left panel MDD blue
rect(slide, 0, 0, 6.667, 7.5, MDD_DARK)
# right panel BD purple
rect(slide, 6.667, 0, 6.666, 7.5, BD_DARK)
# center divider accent
rect(slide, 6.5, 1.0, 0.15, 5.5, GOLD)
# Title
textbox(slide, 0.5, 1.5, 6.0, 1.5, "MOOD DISORDERS", 44, bold=True,
        color=WHITE, align=PP_ALIGN.LEFT, font="Calibri")
textbox(slide, 0.5, 3.2, 5.8, 1.2,
        "Major Depressive Disorder", 24, color=MDD_LIGHT, font="Calibri")
textbox(slide, 0.5, 4.0, 5.8, 1.2,
        "Bipolar Disorder", 24, color=BD_LIGHT, font="Calibri")
textbox(slide, 7.0, 1.5, 5.8, 1.0,
        "A Comparative Overview", 20, italic=True, color=WHITE, font="Calibri")
textbox(slide, 7.0, 5.8, 5.8, 0.7,
        "Psychiatry — Clinical Presentation", 14,
        color=RGBColor(0xAA, 0xAA, 0xCC), font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 2 – MDD Section Header
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
section_header(slide, "Major\nDepressive\nDisorder", "DSM-5 | Epidemiology | Management | Prognosis",
               MDD_DARK, MDD_MED, MDD_LIGHT)
textbox(slide, 5.1, 2.8, 7.5, 0.8,
        "Part 1 of 2", 18, italic=True, color=MDD_MED, font="Calibri")
textbox(slide, 5.1, 3.6, 7.5, 2.5,
        "A primary mood disorder defined by persistent\ndepressive episodes causing significant impairment\nin daily functioning.", 15,
        color=DARK_TEXT, font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 3 – MDD Introduction & Epidemiology
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, MDD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, MDD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "MDD — Introduction & Epidemiology",
        22, bold=True, color=WHITE, font="Calibri")

# LEFT column – Intro
rect(slide, 0.3, 0.95, 6.1, 6.3, WHITE)
textbox(slide, 0.5, 1.0, 5.8, 0.5, "Introduction", 16, bold=True, color=MDD_DARK, font="Calibri")
intro_pts = [
    "Primary mood disorder with ≥1 major depressive episode",
    "Episodes last ≥ 2 weeks with significant functional impairment",
    "Involves monoamine dysregulation (5-HT, NE, DA)",
    "HPA axis dysfunction & reduced BDNF/hippocampal atrophy",
    "Distinct from normal sadness — patients feel genuinely ill",
    "Must rule out bipolar disorder, dysthymia, medical causes",
]
add_bullets(slide, 0.5, 1.55, 5.7, 5.5, intro_pts, size=12.5, color=DARK_TEXT)

# RIGHT column – Epidemiology
rect(slide, 6.8, 0.95, 6.2, 6.3, WHITE)
textbox(slide, 7.0, 1.0, 5.8, 0.5, "Epidemiology", 16, bold=True, color=MDD_DARK, font="Calibri")
epi_pts = [
    "Lifetime prevalence: ~13–15% (high-income countries)",
    "12-month prevalence: ~5–6% globally",
    "2–3× more common in females (onset at puberty)",
    "Mean age of onset: mid-20s; can occur at any age",
    "More common in divorced, widowed, unemployed",
    "Highly comorbid with anxiety & substance use disorders",
    "MDD found in 10–15% of cancer patients",
    "Recurrence: 20–60% within 2 yrs; 70% by 5 yrs",
]
add_bullets(slide, 7.0, 1.55, 5.8, 5.5, epi_pts, size=12.5, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 4 – MDD Clinical Features
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, MDD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, MDD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "MDD — Clinical Features",
        22, bold=True, color=WHITE, font="Calibri")

# 3 columns
cols = [
    ("Mood & Affect", [
        "Persistent sadness / emptiness",
        "Dysphoria or anhedonia (core features)",
        "Emotional blunting / numbness",
        "Anxiety (majority of patients)",
        "Irritability (esp. in children)",
        "Hopelessness & helplessness",
    ], 0.3),
    ("Cognitive Symptoms", [
        "Negative views of self, world, future",
        "Ruminations on guilt, death, loss",
        "Difficulty concentrating",
        "Slowed thinking / poverty of thought",
        "Suicidal ideation (passive or active)",
        "Delusions (psychotic depression ~10%)",
    ], 4.6),
    ("Neurovegetative Sx", [
        "Insomnia / early morning awakening",
        "Fatigue and low energy",
        "Poor appetite → weight loss",
        "Psychomotor retardation or agitation",
        "Decreased libido",
        "Diurnal variation (worse in AM)",
    ], 8.9),
]
for title, pts, x in cols:
    rect(slide, x, 0.9, 3.9, 6.3, WHITE)
    textbox(slide, x+0.15, 0.95, 3.7, 0.5, title, 14, bold=True, color=MDD_DARK, font="Calibri")
    add_bullets(slide, x+0.15, 1.5, 3.6, 5.6, pts, size=12, color=DARK_TEXT)

# bottom note
rect(slide, 0.3, 7.1, 12.7, 0.3, MDD_LIGHT)
textbox(slide, 0.5, 7.1, 12.3, 0.3,
        "Atypical: hypersomnia, hyperphagia, leaden paralysis  |  Melancholic: severe anhedonia, early AM awakening, worse in AM  |  Psychotic: mood-congruent delusions/hallucinations",
        9.5, color=MDD_DARK, font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 5 – MDD DSM-5 Criteria
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, MDD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, MDD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "MDD — DSM-5 Diagnostic Criteria",
        22, bold=True, color=WHITE, font="Calibri")

rect(slide, 0.3, 0.85, 8.0, 6.4, WHITE)
textbox(slide, 0.5, 0.9, 7.6, 0.45,
        "Criterion A  — ≥5 symptoms in same 2-week period; must include (1) or (2):",
        13, bold=True, color=MDD_DARK, font="Calibri")
criteria = [
    "(1) Depressed mood most of the day, nearly every day",
    "(2) Markedly diminished interest/pleasure (anhedonia)",
    "(3) Significant weight loss/gain (>5%/month) or appetite change",
    "(4) Insomnia or hypersomnia",
    "(5) Psychomotor agitation or retardation (observable)",
    "(6) Fatigue or loss of energy",
    "(7) Feelings of worthlessness or excessive guilt",
    "(8) Diminished concentration or indecisiveness",
    "(9) Recurrent thoughts of death / suicidal ideation",
]
add_bullets(slide, 0.5, 1.4, 7.6, 5.2, criteria, size=12.5, color=DARK_TEXT)

# Right panel – B/C/D/E + Specifiers
rect(slide, 8.7, 0.85, 4.3, 3.0, WHITE)
textbox(slide, 8.85, 0.9, 4.1, 0.45, "Further Criteria", 13, bold=True, color=MDD_DARK, font="Calibri")
others = [
    "B: Significant distress or impairment",
    "C: Not due to substance or medical condition",
    "D: Not better explained by psychosis",
    "E: No prior manic/hypomanic episode",
]
add_bullets(slide, 8.85, 1.4, 4.1, 2.3, others, size=12, color=DARK_TEXT)

rect(slide, 8.7, 4.0, 4.3, 3.25, WHITE)
textbox(slide, 8.85, 4.05, 4.1, 0.45, "Key Specifiers", 13, bold=True, color=MDD_DARK, font="Calibri")
specs = [
    "With anxious distress",
    "With melancholic features",
    "With atypical features",
    "With psychotic features",
    "With peripartum onset",
    "With seasonal pattern (SAD)",
    "Severity: Mild / Moderate / Severe",
]
add_bullets(slide, 8.85, 4.55, 4.1, 2.6, specs, size=11.5, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 6 – MDD Management
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, MDD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, MDD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "MDD — Management",
        22, bold=True, color=WHITE, font="Calibri")

# Pharmacological
rect(slide, 0.3, 0.85, 6.5, 6.4, WHITE)
textbox(slide, 0.5, 0.9, 6.1, 0.45, "Pharmacological", 15, bold=True, color=MDD_DARK, font="Calibri")
pharma = [
    "SSRIs — 1st line: Fluoxetine, Sertraline, Escitalopram",
    "SNRIs — Venlafaxine, Duloxetine (pain/anxiety comorbidity)",
    "NDRIs — Bupropion (no sexual SE; avoid in seizures)",
    "TCAs — Amitriptyline (effective; dangerous in OD)",
    "MAOIs — Reserved for atypical/treatment-resistant MDD",
    "Onset: 10–20 days; full response: 4–6 weeks",
    "Continue 6–12 months after remission",
    "3+ episodes → consider indefinite maintenance",
    "Augmentation: Lithium / atypical antipsychotic / T3",
    "Psychotic MDD: Antidepressant + antipsychotic or ECT",
    "Novel: Esketamine (intranasal) for treatment-resistant MDD",
]
add_bullets(slide, 0.5, 1.4, 6.1, 5.7, pharma, size=12, color=DARK_TEXT)

# Non-Pharmacological
rect(slide, 7.1, 0.85, 5.9, 6.4, WHITE)
textbox(slide, 7.3, 0.9, 5.5, 0.45, "Non-Pharmacological", 15, bold=True, color=MDD_DARK, font="Calibri")
non_pharma = [
    "CBT — Most evidence-based psychotherapy",
    "IPT — Targets grief, role disputes, interpersonal issues",
    "ECT — Severe / psychotic / treatment-resistant MDD",
    "TMS — FDA-approved for treatment-resistant MDD",
    "Light therapy — 10,000 lux daily for SAD",
    "Exercise — 30+ min aerobic, 3–5×/week",
    "Psychoeducation for patient and family",
    "Sleep hygiene",
    "Omega-3 fatty acids (adjunctive benefit)",
    "Paeds guideline (AACAP): Mild → psychoeducation;",
    "  Moderate → CBT/IPT alone; Severe → Fluoxetine + CBT",
]
add_bullets(slide, 7.3, 1.4, 5.5, 5.7, non_pharma, size=12, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 7 – MDD Prognosis
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, MDD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, MDD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "MDD — Prognosis",
        22, bold=True, color=WHITE, font="Calibri")

rect(slide, 0.3, 0.85, 5.8, 6.35, WHITE)
textbox(slide, 0.5, 0.9, 5.5, 0.45, "Course & Outcomes", 15, bold=True, color=MDD_DARK, font="Calibri")
prognosis = [
    "~90% recover from 1st episode within 1–2 years",
    "Mean untreated episode: 8–12 months",
    "Recurrence: 20–60% in 2 yrs; 70% by 5 yrs",
    "After 3rd episode: recurrence risk approaches 90%",
    "~15% develop chronic depression (>2 years)",
    "Suicide: ~15% with severe, chronic MDD",
    "Adolescent suicide: MDD accounts for ~12% of deaths",
    "20–40% of depressed youth → bipolar disorder",
]
add_bullets(slide, 0.5, 1.4, 5.5, 5.6, prognosis, size=12.5, color=DARK_TEXT)

rect(slide, 6.5, 0.85, 3.1, 6.35, WHITE)
textbox(slide, 6.65, 0.9, 2.9, 0.45, "Poor Prognosis", 14, bold=True, color=ACCENT_RED, font="Calibri")
poor = [
    "Early age of onset",
    "Multiple prior episodes",
    "Psychotic features",
    "Comorbid illness",
    "Poor social support",
    "Ongoing stressors",
    "Non-adherence",
]
add_bullets(slide, 6.65, 1.4, 2.9, 5.5, poor, size=12.5, color=DARK_TEXT)

rect(slide, 9.9, 0.85, 3.1, 6.35, WHITE)
textbox(slide, 10.05, 0.9, 2.9, 0.45, "Good Prognosis", 14, bold=True, color=RGBColor(0x1A, 0x7A, 0x3C), font="Calibri")
good = [
    "Prompt treatment",
    "Strong social support",
    "Acute onset",
    "No comorbidity",
    "Good medication response",
    "Absence of psychosis",
    "Family support",
]
add_bullets(slide, 10.05, 1.4, 2.9, 5.5, good, size=12.5, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 8 – BD Section Header
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
section_header(slide, "Bipolar\nDisorder", "DSM-5 | Epidemiology | Management | Prognosis",
               BD_DARK, BD_MED, BD_LIGHT)
textbox(slide, 5.1, 2.8, 7.5, 0.8,
        "Part 2 of 2", 18, italic=True, color=BD_MED, font="Calibri")
textbox(slide, 5.1, 3.6, 7.5, 2.5,
        "A chronic, episodic mood disorder defined by\nmanic, hypomanic, and/or depressive episodes\nwith profound impact on functioning.", 15,
        color=DARK_TEXT, font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 9 – BD Introduction & Epidemiology
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, BD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, BD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "Bipolar Disorder — Introduction & Epidemiology",
        22, bold=True, color=WHITE, font="Calibri")

rect(slide, 0.3, 0.85, 6.1, 6.35, WHITE)
textbox(slide, 0.5, 0.9, 5.8, 0.45, "Introduction & Subtypes", 15, bold=True, color=BD_DARK, font="Calibri")
intro = [
    "Bipolar I (BP-I): ≥1 manic episode (most severe)",
    "Bipolar II (BP-II): Hypomanic + major depressive episodes",
    "Cyclothymic Disorder: Subthreshold hypo/depressive symptoms",
    "Bipolar Spectrum: Broader subthreshold presentations",
    "Highly heritable (70–80%) — major genetic component",
    "Pathophysiology: Immune dysregulation (TNF, IL-6, CRP)",
    "Mitochondrial dysfunction & oxidative stress",
    "Circadian rhythm disruption is central",
    "Kindling model: each episode worsens prognosis",
]
add_bullets(slide, 0.5, 1.4, 5.7, 5.6, intro, size=12.5, color=DARK_TEXT)

rect(slide, 6.8, 0.85, 6.2, 6.35, WHITE)
textbox(slide, 7.0, 0.9, 5.8, 0.45, "Epidemiology", 15, bold=True, color=BD_DARK, font="Calibri")
epi = [
    "BP-I lifetime prevalence: ~1% worldwide (up to 3.3%)",
    "BP-II lifetime prevalence: ~0.5–1.1%",
    "Bipolar spectrum: ~2.4% (cross-national WMH)",
    "Annual incidence: <1%; varies 0.3–1.2% by country",
    "Sex: Equal in BP-I; women have more depressive & mixed episodes",
    "Rapid cycling more common in women",
    "Age of onset: childhood to age 50; mean ~30 yrs",
    "Earlier onset than MDD",
    "1st-degree relatives: ~10-fold increased risk",
    "MZ twin concordance: 65–100%",
]
add_bullets(slide, 7.0, 1.4, 5.8, 5.6, epi, size=12.5, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 10 – BD Clinical Features
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, BD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, BD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "Bipolar Disorder — Clinical Features",
        22, bold=True, color=WHITE, font="Calibri")

# 3 panels
panels = [
    ("Manic Episode", [
        "Elevated, expansive, or irritable mood",
        "Inflated self-esteem / grandiosity",
        "Decreased need for sleep (3 hrs, feels rested)",
        "Pressured speech / more talkative",
        "Flight of ideas / racing thoughts",
        "Distractibility",
        "Increased goal-directed activity",
        "Impulsive/reckless behavior (spending, sex)",
        "Psychosis in severe mania (delusions/hallucinations)",
    ], 0.3),
    ("Depressive Episode in BD", [
        "Clinically similar to unipolar MDD",
        "More hypersomnia & hyperphagia",
        "Psychomotor retardation prominent",
        "Higher likelihood of psychotic features",
        "Mixed features common (manic + depressive)",
        "Often misdiagnosed as unipolar MDD",
        "Misdiagnosis delays correct Dx by ~7–10 years",
        "",
        "Hypomanic: Same as manic but ≥4 days, less impairment, no psychosis, no hospitalization",
    ], 4.65),
    ("Subtypes / Specifiers", [
        "Mixed features / Dysphoric mania:",
        "  Simultaneous manic + depressive sx",
        "  More common in women",
        "  Higher suicide risk",
        "  Less responsive to lithium",
        "",
        "Rapid cycling:",
        "  ≥4 episodes/year",
        "  More common in women & BP-II",
        "  Poorer prognosis",
        "  Reduced lithium response",
    ], 8.9),
]
for title, pts, x in panels:
    rect(slide, x, 0.9, 3.95, 6.35, WHITE)
    textbox(slide, x+0.15, 0.95, 3.7, 0.45, title, 13.5, bold=True, color=BD_DARK, font="Calibri")
    add_bullets(slide, x+0.15, 1.45, 3.7, 5.7, pts, size=11.5, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 11 – BD DSM-5 Criteria
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, BD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, BD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "Bipolar Disorder — DSM-5 Diagnostic Criteria",
        22, bold=True, color=WHITE, font="Calibri")

# Manic Episode panel
rect(slide, 0.3, 0.85, 6.2, 6.35, WHITE)
textbox(slide, 0.5, 0.9, 5.9, 0.45,
        "Manic Episode (required for BP-I)", 14, bold=True, color=BD_DARK, font="Calibri")
manic_crit = [
    "A: Abnormally elevated/expansive/irritable mood + increased",
    "   energy, most of day, nearly every day, ≥1 week",
    "   (or any duration if hospitalization required)",
    "B: ≥3 of the following (≥4 if mood only irritable):",
    "   1. Inflated self-esteem / grandiosity",
    "   2. Decreased need for sleep",
    "   3. More talkative / pressured speech",
    "   4. Flight of ideas / racing thoughts",
    "   5. Distractibility",
    "   6. Increased goal-directed activity / agitation",
    "   7. Reckless behavior (spending, sexual, business)",
    "C: Marked impairment / hospitalization / psychosis",
    "D: Not due to substances or medical condition",
]
add_bullets(slide, 0.5, 1.4, 5.9, 5.6, manic_crit, size=11.5, color=DARK_TEXT)

# Right: Hypomanic + BP-I / BP-II / Cyclothymia
rect(slide, 6.85, 0.85, 6.15, 3.05, WHITE)
textbox(slide, 7.0, 0.9, 5.8, 0.45,
        "Hypomanic Episode (BP-II)", 14, bold=True, color=BD_DARK, font="Calibri")
hypo = [
    "Same criteria as mania but ≥4 consecutive days",
    "No marked impairment; no hospitalization; no psychosis",
]
add_bullets(slide, 7.0, 1.4, 5.8, 1.8, hypo, size=12, color=DARK_TEXT)

rect(slide, 6.85, 4.15, 6.15, 3.05, WHITE)
textbox(slide, 7.0, 4.2, 5.8, 0.45,
        "Subtypes & Cyclothymia", 14, bold=True, color=BD_DARK, font="Calibri")
subs = [
    "BP-I: ≥1 manic episode (with/without depression)",
    "BP-II: ≥1 hypomanic + ≥1 major depressive; NO mania",
    "Cyclothymia: ≥2 years of hypo + depressive sx (sub-threshold)",
]
add_bullets(slide, 7.0, 4.7, 5.8, 2.3, subs, size=12, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 12 – BD Management
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, BD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, BD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "Bipolar Disorder — Management",
        22, bold=True, color=WHITE, font="Calibri")

rect(slide, 0.3, 0.85, 6.5, 6.35, WHITE)
textbox(slide, 0.5, 0.9, 6.1, 0.45, "Pharmacological", 15, bold=True, color=BD_DARK, font="Calibri")
pharma_bd = [
    "MOOD STABILIZERS (backbone):",
    "  Lithium — gold standard; acute mania + maintenance;",
    "            anti-suicidal; levels 0.6–1.2 mEq/L",
    "  Valproate — dysphoric/mixed mania; rapid cycling",
    "  Carbamazepine — dysphoric mania; when lithium fails",
    "  Lamotrigine — bipolar depression prevention; slow titration",
    "ATYPICAL ANTIPSYCHOTICS:",
    "  Olanzapine, Quetiapine, Risperidone, Aripiprazole,",
    "  Lurasidone (BP depression), Cariprazine",
    "ACUTE MANIA: Lithium or valproate ± atypical antipsychotic",
    "BP DEPRESSION: Quetiapine / Lurasidone / Lamotrigine",
    "AVOID antidepressant monotherapy (risk of switching/cycling)",
    "RAPID CYCLING: Valproate preferred; rule out hypothyroidism",
    "PREGNANCY: Avoid valproate; prefer lamotrigine",
]
add_bullets(slide, 0.5, 1.4, 6.1, 5.6, pharma_bd, size=11.5, color=DARK_TEXT)

rect(slide, 7.1, 0.85, 5.9, 6.35, WHITE)
textbox(slide, 7.3, 0.9, 5.5, 0.45, "Non-Pharmacological", 15, bold=True, color=BD_DARK, font="Calibri")
non_pharma_bd = [
    "Psychoeducation — most important; recognize early warning signs",
    "CBT for Bipolar — relapse prevention, sleep regulation",
    "IPSRT — stabilize circadian rhythms & social routines",
    "Family-Focused Therapy (FFT) — reduces expressed emotion",
    "DBT — emotional dysregulation, borderline comorbidity",
    "ECT — severe/refractory mania; bipolar depression; pregnancy",
    "Sleep regulation — maintaining routine prevents episodes",
    "Avoid alcohol & stimulants (major episode triggers)",
    "Aerobic exercise (adjunctive mood stabilization)",
    "Hospitalization for psychosis, agitation, safety risk",
    "Psychotherapy as ADJUNCT only — not monotherapy",
]
add_bullets(slide, 7.3, 1.4, 5.5, 5.6, non_pharma_bd, size=12, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 13 – BD Prognosis
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
rect(slide, 0, 0, 13.333, 0.75, BD_DARK)
rect(slide, 0, 0.72, 13.333, 0.05, BD_MED)
textbox(slide, 0.3, 0.1, 12.5, 0.6, "Bipolar Disorder — Prognosis",
        22, bold=True, color=WHITE, font="Calibri")

rect(slide, 0.3, 0.85, 5.8, 6.35, WHITE)
textbox(slide, 0.5, 0.9, 5.5, 0.45, "Course & Outcomes", 15, bold=True, color=BD_DARK, font="Calibri")
prognosis_bd = [
    "Highly recurrent & chronic: ~60% of time symptomatic",
    "Median manic episode: 3–6 months; mixed: ~1 year",
    "≥80% achieve recovery (8+ weeks with minimal symptoms)",
    "Recurrence: 27–70% at 2–4 year follow-up",
    "Kindling: each episode worsens severity & remission",
    "Suicide risk: ~15–20× higher than general population",
    "Lithium maintenance reduces suicidal risk",
    "Significant cognitive/functional impairment even between episodes",
    "BP-II: Stable diagnosis; depressive episodes predominate",
]
add_bullets(slide, 0.5, 1.4, 5.5, 5.6, prognosis_bd, size=12.5, color=DARK_TEXT)

rect(slide, 6.5, 0.85, 3.1, 6.35, WHITE)
textbox(slide, 6.65, 0.9, 2.9, 0.45, "Poor Prognosis", 14, bold=True, color=ACCENT_RED, font="Calibri")
poor_bd = [
    "Rapid cycling",
    "Mixed features",
    "Early age of onset",
    "Psychotic features",
    "Medication non-adherence",
    "Comorbid substance abuse",
    "Low socioeconomic status",
    "Antidepressant without mood stabilizer",
]
add_bullets(slide, 6.65, 1.4, 2.9, 5.6, poor_bd, size=12, color=DARK_TEXT)

rect(slide, 9.9, 0.85, 3.1, 6.35, WHITE)
textbox(slide, 10.05, 0.9, 2.9, 0.45, "Good Prognosis", 14, bold=True, color=RGBColor(0x1A, 0x7A, 0x3C), font="Calibri")
good_bd = [
    "Later age of onset",
    "Euphoric (classic) mania",
    "Lithium treatment",
    "Good adherence",
    "Psychotherapy involvement",
    "Intact family / social support",
    "No comorbid substance use",
]
add_bullets(slide, 10.05, 1.4, 2.9, 5.6, good_bd, size=12, color=DARK_TEXT)

# ════════════════════════════════════════════════════════════════
# SLIDE 14 – MDD vs BD Comparison
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, GRAY_BG)
# Split header
rect(slide, 0, 0, 6.667, 0.75, MDD_DARK)
rect(slide, 6.667, 0, 6.666, 0.75, BD_DARK)
textbox(slide, 0.3, 0.1, 6.2, 0.6, "MDD  vs  Bipolar Disorder — Key Comparisons",
        22, bold=True, color=WHITE, font="Calibri")

headers = ["Feature", "MDD", "Bipolar Disorder"]
rows = [
    ["Prevalence",       "13–15% lifetime",           "~1–3% (spectrum 2.4%)"],
    ["Sex ratio",        "F > M  (2–3:1)",             "Equal (BP-I); F more depression"],
    ["Age of onset",     "Mid-20s",                    "Childhood to ~30 yrs (earlier)"],
    ["Heritability",     "30–40%",                     "70–80%"],
    ["Core feature",     "Depressed mood / anhedonia", "Mania / hypomania required"],
    ["Suicide risk",     "~15% (severe, chronic)",     "15–20× general population"],
    ["1st-line drug",    "SSRI",                       "Lithium / Valproate"],
    ["Antidepressant use", "Monotherapy OK",           "Avoid without mood stabilizer"],
    ["ECT role",         "Severe / psychotic MDD",     "Severe / refractory mania"],
    ["Psychotherapy",    "CBT / IPT (standalone OK)",  "Adjunct only (IPSRT, FFT, CBT)"],
]
# Draw table
col_widths = [2.8, 4.6, 4.6]
col_x = [0.25, 3.25, 7.95]
row_height = 0.48
table_y = 0.85
row_colors = [MDD_DARK, WHITE, GRAY_BG]  # header, odd, even

for ri, row in enumerate([headers] + rows):
    y = table_y + ri * row_height
    for ci, (cell, cx, cw) in enumerate(zip(row, col_x, col_widths)):
        if ri == 0:
            fill = MDD_DARK
            fc = WHITE
            fb = True
        else:
            fill = WHITE if ri % 2 == 1 else GRAY_BG
            fc = DARK_TEXT
            fb = (ci == 0)
        r = rect(slide, cx, y, cw, row_height - 0.03, fill)
        textbox(slide, cx + 0.08, y + 0.06, cw - 0.15, row_height - 0.1,
                cell, 11, bold=fb, color=fc, font="Calibri")

# ════════════════════════════════════════════════════════════════
# SLIDE 15 – CLOSING
# ════════════════════════════════════════════════════════════════
slide = prs.slides.add_slide(blank)
bg(slide, DARK_TEXT)
rect(slide, 0, 0, 6.667, 7.5, MDD_DARK)
rect(slide, 6.667, 0, 6.666, 7.5, BD_DARK)
rect(slide, 6.5, 1.0, 0.15, 5.5, GOLD)

textbox(slide, 0.5, 2.0, 5.8, 1.0, "Major Depressive Disorder", 24, bold=True,
        color=MDD_LIGHT, font="Calibri")
key_mdd = [
    "Dysphoria / anhedonia ≥ 2 weeks",
    "5 of 9 DSM-5 criteria",
    "SSRI first-line; CBT equally effective (mild-mod)",
    "70% recurrence by 5 years",
]
add_bullets(slide, 0.5, 3.1, 5.8, 3.5, key_mdd, size=13, color=WHITE)

textbox(slide, 7.1, 2.0, 5.8, 1.0, "Bipolar Disorder", 24, bold=True,
        color=BD_LIGHT, font="Calibri")
key_bd = [
    "Mania/hypomania + depression",
    "Lithium: gold standard mood stabilizer",
    "Avoid antidepressant monotherapy",
    "Highly heritable; kindling worsens prognosis",
]
add_bullets(slide, 7.1, 3.1, 5.8, 3.5, key_bd, size=13, color=WHITE)

textbox(slide, 2.0, 6.7, 9.0, 0.6,
        "Source: Kaplan & Sadock's Synopsis and Comprehensive Textbook of Psychiatry",
        11, italic=True, color=RGBColor(0xAA, 0xAA, 0xAA), align=PP_ALIGN.CENTER, font="Calibri")

# ── Save ──────────────────────────────────────────────────────
from io import BytesIO
buf = BytesIO()
prs.save(buf)
with open("/tmp/workspace/mood-disorders-ppt/Mood_Disorders_MDD_Bipolar.pptx", "wb") as f:
    f.write(buf.getvalue())
print("Saved successfully.")
Running Command

cd /tmp/workspace/mood-disorders-ppt && python build_ppt.py 2>&1

Running Command

ls -lh /tmp/workspace/mood-disorders-ppt/

Your presentation is ready. Download it here:

Mood Disorders MDD Bipolar

Presentation · PPTX


The deck contains 15 slides with a clean professional design (navy blue for MDD, purple for Bipolar Disorder):
SlideContent
1Cover — Mood Disorders
2MDD Section Divider
3MDD — Introduction & Epidemiology
4MDD — Clinical Features (3-column layout)
5MDD — DSM-5 Criteria + Specifiers
6MDD — Management (Pharmacological & Non-Pharmacological)
7MDD — Prognosis (course + good/poor factors)
8Bipolar Disorder Section Divider
9BD — Introduction & Epidemiology
10BD — Clinical Features (Mania / Depression / Subtypes)
11BD — DSM-5 Criteria (BP-I, BP-II, Cyclothymia)
12BD — Management (Pharmacological & Non-Pharmacological)
13BD — Prognosis (course + good/poor factors)
14MDD vs Bipolar — Side-by-side comparison table
15Summary / Closing key points
This is a shared conversation. Sign in to Orris to start your own chat.