/* Blog Post Template Styles */

.reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: var(--gold); z-index: 9999; transition: width 0.1s linear;
}
.breadcrumb {
  max-width: 800px; margin: 1.5rem auto 0; padding: 0 1.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--text-light); }

.article-header {
  max-width: 800px; margin: 1.5rem auto 0; padding: 0 1.5rem;
}
.article-header h1 {
  font-family: 'Lora', Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--charcoal); line-height: 1.25; margin-bottom: 1rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-muted);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.author-info .author-name { color: var(--charcoal); font-weight: 600; }
.author-info .pub-date { font-size: 0.8rem; color: var(--text-light); }
.read-time {
  margin-left: auto; background: var(--green-pale); padding: 0.3rem 0.7rem;
  border-radius: 4px; font-size: 0.78rem; font-weight: 500; color: var(--green);
}

.direct-answer {
  max-width: 800px; margin: 1.5rem auto; padding: 0 1.5rem;
}
.direct-answer-inner {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem 1.5rem; font-size: 0.95rem; line-height: 1.65; color: var(--charcoal);
}

.article-body {
  max-width: 800px; margin: 0 auto; padding: 0 1.5rem;
}
.article-body h2 {
  font-family: 'Lora', Georgia, serif; font-size: 1.55rem; font-weight: 700;
  color: var(--charcoal); margin: 2.5rem 0 1rem; line-height: 1.3;
}
.article-body h3 {
  font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600;
  color: var(--green); margin: 1.8rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.2rem; line-height: 1.75; }
.article-body strong { color: var(--charcoal); }
.article-body a {
  color: var(--green); text-decoration: underline; text-underline-offset: 2px;
}
.article-body a:hover { color: var(--green-light); }
.article-body img {
  max-width: 100%; height: auto; display: block; margin: 1.5rem auto; border-radius: 8px;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
}
.article-body th, .article-body td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-light); text-align: left;
}
.article-body th { background: var(--green); color: white; font-weight: 600; }
.article-body tbody tr:nth-child(even) { background: rgba(27,67,50,0.03); }
.article-body ul, .article-body ol {
  margin: 0 0 1.2rem 1.5rem; line-height: 1.75;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: 1rem 1.5rem;
  background: white; border-radius: 0 8px 8px 0; font-style: italic;
  color: var(--text-muted);
}

.inline-cta {
  max-width: 800px; margin: 2.5rem auto; padding: 0 1.5rem;
}
.inline-cta-inner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 10px; padding: 2rem; display: flex; align-items: center;
  gap: 2rem; color: white;
}
.inline-cta-inner .cta-text { flex: 1; }
.inline-cta-inner .cta-text h3 {
  font-family: 'Lora', Georgia, serif; font-size: 1.25rem; font-weight: 700;
  margin: 0 0 0.4rem; color: white;
}
.inline-cta-inner .cta-text p { font-size: 0.92rem; opacity: 0.9; margin: 0; line-height: 1.5; }
.inline-cta-inner .cta-btn a {
  display: inline-block; background: var(--gold); color: white;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: 6px; text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.inline-cta-inner .cta-btn a:hover { background: var(--gold-light); }
@media (max-width: 640px) {
  .inline-cta-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
}

.faq-section { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.faq-section h2 {
  font-family: 'Lora', Georgia, serif; font-size: 1.55rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 1.5rem;
}
.faq-item {
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.75rem;
  background: white; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; font-family: 'Inter', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: var(--charcoal); background: none; border: none;
  cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q:hover { background: var(--green-pale); }
.faq-q svg { flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open svg { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.2rem 1.2rem; font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.65; display: none;
}
.faq-a.visible { display: block; }

.author-bio { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem; }
.author-bio-inner {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.8rem; display: flex; gap: 1.5rem;
}
.bio-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green);
  color: white; display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
}
.bio-content h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.2rem; }
.bio-content .bio-title { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 0.6rem; }
.bio-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.8rem; }
.bio-content .bio-link { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--green); text-decoration: none; font-weight: 600; }
.bio-content .bio-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .author-bio-inner { flex-direction: column; align-items: center; text-align: center; }
}

.related-posts { max-width: 800px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.related-posts h3 {
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1rem;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem; text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s;
}
.related-card:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.related-card .rc-cat { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.5rem; }
.related-card .rc-title { font-family: 'Lora', Georgia, serif; font-size: 0.95rem; font-weight: 600; color: var(--charcoal); line-height: 1.35; margin-bottom: 0.5rem; }
.related-card .rc-read { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--green); font-weight: 600; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

.bottom-cta {
  background: var(--charcoal); padding: 4rem 1.5rem; text-align: center; margin-top: 3rem;
}
.bottom-cta h2 { font-family: 'Lora', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); color: white; margin-bottom: 0.8rem; }
.bottom-cta p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.bottom-cta a {
  display: inline-block; background: var(--gold); color: white;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  padding: 0.9rem 2.2rem; border-radius: 6px; text-decoration: none; transition: background 0.2s;
}
.bottom-cta a:hover { background: var(--gold-light); }

.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--charcoal); padding: 0.7rem 1rem; z-index: 999;
  text-align: center; box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.sticky-cta a {
  display: inline-block; background: var(--gold); color: white;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  padding: 0.6rem 1.5rem; border-radius: 5px; text-decoration: none;
  width: 100%; max-width: 340px;
}
@media (max-width: 768px) { .sticky-cta.visible { display: block; } }

/* Blog Index Styles */
.blog-index-header {
  max-width: 900px; margin: 2.5rem auto 2rem; padding: 0 1.5rem; text-align: center;
}
.blog-index-header h1 {
  font-family: 'Lora', Georgia, serif; font-size: 2.2rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.5rem;
}
.blog-index-header p { color: var(--text-muted); font-size: 1rem; }

.blog-grid {
  max-width: 900px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
@media (max-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.4rem; text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.blog-card-cat {
  font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: 'Lora', Georgia, serif; font-size: 1rem; font-weight: 600;
  color: var(--charcoal); line-height: 1.35; margin-bottom: 0.5rem; flex: 1;
}
.blog-card-excerpt {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 0.7rem; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--text-light);
}

.pagination {
  max-width: 900px; margin: 2.5rem auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
}
.pagination a {
  padding: 0.4rem 0.7rem; border-radius: 4px; text-decoration: none;
  color: var(--green); border: 1px solid var(--border);
}
.pagination a:hover { background: var(--green-pale); }
.pagination a.pag-active { background: var(--green); color: white; border-color: var(--green); }
.pagination .pag-dots { color: var(--text-light); padding: 0 0.3rem; }
.pagination .pag-prev, .pagination .pag-next { border: none; font-weight: 600; }
