:root {
  --primary-color: #c00000;
  --primary-hover: #990000;
  --accent-color: #e09b11;
  --text-dark: #1a202c;
  --text-muted: #4a5568;
  --bg-color: #fcfcfc;
  --soft-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --inset-shadow: none;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --card-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Arabic', sans-serif;
  background: var(--bg-color);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper img {
  width: 34px;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: 8px;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  background-color: rgba(192, 0, 0, 0.05);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section - Redesigned Dark Mode */
.hero.dark-hero {
  padding-top: 150px;
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 60%, #151e32 0%, #0a0f1d 80%, #060a14 100%);
  color: white;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-red {
  width: 600px;
  height: 600px;
  background: #e11d48;
  bottom: -150px;
  left: -200px;
}

.hero-glow-blue {
  width: 600px;
  height: 600px;
  background: #3b82f6;
  top: -150px;
  right: -200px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #cbd5e1;
  margin-bottom: 3.5rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  width: 32px;
}

.text-yellow { color: #facc15; }
.text-red { color: #ef4444; }
.text-gold { color: #fbbf24; }

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--soft-shadow);
}

.badge i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--soft-shadow);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(192, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.05);
}

.btn-white {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  color: #0f172a;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn i {
  font-size: 1.4rem;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: imgPulse 4s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(192, 0, 0, 0.12);
  animation: floatImg 6s ease-in-out infinite;
}

.hero-image-wrapper:hover img {
  animation-play-state: paused;
}

@keyframes floatImg {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes imgPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
}

/* Floating Elements */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(192, 0, 0, 0.15);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(24, 119, 242, 0.1);
  bottom: 10%;
  left: -50px;
}

/* Soft 3D Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--soft-shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.8);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(192, 0, 0, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  color: var(--primary-color);
  font-size: 2.2rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Info Section (How it Works) */
.info-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.info-content {
  flex: 1;
}

.info-content ul {
  list-style: none;
  margin-top: 1.5rem;
}

.info-content li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.info-content li i {
  color: white;
  background: var(--primary-color);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: none;
}

.info-visual {
  flex: 1;
  background: white;
  padding: 3rem;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.info-visual img {
  max-width: 100%;
  border-radius: 12px;
}

/* Supported Devices */
.devices-wrapper {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.device-icon {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  box-shadow: var(--soft-shadow);
  transition: var(--transition);
}

.device-item:hover .device-icon {
  transform: scale(1.1);
  color: var(--primary-color);
}

.device-item span {
  font-weight: bold;
  font-size: 1.2rem;
}

/* FAQ Preview */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 2rem 1.5rem;
  max-height: 500px;
}

.cta-banner {
  background: var(--primary-color);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 10px 25px rgba(192, 0, 0, 0.15);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: white;
  font-size: 2.5rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-banner .btn-secondary {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  
  .hero-features-list {
    align-items: center;
  }
  
  .trust-badges, .cta-group, .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper img {
    max-width: 80%;
  }

  .info-section {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Mobile Header Optimizations */
  .header-inner {
    height: 50px;
  }

  .logo-wrapper img {
    width: 30px;
  }

  .logo-text {
    font-size: 1rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 4px 8px;
  }

  nav ul {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    clip-path: circle(0% at 100% 0);
    transition: all 0.4s ease-in-out;
  }

  nav ul.show {
    clip-path: circle(150% at 100% 0);
  }

  .mobile-toggle {
    display: block;
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    margin: 1rem auto;
  }
}

/* Custom Downloader Widget */
.downloader-widget {
  display: inline-flex;
  align-items: stretch;
  border: 3px solid #f27221;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  margin: 1.5rem auto;
  font-family: 'Noto Sans Arabic', sans-serif;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  direction: ltr; /* Ensure LTR for the code and text */
}

.downloader-icon {
  background: #f27221;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.downloader-icon img {
  height: 45px;
  width: auto;
}

.downloader-content {
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.downloader-label {
  color: #888;
  font-size: 1.2rem;
  font-weight: 700;
}

.downloader-code {
  color: #333;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Float animation for hero widgets */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--primary-color), #ff6b6b);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(192, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 0, 0, 0.45);
}

/* Copy Code Button */
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  padding: 4px 14px;
  background: rgba(192, 0, 0, 0.08);
  border: 1px solid rgba(192, 0, 0, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.copy-code-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.copy-code-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

/* ════════════════════════════════════════════
   SHARED PAGE COMPONENTS (all inner pages)
   ════════════════════════════════════════════ */

/* ── Consistent Page Hero ─────────────────── */
.page-hero {
  padding: 100px 0 3.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(225,29,72,0.22) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 40%, rgba(99,102,241,0.18) 0%, transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero h1 span { color: #f87171; }
.page-hero p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 5px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 1rem;
}

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: #94a3b8; transition: color 0.2s; }
.breadcrumb a:hover { color: #f87171; }
.breadcrumb i { font-size: 0.7rem; color: #475569; }
.breadcrumb span { color: #e2e8f0; font-weight: 600; }

/* ── Article Layout ───────────────────────── */
.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 100px; }

/* ── Article Header ───────────────────────── */
.article-header {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(225,29,72,0.3) 0%, transparent 60%);
}
.article-header > * { position: relative; z-index: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225,29,72,0.2);
  color: #fca5a5;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}
.article-header h1 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-featured-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-top: 0.5rem;
}

/* ── TOC Sidebar ──────────────────────────── */
.toc-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  margin-bottom: 1.5rem;
}
.toc-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title i { color: var(--primary-color); }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a {
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 600;
}
.toc-list a:hover {
  color: var(--primary-color);
  background: rgba(192,0,0,0.05);
}
.toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toc-list a:hover::before { background: var(--primary-color); }

/* ── Article Body ─────────────────────────── */
.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-body p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.article-body ul, .article-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body li {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

/* ── Info / Tip / Warning Boxes ───────────── */
.info-box, .tip-box, .warning-box, .success-box {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-box    { background: #eff6ff; border-right: 4px solid #3b82f6; }
.tip-box     { background: #fefce8; border-right: 4px solid #facc15; }
.warning-box { background: #fff7ed; border-right: 4px solid #f97316; }
.success-box { background: #f0fdf4; border-right: 4px solid #22c55e; }
.info-box    .box-icon { color: #3b82f6; }
.tip-box     .box-icon { color: #d97706; }
.warning-box .box-icon { color: #ea580c; }
.success-box .box-icon { color: #16a34a; }
.box-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.box-content h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: inherit; }
.box-content p  { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.info-box    .box-content h4 { color: #1d4ed8; }
.info-box    .box-content p  { color: #1e40af; }
.tip-box     .box-content h4 { color: #92400e; }
.tip-box     .box-content p  { color: #78350f; }
.warning-box .box-content h4 { color: #9a3412; }
.warning-box .box-content p  { color: #7c2d12; }
.success-box .box-content h4 { color: #14532d; }
.success-box .box-content p  { color: #166534; }

/* ── Numbered Steps ───────────────────────── */
.steps-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.step-item {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  align-items: flex-start;
}
.step-num-badge {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}
.step-item-content h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: #1e293b; }
.step-item-content p  { font-size: 0.95rem; color: #475569; margin: 0; line-height: 1.6; }

/* ── Related Articles ─────────────────────── */
.related-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}
.related-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1e293b;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.25s;
  text-decoration: none;
}
.related-card:hover {
  border-color: #fecaca;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.related-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-card h4 {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

/* ── CTA Article Banner ───────────────────── */
.article-cta {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(225,29,72,0.25) 0%, transparent 60%);
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 { color: white; font-size: 1.2rem; margin-bottom: 0.4rem; }
.article-cta p  { color: #94a3b8; font-size: 0.9rem; margin: 0; }
.article-cta .btn-cta-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(192,0,0,0.3);
  text-decoration: none;
}
.article-cta .btn-cta-dl:hover {
  background: #a00;
  transform: translateY(-2px);
  color: white;
}

/* ── Blog Cards Enhanced ──────────────────── */
.blog-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card-new {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.blog-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: #fecaca;
}
.blog-card-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card-new:hover .blog-card-cover img {
  transform: scale(1.05);
}

/* Blog Preview Cards (Homepage) */
.bp-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

.bp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bp-card:hover .bp-cover img {
  transform: scale(1.05);
}

.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.blog-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-card-time {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card-new h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  flex: 1;
}
.blog-card-new p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 1rem; }
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ── FAQ Enhancements ─────────────────────── */
.faq-search-bar {
  max-width: 500px;
  margin: 1.5rem auto 0;
  position: relative;
}
.faq-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  font-family: 'Noto Sans Arabic', sans-serif;
  outline: none;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}
.faq-search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.faq-search-bar input:focus { border-color: rgba(255,255,255,0.5); }
.faq-search-bar i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}
.faq-cats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.faq-cat-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans Arabic', sans-serif;
}
.faq-cat-btn:hover, .faq-cat-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.faq-item { transition: opacity 0.3s; }
.faq-item.hidden { display: none; }
.faq-item-inner {
  background: white;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  transition: box-shadow 0.2s;
}
.faq-item-inner:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.faq-item-inner.active { border-color: #fecaca; }
.faq-q {
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  gap: 1rem;
}
.faq-q i { color: #94a3b8; transition: transform 0.3s; flex-shrink: 0; }
.faq-item-inner.active .faq-q { color: var(--primary-color); }
.faq-item-inner.active .faq-q i { transform: rotate(180deg); color: var(--primary-color); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}
.faq-item-inner.active .faq-a { max-height: 400px; padding: 0 1.75rem 1.25rem; }

/* ── Troubleshoot Cards ───────────────────── */
.issue-card-new {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  border-top: 4px solid var(--primary-color);
  transition: transform 0.25s, box-shadow 0.25s;
}
.issue-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.issue-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.issue-icon {
  width: 44px;
  height: 44px;
  background: rgba(192,0,0,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.issue-card-head h3 { font-size: 1.1rem; color: #1e293b; margin: 0; }
.solution-steps { display: flex; flex-direction: column; gap: 0.6rem; }
.solution-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}
.solution-step i { color: var(--primary-color); font-size: 0.8rem; margin-top: 4px; flex-shrink: 0; }

/* ── Full Footer ──────────────────────────── */
.full-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.full-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.full-footer .footer-about .logo-text { color: white; }
.full-footer .footer-about .logo-text span { color: #f87171; }
.full-footer .footer-about p { color: #64748b; margin-top: 1rem; max-width: 280px; }
.full-footer h4 { color: #e2e8f0; font-size: 1rem; margin-bottom: 1.25rem; }
.full-footer ul { list-style: none; }
.full-footer li { margin-bottom: 0.7rem; }
.full-footer a { color: #64748b; transition: color 0.2s; font-size: 0.95rem; }
.full-footer a:hover { color: #f87171; }
.full-footer .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* ── Responsive Article ───────────────────── */
@media (max-width: 900px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.8rem; }
  .full-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .full-footer .footer-grid { grid-template-columns: 1fr; }
  .article-header { padding: 1.5rem; }
  .article-header h1 { font-size: 1.3rem; }
  .article-featured-image { height: 180px; }
  .blog-card-cover { height: 160px; }
  .blog-grid-new { grid-template-columns: 1fr; gap: 1.25rem; }
}
