/* =========================================================
   Hestia Child Theme - Single Post Styling
   File: assets/css/single-post.css
   Scope: single blog posts only
========================================================= */

body.single-post {
  background: #f5f5f5;
}

/* Main post wrapper */
body.single-post .main {
  padding-top: 0;
}

/* Hero / title area */
body.single-post .page-header.header-small,
body.single-post .page-header.header-filter {
  min-height: 320px;
}

body.single-post .page-header .container {
  padding-top: 70px;
  padding-bottom: 40px;
}

body.single-post .page-header .title,
body.single-post .page-header h1.title {
  max-width: 980px;
  margin: 0 auto 14px;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}

body.single-post .page-header .authors,
body.single-post .page-header .post-meta,
body.single-post .page-header .category,
body.single-post .page-header .description {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

/* Main content card */
body.single-post .main-raised,
body.single-post .blog-post .section,
body.single-post .section.section-text {
  margin: 0 auto;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

body.single-post .single-post-wrap,
body.single-post .blog-post .container,
body.single-post .main .blog-post {
  max-width: 100%;
}

/* Content column width */
body.single-post .section-text .container,
body.single-post .blog-post .container,
body.single-post article .container,
body.single-post .main .container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Actual post content area */
body.single-post .section-text {
  padding-top: 40px;
  padding-bottom: 30px;
}

body.single-post .section-text .row,
body.single-post .blog-post .row {
  display: block;
}

body.single-post .section-text .col-md-8,
body.single-post .section-text .col-md-10,
body.single-post .section-text .col-md-12,
body.single-post .blog-post .col-md-8,
body.single-post .blog-post .col-md-10,
body.single-post .blog-post .col-md-12 {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  float: none;
}

/* White reading card */
body.single-post .entry-content,
body.single-post .section-text .col-md-8,
body.single-post .section-text .col-md-10,
body.single-post .section-text .col-md-12,
body.single-post .blog-post .content,
body.single-post article {
  background: #ffffff;
  padding: 42px 48px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Typography */
body.single-post .entry-content,
body.single-post .post-content,
body.single-post article {
  font-size: 21px;
  line-height: 1.8;
  color: #1f2a44;
}

body.single-post .entry-content p {
  margin-bottom: 1.35em;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  color: #0f1b3d;
  margin-top: 1.7em;
  margin-bottom: 0.7em;
  line-height: 1.25;
}

body.single-post .entry-content h2 {
  font-size: 34px;
}

body.single-post .entry-content h3 {
  font-size: 28px;
}

body.single-post .entry-content h4 {
  font-size: 22px;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 1.4em 1.3em;
  padding: 0;
}

body.single-post .entry-content li {
  margin-bottom: 0.6em;
}

body.single-post .entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Images inside posts */
body.single-post .entry-content img,
body.single-post .wp-block-image img,
body.single-post .entry-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
}

/* Fix large awkward empty side space feeling */
body.single-post .main {
  padding-bottom: 40px;
}

/* Meta below article */
body.single-post .section-blog-info,
body.single-post .post-tags,
body.single-post .entry-footer,
body.single-post .blog-tags,
body.single-post .card-profile .category {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Clean up the categories / share strip */
body.single-post .section-blog-info {
  background: transparent;
  box-shadow: none;
  padding-top: 18px;
  padding-bottom: 8px;
}

body.single-post .section-blog-info .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
}

body.single-post .section-blog-info [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
}

body.single-post .section-blog-info .card-profile,
body.single-post .section-blog-info .category,
body.single-post .section-blog-info .post-categories {
  margin: 0;
}

body.single-post .section-blog-info .post-categories a,
body.single-post .section-blog-info .category a {
  display: inline-block;
  background: #1b0d8f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  margin-right: 8px;
}

body.single-post .section-blog-info .sharing-area,
body.single-post .section-blog-info .social-line {
  margin: 0;
}

body.single-post .section-blog-info .btn,
body.single-post .section-blog-info .btn.btn-just-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  line-height: 38px;
  border-radius: 50%;
  margin: 0 6px 0 0;
  box-shadow: none;
}

/* Hide comment form on posts if you do not want it */
body.single-post .comments-area {
  max-width: 820px;
  margin: 24px auto 0;
  background: #fff;
  padding: 36px 48px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Optional: hide comments completely
body.single-post .comments-area {
  display: none;
}
*/

/* Sidebar cleanup if sidebar is still loading on single posts */
body.single-post .sidebar,
body.single-post .blog-sidebar-wrapper {
  display: none;
}

/* Make full width layout behave nicely */
body.single-post .wrapper.classic-blog .main,
body.single-post .blog-post .section-text {
  overflow: visible;
}

/* Mobile */
@media (max-width: 991px) {
  body.single-post .page-header .title,
  body.single-post .page-header h1.title {
    font-size: 38px;
    line-height: 1.15;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.single-post .entry-content,
  body.single-post .section-text .col-md-8,
  body.single-post .section-text .col-md-10,
  body.single-post .section-text .col-md-12,
  body.single-post .blog-post .content,
  body.single-post article,
  body.single-post .comments-area {
    padding: 28px 22px;
    border-radius: 10px;
  }

  body.single-post .section-text .container,
  body.single-post .blog-post .container,
  body.single-post article .container,
  body.single-post .main .container {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  body.single-post .entry-content {
    font-size: 18px;
    line-height: 1.75;
  }

  body.single-post .entry-content h2 {
    font-size: 29px;
  }

  body.single-post .entry-content h3 {
    font-size: 24px;
  }

  body.single-post .entry-content h4 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  body.single-post .page-header.header-small,
  body.single-post .page-header.header-filter {
    min-height: 250px;
  }

  body.single-post .page-header .title,
  body.single-post .page-header h1.title {
    font-size: 30px;
  }

  body.single-post .page-header .authors,
  body.single-post .page-header .post-meta {
    font-size: 14px;
  }
}