/* ===== LESSON PAGE STYLES ===== */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #1a4f8a 0%, #2d6fc4 60%, #4a90d9 100%);
  color: #fff;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  transition: color 0.2s;
}

.back-link:hover { color: #fff; }

.grade-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.8rem;
}

/* Main lessons area */
.lessons-main {
  background: #f5f8fd;
  padding: 3rem 2rem 4rem;
}

.lessons-main .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Lesson Card */
.lesson-card {
  background: #fff;
  border: 1px solid #e2eaf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,79,138,0.06);
}

.lesson-header {
  background: linear-gradient(90deg, #f0f5ff, #e8f0fe);
  border-bottom: 1px solid #dde8f7;
  padding: 1.5rem 2rem;
}

.lesson-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6fc4;
  margin-bottom: 0.3rem;
}

.lesson-header h2 {
  font-size: 1.25rem;
  color: #1a2f4a;
  margin-bottom: 0.7rem;
}

.lesson-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-math    { background: #dbeafe; color: #1d4ed8; }
.tag-science { background: #d1fae5; color: #065f46; }
.tag-ela     { background: #fce7f3; color: #9d174d; }
.tag-social  { background: #fef3c7; color: #92400e; }
.tag-time    { background: #f3f4f6; color: #374151; }

/* Lesson body */
.lesson-body {
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

/* Make procedure and assessment span full width */
.lesson-section:nth-child(3),
.lesson-section:nth-child(4) {
  grid-column: 1 / -1;
}

.lesson-section h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2d6fc4;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e8f0fe;
}

.lesson-section ul,
.lesson-section ol {
  padding-left: 1.3rem;
  color: #444;
  font-size: 0.92rem;
}

.lesson-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lesson-section p {
  color: #444;
  font-size: 0.92rem;
  line-height: 1.65;
}

.lesson-section ol li strong {
  color: #1a4f8a;
}

/* Nav logo as link */
.nav-logo {
  color: #1a4f8a;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .lesson-body {
    grid-template-columns: 1fr;
  }

  .lesson-section:nth-child(3),
  .lesson-section:nth-child(4) {
    grid-column: 1;
  }

  .lesson-header,
  .lesson-body {
    padding: 1.2rem 1.2rem;
  }
}
