/* ============================================================
   BLOG — shared styles for listing + post pages
   ============================================================ */

/* Active nav link */
.nav-link-active {
  color: var(--color-white) !important;
}
.nav-link-active::after {
  width: 100% !important;
}

/* ── Blog listing main area ── */
.blog-main {
  background: var(--color-navy);
  min-height: 100vh;
  padding-top: calc(var(--header-height, 80px) + 56px);
  padding-bottom: 96px;
}

/* ── Page header: title ── */
.blog-page-header {
  margin-bottom: 48px;
  text-align: center;
}

.blog-page-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Blog card ── */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-green-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  transform: translateY(-3px);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

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

.blog-grid .blog-card-tag {
  display: none;
}

.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-green);
  background: var(--color-green-bg);
  border: 1px solid var(--color-green-border);
  border-radius: 20px;
  padding: 3px 10px;
}
.blog-card-tag--press {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-black);
  margin: 0;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-gray-mid);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 4px;
}

/* ── Blog Post pages ── */
.post-hero {
  background: var(--color-navy);
  padding: 140px 0 48px;
  text-align: center;
}
.post-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.post-back:hover {
  color: #fff;
}

.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-green-hover);
  background: rgba(16, 185, 129, 0.15);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.post-tag--press {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

.post-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.post-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-featured-image {
  background: var(--color-navy);
  padding-bottom: 48px;
  display: flex;
  justify-content: center;
}
.post-featured-image img {
  width: 300px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.post-body-wrap {
  background: var(--color-navy);
  padding: 0 0 96px;
}
.post-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--color-white);
}

.post-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin: 32px 0 10px;
}
.post-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.post-body a {
  color: rgb(96, 91, 229);
}
.post-body a:hover {
  text-decoration: underline;
}
.post-body ul,
.post-body ol {
  margin: 0 0 20px 24px;
}
.post-body ol {
  list-style: decimal;
}
.post-body ul {
  list-style: initial;
}
.post-body li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-white);
  margin-bottom: 8px;
}
.post-body strong {
  color: var(--color-white);
}
.post-body blockquote {
  border-left: 4px solid var(--color-green);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.post-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.post-cta p {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .blog-main {
    padding-top: calc(var(--header-height, 80px) + 32px);
    padding-bottom: 64px;
  }
  .blog-page-title {
    font-size: 28px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .post-title {
    font-size: 26px;
  }
  .post-body {
    padding: 32px 24px;
  }
  .post-featured-image img {
    height: 220px;
  }
}
