/**
 * SlashNews Theme Master Stylesheet (Pro 2.0)
 * SlashWeb Network
 * Ultra-Fast & Responsive Modern Arabic News Design System
 */

/* -------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
------------------------------------------------------------- */
:root {
  --sw-primary: #e31205;
  --sw-primary-hover: #c40f04;
  --sw-primary-soft: rgba(227, 18, 5, 0.08);
  --sw-secondary: #0f172a;
  
  /* Light Mode Palette */
  --sw-bg: #f8fafc;
  --sw-card-bg: #ffffff;
  --sw-card-bg-subtle: #f1f5f9;
  --sw-text: #0f172a;
  --sw-text-muted: #64748b;
  --sw-border: #e2e8f0;
  --sw-border-subtle: #f1f5f9;
  --sw-header-bg: #ffffff;
  --sw-topbar-bg: #0f172a;
  --sw-topbar-text: #ffffff;
  --sw-footer-bg: #0f172a;
  --sw-footer-text: #94a3b8;
  --sw-footer-heading: #ffffff;
  
  /* Layout & Geometry */
  --sw-radius-sm: 6px;
  --sw-radius: 12px;
  --sw-radius-lg: 16px;
  --sw-radius-pill: 9999px;
  
  /* Elevation & Shadows */
  --sw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sw-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --sw-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
  --sw-shadow-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.14);
  
  /* Typography */
  --sw-font-main: "Tajawal", "Greta", "Cairo", system-ui, -apple-system, sans-serif;
  --sw-container-width: 1200px;
  --sw-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Palette */
html.dark, body.dark {
  --sw-bg: #0b0f19;
  --sw-card-bg: #131b2e;
  --sw-card-bg-subtle: #1c2640;
  --sw-text: #f8fafc;
  --sw-text-muted: #94a3b8;
  --sw-border: #1e293b;
  --sw-border-subtle: #192237;
  --sw-header-bg: #0e1526;
  --sw-topbar-bg: #070a12;
  --sw-topbar-text: #cbd5e1;
  --sw-footer-bg: #070a12;
  --sw-footer-text: #64748b;
  --sw-footer-heading: #f8fafc;
  --sw-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --sw-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------
   2. GLOBAL RESETS & BASE
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--sw-font-main);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

html.dark {
  color-scheme: dark;
  scrollbar-color: #334155 #0b0f19;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sw-bg);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

body {
  background-color: var(--sw-bg);
  color: var(--sw-text);
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  position: relative;
  transition: color var(--sw-transition);
}

html.sw-theme-toggling,
html.sw-theme-toggling body {
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--sw-transition);
}

a:hover {
  color: var(--sw-primary);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--sw-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* -------------------------------------------------------------
   2.1 MAIN BOX LAYOUT STYLES (sw-site-wrapper)
------------------------------------------------------------- */
.sw-site-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all var(--sw-transition);
}

/* Style 1: Full Width Fluid (Default) */
.sw-site-wrapper.style1 {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

/* Style 2: Modern Wide Box (1240px) */
.sw-site-wrapper.style2 {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--sw-card-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--sw-border);
}

.sw-site-wrapper.style2 .container {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Style 3: Classic Medium Box (1120px) */
.sw-site-wrapper.style3 {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--sw-card-bg);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--sw-border);
}

.sw-site-wrapper.style3 .container {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* Style 4: Classic Rounded Card (980px) */
.sw-site-wrapper.style4 {
  max-width: 980px;
  margin: 0 auto;
  background: var(--sw-card-bg);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--sw-border);
}

.sw-site-wrapper.style4 .container {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* In Dark Mode for Boxed Layouts */
html.dark .sw-site-wrapper.style2,
html.dark .sw-site-wrapper.style3,
html.dark .sw-site-wrapper.style4 {
  background: var(--sw-card-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Responsive Fallbacks on Small Screens */
@media (max-width: 1280px) {
  .sw-site-wrapper.style2 {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
}

@media (max-width: 1160px) {
  .sw-site-wrapper.style3 {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .sw-site-wrapper.style4 {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
}

/* -------------------------------------------------------------
   3. PRO TOPBAR & BREAKING NEWS TICKER
------------------------------------------------------------- */
.sw-topbar {
  background: #0f172a !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 0 !important;
  width: 100% !important;
  line-height: 1.5 !important;
}

.sw-topbar-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 15px !important;
}

.sw-ticker-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  min-width: 0 !important;
  text-align: right !important;
  direction: rtl !important;
}

.sw-ticker-badge {
  background: #991b1b !important;
  background-color: #991b1b !important;
  color: #ffffff !important;
  padding: 4px 14px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border-radius: var(--sw-radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  letter-spacing: 0.3px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.4) !important;
}

.sw-ticker-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: swPulse 1.5s infinite;
}

@keyframes swPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
  100% { opacity: 1; transform: scale(1); }
}

.sw-ticker-content {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  text-align: right !important;
  direction: rtl !important;
  flex: 1 1 auto !important;
}

.sw-ticker-content a {
  color: #f8fafc !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.sw-ticker-content a:hover {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

.sw-topbar-end {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
}

.sw-topbar-date {
  color: #e2e8f0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.sw-social-mini {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.sw-social-mini a {
  color: rgba(255, 255, 255, 0.8) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 13px !important;
  transition: all var(--sw-transition) !important;
  text-decoration: none !important;
}

.sw-social-mini a:hover {
  background: var(--sw-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   4. SITE HEADER & MAIN NAVIGATION
------------------------------------------------------------- */
.sw-header {
  background: var(--sw-header-bg);
  border-bottom: 1px solid var(--sw-border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color var(--sw-transition), border-color var(--sw-transition);
  box-shadow: var(--sw-shadow-sm);
}

.sw-reading-progress {
  position: absolute;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: var(--sw-primary);
  z-index: 1000;
  transition: width 0.1s linear;
}

.sw-header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 20px !important;
}

.sw-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 24px;
  font-weight: 900;
  color: var(--sw-text);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  text-decoration: none;
}

.sw-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sw-logo-light {
  display: inline-flex !important;
  align-items: center;
}

.sw-logo-dark {
  display: none !important;
  align-items: center;
}

/* In Dark Mode */
html.dark .sw-logo-light,
body.dark .sw-logo-light {
  display: none !important;
}

html.dark .sw-logo-dark,
body.dark .sw-logo-dark {
  display: inline-flex !important;
}

/* Desktop Navigation Menu (Active on >= 993px) */
@media (min-width: 993px) {
  .sw-nav-desktop {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
  }

  .sw-nav-desktop ul,
  .sw-nav-desktop .sw-menu-items,
  .sw-nav-desktop .menu,
  .sw-nav-desktop div > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .sw-nav-desktop li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .sw-nav-desktop li a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 9px 15px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--sw-text) !important;
    border-radius: var(--sw-radius-sm) !important;
    transition: all var(--sw-transition) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .sw-nav-desktop li:hover > a,
  .sw-nav-desktop li.current-menu-item > a,
  .sw-nav-desktop li.current_page_item > a,
  .sw-nav-desktop li.current-category-ancestor > a,
  .sw-nav-desktop li.current-menu-ancestor > a,
  .sw-nav-desktop li.current-menu-parent > a,
  .sw-nav-desktop li.current-post-parent > a,
  .sw-nav-desktop li.active > a {
    color: var(--sw-primary) !important;
    background: var(--sw-primary-soft) !important;
  }

  /* Submenu Dropdowns */
  .sw-nav-desktop ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 210px !important;
    background: var(--sw-card-bg) !important;
    border: 1px solid var(--sw-border) !important;
    border-radius: var(--sw-radius) !important;
    box-shadow: var(--sw-shadow-lg) !important;
    padding: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all var(--sw-transition) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
  }

  .sw-nav-desktop li:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .sw-nav-desktop ul.sub-menu li {
    display: block !important;
    width: 100% !important;
  }

  .sw-nav-desktop ul.sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--sw-text) !important;
    border-radius: var(--sw-radius-sm) !important;
    transition: all var(--sw-transition) !important;
  }

  .sw-nav-desktop ul.sub-menu li a:hover,
  .sw-nav-desktop ul.sub-menu li.current-menu-item > a {
    background: var(--sw-primary-soft) !important;
    color: var(--sw-primary) !important;
    padding-right: 18px !important;
  }
}

/* -------------------------------------------------------------
   HEADER COLOR MODES (Dark / Light / Auto)
------------------------------------------------------------- */
/* Dark Header (Fixed Dark or Dark Mode Auto) */
.sw-header.dark-color,
html.dark .sw-header:not(.light-color) {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sw-header.dark-color .sw-logo-link,
html.dark .sw-header:not(.light-color) .sw-logo-link {
  color: #ffffff !important;
}

.sw-header.dark-color .sw-logo-light {
  display: none !important;
}
.sw-header.dark-color .sw-logo-dark {
  display: inline-flex !important;
}

/* Nav Links in Dark Header */
.sw-header.dark-color .sw-nav-desktop li a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li a {
  color: #f1f5f9 !important;
}

/* Active Category and Menu Link in Dark Header (High Contrast Crisp White on Primary) */
.sw-header.dark-color .sw-nav-desktop li.current-menu-item > a,
.sw-header.dark-color .sw-nav-desktop li.current_page_item > a,
.sw-header.dark-color .sw-nav-desktop li.current-category-ancestor > a,
.sw-header.dark-color .sw-nav-desktop li.current-menu-ancestor > a,
.sw-header.dark-color .sw-nav-desktop li.current-menu-parent > a,
.sw-header.dark-color .sw-nav-desktop li.current-post-parent > a,
.sw-header.dark-color .sw-nav-desktop li.active > a,
.sw-header.dark-color .sw-nav-desktop li:hover > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current-menu-item > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current_page_item > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current-category-ancestor > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current-menu-ancestor > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current-menu-parent > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.current-post-parent > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li.active > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop li:hover > a {
  color: #ffffff !important;
  background: var(--sw-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown Submenu in Dark Header */
.sw-header.dark-color .sw-nav-desktop ul.sub-menu,
html.dark .sw-header:not(.light-color) .sw-nav-desktop ul.sub-menu {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.sw-header.dark-color .sw-nav-desktop ul.sub-menu li a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop ul.sub-menu li a {
  color: #cbd5e1 !important;
}

.sw-header.dark-color .sw-nav-desktop ul.sub-menu li a:hover,
.sw-header.dark-color .sw-nav-desktop ul.sub-menu li.current-menu-item > a,
html.dark .sw-header:not(.light-color) .sw-nav-desktop ul.sub-menu li a:hover,
html.dark .sw-header:not(.light-color) .sw-nav-desktop ul.sub-menu li.current-menu-item > a {
  background: var(--sw-primary) !important;
  color: #ffffff !important;
}

/* Header Buttons in Dark Header */
.sw-header.dark-color .sw-btn-icon,
html.dark .sw-header:not(.light-color) .sw-btn-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

.sw-header.dark-color .sw-btn-icon:hover,
html.dark .sw-header:not(.light-color) .sw-btn-icon:hover {
  background: var(--sw-primary) !important;
  border-color: var(--sw-primary) !important;
  color: #ffffff !important;
}

/* Light Header (Fixed Light or Light Mode Auto) */
.sw-header.light-color,
html:not(.dark) .sw-header.auto {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.sw-header.light-color .sw-logo-link,
html:not(.dark) .sw-header.auto .sw-logo-link {
  color: #0f172a !important;
}

.sw-header.light-color .sw-logo-light {
  display: inline-flex !important;
}
.sw-header.light-color .sw-logo-dark {
  display: none !important;
}

.sw-header.light-color .sw-nav-desktop li a,
html:not(.dark) .sw-header.auto .sw-nav-desktop li a {
  color: #1e293b !important;
}

.sw-header.light-color .sw-btn-icon,
html:not(.dark) .sw-header.auto .sw-btn-icon {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

.sw-header.light-color .sw-btn-icon:hover,
html:not(.dark) .sw-header.auto .sw-btn-icon:hover {
  background: var(--sw-primary) !important;
  border-color: var(--sw-primary) !important;
  color: #ffffff !important;
}

/* Header Actions */
.sw-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.sw-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sw-border);
  background: var(--sw-card-bg);
  color: var(--sw-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all var(--sw-transition);
}

.sw-btn-icon:hover {
  border-color: var(--sw-primary);
  color: var(--sw-primary);
  transform: scale(1.05);
}

.sw-mobile-menu-toggle {
  display: none;
}

/* -------------------------------------------------------------
   5. POST CARDS, HERO & GRIDS DESIGN
------------------------------------------------------------- */
.sw-post-card {
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  overflow: hidden;
  box-shadow: var(--sw-shadow);
  transition: all var(--sw-transition);
  display: flex;
  flex-direction: column;
}

.sw-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sw-shadow-hover);
  border-color: var(--sw-primary);
}

.sw-post-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sw-card-bg-subtle);
}

.sw-post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sw-post-card:hover .sw-post-thumb-wrap img {
  transform: scale(1.05);
}

.sw-post-cat-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sw-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--sw-radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: all var(--sw-transition);
}

.sw-post-cat-pill:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.sw-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sw-post-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--sw-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-post-title a,
.sw-post-title a:visited,
.sw-post-title a:active,
.sw-post-title a:focus,
.title-inner a,
.title-inner a:visited,
.title-inner a:active,
.title-inner a:focus,
.featured-title a,
.featured-title a:visited,
.featured-title a:active,
.list-title a,
.list-title a:visited,
.list-title a:active,
.sw-post-item .title-inner a,
.sw-post-item .title-inner a:visited,
.sw-post-card .sw-post-title a,
.sw-post-card .sw-post-title a:visited,
.sw-post-card .sw-post-title a:active,
.sw-post-card .sw-post-title a:focus {
  color: var(--sw-text) !important;
  text-decoration: none !important;
  transition: color var(--sw-transition);
}

.sw-post-title a:hover,
.sw-post-card:hover .sw-post-title a,
.title-inner a:hover,
.sw-post-item:hover .title-inner a,
.featured-title a:hover,
.list-title a:hover {
  color: var(--sw-primary) !important;
}

/* Specific Dark Mode Visited & Active Overrides */
html.dark .sw-post-title a,
html.dark .sw-post-title a:visited,
html.dark .sw-post-title a:active,
html.dark .sw-post-title a:focus,
html.dark .title-inner a,
html.dark .title-inner a:visited,
html.dark .title-inner a:active,
html.dark .title-inner a:focus,
html.dark .featured-title a,
html.dark .featured-title a:visited,
html.dark .featured-title a:active,
html.dark .list-title a,
html.dark .list-title a:visited,
html.dark .list-title a:active,
html.dark .sw-trending-title a,
html.dark .sw-trending-title a:visited,
html.dark .sw-trending-title a:active,
html.dark .sw-hero-title a,
html.dark .sw-hero-title a:visited,
html.dark .sw-post-card .sw-post-title a,
html.dark .sw-post-card .sw-post-title a:visited,
html.dark .sw-post-card .sw-post-title a:active,
html.dark .sw-post-item .title-inner a,
html.dark .sw-post-item .title-inner a:visited,
html.dark .sw-archive-posts-area h3 a,
html.dark .sw-archive-posts-area h3 a:visited,
html.dark article h1 a, html.dark article h1 a:visited,
html.dark article h2 a, html.dark article h2 a:visited,
html.dark article h3 a, html.dark article h3 a:visited,
html.dark article h4 a, html.dark article h4 a:visited,
body.dark a:visited {
  color: #f8fafc !important;
  text-decoration: none !important;
}

html.dark .sw-post-title a:hover,
html.dark .sw-post-card:hover .sw-post-title a,
html.dark .title-inner a:hover,
html.dark .sw-post-item:hover .title-inner a,
html.dark .featured-title a:hover,
html.dark .list-title a:hover,
html.dark .sw-trending-title a:hover,
html.dark .sw-trending-item:hover .sw-trending-title a,
html.dark .sw-archive-posts-area h3 a:hover,
html.dark article h1 a:hover,
html.dark article h2 a:hover,
html.dark article h3 a:hover {
  color: var(--sw-primary) !important;
}

.sw-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sw-text-muted);
  margin-top: auto;
}

.sw-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Grids Layout */
.sw-grid {
  display: grid;
  gap: 20px;
}

.sw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Hero Modern Grid */
.sw-hero-section {
  margin-top: 24px !important;
  margin-bottom: 30px !important;
  width: 100%;
}

.sidebar.sidebar-home_1,
#sidebar-home_1,
.sidebar-home_1 {
  padding-top: 24px;
}

.sw-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.sw-hero-main {
  position: relative;
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--sw-shadow-lg);
}

.sw-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sw-hero-main:hover img {
  transform: scale(1.04);
}

.sw-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.98) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sw-hero-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
}

.sw-hero-title a,
.sw-hero-title a:visited,
.sw-hero-title a:active,
.sw-hero-title a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sw-hero-title a:hover {
  color: #fca5a5 !important;
}

.sw-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Sidebar List Item (Trending numbered) */
.sw-trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sw-trending-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  transition: all var(--sw-transition);
}

.sw-trending-item:hover {
  transform: translateX(-4px);
  border-color: var(--sw-primary);
  box-shadow: var(--sw-shadow);
}

.sw-rank-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sw-primary) 0%, #991b1b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(227, 18, 5, 0.3);
}

.sw-trending-info {
  flex-grow: 1;
}

.sw-trending-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-trending-title a,
.sw-trending-title a:visited,
.sw-trending-title a:active,
.sw-trending-title a:focus {
  color: var(--sw-text) !important;
  text-decoration: none !important;
  transition: color var(--sw-transition);
}

.sw-trending-title a:hover,
.sw-trending-item:hover .sw-trending-title a {
  color: var(--sw-primary) !important;
}

.sw-trending-time {
  font-size: 11px;
  color: var(--sw-text-muted);
}

/* -------------------------------------------------------------
   6. SINGLE ARTICLE VIEW (SINGULAR CONTENT)
------------------------------------------------------------- */
.sw-article-header {
  margin-bottom: 24px;
}

.sw-breadcrumbs {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sw-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--sw-transition);
}

.sw-breadcrumbs a:hover {
  color: #b91c1c;
}

.sw-breadcrumbs a.sw-breadcrumb-cat {
  color: #b91c1c !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

.sw-breadcrumbs a.sw-breadcrumb-cat:hover {
  color: #991b1b !important;
  text-decoration: underline !important;
}

html.dark .sw-breadcrumbs a.sw-breadcrumb-cat {
  color: #f87171 !important;
}

.sw-article-header .sw-post-cat-pill,
.sw-article-cat-pill {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border-radius: var(--sw-radius-pill) !important;
  background: #b91c1c !important;
  color: #ffffff !important;
  text-decoration: none !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3) !important;
  transition: all var(--sw-transition) !important;
}

.sw-article-header .sw-post-cat-pill:hover,
.sw-article-cat-pill:hover {
  background: #991b1b !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.45) !important;
}

.sw-article-header .sw-post-cat-pill:visited,
.sw-article-cat-pill:visited {
  color: #ffffff !important;
}

.sw-article-title {
  font-size: 32px;
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
  color: var(--sw-text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.sw-article-description,
.sw-article-subtitle {
  position: relative;
  font-size: 17.5px;
  font-weight: 500;
  color: #334155;
  margin-top: 26px;
  margin-bottom: 24px;
  line-height: 1.85;
  padding: 22px 24px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
  letter-spacing: normal;
  transition: all 0.2s ease;
}

.sw-desc-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: var(--sw-primary);
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 3px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  user-select: none;
  z-index: 2;
}

.sw-desc-badge svg {
  stroke: var(--sw-primary);
  display: inline-block;
  vertical-align: middle;
}

.sw-desc-text {
  text-align: center;
}

.sw-article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 14px 0;
  border-top: 1px solid var(--sw-border);
  border-bottom: 1px solid var(--sw-border);
  margin-bottom: 24px;
}

.sw-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sw-border);
}

.sw-author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--sw-text);
}

.sw-publish-date {
  font-size: 12px;
  color: var(--sw-text-muted);
}

.sw-meta-bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Google Sources Follow Button */
.sw-google-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-pill);
  color: var(--sw-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: var(--sw-shadow-sm);
  transition: all var(--sw-transition);
  cursor: pointer;
}

.sw-google-source-btn:hover {
  border-color: #4285f4;
  background: #f0f7ff;
  color: #1a73e8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.18);
}

html.dark .sw-google-source-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

html.dark .sw-google-source-btn:hover {
  background: rgba(66, 133, 244, 0.18);
  border-color: #4285f4;
  color: #ffffff !important;
}

.sw-google-source-btn svg {
  flex-shrink: 0;
}

/* Article, Header and Footer Social Mini Icons */
.sw-article-social-mini,
.sw-header-social,
.sw-footer-social-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sw-article-social-mini .social-links ul,
.sw-header-social .social-links ul,
.sw-footer-social-wrap .social-links ul,
.sw-footer-social-channels .social-links ul,
.sw-footer-about-social .social-links ul,
.sw-footer-social-wrap-box .social-links ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.sw-article-social-mini .social-links li,
.sw-header-social .social-links li,
.sw-footer-social-wrap .social-links li,
.sw-footer-social-channels .social-links li,
.sw-footer-about-social .social-links li,
.sw-footer-social-wrap-box .social-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.sw-article-social-mini .social-links li a,
.sw-header-social .social-links li a,
.sw-footer-social-wrap .social-links li a,
.sw-footer-social-channels .social-links li a,
.sw-footer-about-social .social-links li a,
.sw-footer-social-wrap-box .social-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  color: var(--sw-text-muted);
  font-size: 13px;
  transition: all var(--sw-transition);
  text-decoration: none !important;
}

.sw-article-social-mini .social-links li a:hover,
.sw-header-social .social-links li a:hover,
.sw-footer-social-wrap .social-links li a:hover,
.sw-footer-social-channels .social-links li a:hover,
.sw-footer-about-social .social-links li a:hover,
.sw-footer-social-wrap-box .social-links li a:hover {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.sw-article-social-mini .social-links li a svg,
.sw-header-social .social-links li a svg,
.sw-footer-social-wrap .social-links li a svg,
.sw-footer-social-channels .social-links li a svg,
.sw-footer-about-social .social-links li a svg,
.sw-footer-social-wrap-box .social-links li a svg {
  fill: currentColor;
  width: 14px;
  height: 14px;
}

.sw-font-resizer,
.article-font-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  padding: 3px 6px;
  border-radius: var(--sw-radius-pill);
}

.sw-font-resizer button,
.article-font-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--sw-text);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all var(--sw-transition);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sw-font-resizer button:hover,
.article-font-controls button:hover {
  background: var(--sw-primary-soft);
  color: var(--sw-primary);
}

.sw-font-resizer button:active,
.article-font-controls button:active {
  transform: scale(0.92);
}

.sw-featured-media {
  margin-bottom: 28px;
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sw-card-bg-subtle);
  box-shadow: var(--sw-shadow);
}

.sw-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Body Typography */
.entry-content,
.post-content-inner,
.singular-content {
  font-size: var(--sw-article-font-size, 18px);
  line-height: 1.95;
  color: var(--sw-text);
  transition: font-size 0.15s ease-out;
}

.entry-content p,
.entry-content li,
.entry-content span:not([class*="dashicons"]):not([class*="icon"]),
.entry-content blockquote p {
  font-size: var(--sw-article-font-size, 18px) !important;
  line-height: inherit;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--sw-text);
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.entry-content h2 {
  font-size: 24px;
  border-right: 4px solid var(--sw-primary);
  padding-right: 12px;
}

.entry-content h3 {
  font-size: 20px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--sw-card-bg-subtle);
  border-right: 5px solid var(--sw-primary);
  border-radius: var(--sw-radius);
  font-style: normal;
  font-size: 19px;
  font-weight: 700;
  color: var(--sw-text);
}

.entry-content img {
  border-radius: var(--sw-radius);
  margin: 20px auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--sw-border);
  text-align: right;
}

.entry-content th {
  background: var(--sw-card-bg-subtle);
  font-weight: 800;
}

/* -------------------------------------------------------------
   7. JOIN CHANNELS BANNERS (GOOGLE NEWS, WAPP, TELEGRAM)
------------------------------------------------------------- */
.sw-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 32px 0;
}

.sw-channel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--sw-radius);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--sw-shadow);
  transition: all var(--sw-transition);
}

.sw-channel-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--sw-shadow-hover);
}

.sw-channel-gnews {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.sw-channel-wapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.sw-channel-telegram {
  background: linear-gradient(135deg, #229ed9 0%, #0088cc 100%);
}

.sw-channel-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--sw-radius-pill);
  font-size: 12px;
  font-weight: 800;
}

/* -------------------------------------------------------------
   8. FAQ ACCORDION COMPONENT
------------------------------------------------------------- */
.sw-faq-section {
  margin: 36px 0;
  padding: 24px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow);
}

.sw-faq-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-faq-item {
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--sw-card-bg-subtle);
  transition: all var(--sw-transition);
}

.sw-faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sw-faq-arrow {
  transition: transform var(--sw-transition);
  font-size: 14px;
}

.sw-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sw-text-muted);
  transition: all var(--sw-transition);
}

.sw-faq-item.is-open {
  background: var(--sw-card-bg);
  border-color: var(--sw-primary);
}

.sw-faq-item.is-open .sw-faq-arrow {
  transform: rotate(180deg);
}

.sw-faq-item.is-open .sw-faq-answer {
  max-height: 500px;
  padding: 12px 20px 20px;
}

/* -------------------------------------------------------------
   9. SOCIAL SHARE BAR & AUTHOR BIO BOX
------------------------------------------------------------- */
.sw-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--sw-border);
  border-bottom: 1px solid var(--sw-border);
}

.sw-share-title {
  font-size: 14px;
  font-weight: 800;
}

.sw-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--sw-radius-pill);
  color: #ffffff !important;
  transition: all var(--sw-transition);
}

.sw-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.sw-share-fb { background: #1877f2; }
.sw-share-tw { background: #000000; }
.sw-share-wapp { background: #25d366; }
.sw-share-tg { background: #0088cc; }
.sw-share-copy {
  background: var(--sw-card-bg-subtle);
  color: var(--sw-text) !important;
  border: 1px solid var(--sw-border);
  cursor: pointer;
}

/* Author Bio Box */
.sw-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  margin: 32px 0;
  box-shadow: var(--sw-shadow);
}

.sw-author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sw-primary);
  flex-shrink: 0;
}

.sw-author-box-info h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.sw-author-box-info p {
  font-size: 14px;
  color: var(--sw-text-muted);
  line-height: 1.7;
}

/* -------------------------------------------------------------
   10. FOOTER & COPYRIGHT BAR
------------------------------------------------------------- */
.sw-footer {
  /* Default Light Palette (Fixed Light or Light Mode Auto) */
  --sw-ft-bg: #f8fafc;
  --sw-ft-title: #0f172a;
  --sw-ft-text: #334155;
  --sw-ft-muted: #64748b;
  --sw-ft-link: #334155;
  --sw-ft-link-hover: var(--sw-primary);
  --sw-ft-border: #e2e8f0;
  --sw-ft-badge-bg: #f1f5f9;
  --sw-ft-badge-border: #cbd5e1;
  --sw-ft-badge-text: #1e293b;
  --sw-ft-input-bg: #ffffff;
  --sw-ft-input-border: #cbd5e1;
  --sw-ft-input-text: #0f172a;
  --sw-ft-input-placeholder: #94a3b8;
  --sw-ft-bottom-bg: #ffffff;
  --sw-ft-bottom-border: #e2e8f0;
  --sw-ft-bottom-text: #1e293b;
  --sw-ft-thumb-bg: #f1f5f9;

  background: var(--sw-ft-bg);
  color: var(--sw-ft-text);
  padding: 50px 0 0;
  border-top: 1px solid var(--sw-ft-border);
  margin-top: 60px;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Dark Mode Palette for Footer (Fixed Dark or Dark Mode Auto) */
.sw-footer.dark-color,
html.dark .sw-footer:not(.light-color) {
  --sw-ft-bg: #090d16;
  --sw-ft-title: #ffffff;
  --sw-ft-text: #cbd5e1;
  --sw-ft-muted: #94a3b8;
  --sw-ft-link: #cbd5e1;
  --sw-ft-link-hover: #ffffff;
  --sw-ft-border: rgba(255, 255, 255, 0.1);
  --sw-ft-badge-bg: rgba(255, 255, 255, 0.06);
  --sw-ft-badge-border: rgba(255, 255, 255, 0.14);
  --sw-ft-badge-text: #cbd5e1;
  --sw-ft-input-bg: rgba(255, 255, 255, 0.08);
  --sw-ft-input-border: rgba(255, 255, 255, 0.18);
  --sw-ft-input-text: #ffffff;
  --sw-ft-input-placeholder: #94a3b8;
  --sw-ft-bottom-bg: #05070d;
  --sw-ft-bottom-border: rgba(255, 255, 255, 0.1);
  --sw-ft-bottom-text: #e2e8f0;
  --sw-ft-thumb-bg: rgba(255, 255, 255, 0.05);

  background: var(--sw-ft-bg) !important;
  color: var(--sw-ft-text) !important;
  border-top: 1px solid var(--sw-ft-border) !important;
}

/* Explicit Light Palette when light-color class is present */
.sw-footer.light-color,
html:not(.dark) .sw-footer.auto {
  background: var(--sw-ft-bg) !important;
  color: var(--sw-ft-text) !important;
  border-top: 1px solid var(--sw-ft-border) !important;
}

.sw-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  .sw-footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  }
}

@media (max-width: 991px) and (min-width: 601px) {
  .sw-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .sw-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.sw-footer-widget {
  font-size: 14px;
  line-height: 1.8;
  color: var(--sw-ft-text);
}

.sw-footer-widget h3,
.sw-footer-widget-title h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--sw-ft-title) !important;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.sw-footer-widget h3::after,
.sw-footer-widget-title h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--sw-primary);
  border-radius: 2px;
}

/* --- Brand & About Widget --- */
.sw-footer-about {
  display: flex;
  flex-direction: column;
}

.sw-footer-brand-wrap {
  margin-bottom: 14px;
}

.sw-footer-logo-link {
  display: inline-block;
  line-height: 1;
}

.sw-footer-logo-link img,
.sw-footer-logo {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.sw-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-footer-site-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--sw-ft-title) !important;
  text-decoration: none !important;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: baseline;
  transition: color 0.2s ease;
}

.sw-footer-site-title:hover {
  color: var(--sw-primary) !important;
}

.sw-title-dot {
  color: var(--sw-primary);
  margin-right: 2px;
}

.sw-footer-site-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sw-ft-muted) !important;
}

.sw-footer-text p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--sw-ft-text) !important;
  margin-bottom: 14px;
}

.sw-footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--sw-radius-pill);
  background: var(--sw-ft-badge-bg) !important;
  border: 1px solid var(--sw-ft-badge-border) !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-ft-badge-text) !important;
  width: fit-content;
  margin-bottom: 14px;
}

.sw-badge-icon {
  font-size: 13px;
}

.sw-footer-quick-channels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sw-btn-gnews-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--sw-radius-pill);
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.3);
  color: #2563eb !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.sw-footer.dark-color .sw-btn-gnews-pill,
html.dark .sw-footer:not(.light-color) .sw-btn-gnews-pill {
  background: rgba(66, 133, 244, 0.15);
  color: #93c5fd !important;
}

.sw-btn-gnews-pill:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.sw-footer-about-social {
  margin-top: 14px;
}

/* --- Links Widget (1 or 2 Columns) --- */
.sw-footer-links-list {
  display: grid;
  gap: 8px 14px;
}

.sw-footer-links-list.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sw-footer-links-list.cols-1 {
  grid-template-columns: 1fr;
}

.sw-footer-link-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sw-ft-link) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.sw-footer-link-item:hover {
  color: var(--sw-ft-link-hover) !important;
  transform: translateX(-4px);
}

.sw-link-arrow {
  color: var(--sw-primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sw-footer-link-item:hover .sw-link-arrow {
  transform: translateX(-2px);
}

/* --- Posts Widget --- */
.sw-footer-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-footer-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-footer-post-thumb {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sw-ft-thumb-bg);
  display: block;
}

.sw-footer-post-thumb img,
.sw-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sw-footer-post-item:hover .sw-footer-post-thumb img {
  transform: scale(1.08);
}

.sw-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--sw-ft-thumb-bg);
  color: var(--sw-ft-muted);
}

.sw-footer-post-content {
  flex: 1;
  min-width: 0;
}

.sw-footer-post-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 5px 0;
}

.sw-footer-post-title a {
  color: var(--sw-ft-title) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-footer-post-title a:hover {
  color: var(--sw-primary) !important;
}

.sw-footer-post-date {
  font-size: 11.5px;
  color: var(--sw-ft-muted) !important;
  font-weight: 600;
  display: inline-block;
}

/* --- Newsletter Widget --- */
.sw-footer-newsletter-wrap {
  display: flex;
  flex-direction: column;
}

.sw-newsletter-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--sw-ft-text) !important;
  margin-bottom: 14px;
}

.sw-newsletter-form {
  margin-bottom: 8px;
}

.sw-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
}

.sw-newsletter-input {
  flex: 1;
  background: var(--sw-ft-input-bg) !important;
  border: 1px solid var(--sw-ft-input-border) !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--sw-ft-input-text) !important;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.sw-newsletter-input:focus {
  border-color: var(--sw-primary) !important;
  box-shadow: 0 0 0 3px rgba(227, 18, 5, 0.2);
}

.sw-newsletter-input::placeholder {
  color: var(--sw-ft-input-placeholder) !important;
}

.sw-newsletter-btn {
  background: var(--sw-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.sw-newsletter-btn:hover {
  background: var(--sw-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 18, 5, 0.4);
}

.sw-newsletter-trust {
  display: block;
  font-size: 12px;
  color: var(--sw-ft-muted) !important;
  font-weight: 500;
}

.sw-footer-social-channels {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--sw-ft-border);
}

.sw-footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-footer-widget ul li a {
  color: var(--sw-ft-link) !important;
  transition: all var(--sw-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.sw-footer-widget ul li a:hover {
  color: var(--sw-ft-link-hover) !important;
  transform: translateX(-4px);
}

.sw-footer-bottom {
  background: var(--sw-ft-bottom-bg) !important;
  padding: 22px 0;
  border-top: 1px solid var(--sw-ft-bottom-border) !important;
  font-size: 14px;
}

.sw-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sw-footer-copyright {
  color: var(--sw-ft-bottom-text) !important;
  font-weight: 700;
  line-height: 1.6;
}

.sw-footer-nav-wrap {
  display: flex;
  align-items: center;
}

.sw-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.sw-footer-nav li a {
  color: var(--sw-ft-bottom-text) !important;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--sw-transition);
  text-decoration: none !important;
}

.sw-footer-nav li a:hover {
  color: var(--sw-primary) !important;
}

.sw-footer-widget ul li a {
  color: #e2e8f0;
  transition: all var(--sw-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.sw-footer-widget ul li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.sw-footer-bottom {
  background: #05070d;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.sw-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sw-footer-copyright {
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.6;
}

.sw-footer-nav-wrap {
  display: flex;
  align-items: center;
}

.sw-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.sw-footer-nav li a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--sw-transition);
  text-decoration: none !important;
}

.sw-footer-nav li a:hover {
  color: var(--sw-primary);
}

.sw-footer-dev-credit {
  display: flex;
  align-items: center;
}

.sw-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: var(--sw-radius-pill);
  color: #e2e8f0;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.sw-dev-badge:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.sw-dev-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-dev-name {
  color: #93c5fd;
  font-weight: 800;
}

@media (max-width: 768px) {
  .sw-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .sw-footer-nav {
    justify-content: center;
    gap: 14px;
  }
}

/* -------------------------------------------------------------
   FOOTER COLOR MODES (Dark / Light / Auto)
------------------------------------------------------------- */
/* Footer Dark (Fixed Dark or Dark Mode Auto) */
.sw-footer.dark-color,
html.dark .sw-footer:not(.light-color) {
  background: #090d16 !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sw-footer.dark-color .sw-footer-widget,
html.dark .sw-footer:not(.light-color) .sw-footer-widget {
  color: #cbd5e1 !important;
}

.sw-footer.dark-color .sw-footer-widget h3,
html.dark .sw-footer:not(.light-color) .sw-footer-widget h3 {
  color: #ffffff !important;
}

.sw-footer.dark-color .sw-footer-widget ul li a,
html.dark .sw-footer:not(.light-color) .sw-footer-widget ul li a {
  color: #e2e8f0 !important;
}

.sw-footer.dark-color .sw-footer-widget ul li a:hover,
html.dark .sw-footer:not(.light-color) .sw-footer-widget ul li a:hover {
  color: #ffffff !important;
}

.sw-footer.dark-color .sw-footer-bottom,
html.dark .sw-footer:not(.light-color) .sw-footer-bottom {
  background: #05070d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sw-footer.dark-color .sw-footer-copyright,
html.dark .sw-footer:not(.light-color) .sw-footer-copyright {
  color: #e2e8f0 !important;
}

.sw-footer.dark-color .sw-footer-nav li a,
html.dark .sw-footer:not(.light-color) .sw-footer-nav li a {
  color: #e2e8f0 !important;
}

.sw-footer.dark-color .sw-footer-nav li a:hover,
html.dark .sw-footer:not(.light-color) .sw-footer-nav li a:hover {
  color: var(--sw-primary) !important;
}

.sw-footer.dark-color .sw-dev-badge,
html.dark .sw-footer:not(.light-color) .sw-dev-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
}

.sw-footer.dark-color .sw-dev-badge:hover,
html.dark .sw-footer:not(.light-color) .sw-dev-badge:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

/* Footer Light (Fixed Light or Light Mode Auto) - High Contrast WCAG AAA */
.sw-footer.light-color,
html:not(.dark) .sw-footer.auto {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-top: 1px solid #cbd5e1 !important;
}

.sw-footer.light-color .sw-footer-widget,
html:not(.dark) .sw-footer.auto .sw-footer-widget {
  color: #1e293b !important;
}

.sw-footer.light-color .sw-footer-widget h3,
.sw-footer.light-color .sw-footer-widget-title h3,
html:not(.dark) .sw-footer.auto .sw-footer-widget h3,
html:not(.dark) .sw-footer.auto .sw-footer-widget-title h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.sw-footer.light-color .sw-footer-site-title,
html:not(.dark) .sw-footer.auto .sw-footer-site-title {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.sw-footer.light-color .sw-footer-site-desc,
html:not(.dark) .sw-footer.auto .sw-footer-site-desc {
  color: #334155 !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
}

.sw-footer.light-color .sw-footer-text p,
html:not(.dark) .sw-footer.auto .sw-footer-text p {
  color: #1e293b !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
}

.sw-footer.light-color .sw-footer-trust-badge,
html:not(.dark) .sw-footer.auto .sw-footer-trust-badge {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sw-footer.light-color .sw-footer-link-item,
html:not(.dark) .sw-footer.auto .sw-footer-link-item {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.sw-footer.light-color .sw-footer-link-item:hover,
html:not(.dark) .sw-footer.auto .sw-footer-link-item:hover {
  color: #b91c1c !important;
}

.sw-footer.light-color .sw-footer-post-title a,
html:not(.dark) .sw-footer.auto .sw-footer-post-title a {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sw-footer.light-color .sw-footer-post-title a:hover,
html:not(.dark) .sw-footer.auto .sw-footer-post-title a:hover {
  color: #b91c1c !important;
}

.sw-footer.light-color .sw-footer-post-date,
html:not(.dark) .sw-footer.auto .sw-footer-post-date {
  color: #475569 !important;
  font-weight: 500 !important;
}

.sw-footer.light-color .sw-newsletter-desc,
html:not(.dark) .sw-footer.auto .sw-newsletter-desc {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.sw-footer.light-color .sw-newsletter-input,
html:not(.dark) .sw-footer.auto .sw-newsletter-input {
  background: #ffffff !important;
  border: 1.5px solid #94a3b8 !important;
  color: #0f172a !important;
}

.sw-footer.light-color .sw-newsletter-input::placeholder,
html:not(.dark) .sw-footer.auto .sw-newsletter-input::placeholder {
  color: #64748b !important;
}

.sw-footer.light-color .sw-newsletter-trust,
html:not(.dark) .sw-footer.auto .sw-newsletter-trust {
  color: #334155 !important;
  font-weight: 600 !important;
}

.sw-footer.light-color .social-links li a,
html:not(.dark) .sw-footer.auto .social-links li a {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  color: #0f172a !important;
}

.sw-footer.light-color .social-links li a:hover,
html:not(.dark) .sw-footer.auto .social-links li a:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

.sw-footer.light-color .sw-footer-widget ul li a,
html:not(.dark) .sw-footer.auto .sw-footer-widget ul li a {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.sw-footer.light-color .sw-footer-widget ul li a:hover,
html:not(.dark) .sw-footer.auto .sw-footer-widget ul li a:hover {
  color: #b91c1c !important;
}

.sw-footer.light-color .sw-footer-bottom,
html:not(.dark) .sw-footer.auto .sw-footer-bottom {
  background: #f1f5f9 !important;
  border-top: 1px solid #cbd5e1 !important;
}

.sw-footer.light-color .sw-footer-copyright,
html:not(.dark) .sw-footer.auto .sw-footer-copyright {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sw-footer.light-color .sw-footer-nav li a,
html:not(.dark) .sw-footer.auto .sw-footer-nav li a {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.sw-footer.light-color .sw-footer-nav li a:hover,
html:not(.dark) .sw-footer.auto .sw-footer-nav li a:hover {
  color: #b91c1c !important;
}

.sw-footer.light-color .sw-dev-badge,
html:not(.dark) .sw-footer.auto .sw-dev-badge {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sw-footer.light-color .sw-dev-badge:hover,
html:not(.dark) .sw-footer.auto .sw-dev-badge:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

/* Toast Alert */
.sw-toast-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--sw-radius-pill);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999;
}

.sw-toast-alert.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* -------------------------------------------------------------
   11. SEARCH MODAL, MOBILE DRAWER & WIDGETS
------------------------------------------------------------- */
/* Search Modal with Backdrop Blur */
.sw-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2147483647 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.sw-search-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.sw-search-modal-box {
  width: 100%;
  max-width: 580px;
  background: var(--sw-card-bg, #ffffff);
  border: 1px solid var(--sw-border, #e2e8f0);
  border-radius: 18px;
  padding: 22px 26px 26px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.sw-search-modal.is-active .sw-search-modal-box {
  transform: translateY(0);
}

.sw-search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sw-border, #f1f5f9);
}

.sw-search-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sw-text, #0f172a);
}

.sw-search-modal-title svg {
  stroke: var(--sw-primary);
}

.sw-search-close {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--sw-border, #e2e8f0);
  background: var(--sw-card-bg-subtle, #f8fafc);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.sw-search-close svg {
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.sw-search-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

html.dark .sw-search-modal-header {
  border-bottom-color: #1e293b;
}

html.dark .sw-search-close {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .sw-search-close:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: #991b1b;
  color: #f87171;
}

/* Search Box Form */
.sw-search-box-wrap {
  width: 100%;
}

.sw-search-form-inner {
  display: flex;
  align-items: center;
  background: var(--sw-card-bg-subtle);
  border: 2px solid var(--sw-border);
  border-radius: var(--sw-radius-pill);
  padding: 4px 6px 4px 16px;
  transition: all var(--sw-transition);
}

.sw-search-form-inner:focus-within {
  border-color: var(--sw-primary);
  box-shadow: 0 0 0 3px var(--sw-primary-soft);
}

.sw-search-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--sw-text);
  padding: 8px 12px;
}

.sw-search-submit-btn {
  background: var(--sw-primary);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--sw-transition);
  flex-shrink: 0;
}

.sw-search-submit-btn:hover {
  background: var(--sw-primary-hover);
  transform: scale(1.05);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile Drawer & Modal Background Lock */
body.menu-open,
body.search-open {
  overflow: hidden !important;
  touch-action: none;
}

.sw-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2147483646 !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--sw-transition);
}

.sw-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sw-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 310px;
  max-width: 85vw;
  background: var(--sw-card-bg);
  border-left: 1px solid var(--sw-border);
  z-index: 2147483647 !important;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.3);
}

.sw-mobile-drawer.is-open {
  transform: translateX(0);
}

.sw-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sw-border);
}

.sw-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--sw-text);
}

.sw-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--sw-border, #e2e8f0);
  background: var(--sw-card-bg-subtle, #f8fafc);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.sw-drawer-close svg {
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.sw-drawer-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

html.dark .sw-drawer-close {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .sw-drawer-close:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: #991b1b;
  color: #f87171;
}

.sw-drawer-content {
  padding: 16px 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.sw-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sw-mobile-menu-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sw-text);
  border-radius: var(--sw-radius-sm);
  transition: all var(--sw-transition);
}

.sw-mobile-menu-list li a:hover,
.sw-mobile-menu-list li.current-menu-item > a,
.sw-mobile-menu-list li.current_page_item > a,
.sw-mobile-menu-list li.current-category-ancestor > a,
.sw-mobile-menu-list li.active > a {
  background: var(--sw-primary) !important;
  color: #ffffff !important;
}

.sw-submenu-toggle {
  float: left;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 16px;
  color: var(--sw-text-muted);
}

.sw-drawer-social {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--sw-border);
}

/* -------------------------------------------------------------
   11. MAIN GRID & RESPONSIVE LAYOUT
------------------------------------------------------------- */
.sw-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.sw-main-grid.no-sidebar {
  grid-template-columns: 1fr !important;
}

/* -------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
------------------------------------------------------------- */
@media (max-width: 992px) {
  .sw-main-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 100% !important;
    gap: 28px !important;
    width: 100% !important;
  }
  .sw-article-main,
  .sw-archive-posts-area,
  .sw-sidebar-desktop {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }
  .sw-sidebar-card {
    width: 100% !important;
  }
  .sw-sidebar-desktop {
    margin-top: 16px !important;
  }
  .sw-nav-desktop {
    display: none !important;
  }
  .sw-mobile-menu-toggle {
    display: inline-flex !important;
  }
  .sw-header-inner {
    height: 64px !important;
    min-height: 64px !important;
    gap: 10px !important;
  }
  .sw-logo-img {
    max-height: 42px !important;
  }
  .sw-btn-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
  }
  .sw-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .sw-grid-3, .sw-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sw-article-title {
    font-size: 24px !important;
  }
}

@media (max-width: 600px) {
  .sw-grid-2, .sw-grid-3, .sw-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .sw-topbar-date, .sw-social-mini {
    display: none !important;
  }
  .sw-article-title {
    font-size: 20px !important;
  }
  .sw-article-description,
  .sw-article-subtitle {
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    padding: 20px 16px 14px !important;
    margin-top: 22px !important;
    margin-bottom: 18px !important;
    border-radius: 10px !important;
  }
  .sw-desc-badge {
    font-size: 12px !important;
    padding: 2px 14px !important;
    top: -11px !important;
  }
  .sw-channels-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------------
   13. ENHANCED DARK MODE CONTRAST & VISITED LINK STATES
------------------------------------------------------------- */
html.dark, body.dark {
  --sw-bg: #0b0f19;
  --sw-card-bg: #131b2e;
  --sw-card-bg-subtle: #1c2640;
  --sw-text: #f8fafc;
  --sw-text-muted: #94a3b8;
  --sw-border: #1e293b;
  --sw-border-subtle: #192237;
  --sw-header-bg: #0e1526;
  --sw-topbar-bg: #070a12;
  --sw-topbar-text: #cbd5e1;
  --sw-footer-bg: #070a12;
  --sw-footer-text: #64748b;
  --sw-footer-heading: #f8fafc;
  --sw-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --sw-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
}

html.dark a,
body.dark a,
html.dark a:visited,
body.dark a:visited,
html.dark a:active,
body.dark a:active {
  color: #f8fafc;
}

html.dark a:hover,
body.dark a:hover,
html.dark a:hover:visited,
body.dark a:hover:visited {
  color: var(--sw-primary) !important;
}

html.dark .sw-post-title a,
html.dark .sw-post-title a:visited,
html.dark .sw-post-title a:active,
html.dark .title-inner a,
html.dark .title-inner a:visited,
html.dark .title-inner a:active,
html.dark .featured-title a,
html.dark .featured-title a:visited,
html.dark .featured-title a:active,
html.dark .list-title a,
html.dark .list-title a:visited,
html.dark .list-title a:active,
html.dark .sw-trending-title a,
html.dark .sw-trending-title a:visited,
html.dark .sw-trending-title a:active,
html.dark .sw-article-title,
html.dark .sw-author-name a,
html.dark .sw-author-name a:visited,
html.dark .sw-author-name a:active,
html.dark .sw-breadcrumbs a,
html.dark .sw-breadcrumbs a:visited,
html.dark .sw-breadcrumbs span,
html.dark .sw-sidebar-heading,
html.dark .sw-section-heading {
  color: #f8fafc !important;
}

html.dark .sw-article-description,
html.dark .sw-article-subtitle {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

html.dark .sw-desc-badge {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark .sw-desc-badge svg {
  stroke: var(--sw-primary) !important;
}

html.dark .sw-post-title a:hover,
html.dark .title-inner a:hover,
html.dark .featured-title a:hover,
html.dark .list-title a:hover,
html.dark .sw-trending-title a:hover,
html.dark .sw-author-name a:hover,
html.dark .sw-breadcrumbs a:hover {
  color: var(--sw-primary) !important;
}

html.dark .sw-article-content a {
  color: #60a5fa !important;
  text-decoration: underline !important;
}
html.dark .sw-article-content a:hover {
  color: #93c5fd !important;
}
html.dark .sw-article-content a:visited {
  color: #a78bfa !important;
}

/* Fact Check Card Dark Mode Styling & High Contrast Protection */
html.dark .ks-fact-card,
body.dark .ks-fact-card {
  background: #0c1a15 !important;
  border: 1.5px solid #059669 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5) !important;
}

html.dark .ks-fact-card p,
html.dark .ks-fact-card div,
html.dark .ks-fact-card span,
body.dark .ks-fact-card p,
body.dark .ks-fact-card div,
body.dark .ks-fact-card span {
  color: #e2e8f0 !important;
}

html.dark .ks-fact-card strong,
html.dark .ks-fact-card b,
body.dark .ks-fact-card strong,
body.dark .ks-fact-card b {
  color: #ffffff !important;
}

html.dark .ks-fact-card a,
body.dark .ks-fact-card a,
html.dark .ks-fact-card a:visited,
body.dark .ks-fact-card a:visited,
html.dark .ks-fact-card a:active,
body.dark .ks-fact-card a:active {
  color: #34d399 !important;
  background: rgba(52, 211, 153, 0.14) !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  display: inline-block !important;
}

html.dark .ks-fact-card a:hover,
body.dark .ks-fact-card a:hover {
  color: #ffffff !important;
  background: #059669 !important;
}

/* Light Mode Fact Check link high contrast (WCAG AAA) */
.ks-fact-card a,
.ks-fact-card a:visited {
  color: #065f46 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.ks-fact-card a:hover {
  color: #022c22 !important;
}

/* -------------------------------------------------------------
   PAGINATION & LOAD MORE BUTTONS HIGH CONTRAST (WCAG AAA)
------------------------------------------------------------- */
.sw-btn,
.sw-load-more-btn,
.sw-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #b91c1c !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-radius: var(--sw-radius-pill) !important;
  border: none !important;
  padding: 12px 36px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35) !important;
  transition: all var(--sw-transition) !important;
  cursor: pointer !important;
}

.sw-btn:hover,
.sw-load-more-btn:hover,
.sw-btn-primary:hover {
  background: #991b1b !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(153, 27, 27, 0.5) !important;
}

.sw-btn:visited,
.sw-load-more-btn:visited,
.sw-btn-primary:visited,
html.dark .sw-load-more-btn,
body.dark .sw-load-more-btn,
html.dark .sw-btn-primary,
body.dark .sw-btn-primary {
  color: #ffffff !important;
}

.sw-pagination-wrap .sw-btn:focus-visible,
.sw-load-more-btn:focus-visible {
  outline: 3px solid #f87171 !important;
  outline-offset: 3px !important;
}

html.dark .sw-trending-time,
html.dark .sw-publish-date,
html.dark .sw-author-meta,
html.dark .sw-post-meta-bottom,
html.dark .sw-post-time {
  color: #94a3b8 !important;
}

html.dark .sw-rank-badge {
  background: var(--sw-primary);
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   12. RESPONSIVE DISPLAY UTILITIES (ADS & WIDGET VISIBILITY)
------------------------------------------------------------- */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
  .d-lg-block {
    display: block !important;
  }
}

@media (max-width: 991.98px) {
  .d-none.d-lg-block {
    display: none !important;
  }
  .d-lg-none {
    display: block !important;
  }
}

@media (max-width: 991.98px) {
  /* Ensure mobile header actions stay clickable */
  .sw-header-actions {
    position: relative;
    z-index: 1002;
  }
}

/* -------------------------------------------------------------
   13. AD CONTAINER MOBILE OVERFLOW PROTECTION
------------------------------------------------------------- */
.ad {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  clear: both;
  box-sizing: border-box;
}

.ad-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ad img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
  margin: 0 auto;
}

.ad iframe {
  max-width: 100% !important;
}

.adsense-unit,
.adsense-fixed,
.adsense-size {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ad {
    margin: 14px 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}