/* ============================================================
   Blog-specific styles — blog/index.html + blog/[slug].html
   ============================================================ */

/* ── Blog Index Hero ──────────────────────────────────────── */
.blog-index-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0;
  text-align: center;
}

.blog-index-hero .section__tag {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.blog-index-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin: 10px 0 12px;
}

.blog-index-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Blog Index Grid ──────────────────────────────────────── */
.blog-index { background: var(--light); }

.blog__grid--4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Placeholder image for posts without a featured image */
.blog-card__image-link--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.blog-card__image-link--placeholder img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) opacity(0.6);
  transform: none !important;
}

/* ── Post Breadcrumb ──────────────────────────────────────── */
.post-breadcrumb {
  background: var(--light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(8, 24, 69, 0.07);
}

.post-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.post-breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.post-breadcrumb a:hover { color: var(--blue); }

.post-breadcrumb .fa-chevron-right {
  font-size: 10px;
  color: var(--text-light);
}

.post-breadcrumb span {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* ── Post Article ─────────────────────────────────────────── */
.post-article {
  padding: 56px 0 80px;
}

.post-article__inner {
  max-width: 800px;
}

/* ── Post Header ──────────────────────────────────────────── */
.post-header {
  margin-bottom: 36px;
}

.post-header__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  background: rgba(0, 123, 255, 0.08);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.post-header__title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* ── Post Hero Image ──────────────────────────────────────── */
.post-hero-image {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ── Post Body ────────────────────────────────────────────── */
.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 48px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 123, 255, 0.15);
}

.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body ol[type="a"] { list-style: lower-alpha; }

.post-body li { line-height: 1.7; }

.post-body strong { color: var(--navy); font-weight: 700; }

.post-body a { color: var(--blue); text-decoration: underline; }
.post-body a:hover { color: var(--blue-dark); }

/* ── Post CTA ─────────────────────────────────────────────── */
.post-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.post-cta p {
  color: var(--white) !important;
  font-size: 18px !important;
  font-weight: 600;
  margin: 0 !important;
}

/* ── Post Nav ─────────────────────────────────────────────── */
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid rgba(8, 24, 69, 0.1);
  flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog__grid--4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .blog__grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .post-cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .post-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .post-nav .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blog__grid--4 {
    grid-template-columns: 1fr !important;
  }
}
