/* ============================================
   SENSORY RECEPTORS PRESENTATION STYLES
   MBBS 1st Year | Guyton & Hall Ch. 47
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Calibri:wght@400;700&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --dark-blue: #0D3B6E;
  --med-blue: #1A6BA0;
  --light-blue: #D6EAF8;
  --teal: #0E7C7B;
  --white: #FFFFFF;
  --dark-gray: #2C3E50;
  --light-gray: #F2F3F4;
  --gold: #F39C12;
  --red: #C0392B;
  --green: #1E8B4C;
  --purple: #8E44AD;
  --slide-w: 1280px;
  --slide-h: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', 'Calibri', Arial, sans-serif;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

/* ── SLIDE BASE ── */
.slide {
  width: var(--slide-w);
  height: var(--slide-h);
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

/* ── SLIDE FOOTER ── */
.slide-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: var(--dark-blue);
  color: var(--light-blue);
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 10;
}

/* ── SLIDE HEADER BAR ── */
.slide-header-bar {
  background: var(--dark-blue);
  padding: 14px 24px 10px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 5px solid var(--teal);
  flex-shrink: 0;
}
.slide-title { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.2; }
.slide-subtitle { color: var(--light-blue); font-size: 16px; margin-top: 3px; }

/* ── TITLE SLIDE ── */
.title-slide {
  background: var(--dark-blue);
  justify-content: center;
  align-items: center;
}
.title-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D3B6E 0%, #1A6BA0 50%, #0E7C7B 100%);
}
.title-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 40px;
  width: 100%;
}
.slide-number-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.main-title {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.1;
}
.sub-title {
  font-size: 26px;
  color: var(--light-blue);
  font-weight: 400;
  margin-top: 10px;
}
.title-divider {
  width: 500px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}
.chapter-ref {
  color: var(--light-blue);
  font-size: 17px;
  margin-bottom: 24px;
}
.presenter-box {
  background: rgba(26,107,160,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 16px 32px;
  display: inline-block;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
}
.presenter-box strong { color: var(--gold); }

/* ── CONTENT SLIDE ── */
.content-slide {
  background: #fff;
}

/* ── BULLET LIST ── */
.bullet-list {
  list-style: none;
  padding: 14px 24px;
  flex: 1;
}
.bullet-list li {
  font-size: 20px;
  color: var(--dark-gray);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.4;
}
.bullet-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--teal);
  font-size: 16px;
}
.bullet-list.compact li { font-size: 17px; padding: 4px 0 4px 20px; }
.sub-bullet { padding-left: 40px !important; color: var(--med-blue) !important; font-size: 16px !important; }
.sub-bullet::before { content: '–' !important; color: var(--med-blue) !important; }

/* ── TOPICS GRID ── */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 24px;
  flex: 1;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-gray);
  border-radius: 6px;
  padding: 10px 14px;
}
.topic-num {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topic-text { font-size: 17px; color: var(--dark-gray); font-weight: 600; }

/* ── CLINICAL CASE BOX ── */
.clinical-case-box {
  background: #FFF3CD;
  border-left: 5px solid var(--gold);
  margin: 12px 24px 8px;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
}
.case-label { font-weight: 700; color: var(--dark-gray); font-size: 16px; margin-bottom: 6px; }
.clinical-case-box p { font-size: 17px; color: var(--dark-gray); line-height: 1.5; }

/* ── DEFINITION BOX ── */
.definition-box {
  background: var(--light-blue);
  border-left: 6px solid var(--med-blue);
  margin: 12px 24px 8px;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
}
.def-label { font-weight: 700; color: var(--med-blue); font-size: 15px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.definition-box p { font-size: 17px; color: var(--dark-gray); line-height: 1.5; }

/* ── DID YOU KNOW ── */
.did-you-know {
  background: #E8F8E8;
  border-left: 5px solid var(--green);
  margin: 8px 24px 40px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--green);
  border-radius: 0 6px 6px 0;
}

/* ── DATA TABLE ── */
.data-table {
  width: calc(100% - 48px);
  margin: 12px 24px;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table thead tr { background: var(--dark-blue); }
.data-table thead th {
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}
.data-table tbody td { padding: 9px 12px; color: var(--dark-gray); vertical-align: top; }
.row-blue td { background: var(--light-blue); }
.row-gray td { background: var(--light-gray); }
.type-cell { font-weight: 700; }
.type-blue { color: var(--med-blue); }
.type-teal { color: var(--teal); }
.type-red { color: var(--red); }
.type-dark { color: var(--dark-blue); }
.type-green { color: var(--green); }
.small-table { font-size: 14px; }
.small-table td, .small-table th { padding: 7px 10px; }
.phasic { color: var(--med-blue); font-weight: 700; }
.tonic { color: var(--green); font-weight: 700; }
.alt td { background: var(--light-blue); }

/* ── TWO COLUMN ── */
.two-col {
  display: flex;
  gap: 16px;
  padding: 12px 24px;
  flex: 1;
  min-height: 0;
}
.col-left { flex: 1.1; }
.col-right { flex: 0.9; }

/* ── DIAGRAM BOX ── */
.diagram-box {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.diagram-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 8px;
}
.receptor-svg { width: 100%; max-height: 260px; }
.fig-ref { font-size: 11px; color: var(--med-blue); font-style: italic; margin-top: 6px; text-align: center; }

/* ── SUMMATION DIAGRAM ── */
.summation-diagram {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 16px 0;
  flex: 1;
}
.stim-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stim-label {
  font-size: 13px; font-weight: 700; color: #fff;
  padding: 4px 14px; border-radius: 12px;
}
.stim-label.weak { background: #AED6F1; color: var(--dark-blue); }
.stim-label.moderate { background: #5DADE8; }
.stim-label.strong { background: var(--med-blue); }
.fiber-bundle { display: flex; gap: 6px; }
.fiber { width: 28px; height: 100px; border-radius: 4px; }
.fiber.active { background: var(--med-blue); }
.fiber.inactive { background: #ccc; }
.stim-count { font-size: 12px; color: var(--dark-gray); font-weight: 600; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 18px; font-weight: 700; color: var(--dark-blue);
  margin-bottom: 8px; padding: 0 0 4px;
  border-bottom: 2px solid var(--teal);
}
.intro-text { font-size: 16px; color: var(--med-blue); font-weight: 600; padding: 6px 24px 0; }
.highlight-teal { color: var(--teal); font-weight: 700; }

/* ── MNEMONIC BOX ── */
.mnemonic-box {
  background: #FFF3CD;
  border-left: 5px solid var(--gold);
  margin: 8px 24px 40px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--dark-gray);
  border-radius: 0 6px 6px 0;
}

/* ── THREE COLUMN ── */
.three-col {
  display: flex;
  gap: 14px;
  padding: 12px 24px;
  flex: 1;
}
.concept-card {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.concept-card.blue .concept-title { background: var(--med-blue); }
.concept-card.teal .concept-title { background: var(--teal); }
.concept-card.red .concept-title { background: var(--red); }
.concept-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
  letter-spacing: 1px;
}
.concept-list {
  list-style: none;
  background: var(--light-gray);
  padding: 12px 14px;
  flex: 1;
}
.concept-list li {
  font-size: 15px;
  color: var(--dark-gray);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.4;
}
.concept-list li::before { content: '•'; position: absolute; left: 0; color: var(--teal); }

/* ── INFO BAR ── */
.info-bar {
  background: var(--light-blue);
  border-top: 3px solid var(--med-blue);
  padding: 10px 24px;
  font-size: 15px;
  color: var(--dark-blue);
  margin-bottom: 32px;
}

/* ── RECEPTOR GRID ── */
.receptor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 24px;
  flex: 1;
}
.receptor-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.receptor-name {
  background: var(--card-color);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  text-align: center;
}
.receptor-desc {
  background: var(--light-gray);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.5;
  flex: 1;
}

/* ── CLINICAL GRID ── */
.clinical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 24px;
  flex: 1;
}
.clinical-card {
  border-left: 5px solid var(--accent);
  background: var(--light-gray);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
}
.clinical-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}
.clinical-card p { font-size: 14px; color: var(--dark-gray); line-height: 1.4; }

/* ── MCQ SLIDES ── */
.mcq-slide {
  background: #fff;
}
.mcq-header {
  background: var(--teal);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 5px solid var(--gold);
  flex-shrink: 0;
}
.answer-header { background: var(--green); }
.mcq-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
}
.answer-badge { background: rgba(255,255,255,0.25); }
.mcq-label { color: #fff; font-size: 16px; }
.mcq-question {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  padding: 16px 24px 10px;
  line-height: 1.4;
  flex-shrink: 0;
}
.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 24px;
  flex: 1;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-gray);
  border-radius: 6px;
  padding: 10px 14px;
  border: 2px solid transparent;
}
.option.correct { background: #D5F5E3; border-color: var(--green); }
.option.wrong { background: var(--light-gray); opacity: 0.7; }
.opt-letter {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.correct-letter { background: var(--green); }
.wrong-letter { background: #aaa; }
.opt-text { font-size: 19px; color: var(--dark-gray); }
.option.correct .opt-text { color: var(--green); font-weight: 700; }
.think-box {
  background: #FFF3CD;
  border-left: 5px solid var(--gold);
  margin: 6px 24px 40px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--dark-gray);
  border-radius: 0 6px 6px 0;
}
.explanation-box {
  background: var(--light-blue);
  border-left: 5px solid var(--med-blue);
  margin: 6px 24px 40px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--dark-gray);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.exp-label { font-weight: 700; color: var(--dark-blue); margin-right: 8px; }

/* ── DARK SLIDE (Take Home) ── */
.dark-slide {
  background: var(--dark-blue);
}
.dark-header { background: var(--teal); }
.white-title { color: #fff !important; }
.takehome-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 24px;
  flex: 1;
}
.th-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--med-blue);
  border-radius: 6px;
  padding: 10px 16px;
}
.th-num {
  background: var(--gold);
  color: var(--dark-blue);
  font-weight: 700;
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.th-text { font-size: 18px; color: #fff; line-height: 1.3; }

/* ── REFERENCES ── */
.references {
  padding: 14px 24px;
  flex: 1;
}
.references p {
  font-size: 15px;
  color: var(--dark-gray);
  margin-bottom: 12px;
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--light-blue);
}
.references strong { color: var(--dark-blue); }

/* ── SLIDE COUNTER ── */
.slide::after {
  content: attr(id);
  position: absolute;
  bottom: 6px; right: 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  z-index: 11;
}

/* ── PRINT / PDF STYLES ── */
@media print {
  body { background: white; padding: 0; gap: 0; }
  .slide {
    width: 100vw; height: 100vh;
    page-break-after: always;
    box-shadow: none;
    border-radius: 0;
  }
}