/* ===============================
   BLOG LAYOUT
================================= */

.blog-container,
.blog-layout,
.post-header,
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog h1 {
  color: var(--green-800);
}


/* ===============================
   BLOG BACKGROUND
================================= */

body.blog {
  background:
    radial-gradient(circle at 20% 20%, rgba(0,122,45,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(88,60,180,0.08), transparent 40%),
    linear-gradient(180deg,#ffffff 0%,#f7faf8 100%);
  background-attachment: fixed;
}

body.blog::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

.blog-card,
.blog-featured {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}


/* ===============================
   HERO
================================= */

.blog-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  z-index: -1;

  background: radial-gradient(circle, rgba(0,122,45,0.12), transparent 70%);
}

.blog-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem,4vw,3.5rem);
}

.blog-hero p {
  font-size: 1.1rem;
  color: #666;
  margin-top: .8rem;
}


/* ===============================
   BLOG GRID
================================= */

.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;

  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 2rem;
}

.blog-card:first-child {
  grid-column: span 2;
  padding: 2.5rem;
}


/* ===============================
   BLOG CARD
================================= */

.blog-card {
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 3px solid transparent;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border .2s ease;
    margin-bottom: 20px;
}

.blog-card:hover {
  border-left: 2px solid var(--green-700);
  transform: translateY(-6px);

  box-shadow:
    0 16px 40px rgba(0,0,0,.08),
    0 0 0 1px rgba(0,122,45,.15);
}

.blog-card h2,
.blog-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: .6rem 0 1rem;
}

.blog-card h2 a,
.blog-card h3 a {
  text-decoration: none;
  color: var(--ink-700);
  transition: color .2s ease;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--green-700);
}

.blog-card p {
  color: var(--ink-500);
  line-height: 1.6;
}


/* ===============================
   META
================================= */

.blog-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--ink-500);
  margin-bottom: .75rem;
}

.blog-tag {
  background: rgba(0,122,45,.08);
  color: var(--green-700);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 500;
}


/* ===============================
   READ MORE
================================= */

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.read-more::after {
  content: " →";
  margin-left: 6px;
  transition: transform .2s ease;
}

.blog-card:hover .read-more::after {
  transform: translateX(4px);
}


/* ===============================
   BLOG ARTICLE PAGE
================================= */

.post-header {
  padding: 80px 24px 40px;
}

.post-header h1 {
  font-size: clamp(2rem,4vw,2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: .5rem;
}

.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #666;
  font-size: .95rem;
  margin-top: .5rem;
}


/* ===============================
   BLOG TYPOGRAPHY
================================= */

.post-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1b1b1b;
  position: relative;
}

.post-content::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f1f1f1;
}

.post-content p {
  margin: 0 0 1.4rem;
}

.post-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
}

.post-content ul {
  margin: 1.2rem 0 1.6rem 1.2rem;
}

.post-content li {
  margin-bottom: .5rem;
}

.lead {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 2rem;
}


/* ===============================
   BLOG IMAGES
================================= */

.blog-images {
  width: 100%;
  border-radius: 8px;
  margin: 32px 0;
}


/* ===============================
   BLOG THUMBNAILS
================================= */

.blog-thumb {
  display: block;
  margin: -2rem -2rem 1rem;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.blog-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}


/* ===============================
   READING PROGRESS BAR
================================= */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--ink-700);
  transition: width .1s linear;
}

 
.blog-card:nth-child(odd) {
  transform: translateY(10px);
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width:768px){

  .post-header {
    padding: 50px 0 30px;
  }

  .post-content {
    font-size: 1.05rem;
  }

  .post-content::before {
    display: none;
  }

}