/* ============================================
   FORGEAHEAD HOLDINGS - Blog
   Index cards + article pages
   ============================================ */

/* ---- index grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.12);
  border-color: var(--gray-200);
}

.blog-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  transition: transform 0.8s ease;
}
.blog-card:hover .blog-card-image { transform: scale(1.04); }

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.blog-card-cat { color: var(--gold); }
.blog-card-meta span + span::before { content: "\00b7"; margin-right: 10px; color: var(--gray-300); }

.blog-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 12px;
}

.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0 0 20px;
  flex: 1;
}

.blog-card-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Lead story spans the full width on wide screens. */
@media (min-width: 900px) {
  .blog-card-featured { grid-column: 1 / -1; flex-direction: row; }
  .blog-card-featured .blog-card-image { flex: 1 1 55%; height: auto; min-height: 340px; }
  .blog-card-featured .blog-card-body { flex: 1 1 45%; justify-content: center; padding: 48px; }
  .blog-card-featured .blog-card-title { font-size: 40px; }
  .blog-card-featured .blog-card-excerpt { font-size: 16px; }
}

/* ---- article page ---- */
.post-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.post-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--navy); }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,29,51,0.35) 0%, rgba(17,29,51,0.78) 60%, rgba(17,29,51,0.96) 100%); }
.post-hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 0 48px 72px; width: 100%; }

.post-hero-meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.post-hero-meta a { color: var(--gold); text-decoration: none; }
.post-hero-meta a:hover { text-decoration: underline; }
.post-hero-meta span { color: rgba(255,255,255,0.35); margin: 0 6px; }

.post-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 20px;
}

.post-hero-sub {
  font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin: 0;
}
.post-hero-sub span { margin: 0 6px; color: rgba(255,255,255,0.3); }

.post-body { max-width: 720px; margin: 0 auto; padding: 72px 48px 40px; }

.post-lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 23px; font-style: italic; font-weight: 300; line-height: 1.55;
  color: var(--gray-700); margin: 0 0 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}

.post-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px; font-weight: 400; line-height: 1.25; color: var(--navy);
  margin: 52px 0 18px;
}
.post-body h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy);
  margin: 36px 0 12px;
}
.post-body p { font-size: 17px; line-height: 1.8; color: var(--gray-700); margin: 0 0 24px; }
/* styles.css resets list markers globally; the article body wants them back. */
.post-body ul { margin: 0 0 28px; padding-left: 22px; list-style: disc outside; }
.post-body ol { margin: 0 0 28px; padding-left: 22px; list-style: decimal outside; }
.post-body li { font-size: 17px; line-height: 1.8; color: var(--gray-700); margin-bottom: 10px; }
.post-body li::marker { color: var(--gold); }
.post-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-body a:hover { color: var(--gold-dark); }
.post-body strong { color: var(--navy); font-weight: 600; }
.post-body blockquote {
  margin: 36px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-style: italic;
  font-weight: 300; line-height: 1.5; color: var(--navy);
}
.post-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 32px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); text-align: left; }
.post-body th { color: var(--navy); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- footers on the article page ---- */
.post-cta { background: var(--gradient-navy, var(--navy)); text-align: center; padding: 80px 48px; margin-top: 40px; }
.post-cta-caption { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.post-cta-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 4vw, 44px); font-weight: 300; color: #fff; margin: 0 0 16px; }
.post-cta-title em { font-style: italic; color: var(--gold); }
.post-cta-text { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; max-width: 520px; margin: 0 auto 28px; }

.post-related, .blog-related { background: var(--off-white); padding: 72px 48px; }
.blog-related-caption { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 32px; }

.post-back { text-align: center; padding: 48px 24px 72px; background: #fff; }
.post-back a { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-hero { min-height: 52vh; }
  .post-hero-content { padding: 0 24px 48px; }
  .post-body { padding: 48px 24px 32px; }
  .post-lede { font-size: 20px; }
  .post-body h2 { font-size: 28px; margin-top: 40px; }
  .post-body p, .post-body li { font-size: 16px; }
  .post-cta, .post-related, .blog-related { padding: 56px 24px; }
}
