/* =============================================================
   GREEN POWER CORPORATION — Blog stylesheet
   gpcpak.com  |  /css/blog.css  |  loaded on blog pages only
   ============================================================= */

/* ── Blog index ──────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 5vw, 56px);
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--emerald-deep) 0%, #0E4A32 55%, #143D29 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.blog-thumb > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.blog-thumb-placeholder img {
  width: 64px; height: 64px;
  opacity: .18;
}

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Category tag — emerald variant (distinct from gold sector-tag on projects) */
.cat-tag {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(30,158,106,.09);
  border: 1px solid rgba(30,158,106,.22);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  flex-shrink: 0;
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
  transition: color .2s;
}
.blog-card:hover .blog-card-title { color: var(--emerald); }

.blog-card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-card-link {
  font-size: .83rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap .2s;
}
.blog-card:hover .blog-card-link { gap: 8px; }

/* ── Post article layout ──────────────────────────────────────── */

/* Dark hero for post header */
.post-hero {
  background: var(--emerald-deep);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,46,34,.88) 0%, rgba(12,46,34,.98) 100%);
}
.post-hero-inner {
  position: relative; z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) clamp(16px, 5vw, 32px) clamp(40px, 5vw, 56px);
}
.post-hero .cat-tag { margin-bottom: 18px; }
.post-hero h1 {
  color: #F4FAF6;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 20px;
  font-size: .83rem;
  color: rgba(244,250,246,.48);
}
.post-meta strong { color: rgba(244,250,246,.7); font-weight: 500; }
.post-meta-sep { color: rgba(244,250,246,.2); user-select: none; }
.gold-divider {
  width: 56px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 26px;
}

/* Breadcrumb */
.blog-breadcrumb {
  font-size: .8rem;
  color: rgba(244,250,246,.45);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.blog-breadcrumb a { color: rgba(244,250,246,.6); transition: color .2s; }
.blog-breadcrumb a:hover { color: var(--emerald-bright); }
.blog-breadcrumb span { color: rgba(244,250,246,.25); }

/* Featured image */
.post-feat-wrap {
  background: var(--light-bg);
}
.post-feat-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}
.post-feat-img {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--emerald-deep) 0%, #0E4A32 50%, #143D29 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-feat-img > img { width: 100%; height: 100%; object-fit: cover; }
.post-feat-placeholder img { width: 88px; height: 88px; opacity: .18; }

/* Reading column */
.post-container {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(16px, 5vw, 32px) clamp(32px, 5vw, 56px);
}

/* Body typography */
.post-body {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--text-dark);
}
.post-body > * + * { margin-top: 1.25em; }
.post-body p { max-width: none; margin-bottom: 0; }

.post-body h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
  font-weight: 800;
  margin-top: 2.2em;
  margin-bottom: -.4em;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30,158,106,.14);
}
.post-body h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: -.5em;
  color: var(--emerald-deep);
}

.post-body ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ul li {
  padding-left: 26px;
  position: relative;
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
}

.post-body ol {
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ol li { padding-left: 6px; }
.post-body ol li::marker {
  color: var(--emerald);
  font-weight: 700;
  font-family: var(--font-head);
}

.post-body blockquote {
  margin: 2em 0;
  padding: 20px 24px 20px 28px;
  border-left: 4px solid var(--gold);
  background: rgba(194,160,74,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-dark);
}
.post-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Emerald callout / tip box */
.callout {
  margin: 2em 0;
  padding: 18px 22px 20px 26px;
  background: rgba(30,158,106,.07);
  border: 1px solid rgba(30,158,106,.2);
  border-left: 4px solid var(--emerald);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald);
  display: block;
  margin-bottom: 8px;
}
.callout p  { font-size: .95rem; color: var(--text-dark); margin: 0; max-width: none; }
.callout ul { margin: 0; }
.callout ul li::before { background: var(--emerald); }

/* End-of-article CTA box */
.post-cta-box {
  background: var(--emerald-deep);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin: 3.5em 0 2em;
  text-align: center;
}
.post-cta-box h3 { color: #F4FAF6; font-size: 1.3rem; margin-bottom: 12px; }
.post-cta-box p  { color: rgba(244,250,246,.62); margin: 0 auto 24px; font-size: .93rem; max-width: 50ch; }
.post-cta-btns  { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Author / company box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 2.5em;
}
.author-monogram {
  width: 52px; height: 52px;
  background: var(--emerald-deep);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--emerald-bright);
  letter-spacing: .03em;
}
.author-info h4 { font-size: .95rem; color: var(--text-dark); margin-bottom: 4px; }
.author-info p  { font-size: .83rem; color: var(--text-muted); margin: 0; max-width: none; }
.author-info a  { color: var(--emerald); font-weight: 600; }
.author-info a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-feat-img { aspect-ratio: 16/9; }
}
@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .post-body h2 { margin-top: 1.6em; }
}
