/* Modern, accessible, CWV-optimized Site Shell (Header, Sidebar, Footer) for RipAndScam.com
   Scoped cleanly under .ras-shell-* so it can be previewed safely and rolled out site-wide */

body {
  background: #f1f5f9;
  color: #0f172a;
}
#content {
  margin-top: 24px !important;
  padding-bottom: 36px;
}
header.ras-site-header + br,
header.ras-site-header + br + br,
header.ras-site-header + script + script + br,
header.ras-site-header + script + script + br + br {
  display: none;
}
@media (max-width: 767px) {
  #content {
    margin-top: 16px !important;
  }
}

/* =========================================================
   1. MODERN STICKY HEADER & UTILITY BAR
   ========================================================= */
.ras-site-header {
  position: sticky;
  top: 0;
  z-index: 950;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

/* Top Utility Bar */
.ras-topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ras-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.ras-topbar-note {
  color: #cbd5e1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ras-topbar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ras-top-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 4px 2px 11px;
  margin: 0;
}
.ras-top-search:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
}
.ras-top-search-input {
  width: 170px;
  height: 26px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
}
.ras-top-search-input::placeholder {
  color: #cbd5e1;
}
.ras-top-search-btn {
  height: 26px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.ras-top-search-btn:hover { background: #0369a1; }
.ras-translate-wrap {
  min-height: 26px;
  display: flex;
  align-items: center;
}
.ras-translate-wrap .goog-te-gadget-simple {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 11.5px !important;
}
@media (max-width: 767px) {
  .ras-topbar-note { display: none; }
  .ras-topbar-tools { width: 100%; justify-content: space-between; }
  .ras-top-search { flex: 1 1 160px; }
  .ras-top-search-input { width: 100%; }
}

/* Main Navigation Bar */
.ras-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.ras-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 6px 0;
  position: relative;
}
.ras-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none !important;
}
.ras-brand-logo {
  width: 210px;
  height: 55px;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .ras-brand-logo {
    width: 172px;
    height: 45px;
  }
}

.ras-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 20px;
  cursor: pointer;
}
.ras-nav-toggle:hover {
  background: #e0f2fe;
  border-color: #0369a1;
  color: #0369a1;
}

.ras-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.ras-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.ras-nav-item {
  position: relative;
  list-style: none !important;
  list-style-image: none !important;
}
.ras-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ras-nav-link:hover,
.ras-nav-item.is-open > .ras-nav-link {
  background: #f0f9ff;
  color: #0369a1 !important;
}
.ras-nav-caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.ras-nav-item.is-open > .ras-nav-link .ras-nav-caret {
  transform: rotate(180deg);
}

/* Header Report CTA Button */
.ras-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 9px 15px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ras-nav-cta:hover {
  background: #b91c1c;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Modern Dropdown Panels */
.ras-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  padding: 8px;
  list-style: none !important;
  margin: 0;
  display: none;
  z-index: 980;
}
/* Invisible hover bridge so moving the cursor smoothly into the dropdown never breaks hover */
.ras-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -8px;
  right: -8px;
  height: 14px;
}
.ras-dropdown-mega {
  min-width: 470px;
  max-height: 410px;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
}
.ras-nav-item.is-open > .ras-dropdown {
  display: block;
}
.ras-nav-item.is-open > .ras-dropdown-mega {
  display: grid;
}
@media (min-width: 992px) {
  .ras-nav-item:hover > .ras-dropdown {
    display: block;
  }
  .ras-nav-item:hover > .ras-dropdown-mega {
    display: grid;
  }
}
.ras-dropdown li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
}
.ras-dropdown a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}
.ras-dropdown a:hover {
  background: #e0f2fe;
  color: #0369a1 !important;
}
.ras-dropdown-more {
  grid-column: 1 / -1;
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  padding-top: 4px;
}
.ras-dropdown-more a {
  font-weight: 700;
  color: #0369a1 !important;
  text-align: center;
}

/* Mobile Navigation Drawer */
@media (max-width: 1199px) {
  .ras-nav-link { padding: 8px 8px; font-size: 13.5px; }
  .ras-nav-cta { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 991px) {
  .ras-nav-toggle { display: inline-flex; }
  .ras-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    right: -15px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    max-height: 80vh;
    overflow-y: auto;
  }
  .ras-nav-menu.is-open { display: flex; }
  .ras-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .ras-nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 15px;
  }
  .ras-dropdown,
  .ras-dropdown-mega {
    position: static;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-width: 0;
    max-height: 260px;
    overflow-y: auto;
    margin: 4px 0 8px 0;
  }
  .ras-nav-item.is-open > .ras-dropdown-mega {
    display: block;
  }
  .ras-nav-cta {
    margin: 10px 0 0 0;
    width: 100%;
    padding: 11px 16px;
    font-size: 14.5px;
  }
}

/* Scroll to top button */
.ras-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ras-scroll-top.is-visible { display: inline-flex; }
.ras-scroll-top:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

/* =========================================================
   2. MODERN SIDEBAR WIDGETS
   ========================================================= */
.ras-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ras-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ras-widget-head {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  color: #ffffff;
  padding: 11px 15px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ras-widget-body {
  padding: 12px 14px;
}
.ras-side-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ras-side-list li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
}
.ras-side-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b !important;
  text-decoration: none !important;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}
.ras-side-list a::before {
  content: "\203A";
  color: #0369a1;
  font-weight: 800;
  flex: 0 0 auto;
}
.ras-side-list a:hover {
  background: #f0f9ff;
  color: #0369a1 !important;
}
.ras-side-list a.ras-side-alert {
  color: #b91c1c !important;
  font-weight: 600;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  margin-top: 3px;
}
.ras-side-list a.ras-side-alert::before { color: #dc2626; }
.ras-side-list a.ras-side-alert:hover {
  background: #fee2e2;
  color: #991b1b !important;
}

.ras-side-donate {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.ras-side-donate img {
  max-width: 190px;
  height: auto;
  border-radius: 8px;
  display: inline-block;
}

/* Sidebar Blog News */
.ras-side-news {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ras-side-news li {
  list-style: none !important;
  list-style-image: none !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.ras-side-news li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.ras-side-news-link {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a !important;
  text-decoration: none !important;
  margin-bottom: 3px;
}
.ras-side-news-link:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}
.ras-side-news-date {
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}
.ras-side-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.14s ease;
}
.ras-side-more-btn:hover {
  background: #e0f2fe;
}

/* Sidebar Scrollable Scam Types with Quick Filter */
.ras-side-filter {
  width: 100%;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 8px;
}
.ras-side-filter:focus {
  outline: none;
  border-color: #0369a1;
  background: #ffffff;
}
.ras-side-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.ras-side-scroll li[hidden] { display: none !important; }

/* Sidebar Info Highlight Box */
.ras-side-info-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 4px;
}
.ras-side-info-text {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}
.ras-side-info-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 12px 0;
}

/* =========================================================
   3. MODERN DARK SLATE FOOTER (WCAG AAA CONTRAST)
   ========================================================= */
.ras-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 32px;
  border-top: 4px solid #12A3DF;
}
.ras-footer-top {
  padding: 36px 0 28px;
}
.ras-footer-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ras-footer-brand-copy {
  max-width: 560px;
}
.ras-footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}
.ras-footer-brand-name span { color: #38bdf8; }
.ras-footer-brand-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.ras-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ras-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ras-footer-social-link:hover {
  background: #0284c7;
  transform: translateY(-2px);
}
.ras-footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.ras-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1199px) {
  .ras-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ras-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 420px) {
  .ras-footer-grid { grid-template-columns: 1fr; }
}

.ras-footer-col-title {
  margin: 0 0 11px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.ras-footer-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ras-footer-list li {
  list-style: none !important;
  list-style-image: none !important;
  margin: 0;
}
.ras-footer-list a {
  font-size: 13px;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color 0.12s ease;
}
.ras-footer-list a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}
.ras-footer-list a.ras-footer-alert {
  color: #fda4af !important;
  font-weight: 700;
}
.ras-footer-list a.ras-footer-alert:hover {
  color: #ffffff !important;
}

.ras-footer-bottom {
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  font-size: 13px;
  color: #94a3b8;
}
.ras-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ras-footer-bottom a {
  color: #cbd5e1 !important;
  text-decoration: none;
}
.ras-footer-bottom a:hover {
  color: #38bdf8 !important;
  text-decoration: underline;
}

/* Compact Scam-Awareness Video Guide Strip (Lightweight, Zero YouTube iframes) */
.ras-video-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 26px 0;
}
.ras-video-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.ras-video-strip-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ras-video-strip-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #0369a1 !important;
  text-decoration: none !important;
}
.ras-video-strip-all:hover { text-decoration: underline !important; }
.ras-video-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 991px) {
  .ras-video-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ras-video-mini-grid { grid-template-columns: 1fr; }
}
.ras-video-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 11px;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ras-video-mini-card:hover {
  border-color: #0369a1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.1);
  transform: translateY(-1px);
}
.ras-play-dot {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
.ras-video-mini-card:hover .ras-play-dot {
  background: #dc2626;
  color: #ffffff;
}
.ras-video-mini-body {
  min-width: 0;
  flex: 1 1 auto;
}
.ras-video-mini-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 2px;
}
.ras-video-mini-card:hover .ras-video-mini-name {
  color: #0369a1;
}
.ras-video-mini-sub {
  display: block;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.35;
}
