.single-post-layout {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.post-content-area {
  width: 100%;
  max-width: 800px;
}

.blog-modern-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sticky-share {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  width: 60px;
}

.share-sidebar {
  width: 60px;
}

.share-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.blog-main-content {
  max-width: 800px;
  width: 100%;
}

.blog-modern-wrapper.no-share {
  grid-template-columns: 1fr;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  object-fit: cover;
  max-height: 350px;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.taxonomy-badge {
  display: inline-block;
  background: #eef0f4;
  color: #333;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.taxonomy-badge:hover {
  background: #dce0e6;
}

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.meta-bottom {
  font-size: 0.825em;
  padding: 5px 15px;
  border-radius: var(--bb-block-radius-inner);
  border: 1px solid var(--bb-content-border-color);
  margin-top: 2em;
  display: inline-block;
  width: 100%;
}

.meta-bottom a {
  display: inline-block;
  font-size: 0.825em;
  margin-right: 7px;
  line-height: 0.825em;
  background-color: var(--bb-label-background-color);
  padding: 5px 10px;
  border-radius: var(--bb-block-radius);
}

.post-footer {
  margin-top: 1em;
}

/* Override default post font size */
.blog-main-content,
.post-body,
.single-post .entry-content {
  font-size: 1.225rem;
  line-height: 1.8;
  color: #333;
}

.blog-main-content h1,
.post-body h1 {
  font-size: 2.5rem;
}

.blog-main-content h2,
.post-body h2 {
  font-size: 2rem;
}

.blog-main-content h3,
.post-body h3 {
  font-size: 1.25rem;
}

.comments-login-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #f7f7f7;
  border-left: 4px solid #ccc;
}

.loader {
  font-size: 1rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .blog-modern-wrapper,
  .single-post-layout {
    grid-template-columns: 1fr;
    display: block;
    padding: 1.5rem 1rem;
    overflow-x: hidden;
  }

  .post-content-area,
  .blog-main-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  body,
  html {
    overflow-x: hidden;
  }

  .share-sidebar,
  .sticky-share {
    display: none;
  }

  .hero-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-meta {
    font-size: 0.85rem;
  }

  .taxonomy-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .blog-main-content,
  .post-body,
  .single-post .entry-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .meta-bottom {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .meta-bottom a {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .comments-login-note {
    font-size: 0.9rem;
  }
}
