/* ============================================
   SOLD WITH PAUL — Blog Styles
   Supplement to style.css for blog pages
   ============================================ */

/* ---- Blog Hero ---- */
.blog-hero {
  position: relative;
  height: 35vh;
  min-height: 280px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-hero .hero-bg::after {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.8) 100%
  );
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 900px;
}

.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-white);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ---- Blog Meta (date, author, read time) ---- */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-meta .separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ---- Blog Content Area ---- */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--text-offwhite);
}

.blog-content h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.blog-content h3 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.blog-content p {
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.blog-content strong {
  color: var(--text-white);
  font-weight: 700;
}

.blog-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 110, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.blog-content a:hover {
  text-decoration-color: var(--gold);
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.blog-content ul {
  list-style: none;
  padding-left: 0;
}

.blog-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.blog-content ol {
  list-style: decimal;
  padding-left: 1.8rem;
}

.blog-content ol li {
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}

.blog-content ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

/* Blockquote / Callout */
.blog-content blockquote {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-offwhite);
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ---- Blog CTA Box ---- */
.blog-cta {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
}

.blog-cta h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.blog-cta p {
  color: var(--text-offwhite);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta .btn-gold {
  font-size: 0.85rem;
}

/* ---- Table of Contents ---- */
.blog-toc {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: 1.8rem 2rem;
  margin-bottom: 2.5rem;
}

.blog-toc h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-toc ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin-bottom: 0;
}

.blog-toc ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
}

.blog-toc ol li::marker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.blog-toc a {
  color: var(--text-offwhite);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-toc a:hover {
  color: var(--gold);
}

/* ---- FAQ Section ---- */
.blog-faq {
  margin-top: 3rem;
}

.blog-faq h2 {
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.faq-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---- Related Posts ---- */
.related-posts {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.related-posts h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  text-align: center;
  font-weight: 500;
  margin-bottom: 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Blog Index Grid ---- */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ---- Blog Card ---- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 110, 0.12);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(201, 169, 110, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--text-white);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card h3 a:hover {
  color: var(--gold);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-card .read-more {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card .read-more:hover {
  color: var(--gold-hover);
}

/* ---- Blog Tag (county pill) ---- */
.blog-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(201, 169, 110, 0.06);
}

/* ---- Blog Breadcrumb ---- */
.blog-breadcrumb {
  padding: 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-breadcrumb li {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-breadcrumb li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-breadcrumb li a:hover {
  color: var(--gold);
}

.blog-breadcrumb .bc-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ---- Blog Index Hero ---- */
.blog-index-hero {
  position: relative;
  padding: 8rem 0 3rem;
  text-align: center;
  background: var(--bg-secondary);
}

.blog-index-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-white);
  margin-bottom: 1rem;
}

.blog-index-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    height: 30vh;
    min-height: 240px;
  }

  .blog-hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .blog-content {
    padding: 2rem 1.2rem 3rem;
    font-size: 1.05rem;
  }

  .blog-content h2 {
    margin-top: 2.5rem;
  }

  .blog-index-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 0 auto;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .blog-cta {
    padding: 2rem 1.5rem;
  }

  .blog-toc {
    padding: 1.4rem 1.5rem;
  }

  .blog-meta {
    gap: 0.8rem;
  }

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

@media (max-width: 480px) {
  .blog-content {
    padding: 1.5rem 1.2rem 2.5rem;
  }

  .blog-card-body {
    padding: 1.5rem;
  }

  .blog-breadcrumb {
    padding: 0.8rem 1.2rem;
  }
}
