/* ============================================================
   Blog Content Styles — Book Publishers Agency UK
   Font: Cormorant Garamond (headings) + Source Serif 4 (body)
   Theme: Editorial luxury — deep ink tones, warm cream, gold
   ============================================================ */


/*    
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');
 */

 @import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --ink:        #404146;
  --ink-soft:   #404146;
  --cream:      #faf7f2;
  --cream-dark: #f0ebe2;
  --gold:       #63c0ce !important;
  --gold-light: #d4a84b;
  --gold-muted: #e8d5a3;
  --border:     #e2d9cc;
  --accent-red: #8b2f2f;
  --white:      #ffffff;
/* 
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif; */


--font-display: 'Merriweather', serif;   /* headings ke liye */
--font-body:    'Poppins', sans-serif;   /* paragraphs ke liye */


  --max-width: 780px;
  --content-padding: 0 24px;
}

/* ── Blog Article Wrapper ── */
.blog-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  background-color: var(--cream);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Blog Header (above content) ── */
.blog-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
}

.blog-header .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 300;
  margin-bottom: 16px;
}

.blog-header .blog-meta span::after {
  content: '·';
  margin-left: 16px;
  color: var(--border);
}

.blog-header .blog-meta span:last-child::after {
  display: none;
}

.blog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.blog-header .blog-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 28px;
  display: block;
  border: 1px solid var(--border);
}

/* ── Paragraphs ── */
.blog-content p {
  margin: 0 0 1.5em;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 400;
}

.blog-content p:first-of-type {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 400;
}

/* ── Headings ── */
.blog-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  /* margin: 2.5em 0 0.75em; */
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-muted);
  position: relative;
}

.blog-content h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 14px;
  border-radius: 2px;
}

.blog-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 2em 0 0.6em;
  line-height: 1.3;
  
}

.blog-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.75em 0 0.5em;
}

/* ── Lists ── */
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.6em 0;
  padding-left: 0;
  list-style: none;
}

.blog-content ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 300;
  border-bottom: 1px solid var(--cream-dark);
}

.blog-content ul li:last-child {
  border-bottom: none;
}

.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 14px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
}

.blog-content ol {
  counter-reset: list-counter;
}

.blog-content ol li {
  position: relative;
  padding: 6px 0 6px 36px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 300;
  counter-increment: list-counter;
  border-bottom: 1px solid var(--cream-dark);
}

.blog-content ol li:last-child {
  border-bottom: none;
}

.blog-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ── Links ── */
.blog-content a {
  color: var(--gold) ;
  text-decoration: none;
  /* border-bottom: 1px solid var(--gold-muted); */
  transition: color 0.2s, border-color 0.2s;
}

.blog-content a:hover {
  color: var(--gold) !important;
  border-bottom-color: var(--accent-red);
}

/* ── Bold & Italic ── */
.blog-content strong,
.blog-content b {
  font-weight: 600;
  color: var(--ink);
}

.blog-content em,
.blog-content i {
  font-style: italic;
  color: var(--ink);
}

/* ── Blockquote ── */
.blog-content blockquote {
  margin: 2em 0;
  padding: 24px 32px 24px 40px;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

.blog-content blockquote p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

/* ── Step Headings (h3 with Step N:) ── */
.blog-content h3 b,
.blog-content h3 strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

/* ── Horizontal Rule ── */
.blog-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-muted), transparent);
  margin: 3em 0;
}

/* ── Images ── */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 2em auto;
  border: 1px solid var(--border);
}

/* ── Tables ── */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.blog-content th {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-soft);
  font-weight: 300;
}

.blog-content tr:nth-child(even) td {
  background: var(--cream-dark);
}

/* ── Blog Post Footer CTA ── */
.blog-cta {
  margin-top: 56px;
  padding: 40px 44px;
  background: var(--ink);
  border-radius: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.blog-cta h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 12px;
  font-style: normal;
}

.blog-cta p {
  color: #a8a29e;
  font-size: 0.97rem;
  margin: 0 0 24px;
  font-weight: 300;
}

.blog-cta a.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.blog-cta a.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  border-bottom: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .blog-content {
    padding: 36px 18px 60px;
    font-size: 1rem;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  .blog-header .blog-cover {
    height: 240px;
  }

  .blog-content h2 {
    font-size: 1.35rem;
  }

  .blog-content h3 {
    font-size: 1.15rem;
  }

  .blog-cta {
    padding: 28px 20px;
  }
}

/* ── Usage Example (comment) ──
   HTML structure:

   <article>
     <div class="blog-header">
       <div class="blog-meta">
         <span>Jennifer Dennis</span>
         <span>20 Apr 2024</span>
       </div>
       <h1>Blog Title Here</h1>
       <img class="blog-cover" src="..." alt="...">
     </div>

     <div class="blog-content">
       <!-- blog content HTML goes here (from JS content field) -->
     </div>

     <div class="blog-cta">
       <h3>Ready to Publish?</h3>
       <p>Get expert publishing support today.</p>
       <a class="cta-btn" href="https://bookpublishersagency.co.uk/contact">
         Free Consultation
       </a>
     </div>
   </article>
── */
