.baostyle-post-list .card-title a:hover, .card-title a:hover {
  text-decoration: underline;
}

.baostyle-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.baostyle-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.375rem;
  text-decoration: none;
  background: #fff;
}

.baostyle-pagination .page-numbers.current {
  font-weight: 600;
}

.baostyle-home-posts-header {
  text-align: center;
}

.baostyle-home-posts-header .text-muted {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.baostyle-home-posts-list .card:last-child {
  margin-bottom: 0;
}

.baostyle-post-card-list {
  height: 100%;
  border-radius: var(--baostyle-unified-card-radius);
}

.baostyle-post-card-list-thumb {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.baostyle-post-card-list-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .baostyle-post-card-list .col-md-4 {
    display: flex;
  }

  .baostyle-post-card-list-thumb {
    min-height: 240px;
  }
}

@media (max-width: 767.98px) {
  .baostyle-post-card-list-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .baostyle-post-card-list-thumb img {
    height: 100%;
    min-height: 0;
  }
}

.baostyle-featured-home-posts {
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  padding-bottom: 2rem;
}

.baostyle-featured-home-posts-title {
  margin-bottom: 1.5rem;
}

.baostyle-archive-description .card-body > :last-child {
  margin-bottom: 0;
}

.baostyle-archive-description .baostyle-faq-section {
  margin-top: 1.5rem !important;
}

.baostyle-home-section-header, .baostyle-slider-header, .baostyle-home-posts-header {
  margin-bottom: 1rem;
}

.baostyle-unified-card, .baostyle-post-card, .baostyle-term-card, .baostyle-review-card, .baostyle-icon-box {
  border: 1px solid rgba(var(--bs-dark-rgb, 33, 37, 41), .08);
  background-color: var(--bs-body-bg, #fff);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.baostyle-unified-card:hover, .baostyle-post-card:hover, .baostyle-term-card:hover, .baostyle-review-card:hover, .baostyle-icon-box:hover {
  border-color: rgba(var(--bs-dark-rgb, 33, 37, 41), .12);
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
}

.baostyle-unified-card .card-body, .baostyle-post-card .card-body, .baostyle-term-card .card-body, .baostyle-review-card .card-body, .baostyle-icon-box .card-body {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.baostyle-post-card-title, .baostyle-unified-card-title, .baostyle-term-card-title, .baostyle-review-product-title {
  line-height: 1.4;
}

.baostyle-post-card-excerpt, .baostyle-term-card-description {
  color: var(--bs-secondary-color, #6c757d);
}

.baostyle-post-card-meta, .baostyle-post-meta {
  gap: .5rem;
  color: var(--bs-secondary-color, #6c757d);
}

.baostyle-post-card-list, .baostyle-unified-card-list {
  margin-bottom: 1rem;
}

.baostyle-post-card-list:last-child, .baostyle-unified-card-list:last-child {
  margin-bottom: 0;
}

.baostyle-post-card-list-row {
  height: 100%;
  align-items: stretch;
}

.baostyle-post-card-list-thumb img, .baostyle-home-post-thumbnail img, .baostyle-unified-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.baostyle-archive-description, .term-description, .archive-description {
  margin-bottom: 1.5rem;
  color: var(--bs-secondary-color, #6c757d);
}

.pagination, .nav-links {
  margin-top: 1.5rem;
}

.baostyle-post-card-excerpt, .baostyle-term-card-description, .baostyle-review-card p, .baostyle-icon-box p, .card-text {
  line-height: 1.65;
}

.woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce .term-description, .woocommerce-page .term-description {
  color: var(--bs-secondary-color, #6c757d);
}

.blog .site-main .post, .archive .site-main .post, .single-post .site-main .post {
  margin-bottom: 1.5rem;
}

.baostyle-blog-archive-toolbar {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: .75rem;
}

.baostyle-blog-archive-toolbar .form-select {
  min-width: 150px;
}

.baostyle-blog-archive-posts-view-grid > article, .baostyle-blog-archive-posts-view-grid > div {
  min-width: 0;
}

.baostyle-blog-archive-posts-view-list .baostyle-post-card-list, .baostyle-blog-archive-posts-view-list .baostyle-unified-card-list {
  margin-bottom: 0;
}

.baostyle-blog-archive-posts.row {
  --bs-gutter-y: 1.5rem;
}

.baostyle-post-card-meta-line {
  gap: .75rem;
}

.baostyle-post-card-thumb img {
  display: block;
}

@media (max-width: 991.98px) {
  .baostyle-blog-archive-result-count, .baostyle-blog-archive-view-toggle {
    display: none !important;
  }

  .baostyle-blog-archive-toolbar {
    gap: .75rem;
  }

  .baostyle-blog-archive-toolbar-right {
    width: 100%;
    justify-content: flex-start !important;
  }

  .baostyle-blog-archive-posts.row > * {
    width: 50%;
  }

  .baostyle-post-card-list .row {
    display: block;
  }

  .baostyle-post-card-list .col-12, .baostyle-post-card-list .col-lg-4, .baostyle-post-card-list .col-lg-8 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

.baostyle-blog-archive-posts.baostyle-blog-archive-posts-view-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

.baostyle-blog-archive-posts.baostyle-blog-archive-posts-view-list > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.baostyle-blog-archive-posts[data-layout="list"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}

.baostyle-blog-archive-posts[data-layout="list"] > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.baostyle-blog-archive-posts[data-layout="grid"].row > * {
  min-width: 0;
}

.search .baostyle-blog-archive-posts[data-layout="list"] .baostyle-post-card-list {
  display: block !important;
}

.search .baostyle-blog-archive-posts[data-layout="grid"] .baostyle-post-card-grid {
  display: flex !important;
}

/* Unified post cards */
.baostyle-post-card,
.baostyle-archive-post-card,
.baostyle-related-post-card {
  border: 1px solid var(--baostyle-color-border);
  border-radius: var(--baostyle-card-radius);
  background: var(--baostyle-color-surface);
  box-shadow: var(--baostyle-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.baostyle-post-card:hover,
.baostyle-archive-post-card:hover,
.baostyle-related-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--baostyle-color-border-strong);
  box-shadow: var(--baostyle-shadow-md);
}

.baostyle-post-card-title,
.baostyle-archive-post-title,
.baostyle-related-post-title {
  color: var(--baostyle-color-heading);
  line-height: 1.35;
}

.baostyle-post-card-meta,
.baostyle-archive-post-meta,
.baostyle-related-post-meta {
  color: var(--baostyle-color-text-muted);
}
