/* ==========================================================================
   Unit Landing Page Styles
   Extends module.css for individual unit pages
   ========================================================================== */

/* Unit Hero */
.unit-page .unit-hero {
  background: linear-gradient(135deg, #002b5c 0%, #00539b 100%);
  color: #ffffff;
  padding: 2.5rem 0 2rem;
}
.unit-page .unit-hero .module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.unit-page .unit-hero .module-number {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.unit-page .unit-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.unit-page .unit-hero .unit-intro {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 60ch;
  opacity: 0.95;
  margin: 0 0 1.5rem;
}
.unit-page .unit-hero .module-progress {
  max-width: 480px;
}

/* Lesson Section Preview Cards */
.unit-page .lesson-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.unit-page .lesson-section-card {
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.unit-page .lesson-section-card:hover {
  border-color: #00539b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.unit-page .lesson-section-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00539b;
  margin-bottom: 0.25rem;
}
.unit-page .lesson-section-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #1a1a2e;
}
.unit-page .lesson-section-card p {
  margin: 0;
  color: #4a5568;
  line-height: 1.55;
}
.unit-page .lesson-section-topics {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: #4a5568;
  font-size: 0.9375rem;
}
.unit-page .lesson-section-topics li { margin-bottom: 0.25rem; }

/* Key Takeaways */
.unit-page .key-takeaways {
  background: #f0f6fc;
  border-left: 4px solid #00539b;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.unit-page .key-takeaways h2 { margin-top: 0; font-size: 1.25rem; }
.unit-page .key-takeaways ul { margin-bottom: 0; padding-left: 1.25rem; }
.unit-page .key-takeaways li { margin-bottom: 0.5rem; line-height: 1.5; }

/* Knowledge Check Preview */
.unit-page .knowledge-check {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.unit-page .knowledge-check h2 { margin-top: 0; font-size: 1.25rem; }
.unit-page .knowledge-check p { margin-top: 0; }
.unit-page .knowledge-check ol { padding-left: 1.25rem; margin-bottom: 0; }
.unit-page .knowledge-check li { margin-bottom: 0.5rem; line-height: 1.5; }
.unit-page .knowledge-check-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Begin Lesson CTA */
.unit-page .begin-lesson-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #f7f9fc;
  border-radius: 8px;
  border: 1px solid #e0e4ea;
  margin: 1.5rem 0;
}
.unit-page .begin-lesson-cta .btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
.unit-page .begin-lesson-cta p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9375rem;
}

/* Objectives */
.unit-page .unit-objectives .outcomes-list li {
  position: relative;
  padding-left: 1.5rem;
}
.unit-page .unit-objectives .outcomes-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #00539b;
  font-weight: 700;
}

/* Prerequisite callout */
.unit-page .prerequisite-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #eef4fb;
  border: 1px solid #c5d9ef;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #1e3a5f;
}
.unit-page .prerequisite-note strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* Sidebar active state */
.unit-page .sidebar-nav .nav-link.active {
  font-weight: 600;
  color: #00539b;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .unit-page .unit-hero { padding: 2rem 0 1.5rem; }
  .unit-page .lesson-section-card { padding: 1rem 1.25rem; }
}
