h4, h5 {
  margin-top: 20px; /* Increased margin for better separation */
  margin-bottom: 10px;
}
h2, h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}
hr {
  margin-top: 40px;
  margin-bottom: 40px;
}
.blog-content p, .blog-content li {
  line-height: 1.8; /* Improved readability */
  margin-bottom: 1.5rem; /* Increased vertical spacing between paragraphs */
}
.blog-content pre {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Responsive images - mobile friendly but not too big on desktop */
.responsive-image {
  max-width: 100%;
  height: auto;
  width: auto;
}

/* For larger screens, limit image width */
@media (min-width: 768px) {
  .responsive-image {
      max-width: 700px;
  }
}

/* For very large screens, further limit */
@media (min-width: 1200px) {
  .responsive-image {
      max-width: 800px;
  }
}

/* Video responsive styling */
.responsive-video {
  max-width: 100%;
  height: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .responsive-video {
      max-width: 800px;
  }
}