lower limb for neet pg

Reading File
Asking for Preferences
Finding Sources
Searching the Web

lower limb anatomy high yield NEET PG nerve injuries muscles bones

Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Finding Sources
I now have enough data to write comprehensive NEET PG high-yield notes. Let me compile everything.

Lower Limb - High-Yield NEET PG Notes

(Gray's Anatomy for Students + Bradley & Daroff's Neurology)

1. REGIONS OF THE LOWER LIMB

RegionBoundaries
Gluteal regionIliac crest to gluteal fold (posterolateral)
ThighInguinal ligament to knee joint (anterior); gluteal fold to knee (posterior)
LegKnee to ankle joint
FootDistal to ankle joint
Key transition areas: Femoral triangle, popliteal fossa, tarsal tunnel (posteromedial ankle)

2. BONES - HIGH YIELD

Femur

  • Largest bone in the body
  • Head articulates with acetabulum; neck-shaft angle ~126° (coxa vara <120°, coxa valga >135°)
  • Greater trochanter = attachment of gluteus medius & minimus
  • Lesser trochanter = insertion of iliopsoas
  • Linea aspera = posterior ridge, attachment for many muscles

Tibia & Fibula

  • Tibia is weight-bearing; fibula is non-weight-bearing
  • Tibial tuberosity = patellar tendon insertion

Foot Bones (7 tarsals)

  • Proximal group: Talus + Calcaneus (largest tarsal)
  • Intermediate: Navicular
  • Distal group: 3 Cuneiforms + Cuboid
  • 5 metatarsals + phalanges (great toe has 2; others have 3)

3. NERVES - THE MOST TESTED TOPIC

Lumbar Plexus (L1-L4) - anterior compartment

NerveRootsKey MusclesSensory
Femoral nerveL2, L3, L4Quadriceps femoris (knee extension), iliopsoas, sartorius, pectineusAnterior thigh + medial leg (via saphenous)
Obturator nerveL2, L3, L4All medial compartment (adductors), except adductor magnus (ischial part)Medial upper thigh
Lateral cutaneous nerve of thighL2, L3None (purely sensory)Lateral thigh
Ilio-inguinal nerveL1NoneMedial upper thigh + perineum
Genitofemoral nerveL1, L2Cremaster (genital branch)Femoral branch = upper central anterior thigh

Sacral Plexus (L4-S3) - posterior compartment

NerveRootsKey MusclesSensory
Sciatic nerveL4-S3All posterior thigh + all leg & foot musclesLateral leg, lateral foot, sole
Superior gluteal nerveL4-S1Gluteus medius, gluteus minimus, tensor fasciae lataeNone
Inferior gluteal nerveL5-S2Gluteus maximusNone
Posterior cutaneous nerve of thighS1-S3NonePosterior thigh
Pudendal nerveS2-S4Perineal musclesPerineum

Sciatic Nerve Branches

The sciatic nerve (largest nerve in the body, L4-S3) divides in the upper popliteal fossa into:
Tibial nerve (L4-S3 - anterior divisions):
  • All posterior compartment of thigh (except short head of biceps femoris)
  • All posterior compartment of leg
  • All intrinsic muscles of sole
  • Skin: posterolateral lower leg + sole + lateral foot + little toe
Common fibular nerve (L4-S2 - posterior divisions):
  • Short head of biceps femoris (posterior thigh)
  • ALL anterior compartment of leg (tibialis anterior, extensor digitorum longus, extensor hallucis longus)
  • ALL lateral compartment of leg (fibularis longus & brevis)
  • Extensor digitorum brevis (dorsal foot)
  • Skin: lateral leg, lateral ankle, dorsum of foot & toes
Memory trick: Tibial = Toe curlers (plantarflexion/inversion). Common Fibular = Foot dorsiflexion & eversion.

4. CLINICAL NERVE INJURIES - HIGHEST YIELD FOR NEET PG

Common Fibular (Peroneal) Nerve Injury ⭐⭐⭐

  • Site: Neck of fibula (most vulnerable point - wraps around it superficially)
  • Causes: Fibular neck fracture, tight cast/brace, prolonged bed rest with leg externally rotated, knee dislocation, arthroscopy
  • Deformity: Foot drop (loss of dorsiflexion + eversion)
  • Sensory loss: Lateral leg + dorsum of foot
  • Gait: High-stepping (steppage) gait
  • Also: Wasting of anterior tibial and fibular muscles

Sciatic Nerve Injury

  • Sites: Misplaced IM injection in gluteal region (should be upper outer quadrant), hip fracture/dislocation, posterior approach hip replacement surgery
  • Complete lesion: Weakness of all knee flexors + all muscles below knee + sensory loss of entire foot & leg (except medial leg supplied by saphenous nerve)
  • Note: Fibular division is more commonly affected than tibial in proximal sciatic lesions (fibular fascicles fewer, less supported, taut at sciatic notch)

Piriformis Syndrome

  • Sciatic nerve compressed by piriformis muscle
  • Buttock pain on prolonged sitting, hip adduction/internal rotation
  • AIF maneuver (Adduction, Internal rotation, Flexion) = diagnostic
  • EDX usually normal

Superior Gluteal Nerve Injury ⭐⭐

  • Denervation of gluteus medius + minimus + TFL
  • Trendelenburg sign: Pelvis drops on contralateral side when standing on ipsilateral leg
  • Trendelenburg gait (waddling gait)
  • Common cause: Misplaced IM injection, hip surgery

Femoral Nerve Injury

  • Loss of knee extension (quadriceps paralysis)
  • Loss of knee jerk reflex
  • Sensory loss: Anterior thigh + medial leg (saphenous nerve)
  • Gait: Patient locks knee in hyperextension while walking

Obturator Nerve Injury

  • Relatively protected; damaged during childbirth or pelvic surgery
  • Loss of adduction + sensory deficit on medial thigh

Lateral Cutaneous Nerve of Thigh - Meralgia Paresthetica ⭐⭐

  • L2, L3; purely sensory (no motor)
  • Entrapment under inguinal ligament near ASIS
  • Burning/tingling/numbness on lateral thigh
  • Common in obesity, pregnancy, tight belts
  • Treatment: Conservative (weight loss), steroid injection; rarely decompression

5. FEMORAL TRIANGLE ⭐⭐

Boundaries:
  • Base (top): Inguinal ligament
  • Medial border: Medial border of adductor longus
  • Lateral border: Medial border of sartorius
  • Floor: Iliopsoas (laterally) + pectineus + adductor longus (medially)
  • Apex: Points inferiorly, continuous with adductor canal
Contents (lateral to medial) - "NAVY":
  • Nerve (femoral) - lateral to sheath
  • Artery (femoral)
  • Vein (femoral)
  • Y-lymphatics (in femoral canal = most medial compartment of femoral sheath)
Femoral hernia passes through the femoral canal (medial compartment of femoral sheath). More common in women. Inferior and lateral to pubic tubercle (unlike inguinal hernia which is superior and medial).
Femoral artery pulse: Palpable just inferior to inguinal ligament, midway between the ASIS and pubic symphysis (= mid-inguinal point).

6. ADDUCTOR CANAL (Hunter's Canal)

  • Fascial tunnel on medial thigh, from apex of femoral triangle to adductor hiatus
  • Contains: Femoral artery + vein, saphenous nerve (branch of femoral nerve)
  • Femoral artery/vein pass through adductor hiatus (opening in adductor magnus) to become popliteal vessels

7. POPLITEAL FOSSA

Boundaries:
  • Superior-medial: Semimembranosus + semitendinosus
  • Superior-lateral: Biceps femoris
  • Inferior-medial: Medial head of gastrocnemius
  • Inferior-lateral: Lateral head of gastrocnemius
  • Floor: Popliteal surface of femur + posterior knee capsule + popliteus
Contents:
  • Popliteal artery (deepest - closest to bone)
  • Popliteal vein
  • Common fibular + tibial nerves (most superficial)
  • Small saphenous vein (drains here)
  • Popliteal lymph nodes
Order from bone outward: Art, Vein, Nerve (AVN)

8. MAJOR VESSELS

VesselOriginKey Points
Femoral arteryExternal iliac (below inguinal ligament)Palpable at mid-inguinal point; becomes popliteal at adductor hiatus
Profunda femorisFemoral artery (2-3 cm below inguinal lig.)Main blood supply to thigh; gives medial & lateral circumflex femoral aa.
Medial circumflex femoral a.Profunda femorisMain supply to head of femur - at risk in femoral neck fractures
Popliteal arteryContinuation of femoralDivides into anterior + posterior tibial aa.
Anterior tibial a.PoplitealBecomes dorsalis pedis at ankle
Posterior tibial a.PoplitealPalpable posterior to medial malleolus; gives fibular (peroneal) a.
Dorsalis pedisAnterior tibialPalpable on dorsum of foot
Great saphenous vein:
  • Longest vein in body
  • Passes anterior to medial malleolus → medial leg → medial knee → drains into femoral vein at saphenous opening (fossa ovalis), 3-4 cm inferolateral to pubic tubercle
  • Accompanied by saphenous nerve in leg

9. MUSCLE COMPARTMENTS OF THE LEG

CompartmentKey MusclesNerveAction
AnteriorTibialis anterior, EHL, EDL, fibularis tertiusDeep fibularDorsiflexion, toe extension, inversion
LateralFibularis longus, fibularis brevisSuperficial fibularEversion, weak plantarflexion
Posterior (superficial)Gastrocnemius, soleus, plantarisTibialPlantarflexion
Posterior (deep)Tibialis posterior, FHL, FDL, popliteusTibialInversion, toe flexion
Compartment syndrome most common in anterior compartment of leg after tibial fractures.

10. GLUTEAL REGION - KEY MUSCLES

MuscleNerveActionClinical
Gluteus maximusInferior gluteal (L5-S2)Hip extension + lateral rotationWeak going upstairs
Gluteus mediusSuperior gluteal (L4-S1)Hip abductionTrendelenburg if paralyzed
Gluteus minimusSuperior gluteal (L4-S1)Hip abductionSame as medius
PiriformisNerve to piriformis (S1-S2)Lateral rotationPiriformis syndrome
Tensor fasciae lataeSuperior gluteal (L4-S1)Abduction + medial rotationIT band syndrome
Safe injection site in gluteal region: Upper outer quadrant (avoids sciatic nerve and superior gluteal vessels/nerves)

11. QUICK-FIRE HIGH-YIELD FACTS FOR NEET PG

FactAnswer
Largest nerve in the bodySciatic nerve
Longest vein in the bodyGreat saphenous vein
Largest tarsal boneCalcaneus
Foot drop causeCommon fibular nerve injury at fibular neck
Trendelenburg sign causeSuperior gluteal nerve palsy
Nerve for knee jerkFemoral nerve (L3, L4)
Nerve for ankle jerkTibial nerve (S1, S2)
Femoral hernia (vs inguinal)Inferior and lateral to pubic tubercle
Meralgia paresthetica nerveLateral cutaneous nerve of thigh (L2, L3)
Safe IM injection siteUpper outer quadrant of gluteal region
Profunda femoris originFemoral artery, 2-3 cm below inguinal ligament
Main blood supply to femoral headMedial circumflex femoral artery
Muscle unlocking the kneePopliteus (lateral rotation of femur on tibia)
Muscle attached to iliotibial bandTensor fasciae latae + gluteus maximus
Nerve at risk in knee dislocationCommon fibular nerve
Sciatic nerve exit from pelvisGreater sciatic foramen, below piriformis
Superior gluteal nerve exitGreater sciatic foramen, above piriformis

12. DERMATOMES - QUICK MAP

DermatomeArea
L1Inguinal region / groin
L2Anterior upper thigh
L3Anterior lower thigh / knee
L4Medial leg + medial dorsum of foot
L5Lateral leg + dorsum of foot + great toe
S1Sole + lateral foot + little toe
S2Posterior thigh
S3-S4Perineum

13. REFLEXES

ReflexRootNerve
Knee jerk (patellar)L3-L4Femoral
Ankle jerk (Achilles)S1-S2Tibial
Plantar reflex (Babinski)S1-S2Tibial

Sources: Gray's Anatomy for Students (9780323934237); Bradley and Daroff's Neurology in Clinical Practice (9780323642613)

Study tip for NEET PG: Nerve injury questions are the most frequently tested. Memorize: foot drop = common fibular nerve at fibular neck; Trendelenburg = superior gluteal nerve; femoral hernia path via femoral canal (medial femoral sheath); and the NAVY mnemonic for the femoral triangle. The saphenous nerve is the only femoral nerve branch that goes below the knee - tested in questions about medial leg sensory loss after knee surgery.

Create a presentation summarizing lower limb anatomy MCQ patterns for NEET PG

Reading File
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/lower-limb-neet

Writing File

~/lower-limb-neet/create_pptx.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Lower Limb Anatomy - NEET PG MCQ Patterns";
pres.author = "Orris";

// ─── COLOUR PALETTE ───────────────────────────────────────────────
const C = {
  navy:    "0A1931",   // dominant dark
  teal:    "0D7377",   // accent
  gold:    "F4A01C",   // highlight / star
  cream:   "F8F4EE",   // light bg
  white:   "FFFFFF",
  red:     "E53E3E",   // danger/wrong
  green:   "2D8A4E",   // correct answer
  gray:    "6B7280",
  lgray:   "E5E7EB",
  purple:  "553C9A",
  orange:  "C05621",
};

// ─── HELPER: SECTION HEADER SLIDE ─────────────────────────────────
function sectionSlide(pres, num, title, subtitle) {
  const sl = pres.addSlide();
  // Full dark bg
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  // Accent bar left
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.35, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
  // Big number
  sl.addText(`${num}`, { x: 0.6, y: 0.5, w: 2, h: 2, fontSize: 96, bold: true, color: C.teal, valign: "top" });
  // Title
  sl.addText(title, { x: 0.6, y: 2.3, w: 8.8, h: 1.2, fontSize: 38, bold: true, color: C.white, valign: "middle" });
  // Subtitle
  if (subtitle) {
    sl.addText(subtitle, { x: 0.6, y: 3.4, w: 8.8, h: 0.8, fontSize: 18, color: C.gold, italic: true });
  }
  // Gold bottom stripe
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.gold }, line: { color: C.gold } });
  return sl;
}

// ─── HELPER: CONTENT SLIDE (2-column) ─────────────────────────────
function contentSlide2Col(pres, title, col1Title, col1Items, col2Title, col2Items, accentColor) {
  const acc = accentColor || C.teal;
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  // Header bar
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
  sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });

  // Col 1
  sl.addShape(pres.shapes.RECTANGLE, { x: 0.25, y: 0.9, w: 4.5, h: 4.5, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 4, offset: 1, angle: 135, opacity: 0.10 } });
  sl.addText(col1Title, { x: 0.35, y: 0.95, w: 4.3, h: 0.45, fontSize: 14, bold: true, color: acc });
  const c1 = col1Items.map((t, i) => ({
    text: t,
    options: { bullet: { type: "number", indent: 15 }, fontSize: 12.5, color: C.navy, breakLine: i < col1Items.length - 1 }
  }));
  sl.addText(c1, { x: 0.35, y: 1.42, w: 4.3, h: 3.8 });

  // Col 2
  sl.addShape(pres.shapes.RECTANGLE, { x: 5.25, y: 0.9, w: 4.5, h: 4.5, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 4, offset: 1, angle: 135, opacity: 0.10 } });
  sl.addText(col2Title, { x: 5.35, y: 0.95, w: 4.3, h: 0.45, fontSize: 14, bold: true, color: acc });
  const c2 = col2Items.map((t, i) => ({
    text: t,
    options: { bullet: { type: "number", indent: 15 }, fontSize: 12.5, color: C.navy, breakLine: i < col2Items.length - 1 }
  }));
  sl.addText(c2, { x: 5.35, y: 1.42, w: 4.3, h: 3.8 });
  return sl;
}

// ─── HELPER: MCQ CARD SLIDE ────────────────────────────────────────
function mcqSlide(pres, qNum, question, options, correctIdx, explanation) {
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  // Top accent strip
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.gold }, line: { color: C.gold } });
  // Q number badge
  sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.2, w: 1.0, h: 0.5, fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.08 });
  sl.addText(`Q ${qNum}`, { x: 0.3, y: 0.2, w: 1.0, h: 0.5, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle" });
  // Question text
  sl.addText(question, { x: 0.3, y: 0.85, w: 9.4, h: 0.85, fontSize: 16.5, bold: true, color: C.white, valign: "top" });

  // Options
  const optColors = ["3A5A8C", "3A5A8C", "3A5A8C", "3A5A8C"];
  optColors[correctIdx] = C.green;
  const labels = ["A", "B", "C", "D"];
  const xs = [0.3, 5.15];
  const ys = [1.85, 2.65];

  options.forEach((opt, i) => {
    const col = i < 2 ? 0 : 1;
    const row = i % 2;
    const ox = xs[col];
    const oy = ys[row];
    sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: ox, y: oy, w: 4.6, h: 0.65, fill: { color: optColors[i] }, line: { color: optColors[i] }, rectRadius: 0.07 });
    // Label circle
    sl.addShape(pres.shapes.ELLIPSE, { x: ox + 0.08, y: oy + 0.1, w: 0.45, h: 0.45, fill: { color: i === correctIdx ? "1A5E35" : "1E3A6E" }, line: { color: i === correctIdx ? "1A5E35" : "1E3A6E" } });
    sl.addText(labels[i], { x: ox + 0.08, y: oy + 0.1, w: 0.45, h: 0.45, fontSize: 13, bold: true, color: C.gold, align: "center", valign: "middle" });
    sl.addText(opt, { x: ox + 0.62, y: oy + 0.04, w: 3.85, h: 0.57, fontSize: 12.5, color: C.white, valign: "middle" });
  });

  // Explanation box
  sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 3.55, w: 9.4, h: 1.8, fill: { color: "0D2B3E" }, line: { color: C.teal }, rectRadius: 0.1 });
  sl.addText("Explanation", { x: 0.5, y: 3.62, w: 2.5, h: 0.35, fontSize: 12, bold: true, color: C.gold });
  sl.addText(explanation, { x: 0.5, y: 3.98, w: 9.0, h: 1.3, fontSize: 12, color: "B0C4D8", valign: "top" });
  return sl;
}

// ─── HELPER: TABLE SLIDE ──────────────────────────────────────────
function tableSlide(pres, title, headers, rows, accentColor) {
  const acc = accentColor || C.teal;
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
  sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });

  const colW = 9.5 / headers.length;
  const tableData = [
    headers.map(h => ({ text: h, options: { bold: true, color: C.white, fontSize: 12, fill: acc, align: "center" } })),
    ...rows.map((row, ri) => row.map(cell => ({
      text: cell,
      options: { fontSize: 11, color: C.navy, fill: ri % 2 === 0 ? C.white : "EFF6FF", align: "left" }
    })))
  ];
  sl.addTable(tableData, { x: 0.25, y: 0.9, w: 9.5, colW: Array(headers.length).fill(colW), border: { pt: 0.5, color: C.lgray }, autoPage: false });
  return sl;
}

// ─── HELPER: BULLET SLIDE ─────────────────────────────────────────
function bulletSlide(pres, title, items, accentColor, badgeItems) {
  const acc = accentColor || C.teal;
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: acc }, line: { color: acc } });
  sl.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });

  const richItems = items.map((item, i) => {
    const isLast = i === items.length - 1;
    if (typeof item === "string") {
      return { text: item, options: { bullet: { code: "25B6", color: acc }, fontSize: 13, color: C.navy, breakLine: !isLast, paraSpaceAfter: 4 } };
    }
    return item;
  });
  sl.addText(richItems, { x: 0.4, y: 0.88, w: 9.2, h: 4.6, valign: "top" });

  if (badgeItems) {
    badgeItems.forEach((b, i) => {
      const bx = 0.4 + (i % 3) * 3.1;
      const by = 0.88 + Math.floor(i / 3) * 0.75;
      sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: bx, y: by, w: 2.9, h: 0.6, fill: { color: acc }, line: { color: acc }, rectRadius: 0.08 });
      sl.addText(b, { x: bx + 0.1, y: by, w: 2.7, h: 0.6, fontSize: 12, color: C.white, bold: true, valign: "middle" });
    });
  }
  return sl;
}

// ═══════════════════════════════════════════════════════════════════
//  SLIDES
// ═══════════════════════════════════════════════════════════════════

// ── SLIDE 1: TITLE ─────────────────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  // Teal accent left
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
  // Gold triangle top-right decorative
  sl.addShape(pres.shapes.RIGHT_TRIANGLE, { x: 7.5, y: 0, w: 2.5, h: 2.5, fill: { color: "0D3B6E" }, line: { color: "0D3B6E" } });
  // NEET PG badge
  sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7, y: 0.35, w: 2.2, h: 0.55, fill: { color: C.gold }, line: { color: C.gold }, rectRadius: 0.08 });
  sl.addText("NEET PG  2026", { x: 0.7, y: 0.35, w: 2.2, h: 0.55, fontSize: 13, bold: true, color: C.navy, align: "center", valign: "middle" });
  // Main title
  sl.addText("LOWER LIMB", { x: 0.7, y: 1.05, w: 8.8, h: 1.0, fontSize: 52, bold: true, color: C.white, charSpacing: 4 });
  sl.addText("ANATOMY", { x: 0.7, y: 1.9, w: 8.8, h: 0.85, fontSize: 52, bold: true, color: C.teal, charSpacing: 4 });
  sl.addText("MCQ Patterns & High-Yield Notes", { x: 0.7, y: 2.85, w: 8.8, h: 0.5, fontSize: 20, color: C.gold, italic: true });
  // Divider
  sl.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 3.45, w: 5, h: 0.04, fill: { color: C.teal }, line: { color: C.teal } });
  // Topics row
  const topics = ["Nerves", "Vessels", "Muscles", "Joints", "Clinical"];
  topics.forEach((t, i) => {
    sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7 + i * 1.85, y: 3.65, w: 1.65, h: 0.45, fill: { color: "0D3B6E" }, line: { color: C.teal }, rectRadius: 0.07 });
    sl.addText(t, { x: 0.7 + i * 1.85, y: 3.65, w: 1.65, h: 0.45, fontSize: 12, color: C.white, align: "center", valign: "middle" });
  });
  // Bottom bar
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.gold }, line: { color: C.gold } });
  sl.addText("Based on Gray's Anatomy for Students & Bradley-Daroff's Neurology", { x: 0.3, y: 5.3, w: 9.4, h: 0.325, fontSize: 10, color: C.navy, valign: "middle", italic: true });
}

// ── SLIDE 2: TABLE OF CONTENTS ─────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.navy }, line: { color: C.navy } });
  sl.addText("WHAT'S INSIDE", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.white, valign: "middle" });

  const sections = [
    { num: "01", title: "Regions, Bones & Compartments", icon: "▦" },
    { num: "02", title: "Nerve Map (Lumbar + Sacral Plexus)", icon: "⚡" },
    { num: "03", title: "Femoral Triangle & Adductor Canal", icon: "▲" },
    { num: "04", title: "Vessels & Blood Supply", icon: "♥" },
    { num: "05", title: "Clinical Nerve Injuries (MCQ Goldmine)", icon: "★" },
    { num: "06", title: "Dermatomes & Reflexes", icon: "◉" },
    { num: "07", title: "Practice MCQs with Explanations", icon: "✎" },
    { num: "08", title: "Quick-Fire High-Yield Facts", icon: "⚑" },
  ];

  sections.forEach((s, i) => {
    const col = i < 4 ? 0 : 1;
    const row = i % 4;
    const bx = col === 0 ? 0.25 : 5.15;
    const by = 0.9 + row * 1.12;
    sl.addShape(pres.shapes.RECTANGLE, { x: bx, y: by, w: 4.65, h: 0.92, fill: { color: C.white }, line: { color: C.lgray }, shadow: { type: "outer", color: "000000", blur: 3, offset: 1, angle: 135, opacity: 0.08 } });
    sl.addShape(pres.shapes.RECTANGLE, { x: bx, y: by, w: 0.55, h: 0.92, fill: { color: C.teal }, line: { color: C.teal } });
    sl.addText(s.num, { x: bx, y: by, w: 0.55, h: 0.92, fontSize: 15, bold: true, color: C.white, align: "center", valign: "middle" });
    sl.addText(s.title, { x: bx + 0.65, y: by + 0.05, w: 3.85, h: 0.82, fontSize: 12.5, color: C.navy, valign: "middle", bold: false });
  });
}

// ── SLIDE 3: SECTION 1 HEADER ──────────────────────────────────────
sectionSlide(pres, "01", "Regions, Bones & Compartments", "Foundations — Always in 1-2 MCQs");

// ── SLIDE 4: BONES & COMPARTMENTS ─────────────────────────────────
contentSlide2Col(pres, "BONES — HIGH YIELD FACTS",
  "Femur Key Points",
  [
    "Largest bone in the body",
    "Neck-shaft angle ≈ 126° (normal)",
    "Coxa vara: angle < 120°",
    "Coxa valga: angle > 135°",
    "Greater trochanter → Glut. med & min",
    "Lesser trochanter → Iliopsoas insertion",
    "Medial circumflex femoral a. → head of femur supply",
  ],
  "Tarsal Bones (7) — Mnemonic",
  [
    "The Cavalry Never Marches Curiously Clumsy",
    "Talus, Calcaneus (proximal group)",
    "Navicular (intermediate)",
    "3 Cuneiforms + Cuboid (distal group)",
    "Calcaneus = largest tarsal bone",
    "Great toe has 2 phalanges; others = 3",
    "5 metatarsals; I (medial) to V (lateral)",
  ],
  C.teal
);

// ── SLIDE 5: LEG COMPARTMENTS TABLE ───────────────────────────────
tableSlide(pres, "COMPARTMENTS OF THE LEG — Tested Every Year",
  ["Compartment", "Key Muscles", "Nerve", "Action"],
  [
    ["Anterior", "Tib. anterior, EHL, EDL", "Deep fibular", "Dorsiflexion, toe extension"],
    ["Lateral", "Fibularis longus & brevis", "Superficial fibular", "Eversion, weak plantarflex."],
    ["Post. Superficial", "Gastrocnemius, Soleus", "Tibial", "Plantarflexion"],
    ["Post. Deep", "Tib. posterior, FHL, FDL", "Tibial", "Inversion, toe flexion"],
    ["★ Most affected by compartment syndrome", "→ ANTERIOR compartment", "after tibial fracture", ""],
  ],
  C.navy
);

// ── SLIDE 6: SECTION 2 HEADER ──────────────────────────────────────
sectionSlide(pres, "02", "Nerve Map", "Lumbar + Sacral Plexus — Most MCQs Tested Here");

// ── SLIDE 7: LUMBAR PLEXUS TABLE ──────────────────────────────────
tableSlide(pres, "LUMBAR PLEXUS NERVES (L1–L4)",
  ["Nerve", "Roots", "Key Muscles Supplied", "Sensory Area"],
  [
    ["Femoral", "L2-L4", "Quadriceps, iliopsoas, sartorius, pectineus", "Anterior thigh + medial leg (saphenous)"],
    ["Obturator", "L2-L4", "All medial compartment (adductors)", "Medial upper thigh"],
    ["Lat. cutaneous n. of thigh", "L2-L3", "None (purely sensory)", "Lateral thigh"],
    ["Ilio-inguinal", "L1", "None", "Medial upper thigh + perineum"],
    ["Genitofemoral", "L1-L2", "Cremaster (genital br.)", "Upper central anterior thigh"],
  ],
  C.purple
);

// ── SLIDE 8: SACRAL PLEXUS TABLE ──────────────────────────────────
tableSlide(pres, "SACRAL PLEXUS NERVES (L4–S3)",
  ["Nerve", "Roots", "Key Muscles", "Notes"],
  [
    ["Sciatic (largest n. in body)", "L4-S3", "All post. thigh, leg & foot", "Exits below piriformis"],
    ["Superior gluteal", "L4-S1", "Glut. med, min, TFL", "Exits ABOVE piriformis"],
    ["Inferior gluteal", "L5-S2", "Gluteus maximus only", "Exits below piriformis"],
    ["Post. cut. n. of thigh", "S1-S3", "None", "Posterior thigh sensation"],
    ["Tibial (sciatic br.)", "L4-S3 ant.", "Post. thigh + leg + sole", "Ankle jerk S1-S2"],
    ["Common fibular (sciatic br.)", "L4-S2 post.", "Ant. & lat. compartments of leg", "Foot drop if injured"],
  ],
  C.teal
);

// ── SLIDE 9: SECTION 3 HEADER ──────────────────────────────────────
sectionSlide(pres, "03", "Femoral Triangle & Adductor Canal", "A favourite MCQ topic");

// ── SLIDE 10: FEMORAL TRIANGLE ────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.purple }, line: { color: C.purple } });
  sl.addText("FEMORAL TRIANGLE — BOUNDARIES & CONTENTS", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 20, bold: true, color: C.white, valign: "middle" });

  // Triangle diagram (left column)
  // Base
  sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.95, w: 4.2, h: 0.55, fill: { color: C.navy }, line: { color: C.navy } });
  sl.addText("BASE: Inguinal Ligament", { x: 0.5, y: 0.95, w: 4.2, h: 0.55, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle" });
  // Medial border
  sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 1.55, w: 1.9, h: 0.52, fill: { color: C.teal }, line: { color: C.teal } });
  sl.addText("Medial: Adductor longus", { x: 0.5, y: 1.55, w: 1.9, h: 0.52, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
  // Lateral border
  sl.addShape(pres.shapes.RECTANGLE, { x: 2.8, y: 1.55, w: 1.9, h: 0.52, fill: { color: C.teal }, line: { color: C.teal } });
  sl.addText("Lateral: Sartorius", { x: 2.8, y: 1.55, w: 1.9, h: 0.52, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
  // Floor
  sl.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 2.15, w: 4.2, h: 0.52, fill: { color: "3A5A8C" }, line: { color: "3A5A8C" } });
  sl.addText("Floor: Iliopsoas (lat.) + Pectineus & Adductor longus (med.)", { x: 0.5, y: 2.15, w: 4.2, h: 0.52, fontSize: 10, color: C.white, align: "center", valign: "middle" });
  // Apex
  sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 1.8, y: 2.75, w: 1.6, h: 0.5, fill: { color: C.gold }, line: { color: C.gold }, rectRadius: 0.08 });
  sl.addText("APEX → Adductor Canal", { x: 1.8, y: 2.75, w: 1.6, h: 0.5, fontSize: 10, bold: true, color: C.navy, align: "center", valign: "middle" });
  // Arrow
  sl.addShape(pres.shapes.RECTANGLE, { x: 2.47, y: 3.3, w: 0.06, h: 0.5, fill: { color: C.gray }, line: { color: C.gray } });

  // NAVY mnemonic (right column)
  sl.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 0.88, w: 4.55, h: 4.55, fill: { color: C.white }, line: { color: C.lgray } });
  sl.addText("CONTENTS (Lateral → Medial)", { x: 5.35, y: 0.93, w: 4.25, h: 0.4, fontSize: 13, bold: true, color: C.purple });
  sl.addText("Mnemonic: N A V Y", { x: 5.35, y: 1.33, w: 4.25, h: 0.4, fontSize: 16, bold: true, color: C.gold });

  const navy = [
    { letter: "N", word: "Nerve", detail: "Femoral nerve (lateral to sheath, NOT inside it)" },
    { letter: "A", word: "Artery", detail: "Femoral artery — palpable at mid-inguinal point" },
    { letter: "V", word: "Vein", detail: "Femoral vein" },
    { letter: "Y", word: "\"Y\"mphatics", detail: "In femoral canal → site of femoral hernia" },
  ];
  navy.forEach((n, i) => {
    const by = 1.82 + i * 0.82;
    sl.addShape(pres.shapes.ELLIPSE, { x: 5.35, y: by + 0.05, w: 0.5, h: 0.5, fill: { color: C.teal }, line: { color: C.teal } });
    sl.addText(n.letter, { x: 5.35, y: by + 0.05, w: 0.5, h: 0.5, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle" });
    sl.addText(n.word, { x: 5.95, y: by, w: 1.1, h: 0.3, fontSize: 13, bold: true, color: C.navy });
    sl.addText(n.detail, { x: 5.95, y: by + 0.28, w: 3.65, h: 0.45, fontSize: 10.5, color: C.gray });
  });

  // Femoral hernia note
  sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.5, y: 3.9, w: 4.2, h: 1.45, fill: { color: "FFF7E0" }, line: { color: C.gold }, rectRadius: 0.1 });
  sl.addText("★  FEMORAL HERNIA", { x: 0.65, y: 3.97, w: 3.9, h: 0.38, fontSize: 13, bold: true, color: C.orange });
  sl.addText("• Passes through femoral canal (medial femoral sheath)\n• Inferior and lateral to pubic tubercle\n• More common in women; high risk of strangulation", { x: 0.65, y: 4.35, w: 3.9, h: 0.95, fontSize: 11, color: C.navy });
}

// ── SLIDE 11: SECTION 4 HEADER ─────────────────────────────────────
sectionSlide(pres, "04", "Vessels & Blood Supply", "Femoral → Popliteal → Tibial arteries");

// ── SLIDE 12: VESSELS TABLE ───────────────────────────────────────
tableSlide(pres, "MAJOR VESSELS OF THE LOWER LIMB",
  ["Vessel", "Origin", "Key Clinical Point"],
  [
    ["Femoral artery", "External iliac (below ing. lig.)", "Palpable at mid-inguinal point; continues as popliteal via adductor hiatus"],
    ["Profunda femoris", "Femoral a. (2-3 cm below ing. lig.)", "Main supply to thigh; gives medial & lateral circumflex femoral aa."],
    ["Medial circumflex femoral a.", "Profunda femoris", "★ Main blood supply to head of femur — at risk in femoral neck fractures"],
    ["Great saphenous vein", "Dorsal venous arch of foot", "Longest vein in body; passes anterior to medial malleolus; drains → femoral vein"],
    ["Popliteal artery", "Femoral a. (at adductor hiatus)", "Deepest structure in popliteal fossa (closest to bone). AVN order"],
    ["Anterior tibial a.", "Popliteal", "Becomes dorsalis pedis at ankle — palpable on dorsum of foot"],
    ["Posterior tibial a.", "Popliteal", "Palpable posterior to medial malleolus; gives fibular (peroneal) a."],
  ],
  C.teal
);

// ── SLIDE 13: SECTION 5 HEADER ─────────────────────────────────────
sectionSlide(pres, "05", "Clinical Nerve Injuries", "MCQ Goldmine — 3-4 Questions Every Exam");

// ── SLIDE 14: NERVE INJURIES TABLE ────────────────────────────────
tableSlide(pres, "NERVE INJURY PATTERNS — HIGH YIELD",
  ["Nerve", "Site of Injury", "Deformity / Sign", "Gait"],
  [
    ["Common fibular (peroneal)", "Neck of fibula", "FOOT DROP (loss of dorsiflexion + eversion)", "High-stepping (steppage) gait"],
    ["Superior gluteal", "Misplaced IM injection / hip surgery", "Trendelenburg sign (pelvis drops contralat.)", "Waddling (Trendelenburg) gait"],
    ["Femoral nerve", "Femoral triangle / inguinal region", "Loss of knee extension; absent knee jerk", "Knee locked in hyperextension"],
    ["Obturator nerve", "Childbirth / pelvic surgery", "Weak adduction; medial thigh sensory loss", "Usually normal gait"],
    ["Sciatic nerve", "Misplaced IM injection (wrong quadrant)", "Weak knee flex. + all below-knee muscles", "Variable"],
    ["Lat. cut. n. of thigh", "Under inguinal lig. near ASIS", "Meralgia paresthetica (burning lat. thigh)", "Normal (sensory only)"],
  ],
  C.red
);

// ── SLIDE 15: NERVE INJURIES BULLETS ──────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.red }, line: { color: C.red } });
  sl.addText("CLINICAL PEARLS — NERVE INJURIES", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 20, bold: true, color: C.white, valign: "middle" });

  const cards = [
    { title: "Common Fibular N.", color: C.red, points: ["Wraps around NECK OF FIBULA", "Foot drop = dorsiflexion lost", "Eversion lost (lateral compart.)", "Sensory: lateral leg + dorsum foot", "Causes: fracture, tight cast, bed rest"] },
    { title: "Superior Gluteal N.", color: "1A6B3A", points: ["L4–S1; exits ABOVE piriformis", "Trendelenburg sign on standing", "Muscles: glut. med, min, TFL", "Cause: incorrect IM injection", "Safe site: upper outer quadrant"] },
    { title: "Meralgia Paresthetica", color: C.purple, points: ["Lat. cut. n. of thigh (L2–L3)", "Purely sensory — no motor loss", "Burning/tingling lateral thigh", "Entrapment near ASIS under ing. lig.", "Risk: obesity, pregnancy, tight belts"] },
    { title: "Sciatic N. Injury", color: "8B4513", points: ["L4–S3 | exits below piriformis", "Fibular division more vulnerable", "Misplaced IM → upper outer quadrant safe", "Complete: all below-knee weakness", "Partial often mimics fibular palsy"] },
  ];

  cards.forEach((c, i) => {
    const cx = i < 2 ? 0.25 + i * 4.85 : 0.25 + (i - 2) * 4.85;
    const cy = i < 2 ? 0.88 : 3.2;
    sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: cx, y: cy, w: 4.55, h: 2.12, fill: { color: "0D2A3E" }, line: { color: c.color }, rectRadius: 0.1 });
    sl.addShape(pres.shapes.RECTANGLE, { x: cx, y: cy, w: 4.55, h: 0.45, fill: { color: c.color }, line: { color: c.color } });
    sl.addText(c.title, { x: cx + 0.1, y: cy, w: 4.35, h: 0.45, fontSize: 13, bold: true, color: C.white, valign: "middle" });
    const bullets = c.points.map((p, pi) => ({ text: p, options: { bullet: { code: "25CF" }, fontSize: 11, color: "B0C4D8", breakLine: pi < c.points.length - 1, paraSpaceAfter: 2 } }));
    sl.addText(bullets, { x: cx + 0.15, y: cy + 0.5, w: 4.3, h: 1.55, valign: "top" });
  });
}

// ── SLIDE 16: SECTION 6 HEADER ─────────────────────────────────────
sectionSlide(pres, "06", "Dermatomes & Reflexes", "1-2 MCQs guaranteed");

// ── SLIDE 17: DERMATOMES + REFLEXES ───────────────────────────────
contentSlide2Col(pres, "DERMATOMES & REFLEXES",
  "Dermatome Map",
  [
    "L1 → Inguinal / groin region",
    "L2 → Anterior upper thigh",
    "L3 → Anterior lower thigh / knee",
    "L4 → Medial leg + medial dorsum foot",
    "L5 → Lateral leg + dorsum foot + great toe",
    "S1 → Sole + lateral foot + little toe",
    "S2 → Posterior thigh",
    "S3-S4 → Perineum",
  ],
  "Reflexes",
  [
    "Knee jerk (patellar reflex) → L3-L4 (Femoral n.)",
    "Ankle jerk (Achilles reflex) → S1-S2 (Tibial n.)",
    "Plantar reflex (Babinski) → S1-S2 (Tibial n.)",
    "Cremasteric reflex → L1-L2 (Genitofemoral n.)",
    "★ L4 lesion: absent knee jerk",
    "★ S1 lesion: absent ankle jerk",
    "★ L5 lesion: foot drop, reflexes intact",
  ],
  C.purple
);

// ── SLIDE 18: SECTION 7 HEADER ─────────────────────────────────────
sectionSlide(pres, "07", "Practice MCQs", "NEET PG Pattern Questions");

// ── SLIDES 19–23: MCQs ─────────────────────────────────────────────
mcqSlide(pres, 1,
  "A patient presents with foot drop and loss of sensation over the dorsum of the foot after sustaining a fracture of the proximal fibula. Which nerve is most likely injured?",
  ["Tibial nerve", "Superficial fibular nerve", "Common fibular nerve", "Sciatic nerve"],
  2,
  "The common fibular (peroneal) nerve winds around the neck of the fibula making it extremely vulnerable to injury there. It supplies the anterior and lateral leg compartments responsible for dorsiflexion and eversion. Foot drop = dorsiflexion lost = common fibular nerve injury."
);

mcqSlide(pres, 2,
  "A woman develops weakness of hip abduction and a positive Trendelenburg sign following a difficult childbirth. Which nerve is damaged?",
  ["Inferior gluteal nerve", "Superior gluteal nerve", "Obturator nerve", "Sciatic nerve"],
  1,
  "The superior gluteal nerve (L4–S1) exits the greater sciatic foramen ABOVE piriformis and innervates gluteus medius, gluteus minimus, and TFL. Paralysis causes Trendelenburg sign: when standing on the affected leg, the pelvis drops on the contralateral side."
);

mcqSlide(pres, 3,
  "In the femoral triangle, from lateral to medial, which is the correct order of structures passing under the inguinal ligament?",
  ["Vein, Artery, Nerve", "Nerve, Vein, Artery", "Artery, Nerve, Vein", "Nerve, Artery, Vein (+ lymphatics)"],
  3,
  "The mnemonic NAVY: Nerve (femoral) → Artery (femoral) → Vein (femoral) → lymph(Y)atics — from lateral to medial. The femoral nerve is NOT inside the femoral sheath; only the artery, vein, and lymphatics are enclosed by it."
);

mcqSlide(pres, 4,
  "A 45-year-old obese man complains of burning pain and numbness over the lateral aspect of his thigh. Sensation is intact elsewhere. No motor deficit. Which nerve is involved?",
  ["Femoral nerve", "Obturator nerve", "Lateral cutaneous nerve of thigh", "Posterior cutaneous nerve of thigh"],
  2,
  "Meralgia paresthetica — compression of the lateral cutaneous nerve of thigh (L2–L3) under the inguinal ligament near the ASIS. It is a purely sensory nerve (no motor deficit). Risk factors include obesity, pregnancy, and tight belts. Treatment is conservative."
);

mcqSlide(pres, 5,
  "The main blood supply to the head of the femur is from which artery? This vessel is at risk in femoral neck fractures.",
  ["Obturator artery", "Lateral circumflex femoral artery", "Medial circumflex femoral artery", "Inferior gluteal artery"],
  2,
  "The medial circumflex femoral artery (branch of profunda femoris) is the main supply to the femoral head. In displaced femoral neck fractures, this vessel is torn → avascular necrosis (AVN) of the femoral head. This is why surgical reduction/replacement is urgent."
);

// ── SLIDE 24: SECTION 8 HEADER ─────────────────────────────────────
sectionSlide(pres, "08", "Quick-Fire High-Yield Facts", "Last-minute revision essentials");

// ── SLIDE 25: QUICK FIRE FACTS ────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.cream }, line: { color: C.cream } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.gold }, line: { color: C.gold } });
  sl.addText("QUICK-FIRE HIGH-YIELD FACTS", { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 22, bold: true, color: C.navy, valign: "middle" });

  const facts = [
    ["Largest nerve in the body", "Sciatic nerve (L4–S3)"],
    ["Longest vein in the body", "Great saphenous vein"],
    ["Largest tarsal bone", "Calcaneus"],
    ["Foot drop nerve + site", "Common fibular n. at neck of fibula"],
    ["Trendelenburg sign", "Superior gluteal nerve palsy (L4–S1)"],
    ["Knee jerk root", "L3–L4 (Femoral nerve)"],
    ["Ankle jerk root", "S1–S2 (Tibial nerve)"],
    ["Femoral hernia location", "Inferior & lateral to pubic tubercle"],
    ["Meralgia paresthetica nerve", "Lat. cut. nerve of thigh (L2–L3)"],
    ["Medial circumflex femoral a.", "Main supply to femoral head"],
    ["Nerve unlocking the knee", "Popliteus (via tibial n.)"],
    ["Safe IM injection site", "Upper outer quadrant of gluteal region"],
    ["Nerve above piriformis", "Superior gluteal nerve"],
    ["Nerve(s) below piriformis", "Sciatic, inf. gluteal, post. cut. of thigh"],
  ];

  facts.forEach((f, i) => {
    const col = i < 7 ? 0 : 1;
    const row = i % 7;
    const fx = col === 0 ? 0.25 : 5.1;
    const fy = 0.88 + row * 0.67;
    sl.addShape(pres.shapes.RECTANGLE, { x: fx, y: fy, w: 4.65, h: 0.58, fill: { color: i % 2 === 0 ? C.white : "EFF6FF" }, line: { color: C.lgray } });
    sl.addShape(pres.shapes.RECTANGLE, { x: fx, y: fy, w: 0.06, h: 0.58, fill: { color: C.gold }, line: { color: C.gold } });
    sl.addText(f[0], { x: fx + 0.15, y: fy + 0.02, w: 2.4, h: 0.54, fontSize: 10.5, color: C.gray, valign: "middle", bold: false });
    sl.addText(f[1], { x: fx + 2.6, y: fy + 0.02, w: 2.0, h: 0.54, fontSize: 10.5, bold: true, color: C.navy, valign: "middle" });
  });
}

// ── SLIDE 26: FINAL / THANK YOU ────────────────────────────────────
{
  const sl = pres.addSlide();
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.gold }, line: { color: C.gold } });
  sl.addShape(pres.shapes.RIGHT_TRIANGLE, { x: 7.5, y: 3.125, w: 2.5, h: 2.5, fill: { color: "0D3B6E" }, line: { color: "0D3B6E" } });
  sl.addText("ALL THE BEST!", { x: 0.7, y: 1.0, w: 8.5, h: 1.0, fontSize: 54, bold: true, color: C.gold, charSpacing: 3 });
  sl.addText("You've covered the HIGH-YIELD Lower Limb Anatomy for NEET PG", { x: 0.7, y: 2.1, w: 8.5, h: 0.65, fontSize: 17, color: C.white, italic: true });

  const reminders = ["Revise nerve injuries daily", "Practice MCQ patterns", "Use mnemonics (NAVY, etc.)", "Correlate with clinical cases"];
  reminders.forEach((r, i) => {
    sl.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.7 + i * 2.25, y: 2.95, w: 2.1, h: 0.65, fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.08 });
    sl.addText(r, { x: 0.7 + i * 2.25, y: 2.95, w: 2.1, h: 0.65, fontSize: 10.5, color: C.white, align: "center", valign: "middle" });
  });

  sl.addText("Based on Gray's Anatomy for Students & Bradley-Daroff's Neurology in Clinical Practice", { x: 0.7, y: 4.5, w: 8.5, h: 0.5, fontSize: 11, color: C.gray, italic: true });
  sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.teal }, line: { color: C.teal } });
  sl.addText("Orris Medical Education  •  Lower Limb Anatomy NEET PG", { x: 0.3, y: 5.3, w: 9.4, h: 0.325, fontSize: 10, color: C.white, valign: "middle" });
}

// ── WRITE FILE ─────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/lower-limb-neet/Lower_Limb_NEET_PG.pptx" })
  .then(() => console.log("SUCCESS: Presentation created."))
  .catch(e => console.error("ERROR:", e));
Running Command

cd /home/daytona/workspace/lower-limb-neet && node create_pptx.js

Running Command

node -e "const p = require('pptxgenjs'); const pr = new p(); console.log(Object.keys(pr.shapes).filter(k => k.includes('TRIAN') || k.includes('trian')))"

Reading File
Running Command

node -e "const p = require('pptxgenjs'); const pr = new p(); console.log(Object.keys(pr.shapes).filter(k => k.includes('ELLIP') || k.includes('OVAL') || k.includes('CIRCLE')))"

Running Command

grep -n "ELLIPSE" /home/daytona/workspace/lower-limb-neet/create_pptx.js

Running Command

sed -i 's/pres\.shapes\.ELLIPSE/pres.shapes.OVAL/g' /home/daytona/workspace/lower-limb-neet/create_pptx.js && node /home/daytona/workspace/lower-limb-neet/create_pptx.js

Editing File

~/lower-limb-neet/create_pptx.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/lower-limb-neet/create_pptx.js'
Editing File

~/lower-limb-neet/create_pptx.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/lower-limb-neet/create_pptx.js'
Running Command

node /home/daytona/workspace/lower-limb-neet/create_pptx.js

Running Command

ls -lh /home/daytona/workspace/lower-limb-neet/Lower_Limb_NEET_PG.pptx

Your presentation is ready!

Lower Limb NEET PG

Presentation · PPTX


Here's what's inside the 26-slide deck (541 KB):
#SlideContent
1Title slideDark navy theme with topic badges
2Table of Contents8 sections with card layout
3-5Regions, Bones & CompartmentsFemur key points, tarsal bones mnemonic, leg compartments table
6-8Nerve MapLumbar plexus table, Sacral plexus table (color-coded)
9-10Femoral Triangle & Adductor CanalNAVY mnemonic visual, femoral hernia highlight
11-12VesselsFemoral → Popliteal → Tibial artery chain table
13-15Clinical Nerve InjuriesTable + 4 clinical card panels (foot drop, Trendelenburg, meralgia, sciatic)
16-17Dermatomes & Reflexes2-column layout L1-S4 map + reflex roots
18-235 MCQs with AnswersNEET PG-pattern questions with green correct option + explanation boxes
24-25Quick-Fire Facts14 high-yield Q&A cards
26Final slideRevision reminder badges
Design: Navy/teal/gold palette with dark MCQ slides and light content slides for easy readability.
This is a shared conversation. Sign in to Orris to start your own chat.