/* ============================================================
   CC701 — Entrepreneurial Leadership
   BBA (Honours) Semester VII — NEP-2020
   Common Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3c6e;
  --primary-light: #2c5282;
  --accent: #c7923e;
  --accent-light: #f0d78c;
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #2d3748;
  --text-light: #5a6978;
  --text-muted: #8899aa;
  --border: #e2e8f0;
  --success: #38a169;
  --warning: #d69e2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --font: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--primary);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.55rem; margin: 1.8rem 0 0.7rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--accent-light); }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; color: var(--primary-light); }
p { margin-bottom: 1rem; }
ul, ol { margin: 0.5rem 0 1rem 1.8rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary); }

/* --- Common Header --- */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2547 100%);
  color: #ffffff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.header-brand { display: flex; align-items: center; gap: 0.9rem; }

.header-logo {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.header-title-group { line-height: 1.3; }

.header-course-code {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  font-weight: 600;
  display: block;
}

.header-course-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.header-subtitle {
  font-size: 0.78rem;
  opacity: 0.8;
  font-style: italic;
  display: block;
}

.header-meta {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.5;
}
.header-meta span { display: block; }

/* --- Navigation --- */
.header-nav {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.header-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  overflow-x: auto;
}

.header-nav a {
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.04);
}

.header-nav a.active {
  color: var(--accent-light);
  font-weight: 600;
}

/* --- Main Content Wrapper --- */
.site-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Hero / Banner (Index) --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #153252 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 280px; height: 280px;
  background: rgba(199,146,62,0.08);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 650px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
}

.hero-meta span {
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* --- Page Header (Week pages) --- */
.page-header {
  margin-bottom: 1.8rem;
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.4rem; opacity: 0.4; }

.page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-week { background: var(--primary); color: #fff; }
.badge-unit { background: var(--accent-light); color: var(--primary); }
.badge-hours { background: #e6fffa; color: #234e52; border: 1px solid #b2f5ea; }

/* --- Cards Grid (Index) --- */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.week-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.week-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.card-week-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.card-unit-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
}

.tag-lecture { background: #ebf4ff; color: #2c5282; }
.tag-tutorial { background: #fefcbf; color: #975a16; }

.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* Coming soon cards */
.week-card.coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  border-style: dashed;
}

.week-card.coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.coming-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: var(--border);
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Content Sections --- */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.content-section h2 { margin-top: 0; }

.content-section h3:first-child { margin-top: 0; }

/* --- Lecture Meta Bar --- */
.lecture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.lecture-meta .meta-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
}

/* --- Definition Boxes --- */
.definition-box {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}

.definition-box .term {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.definition-box p { margin-bottom: 0; font-size: 0.92rem; }

/* --- Insight / Callout --- */
.insight-box {
  background: #fffdf5;
  border: 1px solid var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
}

.insight-box .insight-label {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

/* --- Comparison Table --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

.compare-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
}

.compare-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.compare-table tbody td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.86rem;
}

.compare-table tbody tr:nth-child(even) td { background: #f7fafc; }
.compare-table tbody tr:hover td { background: #edf2f9; }

.compare-table .col-label {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 0.5rem 0;
  margin: 1rem 0;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-year {
  min-width: 65px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.82rem;
  text-align: right;
  padding-top: 2px;
}

.timeline-dot {
  position: relative;
  width: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 4px;
}

.timeline-dot::after {
  content: '';
  width: 2px;
  background: var(--accent-light);
  flex: 1;
  margin-top: 4px;
}

.timeline-content {
  flex: 1;
  padding-bottom: 0.3rem;
}

.timeline-content strong {
  font-family: var(--font-sans);
  color: var(--primary);
  font-size: 0.9rem;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0.15rem 0 0;
}

/* --- Tutorial Box --- */
.tutorial-box {
  background: #fffbeb;
  border: 1px dashed var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.tutorial-box h3 {
  font-family: var(--font-sans);
  color: #975a16;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tutorial-box .activity-item {
  display: flex;
  gap: 0.6rem;
  margin: 0.8rem 0;
  font-size: 0.9rem;
  align-items: flex-start;
}

.activity-num {
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Takeaways --- */
.takeaways {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}

.takeaways h3 {
  color: #276749;
  margin-top: 0;
  font-family: var(--font-sans);
}

.takeaways ul { margin: 0.5rem 0 0 1.3rem; }
.takeaways li { font-size: 0.9rem; margin-bottom: 0.35rem; }

/* --- Discussion Questions --- */
.discussion-box {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}

.discussion-box h3 {
  color: #6b46c1;
  margin-top: 0;
  font-family: var(--font-sans);
}

.discussion-box ol { margin: 0.5rem 0 0 1.3rem; }
.discussion-box li { margin-bottom: 0.45rem; }

/* --- Session Timeline (4-Hour Planner) --- */
.session-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.session-timeline h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  border-bottom: none;
  padding-bottom: 0;
  display: flex; align-items: center; gap: 0.5rem;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.5rem;
}

.tblock {
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.tblock .ttime {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.tblock .ttitle {
  font-weight: 600;
  font-size: 0.8rem;
}

.tblock .ttag {
  font-size: 0.66rem;
  margin-top: 0.2rem;
  opacity: 0.75;
}

.tblock.lec { background: #eef4ff; border-left: 3px solid var(--primary-light); }
.tblock.act { background: #f0fdf4; border-left: 3px solid var(--success); }
.tblock.tut { background: #fff4ee; border-left: 3px solid var(--accent); }
.tblock.brk { background: #f3f4f6; border-left: 3px solid #d1d5db; }
.tblock.qz  { background: #fefce8; border-left: 3px solid var(--warning); }

/* --- Phase Headers (Lecture / Tutorial) --- */
.phase-header {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--border);
}

.phase-pill {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pill-lec { background: #eef4ff; color: var(--primary-light); border: 1px solid #bfdbfe; }
.pill-tut { background: #fff4ee; color: var(--accent); border: 1px solid #fed7aa; }

.phase-header h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  flex: 1;
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.phase-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Cross Question Box --- */
.cq-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}

.cq-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.cq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}

.cq-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
}

.cq-questions { list-style: none; }
.cq-questions li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: #d0dce8;
  display: flex; gap: 0.6rem; align-items: flex-start;
}

.cq-questions li:last-child { border-bottom: none; }

.cq-questions li::before {
  content: '\2192';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.04rem;
}

.cq-hint {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #6b8fa8;
  font-style: italic;
}

/* --- Hook / Opening Block --- */
.hook-block {
  border-left: 4px solid var(--accent) !important;
}

/* --- Activity Block --- */
.activity-block {
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.2rem 0;
}

.activity-header {
  background: #f0fdf4;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid #bbf7d0;
}

.activity-icon {
  width: 32px; height: 32px;
  background: var(--success); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.activity-header-text .act-title {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.95rem;
}

.activity-header-text .act-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--success);
  margin-top: 0.1rem;
}

.activity-body { padding: 1.25rem; background: var(--surface); }

.step-list { list-style: none; }
.step-list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0ece8;
  font-size: 0.9rem;
}
.step-list li:last-child { border-bottom: none; }

.step-num {
  width: 22px; height: 22px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0; margin-top: 0.1rem;
}

/* --- Debate Block --- */
.debate-block {
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.2rem 0;
}

.debate-header {
  background: #fff4ee;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid #fed7aa;
}

.debate-icon {
  width: 32px; height: 32px;
  background: var(--accent); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.debate-header-text .act-title {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.95rem;
}

.debate-header-text .act-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

.debate-body { padding: 1.25rem; background: var(--surface); }

/* --- Quiz Block --- */
.quiz-block {
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.2rem 0;
}

.quiz-header {
  background: #fefce8;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid #fde68a;
}

.quiz-icon {
  width: 32px; height: 32px;
  background: var(--warning); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.quiz-header-text .act-title {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.95rem;
}

.quiz-header-text .act-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--warning);
  margin-top: 0.1rem;
}

.quiz-body { padding: 1.25rem; background: var(--surface); }

.quiz-q { margin-bottom: 1.2rem; }
.quiz-q:last-child { margin-bottom: 0; }

.quiz-q .q-text {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.9rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--warning);
}

.quiz-options { list-style: none; }
.quiz-options li {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.3rem;
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-options li:hover { background: #fef9ec; border-color: var(--warning); }
.quiz-options li.correct { background: #f0fdf4; border-color: var(--success); color: #15803d; font-weight: 600; cursor: default; }
.quiz-options li.wrong { background: #fef2f2; border-color: #e17055; color: #b91c1c; cursor: default; }

.quiz-feedback {
  font-size: 0.82rem; margin-top: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 6px;
  display: none;
}

.quiz-feedback.visible { display: block; }
.quiz-feedback.correct { background: #f0fdf4; color: #15803d; }
.quiz-feedback.wrong { background: #fef2f2; color: #991b1b; }

/* --- Scenario Cards --- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.scenario-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--surface);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.scenario-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.scenario-card .sc-name {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem;
}

.scenario-card .sc-role {
  font-family: var(--font-sans);
  font-size: 0.76rem; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem;
}

.scenario-card .sc-situation {
  font-size: 0.82rem; color: var(--text-light);
}

.scenario-card .sc-question {
  font-family: var(--font-sans);
  font-size: 0.83rem; margin-top: 0.6rem; font-weight: 600;
  color: var(--primary);
  border-top: 1px solid var(--border); padding-top: 0.5rem;
}

.scenario-card .sc-type {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.sc-type-el { background: #fff4ee; color: var(--accent); }
.sc-type-ml { background: #eef4ff; color: var(--primary-light); }
.sc-type-sl { background: #f0fdf4; color: var(--success); }

/* --- Persona Cards --- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.persona-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 2px solid var(--border);
}

.persona-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.persona-name { font-family: var(--font-sans); font-weight: 700; font-size: 0.88rem; }
.persona-desc { font-size: 0.78rem; color: var(--text-light); margin-top: 0.25rem; }
.persona-card.active { border-color: var(--accent); background: #fff9f7; }

/* --- Self-Assessment Widget --- */
.assess-grid { display: grid; gap: 0.55rem; margin: 1rem 0; }

.assess-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  display: flex; align-items: center; gap: 0.8rem;
  flex-wrap: wrap;
}

.assess-label { flex: 1; min-width: 200px; font-size: 0.86rem; }

.assess-scale { display: flex; align-items: center; gap: 0.25rem; }

.assess-btn {
  width: 28px; height: 28px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.assess-btn:hover { border-color: var(--accent); background: #fff4ee; }
.assess-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.assess-end {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.assess-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.86rem;
  display: none;
}
.assess-result.visible { display: block; }

.calc-btn {
  margin-top: 0.8rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.15s;
}
.calc-btn:hover { background: #b07d2a; }

/* --- Facilitator Note --- */
.fac-note {
  background: #f8f4ff;
  border: 1px solid #c4b5fd;
  border-left: 4px solid #7c3aed;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.8rem 1.1rem;
  font-size: 0.83rem;
  margin: 0.85rem 0;
  color: #4c1d95;
}

.fac-note strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Reading List --- */
.reading-list { list-style: none; }

.reading-item {
  display: flex; gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  align-items: flex-start;
}

.reading-item:last-child { border-bottom: none; }

.reading-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap; margin-top: 0.15rem;
  flex-shrink: 0;
}

.rt-core { background: var(--primary); color: #fff; }
.rt-supp { background: #eef4ff; color: var(--primary-light); }
.rt-indian { background: #fff4ee; color: var(--accent); }

/* --- LO Grid --- */
.lo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.lo-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-family: var(--font-sans);
}

.lo-num {
  font-size: 0.66rem;
  background: var(--accent);
  color: #fff;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed; top: 0; left: 0; width: 0%;
  height: 3px; background: var(--accent); z-index: 1000;
  transition: width 0.1s;
}

/* --- Break Block --- */
.break-block {
  text-align: center;
  padding: 1.25rem;
  background: #f3f4f6;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* --- Nav Buttons --- */
.nav-btn {
  padding: 0.55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}

.nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.nav-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-btn.primary:hover { background: #b07d2a; }

.nav-btn.disabled { color: var(--text-muted); cursor: default; }
.nav-btn.disabled:hover { border-color: var(--border); color: var(--text-muted); }

/* --- Takeaways Grid --- */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.tk-item {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.87rem;
  color: #c8d8e8;
  border-left: 3px solid var(--accent);
}

.tk-item strong { color: #fff; font-family: var(--font-sans); }

/* --- Section Navigation (prev/next) --- */
.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.section-nav a { font-weight: 600; }
.section-nav .nav-placeholder { visibility: hidden; }

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: #c8d8e8;
  padding: 2rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  padding: 0 2rem 1.5rem;
  flex-wrap: wrap;
}

.footer-col { flex: 1; min-width: 200px; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  display: block;
  margin-bottom: 0.25rem;
  text-decoration: none;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-sans);
}

/* ============================================================
   DARK MODE
   ============================================================ */

[data-theme="dark"] {
  --primary: #4a90d9;
  --primary-light: #6db3f2;
  --accent: #d69e2e;
  --accent-light: #b87d1a;
  --bg: #0f1923;
  --surface: #1a2736;
  --text: #dde4ed;
  --text-light: #a3b3c6;
  --text-muted: #6b7d93;
  --border: #2a3a4e;
  --success: #4ade80;
  --warning: #f0b429;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.40);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.50);
}

/* Dark mode base transitions */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .site-header {
  background: linear-gradient(135deg, #0d1f33 0%, #09141f 100%);
}

[data-theme="dark"] .header-nav {
  background: rgba(0,0,0,0.25);
  border-top-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .header-logo {
  color: #0f1923;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0d1f33 0%, #0a1628 100%);
}

[data-theme="dark"] .hero::after {
  background: rgba(214,158,46,0.06);
}

/* -- Content sections -- */
[data-theme="dark"] .content-section {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .content-section[style*="background"] {
  background: linear-gradient(135deg, #0d1f33 0%, #1a3360 100%) !important;
  border: none !important;
}

[data-theme="dark"] .content-section[style*="background"] h2,
[data-theme="dark"] .content-section[style*="background"] p { color: #d0dce8 !important; }

/* -- Definition boxes -- */
[data-theme="dark"] .definition-box {
  background: #1e2d3d;
  border-color: var(--border);
  border-left-color: var(--primary-light);
}

[data-theme="dark"] .definition-box .term { color: var(--primary-light); }

/* -- Insight boxes -- */
[data-theme="dark"] .insight-box {
  background: #1e2419;
  border-color: #3d3520;
  border-left-color: #b87d1a;
}

[data-theme="dark"] .insight-box .insight-label { color: #d69e2e; }

/* -- Comparison tables -- */
[data-theme="dark"] .compare-table thead th {
  background: #0d1f33;
}

[data-theme="dark"] .compare-table tbody td {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .compare-table tbody tr:nth-child(even) td {
  background: #1a2736;
}

[data-theme="dark"] .compare-table tbody tr:hover td {
  background: #1e3044;
}

[data-theme="dark"] .compare-table .col-label { color: var(--primary-light); }

/* -- Timeline blocks -- */
[data-theme="dark"] .tblock.lec { background: #161e2e; border-left-color: var(--primary-light); }
[data-theme="dark"] .tblock.act { background: #141e18; border-left-color: var(--success); }
[data-theme="dark"] .tblock.tut { background: #1e1814; border-left-color: var(--accent); }
[data-theme="dark"] .tblock.brk { background: #1c1f24; border-left-color: #4a5568; }
[data-theme="dark"] .tblock.qz  { background: #1c1a14; border-left-color: var(--warning); }

/* -- Phase headers -- */
[data-theme="dark"] .pill-lec { background: #161e2e; color: var(--primary-light); border-color: #2a4a6e; }
[data-theme="dark"] .pill-tut { background: #1e1814; color: var(--accent); border-color: #3d3520; }

/* -- Cross Question boxes -- */
[data-theme="dark"] .cq-box {
  background: #0d1f33;
}

[data-theme="dark"] .cq-questions li {
  border-bottom-color: rgba(255,255,255,0.06);
  color: #b0c4d8;
}

[data-theme="dark"] .cq-hint { color: #7a9ab8; }

/* -- Activity blocks -- */
[data-theme="dark"] .activity-block { border-color: #1a3d2a; }
[data-theme="dark"] .activity-header {
  background: #141e18;
  border-bottom-color: #1a3d2a;
}

[data-theme="dark"] .activity-body { background: var(--surface); }

/* -- Debate blocks -- */
[data-theme="dark"] .debate-block { border-color: #3d3520; }
[data-theme="dark"] .debate-header {
  background: #1e1814;
  border-bottom-color: #3d3520;
}

[data-theme="dark"] .debate-body { background: var(--surface); }

/* -- Quiz blocks -- */
[data-theme="dark"] .quiz-block { border-color: #3d3518; }
[data-theme="dark"] .quiz-header {
  background: #1c1a14;
  border-bottom-color: #3d3518;
}

[data-theme="dark"] .quiz-body { background: var(--surface); }

[data-theme="dark"] .quiz-q .q-text { background: var(--bg); }

[data-theme="dark"] .quiz-options li:hover { background: #1e1a14; border-color: #b87d1a; }

[data-theme="dark"] .quiz-options li.correct { background: #142018; border-color: var(--success); color: #4ade80; }

[data-theme="dark"] .quiz-options li.wrong { background: #1e1418; border-color: #e17055; color: #fca5a5; }

[data-theme="dark"] .quiz-feedback.correct { background: #142018; color: #4ade80; }

[data-theme="dark"] .quiz-feedback.wrong { background: #1e1418; color: #fca5a5; }

/* -- Scenario cards -- */
[data-theme="dark"] .scenario-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .scenario-card:hover { border-color: var(--accent); }

[data-theme="dark"] .scenario-card .sc-question { border-top-color: var(--border); }

[data-theme="dark"] .sc-type-el { background: #1e1814; color: var(--accent); }
[data-theme="dark"] .sc-type-ml { background: #161e2e; color: var(--primary-light); }
[data-theme="dark"] .sc-type-sl { background: #141e18; color: var(--success); }

/* -- Persona cards -- */
[data-theme="dark"] .persona-card { border-color: var(--border); }
[data-theme="dark"] .persona-card.active { border-color: var(--accent); background: #1e1814; }

/* -- Facilitator notes -- */
[data-theme="dark"] .fac-note {
  background: #1a1628;
  border-color: #3d3060;
  border-left-color: #8b5cf6;
  color: #c4b5fd;
}

/* -- Reading list -- */
[data-theme="dark"] .reading-item { border-bottom-color: var(--border); }
[data-theme="dark"] .rt-core { background: #0d1f33; }
[data-theme="dark"] .rt-supp { background: #1a2736; color: var(--primary-light); }
[data-theme="dark"] .rt-indian { background: #1e1814; color: var(--accent); }

/* -- Takeaways -- */
[data-theme="dark"] .takeaways {
  background: #141e18;
  border-color: #1a3d2a;
}
[data-theme="dark"] .takeaways h3 { color: #4ade80; }

/* -- Discussion box -- */
[data-theme="dark"] .discussion-box {
  background: #1a1628;
  border-color: #3d3060;
}
[data-theme="dark"] .discussion-box h3 { color: #a78bfa; }

/* -- Session timeline -- */
[data-theme="dark"] .session-timeline {
  background: var(--surface);
  border-color: var(--border);
}

/* -- Break block -- */
[data-theme="dark"] .break-block {
  background: #1c1f24;
  color: #8899aa;
}

/* -- Tutorial box -- */
[data-theme="dark"] .tutorial-box {
  background: #1c1a14;
  border-color: #3d3518;
}
[data-theme="dark"] .tutorial-box h3 { color: #f0b429; }

/* -- Step list -- */
[data-theme="dark"] .step-list li { border-bottom-color: #2a3544; }

/* -- LO grid -- */
[data-theme="dark"] .lo-item { background: var(--bg); border-color: var(--border); }

/* -- Assessment -- */
[data-theme="dark"] .assess-item { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .assess-btn { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .assess-btn:hover { background: #1e1814; border-color: var(--accent); }
[data-theme="dark"] .assess-btn.selected { background: var(--accent); color: #0f1923; }

/* -- Badges -- */
[data-theme="dark"] .badge-week { background: #0d1f33; }
[data-theme="dark"] .badge-hours { background: #141e20; color: #99f6e4; border-color: #1a3d38; }

/* -- Card tags -- */
[data-theme="dark"] .tag-lecture { background: #161e2e; color: #6db3f2; }
[data-theme="dark"] .tag-tutorial { background: #1c1a14; color: #d69e2e; }

/* -- Week cards -- */
[data-theme="dark"] .week-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .week-card.coming-soon { border-style: dashed; }

/* -- Coming badge -- */
[data-theme="dark"] .coming-badge { background: #2a3544; color: var(--text-muted); }

/* -- Nav buttons -- */
[data-theme="dark"] .nav-btn { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .nav-btn:hover { border-color: var(--accent); color: var(--accent); }

/* -- Progress bar -- */
[data-theme="dark"] .progress-bar { background: var(--accent); }

/* -- Lecture meta -- */
[data-theme="dark"] .lecture-meta .meta-item { background: var(--surface); border-color: var(--border); }

/* -- Footer -- */
[data-theme="dark"] .site-footer {
  background: #0d1f33;
  border-top-color: var(--border);
}
[data-theme="dark"] .site-footer,
[data-theme="dark"] .footer-bottom { color: #8899aa; }
[data-theme="dark"] .footer-col h4 { color: var(--accent-light); }
[data-theme="dark"] .footer-col a { color: #a3b3c6; }
[data-theme="dark"] .footer-col a:hover { color: var(--accent-light); }

/* -- Breadcrumb -- */
[data-theme="dark"] .breadcrumb { color: var(--text-muted); }
[data-theme="dark"] .breadcrumb a { color: var(--primary-light); }

/* -- Activity header text meta colors -- */
[data-theme="dark"] .activity-header-text .act-meta { color: var(--success); }
[data-theme="dark"] .debate-header-text .act-meta { color: var(--accent); }
[data-theme="dark"] .quiz-header-text .act-meta { color: var(--warning); }

/* -- H1/H2/H3 -- */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--primary-light); }
[data-theme="dark"] h2 { border-bottom-color: var(--accent); }
[data-theme="dark"] a { color: var(--primary-light); }
[data-theme="dark"] a:hover { color: #6db3f2; }

/* -- Badge unit -- */
[data-theme="dark"] .badge-unit { background: #3d3018; color: #d69e2e; }

/* -- Card title / link -- */
[data-theme="dark"] .card-title { color: var(--primary-light); }
[data-theme="dark"] .card-link { color: var(--primary-light); }
[data-theme="dark"] .card-footer-row { border-top-color: var(--border); }

/* -- Timeline inner -- */
[data-theme="dark"] .timeline-content strong { color: var(--primary-light); }
[data-theme="dark"] .timeline-content p { color: var(--text-light); }

/* -- Persona desc -- */
[data-theme="dark"] .persona-desc { color: var(--text-light); }

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */

.theme-toggle {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.30);
  color: #fff;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 0 12px rgba(199,146,62,0.20);
  margin-left: auto;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(199,146,62,0.45);
  transform: scale(1.10);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 12px rgba(199,146,62,0.12);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255,255,255,0.20);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(199,146,62,0.40);
}

/* Floating fallback — shown when header fails to load */
.theme-toggle-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--primary);
  border: 2px solid var(--accent);
  color: var(--accent-light);
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.theme-toggle-float:hover {
  background: var(--primary-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
}

[data-theme="dark"] .theme-toggle-float {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-top { flex-direction: column; text-align: center; padding: 0.8rem 1rem; }
  .header-meta { text-align: center; }
  .header-course-title { font-size: 1rem; }
  .header-nav-inner { gap: 0; padding: 0 0.8rem; }
  .header-nav a { padding: 0.5rem 0.55rem; font-size: 0.74rem; }

  .site-main { padding: 1.2rem; }

  .hero { padding: 1.5rem 1.2rem; }
  .hero h1 { font-size: 1.5rem; }

  .week-grid { grid-template-columns: 1fr; }

  .content-section { padding: 1.2rem; }

  .compare-table { font-size: 0.76rem; }
  .compare-table thead th,
  .compare-table tbody td { padding: 0.45rem 0.5rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .timeline-strip { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .assess-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .assess-label { min-width: unset; }

  .theme-toggle {
    min-width: 34px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    margin-top: 0.3rem;
  }
}
