/* ================================
   Page Layout
   ================================ */

.page-layout {
  background: #fff;
  color: #222;
  min-height: 100vh;
}

.page-layout .page-container {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: left;
  min-height: 500px;
}

.page-layout h1 {
  color: #111;
  margin-bottom: 0.5rem;
}

.page-layout .page-subtitle {
  color: #555;
  margin-bottom: 2rem;
}

.page-layout .page-content {
  color: #333;
}

.page-layout .page-content p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ================================
   Blog Post Overrides
   ================================ */

body.blog-post {
  background: #fefefe;
  color: #111;
}

.blog-container {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

body.blog-post h2,
body.blog-post h3 {
  color: #0aa89e;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Code blocks (fenced) */
body.blog-post pre {
  background: #1e1e1e;
  color: #abb2bf;
  padding: 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Inline code only — not inside a code block */
body.blog-post code {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.88rem;
  background: #f0f0f0;
  color: #c7254e;
}

/* Reset code styles inside pre so block styling wins */
body.blog-post pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

@media screen and (max-width: 768px) {
  .blog-container {
    margin: 1rem;
    padding: 1.2rem 1rem 2rem;
    border-radius: 8px;
  }

  .blog-post {
    padding: 1.2rem;
  }
}