/* Rich Text Content Styling */

/* Headings */
.richtext-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.richtext-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.richtext-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.richtext-content h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Paragraphs and text */
.richtext-content p {
  margin-bottom: 1.5rem;
}

/* Lists */
.richtext-content ul,
.richtext-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.richtext-content li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.richtext-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  font-size: 1.15rem;
}

/* Links */
.richtext-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.richtext-content a:hover {
  color: var(--brand-blue);
  text-decoration-thickness: 2px;
}

/* Images */
.richtext-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Inline code */
.richtext-content code {
  background: var(--neutral-light);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
  color: #e83e8c;
}

/* Code blocks */
.richtext-content pre {
  background: var(--neutral-dark);
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.richtext-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
