/* ================================================
   FAST FUNDED — BLOG.CSS
   Blog index + article pages.
   Same design tokens as style.css (loaded after it).
   ================================================ */

/* === BLOG HERO (index) === */
.blog-hero {
  position: relative;
  z-index: 1;
  padding: 9rem 0 3rem;
  text-align: center;
}

.blog-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.blog-hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

/* === POST GRID (index) === */
.blog-grid-section {
  position: relative;
  z-index: 1;
  padding: 1rem 0 5rem;
}

.blog-section {
  margin-bottom: 3.5rem;
}

.blog-section__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--orange);
}

.post-card--pillar {
  border-color: var(--border-orange);
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.06) 0%, var(--bg-card) 60%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
}

.post-card__cover {
  display: block;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--border);
}

.post-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-card__title a {
  color: var(--text-primary);
}

.post-card__title a:hover {
  color: var(--orange);
}

.post-card__desc {
  font-size: 0.9063rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.post-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
}

.post-card__link:hover {
  color: var(--orange-dark);
}

/* === ARTICLE PAGE === */
.article-page {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}

.article-page .container--narrow {
  max-width: 780px;
}

.article-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-breadcrumb a:hover {
  color: var(--orange);
}

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-cover {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

/* Article body typography */
.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.15rem;
}

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  padding: 0.2rem 0;
}

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

.article-body blockquote {
  border-left: 3px solid var(--orange);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-body th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-card);
}

/* === CTA BLOCK (mid + end of article) === */
.article-cta {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.08) 0%, rgba(243, 156, 18, 0.02) 100%);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.article-cta__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.article-cta .btn {
  display: inline-block;
}

/* Soft variant: discrete in-body box (support/brand/payout mid-article) */
.article-cta--soft {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 1.15rem 1.4rem;
  text-align: left;
}

.article-cta--soft .article-cta__text {
  margin-bottom: 0;
  font-size: 0.9063rem;
}

/* === ARTICLE FAQ (static, no JS) === */
.article-faq {
  margin-top: 3rem;
}

.article-faq__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.article-faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.article-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.9688rem;
  color: var(--text-primary);
  position: relative;
  padding-right: 3rem;
  transition: color var(--transition);
}

.article-faq__item summary::-webkit-details-marker {
  display: none;
}

.article-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform var(--transition);
}

.article-faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.article-faq__item summary:hover {
  color: var(--orange);
}

.article-faq__answer {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* === RELATED ARTICLES === */
.related-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related-section__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

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

.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  transition: transform var(--transition), border-color var(--transition);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-orange);
  color: var(--orange);
}

.related-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 7rem 0 2rem;
  }

  .article-page {
    padding: 7rem 0 3rem;
  }

  .article-cta {
    padding: 1.5rem;
  }
}
