/* ==============================
   CSS Custom Properties
============================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-lighter: #eff6ff;
  --green: #16a34a;
  --green-light: #dcfce7;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow: 0 2px 8px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --max-w: 1100px;
  --nav-h: 64px;
}

/* ==============================
   Reset & Base
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ==============================
   Layout
============================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ==============================
   Navigation
============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--primary-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links > li > a {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links > li > a:hover { background: var(--primary-lighter); color: var(--primary-dark); text-decoration: none; }
.nav-links > li > a.active { background: var(--primary-light); color: var(--primary-dark); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: .8em; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 0.4rem;
  z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .15s;
}
.dropdown-menu li a:hover { background: var(--bg); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.3rem 0.5rem;
}

/* ==============================
   Hero
============================== */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 99px;
  padding: .25rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: .92;
  margin-bottom: 1.75rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  flex-shrink: 0;
  width: 300px;
}

.hero-fact-item {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
}

.hero-fact-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.hero-fact-label {
  font-size: .8rem;
  opacity: .85;
  line-height: 1.3;
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .975rem;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: none;
}
.btn-white { background: var(--white); color: var(--primary-dark); }
.btn-white:hover { background: #eef4ff; text-decoration: none; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ==============================
   Assignment Introduction — 4-day plan
============================== */
.assignment-intro { background: var(--primary-lighter); }

.weekplan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.weekday-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.wd-header {
  padding: 1rem 1.25rem;
  color: white;
}

.wd-num {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .85;
  margin-bottom: .3rem;
}

.wd-header h3 {
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.wd-tasks {
  list-style: none;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}

.wd-tasks li {
  font-size: .875rem;
  line-height: 1.45;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.wd-tasks li::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 800;
  margin-top: .05rem;
}

.wd-blue  { border-color: #bfdbfe; }
.wd-blue  .wd-header { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.wd-blue  .wd-tasks li::before { color: #2563eb; }

.wd-purple { border-color: #ddd6fe; }
.wd-purple .wd-header { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.wd-purple .wd-tasks li::before { color: #7c3aed; }

.wd-green { border-color: #bbf7d0; }
.wd-green .wd-header { background: linear-gradient(135deg, #16a34a, #15803d); }
.wd-green .wd-tasks li::before { color: #16a34a; }

.wd-orange { border-color: #fed7aa; }
.wd-orange .wd-header { background: linear-gradient(135deg, #ea580c, #c2410c); }
.wd-orange .wd-tasks li::before { color: #ea580c; }

.deliverables-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1e293b;
  color: white;
  border-radius: var(--r-lg);
  padding: 1.1rem 1.5rem;
  margin: .25rem 0 1.75rem;
  font-size: .975rem;
  line-height: 1.6;
}

.del-icon { font-size: 1.75rem; flex-shrink: 0; }

.del-note {
  display: inline-block;
  margin-left: .5rem;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  padding: .1rem .75rem;
  font-size: .82rem;
  opacity: .8;
  white-space: nowrap;
}

.assignment-example {
  margin: 0;
  padding: 1rem;
  background: var(--white);
  border: 2px solid var(--primary-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.example-label {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  background: var(--green-light);
  color: #166534;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.next-step-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--primary-lighter);
  border: 2px solid var(--primary-light);
  font-size: 1rem;
}

.next-step-box strong { color: var(--primary-dark); }

/* ==============================
   Cards
============================== */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); }

/* ==============================
   Topic Cards
============================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 2px solid var(--border);
  text-align: center;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.topic-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.topic-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.topic-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

.topic-rensning { border-color: #bfdbfe; }
.topic-rensning:hover { border-color: #3b82f6; background: #eff6ff; }
.topic-vandvaerk { border-color: #bae6fd; }
.topic-vandvaerk:hover { border-color: #0284c7; background: #f0f9ff; }
.topic-vandmoelle { border-color: #ddd6fe; }
.topic-vandmoelle:hover { border-color: #7c3aed; background: #faf5ff; }
.topic-genbrug { border-color: #bbf7d0; }
.topic-genbrug:hover { border-color: #16a34a; background: #f0fdf4; }
.topic-varme { border-color: #fed7aa; }
.topic-varme:hover { border-color: #ea580c; background: #fff7ed; }

/* ==============================
   Process Flow
============================== */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.flow-step {
  flex: 1;
  min-width: 160px;
  padding: 1.25rem;
  border-radius: var(--r);
  text-align: center;
}

.flow-step .step-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .18rem .55rem;
  border-radius: 99px;
  margin-bottom: .6rem;
}

.flow-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.flow-step p { font-size: .875rem; line-height: 1.5; }

.flow-input { background: #dbeafe; border: 2px solid #93c5fd; }
.flow-input .step-label { background: #2563eb; color: white; }
.flow-process { background: #fef9c3; border: 2px solid #fde047; }
.flow-process .step-label { background: #b45309; color: white; }
.flow-output { background: #dcfce7; border: 2px solid #86efac; }
.flow-output .step-label { background: #16a34a; color: white; }
.flow-impact { background: #fce7f3; border: 2px solid #f9a8d4; }
.flow-impact .step-label { background: #be185d; color: white; }

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==============================
   Info Grid & Cards
============================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.info-card ul { display: flex; flex-direction: column; gap: .45rem; }
.info-card ul li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .925rem;
}
.info-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* ==============================
   Days Timeline
============================== */
.days-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.day-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.day-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.day-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.day-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: .6rem; }
.day-card ul { display: flex; flex-direction: column; gap: .4rem; }
.day-card ul li {
  display: flex;
  gap: .5rem;
  font-size: .9rem;
  line-height: 1.45;
}
.day-card ul li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ==============================
   Example Figure
============================== */
.example-figure {
  margin: 1.75rem 0 2rem;
  text-align: center;
}

.example-img {
  max-width: 100%;
  width: 700px;
  border-radius: var(--r);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  display: block;
  margin: 0 auto .75rem;
}

.example-figure figcaption {
  font-size: .875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==============================
   Research Questions
============================== */
.questions-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }

.question-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.question-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.question-text { font-size: .95rem; line-height: 1.55; }

/* ==============================
   Vocabulary / Fagbegreber
============================== */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.vocab-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .875rem 1rem;
  border-left: 4px solid var(--primary);
}

.vocab-term { font-weight: 700; color: var(--primary-dark); font-size: .975rem; margin-bottom: .2rem; }
.vocab-def { font-size: .875rem; color: var(--text-muted); line-height: 1.45; }

/* ==============================
   Day Cards (Arbejdsplan)
============================== */
.day-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.day-header {
  padding: 1.25rem 1.5rem;
  color: white;
}

.day-number {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: .25rem;
}

.day-header h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .2rem; }
.day-header .day-desc { font-size: .9rem; opacity: .9; }

.dag1 .day-header { background: linear-gradient(135deg, #0284c7, #0369a1); }
.dag2 .day-header { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.dag3 .day-header { background: linear-gradient(135deg, #16a34a, #15803d); }
.dag4 .day-header { background: linear-gradient(135deg, #ea580c, #c2410c); }

.topic-heading {
  margin-bottom: 1rem;
}

.topic-heading h2 {
  font-size: 1.8rem;
  margin-bottom: .35rem;
}

.topic-heading p {
  color: var(--text-muted);
  max-width: 760px;
}

.day-body { padding: 1.5rem; }

.time-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.time-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.time-col {
  min-width: 90px;
  flex-shrink: 0;
}

.time-badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .2rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.time-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.time-content ul { display: flex; flex-direction: column; gap: .35rem; }
.time-content ul li {
  font-size: .9rem;
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}
.time-content ul li::before { content: '→'; color: var(--primary); flex-shrink: 0; font-weight: 600; }

/* ==============================
   Checklist
============================== */
.checklist { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .625rem .875rem;
  background: var(--white);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: .925rem;
}
.checklist li::before { content: '☐'; font-size: 1.1rem; color: var(--primary); flex-shrink: 0; }

/* ==============================
   Presentation Template
============================== */
.template-box {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 2px solid #93c5fd;
  border-radius: var(--r-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.template-box h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1.25rem; }

.template-line {
  background: white;
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  font-size: .95rem;
  border: 1px solid var(--border);
  line-height: 1.6;
}

.blank {
  display: inline-block;
  border-bottom: 2px solid var(--primary);
  min-width: 120px;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 .25rem;
}

/* ==============================
   Roles Grid
============================== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.role-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.25rem;
  border: 2px solid var(--border);
  text-align: center;
  transition: all .15s;
}
.role-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }

.role-emoji { font-size: 2rem; display: block; margin-bottom: .5rem; }
.role-name { font-weight: 700; font-size: .975rem; margin-bottom: .4rem; color: var(--primary-dark); }
.role-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }

/* ==============================
   Assessment Rubric
============================== */
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.rubric-level { background: var(--white); border-radius: var(--r); padding: 1.5rem; border: 2px solid var(--border); }
.rubric-level.level-1 { border-color: #fca5a5; }
.rubric-level.level-2 { border-color: #fde68a; }
.rubric-level.level-3 { border-color: #86efac; }

.level-badge {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.level-1 .level-badge { background: #fee2e2; color: #991b1b; }
.level-2 .level-badge { background: #fef9c3; color: #92400e; }
.level-3 .level-badge { background: #dcfce7; color: #166534; }

.rubric-level h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.rubric-level ul { display: flex; flex-direction: column; gap: .4rem; }
.rubric-level ul li { font-size: .875rem; display: flex; gap: .4rem; align-items: flex-start; }
.level-1 ul li::before { content: '•'; color: #ef4444; font-size: 1.1em; }
.level-2 ul li::before { content: '•'; color: #f59e0b; font-size: 1.1em; }
.level-3 ul li::before { content: '•'; color: #22c55e; font-size: 1.1em; }

/* ==============================
   Tip / Info Boxes
============================== */
.tip-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.tip-box strong { color: #92400e; }

.info-box {
  background: var(--primary-lighter);
  border: 1px solid var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.info-box strong { color: var(--primary-dark); }

.success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.success-box strong { color: #166534; }

/* ==============================
   Section Colors (for bg variety)
============================== */
.bg-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bg-subtle { background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ==============================
   Phase/Step Numbers
============================== */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.phase-card { background: var(--white); border-radius: var(--r); padding: 1.25rem; border: 1px solid var(--border); }
.phase-num { font-size: 1.4rem; margin-bottom: .4rem; }
.phase-card h3 { font-size: .975rem; font-weight: 700; margin-bottom: .25rem; }
.phase-card p { font-size: .875rem; color: var(--text-muted); }

/* ==============================
   Video Embeds
============================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.video-wrapper {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ==============================
   Footer
============================== */
.footer {
  background: #1e293b;
  color: rgba(255,255,255,.65);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: .9rem;
}
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: white; }

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .75rem;
    flex-direction: column;
    gap: .125rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg);
    padding: .125rem .5rem;
    margin-top: .25rem;
    border-radius: var(--r-sm);
    display: none;
  }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }

  .process-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 0; min-height: 30px; }

  .hero { padding: 2.5rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-facts { width: 100%; }
  .hero p { max-width: 100%; }
  .section { padding: 2rem 0; }
  .weekplan-grid { grid-template-columns: repeat(2, 1fr); }
  .del-note { white-space: normal; }

  .time-block { flex-direction: column; gap: .5rem; }
  .time-col { min-width: auto; }
}

@media (max-width: 480px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .rubric-grid { grid-template-columns: 1fr; }
  .weekplan-grid { grid-template-columns: 1fr; }
  .deliverables-banner { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
