.img-responsive {
  max-width: 100%;
  height: auto;
  cursor: pointer; /* makes it obvious it's clickable */
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Ensure all images in blog posts are responsive */
.post-content img {
  max-width: 100%;
  height: auto;
}

/* Typography and readability improvements for blog content */
.post-content {
  font-size: 18px;
  line-height: 24px;
  color: #333;
  max-width: 100%;
}

/* Paragraph styling to match site index page */
.post-content p {
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
}

/* Make figures responsive */
.post-content figure {
  max-width: 100%;
  margin: 1.5rem auto;
  text-align: center;
}

.post-content figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Spacing utility for blog content */
.post-content .mb-3 {
  margin-bottom: 1.5rem;
}

.post-content .pb-3 {
  padding-bottom: 1.5rem;
}

/* Improved heading styles for better hierarchy */
.post-content h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #222;
}

.post-content h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: #222;
}

.post-content h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.post-content h4 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
  color: #333;
}

/* Improved list styling */
.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 24px;
  font-size: 18px;
  font-weight: 300;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 24px;
  font-weight: 300;
}

/* Improved blockquote styling */
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #ddd;
  background-color: #f9f9f9;
  color: #555;
  font-style: italic;
  line-height: 24px;
  font-size: 18px;
  font-weight: 300;
}

/* Better code block styling */
.post-content code {
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: #f4f4f4;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f4f4f4;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.6;
}

.post-content pre code {
  padding: 0;
  background-color: transparent;
}

/* Improved link styling */
.post-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: #0066cc;
  color: #0052a3;
}

/* Better spacing for horizontal rules */
.post-content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}
