/* ==========================================================================
   Lexy Blog & Scientific Articles Styles
   ========================================================================== */

.blog-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.blog-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #a24936);
  background: rgba(162, 73, 54, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--on-surface, #1a1c1e);
}

.blog-hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--on-surface-variant, #44474e);
  max-width: 680px;
  margin: 0 auto;
}

/* ============ BLOG GRID ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 24px 0 80px;
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.blog-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--primary, #a24936);
}

.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f0f7;
  position: relative;
}

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

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 19, 24, 0.85);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--on-surface-variant, #74777f);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--on-surface, #1a1c1e);
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-surface-variant, #44474e);
  margin: 0 0 18px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #a24936);
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  padding-top: 14px;
  margin-top: auto;
}

/* ============ ARTICLE PAGE ============ */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-surface-variant, #74777f);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--on-surface-variant, #44474e);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary, #a24936);
}

.breadcrumbs-sep {
  opacity: 0.5;
}

.article-header {
  margin-bottom: 32px;
}

.article-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary, #a24936);
  background: rgba(162, 73, 54, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--on-surface, #1a1c1e);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--on-surface-variant, #74777f);
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  padding-bottom: 20px;
}

.article-hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-study-box {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.7) 0%, rgba(255, 247, 237, 0.7) 100%);
  border: 1px solid rgba(162, 73, 54, 0.2);
  border-left: 4px solid var(--primary, #a24936);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 32px 0;
}

[data-theme="dark"] .article-study-box {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(244, 63, 94, 0.3);
  border-left-color: var(--primary, #a24936);
}

.article-study-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary, #a24936);
  margin-bottom: 8px;
}

.article-study-cite {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface, #1a1c1e);
  margin: 0;
}

.article-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-surface, #1a1c1e);
}

.article-content p {
  margin: 0 0 20px;
}

.article-content .lead-para {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--on-surface, #1a1c1e);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: var(--on-surface, #1a1c1e);
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--on-surface, #1a1c1e);
}

.article-content blockquote {
  margin: 28px 0;
  padding: 16px 22px;
  background: var(--surface-container-low, #f7f6fd);
  border-left: 3px solid var(--primary, #a24936);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--on-surface-variant, #44474e);
}

.article-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--on-surface-variant, #74777f);
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

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

/* ============ ARTICLE CTA BOX ============ */
.article-cta-box {
  background: radial-gradient(circle at top right, rgba(162, 73, 54, 0.12) 0%, rgba(30, 58, 138, 0.06) 100%), var(--surface-card, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 24px;
  padding: 36px 32px;
  margin: 48px 0 32px;
  text-align: center;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}

.article-cta-box h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}

.article-cta-box p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-surface-variant, #44474e);
  max-width: 580px;
  margin: 0 auto 24px;
}

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