/**
 * ===============================================
 * MEET AJ PORTFOLIO - ARTICLES CSS (OPTIMIZED)
 * ===============================================
 * 
 * Optimized CSS file for article pages with PWA support
 * 
 * Features:
 * - CSS Custom Properties for better maintainability
 * - Optimized responsive design with modern CSS Grid/Flexbox
 * - Enhanced accessibility and RTL support
 * - Reduced code duplication and improved performance
 * - Modern CSS features for better PWA experience
 * 
 * Version: 2.0
 * Last Updated: 2024
 * 
 * ===============================================
 */

/* CSS Custom Properties - Global Theme Variables */
:root {
  /* Base Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Article Theme Variables - Optimized */
.article-linux {
  --article-primary: #dc2626;
  --article-primary-hover: #b91c1c;
  --article-secondary: #f59e0b;
  --article-accent: #ef4444;
  --article-shadow: rgba(220, 38, 38, 0.1);
  --article-gradient: linear-gradient(135deg, #dc2626, #f59e0b);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

.article-windows {
  --article-primary: #2563eb;
  --article-primary-hover: #1d4ed8;
  --article-secondary: #06b6d4;
  --article-accent: #3b82f6;
  --article-shadow: rgba(37, 99, 235, 0.1);
  --article-gradient: linear-gradient(135deg, #2563eb, #06b6d4);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

.article-security {
  --article-primary: #7c3aed;
  --article-primary-hover: #6d28d9;
  --article-secondary: #ec4899;
  --article-accent: #8b5cf6;
  --article-shadow: rgba(124, 58, 237, 0.1);
  --article-gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

.article-networking {
  --article-primary: #059669;
  --article-primary-hover: #047857;
  --article-secondary: #0d9488;
  --article-accent: #10b981;
  --article-shadow: rgba(5, 150, 105, 0.1);
  --article-gradient: linear-gradient(135deg, #059669, #0d9488);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

.article-openvpn {
  --article-primary: #ea580c;
  --article-primary-hover: #c2410c;
  --article-secondary: #f59e0b;
  --article-accent: #fb923c;
  --article-shadow: rgba(234, 88, 12, 0.1);
  --article-gradient: linear-gradient(135deg, #ea580c, #f59e0b);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

.article-blocking {
  --article-primary: #dc2626;
  --article-primary-hover: #b91c1c;
  --article-secondary: #ef4444;
  --article-accent: #f87171;
  --article-shadow: rgba(220, 38, 38, 0.1);
  --article-gradient: linear-gradient(135deg, #dc2626, #ef4444);
  --article-text-light: rgba(255, 255, 255, 0.9);
  --article-text-medium: rgba(255, 255, 255, 0.8);
}

/* Base Article Components - Optimized with CSS Custom Properties */

[class*="article-"] .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-normal);
}

[class*="article-"] .article-banner .banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--article-shadow);
}

[class*="article-"] .article-banner .banner-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
}

[class*="article-"] .btn-primary {
  background: var(--article-primary);
  border-color: var(--article-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  transition: all var(--transition-normal);
}

[class*="article-"] .btn-primary:hover {
  background: var(--article-primary-hover);
  border-color: var(--article-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

[class*="article-"] .article-category {
  background: var(--article-primary);
  color: var(--color-white);
  border-radius: var(--radius-3xl);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
}

[class*="article-"] .article-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[class*="article-"] .stat-item .stat-icon {
  background: var(--article-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: all var(--transition-normal);
}

[class*="article-"] .stat-item .stat-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* OpenVPN Article Text Colors */
.article-openvpn .hero .article-meta .meta-date {
  color: rgba(231, 227, 204, 0.8); /* Light cream with transparency */
}

.article-openvpn .hero .article-meta .meta-date time {
  color: rgba(231, 227, 204, 0.9); /* Light cream with transparency */
}

.article-openvpn .article-category {
  color: white;
}

.article-openvpn .stat-item .stat-number {
  color: white;
}

.article-openvpn .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.article-openvpn .action-btn .btn-content {
  color: white;
}

.article-openvpn .action-btn .btn-arrow {
  color: white;
}

/* Banner Card Styles */
.banner-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 25px 30px;
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.banner-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.banner-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--surface);
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--surface);
  margin: 0 0 5px 0;
}

.banner-subtitle {
  font-size: 14px;
  opacity: 0.8;
  color: var(--surface);
  margin: 0;
}

/* Article Category and Date Styles */
.article-category {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  opacity: 0.8;
}

/* Article Content Styles */
.article-content {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface-muted) 100%
  );
  overflow: visible; /* Allow step badges to extend outside */
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--default-color);
  background: var(--surface);
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--divider-border);
  overflow: visible; /* Allow step badges to extend outside */
  animation: fadeInUp 0.8s ease-out;
  transition: all 0.3s ease;
}

.article-body:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.article-section {
  margin-bottom: 60px;
  animation: slideInLeft 0.6s ease-out;
  transition: all 0.3s ease;
}

.article-section:nth-child(even) {
  animation: slideInRight 0.6s ease-out;
}

.article-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
  position: relative;
  transition: all 0.3s ease;
}

.article-section h2:hover {
  color: var(--primary);
  transform: translateX(10px);
}

.article-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 40px 0 20px 0;
}

.article-section h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 30px 0 15px 0;
}

.article-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--default-color);
}

.article-section ul,
.article-section ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-section li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Code Block Styles */
.code-block {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  overflow-x: auto;
  direction: ltr !important; /* Force left-to-right for code blocks */
  text-align: left !important; /* Force left alignment for code blocks */
}

.code-block h4 {
  color: var(--pure-white);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* RTL Support for Article Page */
html[dir="rtl"] .article-header {
  text-align: right;
}

html[dir="rtl"] .article-author {
  flex-direction: row-reverse;
}

html[dir="rtl"] .author-info {
  text-align: right;
}

html[dir="rtl"] .article-section h2 {
  text-align: right;
}

html[dir="rtl"] .article-section h3 {
  text-align: right;
}

html[dir="rtl"] .article-section h4 {
  text-align: right;
}

html[dir="rtl"] .article-section p {
  text-align: right;
}

html[dir="rtl"] .article-section ul,
html[dir="rtl"] .article-section ol {
  padding-right: 30px;
  padding-left: 0;
}

/* Mobile Responsive for Article Page */
@media (max-width: 768px) {
  .article-header {
    padding: 100px 0 60px 0;
    min-height: 80vh;
  }

  .stats-container {
    gap: 20px;
    padding: 25px 30px;
  }

  .stat-item {
    flex-direction: column;
    gap: 10px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .banner-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .banner-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .article-actions {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }

  .article-body {
    padding: 40px 20px;
    margin: 0 15px;
  }

  .article-section h2 {
    font-size: 2rem;
  }

  .article-section h3 {
    font-size: 1.5rem;
  }

  .article-section h4 {
    font-size: 1.2rem;
  }

  .article-section p {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .article-header {
    padding: 80px 0 40px 0;
    min-height: 70vh;
  }

  .stats-container {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .stat-item {
    flex-direction: row;
    justify-content: flex-start;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .meta-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .banner-card {
    padding: 15px;
  }

  .banner-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .action-btn {
    padding: 15px 25px;
    font-size: 14px;
  }

  .bg-shape {
    display: none;
  }

  .article-content {
    padding: 40px 0;
  }

  .article-body {
    padding: 30px 15px;
    margin: 0 10px;
    border-radius: 12px;
    overflow: visible; /* Allow step badges to extend outside */
  }

  .article-section h2 {
    font-size: 1.8rem;
  }

  .article-section h3 {
    font-size: 1.4rem;
  }
}

/* Article Page Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.article-openvpn .header .logo h1 {
  color: #ff8d19 !important;
  background: linear-gradient(135deg, #ff8d19, #e67e00) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.article-blocking .header .logo h1 {
  color: #d04338 !important;
  background: linear-gradient(135deg, #d04338, #b8392f) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.article-nginx .header .logo h1 {
  color: #00bf73 !important;
  background: linear-gradient(135deg, #00bf73, #ff830a) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.article-cmd .header .logo h1 {
  color: #2c5aa0 !important;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Microsoft-inspired Custom CSS for Windows CMD Article */
.article-cmd {
  --ms-blue: #3f95bc;
  --ms-dark: #081a2a;
  --ms-white: #ffffff;
  --ms-light-blue: rgba(63, 149, 188, 0.1);
  --ms-gradient: linear-gradient(135deg, #3f95bc 0%, #081a2a 100%);
  --ms-gradient-light: linear-gradient(
    135deg,
    rgba(63, 149, 188, 0.1) 0%,
    rgba(8, 26, 42, 0.1) 100%
  );

  /* Command-specific colors */
  --cmd-bg: var(--ms-dark);
  --cmd-text: var(--ms-white);
  --cmd-prompt: var(--ms-blue);
  --cmd-border: var(--ms-blue);

  /* Spacing and sizing */
  --section-padding: 2rem;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* Hero section styling */
.article-cmd .hero {
  background: var(--ms-gradient);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  color: var(--ms-white);
}

.article-cmd .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.article-cmd .hero h1 {
  color: var(--ms-white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.article-cmd .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Article stats styling */
.article-cmd .article-stats {
  margin: 2rem 0;
}

.article-cmd .stats-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cmd .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-cmd .stat-icon {
  font-size: 1.5rem;
  color: var(--ms-white);
}

.article-cmd .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ms-white);
}

.article-cmd .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Banner card styling */
.article-cmd .article-banner {
  margin: 2rem 0;
}

.article-cmd .banner-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-cmd .banner-icon {
  font-size: 2rem;
  color: var(--ms-white);
}

.article-cmd .banner-title {
  color: var(--ms-white);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.article-cmd .banner-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
}

/* Action buttons styling */
.article-cmd .article-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cmd .action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.article-cmd .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.article-cmd .btn-primary {
  background: var(--ms-white);
  color: var(--ms-blue);
  border: 2px solid var(--ms-white);
}

.article-cmd .btn-primary:hover {
  background: transparent;
  color: var(--ms-white);
  border-color: var(--ms-white);
}

.article-cmd .btn-outline-secondary {
  background: transparent;
  color: var(--ms-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.article-cmd .btn-outline-secondary:hover {
  background: var(--ms-white);
  color: var(--ms-blue);
  border-color: var(--ms-white);
}

/* Background shapes */
.article-cmd .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.article-cmd .bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.article-cmd .bg-shape-1 {
  width: 200px;
  height: 200px;
  background: var(--ms-white);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.article-cmd .bg-shape-2 {
  width: 150px;
  height: 150px;
  background: var(--ms-white);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.article-cmd .bg-shape-3 {
  width: 100px;
  height: 100px;
  background: var(--ms-white);
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Article content styling */
.article-cmd .article-content {
  background: #f8f9fa;
  padding: 4rem 0;
}

.article-cmd .article-section {
  background: var(--ms-white);
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--ms-blue);
  transition: all var(--transition-speed) ease;
}

.article-cmd .article-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-cmd .article-section h2 {
  color: var(--ms-dark);
  border-bottom: 2px solid var(--ms-blue);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.article-cmd .article-section h3 {
  color: var(--ms-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Command blocks styling */
.article-cmd .cmd-block {
  background: var(--cmd-bg);
  color: var(--cmd-text);
  border-left: 4px solid var(--cmd-border);
  font-family: "Courier New", "Consolas", monospace;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-speed) ease;
  margin: 1rem 0;
  direction: ltr !important;
  text-align: left !important;
}

/* RTL Support for CMD Blocks */
html[dir="rtl"] .article-cmd .cmd-block {
  border-left: none;
  border-right: 4px solid var(--cmd-border);
  direction: ltr !important;
  text-align: left !important;
}

.article-cmd .cmd-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Code block styling */
.article-cmd .code-header {
  background: var(--ms-blue);
  color: var(--ms-white);
  padding: 12px 20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-cmd .copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ms-white);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-cmd .copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.article-cmd .copy-btn.copied {
  background: #28a745;
  border-color: #28a745;
  transform: scale(1.05);
}

.article-cmd .cmd-block pre {
  background: var(--cmd-bg);
  color: var(--cmd-text);
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: "Courier New", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  direction: ltr !important;
  text-align: left !important;
}

.article-cmd .cmd-block code {
  background: transparent;
  color: var(--cmd-text);
  padding: 0;
  font-family: "Courier New", "Consolas", monospace;
  direction: ltr !important;
  text-align: left !important;
}

/* RTL Support for CMD Block Content */
html[dir="rtl"] .article-cmd .cmd-block pre,
html[dir="rtl"] .article-cmd .cmd-block code {
  direction: ltr !important;
  text-align: left !important;
}

/* Troubleshooting scenarios */
.article-cmd .troubleshooting-scenario {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #f39c12;
}

.article-cmd .troubleshooting-scenario h4 {
  color: #d68910;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-cmd .troubleshooting-scenario p {
  color: #856404;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-cmd .stats-container {
    flex-direction: column;
    gap: 1rem;
  }

  .article-cmd .stat-item {
    justify-content: center;
  }

  .article-cmd .article-actions {
    flex-direction: column;
    align-items: center;
  }

  .article-cmd .action-btn {
    width: 100%;
    max-width: 300px;
  }

  .article-cmd .article-section {
    padding: 1.5rem;
  }

  .article-cmd .cmd-block pre {
    padding: 15px;
    font-size: 0.8rem;
    direction: ltr !important;
    text-align: left !important;
  }

  html[dir="rtl"] .article-cmd .cmd-block pre {
    direction: ltr !important;
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  .article-cmd .hero {
    padding: 2rem 0;
  }

  .article-cmd .hero h1 {
    font-size: 1.8rem;
  }

  .article-cmd .hero-subtitle {
    font-size: 1rem;
  }

  .article-cmd .stat-item {
    padding: 0.8rem 1rem;
  }

  .article-cmd .banner-card {
    padding: 1rem;
  }

  .article-cmd .article-section {
    padding: 1rem;
  }

  .article-cmd .cmd-block pre {
    padding: 10px;
    font-size: 0.75rem;
    direction: ltr !important;
    text-align: left !important;
  }

  html[dir="rtl"] .article-cmd .cmd-block pre {
    direction: ltr !important;
    text-align: left !important;
  }
}

.article-ecmp .header .logo h1 {
  color: #0d47a1 !important;
  background: linear-gradient(135deg, #0d47a1, #0288d1) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ===============================================
 * ARTICLE HEADER - COMPLETE REDESIGN
 * ===============================================
 * Modern, sleek design with glassmorphism effects
 * All styles are self-contained here
 */

/* Article Header Container - Modern Design with Enhanced Gradient */
.article-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--article-primary) 0%,
    var(--article-accent) 25%,
    var(--article-primary) 50%,
    var(--article-accent) 75%,
    var(--article-primary) 100%
  );
  background-size: 300% 300%;
  animation: gradientFlow 8s ease-in-out infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px 0;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  z-index: 1;
  /* Remove any backdrop-filter that might cause blur */
}

.article-header .container {
  position: relative !important;
  z-index: 999 !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

/* Article Meta Section - Glassmorphism Design */
.article-header .article-meta {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.article-header .meta-badge {
  display: inline-block;
}

.article-header .article-category {
  display: inline-block;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  /* backdrop-filter: blur(20px); - Removed to prevent text blur */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: categoryFloat 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-header .article-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.article-header .article-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: categoryShine 3s ease-in-out infinite;
}

.article-header .meta-date {
  color: #ffffff !important;
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-header .article-date {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: dateGlow 2.5s ease-in-out infinite alternate;
}

.article-header .article-date time {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: dateGlow 2.5s ease-in-out infinite alternate;
  font-weight: 500;
}

/* Force Clear Text - Override All */
.article-header h1,
.article-header .article-title,
.article-header .hero-title {
  color: #ffffff !important;
  font-size: 4rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 2rem !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
  animation: titleGlow 3s ease-in-out infinite alternate !important;
  position: relative !important;
  overflow: visible !important;
  text-align: center !important;
  z-index: 999 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.article-header p,
.article-header .article-excerpt,
.article-header .hero-subtitle {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  line-height: 1.7 !important;
  margin-bottom: 3rem !important;
  opacity: 0.95 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  animation: none !important;
  position: relative !important;
  text-align: center !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-weight: 300 !important;
  z-index: 999 !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  visibility: visible !important;
  display: block !important;
}

/* Article Stats - Modern Glassmorphism Cards */
.article-header .article-stats {
  margin-bottom: 4rem;
}

.article-header .stats-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.article-header .stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(20px); - Removed to prevent text blur */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.article-header .stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-header .stat-item:hover::before {
  opacity: 1;
}

.article-header .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.article-header .stat-icon {
  color: #ffffff !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: iconFloatModern 5s ease-in-out infinite;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* backdrop-filter: blur(10px); - Removed to prevent text blur */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-header .stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.article-header .stat-number {
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  animation: statCounterModern 3s ease-in-out infinite alternate;
  line-height: 1;
}

.article-header .stat-label {
  color: #ffffff !important;
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: labelFloatModern 4s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Article Banner */
.article-header .article-banner {
  margin-bottom: 3rem;
}

.article-header .banner-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(15px); - Removed to prevent text blur */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.article-header .banner-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.article-header .banner-icon {
  color: #ffffff !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: iconRotateEnhanced 5s linear infinite;
  font-size: 3rem;
}

.article-header .banner-content {
  flex: 1;
}

.article-header .banner-title {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
  animation: bannerGlowEnhanced 3s ease-in-out infinite alternate;
}

.article-header .banner-subtitle {
  color: #ffffff !important;
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: subtitleFloat 2.5s ease-in-out infinite alternate;
}

/* Action Buttons */
.article-header .article-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-header .action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-header .action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.article-header .action-btn:hover::before {
  left: 100%;
}

.article-header .action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-header .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.article-header .btn-outline-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.article-header .btn-primary:hover,
.article-header .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Background Elements */
.article-header .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.article-header .bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.article-header .bg-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.article-header .bg-shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.article-header .bg-shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

/* Enhanced Animations for Article Header */
@keyframes titleGlowEnhanced {
  0% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
  }
}

@keyframes titleShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes textFadeEnhanced {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
  }
}

@keyframes categoryPulseEnhanced {
  0% {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.15)
    );
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  100% {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.25)
    );
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

@keyframes categoryShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes dateGlow {
  0% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
}

@keyframes statCounterEnhanced {
  0% {
    transform: scale(1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
  }
  100% {
    transform: scale(1.15);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.5);
  }
}

@keyframes labelFloat {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
}

@keyframes iconFloatEnhanced {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(5deg) scale(1.1);
  }
  50% {
    transform: translateY(-5px) rotate(-3deg) scale(1.05);
  }
  75% {
    transform: translateY(-8px) rotate(3deg) scale(1.1);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes bannerGlowEnhanced {
  0% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
  }
}

@keyframes subtitleFloat {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes iconRotateEnhanced {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Modern Animations for Article Header */
@keyframes titleGlowModern {
  0% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.3),
      0 0 60px rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 255, 255, 0.5),
      0 0 100px rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
  }
}

@keyframes titleShineModern {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes textFadeModern {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-3px) scale(1.005);
  }
}

@keyframes categoryFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes categoryShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes dateGlow {
  0% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.4);
    opacity: 1;
  }
}

@keyframes statCounterModern {
  0% {
    transform: scale(1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.5);
  }
}

@keyframes labelFloatModern {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
}

@keyframes iconFloatModern {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(3deg) scale(1.05);
  }
  50% {
    transform: translateY(-5px) rotate(-2deg) scale(1.02);
  }
  75% {
    transform: translateY(-8px) rotate(2deg) scale(1.05);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Progress Fill - Use Article Theme Colors */
.progress-fill {
  background: linear-gradient(
    90deg,
    var(--article-primary) 0%,
    var(--article-accent) 50%,
    var(--article-primary) 100%
  ) !important;
  box-shadow: 0 2px 8px var(--article-shadow) !important;
}

/* ===============================================
 * CODE BLOCKS - PROFESSIONAL DESIGN
 * ===============================================
 * Modern, professional code blocks with dark/light theme
 */

/* CSS Variables for Professional Theme */
:root {
  --pcd-bg: #0b1020; /* dark */
  --pcd-fg: #e6edf3;
  --pcd-muted: #9aa5b1;
  --pcd-border: #1f2a44;
  --pcd-accent: #5b9bff;
  --pcd-btn: #111a2f;
  --pcd-line: #0f1730;
  --pcd-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pcd-font: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --pcd-bg: #f8fafc; /* light */
    --pcd-fg: #0f172a;
    --pcd-muted: #495769;
    --pcd-border: #e2e8f0;
    --pcd-accent: #2563eb;
    --pcd-btn: #eef2f7;
    --pcd-line: #f1f5f9;
    --pcd-shadow: 0 6px 18px rgba(2, 6, 23, 0.1);
  }
}

/* Override with Article Theme Colors */
.article-openvpn {
  --pcd-accent: var(--article-primary);
  --pcd-border: rgba(255, 141, 25, 0.2);
  --pcd-btn: rgba(255, 141, 25, 0.1);
}

.article-blocking {
  --pcd-accent: var(--article-primary);
  --pcd-border: rgba(208, 67, 56, 0.2);
  --pcd-btn: rgba(208, 67, 56, 0.1);
}

.article-ecmp {
  --pcd-accent: var(--article-primary);
  --pcd-border: rgba(13, 71, 161, 0.2);
  --pcd-btn: rgba(13, 71, 161, 0.1);
}

/* Professional Code Block Container */
.code-block {
  margin: 24px auto;
  max-width: 980px;
  border: 1px solid var(--pcd-border);
  border-radius: 16px;
  box-shadow: var(--pcd-shadow);
  overflow: hidden;
  background: var(--pcd-bg);
  color: var(--pcd-fg);
  direction: ltr !important;
  text-align: left !important;
}

/* Force all code blocks to be left-aligned */
.code-block,
.code-block pre,
.code-block code,
.step-content .code-block,
.step-content .code-block pre,
.step-content .code-block code {
  direction: ltr !important;
  text-align: left !important;
}

/* RTL Code Block Override - Ensure LTR for all code blocks */
html[dir="rtl"] .code-block,
html[dir="rtl"] .code-block pre,
html[dir="rtl"] .code-block code,
html[dir="rtl"] .step-content .code-block,
html[dir="rtl"] .step-content .code-block pre,
html[dir="rtl"] .step-content .code-block code {
  direction: ltr !important;
  text-align: left !important;
}

/* Professional Code Bar */
.code-block-header,
.code-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pcd-border);
  background: radial-gradient(
      1200px 120px at 0% -20%,
      rgba(91, 155, 255, 0.15),
      transparent 60%
    ),
    radial-gradient(
      1200px 120px at 100% -20%,
      rgba(91, 155, 255, 0.08),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
  position: relative;
}

.code-block-title,
.code-lang {
  font: 600 13px/1.2 system-ui, Segoe UI, Roboto;
  color: var(--pcd-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  user-select: none;
  margin: 0;
}

/* RTL Support for Copy Button */
html[dir="rtl"] .copy-btn {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .code-header {
  flex-direction: row-reverse;
}

/* Output Block Styling */
.output-block {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 16px 0;
}

.output-block .code-header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-block .code-lang {
  color: #4ade80;
  font-weight: 600;
}

.output-block pre code {
  color: #e5e7eb;
  font-family: "Courier New", "Consolas", monospace;
  line-height: 1.6;
}

/* Professional Copy Button - Floating */
.copy-btn {
  position: relative;
  appearance: none;
  border: 1px solid var(--pcd-border);
  background: var(--pcd-btn);
  color: var(--pcd-fg);
  padding: 8px 12px;
  border-radius: 8px;
  font: 600 12px/1 system-ui;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 70px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  user-select: none;
  margin-left: auto;
}

.copy-btn:hover {
  transform: translateY(-2px);
  border-color: var(--pcd-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: white;
  transform: scale(1.05);
}

/* Professional Code Wrap */
.code-block pre {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
}

.code-block pre {
  margin: 0;
  padding: 16px 0 16px 0;
  font: 13.5px/1.6 var(--pcd-font);
  tab-size: 2;
  min-height: 52px;
  counter-reset: line;
  background: linear-gradient(
      180deg,
      rgba(91, 155, 255, 0.08),
      transparent 140px
    )
    no-repeat;
}

/* Professional Code Lines */
.code-block pre {
  position: relative;
  padding: 0;
  overflow: auto;
}

.code-block pre code {
  white-space: pre;
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 16px;
  font-size: inherit;
  color: inherit;
  direction: ltr;
  text-align: left;
  font-weight: inherit;
  position: relative;
}

/* Professional Syntax Highlighting */
.token-key {
  color: #7dd3fc;
  font-weight: 600;
}
.token-fn {
  color: #a5b4fc;
}
.token-str {
  color: #86efac;
}
.token-num {
  color: #fca5a5;
}
.token-com {
  color: #94a3b8;
  font-style: italic;
}
.token-kw2 {
  color: #f9a8d4;
}

/* Legacy token support */
.code-block pre code .token.comment {
  color: #94a3b8;
  font-style: italic;
}

.code-block pre code .token.keyword {
  color: #7dd3fc;
  font-weight: 600;
}

.code-block pre code .token.string {
  color: #86efac;
}

.code-block pre code .token.number {
  color: #fca5a5;
}

.code-block pre code .token.function {
  color: #a5b4fc;
}

/* Professional Scrollbar */
.code-block pre::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: var(--pcd-border);
  border-radius: 8px;
}

.code-block pre:hover::-webkit-scrollbar-thumb {
  background: var(--pcd-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .code-block {
    margin: 20px 0;
    border-radius: 12px;
  }

  .code-block-header,
  .code-header {
    padding: 8px 10px;
  }

  .code-block-title,
  .code-lang {
    font-size: 11px;
  }

  .copy-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 60px;
    border-radius: 6px;
    gap: 4px;
  }

  .code-block pre {
    padding: 12px 0 12px 0;
    font-size: 12px;
  }

  .code-block pre {
    padding-left: 50px;
  }

  .code-block pre::before {
    width: 50px;
  }

  .code-block pre code::before {
    left: -50px;
    width: 40px;
    font-size: 11px;
    content: "1\A2\A3\A4\A5\A6\A7\A8\A9\A10\A11\A12\A13\A14\A15\A16\A17\A18\A19\A20";
  }

  html[dir="rtl"] .code-block pre::before {
    left: auto;
    right: 0;
    width: 50px;
  }

  html[dir="rtl"] .code-block pre code {
    padding: 12px;
    padding-right: 50px;
    padding-left: 12px;
  }

  html[dir="rtl"] .code-block pre code::before {
    left: auto;
    right: -50px;
    width: 40px;
    font-size: 11px;
    content: "1\A2\A3\A4\A5\A6\A7\A8\A9\A10\A11\A12\A13\A14\A15\A16\A17\A18\A19\A20";
  }
}

/* OpenVPN Article Theme - Enhanced Orange Gradient */
.article-openvpn {
  --article-primary: #ff8d19;
  --article-primary-hover: #e67e00;
  --article-accent: #ff6b35; /* Enhanced orange accent */
  --article-shadow: rgba(255, 141, 25, 0.15);
  --article-gradient: linear-gradient(
    135deg,
    #ff8d19,
    #ff6b35,
    #e67e00
  ); /* Enhanced orange gradient */
  --article-secondary: #ff8d19; /* Orange instead of blue */
  --article-text-light: rgba(255, 179, 102, 0.9);
  --article-text-medium: rgba(255, 179, 102, 0.8);
  --article-bg-light: rgba(255, 141, 25, 0.1);
  --article-bg-medium: rgba(255, 141, 25, 0.05);
}

/* Website Blocking Article Theme - Enhanced Red Gradient */
.article-blocking {
  --article-primary: #d04338; /* Red for blocking article */
  --article-primary-hover: #b8392f;
  --article-accent: #e74c3c; /* Enhanced red accent */
  --article-shadow: rgba(208, 67, 56, 0.15);
  --article-gradient: linear-gradient(
    135deg,
    #d04338,
    #e74c3c,
    #b8392f
  ); /* Enhanced red gradient */
  --article-secondary: #d04338; /* Red secondary instead of cream */
  --article-text-light: rgba(208, 67, 56, 0.9);
  --article-text-medium: rgba(208, 67, 56, 0.8);
  --article-bg-light: rgba(208, 67, 56, 0.1);
  --article-bg-medium: rgba(208, 67, 56, 0.05);
}

/* Nginx Article Theme - Green/Orange/Dark Gradient */
.article-nginx {
  --article-primary: #00bf73; /* Green for nginx article */
  --article-primary-hover: #00a864;
  --article-accent: #ff830a; /* Orange accent */
  --article-shadow: rgba(0, 191, 115, 0.15);
  --article-gradient: linear-gradient(
    135deg,
    #00bf73,
    #ff830a,
    #0d191c
  ); /* Green to Orange to Dark gradient */
  --article-secondary: #0d191c; /* Dark secondary */
  --article-text-light: rgba(0, 191, 115, 0.9);
  --article-text-medium: rgba(0, 191, 115, 0.8);
  --article-bg-light: rgba(0, 191, 115, 0.1);
  --article-bg-medium: rgba(0, 191, 115, 0.05);
}

/* Windows CMD Article Theme - Microsoft Blue Gradient */
.article-cmd {
  --article-primary: #2c5aa0; /* Enhanced blue for CMD article */
  --article-primary-hover: #1e3f73;
  --article-accent: #4a90e2; /* Light blue accent */
  --article-shadow: rgba(44, 90, 160, 0.15);
  --article-gradient: linear-gradient(
    135deg,
    #3f95bc,
    #081a2a,
    #ffffff
  ); /* Microsoft blue gradient */
  --article-secondary: #ffffff; /* White secondary */
  --article-text-light: rgba(63, 149, 188, 0.9);
  --article-text-medium: rgba(63, 149, 188, 0.8);
  --article-bg-light: rgba(63, 149, 188, 0.1);
  --article-bg-medium: rgba(63, 149, 188, 0.05);
}

/* MikroTik ECMP Article Theme - Professional Blue Gradient */
.article-ecmp {
  --article-primary: #0d47a1; /* Ø¢Ø¨ÛŒ ØªÛŒØ±Ù‡ - Ø§ØµÙ„ÛŒ */
  --article-primary-hover: #0a3a8a;
  --article-accent: #0288d1; /* Ø¢Ø¨ÛŒ ÙÛŒØ±ÙˆØ²Ù‡â€ŒØ§ÛŒ - Ù‡Ø§ÛŒÙ„Ø§ÛŒØª */
  --article-secondary: #eceff1; /* Ø®Ø§Ú©Ø³ØªØ±ÛŒ Ø±ÙˆØ´Ù† - Ù¾Ø³â€ŒØ²Ù…ÛŒÙ†Ù‡ */
  --article-success: #388e3c; /* Ø³Ø¨Ø² Ù„Ø§Ø¬ÙˆØ±Ø¯ÛŒ - Ù…ÙˆÙÙ‚ÛŒØª */
  --article-warning: #fbc02d; /* Ø²Ø±Ø¯ Ú©Ù‡Ø±Ø¨Ø§ÛŒÛŒ - Ù‡Ø´Ø¯Ø§Ø± */
  --article-error: #c62828; /* Ù‚Ø±Ù…Ø² ØªÛŒØ±Ù‡ - Ø®Ø·Ø§ */
  --article-text-dark: #263238; /* Ø®Ø§Ú©Ø³ØªØ±ÛŒ ØªÛŒØ±Ù‡ - Ù…ØªÙ† Ø§ØµÙ„ÛŒ */
  --article-shadow: rgba(13, 71, 161, 0.15);
  --article-gradient: linear-gradient(135deg, #0d47a1, #0288d1, #eceff1);
  --article-text-light: rgba(255, 255, 255, 0.95);
  --article-text-medium: rgba(255, 255, 255, 0.85);
  --article-bg-light: rgba(13, 71, 161, 0.03);
  --article-bg-medium: rgba(13, 71, 161, 0.05);
}

/* Article Banner Styles */
.article-openvpn .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

.article-blocking .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

.article-nginx .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

.article-ecmp .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

/* ECMP Article Specific Styles */
.article-ecmp .code-block {
  background: linear-gradient(135deg, #0d47a1 0%, #0288d1 100%);
  border-radius: 12px;
  box-shadow: 0 8px 25px -5px rgba(13, 71, 161, 0.3);
  border: 1px solid rgba(2, 136, 209, 0.2);
}

.article-ecmp .code-block .code-header {
  background: rgba(13, 71, 161, 0.1);
  border-bottom: 1px solid rgba(2, 136, 209, 0.2);
}

.article-ecmp .code-block .code-lang {
  color: #eceff1;
  background: rgba(2, 136, 209, 0.2);
}

.article-ecmp .code-block .copy-btn {
  background: rgba(2, 136, 209, 0.2);
  color: #eceff1;
  border: 1px solid rgba(2, 136, 209, 0.3);
}

.article-ecmp .code-block .copy-btn:hover {
  background: rgba(2, 136, 209, 0.4);
  color: white;
}

.article-ecmp .code-block pre {
  color: #eceff1;
}

/* ECMP Article Method Cards */
.article-ecmp .method-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid #0d47a1;
  box-shadow: 0 8px 25px -5px rgba(13, 71, 161, 0.1);
}

.article-ecmp .method-card .method-number-badge {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
}

.article-ecmp .method-card .method-title {
  color: #0d47a1;
}

.article-ecmp .method-card .method-icon {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
}

/* ECMP Article Tables */
.article-ecmp .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(13, 71, 161, 0.03);
}

.article-ecmp .table-striped tbody tr:hover {
  background-color: rgba(2, 136, 209, 0.1);
}

.article-ecmp .table thead th {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
  border: none;
}

.article-ecmp .table tbody td {
  border-color: rgba(2, 136, 209, 0.2);
}

/* ECMP Article FAQ Items */
.article-ecmp .faq-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border-left: 4px solid #0288d1;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 15px -5px rgba(13, 71, 161, 0.1);
}

.article-ecmp .faq-item h4 {
  color: #0d47a1;
  margin-bottom: 0.75rem;
}

.article-ecmp .faq-item p {
  color: #263238;
  margin: 0;
}

/* ECMP Article Author Bio */
.article-ecmp .author-bio .author-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid #0d47a1;
  box-shadow: 0 8px 25px -5px rgba(13, 71, 161, 0.1);
}

.article-ecmp .author-bio .expert-badge {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
}

.article-ecmp .author-bio .author-social a {
  background: rgba(13, 71, 161, 0.1);
  color: #0d47a1;
  border: 1px solid rgba(2, 136, 209, 0.2);
}

.article-ecmp .author-bio .author-social a:hover {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
  transform: translateY(-2px);
}

/* ECMP Article Buttons */
.article-ecmp .btn-primary {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  border: none;
  color: white;
  box-shadow: 0 4px 15px -5px rgba(13, 71, 161, 0.3);
}

.article-ecmp .btn-primary:hover {
  background: linear-gradient(135deg, #0a3a8a, #0277bd);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -5px rgba(13, 71, 161, 0.4);
}

.article-ecmp .btn-outline-secondary {
  border: 2px solid #0288d1;
  color: #0d47a1;
  background: transparent;
}

.article-ecmp .btn-outline-secondary:hover {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
  border-color: #0d47a1;
}

/* ECMP Article Stats */
.article-ecmp .stat-item .stat-icon {
  background: linear-gradient(135deg, #0d47a1, #0288d1);
  color: white;
}

.article-ecmp .stat-item:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #388e3c, #4caf50);
}

.article-ecmp .stat-item:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #fbc02d, #ffc107);
}

/* SSH Linux Article Theme - Professional Green Gradient */
.article-ssh {
  --article-primary: #1b5e20; /* Ø³Ø¨Ø² ØªÛŒØ±Ù‡ - Ø§ØµÙ„ÛŒ */
  --article-primary-hover: #0d4a16;
  --article-accent: #4caf50; /* Ø³Ø¨Ø² Ø±ÙˆØ´Ù† - Ù‡Ø§ÛŒÙ„Ø§ÛŒØª */
  --article-secondary: #e8f5e8; /* Ø³Ø¨Ø² Ø±ÙˆØ´Ù† - Ù¾Ø³â€ŒØ²Ù…ÛŒÙ†Ù‡ */
  --article-success: #2e7d32; /* Ø³Ø¨Ø² Ø²Ù…Ø±Ø¯ÛŒ - Ù…ÙˆÙÙ‚ÛŒØª */
  --article-warning: #ff9800; /* Ù†Ø§Ø±Ù†Ø¬ÛŒ - Ù‡Ø´Ø¯Ø§Ø± */
  --article-error: #d32f2f; /* Ù‚Ø±Ù…Ø² - Ø®Ø·Ø§ */
  --article-text-dark: #1b5e20; /* Ø³Ø¨Ø² ØªÛŒØ±Ù‡ - Ù…ØªÙ† Ø§ØµÙ„ÛŒ */
  --article-shadow: rgba(27, 94, 32, 0.2);
  --article-gradient: linear-gradient(135deg, #1b5e20, #4caf50, #e8f5e8);
  --article-text-light: rgba(255, 255, 255, 0.95);
  --article-text-medium: rgba(255, 255, 255, 0.85);
  --article-bg-light: rgba(27, 94, 32, 0.05);
  --article-bg-medium: rgba(27, 94, 32, 0.08);
  --article-glass: rgba(255, 255, 255, 0.1);
  --article-glass-border: rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs Styling */
.breadcrumb-nav {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(2, 136, 209, 0.1);
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: #263238;
}

.breadcrumb-item a {
  color: #0d47a1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #0288d1;
}

.breadcrumb-item.active {
  color: #0288d1;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "â€º";
  color: #0288d1;
  font-weight: bold;
}

/* SSH Article Specific Styles */
.article-ssh .header .logo h1 {
  color: #1b5e20 !important;
  background: linear-gradient(135deg, #1b5e20, #4caf50, #66bb6a) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  background-size: 200% 200%;
  animation: gradientFlow 3s ease-in-out infinite;
}

.article-ssh {
  --pcd-accent: var(--article-primary);
  --pcd-border: rgba(46, 125, 50, 0.2);
  --pcd-btn: rgba(46, 125, 50, 0.1);
}

.article-ssh .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

.article-ssh .code-block {
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.9) 0%,
    rgba(76, 175, 80, 0.8) 50%,
    rgba(27, 94, 32, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(27, 94, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.article-ssh .code-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.article-ssh .code-block .code-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.article-ssh .code-block .code-lang {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-ssh .code-block .copy-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-ssh .code-block .copy-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.article-ssh .code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.article-ssh .code-block .copy-btn:hover::before {
  left: 100%;
}

.article-ssh .code-block pre {
  color: #eceff1;
}

.article-ssh .method-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(232, 245, 232, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border-left: 6px solid #1b5e20;
  box-shadow: 0 8px 32px rgba(27, 94, 32, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-ssh .method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.02) 0%,
    rgba(76, 175, 80, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-ssh .method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 94, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-left-color: #4caf50;
}

.article-ssh .method-card:hover::before {
  opacity: 1;
}

.article-ssh .method-card .method-number-badge {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.article-ssh .method-card .method-number-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 50%;
}

.article-ssh .method-card .method-title {
  color: #1b5e20;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.article-ssh .method-card .method-icon {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  color: white;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.article-ssh .method-card .method-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 12px;
}

.article-ssh .btn-primary {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-ssh .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.article-ssh .btn-primary:hover {
  background: linear-gradient(135deg, #0d4a16, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 94, 32, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.article-ssh .btn-primary:hover::before {
  left: 100%;
}

.article-ssh .btn-outline-secondary {
  border: 2px solid #4caf50;
  color: #1b5e20;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-ssh .btn-outline-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-ssh .btn-outline-secondary:hover {
  color: white;
  border-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 94, 32, 0.3);
}

.article-ssh .btn-outline-secondary:hover::before {
  opacity: 1;
}

.article-ssh .stat-item .stat-icon {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  color: #2e7d32;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.article-ssh .stat-item .stat-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(76, 175, 80, 0.3) 0%,
    transparent 50%,
    rgba(27, 94, 32, 0.2) 100%
  );
  border-radius: 16px;
}

.article-ssh .stat-item:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #1b5e20;
}

.article-ssh .stat-item:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #4caf50;
}

.article-ssh .article-category {
  background: linear-gradient(135deg, #1b5e20, #4caf50);
  color: white;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.article-ssh .article-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 20px;
}

/* SSH Article Responsive Design */
@media (max-width: 768px) {
  .article-ssh .method-card {
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

  .article-ssh .method-card .method-number-badge {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .article-ssh .method-card .method-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .article-ssh .code-block {
    border-radius: 12px;
    margin: 1rem 0;
  }

  .article-ssh .btn-primary,
  .article-ssh .btn-outline-secondary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .article-ssh .method-card {
    border-radius: 12px;
    padding: 1rem;
  }

  .article-ssh .method-card .method-number-badge {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .article-ssh .method-card .method-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .article-ssh .code-block {
    border-radius: 8px;
  }

  .article-ssh .code-block .code-header {
    padding: 0.5rem;
  }

  .article-ssh .code-block .code-lang {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .article-ssh .btn-primary,
  .article-ssh .btn-outline-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
}

/* Nginx Article Specific Styles */
.article-nginx .code-block {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 1.5rem 0;
}

.article-nginx .code-block .code-header {
  background: linear-gradient(135deg, #00bf73 0%, #ff830a 100%);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-nginx .code-block .code-lang {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-nginx .code-block .copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-nginx .code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.article-nginx .code-block pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
}

.article-nginx .code-block code {
  color: #e6e6e6;
  font-family: "Fira Code", "Consolas", "Monaco", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-nginx .prerequisites-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 6px solid #00bf73;
  margin: 2rem 0;
}

.article-nginx .prerequisites-box h4 {
  color: #00bf73;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-nginx .prerequisites-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-nginx .prerequisites-box li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.article-nginx .advantages-list ul li {
  color: #4a5568;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.article-nginx .advantages-list ul li:before {
  content: "âœ“";
  position: absolute;
  left: 0;
  color: #00bf73;
  font-weight: bold;
  font-size: 1.1rem;
}

.article-nginx .faq-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid #ff830a;
}

.article-nginx .faq-item h4 {
  color: #0d191c;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.article-nginx .faq-item p {
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

.article-nginx .faq-item code {
  background: #0d191c;
  color: #00bf73;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Nginx Author Bio Styles - Override all previous styles */
.article-nginx .author-bio {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  margin: 3rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 191, 115, 0.1) !important;
}

.article-nginx .author-bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00bf73, #ff830a, #0d191c);
}

.article-nginx .author-card {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-nginx .author-photo {
  flex-shrink: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-nginx .author-photo img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid #00bf73 !important;
  box-shadow: 0 8px 25px -5px rgba(0, 191, 115, 0.3) !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
}

.article-nginx .author-photo img:hover {
  transform: scale(1.05);
  border-color: #ff830a;
  box-shadow: 0 12px 35px -5px rgba(255, 131, 10, 0.4);
}

.article-nginx .author-details {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-nginx .author-details h3 {
  color: #0d191c !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
  background: transparent !important;
}

.article-nginx .author-details h4 {
  color: #00bf73 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.article-nginx .expert-badge {
  background: linear-gradient(135deg, #ff830a, #ff6a00);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px -5px rgba(255, 131, 10, 0.4);
}

.article-nginx .author-details p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.article-nginx .author-social {
  display: flex;
  gap: 1rem;
}

.article-nginx .author-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-nginx .author-social a.linkedin {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
}

.article-nginx .author-social a.github {
  background: linear-gradient(135deg, #333, #000);
  color: white;
}

.article-nginx .author-social a.twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  color: white;
}

.article-nginx .author-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
}

.article-nginx .floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.article-nginx .floating-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.article-nginx .floating-particles .particle:nth-child(1) {
  background: #00bf73;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.article-nginx .floating-particles .particle:nth-child(2) {
  background: #ff830a;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.article-nginx .floating-particles .particle:nth-child(3) {
  background: #0d191c;
  top: 40%;
  left: 80%;
  animation-delay: 4s;
}

.article-nginx .floating-particles .particle:nth-child(4) {
  background: #00bf73;
  top: 80%;
  left: 20%;
  animation-delay: 1s;
}

.article-nginx .floating-particles .particle:nth-child(5) {
  background: #ff830a;
  top: 30%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Responsive Author Bio */
@media (max-width: 768px) {
  .article-nginx .author-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .article-nginx .author-photo img {
    width: 140px !important;
    height: 140px !important;
  }

  .article-nginx .author-details h3 {
    font-size: 1.3rem !important;
  }

  .article-nginx .author-details h4 {
    font-size: 1.1rem !important;
    justify-content: center !important;
  }
}

/* Fix stat-number overflow for long words */
.article-nginx .stat-number {
  font-size: 0.9rem !important;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

/* Responsive adjustments for stat items */
@media (max-width: 768px) {
  .article-nginx .stat-number {
    font-size: 0.8rem !important;
  }

  .article-nginx .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
}

/* Blocking Article Specific Styles */
.article-blocking .method-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid #d04338;
  position: relative;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.article-blocking .method-number-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(208, 67, 56, 0.5);
}

.article-blocking .method-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.article-blocking .method-tips h4::before {
  content: "âš¡";
  font-size: 1.1rem;
  color: #d04338;
}

.article-blocking .troubleshooting-methods .method-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid #d04338;
  position: relative;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.article-blocking .troubleshooting-methods .method-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Blocking Article Additional Styles */
.article-blocking .intro-content {
  margin-bottom: 2rem;
}

.article-blocking .intro-highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 6px solid #d04338;
  margin-top: 1.5rem;
}

.article-blocking .intro-highlight h4 {
  color: #d04338;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-blocking .intro-highlight ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-blocking .intro-highlight li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.article-blocking .methods-overview {
  margin-bottom: 2rem;
}

.article-blocking .methods-overview p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
}

.article-blocking .methods-comparison {
  margin: 2rem 0;
}

.article-blocking .comparison-table {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.article-blocking .table-header {
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  padding: 1rem 1.5rem;
}

.article-blocking .table-header h4 {
  color: white;
  margin: 0;
  font-weight: 600;
}

.article-blocking .table-content {
  padding: 0;
}

.article-blocking .method-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.article-blocking .method-row:last-child {
  border-bottom: none;
}

.article-blocking .method-row:nth-child(even) {
  background: #f8fafc;
}

.article-blocking .method-name strong {
  color: #d04338;
  font-weight: 600;
}

.article-blocking .method-desc {
  color: #4a5568;
}

.article-blocking .method-pros {
  color: #d04338; /* Red instead of blue */
  font-weight: 500;
}

.article-blocking .implementation-intro {
  margin-bottom: 2rem;
}

.article-blocking .implementation-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #d04338; /* Red instead of blue */
}

.article-blocking .prerequisites-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 6px solid #d04338; /* Red instead of blue */
  margin: 2rem 0;
}

.article-blocking .prerequisites-box h4 {
  color: #d04338; /* Red instead of blue */
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-blocking .prerequisites-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-blocking .prerequisites-box li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.article-blocking .implementation-steps {
  margin-bottom: 1.5rem;
}

.article-blocking .implementation-steps h4 {
  color: #d04338;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-blocking .implementation-steps ol {
  margin: 0;
  padding-left: 1.5rem;
}

.article-blocking .implementation-steps li {
  margin-bottom: 0.5rem;
  color: #4a5568;
  line-height: 1.6;
}

.article-blocking .method-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article-blocking .pros,
.article-blocking .cons {
  padding: 1rem;
  border-radius: 12px;
}

.article-blocking .pros {
  background: linear-gradient(
    135deg,
    #fef2f2 0%,
    #fee2e2 100%
  ); /* Red background instead of blue */
  border-left: 4px solid #d04338; /* Red instead of blue */
}

.article-blocking .cons {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #d04338;
}

.article-blocking .pros h5,
.article-blocking .cons h5 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.article-blocking .pros h5 {
  color: #d04338; /* Red instead of blue */
}

.article-blocking .cons h5 {
  color: #d04338;
}

.article-blocking .pros ul,
.article-blocking .cons ul {
  margin: 0;
  padding-left: 1.25rem;
}

.article-blocking .pros li,
.article-blocking .cons li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-blocking .pros li {
  color: #d04338; /* Red instead of blue */
}

.article-blocking .cons li {
  color: #dc2626;
}

/* Fix text overflow issues */
.article-blocking .method-card,
.article-blocking .method-tips,
.article-blocking .method-pros-cons,
.article-blocking .comparison-table,
.article-blocking .intro-content,
.article-blocking .methods-overview,
.article-blocking .implementation-intro,
.article-blocking .prerequisites-box {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.article-blocking .method-title,
.article-blocking .method-description,
.article-blocking .method-tips h4,
.article-blocking .method-tips li,
.article-blocking .pros h5,
.article-blocking .cons h5,
.article-blocking .pros li,
.article-blocking .cons li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive text sizing */
@media (min-width: 1200px) {
  .article-blocking .method-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .article-blocking .method-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-blocking .method-tips li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Blocking Article Code Blocks */
.article-blocking .code-block {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 1.5rem 0;
}

.article-blocking .code-block .code-header {
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-blocking .code-block .code-lang {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-blocking .code-block .copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-blocking .code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.article-blocking .code-block pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  color: #ffffff; /* White instead of cream */
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.article-blocking .code-block code {
  color: #ffffff; /* White instead of cream */
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: "Courier New", monospace;
}

/* Blocking Article Author Bio */
.article-blocking .author-bio .author-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid #d04338;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-blocking .author-bio .author-details h3 {
  color: #d04338;
  font-weight: 600;
}

.article-blocking .author-bio .author-details h4 {
  color: #d04338; /* Red instead of blue */
  font-weight: 600;
}

.article-blocking .author-bio .expert-badge {
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-blocking .author-bio .author-social a {
  color: #d04338;
  transition: all 0.3s ease;
}

.article-blocking .author-bio .author-social a:hover {
  color: #d04338; /* Red instead of blue */
  transform: translateY(-2px);
}

/* OpenVPN Article Styles */
.article-openvpn .article-banner .banner-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.article-openvpn .article-banner .banner-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-openvpn .article-banner .banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.article-openvpn .btn-primary {
  background: var(--article-primary);
  border-color: var(--article-primary);
}

.article-openvpn .btn-primary:hover {
  background: var(--article-primary-hover);
  border-color: var(--article-primary-hover);
}

.article-openvpn .btn-outline-secondary {
  border-color: var(--article-secondary);
  color: var(--article-secondary);
}

.article-openvpn .btn-outline-secondary:hover {
  background: var(--article-secondary);
  border-color: var(--article-secondary);
  color: white;
}

.article-openvpn .btn-outline-secondary .btn-content {
  color: var(--article-secondary);
}

.article-openvpn .btn-outline-secondary .btn-arrow {
  color: var(--article-secondary);
}

.article-openvpn .btn-outline-secondary:hover .btn-content,
.article-openvpn .btn-outline-secondary:hover .btn-arrow {
  color: white;
}

.article-openvpn .article-category {
  background: var(--article-primary);
}

.article-openvpn .stat-item .stat-icon {
  background: var(--article-primary);
}

.article-openvpn .stat-item:nth-child(2) .stat-icon {
  background: var(--article-secondary);
}

.article-openvpn .stat-item:nth-child(3) .stat-icon {
  background: var(--article-accent);
}

/* OpenVPN Article Author Bio */
.article-openvpn .author-bio .author-card {
  background: linear-gradient(
    135deg,
    rgba(255, 141, 25, 0.1),
    rgba(255, 179, 102, 0.05)
  );
  border: 1px solid rgba(255, 141, 25, 0.2);
  border-left: 6px solid #ff8d19;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-openvpn .author-bio .author-details h3 {
  color: #ff8d19;
  font-weight: 600;
}

.article-openvpn .author-bio .author-details h4 {
  color: #ff8d19;
  font-weight: 600;
}

.article-openvpn .author-bio .expert-badge {
  background: linear-gradient(135deg, #ff8d19 0%, #e67e00 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-openvpn .author-bio .author-social a {
  color: #ff8d19;
  transition: color 0.3s ease;
}

.article-openvpn .author-bio .author-social a:hover {
  color: #e67e00;
}

/* Linux Article Theme - Purple/Orange */
.article-linux {
  --article-primary: #7c3aed;
  --article-primary-hover: #6d28d9;
  --article-accent: #ea580c;
  --article-shadow: rgba(124, 58, 237, 0.1);
  --article-gradient: linear-gradient(135deg, #7c3aed, #ea580c);
  --article-secondary: #fef3c7;
  --article-text-light: rgba(254, 243, 199, 0.9);
  --article-text-medium: rgba(254, 243, 199, 0.8);
  --article-bg-light: rgba(124, 58, 237, 0.1);
  --article-bg-medium: rgba(124, 58, 237, 0.05);
}

/* ===============================================
   COMMON ARTICLE STYLES
   =============================================== */

/* Article Page Base Styles */
.article-page {
  font-family: var(--persian-font, "Vazirmatn", sans-serif);
  line-height: 1.7;
}

.article-page .hero {
  background: var(--article-gradient);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.article-page .hero-background .bg-shape-1 {
  background: var(--article-bg-light);
}

.article-page .hero-background .bg-shape-2 {
  background: var(--article-bg-light);
}

.article-page .hero-background .bg-shape-3 {
  background: var(--article-bg-medium);
}

/* Article Header Text Colors */
.article-page .hero .article-title {
  background: linear-gradient(
    135deg,
    var(--article-secondary) 0%,
    var(--article-primary) 20%,
    var(--article-secondary) 40%,
    var(--article-primary) 60%,
    var(--article-secondary) 80%,
    var(--article-primary) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

.article-page .hero .article-excerpt {
  color: var(--article-text-light);
}

.article-page .hero .article-meta .meta-date {
  color: var(--article-text-medium);
}

.article-page .hero .article-meta .meta-date time {
  color: var(--article-text-light);
}

/* Article Banner */
.article-page .article-banner .banner-card {
  background: var(--article-gradient);
  box-shadow: 0 8px 32px var(--article-shadow);
}

.article-page .article-banner .banner-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.article-page .article-banner .banner-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-page .article-banner .banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Article Buttons */
.article-page .btn-primary {
  background: var(--article-primary);
  border-color: var(--article-primary);
}

.article-page .btn-primary:hover {
  background: var(--article-primary-hover);
  border-color: var(--article-primary-hover);
}

.article-page .btn-outline-secondary {
  border-color: var(--article-secondary);
  color: var(--article-secondary);
}

.article-page .btn-outline-secondary:hover {
  background: var(--article-secondary);
  border-color: var(--article-secondary);
  color: white;
}

/* Article Stats */
.article-page .stat-item .stat-icon {
  background: var(--article-primary);
}

.article-page .stat-item:nth-child(2) .stat-icon {
  background: var(--article-secondary);
}

.article-page .stat-item:nth-child(3) .stat-icon {
  background: var(--article-accent);
}

/* Article Category */
.article-page .article-category {
  background: var(--article-primary);
  color: white;
}

/* ===============================================
   ARTICLE COMPONENTS
   =============================================== */

/* Code Blocks */
.article-page .code-block {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: 1.5rem 0;
}

.article-page .code-block .code-header {
  background: var(--article-gradient);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-page .code-block .code-lang {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-page .code-block .copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-page .code-block .copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.article-page .code-block pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.article-page .code-block code {
  color: #ffffff;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: "Courier New", monospace;
}

/* Highlight Boxes */
.article-page .highlight-box,
.article-page .info-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 6px solid var(--article-primary);
  margin: 1.5rem 0;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-page .highlight-box h4,
.article-page .info-box h4 {
  color: var(--article-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-page .highlight-box ul,
.article-page .info-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-page .highlight-box li,
.article-page .info-box li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

/* Method Cards */
.article-page .method-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid var(--article-primary);
  position: relative;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  padding: 2rem;
}

.article-page .method-number-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--article-gradient);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px var(--article-shadow);
}

.article-page .method-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--article-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.article-page .method-title {
  color: var(--article-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-page .method-description {
  color: #4a5568;
  margin-bottom: 1.5rem;
}

/* Method Tips */
.article-page .method-tips h4 {
  color: var(--article-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-page .method-tips h4::before {
  content: "âš¡";
  font-size: 1.1rem;
  color: var(--article-primary);
  margin-left: 0.5rem;
}

.article-page .method-tips ul {
  margin: 0;
  padding-left: 1.5rem;
}

.article-page .method-tips li {
  margin-bottom: 0.5rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Pros and Cons */
.article-page .method-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article-page .pros,
.article-page .cons {
  padding: 1rem;
  border-radius: 12px;
}

.article-page .pros {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--article-accent);
}

.article-page .cons {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid var(--article-primary);
}

.article-page .pros h5,
.article-page .cons h5 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.article-page .pros h5 {
  color: var(--article-accent);
}

.article-page .cons h5 {
  color: var(--article-primary);
}

.article-page .pros ul,
.article-page .cons ul {
  margin: 0;
  padding-left: 1.25rem;
}

.article-page .pros li,
.article-page .cons li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-page .pros li {
  color: #1e40af;
}

.article-page .cons li {
  color: #007aff;
}

/* Author Bio - General styles (overridden by specific themes) */
.article-page .author-bio .author-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border-left: 6px solid var(--article-primary);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Override for Nginx theme */
.article-nginx .author-bio .author-card {
  background: linear-gradient(
    135deg,
    rgba(0, 191, 115, 0.1),
    rgba(255, 131, 10, 0.05)
  ) !important;
  border: 1px solid rgba(0, 191, 115, 0.2) !important;
  border-left: 6px solid #00bf73 !important;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  margin: 0 !important;
}

.article-page .author-bio .author-details h3 {
  color: #d04338;
  font-weight: 600;
}

.article-page .author-bio .author-details h4 {
  color: #d04338;
  font-weight: 600;
}

/* Override for Nginx theme */
.article-nginx .author-bio .author-details h3 {
  color: #00bf73 !important;
  font-weight: 600 !important;
}

.article-nginx .author-bio .author-details h4 {
  color: #00bf73 !important;
  font-weight: 600 !important;
}

.article-page .author-bio .expert-badge {
  background: var(--article-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-page .author-bio .author-social a {
  color: var(--article-primary);
  transition: all 0.3s ease;
}

.article-page .author-bio .author-social a:hover {
  color: var(--article-accent);
  transform: translateY(-2px);
}

/* Override for Nginx theme */
.article-nginx .author-bio .expert-badge {
  background: linear-gradient(135deg, #00bf73 0%, #ff830a 100%) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px -5px rgba(0, 191, 115, 0.4) !important;
}

.article-nginx .author-bio .author-social a {
  color: #00bf73 !important;
  transition: color 0.3s ease !important;
}

.article-nginx .author-bio .author-social a:hover {
  color: #ff830a !important;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
  .article-page .method-pros-cons {
    grid-template-columns: 1fr;
  }

  .article-page .method-card {
    padding: 1.5rem;
  }

  .article-page .method-number-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .article-page .method-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .article-page .method-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .article-page .method-tips li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
  }
  100% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@keyframes heroGlow {
  0% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 40px rgba(255, 255, 255, 0.05);
  }
  100% {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.3),
      0 0 60px rgba(255, 255, 255, 0.1);
  }
}

/* ===============================================
   HERO BACKGROUND ENHANCEMENTS
   =============================================== */

/* MikroTik Website Blocking Page - Red Gradient Background */
body[data-page="mikrotik-block-website"] .hero-background {
  background: linear-gradient(135deg, #d00000, #6a040f);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* MikroTik OpenVPN Setup Page - Orange Gradient Background */
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background {
  background: linear-gradient(135deg, #ff6a00, #ff8e53);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Override hero::after for OpenVPN article with orange theme */
body[data-page="mikrotik-openvpn-setup-v7"] .hero::after {
  background: linear-gradient(45deg, #ff8d19, #ff6b35, #e67e00) !important;
}

/* Override hero::after for SSH Linux article with green theme */
body[data-page="ssh-linux-guide"] .hero::after {
  background: linear-gradient(45deg, #1b5e20, #4caf50, #2e7d32) !important;
}

/* Override hero::after for MikroTik Block Website article with red theme */
body[data-page="mikrotik-block-website"] .hero::after {
  background: linear-gradient(45deg, #d04338, #e74c3c, #b8392f) !important;
}

/* Nginx Installation Page - Green/Orange/Dark Gradient Background */
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background {
  background: linear-gradient(135deg, #00bf73, #ff830a, #0d191c);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Windows CMD Page - Microsoft Blue Gradient Background */
body[data-page="windows-cmd-common-network-commands"] .hero-background {
  background: linear-gradient(135deg, #3f95bc, #081a2a, #ffffff);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* White text for all content inside hero-background */
body[data-page="mikrotik-block-website"] .hero-background *,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background *,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background *,
body[data-page="windows-cmd-common-network-commands"] .hero-background * {
  color: #ffffff !important;
}

/* Animated glow effect for headings inside hero-background */
body[data-page="mikrotik-block-website"] .hero-background h1,
body[data-page="mikrotik-block-website"] .hero-background h2,
body[data-page="mikrotik-block-website"] .hero-background h3,
body[data-page="mikrotik-block-website"] .hero-background h4,
body[data-page="mikrotik-block-website"] .hero-background h5,
body[data-page="mikrotik-block-website"] .hero-background h6,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h1,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h2,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h3,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h4,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h5,
body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h6,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h1,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h2,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h3,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h4,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h5,
body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h6,
body[data-page="windows-cmd-common-network-commands"] .hero-background h1,
body[data-page="windows-cmd-common-network-commands"] .hero-background h2,
body[data-page="windows-cmd-common-network-commands"] .hero-background h3,
body[data-page="windows-cmd-common-network-commands"] .hero-background h4,
body[data-page="windows-cmd-common-network-commands"] .hero-background h5,
body[data-page="windows-cmd-common-network-commands"] .hero-background h6 {
  animation: heroGlow 3s ease-in-out infinite alternate;
}

/* Accessibility - Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  body[data-page="mikrotik-block-website"] .hero-background h1,
  body[data-page="mikrotik-block-website"] .hero-background h2,
  body[data-page="mikrotik-block-website"] .hero-background h3,
  body[data-page="mikrotik-block-website"] .hero-background h4,
  body[data-page="mikrotik-block-website"] .hero-background h5,
  body[data-page="mikrotik-block-website"] .hero-background h6,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h1,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h2,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h3,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h4,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h5,
  body[data-page="mikrotik-openvpn-setup-v7"] .hero-background h6,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h1,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h2,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h3,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h4,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h5,
  body[data-page="nginx-installation-configuration-ubuntu"] .hero-background h6,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h1,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h2,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h3,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h4,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h5,
  body[data-page="windows-cmd-common-network-commands"] .hero-background h6 {
    animation: none !important;
  }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.article-page .text-primary {
  color: var(--article-primary) !important;
}

.article-page .text-accent {
  color: var(--article-accent) !important;
}

.article-page .text-secondary {
  color: var(--article-secondary) !important;
}

.article-page .bg-primary {
  background: var(--article-primary) !important;
}

.article-page .bg-accent {
  background: var(--article-accent) !important;
}

.article-page .border-primary {
  border-color: var(--article-primary) !important;
}

.article-page .border-accent {
  border-color: var(--article-accent) !important;
}

/* ===============================================
 * GENERAL AUTHOR BIO STYLES
 * ===============================================
 * Base styles for author bio section
 */

.author-bio {
  position: relative;
  margin: 3rem 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-bio .author-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.author-bio .author-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

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

.author-bio .author-details {
  flex: 1;
  color: #333;
}

.author-bio .author-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.author-bio .author-details h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-bio .expert-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-bio .author-details p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  color: #666;
}

.author-bio .author-social {
  display: flex;
  gap: 1rem;
}

.author-bio .author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-bio .author-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #333;
}

/* Floating Particles */
.author-bio .floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.author-bio .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.author-bio .particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.author-bio .particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.author-bio .particle:nth-child(3) {
  top: 40%;
  left: 60%;
  animation-delay: 4s;
}

.author-bio .particle:nth-child(4) {
  top: 80%;
  left: 30%;
  animation-delay: 1s;
}

.author-bio .particle:nth-child(5) {
  top: 30%;
  left: 70%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* ===============================================
 * RELATED ARTICLES SECTION
 * ===============================================
 * Modern related articles section with card design
 */

.related-articles {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.related-articles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  z-index: 1;
}

.related-articles .container {
  position: relative;
  z-index: 2;
}

.related-articles h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
  position: relative;
}

.related-articles h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--article-primary),
    var(--article-accent)
  );
  border-radius: 2px;
}

.related-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

.related-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--article-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: var(--article-accent);
  transform: translateX(5px);
}

.read-more::after {
  content: "â†’";
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}
/* ===============================================
 * RELATED ARTICLES SECTION
 * ===============================================
 * Modern related articles section with card design
 */

.related-articles {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.related-articles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  z-index: 1;
}

.related-articles .container {
  position: relative;
  z-index: 2;
}

.related-articles h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
  position: relative;
}

.related-articles h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--article-primary),
    var(--article-accent)
  );
  border-radius: 2px;
}

.related-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

.related-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--article-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: var(--article-accent);
  transform: translateX(5px);
}

.read-more::after {
  content: "â†’";
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}
