/* Blog article styles matching React design */

.blog-article {
  display: flex;
  flex-direction: column;
}

.blog-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  color: white;
  padding: 3rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

.blog-metadata {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-badge-large {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.blog-date {
  color: #bfdbfe;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: left;
}

.blog-lead {
  font-size: 1.25rem;
  color: #bfdbfe;
  max-width: 48rem;
  line-height: 1.6;
}

.blog-featured-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

.blog-content {
  padding: 4rem 0;
  background: white;
}

.blog-content .container {
  max-width: 56rem;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: oklch(0.15 0 0);
  line-height: 1.3;
  text-align: left;
}

.blog-content h2:first-child {
  margin-top: 0;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: oklch(0.15 0 0);
  line-height: 1.4;
  text-align: left;
}

.blog-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: oklch(0.25 0 0);
  margin-bottom: 1.5rem;
  text-align: left;
}

.blog-content ul,
.blog-content ol {
  font-size: 1.125rem;
  line-height: 1.8;
  color: oklch(0.25 0 0);
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
  text-align: left;
}

.blog-content strong {
  color: oklch(0.15 0 0);
  font-weight: 600;
}

/* Highlight boxes - Blue variant (default) */
.blog-highlight {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.blog-highlight h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: left;
}

.blog-highlight p {
  color: #1e40af;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Amber/Warning variant */
.blog-highlight-warning {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.blog-highlight-warning h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #78350f;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: left;
}

.blog-highlight-warning p {
  color: #92400e;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Green/Success variant */
.blog-highlight-success {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.blog-highlight-success h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #14532d;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: left;
}

.blog-highlight-success p {
  color: #15803d;
  margin-bottom: 0;
  font-size: 1rem;
}

.blog-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid oklch(0.90 0 0);
}

.blog-table thead {
  background: oklch(0.96 0 0);
}

.blog-table th,
.blog-table td {
  border: 1px solid oklch(0.90 0 0);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 1rem;
}

.blog-table th {
  font-weight: 600;
  color: oklch(0.15 0 0);
}

.blog-table td {
  color: oklch(0.25 0 0);
}

.blog-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.blog-cta h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: white;
}

.blog-cta p {
  color: #bfdbfe;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.blog-cta .btn-primary {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s;
}

.blog-cta .btn-primary:hover {
  background: #f1f5f9;
}

/* Responsive */
@media (min-width: 1024px) {
  .blog-header h1 {
    font-size: 3rem;
  }
  
  .blog-content h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .blog-header {
    padding: 2rem 0;
  }

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

  .blog-lead {
    font-size: 1.125rem;
  }

  .blog-featured-image {
    height: 250px;
  }

  .blog-content {
    padding: 2rem 0;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .blog-content p,
  .blog-content ul,
  .blog-content ol {
    font-size: 1rem;
  }

  .blog-table {
    font-size: 0.875rem;
  }

  .blog-cta h3 {
    font-size: 1.25rem;
  }

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