/**
 * BookRivo CSS Module 05: Blog, Editorial, Sidebar & Threaded Comments
 *
 * Scoped Blog Archive Banner & Category Rail, 70/30 Blog Layout Grid,
 * Editorial Post Cards, Single Article Page, Bengali Editorial Content Typography,
 * Blog Sidebar Widgets, and Native Threaded Comments.
 *
 * @package BookRivo
 * @since 1.0.0
 */

/* 1. Blog Page Surfaces & Scoped Archive Banner / Category Rail */
.bookrivo-blog-page,
.bookrivo-archive-page,
.bookrivo-search-page,
.bookrivo-single-article-page {
  background-color: #fdfbf7;
  min-height: calc(100vh - 200px);
}

.bookrivo-blog-page .bookrivo-archive-banner,
.bookrivo-archive-page .bookrivo-archive-banner,
.bookrivo-search-page .bookrivo-archive-banner {
  background: #fbf9f4;
  border-bottom: 1px solid #ede8de;
  padding: 42px 0 34px;
}

.bookrivo-blog-page .bookrivo-archive-banner .banner-kicker,
.bookrivo-archive-page .bookrivo-archive-banner .banner-kicker,
.bookrivo-search-page .bookrivo-archive-banner .banner-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #173d2d;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.bookrivo-blog-page .bookrivo-archive-banner .banner-title,
.bookrivo-archive-page .bookrivo-archive-banner .banner-title,
.bookrivo-search-page .bookrivo-archive-banner .banner-title {
  font-size: 32px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 10px;
  line-height: 1.3;
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
  word-break: normal;
  overflow-wrap: break-word;
}

.bookrivo-blog-page .bookrivo-archive-banner .banner-desc,
.bookrivo-archive-page .bookrivo-archive-banner .banner-desc,
.bookrivo-search-page .bookrivo-archive-banner .banner-desc {
  font-size: 14.5px;
  color: #5c6b61;
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

.bookrivo-blog-page .bookrivo-category-rail,
.bookrivo-archive-page .bookrivo-category-rail {
  background: #ffffff;
  border-bottom: 1px solid #ede8de;
  padding: 12px 0;
}

.bookrivo-blog-page .bookrivo-category-rail .catpill,
.bookrivo-archive-page .bookrivo-category-rail .catpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f4efe6;
  color: #173d2d;
  white-space: nowrap;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.bookrivo-blog-page .bookrivo-category-rail .catpill:hover,
.bookrivo-archive-page .bookrivo-category-rail .catpill:hover {
  background: #e9e2d3;
  color: #0d261b;
}

.bookrivo-blog-page .bookrivo-category-rail .catpill.active,
.bookrivo-archive-page .bookrivo-category-rail .catpill.active {
  background: #173d2d;
  color: #ffffff;
}

.bookrivo-category-rail .catpill-count {
  font-size: 11px;
  opacity: 0.75;
}
/* 2. Blog Layout Grid (70% Article / 30% Sidebar) */
.bookrivo-blog-main-wrap {
  padding: 45px 0 75px;
}

.bookrivo-single-article-page {
  padding: 38px 0 75px;
}

.bookrivo-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.bookrivo-article-col {
  min-width: 0;
}

.bookrivo-sidebar-col {
  min-width: 0;
}

/* 3. Blog Cards Grid */
.bookrivo-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.bookrivo-blog-card {
  background: #ffffff;
  border: 1px solid #e8e3d8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 6px rgba(23, 61, 45, 0.03);
}

.bookrivo-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 61, 45, 0.08);
  border-color: #d4ccbd;
}

.bookrivo-blog-card .blog-card-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f4efe6;
}

.bookrivo-blog-card .blog-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.bookrivo-blog-card:hover .blog-thumb-img {
  transform: scale(1.04);
}

.bookrivo-blog-card .blog-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #173d2d 0%, #245741 100%);
  color: #e2c58d;
}

.bookrivo-blog-card .fallback-icon-wrap {
  width: 48px;
  height: 48px;
  opacity: 0.85;
}

.bookrivo-blog-card .blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(23, 61, 45, 0.92);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.18s ease;
}

.bookrivo-blog-card .blog-card-cat-badge:hover {
  background: #173d2d;
}

.bookrivo-blog-card .blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bookrivo-blog-card .blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #70796f;
  margin-bottom: 10px;
}

.bookrivo-blog-card .blog-card-meta .icon {
  font-size: 13px;
}

.bookrivo-blog-card .blog-card-title {
  font-size: 18.5px;
  line-height: 1.42;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-blog-card .blog-card-title a {
  color: #173d2d;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bookrivo-blog-card .blog-card-title a:hover {
  color: #c79a57;
}

.bookrivo-blog-card .blog-card-excerpt {
  font-size: 13.5px;
  line-height: 1.7;
  color: #5c6b61;
  margin-bottom: 18px;
  flex: 1;
}

.bookrivo-blog-card .blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #ede8de;
}

.bookrivo-blog-card .blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  text-decoration: none;
  transition: gap 0.18s ease, color 0.18s ease;
}

.bookrivo-blog-card .blog-read-more:hover {
  color: #245741;
  gap: 9px;
}

/* 4. Single Article Page Styling */
.bookrivo-article.bookrivo-single-card {
  background: #ffffff;
  border: 1px solid #ede8de;
  border-radius: 14px;
  padding: 40px 45px;
  box-shadow: 0 3px 14px rgba(23, 61, 45, 0.03);
}

.bookrivo-article-topmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.bookrivo-article-breadcrumb {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bookrivo-article-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bookrivo-article-breadcrumb a:hover {
  color: #173d2d;
}

.bookrivo-article-breadcrumb .sep {
  color: #cbd5e1;
}

.bookrivo-cat-badge {
  background: #f4efe6;
  color: #173d2d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.bookrivo-cat-badge:hover {
  background: #173d2d;
  color: #ffffff;
}

.bookrivo-article-title {
  font-size: 32px;
  font-weight: 800;
  color: #173d2d;
  line-height: 1.35;
  margin: 0 0 18px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-author-byline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ede8de;
}

.bookrivo-author-byline-row .byline-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #173d2d;
  flex-shrink: 0;
}

.bookrivo-author-byline-row .byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bookrivo-author-byline-row .byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bookrivo-author-byline-row .byline-author {
  font-size: 14px;
  font-weight: 700;
  color: #173d2d;
}

.bookrivo-author-byline-row .byline-author a {
  color: #173d2d;
  text-decoration: none;
}

.bookrivo-author-byline-row .byline-date {
  font-size: 12px;
  color: #8a998e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bookrivo-featured-figure {
  margin: 0 0 35px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f4efe6;
}

.bookrivo-featured-figure .bookrivo-featured-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.bookrivo-image-caption {
  font-size: 12.5px;
  color: #70796f;
  font-style: italic;
  padding: 10px 14px;
  text-align: center;
  background: #fbf9f4;
  border-top: 1px solid #ede8de;
}

/* 5. Editorial Content Typography (Bengali & English) */
.bookrivo-readable-content {
  font-size: 16.5px;
  line-height: 1.95;
  color: #2c3a32;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-readable-content p {
  margin: 0 0 1.6em;
}

.bookrivo-readable-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #173d2d;
  line-height: 1.38;
  margin: 2.2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ecdf;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-readable-content h3:not(.book-title):not(.bookrivo-card-title) {
  font-size: 20px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.4;
  margin: 1.8em 0 0.7em;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-readable-content h4,
.bookrivo-readable-content h5,
.bookrivo-readable-content h6 {
  font-size: 17px;
  font-weight: 700;
  color: #173d2d;
  margin: 1.5em 0 0.6em;
}

.bookrivo-readable-content ul:not(.products),
.bookrivo-readable-content ol {
  margin: 0 0 1.6em 1.8em;
  padding: 0;
}

.bookrivo-readable-content li {
  margin-bottom: 0.6em;
}

.bookrivo-readable-content blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  background: #fbf9f4;
  border-left: 4px solid #173d2d;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #3f4e45;
}

.bookrivo-readable-content blockquote p:last-child {
  margin-bottom: 0;
}

.bookrivo-readable-content a {
  color: #173d2d;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c79a57;
  font-weight: 600;
  transition: color 0.15s ease;
}

.bookrivo-readable-content a:hover {
  color: #b08238;
}

.bookrivo-readable-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.bookrivo-readable-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14.5px;
}

.bookrivo-readable-content table th,
.bookrivo-readable-content table td {
  padding: 10px 14px;
  border: 1px solid #e8e3d8;
}

.bookrivo-readable-content table th {
  background: #f4efe6;
  color: #173d2d;
  font-weight: 700;
  text-align: left;
}

/* Article Tags & Post Navigation */
.bookrivo-article-tags {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid #ede8de;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bookrivo-article-tags .tags-label {
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
}

.bookrivo-article-tags .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bookrivo-article-tags .tag-pill {
  background: #f4efe6;
  color: #173d2d;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bookrivo-article-tags .tag-pill:hover {
  background: #173d2d;
  color: #ffffff;
}

.bookrivo-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px dashed #e2ded5;
  border-bottom: 1px dashed #e2ded5;
  margin-top: 30px;
}

.bookrivo-post-nav .nav-box {
  flex: 1;
}

.bookrivo-post-nav .nav-next {
  text-align: right;
}

.bookrivo-post-nav .nav-sub {
  font-size: 11.5px;
  text-transform: uppercase;
  color: #8a998e;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.bookrivo-post-nav .nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #173d2d;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
  transition: color 0.15s ease;
}

.bookrivo-post-nav .nav-title:hover {
  color: #c79a57;
}

/* Related Articles */
.bookrivo-related-articles {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #ede8de;
}

.bookrivo-related-articles .related-heading {
  font-size: 18px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 18px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-related-articles .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.bookrivo-related-articles .related-card {
  background: #fbf9f4;
  border: 1px solid #ede8de;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.bookrivo-related-articles .related-card:hover {
  transform: translateY(-2px);
  border-color: #d4ccbd;
}

.bookrivo-related-articles .related-thumb {
  height: 110px;
  overflow: hidden;
  display: block;
  background: #ede8de;
}

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

.bookrivo-related-articles .related-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookrivo-related-articles .related-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.4;
}

.bookrivo-related-articles .related-date {
  font-size: 11px;
  color: #8a998e;
}

/* 6. Blog Sidebar Widgets (~30%) */
.bookrivo-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bookrivo-sidebar-widget {
  background: #ffffff;
  border: 1px solid #ede8de;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(23, 61, 45, 0.03);
}

.bookrivo-sidebar-widget .widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #173d2d;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  letter-spacing: 0.2px;
}

/* Sidebar Search */
.bookrivo-sidebar-search-form .search-input-wrap {
  position: relative;
  display: flex;
}

.bookrivo-sidebar-search-form .search-field {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1px solid #d4ccbd;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fbf9f4;
  color: #173d2d;
  outline: none;
  transition: all 0.18s ease;
}

.bookrivo-sidebar-search-form .search-field:focus {
  background: #ffffff;
  border-color: #173d2d;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.12);
}

.bookrivo-sidebar-search-form .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #173d2d;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Recent Posts */
.bookrivo-sidebar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bookrivo-sidebar-recent-list li {
  padding-bottom: 12px;
  border-bottom: 1px dashed #ede8de;
}

.bookrivo-sidebar-recent-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bookrivo-sidebar-recent-list .recent-post-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: center;
}

.bookrivo-sidebar-recent-list .recent-thumb {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f4efe6;
}

.bookrivo-sidebar-recent-list .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bookrivo-sidebar-recent-list .recent-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bookrivo-sidebar-recent-list .recent-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.bookrivo-sidebar-recent-list .recent-post-link:hover .recent-title {
  color: #b08238;
}

.bookrivo-sidebar-recent-list .recent-date {
  font-size: 11px;
  color: #8a998e;
}

/* Sidebar Categories List */
.bookrivo-sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookrivo-sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #2c3a32;
  text-decoration: none;
  transition: all 0.15s ease;
  background: transparent;
}

.bookrivo-sidebar-cat-list li a:hover {
  background: #f4efe6;
  color: #173d2d;
  padding-left: 14px;
}

.bookrivo-sidebar-cat-list .cat-count {
  font-size: 11px;
  font-weight: 700;
  background: #ede8de;
  color: #173d2d;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Sidebar Tag Cloud */
.bookrivo-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bookrivo-tagcloud a {
  background: #f4efe6;
  color: #173d2d;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bookrivo-tagcloud a:hover {
  background: #173d2d;
  color: #ffffff;
}

/* 7. Blog Comments Redesign */
.bookrivo-comments-area {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid #ede8de;
  border-radius: 14px;
  padding: 38px 42px;
  box-shadow: 0 3px 12px rgba(23, 61, 45, 0.03);
}

.bookrivo-comments-area .comments-title {
  font-size: 21px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ede8de;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}

.bookrivo-comment-list .comment {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0ecdf;
}

.bookrivo-comment-list .comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bookrivo-comment-list .comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.bookrivo-comment-list .comment-author.vcard img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede8de;
}

.bookrivo-comment-list .fn {
  font-size: 14.5px;
  font-weight: 700;
  color: #173d2d;
  font-style: normal;
}

.bookrivo-comment-list .says {
  display: none;
}

.bookrivo-comment-list .comment-meta {
  font-size: 11.5px;
  color: #8a998e;
  margin-bottom: 8px;
}

.bookrivo-comment-list .comment-meta a {
  color: inherit;
  text-decoration: none;
}

.bookrivo-comment-list .comment-content {
  font-size: 14px;
  line-height: 1.7;
  color: #2c3a32;
  margin-bottom: 10px;
}

.bookrivo-comment-list .reply {
  font-size: 12px;
}

.bookrivo-comment-list .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  background: #f4efe6;
  color: #173d2d;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bookrivo-comment-list .comment-reply-link:hover {
  background: #173d2d;
  color: #ffffff;
}

/* Nested replies */
.bookrivo-comment-list .children {
  list-style: none;
  padding-left: 36px;
  margin-top: 18px;
  border-left: 2px solid #ede8de;
}

/* Comment Form */
.bookrivo-comments-area .comment-respond {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #ede8de;
}

.bookrivo-comments-area .comment-reply-title {
  font-size: 19px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 10px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-comments-area .comment-reply-title small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.bookrivo-comments-area .comment-reply-title a {
  color: #dc2626;
  text-decoration: none;
}

.bookrivo-comments-area .comment-notes {
  font-size: 12.5px;
  color: #70796f;
  margin-bottom: 18px;
}

.bookrivo-comment-form .comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.bookrivo-comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  margin-bottom: 6px;
}

.bookrivo-comment-form .required {
  color: #dc2626;
}

.bookrivo-comment-form input[type="text"],
.bookrivo-comment-form input[type="email"],
.bookrivo-comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d4ccbd;
  border-radius: 8px;
  font-size: 14px;
  background: #fbf9f4;
  color: #173d2d;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.bookrivo-comment-form input[type="text"]:focus,
.bookrivo-comment-form input[type="email"]:focus,
.bookrivo-comment-form textarea:focus {
  background: #ffffff;
  border-color: #173d2d;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.12);
}

.bookrivo-comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #5c6b61;
  margin: 12px 0 18px;
}

.bookrivo-comment-form .comment-form-cookies-consent input {
  margin-top: 3px;
  accent-color: #173d2d;
}

.bookrivo-comment-form .submit.bookrivo-submit-btn {
  background: #173d2d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(23, 61, 45, 0.15);
}

.bookrivo-comment-form .submit.bookrivo-submit-btn:hover {
  background: #245741;
  transform: translateY(-1px);
}

.bookrivo-comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
}

.bookrivo-comment-navigation a {
  color: #173d2d;
  text-decoration: none;
}


.bookrivo-sidebar-search-form .search-submit svg {
  width: 18px;
  height: 18px;
  display: block;
}/* WordPress Comment Form Responsive Rules */
.comments-area,
.comment-respond,
#commentform,
.comment-form,
.comment-form p {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
#comments textarea,
#comments input {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}


/* ==========================================================================
   BLOG, ARTICLE & COMMENTS RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 980px) {
  .bookrivo-blog-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bookrivo-sidebar-col {
    order: 2;
  }
}

@media (max-width: 767px) {
  .bookrivo-blog-page .bookrivo-archive-banner,
  .bookrivo-archive-page .bookrivo-archive-banner,
  .bookrivo-search-page .bookrivo-archive-banner,
  .bookrivo-archive-banner {
    padding: 22px 0 20px;
    text-align: center;
    background: linear-gradient(110deg, #edf0e7 1%, #f4f4eb 65%, #e3e9de 100%);
    border-bottom: 1px solid #e2e8df;
  }
  .bookrivo-blog-page .bookrivo-archive-banner .banner-kicker,
  .bookrivo-archive-page .bookrivo-archive-banner .banner-kicker,
  .bookrivo-search-page .bookrivo-archive-banner .banner-kicker {
    font-size: 11px;
    color: #b08238;
    margin-bottom: 6px;
  }
  .bookrivo-blog-page .bookrivo-archive-banner .banner-title,
  .bookrivo-archive-page .bookrivo-archive-banner .banner-title,
  .bookrivo-search-page .bookrivo-archive-banner .banner-title,
  .bookrivo-archive-banner .banner-title {
    font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.36;
    margin: 0 0 6px;
    text-align: center;
  }
  .bookrivo-blog-page .bookrivo-archive-banner .banner-desc,
  .bookrivo-archive-page .bookrivo-archive-banner .banner-desc,
  .bookrivo-search-page .bookrivo-archive-banner .banner-desc,
  .bookrivo-archive-banner .banner-desc {
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .bookrivo-article.bookrivo-single-card {
    padding: 26px 20px;
    border-radius: 10px;
  }
  .bookrivo-article-title {
    font-size: 24px;
  }
  .bookrivo-comments-area {
    padding: 26px 20px;
    border-radius: 10px;
  }
  .bookrivo-comment-form .comment-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bookrivo-comment-list .children {
    padding-left: 18px;
  }
  .bookrivo-post-nav {
    flex-direction: column;
    gap: 14px;
  }
  .bookrivo-post-nav .nav-next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .bookrivo-blog-grid {
    grid-template-columns: 1fr;
  }
  .bookrivo-article.bookrivo-single-card {
    padding: 20px 15px;
  }
  .bookrivo-comments-area {
    padding: 20px 15px;
  }
  .bookrivo-comment-list .comment-body {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }
  .bookrivo-comment-list .comment-author.vcard img {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   BookRivo — Blog Article WooCommerce Product Shortcodes
   ========================================================================== */

/* Isolation from blog prose typography and list indentation */
.bookrivo-readable-content .woocommerce,
.entry-content .woocommerce {
  margin: 32px 0 36px 0;
  clear: both;
}

.bookrivo-readable-content .woocommerce ul.products,
.entry-content .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px)) !important;
  justify-content: center !important;
  gap: 22px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
}

/* Single Product Shortcode: Centered sensible compact card */
.bookrivo-readable-content .woocommerce ul.products:has(> .product:only-child),
.entry-content .woocommerce ul.products:has(> .product:only-child),
.bookrivo-readable-content .woocommerce ul.products.columns-1,
.entry-content .woocommerce ul.products.columns-1 {
  display: flex !important;
  justify-content: center !important;
}

.bookrivo-readable-content .woocommerce ul.products > .product:only-child,
.entry-content .woocommerce ul.products > .product:only-child,
.bookrivo-readable-content .woocommerce ul.products.columns-1 > .product,
.entry-content .woocommerce ul.products.columns-1 > .product {
  width: min(100%, 270px) !important;
  max-width: 270px !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
}

/* Two Product Shortcodes: 2 balanced columns */
.bookrivo-readable-content .woocommerce ul.products.columns-2,
.entry-content .woocommerce ul.products.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Product Card Shell in Blog Posts */
.bookrivo-readable-content .bookrivo-book-card,
.entry-content .bookrivo-book-card {
  background: #ffffff !important;
  border: 1px solid #e7ebe5 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(23, 61, 45, 0.04) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.bookrivo-readable-content .bookrivo-book-card:hover,
.entry-content .bookrivo-book-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 22px rgba(18, 55, 45, 0.08) !important;
  border-color: #cbd8c8 !important;
}

/* Cover Stage & Image */
.bookrivo-readable-content .bookrivo-cover-stage,
.entry-content .bookrivo-cover-stage {
  height: 230px !important;
  background: #f9f8f5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 14px !important;
  position: relative !important;
  overflow: hidden !important;
}

.bookrivo-readable-content .bookrivo-cover-image,
.entry-content .bookrivo-cover-image {
  max-height: 206px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  box-shadow: 4px 6px 14px rgba(24, 39, 27, 0.15) !important;
  margin: 0 auto !important;
  display: block !important;
  transition: transform 0.22s ease !important;
}

/* Card Body / Details */
.bookrivo-readable-content .bookrivo-card-details,
.entry-content .bookrivo-card-details {
  padding: 14px 16px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--bookrivo-ink, #24352d) !important;
  background: #ffffff !important;
}

/* Category Link */
.bookrivo-readable-content .bookrivo-card-category,
.entry-content .bookrivo-card-category {
  margin: 0 0 5px 0 !important;
  line-height: 1.3 !important;
}

.bookrivo-readable-content .bookrivo-card-category a,
.entry-content .bookrivo-card-category a {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #b08238 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  letter-spacing: 0.03em !important;
  display: inline-block !important;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif) !important;
}

.bookrivo-readable-content .bookrivo-card-category a:hover,
.entry-content .bookrivo-card-category a:hover {
  color: #8c6426 !important;
  text-decoration: none !important;
}

/* Book Title */
.bookrivo-readable-content h3.bookrivo-card-title,
.bookrivo-readable-content h3.book-title,
.entry-content h3.bookrivo-card-title,
.entry-content h3.book-title {
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  color: var(--bookrivo-forest, #173d2d) !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

.bookrivo-readable-content h3.bookrivo-card-title a,
.bookrivo-readable-content h3.book-title a,
.entry-content h3.bookrivo-card-title a,
.entry-content h3.book-title a {
  color: var(--bookrivo-forest, #173d2d) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: color 0.18s ease !important;
}

.bookrivo-readable-content h3.bookrivo-card-title a:hover,
.bookrivo-readable-content h3.book-title a:hover,
.entry-content h3.bookrivo-card-title a:hover,
.entry-content h3.book-title a:hover {
  color: var(--bookrivo-gold, #c79a57) !important;
  text-decoration: none !important;
}

/* Contributor / Author */
.bookrivo-readable-content .bookrivo-card-author,
.entry-content .bookrivo-card-author {
  margin: 0 0 10px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

.bookrivo-readable-content .bookrivo-card-author a,
.entry-content .bookrivo-card-author a {
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif) !important;
}

.bookrivo-readable-content .bookrivo-card-author a:hover,
.entry-content .bookrivo-card-author a:hover {
  color: var(--bookrivo-forest, #173d2d) !important;
  text-decoration: none !important;
}

/* Price Row & Cluster */
.bookrivo-readable-content .bookrivo-card-price-row,
.entry-content .bookrivo-card-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: auto 0 12px 0 !important;
  padding-top: 8px !important;
  border-top: 1px dashed #e8ebe5 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.bookrivo-readable-content .bookrivo-price-cluster,
.entry-content .bookrivo-price-cluster {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.bookrivo-readable-content .bookrivo-price-reg,
.entry-content .bookrivo-price-reg {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  order: 1 !important;
}

.bookrivo-readable-content .bookrivo-price-sale,
.entry-content .bookrivo-price-sale {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: var(--bookrivo-forest, #12372d) !important;
  text-decoration: none !important;
  order: 2 !important;
}

.bookrivo-readable-content .bookrivo-discount-pill,
.entry-content .bookrivo-discount-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Add to Cart Action Button */
.bookrivo-readable-content .bookrivo-card-actions,
.entry-content .bookrivo-card-actions {
  margin-top: 0 !important;
}

.bookrivo-readable-content .bookrivo-card-actions .button,
.bookrivo-readable-content .bookrivo-card-actions .add_to_cart_button,
.entry-content .bookrivo-card-actions .button,
.entry-content .bookrivo-card-actions .add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  background: var(--bookrivo-forest, #12372d) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif) !important;
  border-radius: 6px !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.bookrivo-readable-content .bookrivo-card-actions .button:hover,
.bookrivo-readable-content .bookrivo-card-actions .add_to_cart_button:hover,
.entry-content .bookrivo-card-actions .button:hover,
.entry-content .bookrivo-card-actions .add_to_cart_button:hover {
  background: var(--bookrivo-forest-light, #244a3b) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* Focus outline clean-up for blog links & card titles */
.entry-title a:focus:not(:focus-visible),
.bookrivo-article-title a:focus:not(:focus-visible),
.blog-card-title a:focus:not(:focus-visible),
.bookrivo-card-title a:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.entry-title a:focus-visible,
.bookrivo-article-title a:focus-visible,
.blog-card-title a:focus-visible,
.bookrivo-card-title a:focus-visible {
  outline: 2px solid var(--bookrivo-forest, #12372d) !important;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive Grid on Tablet / Mobile */
@media (max-width: 600px) {
  .bookrivo-readable-content .woocommerce ul.products,
  .entry-content .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
  .bookrivo-readable-content .woocommerce ul.products.columns-2,
  .entry-content .woocommerce ul.products.columns-2 {
    grid-template-columns: 1fr !important;
    max-width: 270px !important;
  }
}