/* ============================================
   BLOG POST / ARTICLE PAGE STYLES
   ============================================ */

/* ---- Reading Progress Bar ---- */
.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--blue-glow);
}

/* ---- Post Hero ---- */
.post-hero {
  background: var(--navy);
  padding: 140px 0 56px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(22,119,190,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 32px;
  transition: color var(--transition);
}
.post-back:hover { color: var(--white); }
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.post-date {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
.post-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.post-hero__lead {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 640px;
}

/* ---- Hero Image ---- */
.post-hero-image {
  background: var(--navy);
  padding: 0 0 0;
}
.post-hero-image .container {
  max-width: 900px;
}
.post-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  max-height: 480px;
  object-fit: cover;
  display: block;
  transform: translateY(40px);
  box-shadow: var(--shadow-lg);
}

/* ---- Post Body ---- */
.post-body {
  background: var(--off-white);
  padding: 80px 0 96px;
}
.post-body .container {
  max-width: 760px;
}
.post-content {
  background: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  margin-top: 0;
}

/* ---- Article Typography ---- */
.post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 24px;
}
.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin: 48px 0 18px;
  line-height: 1.2;
}
.post-content h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
}
.post-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.post-content strong {
  font-weight: 700;
  color: var(--text);
}
.post-content em {
  font-style: italic;
  color: inherit;
}
.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.post-content a:hover { color: #1a8ce0; }

/* Lists */
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 8px;
}
.post-content li strong { color: var(--text); }

/* Blockquote / callout */
.post-content blockquote {
  position: relative;
  border-left: none;
  padding: 18px 0 18px 28px;
  margin: 32px 0;
  background: linear-gradient(90deg, rgba(22,119,190,0.08) 0%, rgba(22,119,190,0.02) 52%, rgba(22,119,190,0) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-content blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91,164,224,0.95) 0%, rgba(22,119,190,0.85) 100%);
  box-shadow: 0 0 18px rgba(22,119,190,0.16);
}
.post-content blockquote p {
  font-size: 1.02rem;
  color: #4b5f74;
  font-style: italic;
  margin: 0;
}

/* Inline images */
.post-content .post-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.post-content .post-img-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

/* Key insight callout box */
.post-callout {
  position: relative;
  background: linear-gradient(135deg, rgba(22,119,190,0.08) 0%, rgba(91,164,224,0.05) 100%);
  border: 1px solid rgba(22,119,190,0.14);
  border-radius: var(--radius-md);
  padding: 24px 28px 24px 30px;
  margin: 32px 0;
  overflow: hidden;
}
.post-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%);
}
.post-callout p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

/* Essay sample block */
.post-essay-sample {
  position: relative;
  background: linear-gradient(135deg, rgba(22,119,190,0.08) 0%, rgba(255,255,255,0.96) 100%);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px 28px 34px;
  margin: 32px 0;
  font-style: italic;
  font-size: 0.97rem;
  line-height: 1.85;
  color: #374151;
  box-shadow: inset 0 0 0 1px rgba(22,119,190,0.08);
}
.post-essay-sample::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91,164,224,0.95) 0%, rgba(22,119,190,0.85) 100%);
}

/* Divider */
.post-divider {
  border: none;
  border-top: 1px solid #E5EAF0;
  margin: 40px 0;
}

/* ---- Post Author ---- */
.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid #E5EAF0;
  margin-top: 40px;
}
.post-author__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.post-author__role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Post Navigation ---- */
.post-nav {
  background: var(--off-white);
  padding: 0 0 64px;
}
.post-nav .container {
  max-width: 760px;
}
.post-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav__link {
  background: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-nav__link:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.post-nav__link--next { text-align: right; }
.post-nav__dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.post-nav__link--placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* ---- Blog CTA (reuse from blog.css) ---- */

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .post-back,
  .post-nav__link,
  .footer__col a,
  .footer__socials a {
    min-height: 44px;
  }

  .post-back,
  .footer__col a,
  .footer__socials a {
    display: inline-flex;
    align-items: center;
  }

  .post-back,
  .footer__col a,
  .footer__socials a {
    padding: 8px 0;
  }

  .post-nav__link {
    padding: 20px 24px;
  }

  .post-content {
    padding: 36px 28px;
  }
  .post-hero {
    padding: 120px 0 48px;
  }
  .post-nav__inner {
    grid-template-columns: 1fr;
  }
  .post-nav__link--next { text-align: left; }
}
@media (max-width: 480px) {
  .post-content {
    padding: 28px 20px;
  }
}
