/* Rich content styling to preserve HTML formatting */
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.rich-content h1 {
  font-size: 2em;
}

.rich-content h2 {
  font-size: 1.5em;
}

.rich-content h3 {
  font-size: 1.25em;
}

.rich-content h4 {
  font-size: 1em;
}

.rich-content p {
  margin-bottom: 1em;
}

.rich-content ul,
.rich-content ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 2em;
}

.rich-content ul {
  list-style-type: disc;
}

.rich-content ol {
  list-style-type: decimal;
}

.rich-content li {
  margin-bottom: 0.5em;
}

.rich-content a {
  color: #0066cc;
  text-decoration: underline;
}

.rich-content blockquote {
  border-left: 4px solid #e2e8f0;
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
}

.rich-content pre {
  background-color: #f7fafc;
  border-radius: 0.375rem;
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}

.rich-content code {
  background-color: #f7fafc;
  border-radius: 0.25rem;
  padding: 0.25em 0.5em;
  font-family: monospace;
}

.rich-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
}

.rich-content table th,
.rich-content table td {
  border: 1px solid #e2e8f0;
  padding: 0.5em;
}

.rich-content table th {
  background-color: #f7fafc;
  font-weight: bold;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}
