/*
    Theme Name: Background (Redesigned 2026)
    Description: Custom WordPress Theme for BackgroundCheckMe.org
    Version: 2.0.0
    Author: BackgroundCheckMe
*/

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
  --navy:        #1a2d6b;
  --navy-deep:   #111e4a;
  --navy-light:  #2a3f8a;
  --orange:      #f84000;
  --orange-warm: #d95520;
  --orange-light:#fff1eb;
  --white:       #ffffff;
  --gray-50:     #f8f9fc;
  --gray-100:    #f0f2f8;
  --gray-300:    #d0d5e8;
  --gray-500:    #7a84a6;
  --gray-700:    #3d4466;
  --text:        #1a1f3a;
  --shadow-sm:   0 2px 8px  rgba(26,45,107,0.08);
  --shadow-md:   0 8px 30px rgba(26,45,107,0.14);
  --shadow-lg:   0 20px 60px rgba(26,45,107,0.20);
  --radius:      8px;
  --radius-lg:   14px;
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { background-color: transparent; transition: all 0.2s ease; }
b, strong { font-weight: 700; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { margin-top: 0; line-height: 1.2; }

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */
.container { max-width: 1200px; margin: auto; padding: 0 24px; display: block; }
.section    { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

/* ══════════════════════════════════════════════
   STICKY BAR
══════════════════════════════════════════════ */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy-deep); border-top: 2px solid var(--orange);
  padding: 12px 20px; display: flex; align-items: center; justify-content: center;
  gap: 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.sticky-bar p { color: #fff; font-size: 15px; font-weight: 500; margin: 0; }
.sticky-bar p span { color: #ffcdb8; }
.sticky-cta {
  background: var(--orange); color: #fff !important; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: var(--radius);
  text-decoration: none !important; white-space: nowrap; transition: background 0.2s;
}
.sticky-cta:hover { background: #d63200; }
.sticky-close {
  position: absolute; right: 16px; background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 18px; cursor: pointer; line-height: 1;
}

/* ══════════════════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 50%, #2545a0 100%);
  position: relative; overflow: hidden;
}
.site-header::before {
  content: '';  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.short-header { padding-bottom: 0; }
.short-header::after { display: none; }

.topnav { position: relative; z-index: 2; padding: 20px 0; }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; }

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon  {
  width: 38px; height: 38px; background: var(--orange); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0;
}
.logo-img   { height: 40px; width: auto; }
.logo-text  { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.logo-accent { color: var(--orange); }

.main-nav .nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; }
.main-nav .nav-list li a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 15px; font-weight: 400;
  transition: color 0.2s;
}
.main-nav .nav-list li a:hover { color: #fff; }
.main-nav .nav-list .current-menu-item a { color: #fff; font-weight: 600; }
/* CTA nav item */
.main-nav .nav-list .menu-item-cta a,
.main-nav .nav-list li:last-child a {
  background: var(--orange); color: #fff !important; padding: 8px 18px;
  border-radius: var(--radius); font-weight: 600;
}
.main-nav .nav-list .menu-item-cta a:hover,
.main-nav .nav-list li:last-child a:hover { background: #d63200; }

.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.2s;
}

/* ══════════════════════════════════════════════
   HERO (FRONT PAGE)
══════════════════════════════════════════════ */
.site-header:not(.short-header)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 90px;
  background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); z-index: 1;
}
.hero-section { position: relative; z-index: 2; text-align: center; padding: 60px 24px 110px; max-width: 900px; margin: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 6px 14px; color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.8); max-width: 660px;
  margin: 0 auto 40px; line-height: 1.7; font-weight: 300;
}
.hero-search-wrap {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 16px;
  padding: 28px 28px 20px; max-width: 820px; margin: 0 auto;
}

/* ══════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════ */
.trust-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: 16px 0; position: relative; z-index: 3; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--gray-700); font-size: 14px; font-weight: 500; }
.trust-item i { color: var(--navy); font-size: 15px; }

/* ══════════════════════════════════════════════
   INNER PAGE HEADER
══════════════════════════════════════════════ */
.inner-page-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 48px 0 60px; position: relative; overflow: hidden;
}
.inner-page-header::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 50px;
  background: var(--white); clip-path: ellipse(55% 100% at 50% 100%);
}
.inner-page-header .container { position: relative; z-index: 1; }
.breadcrumb-wrap { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb-wrap a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb-wrap a:hover { color: #ffcdb8; }
.breadcrumb-wrap .breadcrumb_last { color: rgba(255,255,255,0.5); }
/* Yoast breadcrumb separator */
.breadcrumb-wrap .breadcrumb-separator { margin: 0 6px; }
.inner-page-title {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 46px);
  font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.15;
}
.inner-page-meta { color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 24px; }
.inner-page-meta span { margin-right: 16px; }
.inner-page-meta i { margin-right: 4px; }
.inner-search-wrap {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px; padding: 20px 24px; max-width: 700px;
}
.inner-search-label { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }

/* ══════════════════════════════════════════════
   SEARCH FORM OVERRIDES (works with ACF shortcode)
══════════════════════════════════════════════ */
div.search form div { display: inline-block; width: 25%; float: left; padding: 0 8px; position: relative; }
div.search form div input[type=text],
div.search form div select {
  width: 100%; height: 52px; background: #fff; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); color: var(--gray-700); font-size: 15px;
  padding-left: 42px; font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
div.search form div select { padding-left: 14px; }
div.search form div input[type=text]:focus,
div.search form div select:focus {
  border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(42,63,138,0.1);
}
div.search form div:first-child:before,
div.search form div:nth-child(2):before {
  content: '\f002'; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; color: var(--gray-500); font-size: 15px; top: 18px; left: 22px; z-index: 1;
}
div.search form div input[type=submit],
div.search form div button[type=submit] {
  width: 100%; height: 52px; background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
div.search form div input[type=submit]:hover,
div.search form div button[type=submit]:hover { background: #d63200; transform: translateY(-1px); }
div.search form:after { clear: both; content: ''; display: block; }
div.search form p {
  clear: left; font-size: 12px; text-align: right; color: rgba(255,255,255,0.4);
  padding-right: 8px; padding-top: 8px;
}
div.search form p a { color: rgba(255,255,255,0.4); }
div.search.inner-search form p { color: var(--gray-500); }
div.search.inner-search form p a { color: var(--gray-500); }

/* Sidebar search */
.sidebar div.search.inner-search { width: 100%; padding: 0; }
.sidebar div.search.inner-search:before,
.sidebar div.search.inner-search:after { display: none; }
.sidebar div.search form div { display: block; float: none; width: 100%; margin-bottom: 10px; }
.sidebar div.search form div input[type=text],
.sidebar div.search form div select {
  height: 44px; font-size: 14px; background: var(--gray-50); border-color: var(--gray-300);
}
.sidebar div.search form div input[type=submit],
.sidebar div.search form div button[type=submit] { height: 44px; font-size: 14px; }

/* ══════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════ */
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 10px; }
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; color: var(--navy-deep); margin-bottom: 14px; line-height: 1.2;
}
.section-sub { font-size: 18px; color: var(--gray-500); max-width: 560px; line-height: 1.65; margin-bottom: 0; }

/* ══════════════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.feature-card {
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-300); }
.feature-icon {
  width: 52px; height: 52px; background: var(--orange-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-icon i, .feature-icon img { font-size: 22px; color: var(--orange); max-height: 28px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; }
.feature-card p  { font-size: 15px; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* ══════════════════════════════════════════════
   REPORT SECTION
══════════════════════════════════════════════ */
.report-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.report-visual {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
  border-radius: 20px; padding: 36px; color: #fff; position: relative; overflow: hidden;
}
.report-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}
.report-mock-header {
  background: rgba(255,255,255,0.1); border-radius: 8px; padding: 14px 18px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.report-mock-header i { font-size: 22px; color: #ffcdb8; }
.report-mock-header strong { display: block; font-size: 14px; font-weight: 600; }
.report-mock-header span { font-size: 12px; color: rgba(255,255,255,0.55); }
.report-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px;
}
.report-row span { font-size: 13px; color: rgba(255,255,255,0.8); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.tag-clear  { background: rgba(72,199,116,0.2); color: #72e89a; }
.tag-warn   { background: rgba(248,64,0,0.25);   color: #ff8c6a; }
.tag-info   { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.report-ok   { color: #72e89a; margin-right: 8px; }
.report-warn { color: #ff8c6a; margin-right: 8px; }
.report-info { color: rgba(255,255,255,0.5); margin-right: 8px; }
.report-cta  { margin-top: 20px; text-align: center; }
.btn-report {
  display: inline-block; background: var(--orange); color: #fff; padding: 12px 24px;
  border-radius: var(--radius); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.2s;
}
.btn-report:hover { background: #d63200; color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
  font-size: 15px; color: var(--gray-700); line-height: 1.5;
}
.checklist li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; background: var(--orange);
  border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px; background-position: center; margin-top: 1px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; background: var(--orange);
  color: #fff !important; text-decoration: none !important; padding: 16px 32px;
  border-radius: var(--radius); font-size: 16px; font-weight: 700; margin-top: 28px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #d63200; transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   STATE MAP / GRID
══════════════════════════════════════════════ */
.states-section { padding: 80px 0 100px; background: var(--gray-50); }
.states-map { text-align: center; margin: 40px 0; }
.states-map-img { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 32px; }
.state-link {
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--radius);
  padding: 10px 14px; text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.state-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.state-link i { font-size: 9px; color: var(--orange); }
.state-link:hover i { color: #ffcdb8; }

/* ══════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700; color: #fff; margin-bottom: 12px;
}
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-cta-lg {
  display: inline-flex; align-items: center; gap: 10px; background: var(--orange);
  color: #fff !important; text-decoration: none !important; padding: 18px 40px;
  border-radius: var(--radius); font-size: 17px; font-weight: 700; transition: background 0.2s, transform 0.15s;
}
.btn-cta-lg:hover { background: #d63200; transform: translateY(-2px); }
.cta-note { margin-top: 14px; }
.cta-note a { color: rgba(255,255,255,0.35); font-size: 12px; }

/* ══════════════════════════════════════════════
   PAGE BODY (inner pages — two-col layout)
══════════════════════════════════════════════ */
.page-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin: 40px auto 100px;
  align-items: start;
  max-width: 1200px;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   ENTRY CONTENT
══════════════════════════════════════════════ */
.entry h1 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: var(--navy-deep); margin-bottom: 20px; }
.entry h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  color: var(--navy-deep); border-bottom: 3px solid var(--gray-100);
  padding-bottom: 12px; margin: 48px 0 18px; line-height: 1.3;
}
.entry h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.entry h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.entry p  { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin-bottom: 22px; }
.entry ul, .entry ol { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin-bottom: 22px; padding-left: 22px; }
.entry li { margin-bottom: 8px; }
.entry a  { color: var(--orange); text-decoration: none; font-weight: 500; }
.entry a:hover { text-decoration: underline; }
.entry strong { font-weight: 700; }
.entry img { max-width: 100%; border-radius: var(--radius); margin: 8px 0 24px; }

/* ── INLINE CTA (injected by pipeline) ── */
.inline-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 40px 0;
  display: flex; align-items: center; gap: 24px;
}
.inline-cta-icon { font-size: 32px; color: #ffcdb8; flex-shrink: 0; }
.inline-cta-text strong { display: block; color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.inline-cta-text p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0 !important; }
.btn-inline,
.entry .btn-inline,
.entry a.btn-inline {
  flex-shrink: 0; background: var(--orange); color:#fff!important;
  text-decoration:none!important; padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.2s;
}
.btn-inline:hover,
.entry a.btn-inline:hover { background: #d63200; }

/* ── STAT BOXES (injected by pipeline) ── */
.stat-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0; }
.stat-box {
  background: var(--gray-50); border: 1.5px solid var(--gray-100);
  border-radius: 10px; padding: 18px 16px; text-align: center;
}
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy-deep); line-height: 1; margin-bottom: 6px; }
.stat-box .label { font-size: 12px; color: var(--gray-500); }

/* ── TOC (injected by pipeline) ── */
.toc { background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 12px; padding: 22px 24px; margin-bottom: 36px; }
.toc strong { font-size: 15px; font-weight: 700; color: var(--navy-deep); display: block; margin-bottom: 12px; }
.toc ol { font-size: 14px; color: var(--gray-700); padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--orange); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── AFFILIATE CARD (top of inner pages) ── */
.affiliate-card { border: 2px solid var(--orange); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.affiliate-card-header {
  background: var(--orange); padding: 12px 20px; display: flex; align-items: center; gap: 10px;
}
.affiliate-card-header i { color: #fff; font-size: 15px; }
.affiliate-card-header strong { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.affiliate-card-body { padding: 22px; background: var(--orange-light); }
.service-logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.service-logo span { color: var(--orange); }
.stars { color: #f4a800; font-size: 15px; margin-bottom: 3px; }
.rating-text { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.affiliate-card-body p { font-size: 14px; color: var(--gray-700); margin-bottom: 14px; line-height: 1.6; }
.btn-affiliate {
  display: block; background: var(--orange); color: #fff !important; text-decoration: none !important;
  text-align: center; padding: 14px; border-radius: var(--radius); font-size: 15px; font-weight: 700;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em;
}
.btn-affiliate:hover { background: #d63200; transform: translateY(-1px); }
.affiliate-note { font-size: 11px; color: var(--gray-500); text-align: center; margin-top: 8px; }

/* ── POST THUMBNAIL ── */
.post-thumbnail { margin-bottom: 28px; }
.post-thumbnail img { border-radius: var(--radius-lg); }

/* ── BOTTOM SEARCH ── */
.bottom-search-wrap {
  background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 28px 24px; margin-top: 48px;
}
.bottom-search-wrap .inner-search-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); margin-bottom: 14px; }

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar { position: sticky; top: 24px; }
.sidebar-widget {
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.sidebar-widget h4 i { color: var(--orange); }
.sidebar-note { font-size: 11px; color: var(--gray-500); text-align: center; margin-top: 8px; }
.sidebar-note a { color: var(--gray-500); text-decoration: underline; }

/* Sidebar promo */
.sidebar-promo { border-color: var(--orange) !important; background: var(--orange-light) !important; text-align: center; }
.promo-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.promo-logo span { color: var(--orange); }
.promo-stars { color: #f4a800; font-size: 14px; margin-bottom: 3px; }
.promo-rating { font-size: 12px; color: var(--gray-500); margin-bottom: 14px; }
.promo-features { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.promo-features li { font-size: 13px; color: var(--gray-700); padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; gap: 7px; }
.promo-features li:last-child { border: none; }
.promo-features li i { color: var(--orange); font-size: 12px; }

/* Related list */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--gray-100); padding-bottom: 8px; margin-bottom: 8px; }
.related-list li:last-child { border: none; padding: 0; margin: 0; }
.related-list li a {
  font-size: 14px; color: var(--orange); text-decoration: none;
  display: flex; align-items: center; gap: 7px; line-height: 1.4;
}
.related-list li a:hover { text-decoration: underline; }
.related-list li a i { font-size: 9px; color: var(--gray-300); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   REVIEW COMPONENT (existing)
══════════════════════════════════════════════ */
.post-review-options-wrap { margin: 50px 0; border: 1px solid var(--orange); border-radius: var(--radius-lg); overflow: hidden; }
.pr-description { background: var(--gray-50); display: flex; flex-wrap: wrap; padding: 6% 8%; align-items: center; }
.prd-left { flex: 1; padding-right: 4%; }
.btn-visit {
  background: var(--orange); color: #fff !important; font-size: 15px; display: inline-block;
  padding: 12px 28px; font-weight: 700; text-decoration: none !important; border-radius: var(--radius); transition: background 0.2s;
}
.btn-visit:hover { background: #d63200; }
.rating-star i { font-style: normal; font-size: 18px; color: #e0e0e0; }
.rating-star.\\35  i:nth-child(-n+5),
.rating-star.\\34  i:nth-child(-n+4),
.rating-star.\\33  i:nth-child(-n+3),
.rating-star.\\32  i:nth-child(-n+2),
.rating-star.\\31  i:nth-child(1) { color: #ffc600; }
.total-rating { font-size: 17px; font-weight: 700; color: var(--text); padding-top: 8px; }
.total-rating i { color: #ffc600; font-style: normal; }
.post-review-options-wrap table { padding: 6% 8%; border: 0; width: 100%; }
.post-review-options-wrap table td { border: 0; padding: 0 0 10px 0; }
.post-review-options-wrap table td:last-child { text-align: right; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: var(--navy-deep); padding: 56px 0 100px; text-align: center; }
.footer-logo-wrap { margin-bottom: 24px; }
.logo-img--footer { height: 36px; filter: brightness(0) invert(1); }
.social-icons ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; justify-content: center; gap: 8px; }
.social-icons ul li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius); background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); font-size: 15px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.social-icons ul li a:hover { background: var(--orange); color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-nav ul li a:hover { color: #fff; }
.footer-nav.secondary ul li a { color: rgba(255,255,255,0.3); font-size: 12px; text-decoration: underline; }
.footer-copyright p { color: rgba(255,255,255,0.3); font-size: 12px; line-height: 1.7; }
.footer-copyright a { color: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════
   AD SPACES
══════════════════════════════════════════════ */
.ad-space-1 { display: block; margin: 50px auto; width: 900px; max-width: 100%; }
.ad-space-2, .ad-space-3, .ad-space-4, .ad-space-5 { margin-bottom: 20px; }

/* ══════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════ */
.breadcrumb-container { padding-top: 20px; font-size: 14px; }
.breadcrumb-container a { color: var(--orange); text-decoration: none; }

/* ══════════════════════════════════════════════
   CONTENT TABLE / EZ-TOC COMPAT
══════════════════════════════════════════════ */
.content-table, #ez-toc-container {
  background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 12px;
  padding: 20px 22px; margin-bottom: 32px; width: 100%;
}
.content-table strong, #ez-toc-container .ez-toc-title {
  color: var(--navy-deep); font-size: 15px; font-weight: 700; display: block; margin-bottom: 10px;
}
.content-table ol, #ez-toc-container ol { font-size: 14px; line-height: 1.75; color: var(--gray-700); }

/* ══════════════════════════════════════════════
   STATE PAGES LIST (sidebar)
══════════════════════════════════════════════ */
.state-pages ul, ul.lcp_catlist {
  background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: var(--radius);
  padding: 14px 14px; list-style: none; font-size: 14px; line-height: 1.65; margin-bottom: 20px;
}
.state-pages ul li, ul.lcp_catlist li {
  margin-bottom: 5px; border-bottom: 1px solid var(--gray-100); padding-bottom: 5px;
}
.state-pages ul li:last-child, ul.lcp_catlist li:last-child { border: none; padding: 0; margin: 0; }
.state-pages ul li a, ul.lcp_catlist li a { color: var(--orange); text-decoration: none; font-size: 14px; }
.state-pages ul li a:hover, ul.lcp_catlist li a:hover { text-decoration: underline; }
.state-pages ul li a:before, ul.lcp_catlist li a:before {
  content: '\f101'; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--gray-300); font-size: 10px; margin-right: 6px;
}

/* ══════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════ */
#post-404 { text-align: center; padding: 80px 0; }
#post-404 h1 { color: var(--orange); font-size: 100px; margin: 40px 0; }
#post-404 h2 { color: var(--navy-deep); }
#post-404 p a { color: var(--orange); }

/* ══════════════════════════════════════════════
   SELECTION COLOUR
══════════════════════════════════════════════ */
::selection         { background: var(--orange); color: #fff; }
::-webkit-selection { background: var(--orange); color: #fff; }
::-moz-selection    { background: var(--orange); color: #fff; }


/* ══════════════════════════════════════════════
   SLICKNAV COMPLETE SUPPRESSION
   (New theme uses .mobile-menu-toggle instead)
══════════════════════════════════════════════ */
.slicknav_menu,
.slicknav_btn,
.slicknav_nav,
#menu { 
  display: none !important; 
}

/* ══════════════════════════════════════════════
   HERO SEARCH FORM — WordPress shortcode output
   Forces the ACF/plugin form to match new design
══════════════════════════════════════════════ */
.hero-search-wrap {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 24px 24px 16px;
  max-width: 820px;
  margin: 0 auto;
}
/* Make the form inside the hero look right regardless of plugin output */
.hero-search-wrap form,
.hero-search-wrap div.search {
  margin: 0 !important;
  padding: 0 !important;
}
.hero-search-wrap div.search form div {
  display: inline-block;
  width: 25%;
  float: left;
  padding: 0 6px;
  position: relative;
}
.hero-search-wrap div.search form div input[type=text],
.hero-search-wrap div.search form div select {
  height: 52px !important;
  background: #fff !important;
  border: 1.5px solid var(--gray-300) !important;
  border-radius: var(--radius) !important;
  font-size: 15px !important;
  font-family: 'DM Sans', sans-serif !important;
}
.hero-search-wrap div.search form div input[type=submit],
.hero-search-wrap div.search form div button[type=submit] {
  height: 52px !important;
  background: var(--orange) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: 'DM Sans', sans-serif !important;
}
.hero-search-wrap div.search form p {
  font-size: 11px !important;
  color: rgba(255,255,255,0.35) !important;
  text-align: right !important;
  padding-right: 6px !important;
  padding-top: 8px !important;
  clear: both !important;
}
.hero-search-wrap div.search form p a {
  color: rgba(255,255,255,0.35) !important;
}
/* Inner page search form */
.inner-search-wrap div.search,
.inner-search-wrap .inner-search {
  padding: 0 !important;
  width: 100% !important;
}
.inner-search-wrap div.search:before,
.inner-search-wrap div.search:after,
.inner-search-wrap .inner-search:before,
.inner-search-wrap .inner-search:after {
  display: none !important;
}
.inner-search-wrap div.search form div {
  width: 25%;
}

/* Mobile: stack form fields */
@media (max-width: 767px) {
  .hero-search-wrap div.search form div,
  .inner-search-wrap div.search form div {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 10px !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hero-search-wrap div.search form div,
  .inner-search-wrap div.search form div {
    width: 50% !important;
    margin-bottom: 10px !important;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-boxes    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .main-nav .nav-list { display: none; }
  .mobile-menu-toggle { display: flex; }
  .main-nav.is-open .nav-list { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); padding: 12px 0; z-index: 100; }
  .main-nav.is-open .nav-list li a { padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff; }
  .topnav { position: relative; }

  .page-body { grid-template-columns: 1fr; gap: 32px; }
  .sidebar   { position: static; }

  .report-inner  { grid-template-columns: 1fr; }
  .inline-cta    { flex-direction: column; text-align: center; }

  div.search form div { width: 50%; margin-bottom: 12px; }

  .trust-bar-inner { gap: 16px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stat-boxes    { grid-template-columns: 1fr 1fr; }
  .state-grid    { grid-template-columns: repeat(2, 1fr); }

  div.search form div { width: 100%; float: none; display: block; }
  .hero-section  { padding-bottom: 80px; }
  .hero-search-wrap { padding: 20px 16px 16px; }

  .inner-page-title { font-size: 26px; }
  .sticky-bar p     { display: none; }
  .sticky-bar       { justify-content: center; }
}

/* ── SPONSORED LABELS ─────────────────────────── */
.cta-sponsored {
  flex-basis: 100%; border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px; padding-top: 8px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.cta-sponsored a { color: rgba(255,255,255,0.3); text-decoration: underline; }
.affiliate-disc {
  font-size: 10px; color: var(--gray-500); text-align: center;
  margin-top: 6px; line-height: 1.5;
}
.affiliate-disc a { color: var(--gray-500); text-decoration: underline; font-weight:400; }

/* Sponsored note under bottom search form */
.sponsored-note {
  font-size: 11px; color: var(--gray-500); text-align: right;
  margin-top: 8px; margin-bottom: 0;
}
.sponsored-note a { color: var(--gray-500); text-decoration: underline; }
.sponsored-note i { margin-right: 3px; }

/* Post thumbnail */
.post-thumbnail { margin-bottom: 28px; }
.post-thumbnail img { border-radius: var(--radius-lg); width: 100%; }

/* entry-body inherits .entry styles */
.entry-body h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy-deep); border-bottom: 3px solid var(--gray-100); padding-bottom: 12px; margin: 48px 0 18px; line-height: 1.3; }
.entry-body h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.entry-body h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.entry-body p  { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin-bottom: 22px; }
.entry-body ul, .entry-body ol { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin-bottom: 22px; padding-left: 22px; }
.entry-body li { margin-bottom: 8px; }
.entry-body a  { color: var(--orange); text-decoration: none; font-weight: 500; }
.entry-body a:hover { text-decoration: underline; }
.entry-body img { max-width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.entry-body strong { font-weight: 700; }
/* Ensure buttons inside entry-body keep white text */
.entry-body .btn-affiliate,
.entry-body a.btn-affiliate,
.entry-body .btn-inline,
.entry-body a.btn-inline,
.entry-body .btn-inline-cta,
.entry-body a.btn-inline-cta {
  color: #fff !important;
  text-decoration: none !important;
}
/* Ensure .inline-cta inside entry-body displays properly */
.entry-body .inline-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg); padding: 22px 28px 12px; margin: 40px 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.entry-body .inline-cta-text strong { color: #fff !important; }
.entry-body .inline-cta-text p { color: rgba(255,255,255,0.65) !important; margin: 0; }
/* Stat boxes inside content */
.entry-body .stat-boxes { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 28px 0; }
.entry-body .stat-box { background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 10px; padding: 16px; text-align: center; }
.entry-body .stat-box .num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy-deep); line-height: 1; margin-bottom: 5px; }
.entry-body .stat-box .label { font-size: 11px; color: var(--gray-500); }
/* TOC inside content */
.entry-body .toc { background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: 12px; padding: 20px 22px; margin-bottom: 32px; }
.entry-body .toc strong { font-size: 15px; font-weight: 700; color: var(--navy-deep); display: block; margin-bottom: 10px; }
.entry-body .toc ol { font-size: 14px; color: var(--gray-700); padding-left: 18px; margin: 0; }
.entry-body .toc li { margin-bottom: 5px; }
.entry-body .toc a { color: var(--orange); text-decoration: none; }
/* Breadcrumbs on inner pages */
.breadcrumb-wrap .breadcrumb_last { font-weight: 400; }
/* EZ-TOC plugin compat */
#ez-toc-container { width: 100% !important; max-width: 100% !important; background: var(--gray-50) !important; border: 1.5px solid var(--gray-100) !important; border-radius: 12px !important; padding: 20px 22px !important; }
#ez-toc-container .ez-toc-title { font-size: 15px !important; font-weight: 700 !important; color: var(--navy-deep) !important; }
#ez-toc-container ul, #ez-toc-container ol { font-size: 14px !important; color: var(--gray-700) !important; }
#ez-toc-container a { color: var(--orange) !important; text-decoration: none !important; }

/* Responsive fixes for state pages */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; }
  .entry-body .stat-boxes { grid-template-columns: repeat(2,1fr) !important; }
  .entry-body .inline-cta { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════
   BCM NATIVE SEARCH FORM (fallback)
══════════════════════════════════════════════ */
.bcm-search-form { width: 100%; }

/* Row layout (header/inner pages) */
.bcm-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.bcm-search-form--sidebar .bcm-field { margin-bottom: 9px; }

/* Fields */
.bcm-field { position: relative; }
.bcm-field i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); font-size: 13px; pointer-events: none; z-index: 1;
}
.bcm-field input,
.bcm-field select {
  width: 100%; height: 46px;
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0 12px 0 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text);
  outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.bcm-field select { padding-left: 12px; }
.bcm-field input:focus,
.bcm-field select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,63,138,.1);
}
/* White inputs inside dark header */
.inner-page-header .bcm-field input,
.inner-page-header .bcm-field select,
.inner-search-wrap .bcm-field input,
.inner-search-wrap .bcm-field select {
  border-color: rgba(255,255,255,.25) !important;
}
/* Sidebar inputs */
.sidebar-widget .bcm-field input,
.sidebar-widget .bcm-field select {
  height: 42px; background: var(--gray-50); font-size: 13px;
}

/* Submit button */
.bcm-search-btn {
  height: 46px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 0 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s;
  display: flex; align-items: center; gap: 7px;
}
.bcm-search-btn:hover { background: #d63200; transform: translateY(-1px); }
.sidebar-widget .bcm-search-btn { width: 100%; height: 42px; justify-content: center; margin-top: 2px; }

/* Sponsored note */
.bcm-sponsored {
  font-size: 11px; color: rgba(255,255,255,.35);
  text-align: right; margin: 7px 0 0; line-height: 1.4;
}
.bcm-sponsored a { color: rgba(255,255,255,.35); text-decoration: underline; }
.sidebar-widget .bcm-sponsored,
.bottom-search-wrap .bcm-sponsored { color: var(--gray-500); }
.sidebar-widget .bcm-sponsored a,
.bottom-search-wrap .bcm-sponsored a { color: var(--gray-500); }

/* Responsive */
@media (max-width: 767px) {
  .bcm-row { grid-template-columns: 1fr !important; }
  .bcm-search-btn { width: 100%; justify-content: center; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .bcm-row { grid-template-columns: 1fr 1fr !important; }
}

/* ══════════════════════════════════════════════
   SUPPRESS OLD THEME ELEMENTS ON STATE PAGES
══════════════════════════════════════════════ */

/* Hide old inline h1 title that some posts echo in content */
.entry-body > h1:first-child,
.entry-body > .entry > h1:first-child {
  display: none;
}

/* Hide old "California Public Records" banner images (post thumbnails) */
.page-header-img,
.post-thumbnail { display: none !important; }

/* Hide old orange bracket decorations (braces images from old theme) */
.search.inner-search:before,
.search.inner-search:after,
.affordable-details:before,
.affordable-details:after { display: none !important; }

/* Hide old been-verified / third-party review boxes embedded in content */
/* These show as bordered boxes with external logos */
.entry-body .post-review-options-wrap { display: none; }

/* ── Old content element overrides ── */
/* Remove old h1 headings inside content that duplicate the header title */
.entry-body h1 { font-size: 0 !important; line-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }

/* Old image styling fixes */
.entry-body img.aligncenter,
.entry-body img.alignnone {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius) !important;
  display: block !important;
  margin: 0 auto 24px !important;
}

/* Make old embedded images (like CA Courts, DMV logos) look clean */
.entry-body img {
  max-width: 100% !important;
  border-radius: var(--radius) !important;
}

/* Old content h2 fixes — some old posts use bold instead of real h2 */
.entry-body h2 strong,
.entry-body h3 strong {
  font-weight: inherit !important;
}

/* Fix old content table styling */
.entry-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.entry-body table td,
.entry-body table th {
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.entry-body table th {
  background: var(--navy-deep);
  color: #fff;
  font-weight: 600;
}
.entry-body table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* Fix old content blockquotes */
.entry-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 14px 20px;
  background: var(--gray-50);
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
}

/* Ensure .entry a links are orange unless inside a button */
.entry-body a:not(.btn-affiliate):not(.btn-inline):not(.btn-inline-cta) {
  color: var(--orange) !important;
  font-weight: 500;
}

/* Fix old sponsored search text in content */
.entry-body .your-privacy,
.entry-body p.sponsored-note-old {
  font-size: 12px !important;
  color: var(--gray-500) !important;
}

/* ── Inline CTA styling inside entry-body (for pipeline-generated content) ── */
.entry-body .inline-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-light) 100%) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 28px 12px !important;
  margin: 40px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.entry-body .inline-cta-text strong { color: #fff !important; display: block; margin-bottom: 4px; }
.entry-body .inline-cta-text p { color: rgba(255,255,255,.65) !important; font-size: 13px !important; margin: 0 !important; }
.entry-body .cta-sponsored {
  flex-basis: 100% !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  font-size: 10px !important;
  color: rgba(255,255,255,.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.entry-body .cta-sponsored a { color: rgba(255,255,255,.3) !important; text-decoration: underline !important; }

/* ── Stat boxes in pipeline-generated content ── */
.entry-body .stat-boxes {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 28px 0 !important;
}
.entry-body .stat-box {
  background: var(--gray-50) !important;
  border: 1.5px solid var(--gray-100) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  text-align: center !important;
}
.entry-body .stat-box .num {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--navy-deep) !important;
  line-height: 1 !important;
  margin-bottom: 5px !important;
}
.entry-body .stat-box .label { font-size: 11px !important; color: var(--gray-500) !important; }

/* ── TOC in pipeline-generated content ── */
.entry-body .toc {
  background: var(--gray-50) !important;
  border: 1.5px solid var(--gray-100) !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  margin-bottom: 32px !important;
}
.entry-body .toc strong { font-size: 15px !important; font-weight: 700 !important; color: var(--navy-deep) !important; display: block !important; margin-bottom: 10px !important; }
.entry-body .toc ol { font-size: 14px !important; color: var(--gray-700) !important; padding-left: 18px !important; }
.entry-body .toc a { color: var(--orange) !important; text-decoration: none !important; }

@media (max-width: 767px) {
  .entry-body .stat-boxes { grid-template-columns: 1fr 1fr !important; }
  .entry-body .inline-cta { flex-direction: column !important; text-align: center !important; }
}

/* Hide old BeenVerified / competitor review boxes everywhere */
.post-review-options-wrap,
.pr-description,
.prd-left,
.prd-right,
.btn-visit { display: none !important; }

/* ── SIDEBAR WIDTH FIX ─────────────────────────────────── */
/* Ensure sidebar never goes full width */
.page-body {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}
/* Sidebar search form stacked properly */
.sidebar .bcm-search-form--sidebar .bcm-row { 
  display: block !important; 
}
.sidebar .bcm-field { 
  width: 100% !important; 
  margin-bottom: 10px !important; 
}
.sidebar .bcm-field input,
.sidebar .bcm-field select {
  width: 100% !important;
}
.sidebar .bcm-search-btn {
  width: 100% !important;
  justify-content: center !important;
}
/* Bottom search wrap — proper width inside content column */
.bottom-search-wrap {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 40px 0;
}
.bottom-search-wrap .bcm-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr auto !important;
  gap: 8px !important;
}
@media (max-width: 900px) {
  .page-body {
    grid-template-columns: 1fr !important;
  }
  .sidebar { position: static !important; }
  .bottom-search-wrap .bcm-row {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PHP SITE SPECIFIC ADDITIONS
═══════════════════════════════════════════════════════════ */

/* Category listing grid */
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:24px}
.article-card{background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden}
.article-card-img img{width:100%;height:180px;object-fit:cover}
.article-card-body{padding:18px}
.article-cat-badge{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--orange)}
.article-card-body h3{font-size:16px;font-weight:700;color:var(--navy);margin:8px 0;line-height:1.35}
.article-card-body h3 a{color:inherit;text-decoration:none}
.article-card-body h3 a:hover{color:var(--orange)}
.article-card-body p{font-size:14px;color:var(--gray-700);margin:0 0 12px}
.article-meta-row{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--gray-500)}
.read-more-link{margin-left:auto;color:var(--orange);font-weight:600;text-decoration:none;font-size:13px}
.cat-header{margin-bottom:28px}
.cat-header h2{font-family:'Playfair Display',serif;font-size:28px;color:var(--navy);margin-bottom:6px}
.cat-header p{color:var(--gray-500);font-size:15px}

/* County grid */
.county-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:20px}
.county-card{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius);padding:14px;text-decoration:none;color:var(--navy);font-size:13px;font-weight:600;transition:all .2s}
.county-card:hover{border-color:var(--orange);color:var(--orange)}
.county-card i:first-child{color:var(--orange);font-size:14px}
.county-card i:last-child{margin-left:auto;color:var(--gray-500);font-size:11px}
.county-card span{flex:1}

/* Blog post cards */
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden}
.post-img img{width:100%;height:160px;object-fit:cover}
.post-body{padding:18px}
.post-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.post-body h3{font-size:16px;font-weight:700;color:var(--navy);margin:8px 0;line-height:1.35}
.post-body h3 a{color:inherit;text-decoration:none}
.post-body h3 a:hover{color:var(--orange)}
.post-body p{font-size:14px;color:var(--gray-500);margin-bottom:12px}
.read-more{font-size:13px;font-weight:600;color:var(--orange);text-decoration:none}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px}
.page-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1.5px solid var(--gray-100);border-radius:var(--radius);color:var(--gray-700);text-decoration:none;font-size:14px;font-weight:600}
.page-btn.active,.page-btn:hover{background:var(--orange);color:#fff;border-color:var(--orange)}

/* Sidebar widgets */
.sidebar-widget{background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius-lg);padding:20px;margin-bottom:20px}
.sidebar-widget h4{font-size:14px;font-weight:700;color:var(--navy);margin:0 0 14px;display:flex;align-items:center;gap:8px}
.sidebar-promo{text-align:center;background:var(--orange-light);border:2px solid var(--orange)}
.promo-logo{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:var(--navy)}
.promo-logo span{color:var(--orange)}
.promo-stars{color:var(--orange);font-size:18px;margin:5px 0}
.promo-tagline{font-size:13px;color:var(--gray-500);margin-bottom:12px}
.promo-features{list-style:none;padding:0;text-align:left;margin-bottom:14px}
.promo-features li{font-size:13px;color:var(--gray-700);padding:3px 0;display:flex;align-items:center;gap:8px}
.promo-features i{color:#16a34a;font-size:12px}
.btn-sidebar-cta{display:block;background:var(--orange);color:#fff;text-align:center;padding:12px;border-radius:var(--radius);font-weight:700;text-decoration:none;font-size:14px}
.btn-sidebar-cta:hover{background:#d63200}
.sidebar-note{font-size:11px;margin-top:8px;text-align:center}
.sidebar-note a{color:var(--gray-500);text-decoration:underline}

/* Related articles */
.related-list{list-style:none;padding:0;margin:0}
.related-list li{padding:8px 0;border-bottom:1px solid var(--gray-100)}
.related-list li:last-child{border:none}
.related-cat{font-size:10px;font-weight:700;text-transform:uppercase;display:block;margin-bottom:2px}
.related-list a{font-size:13px;color:var(--navy);text-decoration:none;line-height:1.4}
.related-list a:hover{color:var(--orange)}

/* FAQ grid */
.faq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.faq-item{background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius-lg);padding:22px}
.faq-item h3{font-size:16px;font-weight:700;color:var(--navy);margin-bottom:10px}
.faq-item p{font-size:14px;color:var(--gray-500);margin:0;line-height:1.7}

/* Buttons */
.btn-outline{display:inline-block;border:2px solid var(--orange);color:var(--orange);padding:10px 24px;border-radius:var(--radius);font-weight:700;text-decoration:none;font-size:14px}
.btn-outline:hover{background:var(--orange);color:#fff}

/* Nav dropdown */
.main-nav{display:flex;list-style:none;margin:0;padding:0;gap:4px;align-items:center}
.main-nav li{position:relative}
.main-nav a{color:rgba(255,255,255,.85);text-decoration:none;font-size:15px;font-weight:400;padding:8px 14px;border-radius:6px;display:block}
.main-nav a:hover,.main-nav a.active{color:#fff;background:rgba(255,255,255,.1)}
.has-dropdown{position:relative}
.dropdown{display:none;position:absolute;top:100%;left:0;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-md);padding:8px 0;min-width:200px;z-index:100}
.dropdown li{list-style:none}
.dropdown a{display:block;padding:9px 16px;color:var(--navy);background:none;text-decoration:none;font-size:14px}
.dropdown a:hover{background:var(--gray-50);color:var(--orange)}
.has-dropdown:hover .dropdown{display:block}
.nav-cta{background:var(--orange);color:#fff !important;font-weight:700;padding:9px 18px;border-radius:var(--radius);font-size:14px;text-decoration:none;white-space:nowrap;display:flex;align-items:center;gap:6px}
.nav-cta:hover{background:#d63200 !important}

/* Mobile nav */
.mobile-nav{display:none;list-style:none;padding:12px 0;margin:0;border-top:1px solid rgba(255,255,255,.1)}
.mobile-nav.open{display:block}
.mobile-nav li a{display:block;color:rgba(255,255,255,.85);padding:10px 0;font-size:15px;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.07)}
.mobile-menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px}
.mobile-menu-toggle span{display:block;width:24px;height:2px;background:#fff;border-radius:2px;transition:all .3s}

/* Article page layout */
.page-body{display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:start;padding:40px 0 80px}
.entry-body h2{font-family:'Playfair Display',serif;font-size:24px;color:var(--navy);margin:32px 0 14px;padding-bottom:10px;border-bottom:2px solid var(--gray-100)}
.entry-body h3{font-size:18px;color:var(--navy);margin:24px 0 10px}
.entry-body p{margin-bottom:16px;line-height:1.75}
.entry-body ul,.entry-body ol{padding-left:22px;margin-bottom:16px}
.entry-body li{margin-bottom:6px;line-height:1.7}
.entry-body img{border-radius:var(--radius);margin:16px 0}
.entry-body table{width:100%;border-collapse:collapse;margin:20px 0}
.entry-body th{background:var(--navy);color:#fff;padding:10px 14px;text-align:left;font-size:13px}
.entry-body td{padding:10px 14px;border-bottom:1px solid var(--gray-100);font-size:14px}
.entry-body tr:hover td{background:var(--gray-50)}

/* Bottom search wrap */
.bottom-search-wrap{background:var(--gray-50);border:1.5px solid var(--gray-100);border-radius:var(--radius-lg);padding:22px 24px;margin:40px 0}

/* Inner page header */
.inner-page-header{padding:28px 0 32px}
.inner-title{font-family:'Playfair Display',serif;font-size:clamp(22px,3vw,36px);color:#fff;margin:6px 0 10px;line-height:1.2}
.inner-search-wrap{margin-top:18px}
.breadcrumb{font-size:13px;color:rgba(255,255,255,.6);margin-bottom:6px}
.breadcrumb a{color:rgba(255,255,255,.7);text-decoration:none}
.breadcrumb a:hover{color:#fff}
.breadcrumb span{margin:0 6px}
.article-meta{font-size:13px;color:rgba(255,255,255,.6);display:flex;gap:16px;margin-bottom:6px}
.article-meta i{margin-right:4px}

/* Report section */
.report-section{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.report-preview{background:var(--navy-deep);border-radius:var(--radius-lg);padding:24px;color:#fff}
.report-header{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-weight:700;font-size:15px}
.report-rows{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.report-row{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.06);border-radius:6px;padding:10px 14px;font-size:14px}
.badge-green{background:rgba(22,163,74,.2);color:#4ade80;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}
.badge-orange{background:rgba(248,64,0,.2);color:#fb923c;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}
.badge-blue{background:rgba(59,130,246,.2);color:#60a5fa;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}
.btn-report{display:block;background:var(--orange);color:#fff;text-align:center;padding:13px;border-radius:var(--radius);font-weight:700;text-decoration:none;margin-top:12px}
.btn-report:hover{background:#d63200}
.powered-by{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--orange)}
.report-features{list-style:none;padding:0;margin:14px 0 20px}
.report-features li{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--gray-700);padding:5px 0}
.report-features i{color:#16a34a;margin-top:2px;flex-shrink:0}
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:var(--orange);color:#fff;padding:14px 28px;border-radius:var(--radius);font-weight:700;text-decoration:none;font-size:15px}
.btn-primary:hover{background:#d63200}

/* State grid */
.state-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:24px}
.state-link{display:flex;align-items:center;gap:6px;padding:9px 12px;background:#fff;border:1.5px solid var(--gray-100);border-radius:var(--radius);font-size:13px;color:var(--navy);text-decoration:none;transition:all .2s}
.state-link:hover{border-color:var(--orange);color:var(--orange)}
.state-link i{color:var(--orange);font-size:10px}

/* Trust bar */
.trust-bar{background:var(--navy-deep);border-bottom:1px solid rgba(255,255,255,.08)}
.trust-inner{display:flex;justify-content:center;gap:32px;padding:12px 0;flex-wrap:wrap}
.trust-item{color:rgba(255,255,255,.7);font-size:13px;display:flex;align-items:center;gap:8px}
.trust-item i{color:var(--orange)}

/* CTA band */
.cta-band{background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 100%);padding:60px 0}
.cta-band-inner{display:flex;align-items:center;justify-content:space-between;gap:40px}
.cta-band-text h2{font-family:'Playfair Display',serif;font-size:32px;color:#fff;margin:0 0 8px}
.cta-band-text p{color:rgba(255,255,255,.7);font-size:16px;margin:0}
.btn-cta-lg{display:inline-flex;align-items:center;gap:10px;background:var(--orange);color:#fff;padding:16px 32px;border-radius:var(--radius);font-weight:700;font-size:16px;text-decoration:none;white-space:nowrap}
.btn-cta-lg:hover{background:#d63200}
.cta-note{font-size:12px;color:rgba(255,255,255,.5);margin-top:10px}
.cta-note a{color:rgba(255,255,255,.6)}

/* Footer */
.site-footer{background:var(--navy-deep);color:rgba(255,255,255,.7);padding:60px 0 0}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-logo{height:40px;width:auto;margin-bottom:12px}
.footer-desc{font-size:13px;line-height:1.7;margin-bottom:12px}
.footer-copy{font-size:12px;opacity:.5}
.footer-col h4{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#fff;margin:0 0 14px}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:8px}
.footer-col a{color:rgba(255,255,255,.6);text-decoration:none;font-size:13px}
.footer-col a:hover{color:var(--orange)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:20px 0}
.footer-bottom p{font-size:12px;color:rgba(255,255,255,.4);margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.footer-bottom a{color:rgba(255,255,255,.5)}
.footer-bottom a:hover{color:var(--orange)}

@media(max-width:991px){
  .main-nav,.nav-cta{display:none}
  .mobile-menu-toggle{display:flex}
  .page-body{grid-template-columns:1fr}
  .article-grid,.posts-grid{grid-template-columns:1fr 1fr}
  .county-grid{grid-template-columns:repeat(2,1fr)}
  .faq-grid{grid-template-columns:1fr}
  .report-section{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr 1fr}
  .state-grid{grid-template-columns:repeat(3,1fr)}
  .cta-band-inner{flex-direction:column;text-align:center}
}
@media(max-width:600px){
  .article-grid,.posts-grid,.county-grid,.state-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .hero-search-wrap .bcm-row{grid-template-columns:1fr}
}
