/* Blog styles - StepUp Support */

/* Blog Index */
.blog-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: var(--sand);
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.blog-hero p {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.filter-btn {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.card-cat {
  background: var(--sand);
  color: var(--gold-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-date {
  color: var(--text-muted);
}
.card-read {
  color: var(--text-muted);
  margin-left: auto;
}
.blog-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.blog-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.card-link {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-block;
}

/* Blog Post */
.post-header {
  padding: 8rem 2rem 2.5rem;
  text-align: center;
  background: var(--sand);
  max-width: 100%;
}
.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.post-category {
  background: var(--gold);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.post-date, .post-readtime {
  color: var(--text-muted);
}
.post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 1rem;
  line-height: 1.2;
}
.post-header .post-intro {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Post Content */
.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text-soft);
}
.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-soft);
}
.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover {
  color: var(--gold-dark);
}
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sand-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-soft);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.post-content th {
  background: var(--sand);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--sand-dark);
}
.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sand);
  color: var(--text-soft);
}
.post-content .highlight-box {
  background: var(--sand-light);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.post-content .highlight-box p {
  margin: 0;
}

/* Related Posts */
.related-posts {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid var(--sand-dark);
}
.related-posts h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Post CTA */
.post-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 2rem;
  text-align: center;
}
.post-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.post-cta p {
  color: rgba(242,232,218,0.7);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  max-width: 740px;
  margin: 0 auto;
  display: block;
  padding: 1rem 2rem 0;
}
.back-link:hover {
  color: var(--gold-dark);
}

/* Sources */
.post-sources {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  font-size: 0.85rem;
}
.post-sources h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.post-sources ul {
  list-style: none;
  padding: 0;
}
.post-sources li {
  padding: 0.25rem 0;
  color: var(--text-muted);
}
.post-sources a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 3rem;
  }
  .blog-hero, .post-header {
    padding-top: 6rem;
  }
  .post-content {
    padding: 2rem 1.25rem 3rem;
  }
  .blog-filters {
    padding: 1rem;
  }
}
