article.prose h2 {
  text-align: center !important; /* Center on mobile */
}

@media (min-width: 768px) {
  /* md breakpoint */
  article.prose h2 {
    text-align: left !important; /* Left-align on md and above */
  }
}

.prose img {
  border-radius: 30px;
}

/* Styles for paragraph spacing on mobile */
article.prose p {
  margin-top: 1.5em !important; /* Increased top margin for paragraphs on mobile */
  margin-bottom: 1.5em !important; /* Increased bottom margin for paragraphs on mobile */
  font-size: 0.9em !important; /* Smaller font size for paragraphs on mobile */
}

@media (min-width: 768px) {
  /* md breakpoint */
  article.prose p {
    /* Reset or keep default prose spacing and font size for larger screens */
    margin-top: 1em !important; /* Adjust as needed, or remove !important if prose default is fine */
    margin-bottom: 1em !important; /* Adjust as needed, or remove !important if prose default is fine */
    font-size: 1em !important; /* Revert to default or desired font size for larger screens */
  }
}

/* General text readability improvements for article content */
article.prose p {
  line-height: 1.75; /* Relaxed line height */
  margin-top: 1em; /* Default paragraph spacing */
  margin-bottom: 1em;
}

article.prose ul,
article.prose ol {
  margin-top: 1em;
  margin-bottom: 1em;
}

article.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

article.prose h1 {
  margin-top: 3rem; /* Equivalent to spacing.12 */
  margin-bottom: 1.5rem; /* Equivalent to spacing.6 */
}

article.prose h2 {
  margin-top: 2.5rem; /* Equivalent to spacing.10 */
  margin-bottom: 1.25rem; /* Equivalent to spacing.5 */
}

article.prose h3 {
  margin-top: 2rem; /* Equivalent to spacing.8 */
  margin-bottom: 1rem; /* Equivalent to spacing.4 */
}

article.prose h4 {
  margin-top: 1.5rem; /* Equivalent to spacing.6 */
  margin-bottom: 0.75rem; /* Equivalent to spacing.3 */
}

/* Code block styling */
article.prose pre {
  background-color: #1a202c; /* neutral-900 */
  border: 1px solid #2d3748; /* neutral-800 */
  border-radius: 0.5rem; /* lg */
  padding: 1rem; /* spacing.4 */
  overflow-x: auto; /* Enable horizontal scrolling for long lines */
}

article.prose code {
  background-color: #2d3748; /* neutral-800 */
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em; /* Smaller font size for inline code */
}

/* Table styling */
article.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

article.prose th,
article.prose td {
  border: 1px solid #4a5568; /* neutral-600 */
  padding: 0.75em;
  text-align: left;
}

article.prose th {
  background-color: #2d3748; /* neutral-800 */
  font-weight: bold;
}

/* Link hover effect */
article.prose a {
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

article.prose a:hover {
  color: #6366f1; /* indigo-500 */
  text-decoration-color: #6366f1; /* indigo-500 */
}

/* Blockquote styling */
article.prose blockquote {
  border-left: 4px solid #4f46e5; /* indigo-600 */
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
  color: #a0aec0; /* neutral-400 */
  background-color: #1a202c; /* neutral-900 */
  padding: 1em;
  border-radius: 0.5rem;
}