/* Blog post extras — meta, TOC, tags, track badges, list filter */

.singleBlog__meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.singleBlog__meta span,
.singleBlog__meta a {
  display: inline-flex;
  align-items: center;
}

.track-badge {
  display: inline-block;
  background: #eef3ff;
  color: #2b59ff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-right: 0.3rem;
}

.track-badge:hover {
  background: #2b59ff;
  color: #fff;
  text-decoration: none;
}

.post-toc {
  background: #f8f9fb;
  border-left: 3px solid #2b59ff;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.post-toc h5 {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
}

.post-toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.post-toc a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-toc a:hover {
  color: #2b59ff;
}

.post-tags a {
  display: inline-block;
  margin-right: 0.5rem;
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
}

.post-tags a:hover {
  color: #2b59ff;
}

.post-card-tags {
  margin-top: 0.5rem;
}

.post-card-tags a {
  color: #6c757d;
  text-decoration: none;
  margin-right: 0.4rem;
}

.track-filter {
  margin-top: 1rem;
}

.track-chip {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin: 0 0.25rem;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.track-chip:hover {
  background: #2b59ff;
  border-color: #2b59ff;
  color: #fff;
  text-decoration: none;
}

.singleBlog__content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #212529;
  margin: 0 !important;
  width: 100%;
}

.singleBlog__content p {
  margin-bottom: 1.25rem;
}

.singleBlog__content h2 {
  font-size: 1.65rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  scroll-margin-top: 90px;
}

.singleBlog__content h3 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 90px;
}

.singleBlog__content h4 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 90px;
}

.singleBlog__content ul,
.singleBlog__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.singleBlog__content li {
  margin-bottom: 0.4rem;
}

.singleBlog__content a {
  color: #2b59ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.singleBlog__content a:hover {
  color: #1a3fb8;
}

.singleBlog__content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.singleBlog__content table th,
.singleBlog__content table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.singleBlog__content table th {
  background: #f8f9fb;
  font-weight: 600;
}

.singleBlog__content hr {
  border: 0;
  border-top: 1px solid #e9ecef;
  margin: 2.5rem 0;
}

.singleBlog__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.singleBlog__content pre,
.singleBlog__content .highlight {
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.singleBlog__content .highlight pre {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

.singleBlog__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.singleBlog__content :not(pre) > code {
  background: #f1f3f5;
  color: #d6336c;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}

.singleBlog__content blockquote {
  border-left: 4px solid #2b59ff;
  padding: 0.75rem 1.25rem;
  color: #495057;
  background: #f8f9fb;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.singleBlog__content blockquote p {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .singleBlog__content {
    font-size: 1rem;
    line-height: 1.7;
  }
  .singleBlog__content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }
  .singleBlog__content h3 {
    font-size: 1.15rem;
  }
}

/* ---------- Related posts (horizontal slider) ---------- */

.related-posts {
  margin: 4rem 0 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e9ecef;
}

.related-posts__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.related-posts__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.related-posts__nav {
  display: flex;
  gap: 0.4rem;
}

.related-posts__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d0d7de;
  background: #fff;
  color: #343a40;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}

.related-posts__btn:hover {
  border-color: #2b59ff;
  color: #2b59ff;
  background: #eef3ff;
}

.related-posts__btn:active {
  transform: scale(0.95);
}

.related-posts__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.related-posts__track::-webkit-scrollbar {
  display: none;
}

.related-card {
  flex: 0 0 calc(50% - 0.625rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

@media (min-width: 1200px) {
  .related-card {
    flex: 0 0 calc(33.333% - 0.834rem);
  }
}

@media (max-width: 767px) {
  .related-card {
    flex: 0 0 85%;
  }
}

.related-card:hover {
  border-color: #2b59ff;
  box-shadow: 0 6px 18px rgba(43, 89, 255, 0.10);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.related-card__thumb {
  height: 140px;
  overflow: hidden;
  background: #f1f3f5;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.related-card__meta {
  font-size: 0.78rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.related-card__track {
  background: #eef3ff;
  color: #2b59ff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.related-card__title {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  color: #1a1a1a;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
  margin: 2rem 0;
  justify-content: center;
}

.pagination .page-item .page-link,
.pagination .page-item span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #343a40;
  background: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
}

.pagination .page-item .page-link:hover {
  background: #f1f3f5;
  border-color: #2b59ff;
  color: #2b59ff;
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background: #2b59ff;
  border-color: #2b59ff;
  color: #fff;
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  border-color: transparent;
  color: #adb5bd;
  cursor: default;
}

.pagination .page-item.disabled .page-link:hover {
  background: transparent;
  border-color: transparent;
  color: #adb5bd;
}

/* ---------- Taxonomy terms (cards) ---------- */

.terms-section {
  padding: 3rem 0;
}

.term-card {
  display: block;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.term-card:hover {
  border-color: #2b59ff;
  box-shadow: 0 8px 24px rgba(43, 89, 255, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.term-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f3f5;
}

.term-card__name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #1a1a1a;
}

.term-card__count {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2b59ff;
  background: #eef3ff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.term-card__posts {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.term-card__posts li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed #f1f3f5;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.term-card__posts li:last-child {
  border-bottom: 0;
}

.term-card__date {
  font-size: 0.75rem;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.term-card__title {
  font-size: 0.95rem;
  color: #343a40;
  line-height: 1.4;
}

.term-card__more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2b59ff;
}

@media (max-width: 991px) {
  .term-card {
    padding: 1.25rem;
  }
  .term-card__name {
    font-size: 1.2rem;
  }
}

/* === Blog list card override — clean grid, no theme overlap === */
.blog-page .blog-page__item {
  position: static;
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(50, 65, 141, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: calc(100% - 2.5rem);
  display: flex;
  flex-direction: column;
}
.blog-page .blog-page__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(50, 65, 141, 0.16);
}
.blog-page .blog-page__item-thumb {
  position: static;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 0;
}
.blog-page .blog-page__item-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 315;
  display: block;
  transition: transform 0.4s ease;
}
.blog-page .blog-page__item-content {
  position: static;
  left: 0;
  bottom: 0;
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: none;
  background: transparent;
}
.blog-page .blog-page__item-content span {
  color: #6c757d;
  margin: 0 0 0.75rem 0;
  display: block;
  font-size: 0.85rem;
}
.blog-page .blog-page__item-content span::before { display: none; }
.blog-page .blog-page__item-content h5 a {
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1a202c;
}
.blog-page .blog-page__item-content h5 a:hover {
  color: #2b59ff;
}

/* AdSense ad slots in blog single */
.ad-slot {
  margin: 2.5rem 0;
  text-align: center;
  min-height: 100px;
}
.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.ad-slot ins.adsbygoogle {
  display: block;
  margin: 0 auto;
}
