.rh-blog-main,
.rh-blog-main * {
  box-sizing: border-box;
}

.rh-blog-main {
  --primary: #b40902;
  --primary-dark: #760400;
  --primary-soft: rgba(180, 9, 2, .08);
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, .1);
  background: #fff;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
}

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

.rh-blog-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.rh-blog-hero {
  padding: clamp(28px, 5vw, 54px) 0 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 232, 77, .26), transparent 28%),
    linear-gradient(180deg, #fffafa 0%, #fff 100%);
}

.rh-blog-hero .rh-blog-wrap {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(420px, .95fr);
  gap: 22px;
  align-items: center;
}

.rh-blog-kicker,
.rh-blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rh-blog-kicker {
  margin-bottom: 12px;
  padding: 7px 12px;
}

.rh-blog-chip {
  margin-bottom: 10px;
  padding: 6px 11px;
}

.rh-blog-hero h1 {
  max-width: 560px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
}

.rh-blog-hero h1 span,
.rh-blog-read {
  color: var(--primary);
}

.rh-blog-hero-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.rh-blog-featured,
.rh-blog-card,
.rh-blog-empty {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffafa);
  box-shadow: 0 18px 48px rgba(16, 24, 40, .08);
}

.rh-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  min-height: 300px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.rh-blog-featured:hover,
.rh-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(16, 24, 40, .12);
}

.rh-blog-featured img,
.rh-blog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.rh-blog-featured:hover img,
.rh-blog-card:hover img {
  transform: scale(1.04);
}

.rh-blog-featured-body,
.rh-blog-card-body {
  padding: 18px;
}

.rh-blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rh-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.rh-blog-meta span,
.rh-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rh-blog-featured h2,
.rh-blog-card h3,
.rh-blog-list-head h2,
.rh-blog-empty h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.rh-blog-featured h2 {
  margin-bottom: 9px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.rh-blog-featured p,
.rh-blog-card p,
.rh-blog-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}

.rh-blog-read {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 900;
}

.rh-blog-list {
  padding: 24px 0 62px;
}

.rh-blog-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rh-blog-list-head h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  line-height: 1;
}

.rh-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rh-blog-card {
  display: block;
  border-radius: 18px;
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rh-blog-card:hover {
  border-color: rgba(180, 9, 2, .22);
}

.rh-blog-photo {
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: #f2f4f7;
}

.rh-blog-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.22;
}

.rh-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.rh-blog-pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.rh-blog-pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.rh-blog-empty {
  padding: 34px;
  text-align: center;
}

@media (max-width: 980px) {
  .rh-blog-hero .rh-blog-wrap,
  .rh-blog-featured {
    grid-template-columns: 1fr;
  }

  .rh-blog-featured {
    min-height: 0;
  }

  .rh-blog-featured img {
    aspect-ratio: 16 / 9;
  }

  .rh-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rh-blog-wrap {
    width: min(100% - 20px, 1240px);
  }

  .rh-blog-hero {
    padding-top: 28px;
  }

  .rh-blog-hero h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .rh-blog-hero-copy p {
    font-size: 14px;
  }

  .rh-blog-featured,
  .rh-blog-card {
    border-radius: 18px;
  }

  .rh-blog-featured-body,
  .rh-blog-card-body {
    padding: 18px;
  }

  .rh-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
