/* Reihanly Blog — aligned with products / profile / type system */

.rh-blog {
  --rh-b-primary: var(--primary-color, #80AD01);
  --rh-b-primary-dark: var(--primary-color-dark, #6d9500);
  --rh-b-text: var(--luxury-text, #2a3528);
  --rh-b-muted: var(--luxury-text-muted, #6b7568);
  --rh-b-radius: 20px;
  --rh-b-radius-sm: 14px;
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
  color: var(--rh-b-text);
  background:
    radial-gradient(1000px 460px at 100% -10%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.12), transparent 55%),
    radial-gradient(760px 400px at 0% 16%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.07), transparent 50%),
    linear-gradient(180deg, #f7faf4 0%, #f3f6ef 45%, #f7faf4 100%);
  min-height: 50vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  box-sizing: border-box;
  padding-bottom: calc(var(--luxury-bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 2rem);
}

@media (min-width: 992px) {
  .rh-blog {
    padding-bottom: 3rem;
  }
}

.rh-blog,
.rh-blog *,
.rh-blog *::before,
.rh-blog *::after {
  box-sizing: border-box;
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}

.rh-blog a {
  text-decoration: none;
  color: inherit;
}

/* Reading progress under fixed header */
.rh-blog__header-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  transition: background 0.2s, border-color 0.2s;
}

.rh-blog__header-badge:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.rh-blog__header-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem !important;
  font-weight: 700;
}

.rh-blog__header-meta span,
.rh-blog__header-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-reading-progress {
  position: fixed;
  top: var(--rh-header-h, 68px);
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1050;
  pointer-events: none;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #4a6b00, var(--rh-b-primary, #80AD01));
}

@media (max-width: 991px) {
  .blog-reading-progress {
    top: var(--rh-header-h-mobile, 64px);
  }
}

/* ── List toolbar ── */
.rh-blog__toolbar {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__search {
  display: flex;
  gap: 0.5rem;
}

.rh-blog__search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(45, 55, 40, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--rh-b-text);
  font-size: 16px !important;
  font-weight: 600;
}

.rh-blog__search input:focus {
  outline: none;
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
}

.rh-blog__search button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff;
  font-size: 0.9rem !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

.rh-blog__filters-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__chips-track {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rh-blog__chips-track::before,
.rh-blog__chips-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}

.rh-blog__chips-track::before {
  right: 0;
  background: linear-gradient(to left, #f7faf4, transparent);
}

.rh-blog__chips-track::after {
  left: 0;
  background: linear-gradient(to right, #f7faf4, transparent);
}

.rh-blog__chips-track.is-overflow.can-scroll-end::after {
  opacity: 1;
}

.rh-blog__chips-track.is-overflow.scrolled::before {
  opacity: 1;
}

.rh-blog__chips-track::-webkit-scrollbar {
  display: none;
}

.rh-blog__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: max-content;
}

@media (min-width: 768px) {
  .rh-blog__chips {
    flex-wrap: wrap;
    width: auto;
  }
}

.rh-blog__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  color: var(--rh-b-text);
  font-size: 0.86rem !important;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rh-blog__chip:hover {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.35);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.06);
  color: var(--rh-b-primary-dark);
}

.rh-blog__chip.is-active {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.4);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
  color: var(--rh-b-primary-dark);
}

.rh-blog__chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(45, 55, 40, 0.06);
  font-size: 0.7rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__chip.is-active .rh-blog__chip-count {
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.18);
  color: var(--rh-b-primary-dark);
}

/* Featured + cards */
.rh-blog__featured {
  display: block;
  margin: 0 0 1.35rem;
  border-radius: var(--rh-b-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.06);
}

@media (min-width: 900px) {
  .rh-blog__featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
}

.rh-blog__featured-media {
  aspect-ratio: 16 / 10;
  background: #eef2e6;
  overflow: hidden;
}

@media (min-width: 900px) {
  .rh-blog__featured-media {
    aspect-ratio: auto;
    min-height: 260px;
  }
}

.rh-blog__featured-media img,
.rh-blog__card-media img,
.rh-blog__cover img,
.rh-blog__related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rh-blog__featured-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rh-blog__featured-body h2 {
  margin: 0.45rem 0 0.5rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--rh-b-text);
}

.rh-blog__featured-body p {
  margin: 0;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  color: var(--rh-b-muted);
}

.rh-blog__section-title {
  margin: 0 0 0.95rem;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--rh-b-text);
}

.rh-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .rh-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rh-blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 24px rgba(45, 55, 40, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rh-blog__card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.25);
  box-shadow: 0 14px 32px rgba(45, 55, 40, 0.08);
}

.rh-blog__card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(128, 173, 1, 0.12), rgba(100, 140, 20, 0.1));
  overflow: hidden;
}

.rh-blog__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.1rem;
}

.rh-blog__card-body h3 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--rh-b-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-blog__card-excerpt {
  margin: 0;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: var(--rh-b-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-blog__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
  color: var(--rh-b-primary-dark);
  font-size: 0.75rem !important;
  font-weight: 800;
}

.rh-blog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--rh-b-muted);
}

.rh-blog__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.rh-blog__pagination a,
.rh-blog__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  color: var(--rh-b-text);
  font-size: 0.88rem !important;
  font-weight: 700;
}

.rh-blog__pagination a:hover {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.35);
  color: var(--rh-b-primary-dark);
}

.rh-blog__pagination .is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff;
}

.rh-blog__cta,
.rh-blog__empty {
  margin-top: 1.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__cta h3,
.rh-blog__empty p {
  margin: 0 0 0.45rem;
  font-size: 1rem !important;
  font-weight: 800;
}

.rh-blog__cta p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem !important;
  color: var(--rh-b-muted);
  line-height: 1.65;
}

.rh-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

/* ── Detail article ── */
.rh-blog--detail {
  padding-top: 0;
}

.rh-blog__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

@media (min-width: 640px) {
  .rh-blog__wrap {
    padding: 0 1.25rem 1.5rem;
  }
}

.rh-blog__post-head {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--rh-b-radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.05);
}

.rh-blog__post-head h1 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: var(--rh-b-text);
}

.rh-blog__post-excerpt {
  margin: 0.75rem 0 0;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--rh-b-muted);
  font-weight: 600;
}

.rh-blog__cover {
  margin: 0 0 1.25rem;
  border-radius: var(--rh-b-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2e6;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.06);
}

.rh-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

@media (min-width: 960px) {
  .rh-blog__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .rh-blog__layout--solo {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }
}

.rh-blog__toc {
  position: sticky;
  top: calc(var(--rh-header-h, 68px) + 12px);
}

.rh-blog__toc-panel {
  margin: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 24px rgba(45, 55, 40, 0.04);
  overflow: hidden;
}

.rh-blog__toc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
  cursor: pointer;
}

.rh-blog__toc-summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--rh-b-muted);
  border-bottom: 2px solid var(--rh-b-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.rh-blog__toc-panel[open] .rh-blog__toc-summary::after {
  transform: rotate(135deg);
}

.rh-blog__toc-summary::-webkit-details-marker {
  display: none;
}

.rh-blog__toc-nav {
  padding: 0 0.65rem 0.85rem;
  border-top: 1px solid rgba(45, 55, 40, 0.07);
  max-height: min(55vh, 420px);
  overflow-y: auto;
}

.rh-blog__toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-blog__toc-nav a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--rh-b-muted);
  font-size: 0.86rem !important;
  font-weight: 600;
  line-height: 1.45;
}

.rh-blog__toc-nav a:hover,
.rh-blog__toc-nav a.is-active {
  color: var(--rh-b-primary-dark);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08);
}

@media (min-width: 960px) {
  .rh-blog__toc-summary {
    cursor: default;
  }

  .rh-blog__toc-summary::after {
    display: none;
  }

  .rh-blog__toc-nav {
    max-height: calc(100vh - var(--rh-header-h, 68px) - 6rem);
  }
}

/* Prose — standard Reihanly type */
.rh-blog__prose {
  padding: 1.25rem 1.2rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.05);
  font-size: 1.0625rem !important; /* 17px */
  font-weight: 400 !important;
  line-height: 1.85 !important;
  color: var(--rh-b-text);
}

.rh-blog__prose h2,
.rh-blog__prose h3,
.rh-blog__prose h4 {
  margin: 1.75rem 0 0.7rem;
  color: var(--rh-b-text);
  font-weight: 800 !important;
  line-height: 1.35 !important;
  scroll-margin-top: calc(var(--rh-header-h, 68px) + 1rem);
}

.rh-blog__prose h2 {
  font-size: 1.35rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__prose h3 {
  font-size: 1.15rem !important;
}

.rh-blog__prose p {
  margin: 0 0 1rem;
  font-size: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose ul,
.rh-blog__prose ol {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}

.rh-blog__prose li {
  margin-bottom: 0.35rem;
  font-size: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose a {
  color: var(--rh-b-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rh-blog__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1rem 0;
}

.rh-blog__prose blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-right: 4px solid var(--rh-b-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.07);
  color: var(--rh-b-text);
}

.rh-blog__prose table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem !important;
}

.rh-blog__prose th,
.rh-blog__prose td {
  border: 1px solid rgba(45, 55, 40, 0.1);
  padding: 0.55rem 0.7rem;
}

.rh-blog__prose th {
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08);
  font-weight: 800;
}

/* Reset legacy inline styles from CMS content */
.rh-blog__prose *,
.rh-blog__prose.blog-prose *,
.rh-blog__prose.prose * {
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}

.rh-blog__prose [style*="font-size"],
.rh-blog__prose [style*="font-family"],
.rh-blog__prose font {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose strong,
.rh-blog__prose b {
  font-weight: 800 !important;
}

.rh-blog__prose iframe,
.rh-blog__prose video {
  max-width: 100%;
  border-radius: 14px;
}

.rh-blog__prose pre,
.rh-blog__prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.92em !important;
}

.rh-blog__prose pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(45, 55, 40, 0.05);
}

@media (max-width: 720px) {
  .rh-blog__prose {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  .rh-blog__prose h2 {
    font-size: 1.2rem !important;
  }

  .rh-blog__prose h3 {
    font-size: 1.05rem !important;
  }
}

.rh-blog__section {
  margin: 2rem 0;
}

.rh-blog__section-intro {
  margin: 0 0 1rem;
}

.rh-blog__section-intro h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__section-intro p {
  margin: 0;
  font-size: 0.9rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1.25rem 0;
}

.rh-blog__tags-label {
  font-size: 0.84rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__tag {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  font-size: 0.82rem !important;
  font-weight: 700;
  color: var(--rh-b-text);
}

.rh-blog__faq-item {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem !important;
  color: var(--rh-b-text);
  list-style: none;
}

.rh-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.rh-blog__faq-item p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem !important;
  line-height: 1.7;
  color: var(--rh-b-muted);
}

.rh-blog__cta-box {
  margin: 1.75rem 0;
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #1a2210;
  box-shadow: 0 12px 32px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

.rh-blog__cta-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem !important;
  font-weight: 800;
  color: #1a2210;
}

.rh-blog__cta-box p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: rgba(26, 34, 16, 0.85);
}

.rh-blog__cta-box .rh-blog__btn {
  background: #fff;
  color: var(--rh-b-primary-dark) !important;
  box-shadow: none;
}

.rh-blog__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .rh-blog__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__product {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 22px rgba(45, 55, 40, 0.05);
}

.rh-blog__product-media {
  aspect-ratio: 1;
  background: #f3f6ef;
  overflow: hidden;
}

.rh-blog__product-body {
  padding: 0.85rem 0.9rem 1rem;
}

.rh-blog__product-body h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.92rem !important;
  font-weight: 800;
  line-height: 1.4;
  color: var(--rh-b-text);
}

.rh-blog__product-price {
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-primary-dark);
}

.rh-blog__author {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.14);
  color: var(--rh-b-primary-dark);
  font-weight: 800;
  font-size: 1rem !important;
  flex-shrink: 0;
}

.rh-blog__author strong {
  display: block;
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__author p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .rh-blog__related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

@media (min-width: 720px) {
  .rh-blog__related-card {
    display: flex;
    flex-direction: column;
  }
}

.rh-blog__related-media {
  aspect-ratio: 1;
  background: #eef2e6;
  overflow: hidden;
}

@media (min-width: 720px) {
  .rh-blog__related-media {
    aspect-ratio: 16 / 10;
  }
}

.rh-blog__related-body {
  padding: 0.85rem 0.9rem;
}

.rh-blog__related-body h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.92rem !important;
  font-weight: 800;
  line-height: 1.4;
  color: var(--rh-b-text);
}

.rh-blog__comments-empty {
  margin: 0 0 1rem;
  font-size: 0.92rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__comment {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  font-size: 0.84rem !important;
}

.rh-blog__comment-meta strong {
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__comment-meta time {
  color: var(--rh-b-muted);
}

.rh-blog__comment p {
  margin: 0;
  font-size: 0.92rem !important;
  line-height: 1.7;
  color: var(--rh-b-text);
}

.rh-blog__form {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__form .form-group {
  margin-bottom: 0.85rem;
}

.rh-blog__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__form input,
.rh-blog__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(45, 55, 40, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--rh-b-text);
  font-size: 16px !important;
  font-weight: 600;
}

.rh-blog__form textarea {
  min-height: 120px;
  resize: vertical;
}

.rh-blog__form input:focus,
.rh-blog__form textarea:focus {
  outline: none;
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
}

/* Kill legacy blog.css collisions when rh-blog is present */
body.blog-page .blog-page:not(.rh-blog),
body.blog-page .blog-hero,
body.blog-page .blog-article-hero {
  /* kept for safety if old markup remains */
}

body.blog-page .rh-blog .blog-chip,
body.blog-page .rh-blog .prose,
body.blog-page .rh-blog .blog-prose {
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}
