/* Custom styles for course micro-lesson markdown content */

.lesson-markdown {
  line-height: 1.8rem;
  color: #374151; /* text-gray-700 */
  font-size: 1.05rem;
}

.lesson-markdown h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #0d9488; /* teal-600 */
  padding-left: 0.75rem;
  line-height: 2.25rem;
}

.lesson-markdown h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 2rem;
}

.lesson-markdown h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.lesson-markdown p {
  margin-bottom: 1.25rem;
  line-height: 1.8rem;
}

.lesson-markdown a {
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #0d9488;
  transition: all 0.2s ease;
}

.lesson-markdown a:hover {
  color: #0f766e;
  border-bottom-style: solid;
}

/* Styled Lists */
.lesson-markdown ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.lesson-markdown ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  line-height: 1.75rem;
}

.lesson-markdown ul li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: #0d9488; /* teal-600 */
  font-weight: 800;
}

.lesson-markdown ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.lesson-markdown ol li {
  margin-bottom: 0.625rem;
  line-height: 1.75rem;
}

/* Custom Blockquotes for alerts or key callouts */
.lesson-markdown blockquote {
  background-color: #f0fdfa; /* teal-50 */
  border-left: 4px solid #0d9488; /* teal-600 */
  color: #0f766e; /* teal-800 */
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  font-style: italic;
  margin: 1.75rem 0;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lesson-markdown blockquote p {
  margin-bottom: 0;
}

/* Premium Code Blocks */
.lesson-markdown pre {
  background-color: #0f172a; /* slate-900 */
  color: #f8fafc; /* slate-50 */
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Inline Code tags */
.lesson-markdown code {
  background-color: #f1f5f9; /* slate-100 */
  color: #0f766e; /* teal-700 */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.lesson-markdown pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-weight: inherit;
  font-size: inherit;
}

/* Beautiful Images styling */
.lesson-markdown img {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  margin: 2.25rem auto;
  display: block;
  max-width: 100%;
}

.lesson-markdown br {
  margin-bottom: 1.25rem;
}