/* =========================================================
   BLOG – SINGLE POST & BLOG UI
   Used on: single post, blog archives (via blog helper)
   ========================================================= */

/* =========================================================
   BREADCRUMB + TITLE
   ========================================================= */

/* Breadcrumb above the post */
.breadcrumb-custom {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb-custom a {
  color: var(--vt-primary, #8f679f);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-custom a:hover {
  color: #6f4fa0;
  text-decoration: underline;
}

.breadcrumb-custom span {
  color: #555555;
}

/* Blog post main title (H1) */
.blog-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 18px;
}

/* =========================================================
   INTRO SECTION
   - Featured image + AEO answer + TOC
   ========================================================= */

.blog-intro-container {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin: 20px 0 32px;
  padding: 20px;
  border-radius: 24px;
  background: #faf8ff;
  border: 1px solid #ece8f6;
}

/* Featured image box */
.blog-featured-image {
  flex: 0 0 260px;
  max-width: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.blog-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text side (AEO + TOC) */
.blog-intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Short AEO answer box */
.blog-faq-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #eee5ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.blog-faq-box .faq-answer {
  font-size: 0.95rem;
  color: #444444;
}

.blog-faq-box .faq-answer p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   TABLE OF CONTENTS (TOC)
   ========================================================= */

.blog-toc-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px dashed #ddceff;
  font-size: 0.92rem;
}

.blog-toc-box > strong {
  display: block;
  margin-bottom: 8px;
  color: #333333;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.toc-item {
  margin-bottom: 5px;
  position: relative;
  padding-right: 14px;
}

.toc-item::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--vt-primary, #8f679f);
  font-size: 1.1em;
  line-height: 1;
}

/* Hidden TOC items (for "show more") */
.hidden-toc-item {
  display: none;
}

.blog-toc-box a {
  color: var(--vt-primary, #8f679f);
  text-decoration: none;
  line-height: 1.7;
}

.blog-toc-box a:hover {
  text-decoration: underline;
}

/* TOC toggle button */
.toc-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d3c5ff;
  background: #f8f5ff;
  color: var(--vt-primary, #8f679f);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
  background: #efe7ff;
}

/* =========================================================
   MAIN CONTENT + SIDEBAR LAYOUT
   ========================================================= */

/* Content + sidebar layout on desktop */
.blog-content-layout {
  display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 0;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* --------------------------------------
   Sidebar box – compact card style
   Used for: .sidebar-box (blog sidebar, etc.)
   -------------------------------------- */
/* Sidebar (left column) – sticky */
.blog-sidebar {
  align-self: flex-start;
  position: sticky;
  top: 90px; /* adjust according to header height */
}

.sidebar-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;              /* minimal padding */
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
}

/* Optional: title inside sidebar box */
.sidebar-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 6px;
}

/* Main content card (right column) */
.blog-main-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #f0f0f0;
}

/* Each H2 section wrapper */
.content-section {
  margin-bottom: 28px;
}

/* H2 inside each section */
.section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #efefef;
  color: #222222;
}

/* Body inside each section */
.section-body {
  font-size: 0.96rem;
  color: #444444;
}

.section-body p {
  margin-bottom: 12px;
  text-align: justify;
}

/* Images inside content */
.section-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 14px auto;
}

/* Lists inside content */
.section-body ul,
.section-body ol {
  margin: 0 0 12px 0;
  padding-right: 20px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  /* Intro: stack image and text */
  .blog-intro-container {
    flex-direction: column;
    padding: 16px;
  }

  .blog-featured-image {
    max-width: 100%;
    flex: 0 0 auto;
  }

  /* On tablet/mobile: stack content and sidebar */
  .blog-content-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Disable sticky on small screens */
  .blog-sidebar {
    position: static;
    top: auto;
  }

  .blog-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .blog-main-content {
    padding: 16px 14px;
  }

  .blog-faq {
    padding: 18px 14px;
  }
}


/* =========================================================
   BLOG FAQ SECTION
   ========================================================= */

.blog-faq {
  margin: 40px 0 30px;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: #fafafa;
  border: 1px solid #e9e9e9;
}

.blog-faq > h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #222222;
}

/* FAQ accordion items */
.blog-faq details {
  margin-bottom: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 8px 12px;
}

.blog-faq summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333333;
  list-style: none;
}

/* Remove default marker */
.blog-faq summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- indicator */
.blog-faq summary::before {
  content: "+";
  display: inline-block;
  margin-left: 8px;
  font-weight: 700;
  color: var(--vt-primary, #8f679f);
}

.blog-faq details[open] summary::before {
  content: "−";
}

.blog-faq details > div {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #555555;
}

/* =========================================================
   TAGS SECTION
   ========================================================= */

.post-tags {
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
}

.post-tags h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333333;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f0ff;
  color: var(--vt-primary, #8f679f);
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid #e0d4ff;
  transition: all 0.2s ease;
}

.tag-list li a:hover {
  background: #e9deff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  /* Stack intro on mobile/tablet */
  .blog-intro-container {
    flex-direction: column;
    padding: 16px;
  }

  .blog-featured-image {
    max-width: 100%;
    flex: 0 0 auto;
  }

  /* Stack content and sidebar */
  .blog-content-layout {
    grid-template-columns: 1fr;
  }

  /* Show content first, sidebar after */
  .blog-main-content {
    order: 1;
  }

  .blog-sidebar {
    order: 2;
  }

  .blog-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .blog-main-content {
    padding: 16px 14px;
  }

  .blog-faq {
    padding: 18px 14px;
  }
}
