/* ═══════════════════════════════════════
   BLOG.CSS — Out Shine Web Design
   Shared styles for the blog listing page and individual posts
═══════════════════════════════════════ */

/* ── BLOG HERO (listing page) ── */
.blog-hero {
  background: var(--teal);
  padding: calc(var(--nav-height) + 5rem) 5rem 5rem;
  text-align: center;
  color: var(--cream);
}
.blog-hero .eyebrow { color: rgba(255,255,255,0.6); }
.blog-hero h1 { color: var(--cream); margin-bottom: 1rem; }
.blog-hero .lead {
  color: rgba(255,255,255,0.75);
  margin: 0 auto;
  text-align: center;
}

/* ── BLOG GRID (listing page) — reuses .hero-work-card* from index.css ── */
.blog-section {
  background: var(--bg);
  padding: var(--section-pad);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-grid .hero-work-card-image svg {
  width: 45%;
  height: auto;
  color: var(--teal);
}
.blog-grid .hero-work-card-name { font-size: 1.7rem; }
.blog-card-excerpt {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* ── POST HERO (individual post pages) ── */
.post-hero {
  background: var(--teal);
  padding: calc(var(--nav-height) + 4rem) 5rem 3rem;
  text-align: center;
  color: var(--cream);
}
.post-hero .eyebrow { color: rgba(255,255,255,0.6); }
.post-hero h1 {
  color: var(--cream);
  margin-bottom: 1rem;
  max-width: 780px;
  margin-inline: auto;
}
.post-meta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── POST CONTENT ── */
.post-section {
  background: var(--bg);
  padding: var(--section-pad);
}
.post-content {
  max-width: 740px;
  margin: 0 auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blush);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.post-back svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.post-back:hover svg { transform: translateX(-4px); }

.post-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink);
  max-width: none;
  margin-bottom: 1.5rem;
}
.post-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--teal);
  line-height: 1.25;
  margin: 2.5rem 0 1.25rem;
}
.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal);
  margin: 2rem 0 1rem;
}
.post-content a { color: var(--teal); font-weight: 500; }
.post-content strong { font-weight: 600; color: var(--teal); }

.post-content ul,
.post-content ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content ul li,
.post-content ol li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}
.post-content ul li::marker,
.post-content ol li::marker {
  color: var(--teal);
  font-weight: 600;
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
  display: block;
}
.post-content figure { margin: 2rem 0; }
.post-content figure img { margin: 0 0 0.75rem; }
.post-content figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ── POST CTA (closing call-to-action) ── */
.post-cta {
  background: var(--teal);
  text-align: center;
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.post-cta .eyebrow { color: rgba(255,255,255,0.6); position: relative; z-index: 2; }
.post-cta h2 { color: var(--cream); position: relative; z-index: 2; margin-bottom: 1rem; }
.post-cta .lead {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}
.post-cta .btn-primary { position: relative; z-index: 2; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .blog-hero { padding: calc(var(--nav-height) + 3.5rem) 3rem 3.5rem; }
  .post-hero { padding: calc(var(--nav-height) + 3rem) 3rem 2.5rem; }
}
@media (max-width: 768px) {
  .blog-hero { padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 2rem; }
  .post-hero { padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem; }
  .post-content p { font-size: 1.1rem; }
  .post-content ul li,
  .post-content ol li { font-size: 1.05rem; }
}
