/* Heading spacing */
h2 {
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #e0e0e0;
}

h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Image sizing */
.blog-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

figure {
  margin: 2em 0;
}

figcaption {
  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* Custom styling for code blocks */
details.code-block {
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0;
}

details.code-block summary {
  padding: 1em;
  cursor: pointer;
  background: #f5f5f5;
  font-weight: bold;
  user-select: none;
}

details.code-block summary:hover {
  background: #e8e8e8;
}

details.code-block pre {
  margin: 0;
  border-radius: 0 0 4px 4px;
}

details.code-block pre code {
  display: block;
  padding: 1.5em;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.5;
}

/* Paragraph spacing */
p {
  margin-bottom: 1em;
  line-height: 1.6;
}

/* List spacing */
ul, ol {
  margin-bottom: 1em;
}

/* Blockquote styling */
blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #ccc;
  background: #f9f9f9;
}