/*
 * Tata Garden – Blog Styles
 * File: assets/css/blog.css
 *
 * Dùng token từ assets/css/_variables.css.
 * Không phụ thuộc Flatsome hay bất kỳ parent theme nào.
 *
 * Phân vùng:
 *  1.  Reset scoped + token nội bộ
 *  2.  Utilities (container, labels, buttons)
 *  3.  Category chips
 *  4.  Hero banner (archive)
 *  5.  Featured post (archive)
 *  6.  Blog grid + cards
 *  7.  Pagination / Load more
 *  8.  CTA section (dùng chung archive & single)
 *  9.  Single – Post hero
 * 10.  Single – Content typography
 * 11.  Single – Sidebar
 * 12.  Single – Related posts grid
 * 13.  Single – Author box
 * 14.  Single – Share bar
 * 15.  Single – Post navigation
 * 16.  Single – Reading progress bar
 * 17.  Single – Table of Contents
 * 18.  Responsive
 */


/* ── Ẩn footer CTA trên blog/single post — trang đã có CTA riêng ── */
body.blog       .lsc-cta,
body.archive    .lsc-cta,
body.single-post .lsc-cta,
body.category   .lsc-cta,
body.tag        .lsc-cta {
  display: none !important;
}

/* ============================================================
   1. RESET SCOPED + TOKEN NỘI BỘ
   Chỉ áp dụng trong .tg-blog-archive và .tg-single
============================================================ */
.tg-blog-archive *,
.tg-blog-archive *::before,
.tg-blog-archive *::after,
.tg-single *,
.tg-single *::before,
.tg-single *::after {
  box-sizing: border-box;
}

/* Token dẫn xuất – không có trong _variables.css */
:root {
  --tg-green-pale:    rgba(20, 102, 83, 0.07);   /* --g @ 7% */
  --tg-border:        rgba(28, 38, 33, 0.14);    /* --charcoal @ 14% */
  --tg-border-light:  rgba(28, 38, 33, 0.08);   /* --charcoal @ 8% */
  --tg-text:          var(--tg-charcoal);
  --tg-text-muted:    #3d524a;
  --tg-text-light:    var(--tg-muted);
  --tg-bg:            var(--cream);
  --tg-white:         var(--white);
  --tg-radius:        12px;
  --tg-radius-sm:     8px;
  --tg-radius-xs:     6px;
  --tg-gap:           28px;
  --tg-shadow:        var(--shadow-sm);
  --tg-shadow-hover:  var(--shadow-md);
  --tg-container:     var(--tg-max-w);
}


/* ============================================================
   2. UTILITIES
============================================================ */
.tg-blog-archive .tg-container,
.tg-single .tg-container {
  max-width: var(--tg-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.tg-eyebrow {
  font-family: var(--tg-font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tg-gold);
  margin-bottom: 14px;
  display: block;
}

.tg-eyebrow--light { color: rgba(255, 255, 255, 0.65); }

.tg-section-label {
  font-family: var(--tg-font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tg-gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-section-label::after {
  content: '';
  height: 1px;
  width: 48px;
  background: rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.tg-section-title {
  font-family: var(--tg-font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--tg-charcoal);
}

.tg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tg-count-badge {
  font-size: 12px;
  color: var(--tg-text-light);
  background: var(--tg-bg);
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--tg-border);
}

.tg-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-main);
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-view-all:hover { color: var(--tg-accent); }

/* ── Buttons ── */
.tg-btn-load {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  border-radius: 100px;
  border: 1.5px solid var(--tg-main);
  background: transparent;
  color: var(--tg-main);
  font-family: var(--tg-font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-btn-load:hover {
  background: var(--tg-main);
  color: var(--tg-white);
}

.tg-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: var(--tg-gold);
  color: var(--tg-charcoal);
  border-radius: var(--tg-radius-sm);
  font-family: var(--tg-font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--tg-gold);
  transition: var(--tg-trans);
  white-space: nowrap;
}
.tg-btn-cta:hover {
  background: var(--tg-gold-lt);
  border-color: var(--tg-gold-lt);
  color: var(--tg-charcoal);
  transform: translateY(-1px);
}

.tg-btn-cta--outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.45);
}
.tg-btn-cta--outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  transform: translateY(-1px);
}

.tg-btn-cta--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 24px;
  border-radius: 100px;
  background: var(--tg-main);
  color: var(--tg-white);
  font-family: var(--tg-font-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-btn-cta--sm:hover {
  background: var(--tg-accent);
  transform: translateY(-1px);
}


/* ============================================================
   3. CATEGORY CHIPS
============================================================ */
.tg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--tg-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--tg-text-muted);
  font-family: var(--tg-font-main);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--tg-trans);
}
.tg-chip:hover {
  background: var(--tg-white);
  color: var(--tg-main);
  border-color: var(--tg-main);
}
.tg-chip--active {
  background: var(--tg-main);
  color: var(--tg-white);
  border-color: var(--tg-main);
}
.tg-chip--sm { padding: 5px 14px; font-size: 12px; }


/* ============================================================
   4. HERO BANNER (archive)
============================================================ */
.tg-hero { padding: 48px 0 0; }

.tg-hero__inner {
  background: var(--tg-green-pale);
  border-radius: var(--tg-radius);
  padding: 52px 60px 48px;
  position: relative;
  overflow: hidden;
}
.tg-hero__inner::before,
.tg-hero__inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.tg-hero__inner::before {
  right: -40px; top: -40px;
  width: 300px; height: 300px;
  background: rgba(20, 102, 83, 0.06);
}
.tg-hero__inner::after {
  right: 80px; bottom: -60px;
  width: 180px; height: 180px;
  background: rgba(201, 168, 76, 0.07);
}

.tg-hero__title {
  font-family: var(--tg-font-main);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--tg-main);
  line-height: 1.15;
  margin: 0 0 14px;
}
.tg-hero__title em {
  font-style: italic;
  color: var(--tg-gold);
}

.tg-hero__desc {
  font-family: var(--tg-font-main);
  font-size: 15px;
  font-weight: 300;
  color: var(--tg-text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin: 0 0 36px;
}


/* ============================================================
   5. FEATURED POST (archive)
============================================================ */
.tg-featured-section { padding: 64px 0 0; }

.tg-featured__card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--tg-white);
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow);
  transition: box-shadow 0.3s ease;
}
.tg-featured__card:hover { box-shadow: var(--tg-shadow-hover); }
.tg-featured__card:hover .tg-featured__img-wrap img { transform: scale(1.04); }

.tg-featured__img-wrap {
  position: relative;
  height: 440px;
  overflow: hidden;
  display: block;
}
.tg-featured__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tg-cat-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--tg-main);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}

.tg-featured__body {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tg-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--tg-text-light);
  margin-bottom: 20px;
}
.tg-featured__meta > * + * {
  padding-left: 16px;
  border-left: 1px solid var(--tg-border);
}

.tg-featured__title {
  font-family: var(--tg-font-main);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--tg-charcoal);
  line-height: 1.3;
  margin: 0 0 16px;
}
.tg-featured__title a { color: inherit; text-decoration: none; }
.tg-featured__title a:hover { color: var(--tg-main); }

.tg-featured__excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--tg-text-muted);
  line-height: 1.75;
  margin: 0 0 32px;
}

.tg-read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-main);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: var(--tg-trans);
}
.tg-read-link__arrow {
  width: 28px; height: 28px;
  border: 1.5px solid var(--tg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--tg-trans);
}
.tg-read-link:hover { color: var(--tg-accent); }
.tg-read-link:hover .tg-read-link__arrow {
  background: var(--tg-main);
  border-color: var(--tg-main);
  color: var(--tg-white);
}


/* ============================================================
   6. BLOG GRID + CARDS
============================================================ */
.tg-grid-section { padding: 64px 0 0; }

.tg-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   6. BLOG GRID + CARDS
   (Restored: grid + card styles previously moved)
============================================================ */
.tg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tg-gap);
  align-items: start;
}

.tg-blog-grid--related { grid-template-columns: repeat(3, 1fr); }

.tg-blog-card {
  background: var(--tg-white);
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.tg-blog-card:hover { transform: translateY(-6px); box-shadow: var(--tg-shadow-hover); }

.tg-blog-card__img-link { display: block; text-decoration: none; color: inherit; }
.tg-blog-card__img { width: 100%; height: 220px; overflow: hidden; display: block; }
.tg-blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tg-blog-card:hover .tg-blog-card__img img { transform: scale(1.04); }

.tg-blog-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.tg-blog-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--tg-text-light);
}

.tg-blog-card__title {
  font-family: var(--tg-font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--tg-charcoal);
  line-height: 1.3;
  margin: 0;
}
.tg-blog-card__title a { color: inherit; text-decoration: none; }
.tg-blog-card__title a:hover { color: var(--tg-main); }

.tg-blog-card__excerpt {
  color: var(--tg-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.tg-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.tg-blog-card__read { text-decoration: none; color: var(--tg-main); font-weight: 600; }



/* ============================================================
   7. PAGINATION / LOAD MORE
============================================================ */
.tg-pagination { padding: 48px 0 0; text-align: center; }
.tg-load-more-wrap { text-align: center; }

.tg-no-posts {
  text-align: center;
  padding: 64px 0;
  color: var(--tg-text-muted);
}
.tg-no-posts p { margin-bottom: 20px; font-size: 16px; }


/* ============================================================
   8. CTA SECTION (dùng chung archive + single)
============================================================ */
.tg-cta { padding: 48px 0 64px; }

.tg-cta__box {
  background: linear-gradient(145deg, var(--tg-dark), var(--tg-charcoal));
  border-radius: var(--tg-radius);
  padding: 60px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(201,168,76,.15);
}
.tg-cta__box::before,
.tg-cta__box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.05);
  pointer-events: none;
}
.tg-cta__box::before { left: -60px; bottom: -60px; width: 280px; height: 280px; }
.tg-cta__box::after  { right: 120px; top: -80px; width: 200px; height: 200px; }

.tg-cta__title {
  font-family: var(--tg-font-main);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--tg-white);
  line-height: 1.25;
  margin: 0 0 12px;
}
.tg-cta__title em {
  font-style: italic;
  color: var(--tg-gold-lt);
}

.tg-cta__desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
}

.tg-cta__action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.tg-cta__btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tg-cta__note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.04em;
}


/* ============================================================
   9. SINGLE – POST HERO
============================================================ */
.tg-post-hero {
  position: relative;
  background: var(--tg-dark);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tg-post-hero__img { position: absolute; inset: 0; }
.tg-post-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.tg-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 30, 0.2) 0%,
    rgba(10, 40, 30, 0.78) 100%
  );
}

.tg-post-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 56px;
}

.tg-post-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: var(--tg-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--tg-trans);
}
.tg-post-cat-badge:hover { background: rgba(255, 255, 255, 0.28); }

.tg-post-hero__title {
  font-family: var(--tg-font-main);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--tg-white);
  line-height: 1.2;
  margin: 0 0 32px;
  max-width: 800px;
}

.tg-post-hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.tg-post-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.tg-meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: block;
}

.tg-meta-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}

.tg-post-hero__divider {
  width: 1px; height: 32px;
  background: rgba(255, 255, 255, 0.2);
}

/* Breadcrumb */
.tg-breadcrumb { margin-bottom: 20px; }
.tg-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0; padding: 0;
}
.tg-breadcrumb__list a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-breadcrumb__list a:hover { color: var(--tg-white); }


/* ============================================================
   10. SINGLE – CONTENT TYPOGRAPHY
============================================================ */
.tg-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 64px 0 80px;
  align-items: start;
}

.tg-post-excerpt {
  font-size: 18px;
  font-style: italic;
  color: var(--tg-text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--tg-main);
  padding-left: 24px;
  margin: 0 0 40px;
  background: var(--tg-green-pale);
  padding: 16px 20px 16px 24px;
  border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0;
}
.tg-post-excerpt p { margin: 0; }

.tg-post-body {
  font-family: var(--tg-font-main);
  font-size: 16px;
  font-weight: 300;
  color: var(--tg-text);
  line-height: 1.85;
}

.tg-post-body p       { margin: 0 0 1.5em; }
.tg-post-body h2      { font-size: 26px; font-weight: 700; color: var(--tg-charcoal); margin: 2em 0 0.6em; line-height: 1.25; padding-top: 8px; border-top: 2px solid var(--tg-border-light); }
.tg-post-body h3      { font-size: 20px; font-weight: 600; color: var(--tg-charcoal); margin: 1.75em 0 0.5em; line-height: 1.3; }
.tg-post-body h4      { font-size: 16px; font-weight: 500; color: var(--tg-charcoal); margin: 1.5em 0 0.4em; letter-spacing: 0.02em; }
.tg-post-body img     { border-radius: var(--tg-radius-sm); max-width: 100%; height: auto; margin: 1.5em 0; display: block; }
.tg-post-body a       { color: var(--tg-main); text-decoration: underline; text-underline-offset: 3px; }
.tg-post-body a:hover { color: var(--tg-accent); }
.tg-post-body blockquote {
  font-size: 19px;
  font-style: italic;
  color: var(--tg-main);
  border-left: 3px solid var(--tg-main);
  padding: 4px 0 4px 28px;
  margin: 2em 0;
  line-height: 1.6;
}
.tg-post-body ul,
.tg-post-body ol      { padding-left: 1.5em; margin: 0 0 1.5em; }
.tg-post-body li      { margin-bottom: 0.5em; }
.tg-post-body hr      { border: none; border-top: 1px solid var(--tg-border); margin: 2.5em 0; }
.tg-post-body figure  { margin: 0 0 1.5em; }
.tg-post-body figcaption { font-size: 13px; color: var(--tg-text-light); text-align: center; margin-top: 8px; }
.tg-post-body code    { padding: 2px 6px; background: var(--tg-bg); border-radius: 4px; font-size: 14px; }
.tg-post-body pre     { background: var(--tg-charcoal); color: #e2e8e5; padding: 20px 24px; border-radius: var(--tg-radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.65; margin: 0 0 1.5em; }
.tg-post-body pre code { background: none; padding: 0; color: inherit; }
.tg-post-body table   { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.5em 0; }
.tg-post-body th      { background: var(--tg-main); color: var(--tg-white); padding: 10px 16px; font-weight: 500; text-align: left; font-size: 13px; }
.tg-post-body td      { padding: 10px 16px; border-bottom: 1px solid var(--tg-border-light); }
.tg-post-body tr:last-child td { border-bottom: none; }
.tg-post-body tr:nth-child(even) td { background: var(--tg-bg); }

/* Page links */
.tg-page-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2em 0;
  font-size: 13px;
}
.tg-page-links__label { color: var(--tg-text-light); }
.tg-page-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--tg-border);
  font-size: 13px;
  color: var(--tg-text-muted);
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-page-links__item:hover,
.tg-page-links__item a:hover {
  background: var(--tg-main);
  border-color: var(--tg-main);
  color: var(--tg-white);
}

/* Tags */
.tg-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--tg-border-light);
}
.tg-post-tags__label {
  font-size: 12px;
  color: var(--tg-text-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tg-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--tg-border);
  color: var(--tg-text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-tag:hover { border-color: var(--tg-main); color: var(--tg-main); }


/* ============================================================
   11. SINGLE – SIDEBAR
============================================================ */
.tg-sidebar { min-width: 0; }
.tg-sidebar__sticky { position: sticky; top: 100px; }

.tg-sidebar-widget {
  background: var(--tg-white);
  border-radius: var(--tg-radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--tg-shadow);
  border: 1px solid var(--tg-border-light);
}

.blog .tg-sidebar-widget__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tg-gold);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tg-border-light);
}

.tg-sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Related list in sidebar */
.tg-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tg-related-link { display: flex; gap: 12px; text-decoration: none; color: inherit; align-items: flex-start; }
.tg-related-img { width: 72px; height: 72px; border-radius: var(--tg-radius-xs); object-fit: cover; flex-shrink: 0; }
.tg-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--tg-charcoal);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--tg-trans);
}
.tg-related-link:hover .tg-related-title { color: var(--tg-main); }
.tg-related-date { font-size: 11px; color: var(--tg-text-light); margin-top: 4px; display: block; }

/* Sidebar CTA widget */
.tg-sidebar-cta {
  background: linear-gradient(145deg, var(--tg-dark), var(--tg-charcoal));
  border: 1px solid rgba(201,168,76,.15);
  text-align: center;
}
.tg-sidebar-cta .tg-sidebar-widget__title { display: none; }
.tg-sidebar-cta__eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tg-gold-lt); margin: 0 0 10px; display: block; }
.tg-sidebar-cta__title { font-size: 20px; font-weight: 700; color: var(--tg-white); line-height: 1.3; margin: 0 0 10px; }
.tg-sidebar-cta__desc { font-size: 13px; font-weight: 300; color: rgba(255, 255, 255, 0.65); line-height: 1.6; margin: 0 0 16px; }


/* ============================================================
   12. SINGLE – RELATED POSTS GRID (below content)
============================================================ */
.tg-related-grid-section {
  background: var(--tg-bg);
  padding: 64px 0;
}


/* ============================================================
   13. SINGLE – AUTHOR BOX
============================================================ */
.tg-author-box {
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  background: var(--tg-green-pale);
  border-radius: var(--tg-radius-sm);
  margin: 40px 0;
  align-items: flex-start;
}

.tg-author-box__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(20, 102, 83, 0.15);
}

.tg-author-box__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--tg-main);
  margin: 0 0 6px;
}

.tg-author-box__bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--tg-text-muted);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   14. SINGLE – SHARE BAR
============================================================ */
.tg-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 20px 0;
  border-top: 1px solid var(--tg-border-light);
  border-bottom: 1px solid var(--tg-border-light);
}

.tg-share-bar__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--tg-text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}

.tg-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tg-border);
  background: var(--tg-white);
  color: var(--tg-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: var(--tg-trans);
}
.tg-share-btn:hover {
  border-color: var(--tg-main);
  color: var(--tg-main);
  background: var(--tg-green-pale);
}
.tg-share-btn--fb:hover { border-color: #1877f2; color: #1877f2; background: rgba(24, 119, 242, 0.07); }
.tg-share-btn--x:hover  { border-color: #000; color: #000; background: rgba(0,0,0,.05); }


/* ============================================================
   15. SINGLE – POST NAVIGATION
============================================================ */
.tg-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 0;
  padding: 32px 0;
  border-top: 1px solid var(--tg-border-light);
}

.tg-post-nav__prev { text-align: left; }
.tg-post-nav__next { text-align: right; }

.tg-post-nav__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tg-main);
  margin-bottom: 8px;
}

.tg-post-nav__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--tg-charcoal);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--tg-trans);
}
.tg-post-nav__title:hover { color: var(--tg-main); }


/* ============================================================
   16. SINGLE – READING PROGRESS BAR
============================================================ */
.tg-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--tg-gold), var(--tg-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ============================================================
   17. SINGLE – TABLE OF CONTENTS
============================================================ */
.tg-toc__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tg-toc__link {
  display: block;
  font-size: 13px;
  color: var(--tg-text-muted);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: var(--tg-trans);
}
.tg-toc__link:hover,
.tg-toc__link--active {
  color: var(--tg-main);
  border-left-color: var(--tg-main);
}

.tg-toc__item--h3 .tg-toc__link {
  padding-left: 22px;
  font-size: 12px;
}

.tg-toc__placeholder {
  font-size: 13px;
  color: var(--tg-text-light);
  margin: 0;
}


/* ============================================================
   18. RESPONSIVE
============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .tg-hero__inner       { padding: 40px 36px; }
  .tg-featured__card    { grid-template-columns: 1fr; }
  .tg-featured__img-wrap { height: 320px; }
  .tg-featured__body    { padding: 36px 32px; }
  .tg-blog-grid         { grid-template-columns: repeat(2, 1fr); }
  .tg-post-layout       { grid-template-columns: 1fr 260px; gap: 36px; }
  .tg-cta__box          { padding: 48px; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  .tg-hero               { padding: 24px 0 0; }
  .tg-hero__inner        { padding: 32px 24px; border-radius: var(--tg-radius-sm); }
  .tg-hero__inner::before,
  .tg-hero__inner::after { display: none; }

  .tg-featured__img-wrap { height: 260px; }
  .tg-featured__body     { padding: 28px 24px; }

  .tg-blog-grid          { grid-template-columns: 1fr; gap: 24px; }

  .tg-cta__box {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
    text-align: center;
  }
  .tg-cta__action { align-items: center; }
  .tg-cta__btns { justify-content: center; flex-direction: column; width: 100%; }
  .tg-cta__btns .tg-btn-cta { justify-content: center; width: 100%; }

  .tg-post-hero          { min-height: 420px; }
  .tg-post-hero__title   { font-size: 28px; }
  .tg-post-hero__meta    { gap: 16px; }
  .tg-post-hero__divider { display: none; }

  .tg-post-layout {
    grid-template-columns: 1fr;
    padding: 40px 0 56px;
    gap: 0;
  }
  .tg-sidebar            { margin-top: 40px; }
  .tg-sidebar__sticky    { position: static; }

  .tg-post-nav           { grid-template-columns: 1fr; gap: 20px; }
  .tg-post-nav__next     { text-align: left; }
  .tg-author-box         { flex-direction: column; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .tg-featured__card,
  .tg-blog-card,
  .tg-cta__box { border-radius: var(--tg-radius-sm); }
  .tg-cta__box { padding: 28px 20px; }
  .tg-chips    { gap: 6px; }
  .tg-chip     { padding: 7px 14px; font-size: 12px; }
}
