I want u to make bootcamp atlas of all 19 subject for my neet pg 2026 which is on 30 aug

Asking for Preferences
Reading File
Running Command

mkdir -p /home/daytona/workspace/neet-pg-atlas && ls /home/daytona/workspace/

Writing File

~/neet-pg-atlas/generate_atlas.py

#!/usr/bin/env python3
"""
NEET PG 2026 Bootcamp Atlas - All 19 Subjects
High-yield topics, recent one-liners, concepts, PYQ trends
Target Date: August 30, 2026
"""

from reportlab.lib.pagesizes import A4
from reportlab.lib import colors
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import cm, mm
from reportlab.platypus import (
    SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
    PageBreak, HRFlowable, KeepTogether
)
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY
from reportlab.platypus import BaseDocTemplate, PageTemplate, Frame
from reportlab.pdfgen import canvas
from reportlab.lib.colors import HexColor
import datetime

# ─── COLOUR PALETTE ──────────────────────────────────────────────────────────
C_NAVY    = HexColor("#1a237e")
C_BLUE    = HexColor("#1565c0")
C_TEAL    = HexColor("#00695c")
C_AMBER   = HexColor("#e65100")
C_RED     = HexColor("#b71c1c")
C_PURPLE  = HexColor("#4a148c")
C_GREY    = HexColor("#37474f")
C_LTBLUE  = HexColor("#e3f2fd")
C_LTGRN   = HexColor("#e8f5e9")
C_LTAMB   = HexColor("#fff3e0")
C_LTRED   = HexColor("#ffebee")
C_LTPUR   = HexColor("#f3e5f5")
C_WHITE   = colors.white
C_BLACK   = colors.black

PAGE_W, PAGE_H = A4

def header_footer(canvas_obj, doc):
    canvas_obj.saveState()
    # Header bar
    canvas_obj.setFillColor(C_NAVY)
    canvas_obj.rect(0, PAGE_H - 28*mm, PAGE_W, 28*mm, fill=1, stroke=0)
    canvas_obj.setFillColor(C_WHITE)
    canvas_obj.setFont("Helvetica-Bold", 11)
    canvas_obj.drawString(18*mm, PAGE_H - 16*mm, "NEET PG 2026 | BOOTCAMP ATLAS")
    canvas_obj.setFont("Helvetica", 9)
    canvas_obj.drawRightString(PAGE_W - 18*mm, PAGE_H - 16*mm, f"Target: Aug 30, 2026  |  49 Days to Go")
    # Footer bar
    canvas_obj.setFillColor(C_NAVY)
    canvas_obj.rect(0, 0, PAGE_W, 12*mm, fill=1, stroke=0)
    canvas_obj.setFillColor(C_WHITE)
    canvas_obj.setFont("Helvetica", 8)
    canvas_obj.drawString(18*mm, 4*mm, "High-Yield Revision | Moderate Depth | All 19 Subjects")
    canvas_obj.drawRightString(PAGE_W - 18*mm, 4*mm, f"Page {doc.page}")
    canvas_obj.restoreState()

def build_styles():
    styles = getSampleStyleSheet()
    base = dict(fontName="Helvetica", spaceAfter=3, leading=14)

    s = {}
    s['cover_title'] = ParagraphStyle('cover_title', fontName="Helvetica-Bold",
        fontSize=32, textColor=C_WHITE, alignment=TA_CENTER, spaceAfter=8, leading=38)
    s['cover_sub']   = ParagraphStyle('cover_sub', fontName="Helvetica",
        fontSize=15, textColor=HexColor("#bbdefb"), alignment=TA_CENTER, spaceAfter=4)
    s['cover_date']  = ParagraphStyle('cover_date', fontName="Helvetica-Bold",
        fontSize=13, textColor=C_AMBER, alignment=TA_CENTER, spaceAfter=4)

    s['h_subject']   = ParagraphStyle('h_subject', fontName="Helvetica-Bold",
        fontSize=20, textColor=C_WHITE, alignment=TA_LEFT, spaceAfter=4, leading=24)
    s['h_section']   = ParagraphStyle('h_section', fontName="Helvetica-Bold",
        fontSize=13, textColor=C_NAVY, spaceAfter=4, leading=16)
    s['h_sub']       = ParagraphStyle('h_sub', fontName="Helvetica-Bold",
        fontSize=11, textColor=C_BLUE, spaceAfter=3, leading=14)
    s['body']        = ParagraphStyle('body', fontName="Helvetica",
        fontSize=9, textColor=C_GREY, spaceAfter=2, leading=13)
    s['bullet']      = ParagraphStyle('bullet', fontName="Helvetica",
        fontSize=9, textColor=C_BLACK, spaceAfter=2, leading=13,
        leftIndent=12, bulletIndent=2)
    s['oneliner']    = ParagraphStyle('oneliner', fontName="Helvetica",
        fontSize=9, textColor=C_RED, spaceAfter=2, leading=13,
        leftIndent=12, bulletIndent=2)
    s['mnemonic']    = ParagraphStyle('mnemonic', fontName="Helvetica-BoldOblique",
        fontSize=9.5, textColor=C_TEAL, spaceAfter=2, leading=13)
    s['tag_hy']      = ParagraphStyle('tag_hy', fontName="Helvetica-Bold",
        fontSize=8, textColor=C_AMBER, spaceAfter=1)
    s['toc_item']    = ParagraphStyle('toc_item', fontName="Helvetica",
        fontSize=10, textColor=C_NAVY, spaceAfter=4, leading=14)
    s['toc_title']   = ParagraphStyle('toc_title', fontName="Helvetica-Bold",
        fontSize=22, textColor=C_NAVY, alignment=TA_CENTER, spaceAfter=10)
    return s

def bullet(text, style):
    return Paragraph(f"•  {text}", style)

def oneliner(text, style):
    return Paragraph(f"➤  {text}", style)

def section_box(title, style, bg=None):
    bg = bg or C_LTBLUE
    t = Table([[Paragraph(title, style)]], colWidths=[165*mm])
    t.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), bg),
        ('LEFTPADDING', (0,0), (-1,-1), 8),
        ('RIGHTPADDING', (0,0), (-1,-1), 8),
        ('TOPPADDING', (0,0), (-1,-1), 5),
        ('BOTTOMPADDING', (0,0), (-1,-1), 5),
        ('ROUNDEDCORNERS', [4,4,4,4]),
    ]))
    return t

def subject_header(name, code, color, styles):
    data = [[Paragraph(f"{code}  {name}", styles['h_subject'])]]
    t = Table(data, colWidths=[165*mm])
    t.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), color),
        ('LEFTPADDING', (0,0), (-1,-1), 12),
        ('TOPPADDING', (0,0), (-1,-1), 8),
        ('BOTTOMPADDING', (0,0), (-1,-1), 8),
        ('ROUNDEDCORNERS', [6,6,6,6]),
    ]))
    return t

# ─── SUBJECT CONTENT DATA ────────────────────────────────────────────────────

SUBJECTS = [

# 1. Anatomy
{
 "name": "Anatomy", "code": "01", "color": C_NAVY,
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTBLUE, "bullets": [
   "Brachial plexus - roots, trunks, divisions, cords, branches (C5-T1)",
   "Femoral triangle contents: NAVEL (Nerve, Artery, Vein, Empty space, Lymphatics)",
   "Carpal tunnel syndrome - median nerve compression at flexor retinaculum",
   "Dermatomes: C5-shoulder, C6-thumb, C7-middle finger, C8-little finger, L4-knee, L5-great toe, S1-little toe",
   "Circle of Willis: Internal carotid + vertebrobasilar system anastomosis",
   "Thoracic duct: originates cisterna chyli (L1-L2), drains into left subclavian vein",
   "Ligamentum arteriosum: remnant of ductus arteriosus; related to recurrent laryngeal nerve",
   "Peritoneal relations: liver (intraperitoneal), kidneys (retroperitoneal), pancreas head (secondary retroperitoneal)",
   "Portal-systemic anastomoses: 5 sites - esophageal, umbilical, rectal, retroperitoneal, bare area",
   "Subdural vs Extradural hematoma: crescent vs biconvex (lenticular)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "McBurney's point: 1/3rd of line from ASIS to umbilicus - appendix base",
   "Hasselbalch triangle: bounded by inguinal ligament, inferior epigastric artery, lateral border of rectus",
   "Nerve of Bell = Long thoracic nerve (C5,6,7) - injury causes winged scapula",
   "Obturator nerve (L2,3,4): exits through obturator foramen; injury causes medial thigh numbness",
   "Referred pain from diaphragm: C3,4,5 (phrenic nerve) -> tip of shoulder",
   "Tympanic membrane: handle of malleus visible; umbo is most depressed point",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Embryology: Neural tube defects - folic acid; first arch derivatives (mandible, malleus, incus)",
   "Histology: Cell junction types - tight, adhering, gap, desmosome",
   "Frequently tested: Sinuses of pericardium (transverse, oblique), coronary sulcus, SA node blood supply (RCA 60%)",
   "PYQ trend: Foramina of skull base, contents; vertebral artery course; pterion (thinnest part of skull)",
  ]},
 ]
},

# 2. Physiology
{
 "name": "Physiology", "code": "02", "color": C_BLUE,
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTBLUE, "bullets": [
   "Action potential phases: 0(depolarization-Na+), 1(early repolarization-K+), 2(plateau-Ca++), 3(rapid repolarization-K+), 4(resting)",
   "Cardiac output = HR x SV; normal CO = 5 L/min; CI = CO/BSA (normal 2.5-4 L/min/m2)",
   "Starling's law: increased preload -> increased stroke volume (up to a point)",
   "JGA: macula densa senses low Na+Cl-, granular cells release renin -> RAAS",
   "GFR ~125 mL/min; renal clearance of inulin = GFR; PAH clearance = RPF",
   "Lung compliance: increased in emphysema, decreased in fibrosis/ARDS",
   "Hb-O2 dissociation curve shifts: RIGHT (Bohr effect: increased CO2, H+, temp, 2,3-DPG)",
   "Nerve fiber classification: A-alpha (motor), A-delta (pain/temp fast), C fibers (pain slow, unmyelinated)",
   "Cerebellar function: coordination, ipsilateral control; lesion -> ipsilateral ataxia",
   "Hormones: GH paradoxical secretion in acromegaly by glucose; TRH stimulates TSH+prolactin",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Renin substrate: angiotensinogen; ACE converts AI->AII; AII -> vasoconstriction + aldosterone",
   "EPO produced by: peritubular fibroblasts (90%) in cortex; increased by hypoxia",
   "Normal CVP: 0-8 mmHg; PCWP: 6-12 mmHg; PAP systolic: 15-30 mmHg",
   "T3 more potent than T4; T4 converted to T3 by deiodinase; T3 binds nuclear receptor",
   "Surfactant: DPPC (dipalmitoyl phosphatidylcholine); produced by Type II pneumocytes from 24-26 weeks",
   "Dark adaptation: rhodopsin regeneration; Vit A deficiency -> night blindness",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Osmolality: plasma 280-295 mOsm/kg; ADH released when >290; urine can concentrate to 1200",
   "Buffer systems: bicarbonate (most important ECF), protein (most important ICF), phosphate",
   "PYQ trend: Dead space (anatomical vs physiological), V/Q ratio, shunt effects",
   "Nernst equation, Goldman equation for resting membrane potential frequently asked",
  ]},
 ]
},

# 3. Biochemistry
{
 "name": "Biochemistry", "code": "03", "color": C_TEAL,
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTGRN, "bullets": [
   "Glycolysis: 10 steps; key enzymes - HK/GK, PFK-1 (rate-limiting), pyruvate kinase",
   "TCA cycle: acetyl-CoA entry; generates 3 NADH, 1 FADH2, 1 GTP per turn",
   "Electron transport chain: Complex I (NADH), II (FADH2), III (Cyt bc1), IV (Cyt c oxidase)",
   "ATP yield: NADH=2.5 ATP, FADH2=1.5 ATP; 1 glucose = ~30-32 ATP",
   "Glycogen storage diseases: Von Gierke (G6Pase, type I), Pompe (lysosomal acid maltase, type II)",
   "Urea cycle: starts and ends in mitochondria/cytoplasm; citrulline, argininosuccinate, arginine",
   "Cholesterol: 27-carbon; bile acids, steroids, Vit D; transported as VLDL->IDL->LDL->HDL",
   "DNA replication enzymes: helicase (unwinds), primase (RNA primer), DNA Pol III (main), ligase (joins)",
   "PCR: denaturation(95C), annealing(55C), extension(72C); Taq polymerase",
   "Vitamins: B1(TPP-pyruvate dehydrogenase), B2(FAD/FMN), B3(NAD/NADP), B12(methylmalonyl-CoA mutase)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Biotin (B7): carboxylation reactions; deficiency from raw egg whites (avidin binds biotin)",
   "Homocystinuria: CBS deficiency or B6/B12/folate deficiency; increased plasma homocysteine -> CVD risk",
   "Phenylketonuria: PAH deficiency; low Phe diet; musty odor; mental retardation",
   "Hartnup disease: neutral amino acid transporter defect; tryptophan malabsorption -> pellagra-like",
   "Alkaptonuria: HGD deficiency; black urine on standing; ochronosis (black pigment in connective tissue)",
   "Gaucher disease: glucocerebrosidase deficiency; Gaucher cells (wrinkled tissue paper cells)",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Signal transduction: G-protein coupled, receptor tyrosine kinase (insulin), nuclear receptors (steroids)",
   "Tumor markers: AFP (HCC, germ cell), CEA (colon), CA-125 (ovary), PSA (prostate), beta-hCG (choriocarcinoma)",
   "PYQ trend: Enzyme kinetics (Km, Vmax, Michaelis-Menten), enzyme inhibition types",
   "Western blot: protein; Southern blot: DNA; Northern blot: RNA; ELISA: antibodies",
  ]},
 ]
},

# 4. Pathology
{
 "name": "Pathology", "code": "04", "color": C_RED,
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTRED, "bullets": [
   "Cell injury: reversible (fatty change, hydropic swelling) vs irreversible (nuclear changes: pyknosis, karyorrhexis, karyolysis)",
   "Necrosis types: coagulative (ischemia), liquefactive (brain, abscess), caseous (TB), fat (pancreatitis), fibrinoid (vasculitis)",
   "Amyloid: Congo red (+), apple-green birefringence under polarized light; AL(primary), AA(secondary)",
   "Inflammation: acute (neutrophils), chronic (lymphocytes, macrophages, plasma cells)",
   "Granuloma: TB (caseating), Sarcoid (non-caseating), Foreign body (giant cells), Cat scratch (stellate necrosis)",
   "Carcinoma types: squamous (keratin pearls), adenocarcinoma (glands/mucin), small cell (neuroendocrine)",
   "Tumor suppressor genes: Rb (retinoblastoma), p53 (Li-Fraumeni), BRCA1/2, APC (FAP), NF1/NF2",
   "Oncogenes: c-myc (Burkitt), bcr-abl (CML t9;22), N-myc (neuroblastoma), HER2/neu (breast)",
   "Reed-Sternberg cells: Hodgkin lymphoma; CD15+, CD30+; bilobed 'owl eye' nuclei",
   "Leukemia: ALL (children, TdT+), AML (Auer rods), CML (Ph chromosome), CLL (smudge cells)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTAMB, "oneliners": [
   "Virchow triad (DVT): stasis, hypercoagulability, endothelial injury",
   "Psammoma bodies: papillary thyroid CA, meningioma, papillary serous ovarian CA",
   "Councilman bodies: acidophilic hepatocyte apoptosis in viral hepatitis (yellow fever)",
   "Mallory-Denk bodies: eosinophilic cytoplasmic inclusions in alcoholic hepatitis (cytokeratin)",
   "Call-Exner bodies: granulosa cell tumor of ovary (follicle-like spaces)",
   "Ghon complex: primary TB focus + hilar lymph node + lymphatic - Ranke complex if calcified",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Hypersensitivity reactions: Type I (IgE, immediate), II (cytotoxic, IgG/M), III (immune complex), IV (delayed, T-cell)",
   "Mast cell mediators: histamine (preformed), leukotrienes (newly synthesized) - in anaphylaxis",
   "PYQ trend: Special stains - PAS (glycogen/fungi), ZN (AFB), India ink (Cryptococcus), GMS (fungi)",
   "Flow cytometry markers: CD3 (T-cell), CD19/20 (B-cell), CD34 (stem cell), CD56 (NK cell)",
  ]},
 ]
},

# 5. Pharmacology
{
 "name": "Pharmacology", "code": "05", "color": C_PURPLE,
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTPUR, "bullets": [
   "Pharmacokinetics: F (bioavailability), Vd (distribution), t1/2 = 0.693xVd/Cl, zero vs first order",
   "Adrenergic receptors: a1 (vasoconstriction), a2 (presynaptic inhibition), b1 (heart), b2 (bronchodilation)",
   "Beta blockers: cardioselective (b1) = atenolol, metoprolol; non-selective = propranolol; ISA = pindolol",
   "ACE inhibitors: captopril (SE: cough, angioedema); ARBs: losartan (no cough)",
   "Antiepileptics: Na+ channel (phenytoin, carbamazepine), GABA (valproate, benzodiazepines), Ca++ (ethosuximide)",
   "Antibiotics: bactericidal (penicillin, aminoglycosides, fluoroquinolones, metronidazole) vs bacteriostatic (TMP-SMX, tetracycline, chloramphenicol, clindamycin, macrolides)",
   "Cytochrome P450 inducers: rifampicin, carbamazepine, phenytoin, St John's wort",
   "CYP450 inhibitors: ketoconazole, erythromycin, isoniazid, cimetidine, grapefruit",
   "Warfarin: Vit K antagonist; reversed by Vit K or FFP; INR monitoring; drug interactions many",
   "Metformin: biguanide, no hypoglycemia, reduces hepatic gluconeogenesis; CI in renal failure",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Drug of choice for status epilepticus: IV lorazepam (first), then IV phenytoin/fosphenytoin",
   "Neostigmine antidote for tubocurarine (non-depolarizing NMJ blocker); succinylcholine is depolarizing",
   "Aspirin: irreversibly inhibits COX-1 (platelets); other NSAIDs reversible inhibition",
   "Morphine: mu receptor agonist; antagonist naloxone; SE: constipation, miosis, respiratory depression",
   "Heparin antidote: protamine sulfate; 1mg neutralizes 100 units; LMWH partially reversed",
   "Tamoxifen: SERM, blocks ER in breast, agonist in uterus (endometrial CA risk)",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Antidotes: cyanide->hydroxocobalamin, organophosphate->atropine+pralidoxime, paracetamol->N-acetylcysteine, iron->desferrioxamine",
   "Teratogenic drugs: warfarin, phenytoin (fetal hydantoin), valproate (NTD), thalidomide, ACE inhibitors, statins",
   "PYQ trend: Selective drug targets, phase I/II clinical trials, narrow therapeutic index drugs",
   "High-yield: drug-receptor interactions, spare receptors, tolerance, tachyphylaxis",
  ]},
 ]
},

# 6. Microbiology
{
 "name": "Microbiology", "code": "06", "color": HexColor("#1b5e20"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTGRN, "bullets": [
   "Gram-positive cocci: S. aureus (coagulase+, beta-hemolytic, MRSA), S. pyogenes (Group A, ASO), S. pneumoniae (alpha-hemolytic, optochin sensitive)",
   "Gram-negative rods: E. coli (ETEC/EPEC/EHEC), Klebsiella (mucoid colonies), Pseudomonas (blue-green pigment, pyocyanin)",
   "Mycobacterium: TB (ZN stain, cord factor, Ghon focus), Leprosy (lepra cells, Virchow cells, globi)",
   "Viruses: Hepatitis B (Dane particle, HBsAg, anti-HBc IgM = acute; e-antigen = high infectivity)",
   "Rabies: Negri bodies in Purkinje cells; street vs fixed virus; treatment - post-exposure prophylaxis",
   "Fungi: Cryptococcus (India ink, cryptococcal meningitis), Aspergillus (acute-angle branching), Mucor (right-angle branching, diabetics)",
   "Parasites: Plasmodium falciparum (no hypnozoite, Maurer's clefts, blackwater fever), Toxoplasma (brain abscess in HIV)",
   "Complement system: C3 = central; C5b-9 MAC; deficiency C5-C9 -> Neisseria infections",
   "Immunoglobulins: IgA (secretory, dimer), IgM (pentamer, first response), IgG (crosses placenta)",
   "Sterilization: autoclave 121C 15psi 15min; dry heat 160C 1hr; glutaraldehyde (cold sterilization)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Culture media: Lowenstein-Jensen (TB), TCBS (Vibrio), Thayer-Martin (Neisseria), Tellurite (C. diphtheriae)",
   "Superantigen: binds MHC II + T cell directly (no processing); S. aureus TSST-1, streptococcal SPE",
   "Weil-Felix reaction: Rickettsia; OX-2, OX-19, OX-K agglutination",
   "Quellung reaction: capsular swelling; S. pneumoniae identification",
   "Toxin-producing: C. botulinum (flaccid paralysis, canned food), C. tetani (spastic paralysis, tetanospasmin)",
   "HIV: RT (RNA-dependent DNA polymerase); integrase; CD4 receptor + CCR5/CXCR4 co-receptor",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Vaccines: live attenuated (BCG, OPV, MMR, Varicella) vs killed/inactivated (IPV, Hep A, Rabies, Typhoid Vi)",
   "CRISPR-Cas9, PCR, FISH, RFLP - molecular diagnostics frequently asked",
   "PYQ trend: Disinfection vs sterilization levels; bacteriophage types; R plasmids (resistance)",
   "Newly emerging: Nipah virus (hendra-like), SARS-CoV-2 variants, monkeypox",
  ]},
 ]
},

# 7. Forensic Medicine
{
 "name": "Forensic Medicine & Toxicology", "code": "07", "color": HexColor("#bf360c"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTAMB, "bullets": [
   "Rigor mortis: begins 1-2h, complete 12h, passes 24-48h; ATP depletion; cadaveric spasm = instantaneous RM",
   "Livor mortis: hypostasis; begins 1-2h; fixed 6-12h (cannot be shifted after fixation)",
   "Putrefaction: starts intestines; greenish discoloration; marbling; formation of adipocere or mummification",
   "Decomposition: adipocere (hydrolysis of fat, moist soil), mummification (dry hot climate)",
   "Hanging: judicial (fracture C2 - hangman's), homicidal vs suicidal features",
   "Drowning: froth at mouth/nose, 'washerwoman hands', cutis anserina; diatoms in lung = vital reaction",
   "IPC sections: 84 (mental unsoundness), 85 (intoxication against will), 302 (murder), 376 (rape)",
   "Rajasthan POCSO: Mandatory reporting; Special courts; protection of children under 18",
   "Sexual assault evidence: sperm survive 72h vagina, 6h cervix; DNA evidence most reliable",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Exhumation: legal order needed; done in presence of magistrate; postmortem findings change after burial",
   "Medico-legal case (MLC): must be registered; IC/SD - informed consent/signed declaration not needed",
   "Brain death criteria: irreversible cessation of all brain functions including brainstem; 2 certifying doctors",
   "Cyanide poisoning: cherry red lividity, bitter almonds smell, metabolic acidosis with high lactate",
   "Organophosphate: SLUD (salivation, lacrimation, urination, defecation); atropine first, then pralidoxime",
   "Alcohol: Widmark formula; ethanol metabolism 10 mL/hour; zero-order kinetics",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Age estimation: Gustafson's method (teeth), secondary sexual characteristics, bone ossification",
   "Fingerprints: loops (most common 60%), whorls (35%), arches (5%); never change in life",
   "PYQ trend: Docimasia (lung float test), DNA fingerprinting, sexual asphyxia",
   "MCI/NMC regulations, Indian Medical Council Act, Consumer Protection Act 2019 (medical negligence)",
  ]},
 ]
},

# 8. Community Medicine / PSM
{
 "name": "Community Medicine (PSM)", "code": "08", "color": HexColor("#006064"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTGRN, "bullets": [
   "Levels of prevention: primordial (risk factors), primary (health promotion/protection), secondary (early detection), tertiary (rehab)",
   "Epidemiology measures: incidence (new cases), prevalence = incidence x duration, attack rate",
   "Sensitivity vs Specificity: Se = TP/(TP+FN), Sp = TN/(TN+FP); PPV/NPV depend on prevalence",
   "Relative risk (cohort): RR = incidence exposed/unexposed; Odds ratio (case-control)",
   "NMR: <28 days; IMR: <1 year; U5MR: <5 years; best indicator of health = IMR, socioeconomic = U5MR",
   "National programs: RNTCP/NTEP (TB elimination 2025), NLEP (leprosy), NVBDCP (malaria/dengue/filaria)",
   "Immunization schedule 2024: BCG at birth, OPV 0 at birth, IPV at 6 wk, Penta 6/10/14 wk, MR 9 mo, JE 9 mo",
   "Contraception: Cu-T (most effective IUCD, 10 yr), LNG-IUS (Mirena), Oral pills (missed pill rules)",
   "Water quality: coliform count (MPN), chlorination, 0.5 ppm residual chlorine after 1h contact",
   "Food poisoning: S. aureus (fastest onset 1-6h, preformed toxin), Salmonella (12-36h), C. perfringens (8-24h)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Ayushman Bharat-PMJAY: Rs 5 lakh/family/year; covers secondary and tertiary care; launched 2018",
   "ASHA workers: 1 per 1000 population in rural; incentive-based; link workers",
   "National health indicators 2023: MMR (India) ~97/100,000 LB; IMR ~28/1000 LB; TFR ~2.0",
   "Herd immunity threshold: measles 95%, polio 85%, smallpox 80%; R0 determines threshold",
   "SDG goal 3: Good Health and Well-being; targets include ending AIDS, TB, malaria by 2030",
   "One Health concept: human, animal, environmental health interconnected - WHO/FAO/OIE",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Study designs: RCT (gold standard), cohort (incidence/RR), case-control (OR), cross-sectional (prevalence)",
   "Bias types: selection, information, confounding; Berkson bias (hospital), Neyman bias (survivor)",
   "PYQ trend: Disability-adjusted life years (DALYs) = YLD + YLL; QALY = quality-adjusted",
   "Screening criteria (Wilson-Jungner): important health problem, acceptable treatment, recognizable latent stage",
  ]},
 ]
},

# 9. ENT
{
 "name": "ENT (Ear, Nose & Throat)", "code": "09", "color": HexColor("#4527a0"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTPUR, "bullets": [
   "Hearing loss types: conductive (air-bone gap), sensorineural (no gap), mixed; Rinne (BC>AC = conductive negative)",
   "Otosclerosis: conductive HL, Schwartze sign (flamingo pink), treated by stapedectomy",
   "CSOM: tubotympanic (safe, central perforation) vs atticoantral (unsafe, cholesteatoma, marginal/attic)",
   "Meniere's disease: endolymphatic hydrops; triad - vertigo + tinnitus + sensorineural HL; low-salt diet",
   "Acoustic neuroma: CN VIII schwannoma; CPA angle; most common benign CPA tumor; MRI contrast",
   "Deviated nasal septum: C-type, S-type; Killian's incision for SMR; cottle's incision for septoplasty",
   "Nasal polyps: ethmoidal (bilateral, allergic), antrochoanal (unilateral, Killian's polyp from maxillary antrum)",
   "Peritonsillar abscess: unilateral uvular deviation; trismus; needle aspiration or I&D",
   "Quinsy vs Ludwig's angina vs Lemierre syndrome: locations and organisms",
   "Laryngeal carcinoma: supraglottic (late hoarseness), glottic (early hoarseness, good prognosis), subglottic",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Presbycusis: age-related SNHL; high frequency first; cause - degeneration stria vascularis/hair cells",
   "Nasopharyngeal carcinoma: EBV-associated; type III (undifferentiated) most common; raised VCA-IgA",
   "Sinonasal inverted papilloma: unilateral; risk of malignant transformation; removed via lateral rhinotomy",
   "Globus pharyngeus: functional; lump in throat with no dysphagia; exclude GERD and malignancy",
   "Gradenigo syndrome: petrositis; triad - otorrhoea + VI nerve palsy + trigeminal pain",
   "BPPV: posterior semicircular canal most common; Dix-Hallpike test; Epley manoeuvre treatment",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Audiometry: pure tone audiogram, speech audiometry, BERA/ABR (objective), OAE (neonatal screening)",
   "Tracheotomy vs tracheostomy; cricothyrotomy (emergency); tube types - cuffed vs uncuffed",
   "PYQ trend: Radical mastoidectomy vs modified radical vs cortical; BSOM treatment",
   "Malignant otitis externa: Pseudomonas, diabetics; bone erosion; CN VII most commonly involved",
  ]},
 ]
},

# 10. Ophthalmology
{
 "name": "Ophthalmology", "code": "10", "color": HexColor("#1a6b77"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTBLUE, "bullets": [
   "Glaucoma: primary open angle (painless, optic disc cupping C/D >0.6, fields), acute angle closure (painful red eye, hazy cornea)",
   "IOP: normal 10-21 mmHg; measured by Goldmann tonometer (gold standard); Schiotz (indentation)",
   "Retinal detachment: rhegmatogenous (breaks), exudative (no breaks), tractional (DM, sickle cell)",
   "Diabetic retinopathy: NPDR (dot-blot hemorrhages, hard exudates) -> PDR (NVD, NVE, vitreous hemorrhage)",
   "Cataract types: nuclear (index myopia), posterior subcapsular (steroids/DM), cortical (spoke-wheel)",
   "Uveitis: anterior (iritis/iridocyclitis), intermediate (pars planitis), posterior (chorioretinitis); HLA-B27 anterior",
   "Age-related macular degeneration (AMD): dry (drusen, geographic atrophy) vs wet (neovascular, VEGF)",
   "Corneal ulcer: bacterial (hypopyon), viral (HSV - dendritic ulcer), fungal (Aspergillus, feathery margins)",
   "Squint: concomitant (angle fixed, no diplopia) vs incomitant (paralytic, angle varies, diplopia)",
   "Visual field defects: bitemporal hemianopia (pituitary), homonymous (optic tract/radiation)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Argyll Robertson pupil: constricts to accommodation, not to light; neurosyphilis",
   "Marcus Gunn pupil: RAPD; afferent defect; swinging flashlight test",
   "Kayser-Fleischer ring: copper deposition in Descemet membrane; Wilson disease",
   "Cherry red spot: central retinal artery occlusion; also in Tay-Sachs (no CRAO - lipid storage)",
   "Fleischer ring: keratoconus (iron deposition at base of cone); slit lamp diagnosis",
   "Anti-VEGF (ranibizumab/bevacizumab): intravitreal injection for wet AMD and PDR",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Vitamin A deficiency: Bitot's spots, xerophthalmia, keratomalacia (leading preventable blindness cause)",
   "Trachoma: C. trachomatis; WHO SAFE strategy; most common cause of preventable blindness worldwide",
   "PYQ trend: Optic disc anatomy, fundoscopy findings, Snellen chart testing, cover-uncover test",
   "Fluorescein angiography: early hyperfluorescence = window defect; late = leakage",
  ]},
 ]
},

# 11. Obstetrics & Gynaecology
{
 "name": "Obstetrics & Gynaecology", "code": "11", "color": HexColor("#880e4f"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS (OBSTETRICS)", "bg": C_LTRED, "bullets": [
   "Preeclampsia: BP >=140/90 after 20 wks + proteinuria; severe features: BP >=160/110, platelets <100k, creatinine >1.1",
   "HELLP syndrome: Hemolysis, Elevated Liver enzymes, Low Platelets - variant of severe preeclampsia",
   "Placenta previa: painless bright red bleeding; types I-IV (complete), USG diagnosis; C-section for major",
   "Abruptio placentae: painful bleeding; Couvelaire uterus; concealed type; DIC complication",
   "APH investigation: avoid PV exam before USG; digital exam - placenta previa bleeds more",
   "GDM: OGTT 75g 2h; Carpenter-Coustan criteria; macrosomia; shoulder dystocia; neonatal hypoglycemia",
   "Preterm labor: <37 weeks; tocolysis (nifedipine, atosiban); betamethasone for lung maturity if 24-34 wks",
   "CTG: baseline HR 110-160; variability 5-25 bpm; accelerations good; late decelerations (uteroplacental insufficiency)",
  ]},
  {"title": "HIGH-YIELD TOPICS (GYNAECOLOGY)", "bg": C_LTPUR, "bullets": [
   "Cervical cancer: HPV 16 (squamous), HPV 18 (adenocarcinoma); Pap smear screening; colposcopy",
   "PCOS: Rotterdam criteria (2/3): irregular cycles, clinical/biochemical hyperandrogenism, PCO on USG",
   "Endometriosis: chocolate cysts (endometrioma), CA-125, powder-burn lesions; laparoscopy gold standard",
   "Fibroid (leiomyoma): most common gynecological tumor; intramural (most common), submucous (most symptomatic)",
   "Ectopic pregnancy: most common in ampulla; hCG doubling, TVS; treatment methotrexate or surgery",
   "Menopause: FSH >40 IU/L, LH raised; estrogen deficient; HRT for vasomotor symptoms",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Bishop score >=6: favorable cervix for induction; components - dilation, effacement, station, consistency, position",
   "Shoulder dystocia: McRoberts maneuver first (hip flexion); then Rubin, Wood-screw, Zavanelli",
   "Gestational trophoblastic disease: complete mole (46XX, paternal, no fetus), partial mole (69XXX, triploid)",
   "Asherman syndrome: intrauterine adhesions post-curettage; amenorrhea; hysteroscopy diagnosis and treatment",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Fetal lie, presentation, position: defined; engagement = biparietal diameter below pelvic inlet",
   "Cardinal movements of labor: engagement, descent, flexion, internal rotation, extension, external rotation, expulsion",
   "PYQ trend: Uterine anomalies (Mullerian), ovarian tumors (Meigs syndrome = fibroma + ascites + hydrothorax)",
  ]},
 ]
},

# 12. Pediatrics
{
 "name": "Pediatrics", "code": "12", "color": HexColor("#e65100"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTAMB, "bullets": [
   "Development milestones: social smile 6wk, neck control 3mo, sitting 6-9mo, walking 12-15mo, words 1yr, sentences 2yr",
   "Vaccination: BCG at birth; OPV0 at birth; Penta (DPT+Hep B+Hib) at 6,10,14 wks; MR at 9 mo and 16-24 mo",
   "Neonatal jaundice: physiological after 24h, peaks day 3-5; pathological within 24h; Rh incompatibility",
   "Kawasaki disease: CRASH+F; Fever >5d + 4/5 criteria; coronary artery aneurysm; IVIG + aspirin",
   "Nephrotic syndrome in children: minimal change disease (most common); selective proteinuria; good prognosis",
   "Acute glomerulonephritis (PSGN): post Group A Strep; ASO titer raised; complement C3 low; hematuria + HTN",
   "Intussusception: ileocolic; 6-18 months peak; red currant jelly stool; barium/air enema diagnostic and therapeutic",
   "Pyloric stenosis: 2-6 weeks male; projectile non-bilious vomiting; olive mass; metabolic alkalosis",
   "Down syndrome (Trisomy 21): Brushfield spots, simian crease, flat occiput; risk with advanced maternal age",
   "Turner syndrome (45 XO): short stature, webbed neck, coarctation of aorta, streak ovaries, primary amenorrhea",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "APGAR score: Appearance, Pulse, Grimace, Activity, Respiration; 7-10 normal; done at 1 and 5 minutes",
   "Febrile seizure: simple (<15 min, <1/24h, generalized); lumbar puncture if <12 months or signs of meningism",
   "Pneumonia in neonate: GBS + E. coli; in children: S. pneumoniae (most common); RSV (viral, young infant)",
   "Epiglottitis: H. influenzae type b; tripod position, drooling; thumb sign on XR; secure airway first",
   "Croup (laryngotracheobronchitis): parainfluenza virus; steeple sign XR; barking cough; nebulized epinephrine",
   "Wiskott-Aldrich syndrome: X-linked; triad - thrombocytopenia + eczema + immunodeficiency",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Malnutrition: Kwashiorkor (protein deficiency, edema, moon face, flaky paint) vs Marasmus (calorie, wasted, alert)",
   "SAM criteria: MUAC <11.5cm or weight-for-height <-3SD or bilateral edema",
   "PYQ trend: Tanner stages, precocious puberty causes, constitutional delay vs pathological",
   "G6PD deficiency: X-linked; hemolytic crisis with oxidant drugs (primaquine, dapsone, nitrofurantoin)",
  ]},
 ]
},

# 13. General Surgery
{
 "name": "General Surgery", "code": "13", "color": HexColor("#1b5e20"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTGRN, "bullets": [
   "Breast cancer: most common - invasive ductal carcinoma; FNAC/core biopsy; BRCA1 (triple negative risk), BRCA2 (male)",
   "Triple assessment of breast: clinical + radiological (mammography/USG) + tissue (FNAC/biopsy)",
   "Thyroid cancer: papillary (psammoma bodies, best prognosis, lymph node mets), follicular (vascular invasion, hematogenous), medullary (calcitonin, MEN2), anaplastic (worst)",
   "Appendicitis: RLQ pain; McBurney, Rovsing, Psoas, Obturator signs; Alvarado score; Lap appendectomy",
   "Hernias: inguinal (indirect>direct, especially in young males), femoral (strangulates most), umbilical (closes by 2yr)",
   "Intestinal obstruction: small bowel (central, dilated loops, air-fluid levels) vs large bowel (peripheral, haustrations)",
   "Colorectal cancer: sigmoid most common; Dukes staging; Duke D = distant mets; CEA marker",
   "Acute pancreatitis: Ranson's criteria; Grey Turner (flank) + Cullen (periumbilical) signs; CECT abdomen",
   "Cholecystitis: Murphy's sign; Charcot's triad (cholangitis: pain+fever+jaundice); Reynolds pentad adds shock+confusion",
   "Esophageal cancer: upper/mid = squamous; lower/GEJ = adenocarcinoma (Barrett's esophagus); dysphagia",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Sentinel lymph node biopsy: first lymph node to drain tumor; negative = no further dissection",
   "Virchow node: left supraclavicular node; stomach cancer (Troisier sign)",
   "Sister Mary Joseph nodule: periumbilical metastasis from intra-abdominal malignancy",
   "Fournier gangrene: necrotizing fasciitis of perineum/scrotum; polymicrobial; surgical emergency",
   "Budd-Chiari syndrome: hepatic vein thrombosis; painful hepatomegaly + ascites + liver failure",
   "FAST scan: Focused Assessment with Sonography in Trauma; 4 windows - pericardiac, RUQ, LUQ, pelvic",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Wound healing: primary intention, secondary intention; growth factors; keloid vs hypertrophic scar",
   "ATLS principles: primary survey ABCDE; secondary survey after stabilization",
   "PYQ trend: Fistula types, sinuses, ulcers (Marjolin's = SCC in chronic ulcer/scar), premalignant conditions",
   "Minimally invasive surgery: laparoscopic cholecystectomy port positions, complications (bile duct injury)",
  ]},
 ]
},

# 14. Orthopaedics
{
 "name": "Orthopaedics", "code": "14", "color": HexColor("#3e2723"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTAMB, "bullets": [
   "Fracture classification: closed vs open (Gustilo I/II/IIIA/B/C); Salter-Harris (physeal; I-V)",
   "Colles fracture: distal radius; dinner fork deformity; fall on outstretched hand",
   "Smith's fracture: reverse Colles; garden spade deformity; fall on flexed wrist",
   "Hip dislocation: posterior (90% - adduction, internal rotation, shortened), anterior (abduction, external rotation)",
   "Neck of femur fracture: elderly; subcapital (Garden I-IV); blood supply via retinacular vessels; AVN risk",
   "Intertrochanteric fracture: below neck; well vascularized; dynamic hip screw (DHS); better prognosis",
   "Pott's fracture: bimalleolar ankle fracture; pronation-abduction injury",
   "Compartment syndrome: pain on passive stretch (earliest sign); Cs - Pain, Pallor, Pulselessness, Paresthesia, Paralysis, Poikilothermia",
   "Bone tumors: Ewing's sarcoma (onion-peel periosteal reaction, EWSR1-FLI1 t11;22), Osteosarcoma (sunburst, Codman's triangle)",
   "Tuberculosis of spine (Pott's spine): L1 most common; gibbus; cold abscess; paraplegia",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Volkmann's ischemic contracture: untreated compartment syndrome of forearm; flexion deformity",
   "Wrist drop: radial nerve injury (Saturday night palsy); posterior cord brachial plexus",
   "Trendelenburg sign: weak hip abductors (gluteus medius); positive = pelvis drops on opposite side when standing on affected leg",
   "Knee ligaments: ACL (resists anterior translation, most common knee ligament injury), PCL (resists posterior)",
   "Charcot joint: neuropathic arthropathy; painless destruction; DM (foot), Syringomyelia (shoulder), Tabes dorsalis (knee)",
   "Osteoporosis: T-score <-2.5; DEXA scan; bisphosphonates first line; fall prevention",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Osteomyelitis: acute (S. aureus most common); subacute (Brodie's abscess); chronic (sequestrum+involucrum)",
   "Rickets: X-ray - cupping, fraying, widening of growth plate; biochemistry: low Ca, low P, high ALP, high PTH",
   "PYQ trend: Nerve injuries at elbow (cubitus valgus -> delayed ulnar), wrist (carpal tunnel), knee (common peroneal)",
   "Scoliosis: idiopathic most common adolescent; Cobb angle; >40 degrees consider surgery",
  ]},
 ]
},

# 15. Internal Medicine
{
 "name": "Internal Medicine", "code": "15", "color": HexColor("#0d47a1"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTBLUE, "bullets": [
   "Hypertension: JNC 8 thresholds; primary (90%); secondary causes - renovascular, Conn's, Cushing's, pheochromocytoma",
   "Heart failure: HFrEF (EF<40%): ACEi/ARB + beta-blocker + diuretic + spironolactone + SGLT2i",
   "MI: STEMI - ST elevation + troponin; NSTEMI - troponin rise, no ST elevation; TIMI risk score",
   "Infective endocarditis: Duke criteria (major: positive blood cultures x2, echo evidence; minor: fever, etc.)",
   "Rheumatic fever: Jones criteria (major: carditis, chorea, polyarthritis, erythema marginatum, nodules)",
   "COPD: spirometry FEV1/FVC <0.7; GOLD classification; LABA+LAMA first; exacerbation - antibiotics+steroids",
   "Asthma: reversible obstruction; peak flow variability; step-up therapy (SABA->ICS->LABA->add-ons)",
   "CKD: GFR stages G1-G5; proteinuria stages; ACEi/ARB for proteinuria reduction; dialysis at G5",
   "Liver cirrhosis: Child-Pugh score; MELD score; complications: variceal bleed, SBP, HE, HRS, HCC",
   "Diabetes: HbA1c <7%; metformin first; DKA - pH<7.3, anion gap acidosis, ketones; HHS - hyperosmolar no acidosis",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "SGLT2 inhibitors: cardiorenal protection beyond glucose lowering; reduce HHF and CKD progression",
   "GLP-1 agonists (semaglutide, liraglutide): weight loss, CV protection, pancreatitis risk",
   "Troponin I/T: rise 3-4h, peak 12-24h (TnI) or 24-48h (TnT), persist 7-14 days; high-sensitivity troponin",
   "Long COVID: symptoms >12 weeks after acute COVID; fatigue, cognitive fog, dyspnea; no specific treatment",
   "Lupus (SLE): anti-dsDNA (disease activity), anti-Smith (specific), ANA (sensitive); butterfly rash; SLICC criteria",
   "Takayasu arteritis: large vessel; young Asian female; absent pulse + HTN; corticosteroids; subclavian most common",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "ABG interpretation: pH, pCO2, HCO3; metabolic vs respiratory; primary + compensation",
   "Electrolyte disorders: hyponatremia (SIADH vs DI), hyperkalemia (peaked T waves, widened QRS)",
   "PYQ trend: Autoimmune markers, paraneoplastic syndromes, vasculitis classification (vessel size)",
   "New drugs 2023-24: PCSK9 inhibitors, finerenone (CKD+DM), dapagliflozin (HFpEF)",
  ]},
 ]
},

# 16. Psychiatry
{
 "name": "Psychiatry", "code": "16", "color": HexColor("#4a148c"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTPUR, "bullets": [
   "Schizophrenia: Schneider's first-rank symptoms (auditory hallucinations, thought insertion/withdrawal/broadcasting, passivity experiences)",
   "Positive symptoms: hallucinations, delusions, disorganized thinking; negative: flat affect, alogia, avolition",
   "Antipsychotics: typical (D2 blockers - haloperidol, chlorpromazine) vs atypical (D2+5HT2 - olanzapine, clozapine)",
   "Clozapine: treatment-resistant schizophrenia; SE - agranulocytosis (weekly CBC monitoring), seizures, metabolic",
   "Mood disorders: MDD (5+ symptoms for 2 weeks); bipolar I (manic episodes), bipolar II (hypomania+MDD)",
   "Lithium: mood stabilizer; narrow TI; toxicity >1.5 mEq/L; tremor, polyuria, hypothyroidism; teratogenic",
   "Anxiety disorders: GAD (worry + somatic), panic (episodic intense fear), OCD (egodystonic obsessions+compulsions)",
   "Substance use: CAGE questionnaire; Wernicke's (acute B1 deficiency) vs Korsakoff's (chronic, confabulation)",
   "Suicide risk: SLAP (Specificity, Lethality, Availability, Proximity); intent scale; SAFE-T protocol",
   "Personality disorders: Cluster A (odd), B (dramatic - BPD, antisocial, narcissistic, histrionic), C (anxious)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "ECT: most effective for severe depression + psychotic features; bilateral temporal placement; 6-12 sessions",
   "NMS (neuroleptic malignant syndrome): fever + rigidity + altered consciousness + autonomic instability; dopamine crisis; bromocriptine + dantrolene",
   "Serotonin syndrome: hyperthermia + clonus + diaphoresis; serotonergic drugs; cyproheptadine treatment",
   "PTSD: trauma + flashbacks + hyperarousal + avoidance >1 month; sertraline/paroxetine first-line",
   "ADHD: inattention + hyperactivity; methylphenidate (stimulant) first-line; atomoxetine (non-stimulant)",
   "Gender dysphoria: incongruence between assigned gender and experienced gender; gender-affirming care",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "ICD-10 vs DSM-5: both used; ICD-11 now current WHO classification (multi-category approach)",
   "Defense mechanisms: mature (sublimation, humor, altruism), immature (projection, denial, splitting)",
   "PYQ trend: MHA 2017 provisions, consent in psychiatry, involuntary admission criteria",
   "Cognitive therapies: CBT (Beck), DBT (Linehan - borderline PD), ACT, mindfulness-based",
  ]},
 ]
},

# 17. Dermatology
{
 "name": "Dermatology", "code": "17", "color": HexColor("#bf360c"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTAMB, "bullets": [
   "Psoriasis: well-defined erythematous plaques + silvery scales; Auspitz sign (bleeding), Koebner phenomenon",
   "Psoriasis treatment: topical - steroids + vitamin D analogues; systemic - methotrexate; biologics - anti-TNF",
   "Pemphigus vulgaris: suprabasal split; anti-Desmoglein 1 and 3 antibodies; Nikolsky sign +; acantholysis",
   "Bullous pemphigoid: subepidermal split; anti-BP180/230; tense bullae; elderly; Nikolsky sign -",
   "Dermatitis herpetiformis: IgA deposits in dermal papillae; gluten-sensitive; dapsone treatment",
   "Leprosy: TB (CMI good, paucibacillary) vs LL (CMI poor, multibacillary); lepra reactions Type 1 and 2",
   "MDT for leprosy: PB (6 months), MB (12 months); rifampicin + dapsone +/- clofazimine",
   "Melanoma: ABCDE criteria; Clark levels vs Breslow thickness; sentinel node biopsy",
   "Stevens-Johnson syndrome: <10% BSA; >30% = TEN (toxic epidermal necrolysis); drugs - sulfonamides, AEDs",
   "Scabies: Sarcoptes scabiei; burrows; nocturnal pruritus; permethrin 5% cream",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Lichen planus: 4Ps - planar, pruritic, polygonal, purple papules; Wickham's striae; Koebner phenomenon",
   "Acne vulgaris: comedonal (grade I) -> papules/pustules -> nodular/cystic; isotretinoin for severe nodulocystic",
   "Atopic dermatitis: IgE elevated; Hanifin-Rajka criteria; emollients cornerstone; dupilumab (anti-IL-4Ra) biologic",
   "Vitiligo: autoimmune melanocyte destruction; Wood's lamp (chalk-white); associated with thyroid disease",
   "Erythema nodosum: tender nodules on anterior shins; TB, sarcoid, strep, drugs; no ulceration",
   "Sporotrichosis: Sporothrix schenckii; rose-thorn injury; lymphocutaneous pattern; itraconazole",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Drug reactions: fixed drug eruption (hyperpigmented patch same site), DRESS (eosinophilia, organopathy)",
   "Nail changes: pitting (psoriasis), Beau's lines (systemic illness), koilonychia (iron deficiency), clubbing (chronic hypoxia)",
   "PYQ trend: Tzanck smear (herpes, pemphigus), immunofluorescence patterns, VDRL vs FTA-Abs (syphilis)",
   "Photosensitivity: type I (phototoxic, like sunburn, no sensitization), type II (photoallergic, immunological)",
  ]},
 ]
},

# 18. Radiology
{
 "name": "Radiology & Imaging", "code": "18", "color": HexColor("#006064"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTBLUE, "bullets": [
   "X-ray: high density (white) - bone, calcium; low density (black) - air; soft tissue intermediate",
   "Chest X-ray: PA (posteroanterior) standard; cardiothoracic ratio <0.5 normal; silhouette sign",
   "CXR patterns: consolidation (lobar/segmental), interstitial (reticular, nodular), pleural effusion (meniscus)",
   "CT scan: Hounsfield units - bone (+400 to +1000), soft tissue (20-80), water (0), fat (-100 to -50), air (-1000)",
   "MRI: T1-weighted (fat bright, water dark, good anatomy); T2 (water bright, good pathology, edema)",
   "MRI contraindications: pacemakers, cochlear implants, metallic foreign bodies; claustrophobia relative",
   "USG: real-time, no radiation; hyperechoic (bright = fat, calcification), hypoechoic (dark = fluid, cysts)",
   "Nuclear medicine: PET (FDG-F18 glucose analog, tumor activity); HIDA scan (hepatobiliary); thyroid scan",
   "Radiation dose: CXR (0.1 mSv), CT chest (7 mSv), mammogram (0.4 mSv); ALARA principle",
   "Contrast media: iodinated (CT), gadolinium (MRI, nephrogenic systemic fibrosis in CKD), barium (GI tract)",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Hampton's hump: wedge-shaped pleural-based opacity in pulmonary embolism (CXR)",
   "Westermark sign: oligemia distal to PE; Fleischner sign: enlarged pulmonary artery (CXR)",
   "Golden S sign: right upper lobe collapse + right hilum elevation + reverse S appearance of minor fissure",
   "Egg-shell calcification: lymph nodes in silicosis, sarcoidosis; on chest X-ray",
   "HRCT patterns: honeycombing (UIP/IPF), ground-glass (NSIP, COP, AIP), tree-in-bud (endobronchial spread TB)",
   "Stag-horn calculus: struvite; Proteus infection; fills renal pelvis + calyces; radio-opaque",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTGRN, "bullets": [
   "Interventional radiology: angioplasty, TIPS (transjugular intrahepatic portosystemic shunt), UAE, RFA",
   "Mammography: BIRADS 0-6 classification; 1-2 routine, 3 short interval follow-up, 4-5 biopsy, 6 known malignancy",
   "PYQ trend: Imaging modality of choice for various conditions, radiation protection, pregnancy safety",
   "Fluoroscopy: barium swallow (esophagus), barium meal (stomach/duodenum), enema (large bowel)",
  ]},
 ]
},

# 19. Anesthesia
{
 "name": "Anaesthesiology", "code": "19", "color": HexColor("#1b5e20"),
 "sections": [
  {"title": "HIGH-YIELD TOPICS", "bg": C_LTGRN, "bullets": [
   "ASA classification: I (normal), II (mild systemic), III (severe, not incapacitating), IV (severe, life-threatening), V (moribund)",
   "Inhalational agents: MAC (minimum alveolar concentration); halothane (hepatotoxic), sevoflurane (low MAC, pediatric), desflurane (rapid recovery)",
   "MAC values: N2O (104%), halothane (0.75%), isoflurane (1.2%), sevoflurane (2%), desflurane (6%); decreased by opioids, hypothermia",
   "IV induction: propofol (most common, antiemetic, pain on injection), ketamine (dissociative, bronchodilator, increases ICP/IOP), thiopentone (ultra-short barbiturate)",
   "Neuromuscular blockers: succinylcholine (depolarizing, fasciculations, hyperkalemia risk), rocuronium (non-depolarizing, reversed by sugammadex)",
   "Spinal anesthesia: L3-L4 or L4-L5; saddle block (L5-S1-S5); complications - headache (PDPH), hypotension",
   "Epidural vs Spinal: epidural - catheter, can top up, slower onset; spinal - single shot, faster, more reliable block",
   "Airway: Mallampati classification I-IV; RSI for full stomach (aspiration risk); Sellick's manoeuvre (cricoid pressure)",
   "Difficult airway: LEMON score; videolaryngoscope; fiberoptic intubation; surgical airway as last resort",
   "Malignant hyperthermia: volatile agents + suxamethonium; RYR1 mutation; hyperthermia + rigidity + acidosis; dantrolene",
  ]},
  {"title": "RECENT ONE-LINERS", "bg": C_LTRED, "oneliners": [
   "Brachial plexus blocks: interscalene (shoulder), supraclavicular (arm), axillary (hand); ultrasound-guided now standard",
   "TIVA (total IV anaesthesia): propofol + remifentanil infusion; BIS monitoring for depth",
   "Laryngeal mask airway (LMA): supraglottic; elective cases; does NOT protect against aspiration",
   "Rocuronium dose: 0.6 mg/kg for intubation; 1.2 mg/kg for RSI (equivalent to suxamethonium); reversed by sugammadex",
   "Pain management: WHO ladder (non-opioid -> weak opioid -> strong opioid); adjuvants at each step",
   "Post-operative shivering: treat with meperidine (pethidine) 25 mg IV; prevents heat loss",
  ]},
  {"title": "CONCEPTS & PYQ TRENDS", "bg": C_LTBLUE, "bullets": [
   "Breathing circuits: Mapleson A (efficient for spontaneous), D (efficient for controlled); circle system with CO2 absorber",
   "Fluid management: crystalloids (NS, RL) vs colloids; restricted vs liberal debate; goal-directed therapy",
   "PYQ trend: Bain circuit = Mapleson D modified; Jackson-Rees = Mapleson F for pediatrics",
   "Regional anesthesia advantages: avoids GA complications, ideal for elderly, day-case surgery, reduced PONV",
  ]},
 ]
},

]

# ─── PDF BUILDER ─────────────────────────────────────────────────────────────

def build_pdf():
    OUTPUT = "/home/daytona/workspace/neet-pg-atlas/NEET_PG_2026_Bootcamp_Atlas.pdf"
    styles = build_styles()

    doc = BaseDocTemplate(
        OUTPUT, pagesize=A4,
        leftMargin=20*mm, rightMargin=15*mm,
        topMargin=35*mm, bottomMargin=20*mm,
        title="NEET PG 2026 Bootcamp Atlas",
        author="Orris AI",
    )
    frame = Frame(
        doc.leftMargin, doc.bottomMargin,
        PAGE_W - doc.leftMargin - doc.rightMargin,
        PAGE_H - doc.topMargin - doc.bottomMargin,
        id='normal'
    )
    template = PageTemplate(id='main', frames=[frame], onPage=header_footer)
    doc.addPageTemplates([template])

    story = []

    # ── COVER PAGE ──────────────────────────────────────────────────────────
    story.append(Spacer(1, 30*mm))
    # Big cover box
    cover_data = [[
        Paragraph("NEET PG 2026", styles['cover_title']),
    ]]
    ct = Table(cover_data, colWidths=[165*mm])
    ct.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), C_NAVY),
        ('TOPPADDING', (0,0), (-1,-1), 15),
        ('BOTTOMPADDING', (0,0), (-1,-1), 5),
        ('LEFTPADDING', (0,0), (-1,-1), 10),
        ('RIGHTPADDING', (0,0), (-1,-1), 10),
    ]))
    story.append(ct)

    sub_data = [[
        Paragraph("BOOTCAMP ATLAS", ParagraphStyle('cs2', fontName="Helvetica-Bold", fontSize=26,
            textColor=HexColor("#64b5f6"), alignment=TA_CENTER, spaceAfter=4, leading=30)),
    ]]
    st = Table(sub_data, colWidths=[165*mm])
    st.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), C_NAVY),
        ('TOPPADDING', (0,0), (-1,-1), 0),
        ('BOTTOMPADDING', (0,0), (-1,-1), 15),
    ]))
    story.append(st)
    story.append(Spacer(1, 6*mm))

    info_rows = [
        ["All 19 Subjects  |  High-Yield Topics  |  Recent One-Liners  |  Concepts & PYQ Trends"],
        ["Exam Date: August 30, 2026  |  Days Remaining: 49"],
        ["Prepared by Orris AI  |  Version: July 2026"],
    ]
    for r in info_rows:
        p_style = ParagraphStyle('info', fontName="Helvetica", fontSize=11,
            textColor=C_NAVY, alignment=TA_CENTER, spaceAfter=4)
        story.append(Paragraph(r[0], p_style))

    story.append(Spacer(1, 10*mm))
    # Subject list on cover
    subj_list = [f"{s['code']}. {s['name']}" for s in SUBJECTS]
    half = len(subj_list)//2 + len(subj_list)%2
    left_col = subj_list[:half]
    right_col = subj_list[half:]
    rows = []
    for i in range(half):
        l = Paragraph(left_col[i], ParagraphStyle('sl', fontName="Helvetica", fontSize=9, textColor=C_NAVY, spaceAfter=2))
        r = Paragraph(right_col[i] if i < len(right_col) else "", ParagraphStyle('sr', fontName="Helvetica", fontSize=9, textColor=C_NAVY, spaceAfter=2))
        rows.append([l, r])

    cover_table = Table(rows, colWidths=[82*mm, 83*mm])
    cover_table.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), C_LTBLUE),
        ('LEFTPADDING', (0,0), (-1,-1), 10),
        ('RIGHTPADDING', (0,0), (-1,-1), 10),
        ('TOPPADDING', (0,0), (-1,-1), 4),
        ('BOTTOMPADDING', (0,0), (-1,-1), 4),
        ('GRID', (0,0), (-1,-1), 0.5, HexColor("#bbdefb")),
    ]))
    story.append(cover_table)
    story.append(PageBreak())

    # ── TABLE OF CONTENTS ───────────────────────────────────────────────────
    story.append(Paragraph("TABLE OF CONTENTS", styles['toc_title']))
    story.append(HRFlowable(width="100%", thickness=2, color=C_NAVY, spaceAfter=6))
    story.append(Spacer(1, 4*mm))
    for s in SUBJECTS:
        story.append(Paragraph(f"  {s['code']}.  {s['name']}", styles['toc_item']))
    story.append(PageBreak())

    # ── SUBJECT PAGES ────────────────────────────────────────────────────────
    for subj in SUBJECTS:
        # Subject header
        story.append(KeepTogether([
            subject_header(subj['name'], f"SUBJECT {subj['code']}", subj['color'], styles),
            Spacer(1, 4*mm),
        ]))

        for sec in subj['sections']:
            items = [
                Spacer(1, 2*mm),
                section_box(sec['title'], styles['h_section'], bg=sec['bg']),
                Spacer(1, 2*mm),
            ]
            if 'bullets' in sec:
                for b in sec['bullets']:
                    items.append(bullet(b, styles['bullet']))
            if 'oneliners' in sec:
                for o in sec['oneliners']:
                    items.append(oneliner(o, styles['oneliner']))
            items.append(Spacer(1, 2*mm))
            story.extend(items)

        story.append(HRFlowable(width="100%", thickness=1, color=subj['color'], spaceAfter=4))
        story.append(PageBreak())

    # ── BACK COVER ───────────────────────────────────────────────────────────
    story.append(Spacer(1, 20*mm))
    closing_data = [[
        Paragraph("FINAL BOOTCAMP TIPS", ParagraphStyle('bct', fontName="Helvetica-Bold",
            fontSize=18, textColor=C_WHITE, alignment=TA_CENTER)),
    ]]
    bt = Table(closing_data, colWidths=[165*mm])
    bt.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), C_NAVY),
        ('TOPPADDING', (0,0), (-1,-1), 12),
        ('BOTTOMPADDING', (0,0), (-1,-1), 12),
    ]))
    story.append(bt)
    story.append(Spacer(1, 4*mm))

    tips = [
        "1. Revise 2-3 subjects per day. Do not skip subjects - all 19 carry marks.",
        "2. Focus on high-frequency PYQ topics first, then new additions.",
        "3. One-liners are exam day gold - read them daily in the last week.",
        "4. Practice MCQs after each subject revision - not after finishing all subjects.",
        "5. Image-based questions: know key radiological, histological, and clinical images.",
        "6. Grand Tests (GTs): take at least 2 full-length mock tests before exam day.",
        "7. Sleep 7-8h the night before the exam. Avoid cramming new topics.",
        "8. Recent additions (2023-25): NMC NExT updates, new drug approvals, revised guidelines.",
        "9. Surgery + Medicine + OBG + Pediatrics = highest weightage subjects.",
        "10. Believe in your preparation. You have 49 days. Use them well. Best of luck!",
    ]
    for t in tips:
        story.append(Paragraph(t, ParagraphStyle('tip', fontName="Helvetica", fontSize=10,
            textColor=C_GREY, spaceAfter=5, leading=14, leftIndent=5)))

    doc.build(story)
    print(f"SUCCESS: PDF saved to {OUTPUT}")
    return OUTPUT

if __name__ == "__main__":
    build_pdf()
Running Command

cd /home/daytona/workspace/neet-pg-atlas && python3 generate_atlas.py 2>&1

Running Command

ls -lh /home/daytona/workspace/neet-pg-atlas/NEET_PG_2026_Bootcamp_Atlas.pdf

Your NEET PG 2026 Bootcamp Atlas is ready!

NEET PG 2026 Bootcamp Atlas

PDF Document · PDF


Here's what's inside the Atlas:
Structure (per subject):
  • High-Yield Topics - the 10 most exam-tested concepts with full detail
  • Recent One-Liners - 6 rapid-fire facts (arrow-marked for quick scanning)
  • Concepts & PYQ Trends - recurring exam patterns and new additions
All 19 Subjects covered:
#Subject#Subject
01Anatomy11Obstetrics & Gynaecology
02Physiology12Pediatrics
03Biochemistry13General Surgery
04Pathology14Orthopaedics
05Pharmacology15Internal Medicine
06Microbiology16Psychiatry
07Forensic Medicine & Toxicology17Dermatology
08Community Medicine (PSM)18Radiology & Imaging
09ENT19Anaesthesiology
10Ophthalmology
PDF features:
  • Professional Navy blue header/footer on every page
  • Color-coded subject banners
  • Table of Contents
  • 10 Final Bootcamp Tips at the end
  • Clean, readable 9-10pt body text with visual hierarchy
Suggested 49-day plan: Cover 2-3 subjects/day in rotating cycles, do MCQ drills after each, and in the final week read only one-liners + do full mock tests. Best of luck on August 30!

The pdf is not opening

Running Command

cd /home/daytona/workspace/neet-pg-atlas && python3 -c " from pypdf import PdfRe…

Running Command

ls -lh /home/daytona/workspace/neet-pg-atlas/ && file /home/daytona/workspace/ne…

The file is a valid PDF v1.4, 22 pages, 66KB - there's nothing wrong with it structurally. The issue is most likely on the download/viewing side. Here's what to try:
Option 1 - Try the link again:

NEET PG 2026 Bootcamp Atlas

PDF Document · PDF

Option 2 - If that still doesn't work, it could be a browser/viewer issue. Let me convert it to a different, more compatible format. Would you like me to:
  1. Re-generate as a PPTX (PowerPoint) - opens on any device
  2. Re-generate as a DOCX (Word) - easy to read/print
  3. Try a different PDF library (fpdf2 instead of ReportLab) which sometimes has better cross-device compatibility
Which would you prefer?

I want atleast 10 pages per subject in which all topic is covered also it had atleat 100 one linear, buzzwords, flashcards, mnemonic, pyq’s etc means all important topic

I want atleast 10 pages per subject in which all topic is covered also it had atleat 100 one linear, buzzwords, flashcards, mnemonic, pyq’s etc means all important topic it should be enough to score 650+ marks out of 720

I want atleast 10 pages per subject in which all topic is covered also it had atleat 100 one linear, buzzwords, flashcards, mnemonic, pyq’s etc means all important topic it should be enough to score 650+ marks out of 720 first give me medicine with integration of physiology pathology and pharmacology

I want atleast 10 pages per subject in which all topic is covered also it had atleat 100 one linear, buzzwords, flashcards, mnemonic, pyq’s etc means all important topic it should be enough to score 650+ marks out of 720 first give me medicine with integration of physiology pathology and pharmacology.

This is a shared conversation. Sign in to Orris to start your own chat.