/**
 * BookRivo CSS Module 03: Reusable UI & Homepage Components
 *
 * Hero Section, Benefit Bar, Thematic Categories, Editorial Promotional Banners,
 * About/Mission Section, Journal Preview Cards, Newsletter Strip, Reader Reviews,
 * Directory Switcher, Contributor Profile, Unified Pagination, Standard Pages & 404.
 *
 * @package BookRivo
 * @since 1.0.0
 */
/* ==========================================================================
   HERO SECTION (CANONICAL PROTOTYPE)
   ========================================================================== */
.hero,
.bookrivo-hero-section {
  background: linear-gradient(120deg, #f6f5ed 0%, #eeefe3 70%, #eff0e5 100%);
  overflow: hidden;
  position: relative;
}

.hero:before,
.bookrivo-hero-section:before {
  content: '';
  position: absolute;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(56, 96, 74, 0.10);
  border-radius: 50%;
  right: 2%;
  top: -140px;
  box-shadow: 0 0 0 52px rgba(34, 71, 47, 0.025), 0 0 0 112px rgba(34, 71, 47, 0.018);
  pointer-events: none;
}

.hero-inner,
.hero-inner-grid {
  min-height: 465px;
  display: grid;
  grid-template-columns: 51% 49%;
  align-items: center;
  gap: 20px;
  position: relative;
}

.hero-copy,
.hero-copy-column {
  padding: 35px 0 40px;
}

.kicker,
.hero-kicker {
  font: 700 10px Arial;
  letter-spacing: 2px;
  color: #a27d4a;
  display: flex;
  align-items: center;
  gap: 13px;
  text-transform: uppercase;
}

.kicker:before,
.hero-kicker:before {
  content: '';
  width: 25px;
  height: 1px;
  background: var(--bookrivo-gold);
}

.hero h1,
.hero-title {
  font: 800 clamp(36px, 4vw, 57px)/1.52 var(--bookrivo-font-display);
  letter-spacing: -1.2px;
  margin: 12px 0;
  color: var(--bookrivo-forest);
}

.hero h1 span,
.hero-title-accent {
  color: #aa7844;
}

.hero-copy p,
.hero-description {
  font-size: 13px;
  line-height: 2.1;
  color: #5e6b5e;
  max-width: 505px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  transition: .2s;
  cursor: pointer;
  text-decoration: none;
}

.cta svg {
  width: 17px;
  height: 17px;
}

.cta.primary {
  background: var(--bookrivo-forest);
  color: #fff;
}

.cta.primary:hover {
  background: #2a5743;
}

.cta.light {
  background: transparent;
  border-color: #c6cebf;
  color: var(--bookrivo-forest);
}

.cta.light:hover {
  background: #fff;
}

.hero-trust,
.hero-trust-list {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  align-items: center;
  color: #617569;
  font-size: 11px;
}

.hero-trust span,
.hero-trust-list span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg,
.hero-trust-list svg {
  height: 15px;
  width: 15px;
  color: var(--bookrivo-forest);
}

.hero-visual,
.hero-visual-column {
  height: 410px;
  position: relative;
  align-self: end;
  max-width: 100%;
}

.hero-stage {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 95%;
  height: 77px;
  background: #c4c9b3;
  clip-path: polygon(12% 0, 91% 0, 100% 100%, 0 100%);
  opacity: .5;
}

.hero-circle {
  position: absolute;
  width: 372px;
  height: 372px;
  border: 1px solid #c9d2be;
  top: 10px;
  left: calc(50% - 175px);
  border-radius: 50%;
}

.hero-circle:before {
  content: '';
  position: absolute;
  inset: 36px;
  border: 1px solid #dae0d2;
  border-radius: 50%;
}

.book-mock,
.hero-book-mock {
  position: absolute;
  border-radius: 4px;
  box-shadow: 18px 25px 22px rgba(36, 57, 45, 0.22), 3px 4px 0 rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 252, 0.33);
  overflow: hidden;
  background: #f5f2ea;
  display: block;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.book-mock:hover,
.hero-book-mock:hover {
  z-index: 6 !important;
  box-shadow: 22px 30px 28px rgba(36, 57, 45, 0.30);
}

.book-mock img,
.hero-book-mock img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.book-mock.b1,
.book-mock-1 {
  width: 185px;
  height: 274px;
  left: 34%;
  bottom: 60px;
  z-index: 3;
  transform: rotate(-6deg);
}

.book-mock.b2,
.book-mock-2 {
  width: 155px;
  height: 230px;
  left: 5%;
  bottom: 46px;
  z-index: 2;
  transform: rotate(-16deg);
}

.book-mock.b3,
.book-mock-3 {
  width: 160px;
  height: 236px;
  right: 2%;
  bottom: 44px;
  z-index: 1;
  transform: rotate(11deg);
}

.mock-book-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  background: linear-gradient(150deg, #a5b5a0, #2e5040);
  color: white;
  text-align: center;
}

.mock-book-fill b {
  font: 800 20px/1.6 var(--bookrivo-font-display);
}

.feature-ticket {
  position: absolute;
  right: 1%;
  top: 34px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 47, 36, 0.12);
  padding: 11px 14px;
  border-radius: 9px;
  transform: rotate(7deg);
  z-index: 4;
  text-align: center;
  color: var(--bookrivo-forest);
}

.feature-ticket strong {
  display: block;
  font: 800 17px Arial;
}

.feature-ticket small {
  display: block;
  font-size: 9px;
  color: var(--bookrivo-muted);
}

/* ==========================================================================
   BENEFIT BAR & TRUST BENEFITS
   ========================================================================== */
.benefit-bar,
.bookrivo-benefits-section {
  border-bottom: 1px solid var(--bookrivo-line);
  background: #ffffff;
  transition: background-color 0.2s ease;
}

.benefit-bar.bg-preset-white {
  background-color: #ffffff;
}
.benefit-bar.bg-preset-warm-ivory {
  background-color: #f7f9f5;
}
.benefit-bar.bg-preset-cream {
  background-color: #fdfbf7;
}

.benefits,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-block: 22px;
  align-items: stretch;
}

.benefits.grid-count-1 { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
.benefits.grid-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin-inline: auto; }
.benefits.grid-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefits.grid-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefits.grid-count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.benefits.grid-count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.benefit,
.benefit-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 58px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit.is-clickable {
  cursor: pointer;
}
.benefit.is-clickable:hover {
  background-color: rgba(18, 55, 45, 0.04);
  transform: translateY(-1px);
}

.benefit-bar.layout-boxed .benefit {
  background-color: #ffffff;
  border: 1px solid var(--bookrivo-line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.benefit-bar.layout-boxed .benefit:hover {
  border-color: rgba(18, 55, 45, 0.25);
  box-shadow: 0 4px 12px rgba(18, 55, 45, 0.07);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background-color: var(--bookrivo-warm-ivory, #f7f4ec);
  border: 1px solid rgba(18, 55, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bookrivo-forest);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.benefit:hover .benefit-icon {
  background-color: var(--bookrivo-forest);
  color: #ffffff;
}

.benefit svg,
.benefit-icon svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: currentColor;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.benefit b,
.benefit-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bookrivo-forest);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.benefit small,
.benefit-text small {
  font-size: 11px;
  color: #748277;
  display: block;
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .benefits,
  .benefits-grid,
  .benefits.grid-count-3,
  .benefits.grid-count-4,
  .benefits.grid-count-5,
  .benefits.grid-count-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-block: 18px;
  }
}

@media (max-width: 640px) {
  .benefits,
  .benefits-grid,
  .benefits.grid-count-1,
  .benefits.grid-count-2,
  .benefits.grid-count-3,
  .benefits.grid-count-4,
  .benefits.grid-count-5,
  .benefits.grid-count-6 {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 14px;
  }
  .benefit,
  .benefit-item {
    padding: 8px 12px;
    gap: 12px;
  }
  .benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .benefit b,
  .benefit-title {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .benefit small,
  .benefit-desc {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* ==========================================================================
   SECTIONS & TOPICS
   ========================================================================== */
.section,
.bookrivo-section {
  padding: 67px 0;
}

.section.cream {
  background: var(--bookrivo-cream);
}

.sec-head,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}

.label-over,
.section-label {
  color: #af8651;
  font: 700 10px Arial;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 11px;
}

.sec-head h2,
.section-title,
.story h2,
.special h2 {
  font: 800 28px/1.45 var(--bookrivo-font-display);
  margin: 0;
  color: var(--bookrivo-forest);
}

.sec-head p {
  margin: 5px 0 0;
  color: #8b948b;
  font-size: 12px;
}

.view-all,
.view-all-link {
  color: var(--bookrivo-forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  padding-bottom: 5px;
  text-decoration: none;
}

.view-all svg,
.view-all-link svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   THEMATIC CATEGORIES SECTION (REFERENCE IMAGE REDESIGN)
   ========================================================================== */
#categories {
  background-color: #FAF8F2;
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
}

#categories:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160' fill='none'%3E%3Cpath d='M-10 10C30 25 60 70 80 120M25 35C45 30 70 45 65 65M45 65C65 60 90 75 85 95M10 70C30 80 40 110 20 120M60 105C80 115 90 145 70 155' stroke='%23C79A57' stroke-width='1.2' stroke-linecap='round' opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top left;
  pointer-events: none;
}

#categories:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cpath d='M210 -10C160 30 110 80 60 140M170 30C150 15 120 25 125 50M135 65C115 50 85 60 90 85M175 80C155 95 145 125 165 140M105 110C85 125 75 155 95 170' stroke='%23C79A57' stroke-width='1.2' stroke-linecap='round' opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
}

#categories .sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

#categories .sec-head-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 680px;
}

#categories .label-over {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #9C784E;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

#categories .label-over:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #C79A57;
  border-radius: 2px;
  flex-shrink: 0;
}

#categories .cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

#categories .sec-head h2 {
  font-family: var(--bookrivo-font-display, 'Noto Sans Bengali', sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #0E352B;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.3px;
}

#categories .cat-title-swoosh {
  width: 44px;
  height: 9px;
  display: inline-block;
  flex-shrink: 0;
}

#categories .sec-head p {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 14px;
  color: #6C786F;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

#categories .view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #0E352B;
  border-bottom: 1.5px solid #C79A57;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: 4px;
}

#categories .view-all:hover {
  color: #1b533f;
  border-color: #0E352B;
}

#categories .view-all svg {
  transition: transform 0.2s ease;
}

#categories .view-all:hover svg {
  transform: translateX(3px);
}

/* Categories Grid */
.categories,
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat,
.category-card {
  min-height: 96px;
  padding: 10px 18px 10px 10px;
  background: #f0f5ee;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.025);
}

/* Palette matching reference image */
.cat:nth-child(1), .cat-itihas { background-color: #f0f5ee !important; }
.cat:nth-child(2), .cat-politics { background-color: #fdf4ed !important; }
.cat:nth-child(3), .cat-atma-unnoiyon { background-color: #edf3fa !important; }
.cat:nth-child(4), .cat-byabsha { background-color: #faf4e8 !important; }
.cat:nth-child(5), .cat-fiction { background-color: #f7eef6 !important; }
.cat:nth-child(6), .cat-packages { background-color: #edf5ee !important; }

.cat:hover,
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 55, 45, 0.08);
  border-color: rgba(199, 154, 87, 0.35);
}

.cat:focus-visible,
.category-card:focus-visible {
  outline: 2px solid var(--bookrivo-forest, #12372D);
  outline-offset: 3px;
}

.cat-illustration-wrap {
  width: 98px;
  height: 86px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: -2px;
}

.cat-illustration-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat:hover .cat-illustration-img,
.category-card:hover .cat-illustration-img {
  transform: scale(1.05);
}

.cat-icon-fallback {
  font-size: 32px;
  line-height: 1;
}

.cat-meta-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.cat-meta-wrap .cat-name,
.cat strong {
  font-family: var(--bookrivo-font-display, 'Noto Sans Bengali', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #0E352B;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
  letter-spacing: -0.2px;
}

.cat:hover .cat-name,
.category-card:hover .cat-name {
  color: #1b533f;
}

.cat-meta-wrap .cat-count,
.cat small {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #768479;
  line-height: 1.2;
  margin: 0;
}

.cat-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 55, 45, 0.06);
  color: #0E352B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

/* Individual Card Arrow Button Tints from reference */
.cat-itihas .cat-arrow-btn, .cat:nth-child(1) .cat-arrow-btn { background: #dce7dd; color: #2e533d; }
.cat-politics .cat-arrow-btn, .cat:nth-child(2) .cat-arrow-btn { background: #f8dfd0; color: #7f4b36; }
.cat-atma-unnoiyon .cat-arrow-btn, .cat:nth-child(3) .cat-arrow-btn { background: #dbe7f2; color: #355874; }
.cat-byabsha .cat-arrow-btn, .cat:nth-child(4) .cat-arrow-btn { background: #f4e4cb; color: #745733; }
.cat-fiction .cat-arrow-btn, .cat:nth-child(5) .cat-arrow-btn { background: #eddbee; color: #6f4373; }
.cat-packages .cat-arrow-btn, .cat:nth-child(6) .cat-arrow-btn { background: #dbe9dd; color: #2e5839; }

.cat-arrow-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.cat:hover .cat-arrow-btn,
.category-card:hover .cat-arrow-btn {
  transform: translateX(2px);
  filter: brightness(0.96);
}

.cat-illustrated-card:after {
  display: none !important;
  content: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cat,
  .category-card,
  .cat-illustration-img,
  .cat-arrow-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Filter Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -5px;
  margin-bottom: 22px;
}

.tab {
  border: 1px solid #e0e6dc;
  padding: 10px 17px;
  background: white;
  color: #5a6b60;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.tab.active {
  background: var(--bookrivo-forest);
  border-color: var(--bookrivo-forest);
  color: white;
}


/* ==========================================================================
   ABOUT / MISSION SECTION REDESIGN
   ========================================================================== */
.story,
.bookrivo-about-section {
  background: #FCFBF7;
  padding: 68px 0;
  border-top: 1px solid #ECEEE7;
  border-bottom: 1px solid #ECEEE7;
  position: relative;
  overflow: hidden;
}

.bookrivo-about-section .story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.bookrivo-about-section.layout-image-right .story-grid {
  grid-template-columns: 1.15fr 1fr;
}
.bookrivo-about-section.layout-image-right .story-visual {
  order: 2;
}
.bookrivo-about-section.layout-image-right .story-copy {
  order: 1;
}

.bookrivo-about-section.layout-image-left .story-visual {
  order: 1;
}
.bookrivo-about-section.layout-image-left .story-copy {
  order: 2;
}

/* Elegant 3-Book Visual Composition Stage */
.bookrivo-about-section .about-visual-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.bookrivo-about-section .about-books-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background decorative circle */
.bookrivo-about-section .about-visual-stage:before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 154, 87, 0.08) 0%, rgba(18, 55, 45, 0.04) 70%, transparent 100%);
  border: 1px dashed rgba(199, 154, 87, 0.25);
  pointer-events: none;
  z-index: 0;
}

.bookrivo-about-section .about-book-card {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 55, 45, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, z-index 0.35s;
  display: block;
  text-decoration: none;
  background: #f1ede5;
}

.bookrivo-about-section .about-book-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 2/3;
}

/* Book 1 - Main Center */
.bookrivo-about-section .about-book-card.book-primary {
  width: 190px;
  height: 270px;
  z-index: 3;
  transform: translateY(0);
}

.bookrivo-about-section .about-book-card.book-primary:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px rgba(18, 55, 45, 0.25);
  z-index: 10;
}

/* Book 2 - Secondary Left */
.bookrivo-about-section .about-book-card.book-secondary {
  width: 165px;
  height: 235px;
  z-index: 2;
  left: 20px;
  transform: rotate(-8deg) translateY(10px);
}

.bookrivo-about-section .about-book-card.book-secondary:hover {
  transform: rotate(-3deg) translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px rgba(18, 55, 45, 0.22);
  z-index: 10;
}

/* Book 3 - Tertiary Right */
.bookrivo-about-section .about-book-card.book-tertiary {
  width: 155px;
  height: 220px;
  z-index: 1;
  right: 25px;
  transform: rotate(8deg) translateY(15px);
}

.bookrivo-about-section .about-book-card.book-tertiary:hover {
  transform: rotate(3deg) translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px rgba(18, 55, 45, 0.22);
  z-index: 10;
}

/* Custom Single Image */
.bookrivo-about-section .about-custom-img-wrap {
  max-width: 380px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 55, 45, 0.16);
  position: relative;
  z-index: 2;
}
.bookrivo-about-section .about-custom-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Copy Styling */
.bookrivo-about-section .story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.bookrivo-about-section .about-eyebrow {
  color: var(--bookrivo-gold, #C79A57);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 2px;
}

.bookrivo-about-section .about-heading {
  font-family: var(--bookrivo-font-display, 'Noto Sans Bengali', sans-serif);
  font-size: 32px;
  line-height: 1.35;
  color: var(--bookrivo-forest, #12372D);
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.bookrivo-about-section .about-description {
  font-size: 15px;
  line-height: 1.8;
  color: #4A5568;
  margin: 0;
  max-width: 580px;
}

.bookrivo-about-section .about-action {
  margin-top: 10px;
}

.bookrivo-about-section .btn-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background-color: var(--bookrivo-forest, #12372D);
  color: #FFFFFF !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.15);
  transition: all 0.25s ease;
}

.bookrivo-about-section .btn-about-cta:hover {
  background-color: var(--bookrivo-gold, #C79A57);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 154, 87, 0.28);
}

/* Optional Statistics Row */
.bookrivo-about-section .about-stats {
  display: flex;
  gap: 36px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E2E6DD;
  width: 100%;
}

.bookrivo-about-section .about-stats .stat {
  display: flex;
  flex-direction: column;
}

.bookrivo-about-section .about-stats .stat strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--bookrivo-forest, #12372D);
  line-height: 1.2;
}

.bookrivo-about-section .about-stats .stat small {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================================
   JOURNAL / BLOG GRID
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  border: 1px solid var(--bookrivo-line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.blog-art {
  height: 158px;
  background: linear-gradient(125deg, #dfe9dc, #f8f5ed);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.blog-art img.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card:nth-child(2) .blog-art {
  background: linear-gradient(120deg, #f2e7de, #faf8f2);
}

.blog-card:nth-child(3) .blog-art {
  background: linear-gradient(120deg, #dbe8e8, #f7f7f0);
}

.blog-art svg {
  height: 65px;
  width: 65px;
  color: #6c8f7f;
  stroke-width: .9;
}

.blog-content {
  padding: 19px;
}

.blog-content small {
  color: #ad8756;
  font-weight: 800;
  font-size: 10px;
}

.blog-content h3 {
  font: 750 15px/1.7 var(--bookrivo-font-display);
  min-height: 52px;
  margin: 8px 0;
  color: var(--bookrivo-forest);
}

.blog-content h3 a:hover {
  color: var(--bookrivo-gold);
}

.blog-content span a {
  display: block;
  font-size: 11px;
  color: #456757;
  font-weight: 750;
  margin-top: 15px;
  text-decoration: none;
}

/* ==========================================================================
   NEWSLETTER STRIP (DUAL-CHANNEL EMAIL & WHATSAPP)
   ========================================================================== */
.newsletter.bookrivo-newsletter-section {
  background: #ebf0e9;
  padding: 38px 0;
  border-top: 1px solid #dbe4d9;
  border-bottom: 1px solid #dbe4d9;
}

.newsletter-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.newsletter-copy {
  max-width: 460px;
}

.newsletter h3,
.newsletter-title {
  font: 800 24px var(--bookrivo-font-display, 'Noto Sans Bengali', sans-serif);
  margin: 0 0 6px;
  color: var(--bookrivo-forest, #12372d);
  letter-spacing: -0.3px;
}

.newsletter p,
.newsletter-desc {
  margin: 0;
  color: #556959;
  font-size: 13px;
  line-height: 1.6;
}

.newsletter-form-wrap {
  flex: 1;
  max-width: 520px;
}

.newsletter-channel-toggle {
  display: inline-flex;
  background: #dce5da;
  border-radius: 20px;
  padding: 3px;
  margin-bottom: 10px;
  gap: 3px;
}

.newsletter-channel-toggle .channel-btn {
  border: 0;
  background: transparent;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #435447;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.newsletter-channel-toggle .channel-btn .channel-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.newsletter-channel-toggle .channel-btn .channel-icon svg {
  width: 14px;
  height: 14px;
}

.newsletter-channel-toggle .channel-btn.is-active {
  background: var(--bookrivo-forest, #12372d);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.newsletter-input-group {
  display: flex;
  box-shadow: 0 2px 8px rgba(18, 55, 45, 0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #c9d6c7;
  background: #ffffff;
}

.newsletter-field-box {
  flex: 1;
  min-width: 0;
}

.newsletter-field-box input {
  width: 100%;
  height: 48px;
  border: 0;
  padding: 0 16px;
  font-size: 13px;
  outline: none;
  background: transparent;
  color: #1e293b;
  box-sizing: border-box;
}

.newsletter-field-box input:focus {
  background: #ffffff;
}

.newsletter-submit-btn {
  background: var(--bookrivo-forest, #12372d);
  color: #ffffff;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-submit-btn:hover {
  background: #0d2820;
}

.newsletter-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-consent-row {
  margin-top: 10px;
}

.consent-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  color: #556959;
  line-height: 1.5;
}

.consent-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--bookrivo-forest, #12372d);
}

.consent-checkbox-label .privacy-link {
  color: var(--bookrivo-forest, #12372d);
  text-decoration: underline;
  font-weight: 600;
}

.newsletter-feedback-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.newsletter-feedback-msg.is-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.newsletter-feedback-msg.is-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   READER REVIEWS SECTION
   ========================================================================== */
.reader-reviews-section {
  padding: 60px 0;
  background: var(--bookrivo-cream, #f7f4ec);
  border-top: 1px solid #e8e3d7;
}

.reader-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.reader-review-card {
  background: #ffffff;
  border: 1px solid #e5dec9;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reader-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.review-rating {
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}

.review-star {
  font-size: 15px;
  line-height: 1;
}

.review-star.is-filled {
  color: var(--bookrivo-gold, #c79a57);
}

.review-star.is-empty {
  color: #d1d5db;
}

.review-quote {
  margin: 0 0 18px;
  flex: 1;
}

.review-quote p {
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #f1ece1;
  padding-top: 12px;
  font-size: 12px;
}

.reviewer-name {
  display: block;
  font-weight: 700;
  color: var(--bookrivo-forest, #12372d);
}

.verified-reader-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 5px;
  vertical-align: middle;
}

.reviewer-book {
  color: #64748b;
  font-size: 11px;
}

.review-source-link {
  color: var(--bookrivo-gold, #c79a57);
  font-weight: 700;
  text-decoration: none;
  font-size: 11px;
}

.review-source-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   DIRECTORY NAVIGATION & SWITCHER
   ========================================================================== */
.directory-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dir-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #5c6f60;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dir-switcher-btn:hover {
  background: #f0f4ee;
  color: var(--bookrivo-forest);
}
.dir-switcher-btn.is-active {
  background: #eaf1e7;
  color: var(--bookrivo-forest);
  border-color: #d2ded0;
  font-weight: 700;
}
.dir-switcher-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Publisher Card Hover & Responsive Polish */
.publisher-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.publisher-card:hover {
  transform: translateY(-2px);
  border-color: var(--bookrivo-forest);
  box-shadow: 0 8px 24px rgba(23, 61, 45, 0.08);
}

@media (max-width: 480px) {
  .dir-switcher-btn {
    padding: 7px 10px;
    font-size: 12px;
    gap: 6px;
  }
}

/* ==========================================================================
   DIRECTORY HERO & CONTRIBUTOR PROFILE PAGE
   ========================================================================== */
.bookrivo-authors-directory .bookrivo-breadcrumbs {
  padding-top: 14px;
  margin-bottom: 14px;
}

.bookrivo-directory-hero {
  background: linear-gradient(116deg, #eff2e9, #f9f8f2 56%, #edf2ea);
  border: 1px solid #e2e8df;
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.bookrivo-directory-hero .hero-content {
  padding: 0;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.bookrivo-directory-hero .eyebrow {
  color: #c79a57;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bookrivo-directory-hero .eyebrow-line {
  height: 1px;
  width: 22px;
  background: #c79a57;
  display: inline-block;
  flex-shrink: 0;
}

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

.bookrivo-directory-hero .hero-desc,
.bookrivo-directory-hero p {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 14px;
  color: #55695a;
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
}

.bookrivo-directory-hero .hero-facts {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #4a634f;
  font-weight: 600;
}

.bookrivo-directory-hero .hero-fact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookrivo-directory-hero .hero-stat-card {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #dbe6dc;
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: 0 4px 18px rgba(23, 61, 45, 0.05);
  text-align: center;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.bookrivo-directory-hero .stat-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bookrivo-directory-hero .stat-number {
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
  font-size: 38px;
  font-weight: 800;
  color: #173d2d;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.bookrivo-directory-hero .stat-title {
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #2e593e;
  margin-top: 5px;
  line-height: 1.3;
}

.bookrivo-directory-hero .stat-subtitle {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 11.5px;
  color: #7a8d80;
  margin-top: 3px;
  line-height: 1.3;
}

.bookrivo-contributor-hero {
  background: linear-gradient(116deg, #eff2e9, #f9f8f2 56%, #edf2ea);
  padding: 42px 0 38px;
  border-bottom: 1px solid #e2e8df;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contributor-avatar-col {
  flex: none;
}

.contributor-avatar-img,
.contributor-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--bookrivo-white, #fff);
  box-shadow: 0 8px 24px rgba(23, 61, 45, 0.12);
  object-fit: cover;
}

.contributor-avatar-placeholder {
  background-color: #f2eee3;
  color: var(--bookrivo-forest, #173d2d);
  display: grid;
  place-items: center;
  font: 800 42px var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
  position: relative;
}

.contributor-avatar-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c79a57;
  border: 3px solid #fff;
}

.contributor-bio-col {
  flex: 1;
  min-width: 280px;
}

.contributor-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--bookrivo-gold, #c79a57);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.contributor-name {
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--bookrivo-forest, #173d2d);
  line-height: 1.3;
  margin: 0 0 10px;
  word-break: normal;
  overflow-wrap: break-word;
}

.contributor-bio-text,
.contributor-bio-text p {
  font-size: 14px;
  color: #55695a;
  max-width: 680px;
  line-height: 1.75;
  margin: 0 0 14px;
}

.contributor-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.book-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bookrivo-white, #fff);
  border: 1px solid #dce4da;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bookrivo-forest, #173d2d);
}

.book-count-badge svg {
  width: 14px;
  height: 14px;
}

.contributor-back-link {
  font-size: 12px;
  font-weight: 600;
  color: #5c6f60;
  text-decoration: none;
}

.contributor-back-link:hover {
  color: var(--bookrivo-forest, #173d2d);
}

.contributor-books-section {
  padding: 42px 0 70px;
}

.contributor-books-section .section-header {
  margin-bottom: 24px;
}

.contributor-books-section .section-title {
  font-size: 22px;
  font-weight: 800;
  color: #173d2d;
  margin: 0;
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
}

@media (max-width: 767px) {
  .bookrivo-authors-directory .bookrivo-breadcrumbs {
    padding-top: 10px;
    margin-bottom: 12px;
  }

  .bookrivo-directory-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    padding: 24px 20px !important;
    min-height: 0 !important;
    margin-bottom: 18px !important;
    border-radius: 14px;
  }

  .bookrivo-directory-hero .hero-content {
    padding: 0 !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .bookrivo-directory-hero .eyebrow {
    justify-content: center;
    margin-bottom: 6px;
  }

  .bookrivo-directory-hero .eyebrow-line {
    width: 16px;
  }

  .bookrivo-directory-hero .hero-heading,
  .bookrivo-directory-hero h1 {
    font-size: clamp(22px, 5.8vw, 26px) !important;
    line-height: 1.36 !important;
    margin: 0 0 8px !important;
    text-align: center;
  }

  .bookrivo-directory-hero .hero-desc,
  .bookrivo-directory-hero p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center;
  }

  .bookrivo-directory-hero .hero-facts {
    justify-content: center;
    margin-top: 12px;
    gap: 10px;
  }

  .bookrivo-directory-hero .hero-stat-card {
    width: 100%;
    max-width: 240px;
    padding: 14px 18px !important;
    box-sizing: border-box;
    margin: 4px auto 0;
  }

  .bookrivo-directory-hero .stat-number {
    font-size: 32px !important;
  }

  .bookrivo-directory-hero .stat-title {
    font-size: 13px !important;
  }

  .bookrivo-directory-hero .stat-subtitle {
    font-size: 11px !important;
  }

  .bookrivo-contributor-hero {
    padding: 24px 0 22px;
  }

  .bookrivo-contributor-hero .hero-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .contributor-avatar-img,
  .contributor-avatar-placeholder {
    width: 78px;
    height: 78px;
    font-size: 30px;
  }

  .contributor-bio-col {
    min-width: 0;
    width: 100%;
  }

  .contributor-name {
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.36;
    margin: 2px 0 8px;
  }

  .contributor-bio-text,
  .contributor-bio-text p {
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto 12px;
  }

  .contributor-stats {
    justify-content: center;
    gap: 10px;
  }

  .contributor-books-section {
    padding: 26px 0 56px;
  }

  .contributor-books-section .section-header {
    margin-bottom: 18px;
    text-align: center;
  }

  .contributor-books-section .section-title {
    font-size: 19px;
    line-height: 1.38;
  }
}


/* ==========================================================================
   REUSABLE EDITORIAL PROMOTIONAL BANNERS
   ========================================================================== */
.bookrivo-editorial-banner {
  margin: 48px 0;
  width: 100%;
}

.bookrivo-editorial-banner .banner-inner-box {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Layout Variations */
.bookrivo-editorial-banner.layout-image-right .banner-content {
  order: 1;
}
.bookrivo-editorial-banner.layout-image-right .banner-visual {
  order: 2;
}

.bookrivo-editorial-banner.layout-image-left .banner-inner-box {
  grid-template-columns: 0.75fr 1.25fr;
}
.bookrivo-editorial-banner.layout-image-left .banner-content {
  order: 2;
}
.bookrivo-editorial-banner.layout-image-left .banner-visual {
  order: 1;
}

/* Content Elements */
.bookrivo-editorial-banner .banner-content {
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.bookrivo-editorial-banner .banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
}

.bookrivo-editorial-banner .banner-title {
  font-family: var(--bookrivo-font-display, 'Noto Sans Bengali', sans-serif);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}

.bookrivo-editorial-banner .banner-desc {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.bookrivo-editorial-banner .banner-action {
  margin-top: 10px;
}

.bookrivo-editorial-banner .btn-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bookrivo-editorial-banner .btn-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Visual Stage */
.bookrivo-editorial-banner .banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.bookrivo-editorial-banner .banner-visual-wrap {
  max-width: 200px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bookrivo-editorial-banner .banner-visual-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
}

.bookrivo-editorial-banner .banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2/3;
}

/* --------------------------------------------------------------------------
   PRESET 1: Deep Forest Green
   -------------------------------------------------------------------------- */
.bookrivo-editorial-banner.preset-forest-green .banner-inner-box {
  background: linear-gradient(135deg, #103229 0%, #174236 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bookrivo-editorial-banner.preset-forest-green .banner-eyebrow {
  color: var(--bookrivo-gold, #C79A57);
}
.bookrivo-editorial-banner.preset-forest-green .banner-title {
  color: #FFFFFF;
}
.bookrivo-editorial-banner.preset-forest-green .banner-desc {
  color: #C8DACE;
}
.bookrivo-editorial-banner.preset-forest-green .btn-banner-cta {
  background: #F2D8A0;
  color: #18392F;
}
.bookrivo-editorial-banner.preset-forest-green .btn-banner-cta:hover {
  background: #F8E4BC;
  color: #10261F;
}

/* --------------------------------------------------------------------------
   PRESET 2: Warm Ivory
   -------------------------------------------------------------------------- */
.bookrivo-editorial-banner.preset-warm-ivory .banner-inner-box {
  background: #F7F9F5;
  border: 1px solid #E2E8DE;
}
.bookrivo-editorial-banner.preset-warm-ivory .banner-eyebrow {
  color: var(--bookrivo-gold, #C79A57);
}
.bookrivo-editorial-banner.preset-warm-ivory .banner-title {
  color: var(--bookrivo-forest, #12372D);
}
.bookrivo-editorial-banner.preset-warm-ivory .banner-desc {
  color: #4A5568;
}
.bookrivo-editorial-banner.preset-warm-ivory .btn-banner-cta {
  background: var(--bookrivo-forest, #12372D);
  color: #FFFFFF;
}
.bookrivo-editorial-banner.preset-warm-ivory .btn-banner-cta:hover {
  background: #1B4D3E;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   PRESET 3: Subtle Neutral
   -------------------------------------------------------------------------- */
.bookrivo-editorial-banner.preset-subtle-neutral .banner-inner-box {
  background: #EDF3EE;
  border: 1px solid #D5E0D7;
}
.bookrivo-editorial-banner.preset-subtle-neutral .banner-eyebrow {
  color: #2E5A44;
}
.bookrivo-editorial-banner.preset-subtle-neutral .banner-title {
  color: var(--bookrivo-forest, #12372D);
}
.bookrivo-editorial-banner.preset-subtle-neutral .banner-desc {
  color: #3E4D40;
}
.bookrivo-editorial-banner.preset-subtle-neutral .btn-banner-cta {
  background: var(--bookrivo-forest, #12372D);
  color: #FFFFFF;
}
.bookrivo-editorial-banner.preset-subtle-neutral .btn-banner-cta:hover {
  background: #1B4D3E;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .bookrivo-editorial-banner {
    margin: 36px 0;
  }
  .bookrivo-editorial-banner .banner-inner-box,
  .bookrivo-editorial-banner.layout-image-left .banner-inner-box,
  .bookrivo-editorial-banner.layout-image-right .banner-inner-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bookrivo-editorial-banner.layout-image-left .banner-visual,
  .bookrivo-editorial-banner.layout-image-right .banner-visual {
    order: 1;
    padding: 36px 20px 8px;
    justify-content: center;
  }
  .bookrivo-editorial-banner.layout-image-left .banner-content,
  .bookrivo-editorial-banner.layout-image-right .banner-content {
    order: 2;
    padding: 16px 24px 36px;
    align-items: center;
    text-align: center;
  }
  .bookrivo-editorial-banner .banner-visual-wrap {
    max-width: 150px;
  }
  .bookrivo-editorial-banner .banner-title {
    font-size: 22px;
  }
  .bookrivo-editorial-banner .banner-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bookrivo-editorial-banner {
    margin: 28px 0;
  }
  .bookrivo-editorial-banner.layout-image-left .banner-content,
  .bookrivo-editorial-banner.layout-image-right .banner-content {
    padding: 12px 16px 28px;
  }
  .bookrivo-editorial-banner .banner-visual-wrap {
    max-width: 130px;
  }
  .bookrivo-editorial-banner .banner-title {
    font-size: 19px;
  }
}

/* ==========================================================================
   BookRivo Unified Pagination System
   Native WordPress & WooCommerce Compliant
   ========================================================================== */

.bookrivo-pagination-row {
  width: 100%;
  margin: 48px auto 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  clear: both;
}

.bookrivo-pagination,
.woocommerce-pagination,
.navigation.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
}

/* Screen reader text clean reset */
.bookrivo-pagination .screen-reader-text,
.woocommerce-pagination .screen-reader-text,
.navigation.pagination .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Strip WooCommerce legacy border box styling */
.bookrivo-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers,
.navigation.pagination ul.page-numbers,
.nav-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
  white-space: normal !important;
}

.bookrivo-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li,
.navigation.pagination ul.page-numbers li {
  display: inline-flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  float: none !important;
}

/* Standardized Page Buttons */
.bookrivo-pagination .page-numbers,
.woocommerce-pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #dce2d7 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: #173d2d !important;
  font-family: var(--bookrivo-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  user-select: none;
}

/* Active State — BookRivo Forest Green */
.bookrivo-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background-color: #173d2d !important;
  color: #ffffff !important;
  border-color: #173d2d !important;
  box-shadow: 0 3px 8px rgba(23, 61, 45, 0.22) !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Hover & Focus States */
.bookrivo-pagination a.page-numbers:hover,
.bookrivo-pagination a.page-numbers:focus-visible,
.woocommerce-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:focus-visible,
.navigation.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:focus-visible {
  background-color: #f0f5ee !important;
  border-color: #173d2d !important;
  color: #173d2d !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23, 61, 45, 0.08) !important;
  outline: none !important;
}

/* Active Click Press Effect */
.bookrivo-pagination a.page-numbers:active,
.woocommerce-pagination a.page-numbers:active,
.navigation.pagination a.page-numbers:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(23, 61, 45, 0.1) !important;
}

/* Previous & Next Text Buttons */
.bookrivo-pagination .prev.page-numbers,
.bookrivo-pagination .next.page-numbers,
.woocommerce-pagination .prev.page-numbers,
.woocommerce-pagination .next.page-numbers,
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
  padding: 0 16px !important;
  width: auto !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.2px;
  gap: 6px;
}

/* Ellipsis / Dots */
.bookrivo-pagination .page-numbers.dots,
.woocommerce-pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7b8e7f !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  min-width: 24px !important;
  padding: 0 4px !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Disabled State Handling (First/Last page buttons) */
.bookrivo-pagination .page-numbers.disabled,
.bookrivo-pagination span.prev.page-numbers.disabled,
.bookrivo-pagination span.next.page-numbers.disabled,
.woocommerce-pagination .page-numbers.disabled,
.woocommerce-pagination span.prev.page-numbers.disabled,
.woocommerce-pagination span.next.page-numbers.disabled,
.navigation.pagination .page-numbers.disabled,
.navigation.pagination span.prev.page-numbers.disabled,
.navigation.pagination span.next.page-numbers.disabled {
  background-color: #f7f9f6 !important;
  color: #a3b3a6 !important;
  border-color: #e5ebe2 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.7 !important;
}

/* Responsive: Tablet View (<= 768px) */
@media (max-width: 768px) {
  .bookrivo-pagination-row {
    margin: 36px auto 24px;
  }
  .bookrivo-pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers,
  .navigation.pagination ul.page-numbers {
    gap: 6px !important;
  }
  .bookrivo-pagination .page-numbers,
  .woocommerce-pagination .page-numbers,
  .navigation.pagination .page-numbers {
    min-width: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
  }
  .bookrivo-pagination .prev.page-numbers,
  .bookrivo-pagination .next.page-numbers,
  .woocommerce-pagination .prev.page-numbers,
  .woocommerce-pagination .next.page-numbers,
  .navigation.pagination .prev.page-numbers,
  .navigation.pagination .next.page-numbers {
    padding: 0 13px !important;
    font-size: 12.5px !important;
  }
}

/* Responsive: Mobile View (<= 480px / 375px) */
@media (max-width: 480px) {
  .bookrivo-pagination-row {
    margin: 28px auto 20px;
  }
  .bookrivo-pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers,
  .navigation.pagination ul.page-numbers {
    gap: 4px !important;
  }
  .bookrivo-pagination .page-numbers,
  .woocommerce-pagination .page-numbers,
  .navigation.pagination .page-numbers {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
    padding: 0 7px !important;
    border-radius: 6px !important;
  }
  .bookrivo-pagination .prev.page-numbers,
  .bookrivo-pagination .next.page-numbers,
  .woocommerce-pagination .prev.page-numbers,
  .woocommerce-pagination .next.page-numbers,
  .navigation.pagination .prev.page-numbers,
  .navigation.pagination .next.page-numbers {
    padding: 0 9px !important;
    font-size: 11.5px !important;
  }
  .bookrivo-pagination .page-numbers.dots,
  .woocommerce-pagination .page-numbers.dots,
  .navigation.pagination .page-numbers.dots {
    min-width: 18px !important;
    padding: 0 2px !important;
  }
}


/* 9. Empty States, Standard Pages, My Account & 404 Helpers */
.bookrivo-standard-page {
  padding: 40px 0 72px;
  min-height: 55vh;
}

.bookrivo-standard-page .entry-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8df;
}

.bookrivo-standard-page .entry-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 28px;
  font-weight: 800;
  color: #173d2d;
  margin: 0;
  line-height: 1.3;
}


/* 404 Page Styling */
.bookrivo-404-page {
  padding: 48px 0 80px;
}

.not-found-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 6px 24px rgba(18, 55, 45, 0.04);
}

.not-found-card .error-code {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: #c79a57;
  margin-bottom: 12px;
}

.not-found-card .page-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 26px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 10px;
}

.not-found-card .error-message {
  font-size: 14px;
  color: #5c6f60;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 24px;
}

.bookrivo-404-search {
  max-width: 460px;
  margin: 0 auto 28px;
}

.bookrivo-404-search-form {
  display: flex;
  gap: 10px;
}

.bookrivo-404-search-form input[type="search"] {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #dce2d7;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fafbf9;
  color: #173d2d;
  outline: none;
}

.bookrivo-404-search-form input[type="search"]:focus {
  border-color: #173d2d;
  background: #ffffff;
}

.bookrivo-404-search-form .button-primary {
  height: 44px;
  padding: 0 22px;
  background: #173d2d;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.bookrivo-404-search-form .button-primary:hover {
  background: #245741;
}

.not-found-card .quick-links-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #7b8e80;
  margin: 0 0 12px;
}

.not-found-card .quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.not-found-card .quick-links-grid a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.not-found-card .quick-links-grid a.button-primary {
  background: #173d2d;
  color: #ffffff;
  border: 1px solid #173d2d;
}

.not-found-card .quick-links-grid a.button-primary:hover {
  background: #245741;
}

.not-found-card .quick-links-grid a.button-secondary {
  background: #f5f7f3;
  color: #173d2d;
  border: 1px solid #dce4da;
}

.not-found-card .quick-links-grid a.button-secondary:hover {
  background: #eaf0e6;
  border-color: #173d2d;
}

.bookrivo-no-posts-card,
.bookrivo-empty-search-card {
  text-align: center;
  padding: 55px 25px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ede8de;
  box-shadow: 0 2px 8px rgba(23, 61, 45, 0.02);
}

.empty-icon-circle {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: #f4efe6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #173d2d;
}

.empty-title,
.no-posts-title {
  font-size: 21px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 8px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.empty-desc,
.no-posts-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 auto 22px;
  max-width: 500px;
  line-height: 1.6;
}

.bookrivo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #173d2d;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.18s ease;
}

.bookrivo-btn-primary:hover {
  background: #245741;
}

.bookrivo-inline-search-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 10px;
}

.bookrivo-inline-search-form .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d4ccbd;
  border-radius: 7px;
  font-size: 13.5px;
  background: #fbf9f4;
  outline: none;
}

.bookrivo-inline-search-form .search-field:focus {
  border-color: #173d2d;
  background: #ffffff;
}


/* ==========================================================================
   HOMEPAGE & UI COMPONENTS RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1050px) {
  .hero-inner {
    min-height: 440px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-visual {
    transform: scale(0.85);
    transform-origin: bottom center;
  }
  .categories,
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat,
  .category-card {
    padding: 13px;
  }
  .cat strong,
  .category-info strong {
    font-size: 14px;
  }
  .story-grid {
    gap: 35px;
  }
}

@media (max-width: 768px) {
  /* Hero Mobile */
  .hero:before,
  .bookrivo-hero-section:before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -40px;
    opacity: 0.65;
    box-shadow: 0 0 0 28px rgba(34, 71, 47, 0.018), 0 0 0 64px rgba(34, 71, 47, 0.012);
  }
  .hero-inner,
  .hero-inner-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero-copy,
  .hero-copy-column {
    padding: 24px 0 12px;
  }
  .hero h1,
  .hero-title {
    font-size: clamp(24px, 6.2vw, 32px);
    line-height: 1.38;
    letter-spacing: -0.015em;
    margin: 10px 0 10px;
    text-wrap: balance;
  }
  .hero-copy p,
  .hero-description {
    font-size: 13px;
    line-height: 1.68;
    color: #4f5d52;
    margin-bottom: 18px;
    max-width: 420px;
  }
  .kicker,
  .hero-kicker {
    font-size: 10px;
    letter-spacing: 1.5px;
    gap: 10px;
  }
  .hero-actions {
    gap: 10px;
    margin-bottom: 8px;
  }
  .hero-actions .cta,
  .hero-actions .bookrivo-btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
  }
  .hero-actions .cta.primary {
    box-shadow: 0 3px 10px rgba(24, 57, 47, 0.16);
  }
  .hero-actions .cta.light {
    background: rgba(255, 255, 255, 0.7);
    border-color: #c2cbb9;
  }
  .hero-trust,
  .hero-trust-list {
    display: none;
  }
  .hero-visual,
  .hero-visual-column {
    height: 220px;
    transform: none;
    max-width: 420px;
    width: 100%;
    margin: 8px auto 0;
    position: relative;
  }
  .hero-circle {
    width: 240px;
    height: 240px;
    top: -15px;
    left: calc(50% - 120px);
    border-color: rgba(201, 210, 190, 0.75);
  }
  .hero-circle:before {
    border-color: rgba(218, 224, 210, 0.65);
  }
  .book-mock.b1, .book-mock-1 { width: 125px; height: 171px; bottom: 28px; left: 38%; }
  .book-mock.b2, .book-mock-2 { width: 105px; height: 142px; bottom: 25px; left: 17%; }
  .book-mock.b3, .book-mock-3 { width: 105px; height: 142px; bottom: 23px; right: 15%; }
  .feature-ticket { top: 19px; right: 10%; padding: 7px 9px; }
  .feature-ticket strong { font-size: 13px; }
  .feature-ticket small { font-size: 8px; }
  .hero-stage { height: 44px; bottom: 0; opacity: 0.45; }

  /* Sections Mobile */
  .section, .bookrivo-section { padding: 45px 0; }
  .sec-head, .section-header { margin-bottom: 18px; }
  .sec-head h2, .section-title { font-size: 23px; }
  .sec-head p { font-size: 10px; }
  .view-all, .view-all-link { font-size: 10px; }

  .categories, .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cat, .category-card {
    min-height: 88px;
    padding: 12px 14px;
    gap: 12px;
  }
  .cat-illustration-wrap {
    width: 66px;
    height: 66px;
  }
  .cat-meta-wrap .cat-name, .cat strong {
    font-size: 15px;
  }
  .cat-meta-wrap .cat-count, .cat small {
    font-size: 12px;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-right: 0;
  }
  .tab { flex: none; padding: 9px 12px; }

  /* About Section Mobile */
  .bookrivo-about-section {
    padding: 44px 0;
  }
  .bookrivo-about-section .story-grid,
  .bookrivo-about-section.layout-image-right .story-grid,
  .bookrivo-about-section.layout-image-left .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .bookrivo-about-section.layout-image-right .story-visual,
  .bookrivo-about-section.layout-image-left .story-visual {
    order: 1;
    height: auto;
  }
  .bookrivo-about-section.layout-image-right .story-copy,
  .bookrivo-about-section.layout-image-left .story-copy {
    order: 2;
    align-items: center;
    text-align: center;
  }
  .bookrivo-about-section .about-visual-stage {
    max-width: 320px;
    height: 280px;
  }
  .bookrivo-about-section .about-heading { font-size: 24px; }
  .bookrivo-about-section .about-description { font-size: 13px; }
  .bookrivo-about-section .about-stats { justify-content: center; gap: 20px; }
  .bookrivo-about-section .about-stats .stat strong { font-size: 20px; }

  /* Homepage Journal Preview Mobile */
  .blog-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-card { display: grid; grid-template-columns: 116px 1fr; }
  .blog-art { height: 100%; min-height: 135px; }
  .blog-art svg { width: 45px; height: 45px; }
  .blog-content { padding: 14px; }
  .blog-content h3 { font-size: 13px; min-height: 0; }
  .blog-content span a { margin-top: 9px; font-size: 10px; }

  /* Newsletter Mobile */
  .newsletter-in { flex-direction: column; align-items: stretch; gap: 20px; }
  .newsletter-copy { max-width: 100%; }
  .newsletter-form-wrap { max-width: 100%; width: 100%; }
  .newsletter h3, .newsletter-title { font-size: 20px; }
  .newsletter-input-group { flex-direction: column; }
  .newsletter-submit-btn { height: 44px; width: 100%; }
  .reader-reviews-grid { grid-template-columns: 1fr; }

  /* Standard Page & 404 Mobile */
  .bookrivo-standard-page {
    padding: 28px 0 56px;
  }
  .bookrivo-standard-page .entry-title {
    font-size: 22px;
  }
  .bookrivo-404-page {
    padding: 28px 0 56px;
  }
}

@media (max-width: 640px) {
  #categories {
    padding: 38px 0 46px;
  }
  #categories .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  #categories .sec-head-intro {
    width: 100%;
  }
  #categories .sec-head h2 {
    font-size: 22px;
    line-height: 1.35;
  }
  #categories .sec-head p {
    font-size: 13px;
    line-height: 1.45;
  }
  #categories .view-all {
    margin-top: 2px;
  }
  #categories .cat-title-wrap {
    flex-wrap: wrap;
    gap: 8px;
  }
  #categories .cat-title-swoosh {
    width: 38px;
    height: 8px;
  }
  .categories,
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .cat,
  .category-card {
    min-height: 88px !important;
    padding: 8px 14px 8px 10px !important;
    gap: 12px !important;
    border-radius: 18px !important;
  }
  .cat-illustration-wrap {
    width: 86px !important;
    height: 76px !important;
  }
  .cat-meta-wrap .cat-name,
  .cat strong {
    font-size: 16px !important;
  }
  .cat-meta-wrap .cat-count,
  .cat small {
    font-size: 12.5px !important;
  }
  .cat-arrow-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .cat-arrow-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .not-found-card {
    padding: 36px 18px !important;
    border-radius: 12px !important;
  }
  .bookrivo-404-search-form {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .bookrivo-404-search-form button {
    width: 100% !important;
  }
}

@media (max-width: 414px) {
  .section-title, .sec-head h2 { font-size: 20px; }
}

@media (max-width: 380px) {
  .not-found-card {
    padding: 24px 12px !important;
  }
  .error-code {
    font-size: 60px !important;
  }
  .entry-title {
    font-size: 22px !important;
  }
}

@media (max-width: 340px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .hero-actions .cta,
  .hero-actions .bookrivo-btn {
    width: 100%;
  }
}

/* ==========================================================================
   HOMEPAGE PUBLISHING IMPRINTS & BRAND LOGOS
   ========================================================================== */
.bookrivo-brands-section {
  padding: 44px 0 48px;
  background: #ffffff;
  border-top: 1px solid #edf2ea;
  border-bottom: 1px solid #edf2ea;
}

.bookrivo-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: stretch;
}

.bookrivo-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(23, 61, 45, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease, 
              box-shadow 0.22s ease;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.bookrivo-brand-card:hover,
.bookrivo-brand-card:focus-visible {
  border-color: #173d2d;
  box-shadow: 0 6px 18px rgba(23, 61, 45, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.bookrivo-brand-card .brand-logo-img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.22s ease;
  filter: contrast(1.02);
}

.bookrivo-brand-card:hover .brand-logo-img {
  transform: scale(1.04);
}

.bookrivo-brand-card .brand-text-fallback {
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  text-align: center;
  line-height: 1.35;
  font-family: var(--bookrivo-font-body, system-ui, sans-serif);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet & Responsive Grid Breakpoints (768px - 1199px: 3 columns) */
@media (max-width: 1199px) {
  .bookrivo-brands-section {
    padding: 38px 0 42px;
  }
  .bookrivo-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .bookrivo-brand-card {
    height: 80px;
    padding: 10px 14px;
  }
  .bookrivo-brand-card .brand-logo-img {
    max-height: 44px;
  }
}

/* Mobile Breakpoint (<= 767px: 2 columns) */
@media (max-width: 767px) {
  .bookrivo-brands-section {
    padding: 32px 0 36px;
  }
  .bookrivo-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bookrivo-brand-card {
    height: 72px;
    padding: 8px 10px;
    border-radius: 8px;
  }
  .bookrivo-brand-card .brand-logo-img {
    max-height: 38px;
  }
  .bookrivo-brand-card .brand-text-fallback {
    font-size: 12px;
  }
}

/* ==========================================================================
   HOMEPAGE FEATURED AUTHORS SECTION
   ========================================================================== */
.bookrivo-featured-authors-section {
  padding: 48px 0 52px;
  background: #fbfbf9;
  border-top: 1px solid #edf2ea;
  border-bottom: 1px solid #edf2ea;
}

.featured-authors-wrapper {
  position: relative;
  width: 100%;
}

.featured-authors-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.featured-author-card {
  background: #ffffff;
  border: 1px solid #e5e9e2;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-author-card:hover {
  transform: translateY(-4px);
  border-color: #2f6b4f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.author-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.author-avatar-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f4ee;
  border: 2px solid #e2e8df;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s ease;
}

.featured-author-card:hover .author-avatar-wrapper {
  border-color: #2f6b4f;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.author-avatar-fallback {
  font-size: 32px;
  font-weight: 700;
  color: #2f6b4f;
}

.author-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.author-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.featured-author-card:hover .author-card-name {
  color: #2f6b4f;
}

.author-card-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
}

/* Tablet: 3 columns */
@media (max-width: 1199px) and (min-width: 768px) {
  .featured-authors-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile: Compact horizontal swipe (~2 visible cards, natural image proportions, no heavy carousel library) */
@media (max-width: 767px) {
  .bookrivo-featured-authors-section {
    padding: 32px 0 36px;
  }

  .featured-authors-wrapper {
    overflow: hidden;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-authors-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    padding-right: 16px;
  }

  .featured-authors-track::-webkit-scrollbar {
    display: none;
  }

  .featured-author-card {
    flex: 0 0 calc(50% - 6px);
    min-width: 135px;
    max-width: 180px;
    scroll-snap-align: start;
    padding: 16px 12px;
    border-radius: 10px;
  }

  .author-avatar-wrapper {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }

  .author-card-name {
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .author-card-count {
    font-size: 11px;
  }
}

/* ==========================================================================
   HOMEPAGE PARTNER RETAILER LOGOS SECTION
   ========================================================================== */
.bookrivo-retailer-logos-section {
  padding: 40px 0 44px;
  background: #ffffff;
  border-top: 1px solid #edf2ea;
  border-bottom: 1px solid #edf2ea;
}

.retailer-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: stretch;
}

.retailer-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 96px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.retailer-logo-card:hover {
  transform: translateY(-3px);
  border-color: #2f6b4f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.retailer-logo-wrap {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.retailer-logo-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}

.retailer-logo-card:hover .retailer-logo-img {
  transform: scale(1.04);
}

.retailer-text-fallback {
  font-size: 13px;
  font-weight: 700;
  color: var(--bookrivo-forest, #2f6b4f);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.retailer-name {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  line-height: 1.2;
}

.retailer-logo-card:hover .retailer-name {
  color: #2f6b4f;
}

/* Tablet (768px - 1199px: 3 columns) */
@media (max-width: 1199px) {
  .retailer-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Mobile (<= 767px: 2 columns) */
@media (max-width: 767px) {
  .bookrivo-retailer-logos-section {
    padding: 30px 0 34px;
  }

  .retailer-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .retailer-logo-card {
    height: 82px;
    padding: 8px 10px;
    gap: 6px;
  }

  .retailer-logo-wrap {
    height: 36px;
  }

  .retailer-name {
    font-size: 11px;
  }
}

/* ==========================================================================
   DISTRIBUTOR DIRECTORY PAGE STYLING (/distributor/)
   ========================================================================== */
.distributor-page-wrapper {
  padding: 32px 0 60px;
}

.distributor-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.distributor-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 12px;
}

.distributor-hero-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.distributor-retailers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.distributor-retailer-card {
  scroll-margin-top: 110px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.distributor-retailer-card:target,
.distributor-retailer-card:hover {
  border-color: #2f6b4f;
  box-shadow: 0 8px 24px rgba(47, 107, 79, 0.12);
}

.distributor-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.distributor-card-logo-wrap {
  width: 100px;
  height: 54px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.distributor-card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.distributor-card-title-group {
  flex: 1;
}

.distributor-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.distributor-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e6f4ea;
  color: #137333;
}

.distributor-badge.online-only {
  background: #e8f0fe;
  color: #1a73e8;
}

.distributor-card-body {
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.distributor-card-desc {
  margin-bottom: 14px;
  color: #4b5563;
}

.distributor-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.distributor-meta-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.5;
}

.distributor-meta-content {
  flex: 1;
}

.distributor-meta-content strong {
  color: #1f2937;
}

.distributor-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.distributor-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2f6b4f;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.distributor-card-btn:hover {
  background: #24543e;
}

/* Regional Bookstores Directory section */
.regional-directory-section {
  background: #f8faf9;
  border: 1px solid #e5eae3;
  border-radius: 12px;
  padding: 32px 28px;
  margin-top: 40px;
}

.regional-directory-header {
  text-align: center;
  margin-bottom: 28px;
}

.regional-directory-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.regional-directory-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.regional-regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.regional-region-block {
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  padding: 20px;
}

.regional-region-title {
  font-size: 16px;
  font-weight: 700;
  color: #2f6b4f;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2eb;
  display: flex;
  align-items: center;
  gap: 6px;
}

.regional-store-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f0f3ee;
  font-size: 13px;
  line-height: 1.5;
}

.regional-store-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.regional-store-name {
  font-weight: 700;
  color: #1f2937;
}

.regional-store-address {
  color: #4b5563;
}

.regional-store-contact {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.regional-store-contact a {
  color: #2f6b4f;
  text-decoration: underline;
}

.regional-directory-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid #e8ede5;
}

@media (max-width: 767px) {
  .distributor-hero-title {
    font-size: 24px;
  }

  .distributor-retailers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .distributor-retailer-card {
    padding: 18px 16px;
  }

  .regional-directory-section {
    padding: 20px 16px;
  }

  .regional-regions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   AUTHORS & CONTRIBUTORS DIRECTORY (REFINED COMPACT PREMIUM DESIGN)
   ========================================================================== */
.bookrivo-authors-directory {
  padding-bottom: 60px;
}

.directory-toolbar-card {
  margin-bottom: 20px;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 12px 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.authors-filter-section {
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.authors-filter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.authors-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.authors-search-wrap input[type="search"] {
  width: 100%;
  height: 42px;
  padding: 8px 40px 8px 16px;
  border: 1px solid #d5ded3;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fbfcf9;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.authors-search-wrap input[type="search"]:focus {
  border-color: #2f6b4f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

.search-submit-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.search-submit-icon:hover {
  color: #2f6b4f;
}

.search-submit-icon svg {
  width: 18px;
  height: 18px;
}

.authors-role-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.role-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #4b5563;
  background: #f3f5f1;
  border: 1px solid #e2e8df;
  transition: all 0.2s ease;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.role-pill-btn:hover {
  background: #e8ede4;
  color: #173d2d;
}

.role-pill-btn.is-active {
  background: #2f6b4f;
  color: #ffffff !important;
  border-color: #2f6b4f;
  box-shadow: 0 2px 6px rgba(47, 107, 79, 0.2);
}

.authors-sort-wrap {
  flex-shrink: 0;
}

.authors-sort-wrap select {
  height: 42px;
  padding: 0 32px 0 12px;
  border: 1px solid #d5ded3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fbfcf9 url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 10px center / 10px auto;
  appearance: none;
  cursor: pointer;
  outline: none;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.authors-sort-wrap select:focus {
  border-color: #2f6b4f;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

.btn-clear-all-filters {
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-clear-all-filters:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Header Count Row */
.dir-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2ea;
}

.dir-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 4px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.dir-count-summary {
  font-size: 13.5px;
  color: #64748b;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-weight: 500;
}

/* Compact Premium Grid */
.bookrivo-authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.compact-author-card {
  background: #ffffff;
  border: 1px solid #e5e9e2;
  border-radius: 12px;
  padding: 18px 16px 14px;
  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(0, 0, 0, 0.02);
}

.compact-author-card:hover {
  transform: translateY(-3px);
  border-color: #2f6b4f;
  box-shadow: 0 10px 24px rgba(47, 107, 79, 0.08);
}

.author-card-header-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.author-card-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: #f4f6f2;
  border: 2px solid #ffffff;
  outline: 1px solid #dce4da;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: outline-color 0.2s ease;
}

.compact-author-card:hover .author-card-avatar-wrap {
  outline-color: #2f6b4f;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.author-avatar-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  border-radius: 50%;
  border: 1px solid transparent;
}

.author-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
}

.author-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  margin-bottom: 6px;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.author-role-badge.role-author {
  background: #f0fdf4;
  color: #166534;
}

.author-role-badge.role-translator {
  background: #eff6ff;
  color: #1e40af;
}

.author-role-badge.role-editor {
  background: #faf5ff;
  color: #6b21a8;
}

.author-role-badge.role-author-translator {
  background: #fdf4ff;
  color: #86198f;
}

.author-role-badge.role-author-editor {
  background: #fefce8;
  color: #854d0e;
}

.author-name-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 5px;
  line-height: 1.35;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
  transition: color 0.15s ease;
}

.compact-author-card:hover .author-name-title {
  color: #2f6b4f;
}

.author-book-count-text {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  margin-bottom: 12px;
}

.author-card-action-bar {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-view-books-btn {
  font-size: 12px;
  font-weight: 600;
  color: #2f6b4f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.15s ease;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
}

.author-view-books-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.compact-author-card:hover .author-view-books-btn {
  color: #1e4634;
  gap: 7px;
}

/* Empty State */
.dir-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #ffffff;
  border: 1px dashed #d5ded3;
  border-radius: 12px;
  margin-bottom: 50px;
}

.dir-empty-state .empty-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

.dir-empty-state .empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #173d2d;
  margin: 0 0 6px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.dir-empty-state .empty-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

.dir-empty-state .btn-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  background: #2f6b4f;
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dir-empty-state .btn-clear-filter:hover {
  background: #24543e;
}

/* Pagination */
.bookrivo-pagination-row {
  margin: 24px 0 60px;
  display: flex;
  justify-content: center;
}

.bookrivo-pagination-row .page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  align-items: center;
}

.bookrivo-pagination-row .page-numbers a,
.bookrivo-pagination-row .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d5ded3;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
}

.bookrivo-pagination-row .page-numbers a:hover {
  background: #f0f4ee;
  border-color: #2f6b4f;
  color: #2f6b4f;
}

.bookrivo-pagination-row .page-numbers .current {
  background: #2f6b4f;
  color: #ffffff;
  border-color: #2f6b4f;
}

/* Tablet & Responsive Breakpoints */
@media (max-width: 1199px) and (min-width: 768px) {
  .bookrivo-authors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .authors-filter-section {
    padding: 14px 14px;
    gap: 12px;
  }

  .authors-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .authors-search-wrap {
    min-width: 100%;
  }

  .authors-role-pills {
    width: 100%;
    justify-content: flex-start;
  }

  .role-pill-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .authors-sort-wrap {
    width: 100%;
  }

  .authors-sort-wrap select {
    width: 100%;
  }

  .bookrivo-authors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .compact-author-card {
    padding: 14px 10px 10px;
    border-radius: 10px;
  }

  .author-card-avatar-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
  }

  .author-avatar-monogram {
    font-size: 20px;
  }

  .author-name-title {
    font-size: 13.5px;
    min-height: 36px;
    margin-bottom: 3px;
  }

  .author-book-count-text {
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .author-view-books-btn {
    font-size: 11px;
  }
}

/* Very narrow mobile (< 340px) */
@media (max-width: 340px) {
  .bookrivo-authors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ==========================================================================
   Projonmo Essential Pages & Customer Trust Components (Phase 3A)
   ========================================================================== */
.projonmo-essential-page {
  padding: 30px 0 60px;
  color: #242424;
}

.projonmo-page-hero {
  background: #12372D;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 40px 32px;
  margin-bottom: 36px;
  text-align: center;
}

.projonmo-page-hero .hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #C79A57;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.projonmo-page-hero .hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px;
  line-height: 1.3;
}

.projonmo-page-hero .hero-subtitle {
  font-size: 15px;
  color: #DCE7DE;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards Grid */
.projonmo-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.projonmo-cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.projonmo-card {
  background: #FFFFFF;
  border: 1px solid #E8E3D7;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(18, 55, 45, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.projonmo-card:hover {
  transform: translateY(-2px);
  border-color: #C79A57;
  box-shadow: 0 8px 20px rgba(18, 55, 45, 0.08);
}

.projonmo-card .card-icon {
  width: 48px;
  height: 48px;
  background: #F7F4EC;
  color: #12372D;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.projonmo-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #12372D;
  margin: 0 0 10px;
}

.projonmo-card .card-text {
  font-size: 14.5px;
  color: #4A5568;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.projonmo-card .card-link {
  display: inline-block;
  margin-top: 14px;
  color: #12372D;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projonmo-card .card-link:hover {
  color: #C79A57;
}

/* Policy Content Layout */
.projonmo-policy-box {
  background: #FFFFFF;
  border: 1px solid #E8E3D7;
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 30px;
}

.projonmo-policy-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: #12372D;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F7F4EC;
}

.projonmo-policy-box h3 {
  font-size: 17px;
  font-weight: 600;
  color: #12372D;
  margin: 24px 0 10px;
}

.projonmo-policy-box p,
.projonmo-policy-box li {
  font-size: 15px;
  line-height: 1.75;
  color: #333333;
}

.projonmo-policy-box ul,
.projonmo-policy-box ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.projonmo-policy-box li {
  margin-bottom: 8px;
}

.projonmo-highlight-badge {
  background: #F7F4EC;
  border-left: 4px solid #C79A57;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.projonmo-highlight-badge p {
  margin: 0;
  font-weight: 500;
  color: #12372D;
}

/* FAQ Component */
.projonmo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projonmo-faq-item {
  background: #FFFFFF;
  border: 1px solid #E8E3D7;
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color 0.2s ease;
}

.projonmo-faq-item:hover {
  border-color: #12372D;
}

.projonmo-faq-q {
  font-size: 17px;
  font-weight: 700;
  color: #12372D;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.projonmo-faq-q .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #12372D;
  color: #FFFFFF;
  font-size: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.projonmo-faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: #4A5568;
  margin: 0;
  padding-left: 36px;
}

/* Contact Form */
.projonmo-contact-form-wrap {
  background: #FFFFFF;
  border: 1px solid #E8E3D7;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(18, 55, 45, 0.04);
  margin-top: 36px;
}

.projonmo-form-row {
  margin-bottom: 20px;
}

.projonmo-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #12372D;
  margin-bottom: 6px;
}

.projonmo-form-row input[type="text"],
.projonmo-form-row input[type="tel"],
.projonmo-form-row input[type="email"],
.projonmo-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: #242424;
  background: #FDFDFD;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.projonmo-form-row input:focus,
.projonmo-form-row textarea:focus {
  outline: none;
  border-color: #12372D;
  box-shadow: 0 0 0 3px rgba(18, 55, 45, 0.12);
}

.projonmo-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12372D;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.projonmo-btn-submit:hover {
  background: #1b4d3f;
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .projonmo-cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projonmo-page-hero {
    padding: 28px 18px;
  }
  .projonmo-page-hero .hero-title {
    font-size: 22px;
  }
  .projonmo-cards-grid-3,
  .projonmo-cards-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projonmo-policy-box {
    padding: 24px 18px;
  }
  .projonmo-faq-a {
    padding-left: 0;
    margin-top: 6px;
  }
}
.footer-credit-text a { color: #b8cbbd; text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s ease; }
.footer-credit-text a:hover { color: #ffffff; }
