/* ============================================================
   BLOG POST PAGE STYLES
   Used by all blog/[slug].html files
   ============================================================ */

/* ── Post hero ── */
.post-hero {
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  background: #304699;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 110, 0.65);
}

.post-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 110px;
}

.post-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e29a2e;
  margin-bottom: 20px;
}

.post-hero-eyebrow a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-hero-eyebrow a:hover {
  opacity: 0.75;
}

.post-hero-eyebrow span {
  opacity: 0.5;
}

.post-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.2;
  max-width: 860px;
}

.post-hero-date {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.post-hero-date i {
  margin-right: 7px;
  opacity: 0.7;
}

/* ── Post section ── */
.post-section {
  background: #ffffff;
  padding-bottom: 80px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #304699;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 48px 0 44px;
  display: flex;
  transition: color 0.2s;
  width: fit-content;
}

.post-back-link:hover {
  color: #e29a2e;
}

/* ── Article body ── */
.post-body {
  max-width: 760px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0 28px;
  display: block;
}

.post-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: #304699;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.post-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #304699;
  margin: 36px 0 12px;
  line-height: 1.35;
}

.post-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e2d6e;
  margin: 28px 0 8px;
}

.post-body p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444455;
  margin: 0 0 20px;
}

.post-body p:first-child {
  margin-top: 0;
}

.post-body a {
  color: #304699;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-body a:hover {
  color: #e29a2e;
}

.post-body strong, .post-body b {
  color: #1e2d6e;
  font-weight: 700;
}

.post-body em, .post-body i {
  font-style: italic;
}

.post-body ul,
.post-body ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.post-body ul li,
.post-body ol li {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444455;
  padding: 5px 0 5px 28px;
  position: relative;
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e29a2e;
}

.post-body ol {
  counter-reset: post-ol;
}

.post-body ol li {
  counter-increment: post-ol;
}

.post-body ol li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  color: #e29a2e;
  background: rgba(226,154,46,0.12);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(48,70,153,0.07);
}

.post-body table th,
.post-body table td:first-child b {
  background: #304699;
  color: #ffffff;
}

.post-body table tr:first-child td {
  background: #304699;
  color: #ffffff;
  font-weight: 700;
}

.post-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f9;
  color: #444455;
  vertical-align: top;
}

.post-body table tr:last-child td {
  border-bottom: none;
}

.post-body table tr:nth-child(even) td {
  background: #f8faff;
}

/* Source credit */
.post-source-credit {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #999;
  font-style: italic;
  margin-bottom: 24px;
}

.post-source-credit a {
  color: #999;
}

/* ── Prev / Next navigation ── */
.post-nav {
  background: #f4f6fb;
  border-top: 1px solid #e4e8f4;
}

.post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-nav-link:hover {
  background: #eaeef8;
}

.post-nav-prev {
  border-right: 1px solid #e4e8f4;
}

.post-nav-next {
  justify-content: flex-end;
  text-align: right;
}

.post-nav-img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.post-nav-text {
  min-width: 0;
}

.post-nav-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e29a2e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 5px;
}

.post-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #304699;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA override ── */
.blog-post-page .membership-section {
  background: #ffffff;
  border-top: 1px solid #e4e8f4;
}

.blog-post-page .membership-section h5.section-eyebrow { color: #e29a2e; }
.blog-post-page .membership-section h2 { color: #304699; }
.blog-post-page .membership-section p { color: #555566; }
.blog-post-page .membership-section .step-number { background: #304699; color: #ffffff; }
.blog-post-page .membership-section .step-title { color: #304699; }
.blog-post-page .membership-section .step-desc { color: #666677; }
.blog-post-page .membership-section .step-connector { background: #e29a2e; opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .post-hero-content {
    padding: 48px 0 90px;
  }

  .post-nav-inner {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .post-nav-prev {
    border-right: none;
    border-bottom: 1px solid #e4e8f4;
  }

  .post-nav-next {
    justify-content: flex-start;
    text-align: left;
  }

  .post-nav-link {
    padding: 20px 24px;
  }
}
