/* Blog Styles */

/* Header with back link - logo centered */
.header-with-back .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-back-link {
  color: #764ba2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.header-back-link:hover {
  color: #667eea;
  transform: translateX(-2px);
}

.header-with-back .logo {
  text-align: center;
}

.blog-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-index {
  max-width: 1000px;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.blog-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-card-image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.article-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #764ba2;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover {
  color: #764ba2;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-card-meta {
  font-size: 0.8rem;
  color: #999;
}

/* Article Page */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.article-h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-meta {
  color: #6b7280;
  font-size: 0.95rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #374151;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 1rem;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.article-content ul li::marker {
  color: #764ba2;
}

.article-content strong {
  color: #1a1a2e;
  font-weight: 600;
}

.article-content blockquote {
  border-left: none;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: normal;
  color: #1a1a2e;
  position: relative;
  overflow: hidden;
}

.article-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

/* Highlight Box */
.highlight-box {
  background: #fafbff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.highlight-box h4 {
  color: #1a1a2e;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-box h4::before {
  content: "💡";
  font-size: 1.25rem;
}

.highlight-box ul {
  margin-bottom: 0;
}

.highlight-box p {
  margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* CTA in article */
.article-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3.5rem 0;
  box-shadow: 0 20px 40px -12px rgba(102, 126, 234, 0.35);
}

.article-cta h3 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
}

.article-cta .cta-button {
  background: white;
  color: #764ba2;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.article-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Use Case Page */
.usecase-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.usecase-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.usecase-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.usecase-h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.usecase-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.usecase-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.usecase-content h2 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.usecase-content p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.profession-tag {
  background: #f8f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  color: #1a1a2e;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.profession-tag:hover {
  background: #764ba2;
  color: white;
  border-color: #764ba2;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

@media (max-width: 768px) {
  .header-with-back .container {
    grid-template-columns: auto 1fr;
  }

  .header-back-link {
    font-size: 0.85rem;
  }

  .header-with-back .logo {
    text-align: right;
  }

  .blog-page {
    padding: 2rem 1rem 4rem;
  }

  .blog-title, .usecase-h1 {
    font-size: 2rem;
  }

  .article-h1 {
    font-size: 2rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-cta {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .article-cta h3 {
    font-size: 1.35rem;
  }

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


/* Related Articles Section */
.related-articles {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 12px;
  border-left: 4px solid var(--primary, #6366f1);
}

.related-articles h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #1a1a2e;
  font-weight: 600;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.related-articles li:last-child {
  border-bottom: none;
}

.related-articles a {
  color: var(--primary, #6366f1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.related-articles a:hover {
  color: #4f46e5;
  text-decoration: underline;
}


/* Article Hero Image */
.article-hero-image {
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

