/* ============================================================
   FINDATICS — Article / Blog Post Styles
   ============================================================ */

.article-main {
  padding-top: 60px; /* header height */
  min-height: 100vh;
  background: var(--white);
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

/* ===== ARTICLE HEADER ===== */
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.article-back {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-back:hover { color: var(--blue); }

.blog-tag-inline {
  padding: 3px 12px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-1);
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 28px;
  font-weight: 400;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.article-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.article-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-4);
  margin-top: 2px;
}

/* ===== HERO ILLUSTRATION ===== */
.article-hero-illo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-hero-illo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.85;
}

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

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.4px;
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 32px 0 12px;
}

.article-body ul {
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul li {
  padding-left: 24px;
  position: relative;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.article-body strong {
  font-weight: 700;
  color: var(--text-1);
}

/* ===== INLINE CTA ===== */
.article-cta {
  margin: 56px 0 0;
  padding: 36px 40px;
  background: #0F172A;
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.article-cta p {
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 24px;
  line-height: 1.7;
}

.article-cta .btn-primary {
  display: inline-flex;
}

/* ===== FOOTER AREA ===== */
.article-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.article-tags span {
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
}

.article-related h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}

.related-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.related-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.related-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .article-container { padding: 40px 20px 60px; }
  .article-title { font-size: 1.7rem; }
  .article-subtitle { font-size: 1rem; }
  .article-body { font-size: 0.97rem; }
  .article-body h2 { font-size: 1.25rem; margin-top: 36px; }
  .article-cta { padding: 28px 24px; }
  .article-cta h3 { font-size: 1.2rem; }
  .related-grid { grid-template-columns: 1fr; }
}
