/* RSG Insights Page: page styles, moved from the old plugin template. Menu and footer rules removed (they live in base.css). */
:root {
  --rsg-black:    #000000;
  --rsg-ink:      #1A1E2D;
  --rsg-white:    #FFFFFF;
  --rsg-paper:    #F2F2F2;
  --rsg-red:      #BE3431;
  --rsg-red-soft: #D55F5B;
  --rsg-grey-700: #595959;
  --rsg-grey-500: #888888;
  --rsg-grey-100: #E3E3E3;
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font) !important; font-weight: 300;
  color: var(--rsg-black); background: var(--rsg-white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* NAV */

/* HERO */
.rsg-hero {
  background: var(--rsg-black); padding: 140px 56px 80px;
  position: relative; overflow: hidden;
}
.rsg-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 64px 64px;
}
.rsg-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.rsg-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rsg-hero-eyebrow-line { width: 40px; height: 2px; background: var(--rsg-red); }
.rsg-hero-eyebrow-text { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); }
.rsg-hero-headline { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.02; color: var(--rsg-white); letter-spacing: -0.02em; }
.rsg-hero-sub { font-size: 16px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 400px; margin-top: 16px; }
.rsg-hero-scan-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rsg-red), transparent); opacity: 0.4; }

/* FILTER BAR */
.rsg-filter-bar { background: var(--rsg-ink); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0 56px; display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.rsg-filter-btn {
  padding: 16px 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  border: none; background: none; cursor: pointer;
  font-family: var(--font); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.rsg-filter-btn:hover { color: rgba(255,255,255,0.8); }
.rsg-filter-btn.active { color: var(--rsg-white); border-bottom-color: var(--rsg-red); }

/* POSTS SECTION */
.rsg-posts-section { background: var(--rsg-paper); padding: 72px 56px; min-height: 60vh; }
.rsg-posts-inner { max-width: 1200px; margin: 0 auto; }
.rsg-posts-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rsg-grey-500); margin-bottom: 40px; }

/* POST GRID */
.rsg-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

/* POST CARD */
.rsg-post-card { background: var(--rsg-white); display: flex; flex-direction: column; transition: background 0.2s; }
.rsg-post-card:hover { background: #f8f8f8; }
.rsg-post-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--rsg-ink); position: relative; }
.rsg-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rsg-post-card:hover .rsg-post-thumb img { transform: scale(1.03); }
.rsg-post-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--rsg-ink); }
.rsg-post-thumb-placeholder svg { opacity: 0.15; }
.rsg-post-body { padding: 28px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.rsg-post-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 10px; }
.rsg-post-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--rsg-black); margin-bottom: 12px; }
.rsg-post-excerpt { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--rsg-grey-700); flex: 1; }
.rsg-post-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rsg-grey-100); }
.rsg-post-date { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsg-grey-500); }
.rsg-post-link { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsg-red); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.rsg-post-link:hover { gap: 10px; }

/* NO POSTS */
.rsg-no-posts { padding: 80px 0; text-align: center; }
.rsg-no-posts-headline { font-size: 24px; font-weight: 700; color: var(--rsg-black); margin-bottom: 12px; }
.rsg-no-posts-sub { font-size: 15px; font-weight: 300; color: var(--rsg-grey-500); }

/* PAGINATION */
.rsg-pagination { margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.rsg-page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--rsg-grey-700);
  background: var(--rsg-white); border: 1px solid var(--rsg-grey-100);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.rsg-page-btn:hover { background: var(--rsg-grey-100); color: var(--rsg-black); }
.rsg-page-btn.active { background: var(--rsg-red); color: #fff; border-color: var(--rsg-red); }
.rsg-page-btn.prev-next { width: auto; padding: 0 16px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* CTA STRIP */
.rsg-cta-strip { background: var(--rsg-black); padding: 80px 56px; text-align: center; position: relative; overflow: hidden; }
.rsg-cta-strip-headline { font-size: clamp(24px, 3vw, 40px); font-weight: 900; color: var(--rsg-white); letter-spacing: -0.02em; margin-bottom: 16px; }
.rsg-cta-strip-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 440px; margin: 0 auto 32px; line-height: 1.65; }
.rsg-btn-primary { display: inline-block; background: var(--rsg-red); color: #fff; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; }
.rsg-btn-primary:hover { background: var(--rsg-red-soft); }

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rsg-hero { padding: 120px 24px 64px; }
  .rsg-filter-bar { padding: 0 24px; }
  .rsg-posts-section { padding: 56px 24px; }
  .rsg-post-grid { grid-template-columns: 1fr 1fr; }
  .rsg-cta-strip { padding: 64px 24px; }}
@media (max-width: 640px) {
  .rsg-hero { padding: 100px 16px 56px; }
  .rsg-filter-bar { padding: 0 16px; }
  .rsg-posts-section { padding: 40px 16px; }
  .rsg-post-grid { grid-template-columns: 1fr; }
  .rsg-cta-strip { padding: 56px 16px; }}

/* ── Search box (was the separate RSG Blog Search plugin) ── */
#rsg-search-wrap {
    margin-bottom: 32px;
}
#rsg-search-box {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    max-width: 520px;
}
#rsg-search-icon {
    padding: 0 12px 0 14px;
    color: #555;
    font-size: 15px;
    pointer-events: none;
    flex-shrink: 0;
}
#rsg-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e8e8e8;
    font-size: 15px;
    padding: 13px 0;
    font-family: inherit;
    letter-spacing: 0.01em;
}
#rsg-search-input::placeholder { color: #555; }
#rsg-search-clear {
    background: none;
    border: none;
    color: #555;
    font-size: 17px;
    cursor: pointer;
    padding: 0 14px;
    line-height: 1;
    display: none;
    flex-shrink: 0;
    transition: color 0.15s;
}
#rsg-search-clear:hover { color: #bbb; }
#rsg-search-status {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    min-height: 18px;
    letter-spacing: 0.01em;
}
#rsg-search-status.rsg-error { color: #c0392b; }
