/* Blog-specific styles for EDD Hold */

/* Hero */
.blog-hero {
  background: var(--surface, #f5f0e8);
  border-bottom: 1px solid var(--border-light, #e5dfd4);
  padding: 3rem 0 2.5rem;
}
.blog-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted, #8a7f70);
  margin-bottom: 1rem;
}
.blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-meta-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.blog-tag {
  background: var(--accent-warm, #c47c3a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.blog-read-time {
  font-size: 0.82rem;
  color: var(--muted, #8a7f70);
}

.blog-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: var(--text, #1a1612);
  margin-bottom: 0.75rem;
  max-width: 780px;
}
.blog-subtitle {
  font-size: 1.1rem;
  color: var(--muted, #5a5248);
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 0.75rem;
}
.blog-byline {
  font-size: 0.85rem;
  color: var(--muted, #8a7f70);
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}

/* Article body */
.blog-article {
  max-width: 680px;
  color: var(--text, #1a1612);
  line-height: 1.75;
  font-size: 1.025rem;
}
.blog-article h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text, #1a1612);
  line-height: 1.25;
}
.blog-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-article p { margin-bottom: 1.1rem; }
.blog-article ul, .blog-article ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.blog-article li { margin-bottom: 0.4rem; }
.blog-article a { color: var(--accent-warm, #c47c3a); }
.blog-article a:hover { text-decoration: underline; }
.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text, #1a1612);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Table of Contents */
.toc {
  background: var(--surface, #f5f0e8);
  border: 1px solid var(--border-light, #e5dfd4);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.toc-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #8a7f70);
  margin-bottom: 0.75rem;
}
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { margin-bottom: 0.3rem; font-size: 0.95rem; }
.toc a { color: var(--text, #1a1612); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--accent-warm, #c47c3a); }

/* Callouts */
.callout {
  border-left: 3px solid var(--accent-warm, #c47c3a);
  background: var(--surface, #f5f0e8);
  padding: 0.9rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.97rem;
  line-height: 1.6;
}
.callout-tip { border-color: #4a9e6b; background: #f0f8f4; }
.callout-note { border-color: #4a7cb5; background: #f0f4fb; }
.callout strong { display: block; margin-bottom: 0.25rem; }

/* CTA box */
.cta-box {
  background: var(--text, #1a1612);
  color: #fff;
  border-radius: 14px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-box h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.cta-box p {
  opacity: 0.8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-card {
  background: var(--surface, #f5f0e8);
  border: 1px solid var(--border-light, #e5dfd4);
  border-radius: 12px;
  padding: 1.25rem;
}
.sidebar-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--text, #1a1612);
}
.sidebar-card p { font-size: 0.9rem; color: var(--muted, #5a5248); margin-bottom: 0.9rem; line-height: 1.5; }
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a {
  font-size: 0.9rem;
  color: var(--accent-warm, #c47c3a);
  text-decoration: none;
}
.sidebar-links a:hover { text-decoration: underline; }

/* Blog index page */
.blog-index-hero {
  background: var(--surface, #f5f0e8);
  border-bottom: 1px solid var(--border-light, #e5dfd4);
  padding: 3rem 0 2rem;
}
.blog-index-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.blog-index-hero p {
  color: var(--muted, #5a5248);
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0 4rem;
}

.blog-card {
  background: var(--surface, #f5f0e8);
  border: 1px solid var(--border-light, #e5dfd4);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.blog-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-warm, #c47c3a);
}
.blog-card h2 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text, #1a1612);
  margin: 0;
}
.blog-card-desc {
  font-size: 0.9rem;
  color: var(--muted, #5a5248);
  line-height: 1.55;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--muted, #8a7f70);
  margin-top: 0.25rem;
}
