/* Blog Styles for RewardSmart */

/* CSS Variables */
:root {
  --blog-primary: #4F46E5;
  --blog-primary-dark: #4338CA;
  --blog-primary-light: #818CF8;
  --blog-secondary: #10B981;
  --blog-text: #1F2937;
  --blog-text-light: #6B7280;
  --blog-bg: #F9FAFB;
  --blog-card-bg: #FFFFFF;
  --blog-border: #E5E7EB;
  --blog-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --blog-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --blog-radius: 12px;
  --blog-radius-sm: 8px;
}

/* Blog Hero Section */
.blog-hero {
  text-align: center;
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
  color: #fff;
}

.blog-hero .container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Override navbar text color on blog pages - navbar is always .scrolled on blog */
/* This is needed because the blog hero has a purple gradient background */
body .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
}

body .navbar.scrolled .nav-links a,
.article-page-body .navbar .nav-links a,
.article-page-body .navbar.scrolled .nav-links a {
  color: #1F2937 !important;
}

body .navbar.scrolled .nav-links a:hover,
body .navbar.scrolled .nav-links a.active,
.article-page-body .navbar .nav-links a:hover,
.article-page-body .navbar .nav-links a.active {
  color: #4F46E5 !important;
}

body .navbar.scrolled .logo,
.article-page-body .navbar .logo,
.article-page-body .navbar .logo span {
  color: #1F2937 !important;
}

/* Blog Header (Legacy support) */
.blog-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
  color: #fff;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Content Section */
.blog-content {
  padding: 40px 0 80px;
  background: var(--blog-bg);
  min-height: 400px;
}

.blog-content .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--blog-text-light);
}

.loading-state .loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--blog-border);
  border-top-color: var(--blog-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loading-state p {
  font-size: 1rem;
}

/* Empty State */
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 30px 20px;
  background: var(--blog-card-bg);
  border-bottom: 1px solid var(--blog-border);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.category-filter .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tab {
  padding: 10px 20px;
  border: 2px solid var(--blog-border);
  background: var(--blog-card-bg);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blog-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--blog-primary-light);
  color: var(--blog-primary);
}

.filter-tab.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #fff;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid var(--blog-border);
  background: var(--blog-card-bg);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blog-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: var(--blog-primary-light);
  color: var(--blog-primary);
}

.category-btn.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #fff;
}

/* Article Grid - supports both class names */
.article-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Article Card */
.article-card {
  background: var(--blog-card-bg);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-shadow-lg);
}

.article-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image .article-category {
  position: absolute;
  top: 12px;
  left: 12px;
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-category {
  background: var(--blog-primary-light);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-category.news { background: #3B82F6; }
.article-category.card-launch { background: #10B981; }
.article-category.deal-roundup { background: #F59E0B; }
.article-category.regulatory { background: #EF4444; }
.article-category.travel { background: #8B5CF6; }
.article-category.strategy { background: #EC4899; }

.article-date {
  color: var(--blog-text-light);
  font-size: 0.875rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blog-text);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  color: var(--blog-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--blog-border);
}

.article-source {
  font-size: 0.8125rem;
  color: var(--blog-text-light);
}

.article-read-time {
  font-size: 0.8125rem;
  color: var(--blog-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-time {
  font-size: 0.8125rem;
  color: var(--blog-text-light);
}

.read-more {
  font-size: 0.8125rem;
  color: var(--blog-primary);
  font-weight: 500;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--blog-radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--blog-card-bg);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
}

.skeleton-image {
  width: 100%;
  height: 200px;
}

.skeleton-content {
  padding: 24px;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }

/* Load More */
.load-more-container {
  text-align: center;
  padding: 40px 20px 60px;
}

.load-more-btn {
  padding: 14px 32px;
  background: var(--blog-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.load-more-btn:hover {
  background: var(--blog-primary-dark);
}

.load-more-btn:disabled {
  background: var(--blog-border);
  cursor: not-allowed;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--blog-text-light);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--blog-text);
  margin-bottom: 12px;
}

.empty-state p {
  max-width: 400px;
  margin: 0 auto;
}

/* Article Detail Page */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-detail-header {
  margin-bottom: 40px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blog-text);
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-detail-summary {
  font-size: 1.25rem;
  color: var(--blog-text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-detail-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  color: var(--blog-text-light);
  font-size: 0.9375rem;
}

.article-detail-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--blog-radius);
  margin-bottom: 40px;
}

/* Article Content Styling */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--blog-text);
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--blog-text);
}

.article-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--blog-text);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--blog-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--blog-primary-dark);
}

.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--blog-bg);
  border-left: 4px solid var(--blog-primary);
  border-radius: var(--blog-radius-sm);
  font-style: italic;
  color: var(--blog-text-light);
}

.article-body code {
  background: var(--blog-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, monospace;
}

.article-body pre {
  background: #1F2937;
  color: #F9FAFB;
  padding: 20px;
  border-radius: var(--blog-radius-sm);
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--blog-radius-sm);
  margin: 24px 0;
}

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

.article-body th, .article-body td {
  padding: 12px 16px;
  border: 1px solid var(--blog-border);
  text-align: left;
}

.article-body th {
  background: var(--blog-bg);
  font-weight: 600;
}

/* Source Attribution */
.source-attribution {
  margin-top: 48px;
  padding: 24px;
  background: var(--blog-bg);
  border-radius: var(--blog-radius);
  font-size: 0.9375rem;
  color: var(--blog-text-light);
}

.source-attribution a {
  color: var(--blog-primary);
  text-decoration: underline;
}

/* Share Buttons */
.share-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--blog-border);
}

.share-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--blog-text);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--blog-radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: #fff;
}

.share-btn.facebook {
  background: #4267B2;
  color: #fff;
}

.share-btn.linkedin {
  background: #0077B5;
  color: #fff;
}

.share-btn.copy {
  background: var(--blog-bg);
  color: var(--blog-text);
  border: 1px solid var(--blog-border);
}

/* Related Articles */
.related-articles {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--blog-border);
}

.related-articles h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--blog-text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Back to Blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 32px;
  padding: 8px 0;
}

.back-to-blog:hover {
  color: var(--blog-primary-dark);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: var(--blog-bg);
  color: var(--blog-text-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.tag:hover {
  background: var(--blog-border);
  color: var(--blog-text);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--blog-border);
  border-top-color: var(--blog-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--blog-text);
}

.error-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.error-state h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-state p {
  color: var(--blog-text-light);
  margin-bottom: 24px;
}

.error-state .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blog-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--blog-radius-sm);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-header {
    padding: 40px 16px 30px;
  }

  .blog-header h1 {
    font-size: 1.875rem;
  }

  .blog-header p {
    font-size: 1rem;
  }

  .category-filter {
    padding: 20px 16px;
    gap: 8px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }

  .article-detail {
    padding: 24px 16px 60px;
  }

  .article-detail-title {
    font-size: 1.75rem;
  }

  .article-detail-summary {
    font-size: 1.0625rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 36px;
  }

  .article-body h3 {
    font-size: 1.25rem;
    margin-top: 28px;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .share-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.5rem;
  }

  .article-detail-meta {
    gap: 10px;
  }

  .article-detail-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .share-btn span:not(.share-icon) {
    display: none;
  }

  .share-btn {
    min-width: auto;
    padding: 10px 14px;
  }
}

/* Print Styles */
@media print {
  .category-filter,
  .share-section,
  .related-articles,
  .back-to-blog,
  nav,
  footer {
    display: none !important;
  }

  .article-detail {
    max-width: 100%;
    padding: 0;
  }

  .article-body {
    font-size: 12pt;
  }

  .article-detail-title {
    font-size: 24pt;
  }
}

/* ================================
   Modern Article Page Styles
   ================================ */

.article-page-body {
  background: var(--blog-bg);
}

.article-page {
  min-height: 100vh;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blog-primary), var(--blog-secondary));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Article Hero Section */
.article-page .article-full .article-hero,
.article-full .article-hero,
.article-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
  padding: 120px 20px 60px;
  text-align: center;
}

.article-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Ensure all hero text is visible */
.article-hero .breadcrumb,
.article-hero .breadcrumb a,
.article-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.8) !important;
}

.article-hero .article-category-badge {
  color: #fff !important;
}

.article-hero .article-headline,
.article-hero h1 {
  color: #fff !important;
}

.article-hero .article-summary-full,
.article-hero p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.article-hero .meta-item,
.article-hero .meta-item span {
  color: rgba(255, 255, 255, 0.8) !important;
}

.article-hero .meta-item svg {
  stroke: rgba(255, 255, 255, 0.7);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.6);
}

/* Category Badge */
.article-category-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
}

.article-category-badge.news { background: rgba(59, 130, 246, 0.3); border: 1px solid rgba(59, 130, 246, 0.5); }
.article-category-badge.card-launch { background: rgba(16, 185, 129, 0.3); border: 1px solid rgba(16, 185, 129, 0.5); }
.article-category-badge.deal-roundup { background: rgba(245, 158, 11, 0.3); border: 1px solid rgba(245, 158, 11, 0.5); }
.article-category-badge.regulatory { background: rgba(239, 68, 68, 0.3); border: 1px solid rgba(239, 68, 68, 0.5); }
.article-category-badge.travel { background: rgba(139, 92, 246, 0.3); border: 1px solid rgba(139, 92, 246, 0.5); }
.article-category-badge.strategy { background: rgba(236, 72, 153, 0.3); border: 1px solid rgba(236, 72, 153, 0.5); }

/* Article Headline */
.article-headline {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

/* Article Summary in Hero */
.article-summary-full {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 32px;
}

/* Meta Bar */
.article-meta-bar {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.meta-item svg {
  opacity: 0.7;
}

.meta-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* Featured Image */
.article-featured-image {
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Article Container - Main Content + Sidebar */
.article-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-main {
  min-width: 0;
}

/* Article Body Enhancements */
.article-main .article-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--blog-text);
}

.article-main .article-body p {
  margin-bottom: 24px;
}

.article-main .article-body h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 24px;
  color: var(--blog-text);
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.article-main .article-body h2::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--blog-primary), var(--blog-secondary));
  border-radius: 2px;
}

.article-main .article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--blog-text);
}

.article-main .article-body ul,
.article-main .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-main .article-body li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.article-main .article-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--blog-primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--blog-text);
}

.article-main .article-body strong {
  color: var(--blog-text);
  font-weight: 600;
}

/* Source Attribution - Modern */
.source-attribution {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid var(--blog-border);
}

.source-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.source-text {
  font-size: 0.9375rem;
  color: var(--blog-text-light);
  line-height: 1.6;
}

.source-text span {
  display: block;
  margin-bottom: 4px;
}

.source-text a {
  color: var(--blog-primary);
  font-weight: 600;
  text-decoration: none;
}

.source-text a:hover {
  text-decoration: underline;
}

/* Tags - Modern Style */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.article-tags .tag {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--blog-text-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tags .tag:hover {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Share Section - Modern */
.share-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--blog-border);
}

.share-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.share-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blog-text);
  white-space: nowrap;
}

.share-line {
  flex: 1;
  height: 1px;
  background: var(--blog-border);
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.twitter {
  background: #1DA1F2;
  color: #fff;
}

.share-btn.facebook {
  background: #1877F2;
  color: #fff;
}

.share-btn.linkedin {
  background: #0A66C2;
  color: #fff;
}

.share-btn.copy {
  background: #f8fafc;
  color: var(--blog-text);
  border: 1px solid var(--blog-border);
}

.share-btn.copy:hover {
  background: #f1f5f9;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

.sidebar-cta .cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sidebar-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.sidebar-cta p {
  font-size: 0.9375rem;
  opacity: 1;
  margin-bottom: 24px;
  line-height: 1.6;
  color: #ffffff !important;
}

.sidebar-cta .cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: var(--blog-primary);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-cta .cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Sidebar Related Articles */
.sidebar-related {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--blog-border);
}

.sidebar-related h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blog-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blog-border);
}

.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-related-item {
  text-decoration: none;
  display: block;
  padding: 12px;
  background: var(--blog-bg);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.sidebar-related-item:hover {
  background: #e0e7ff;
  transform: translateX(4px);
}

.sidebar-item-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blog-primary);
  margin-bottom: 6px;
}

.sidebar-related-item h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blog-text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Articles Section */
.related-articles {
  background: var(--blog-bg);
  padding: 60px 0;
  border-top: 1px solid var(--blog-border);
}

.related-articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.related-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blog-text);
  font-family: 'Poppins', sans-serif;
}

.view-all-link {
  color: var(--blog-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--blog-primary-dark);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Related Card */
.related-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.related-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.related-card-content {
  padding: 20px;
}

.related-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blog-primary);
  margin-bottom: 8px;
}

.related-card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blog-text);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.related-read-time {
  font-size: 0.8125rem;
  color: var(--blog-text-light);
}

/* Bottom CTA Section */
.article-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 80px 20px;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content {
  text-align: center;
  color: #fff;
}

.cta-content .cta-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.cta-content > p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #fff;
  color: var(--blog-primary);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-buttons .cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.cta-buttons .cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-buttons .cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.error-state .error-icon {
  font-size: 5rem;
  margin-bottom: 24px;
}

.error-state h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blog-text);
  margin-bottom: 12px;
}

.error-state p {
  color: var(--blog-text-light);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.error-state .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blog-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.error-state .back-btn:hover {
  background: var(--blog-primary-dark);
  transform: translateY(-2px);
}

/* Responsive - Article Page */
@media (max-width: 1024px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-cta {
    flex: 1;
    min-width: 280px;
  }

  .sidebar-related {
    flex: 1;
    min-width: 280px;
  }

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

@media (max-width: 768px) {
  .article-full .article-hero {
    padding: 100px 16px 48px;
  }

  .article-headline {
    font-size: 1.875rem;
  }

  .article-summary-full {
    font-size: 1.0625rem;
  }

  .meta-left {
    gap: 12px;
  }

  .meta-divider {
    display: none;
  }

  .meta-item {
    font-size: 0.8125rem;
  }

  .article-featured-image {
    padding: 0 16px;
    margin-top: -30px;
  }

  .article-container {
    padding: 32px 16px 60px;
  }

  .article-main .article-body {
    font-size: 1rem;
  }

  .article-main .article-body h2 {
    font-size: 1.5rem;
    margin-top: 40px;
  }

  .article-main .article-body h2::before {
    left: -12px;
    width: 3px;
  }

  .share-buttons {
    width: 100%;
  }

  .share-btn {
    flex: 1;
    justify-content: center;
    min-width: calc(50% - 6px);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    padding: 60px 16px;
  }

  .cta-content h3 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .cta-btn-primary,
  .cta-buttons .cta-btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .article-headline {
    font-size: 1.5rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  .share-btn span:not(:first-child) {
    display: none;
  }

  .share-btn {
    min-width: auto;
    padding: 12px 16px;
  }

  .sidebar-cta,
  .sidebar-related {
    min-width: 100%;
  }
}
