/**
 * 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;
}

body {
  background-color: var(--sw-bg);
  color: var(--sw-text);
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--sw-transition), color var(--sw-transition);
}

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;
}

/* -------------------------------------------------------------
   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;
  gap: 12px !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.sw-ticker-badge {
  background: var(--sw-primary) !important;
  color: #ffffff !important;
  padding: 3px 12px !important;
  font-weight: 800 !important;
  font-size: 11px !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;
}

.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: 500 !important;
  color: #f8fafc !important;
}

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

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

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

.sw-topbar-date {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12px !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;
    white-space: nowrap !important;
  }

  .sw-nav-desktop li a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 14px !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 {
    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 {
    background: var(--sw-primary-soft) !important;
    color: var(--sw-primary) !important;
    padding-right: 18px !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-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-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 {
  color: #ffffff;
}

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

.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.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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: 13px;
  color: var(--sw-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sw-breadcrumbs a {
  color: var(--sw-text-muted);
}

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

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

.sw-article-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--sw-text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
  padding: 10px 16px;
  background: var(--sw-card-bg-subtle);
  border-right: 4px solid var(--sw-primary);
  border-radius: var(--sw-radius-sm);
}

.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-font-resizer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  padding: 4px 8px;
  border-radius: var(--sw-radius-pill);
}

.sw-font-resizer button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--sw-text);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--sw-transition);
}

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

.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 {
  font-size: 18px;
  line-height: 1.95;
  color: var(--sw-text);
}

.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 {
  background: var(--sw-footer-bg);
  color: var(--sw-footer-text);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

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

.sw-footer-widget h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--sw-footer-heading);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

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

.sw-footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

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

/* 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: 99999;
  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: 600px;
  background: var(--sw-card-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--sw-shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

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

.sw-search-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--sw-border);
  background: var(--sw-card-bg-subtle);
  color: var(--sw-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--sw-transition);
}

.sw-search-close:hover {
  background: var(--sw-primary);
  color: #ffffff;
}

/* 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 */
.sw-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99990;
  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: 300px;
  max-width: 85vw;
  background: var(--sw-card-bg);
  border-left: 1px solid var(--sw-border);
  z-index: 99995;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.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);
  background: var(--sw-card-bg-subtle);
  color: var(--sw-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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 {
  background: var(--sw-primary-soft);
  color: var(--sw-primary);
}

.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);
}

/* -------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
------------------------------------------------------------- */
@media (max-width: 992px) {
  .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-channels-grid {
    grid-template-columns: 1fr !important;
  }
}