/* Blog listing & detail — Mind Body Counselling */

.blog-page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, #f0f4fa 0%, #fff 100%);
  border-bottom: 1px solid rgba(31, 61, 122, 0.06);
}

.blogs-listing-section {
  padding: 4rem 0 5rem;
  background: #fff;
}

/* Blog listing: never hide content behind scroll animations */
.blogs-listing-section .blog-card-premium,
.blogs-listing-section .blog-results-meta,
.blogs-listing-section .blog-empty-state,
.blogs-listing-section .blog-pagination,
.blogs-listing-section .col-lg-8 {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.blogs-listing-section .anim {
  opacity: 1 !important;
  transform: none !important;
}

.blogs-layout .blogs-sidebar {
  position: sticky;
  top: 110px;
}

.blogs-sidebar .sidebar-widget {
  background: #fff;
  border-radius: var(--r-xl, 16px);
  border: 1px solid #e8edf4;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(31, 61, 122, 0.04);
}

.blogs-sidebar .sidebar-widget--minimal {
  padding: 0.85rem 0.75rem 0.65rem;
  border: none;
  box-shadow: none;
  background: transparent;
}

.blogs-sidebar .sidebar-widget--cta {
  padding: 1rem;
  background: var(--navy-pale, #e6edf8);
  border-color: transparent;
}

.blogs-sidebar .sidebar-widget--related {
  padding: 0.85rem 0.75rem;
  border: none;
  box-shadow: none;
  background: transparent;
}

.sidebar-cta-text {
  font-size: 0.88rem;
  color: var(--grey-800, #475569);
  margin-bottom: 0.75rem;
}

.related-post-link {
  display: block;
  margin-bottom: 0.85rem;
  text-decoration: none;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e8edf4;
}

.related-post-link:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-post-link strong {
  color: var(--navy, #1f3d7a);
  font-size: 0.95rem;
}

.related-post-link:hover strong {
  color: var(--gold, #c9a227);
}

.blogs-sidebar-title {
  font-family: var(--ff-head, 'Lora', serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #1f3d7a);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy-pale, #e6edf8);
}

.sidebar-widget--minimal .blogs-sidebar-title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
}

.blog-category-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: var(--grey-800, #334155);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-category-link:hover {
  background: var(--navy-pale, #e6edf8);
  color: var(--navy, #1f3d7a);
  transform: translateX(4px);
}

.blog-category-link.active {
  background: var(--navy, #1f3d7a);
  color: #fff;
}

.blog-category-link .blog-cat-name {
  flex: 1;
}

.blog-category-link .blog-cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.blog-category-link.active .blog-cat-count {
  background: rgba(255, 255, 255, 0.2);
}

.blog-category-link.is-empty .blog-cat-count {
  opacity: 0.65;
}

.blog-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
}

.blog-empty-state > i {
  font-size: 3.5rem;
  color: var(--navy, #1f3d7a);
  opacity: 0.2;
  display: block;
  margin-bottom: 1rem;
}

.blog-empty-state h3 {
  font-family: var(--ff-head, 'Lora', serif);
  color: var(--navy, #1f3d7a);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.blog-empty-state p {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.blog-cards-row > [class*="col-"] {
  display: flex;
}

.blog-card-premium {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(31, 61, 122, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.blog-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 61, 122, 0.12);
}

.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-premium:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--navy, #1f3d7a);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--grey-600, #64748b);
  margin-bottom: 0.65rem;
}

.blog-card-title {
  font-family: var(--ff-head, 'Lora', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy, #1f3d7a);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--gold, #c9a227);
}

.blog-card-excerpt-wrap {
  position: relative;
  flex: 1;
  min-height: 4.2rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.blog-card-excerpt-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--grey-800, #475569);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy, #1f3d7a);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.blog-card-more:hover {
  color: var(--gold, #c9a227);
}

/* Blog detail — premium layout */
.blog-detail-page {
  background: #fff;
}

.blog-detail-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e8edf4;
}

.blog-detail-cat {
  display: inline-block;
  background: var(--navy, #1f3d7a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 1rem;
}

.blog-detail-cat:hover {
  color: #fff;
  opacity: 0.9;
}

.blog-detail-title {
  font-family: var(--ff-head, 'Lora', serif);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--navy, #1f3d7a);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 820px;
}

.blog-detail-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--grey-800, #475569);
  max-width: 720px;
  margin-bottom: 1.35rem;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-800, #475569);
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: 50px;
}

.blog-meta-pill i {
  color: var(--navy, #1f3d7a);
  font-size: 1rem;
}

.blog-detail-cover {
  padding: 0 0 2rem;
  background: #fff;
}

.blog-cover-frame {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(31, 61, 122, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-height: 520px;
}

.blog-cover-frame img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.blog-detail-section {
  padding: 0 0 5rem;
  background: #fff;
}

.blog-detail-sidebar-sticky {
  position: sticky;
  top: 110px;
}

.blog-detail-section .col-lg-8,
.blog-detail-section .blog-article-card,
.blog-detail-section .blog-content-body,
.blog-detail-section .blog-comments-section,
.blog-detail-section .blog-comment-card,
.blog-detail-section .blog-comment-form {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.blog-article-card {
  background: #fff;
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: none;
}

.blog-tags-block {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e8edf4;
}

.blog-tags-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-600, #64748b);
  margin-bottom: 0.75rem;
}

.blog-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-tag {
  display: inline-block;
  background: linear-gradient(135deg, #e6edf8, #f4f6f9);
  color: var(--navy, #1f3d7a);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid #d4e0f0;
}

.blog-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e8edf4;
}

.blog-share-bar > span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy, #1f3d7a);
  margin-right: 0.25rem;
}

.blog-share-bar a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dde4ee;
  color: var(--navy, #1f3d7a);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-share-bar a:hover {
  background: var(--navy, #1f3d7a);
  color: #fff;
  border-color: var(--navy, #1f3d7a);
}

.blog-comments-heading {
  font-family: var(--ff-head, 'Lora', serif);
  font-size: 1.5rem;
  color: var(--navy, #1f3d7a);
  margin-bottom: 1.25rem;
}

.blog-comments-heading span {
  font-weight: 400;
  color: var(--grey-600, #64748b);
  font-size: 1rem;
}

.related-post-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e8edf4;
}

.related-post-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-post-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.related-post-card strong {
  display: block;
  color: var(--navy, #1f3d7a);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.related-post-card p {
  font-size: 0.8rem;
  color: var(--grey-600, #64748b);
  margin: 0;
  line-height: 1.45;
}

.related-post-card:hover strong {
  color: var(--gold, #c9a227);
}

.blog-content-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--grey-800, #334155);
}

.blog-content-body h2,
.blog-content-body h3 {
  font-family: var(--ff-head, 'Lora', serif);
  color: var(--navy, #1f3d7a);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.blog-content-body blockquote {
  border-left: 4px solid var(--navy, #1f3d7a);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-family: var(--ff-head, 'Lora', serif);
  font-size: 1.2rem;
  color: var(--navy, #1f3d7a);
  font-style: italic;
}

.blog-comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e8edf4;
  opacity: 1 !important;
  transform: none !important;
}

.blog-comments-section .blog-comment-card,
.blog-comments-section .blog-comment-form,
.blog-comments-section .alert {
  opacity: 1 !important;
  transform: none !important;
}

.blog-results-meta {
  font-size: 0.88rem;
  color: var(--grey-600, #64748b);
  margin-bottom: 1rem;
}

/* Pagination */
.blog-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.blog-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #f4f6f9;
  border-radius: 12px;
  border: 1px solid #e8edf4;
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-800, #475569);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.blog-page-btn:hover {
  background: #fff;
  color: var(--navy, #1f3d7a);
  border-color: #dde4ee;
}

.blog-page-btn.is-active {
  background: linear-gradient(135deg, var(--navy, #1f3d7a), #2a5298);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(31, 61, 122, 0.22);
}

.blog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--grey-600, #94a3b8);
  font-weight: 600;
}

.blog-comment-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  border: 1px solid #e8edf4;
}

.blog-comment-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy, #1f3d7a), #2a5298);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-comment-body strong {
  color: var(--navy, #1f3d7a);
}

.blog-comment-date {
  font-size: 0.78rem;
  color: var(--grey-600, #94a3b8);
  margin-left: 0.35rem;
}

.blog-comment-form h3 {
  font-family: var(--ff-head, 'Lora', serif);
  font-size: 1.2rem;
  color: var(--navy, #1f3d7a);
  margin-bottom: 1rem;
}

.blog-comment-form {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e8edf4;
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.blog-comment-form .form-control {
  border-radius: 10px;
  border-color: #dde4ee;
  padding: 0.65rem 1rem;
}

@media (max-width: 991px) {
  .blogs-layout .blogs-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .blog-detail-sidebar-sticky {
    position: static;
  }
  .blog-cover-frame {
    max-height: 320px;
  }
  .blog-cover-frame img {
    max-height: 320px;
  }
}
