:root {
  --rb-navy:    #042b56;
  --rb-accent:  #4aa8ff;
  --rb-white:   #ffffff;
  --rb-muted:   #5a7a9a;
  --rb-border:  #e5e9f0;
  --rb-card-bg: #ffffff;
  --rb-page-bg: #f5f7fa;
}

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; display: block; }

.rb-page {
  background: var(--rb-page-bg);
  color: var(--rb-navy);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── BANNER ──────────────────────────────────────────── */
.rb-banner {
  position: relative;
  z-index: 5;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 80px) clamp(44px, 6vw, 80px);
  background: linear-gradient(135deg, #010d1f 0%, #021830 40%, #042d5a 75%, #063a72 100%);
}
.rb-banner::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}
.rb-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,180,255,0.5), transparent);
}
.rb-banner-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.rb-banner-particles span {
  position: absolute; border-radius: 50%;
  background: rgba(100,180,255,0.4);
  animation: rbFloatDot linear infinite;
}
@keyframes rbFloatDot {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-120px) translateX(40px); opacity: 0; }
}
.rb-banner-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  animation: rbFadeUp 0.65s ease 0.05s both;
}
@keyframes rbFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rb-banner-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #c8d8eb;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.rb-banner-tag::before {
  content: ''; width: 6px; height: 6px;
  background: #4caf82; border-radius: 50%; box-shadow: 0 0 8px #4caf82;
  flex-shrink: 0;
}
.rb-banner h1 {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 400; color: var(--rb-white);
  line-height: 1.15; margin: 0; letter-spacing: -0.5px;
}
.rb-banner-intro {
  margin-top: 24px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  color: rgba(200,216,235,0.85); max-width: 760px;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
}
.rb-search-wrap {
  position: relative;
  display: flex; align-items: center;
  margin-top: 28px;
  max-width: 480px;
  width: 100%;
}
.rb-search-icon {
  position: absolute; left: 18px;
  font-size: 15px;
  color: rgba(200,216,235,0.65);
  pointer-events: none;
}
.rb-search-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  color: var(--rb-white);
  font-size: 14px;
  font-family: inherit;
  padding: 13px 44px 13px 44px;
  transition: background .2s ease, border-color .2s ease;
}
.rb-search-input::placeholder { color: rgba(200,216,235,0.55); }
.rb-search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.12);
  border-color: rgba(100,180,255,0.6);
}
.rb-search-clear {
  position: absolute; right: 8px;
  display: none; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(200,216,235,0.85);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease;
}
.rb-search-clear:hover { background: rgba(255,255,255,0.22); }
.rb-search-wrap.rb-has-value .rb-search-clear { display: flex; }

.rb-search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: var(--rb-card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(2,10,25,0.28), 0 2px 8px rgba(2,10,25,0.10);
  overflow: hidden;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.rb-search-suggest-inner {
  max-height: 380px;
  overflow-y: auto;
}
.rb-search-wrap.rb-suggest-open .rb-search-suggest {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.rb-suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--rb-navy);
  border-bottom: 1px solid var(--rb-border);
  transition: background .15s ease;
}
.rb-suggest-item:last-child { border-bottom: none; }
.rb-suggest-item:hover, .rb-suggest-item.rb-suggest-active { background: #f2f6fb; }
.rb-suggest-thumb {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid #042b56;
  overflow: hidden;
  background: #eef2f7;
  display: flex; align-items: center; justify-content: center;
  color: var(--rb-muted);
  font-size: 15px;
}
.rb-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rb-suggest-body { min-width: 0; flex: 1; }
.rb-suggest-title {
  font-size: 13.5px; font-weight: 600; color: var(--rb-navy);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-suggest-date {
  margin-top: 3px;
  font-size: 11.5px; color: var(--rb-muted);
}
.rb-suggest-empty {
  padding: 18px 16px;
  font-size: 13px; color: var(--rb-muted);
  text-align: center;
}
.rb-suggest-viewall {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .3px;
  color: #118af2;
  text-decoration: none;
  background: #f8fafc;
  transition: background .15s ease;
}
.rb-suggest-viewall:hover { background: #eef4fb; }

/* ── LAYOUT WRAPPER ──────────────────────────────────── */
.rb-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 64px);
}

/* ── SECTION NAV (groups, topics, formats) ───────────── */
.rb-cat-bar {
  background: #fff;
  border-bottom: 1px solid var(--rb-border);
  box-shadow: 0 4px 18px rgba(4,43,86,0.04);
}
.rb-nav-tabs {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rb-border);
}
.rb-nav-tabs::-webkit-scrollbar,
.rb-nav-links::-webkit-scrollbar { display: none; }
.rb-nav-tab {
  position: relative;
  flex-shrink: 0;
  padding: 18px 0 16px;
  color: var(--rb-muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.rb-nav-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background .15s ease;
}
.rb-nav-tab:hover { color: var(--rb-navy); }
.rb-nav-tab.active { color: var(--rb-navy); }
.rb-nav-tab.active::after { background: linear-gradient(90deg, #118af2, #1f5e9d); }
.rb-nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 0;
}
.rb-nav-row:last-child { padding-bottom: 14px; }
.rb-nav-label {
  flex-shrink: 0;
  width: 64px;
  color: var(--rb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.rb-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.rb-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}
.rb-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1.5px solid var(--rb-border);
  border-radius: 100px;
  background: #fff;
  color: var(--rb-navy);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.rb-cat-chip:hover { border-color: #95c3ec; background: #f2f8fd; color: var(--rb-navy); }
.rb-cat-chip.active {
  background: linear-gradient(90deg, #042b56, #1f5e9d);
  border-color: transparent;
  color: #fff;
}
.rb-cat-chip--sm { padding: 6px 14px; font-size: 12.5px; font-weight: 500; }
.rb-chip-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 100px;
  background: #eef4fb;
  color: var(--rb-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.rb-cat-chip.active .rb-chip-count { background: rgba(255,255,255,0.18); color: #fff; }

.rb-format-select { display: none; }

/* ── LISTING PAGES (group / topic / format) ──────────── */
.rb-banner--compact { padding: clamp(32px, 4.5vw, 60px) 0 clamp(32px, 4.5vw, 56px); }
.rb-banner--compact .rb-banner-inner { max-width: 1500px; padding: 0 clamp(16px, 3.5vw, 64px); }
.rb-banner--compact .rb-banner-intro { max-width: none; }
.rb-banner--compact h1 { font-size: clamp(26px, 3.4vw, 44px); }
.rb-banner--compact .rb-banner-intro { margin-top: 18px; padding-top: 18px; }
.rb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.rb-breadcrumb a { color: rgba(200,216,235,0.7); text-decoration: none; transition: color .2s; }
.rb-breadcrumb a:hover { color: var(--rb-accent); }
.rb-breadcrumb i { font-size: 10px; color: rgba(200,216,235,0.45); }
.rb-breadcrumb span { color: #fff; }
.rb-card-topic {
  margin-bottom: 6px;
  color: #118af2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rb-list-block { margin-top: clamp(36px, 4vw, 56px); }
.rb-card-title ~ .rb-meta { margin-top: auto; }
.rb-card-excerpt {
  margin: 6px 0 14px;
  color: var(--rb-muted);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rb-popular-item .rb-card-topic { margin-bottom: 4px; }
.rb-top-companies {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 4.5vw, 64px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  background: linear-gradient(135deg, #010d1f 0%, #021830 40%, #042d5a 75%, #063a72 100%);
}
.rb-top-companies::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
}
.rb-top-companies::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100,180,255,0.5), transparent);
}
.rb-top-companies-heading,
.rb-top-companies-grid { position: relative; z-index: 1; }
.rb-top-companies-heading {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}
.rb-top-companies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rb-top-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.rb-top-company:hover { background: rgba(255,255,255,0.12); border-color: rgba(100,180,255,0.5); }
.rb-top-company-name { color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.rb-top-company-sub { color: #8fc8ff; font-size: 13px; font-weight: 600; }
.rb-top-company-sub i { margin-left: 4px; font-size: 11px; transition: transform .15s ease; }
.rb-top-company:hover .rb-top-company-sub i { transform: translateX(3px); }
.rb-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.rb-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1.5px solid var(--rb-navy);
  border-radius: 100px;
  background: #fff;
  color: var(--rb-navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.rb-more-btn:hover { background: var(--rb-navy); color: #fff; }
.rb-more-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.rb-more-btn i { font-size: 12px; }

.rb-list-cta { padding: clamp(32px, 4vw, 56px) 0 0; }

.rb-author-head { display: flex; align-items: center; gap: 20px; }
.rb-author-photo { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.18); object-fit: cover; }
.rb-author-photo--ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f5e9d, #4aa8ff); color: #fff; font-size: 36px; font-weight: 700; }
.rb-author-role { margin-top: 6px; color: #8fc8ff; font-size: 15px; font-weight: 600; }
.rb-author-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; opacity: .85; }
.rb-author-link:hover { opacity: 1; color: #fff; }
@media (max-width: 640px) {
  .rb-author-head { gap: 14px; }
  .rb-author-photo { width: 64px; height: 64px; }
}

/* ── TOPIC INDEX ─────────────────────────────────────── */
.rb-topic-index {
  padding: clamp(36px, 4vw, 56px) 0;
  background: #fff;
  border-top: 1px solid var(--rb-border);
}
.rb-topic-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 32px;
}
.rb-topic-index-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--rb-navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.rb-topic-index-group i { font-size: 11px; color: #118af2; transition: transform .15s ease; }
.rb-topic-index-group:hover i { transform: translateX(3px); }
.rb-topic-index-col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rb-border); }
.rb-topic-index-col li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rb-border);
  font-size: 14px;
}
.rb-topic-index-col li a { color: var(--rb-navy); text-decoration: none; }
.rb-topic-index-col li a:hover { color: #0a5fc0; }
.rb-topic-index-col li span { color: var(--rb-muted); font-size: 13px; }

/* ── SECTION LABELS & HEADINGS ───────────────────────── */
.rb-section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #118af2; margin-bottom: 8px;
}
.rb-featured-body .rb-section-label { margin-bottom: 6px; }
.rb-section-label i { color: #118af2; }
.rb-section-heading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700; color: var(--rb-navy);
  margin: 0 0 24px; letter-spacing: -0.3px;
}
.rb-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--rb-muted); margin-bottom: 10px;
}
.rb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rb-read-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 16px;
  font-size: 14px; font-weight: 600; color: #1f5e9d;
  transition: gap .2s;
}
a:hover .rb-read-more { gap: 12px; }

/* ── TOP SECTION ─────────────────────────────────────── */
.rb-top-section { padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 4vw, 56px); }
.rb-top-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.rb-main-col { min-width: 0; }

/* ── FEATURED CARD ───────────────────────────────────── */
.rb-featured-link { display: block; text-decoration: none; color: inherit; }
.rb-featured-card {
  background: var(--rb-card-bg);
  border: 1px solid var(--rb-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(4,43,86,0.06);
  transition: box-shadow .22s, transform .22s;
}
.rb-featured-card:hover {
  box-shadow: 0 8px 32px rgba(4,43,86,0.12);
  transform: translateY(-3px);
}
.rb-featured-img {
  width: 100%; overflow: hidden;
  aspect-ratio: 12 / 5;
}
.rb-featured-img img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.rb-img-ph {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(145deg, #edf2f8, #e2eaf5);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #94a3b8;
}
.rb-featured-body {
  padding: clamp(16px, 2.5vw, 28px);
  display: flex; flex-direction: column;
}
.rb-featured-title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700; color: var(--rb-navy);
  line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.2px;
}
.rb-featured-excerpt {
  font-size: 14px; line-height: 1.75; color: #4a6580; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── MOST POPULAR SIDEBAR ────────────────────────────── */
.rb-sidebar-col {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
}
.rb-sidebar-card {
  background: #fff;
  border: 1px solid var(--rb-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(4,43,86,0.10);
  overflow: hidden;
}
.rb-sidebar-header {
  background: linear-gradient(135deg, #010d1f 0%, #042b56 55%, #0d3f75 100%);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.rb-sidebar-header-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(17,138,242,0.18); border: 1px solid rgba(17,138,242,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #118af2;
}
.rb-sidebar-header-label {
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: 1px; text-transform: uppercase;
}
.rb-sidebar-header-sub {
  font-size: 12px; color: rgba(200,216,235,0.65); margin-top: 2px;
}
.rb-popular-list { display: flex; flex-direction: column; padding: 6px 0; }
.rb-popular-item {
  display: block;
  padding: 12px 18px;
  text-decoration: none; color: inherit;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.rb-popular-item + .rb-popular-item { border-top: 1px solid var(--rb-border); }
.rb-popular-item:hover {
  background: #f0f6ff;
  border-left-color: var(--rb-accent);
}
.rb-popular-item-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rb-popular-item-title {
  font-size: 15px; font-weight: 600; color: var(--rb-navy);
  line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.rb-popular-item:hover .rb-popular-item-title { color: #1f5e9d; }
.rb-popular-item-excerpt {
  font-size: 13px; line-height: 1.55; color: var(--rb-muted);
  margin: 3px 0 0; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-popular-item-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: var(--rb-muted);
}
.rb-popular-item-meta span { display: inline-flex; align-items: center; gap: 3px; }
.rb-popular-empty { padding: 20px 18px; font-size: 13px; color: #94a3b8; margin: 0; text-align: center; }

/* ── NEW BLOG TRENDS ─────────────────────────────────── */
.rb-latest-inline { margin-top: 40px; }

/* ── PAGINATION FADE ─────────────────────────────────── */
#rbLatestGrid, #rbWeeklyGrid, #rbPopularList {
  transition: opacity 0.15s ease;
}

/* ── BLOG CARD GRID ──────────────────────────────────── */
.rb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rb-card {
  display: flex; flex-direction: column;
  background: var(--rb-card-bg);
  border: 1px solid var(--rb-border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 6px rgba(4,43,86,0.04);
  transition: box-shadow .22s, transform .22s;
  min-width: 0;
}
.rb-card:hover {
  box-shadow: 0 8px 24px rgba(4,43,86,0.10);
  transform: translateY(-4px);
}
.rb-card-img-wrap {
  width: 100%; overflow: hidden; flex-shrink: 0;
  aspect-ratio: 12 / 5;
}
.rb-card-img-wrap img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.rb-card-img-wrap .rb-card-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #edf2f8, #e2eaf5);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #94a3b8;
}
.rb-card-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.rb-card-title {
  font-size: 15px; font-weight: 600; color: var(--rb-navy);
  line-height: 1.4; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-card .rb-read-more { font-size: 13px; }

/* ── WEEKLY PICKS ────────────────────────────────────── */
.rb-weekly { padding: 40px 0 clamp(40px, 5vw, 72px); }

/* ── SHARED PAGINATION ───────────────────────────────── */
#rbSharedPagination {
  margin-top: 32px;
}

/* ── EMPTY STATE ─────────────────────────────────────── */
.rb-empty {
  text-align: center; padding: 60px 20px; color: #94a3b8;
  grid-column: 1 / -1;
}
.rb-empty i { font-size: 38px; margin-bottom: 14px; display: block; }
.rb-empty p { font-size: 15px; margin: 0; }

/* ── PAGINATION ──────────────────────────────────────── */
.rb-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 32px; flex-wrap: wrap;
}
.rb-pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 9px; border: 1.5px solid var(--rb-border);
  background: #fff; color: var(--rb-navy);
  font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}
.rb-pg-btn:hover,
.rb-pg-btn.active { background: var(--rb-navy); color: #fff; border-color: var(--rb-navy); }
.rb-pg-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; font-size: 14px; color: var(--rb-muted);
}

/* ── RESPONSIVE ──────────────────────────────────────── */

/* Large desktop (1280–1500px) */
@media (max-width: 1500px) {
  .rb-top-grid { grid-template-columns: 1fr 280px; gap: 28px; }
}

/* Laptop (1024–1280px) — sidebar narrower, cards 2-col */
@media (max-width: 1280px) {
  .rb-top-grid { grid-template-columns: 1fr 260px; gap: 24px; }
  .rb-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rb-top-companies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet landscape (860–1024px) */
@media (max-width: 1024px) {
  .rb-top-grid { grid-template-columns: 1fr 240px; gap: 20px; }
}

/* Tablet portrait (768–860px) — sidebar drops below */
@media (max-width: 860px) {
  .rb-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .rb-sidebar-col { position: static; }
  .rb-popular-list { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 0; }
  .rb-popular-item { width: 50%; border-left: none; border-top: none; }
  .rb-popular-item:nth-child(n+3) { border-top: 1px solid var(--rb-border); }
  .rb-popular-item:nth-child(odd) { border-right: 1px solid var(--rb-border); }
}

/* Tablet (640–768px) */
@media (max-width: 768px) {
  .rb-top-section { padding: 32px 0; }
  .rb-weekly { padding: 32px 0 40px; }
  .rb-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rb-featured-body { padding: 18px 20px 22px; }
  .rb-featured-title { font-size: 18px; }
  .rb-section-heading { margin-bottom: 18px; }
  #rbSharedPagination { margin-top: 32px; padding-top: 24px; }
}

/* Large phone (480–640px) */
@media (max-width: 640px) {
  .rb-grid { grid-template-columns: 1fr; gap: 14px; }
  .rb-top-companies-grid { grid-template-columns: 1fr; }
  .rb-more-btn { width: 100%; justify-content: center; }
  .rb-popular-item { width: 100%; border-right: none; }

  .rb-banner-intro { margin-top: 16px; padding-top: 16px; }
  .rb-search-wrap { max-width: 100%; margin-top: 20px; }
  .rb-cat-chips { flex-wrap: nowrap; overflow-x: auto; padding: 12px 0; -webkit-overflow-scrolling: touch; }
  .rb-cat-chip { padding: 7px 14px; font-size: 12.5px; }
  .rb-nav-tab { padding: 14px 0 12px; font-size: 14px; }
  .rb-nav-row { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; }
  .rb-nav-row:last-child { padding-bottom: 12px; }
  .rb-format-links { display: none; }
  .rb-format-select {
    display: block;
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid var(--rb-border);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23042b56' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--rb-navy);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
  }
  .rb-format-select:focus,
  .rb-format-select:active { outline: none; box-shadow: none; border-color: var(--rb-border); }
  .rb-nav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: calc(-1 * clamp(16px, 3.5vw, 64px)); padding-right: clamp(16px, 3.5vw, 64px); }
}

/* Phone (380–480px) */
@media (max-width: 480px) {
  .rb-featured-body { padding: 14px 16px 18px; }
  .rb-featured-title { font-size: 17px; }
  .rb-featured-excerpt { font-size: 13px; }
  .rb-card-body { padding: 12px 14px 16px; }
  .rb-card-title { font-size: 14px; }
  .rb-pg-btn { min-width: 34px; height: 34px; font-size: 13px; }
  .rb-banner-tag { font-size: 10px; letter-spacing: 1.5px; }
  .rb-img-ph { min-height: 160px; font-size: 32px; }
  .rb-search-input { padding: 12px 40px 12px 40px; font-size: 13px; }
  .rb-search-icon { left: 14px; font-size: 13px; }
  .rb-search-clear { width: 24px; height: 24px; }
  .rb-suggest-thumb { width: 38px; height: 38px; }
  .rb-suggest-title { font-size: 13px; }
}

/* Small phone (<380px) */
@media (max-width: 380px) {
  .rb-top-grid { gap: 16px; }
  .rb-featured-body { padding: 12px 14px 16px; }
  .rb-featured-title { font-size: 16px; }
  .rb-card-body { padding: 10px 12px 14px; }
  .rb-read-more { font-size: 13px; }
  .rb-meta { gap: 6px; font-size: 11px; }
  .rb-pagination { gap: 4px; }
  .rb-pg-btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }
}

.rb-authors { padding: clamp(32px, 4vw, 56px) 0; }
.rb-authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rb-author-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--rb-border);
  border-radius: 14px;
  background: #fff;
  color: var(--rb-navy);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rb-author-card:hover { border-color: #95c3ec; box-shadow: 0 8px 24px rgba(4,43,86,0.08); color: var(--rb-navy); }
.rb-author-card img,
.rb-author-card-ph { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rb-author-card-ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f5e9d, #4aa8ff); color: #fff; font-size: 24px; font-weight: 700; }
.rb-author-card-name { font-size: 17px; font-weight: 700; }
.rb-author-card-role { margin-top: 2px; color: var(--rb-muted); font-size: 13.5px; }
.rb-author-card-bio { margin: 8px 0 0; color: #4a5b73; font-size: 13.5px; line-height: 1.6; }
.rb-author-card-count { display: inline-block; margin-top: 10px; color: #0a5fc0; font-size: 13px; font-weight: 700; }
