/* Blog posts. Builds on style.css (tokens, header/footer, buttons) and
   product.css (breadcrumb, WhatsApp strip). */

.post-hero {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  padding: 48px 0 120px;
  color: var(--white);
}
.post-hero .container { max-width: 1116px; }
.post-hero h1, .post-meta { max-width: 820px; }
.post-chip {
  display: inline-block;
  background: rgba(244, 176, 0, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(244, 176, 0, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-chip:hover { background: rgba(244, 176, 0, 0.28); }
.post-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  margin: 0;
}
.post-meta span + span::before { content: "\2022"; margin-right: 18px; color: var(--gold); }

.post-cover {
  max-width: 1116px;
  margin: -88px auto 0;
  padding: 0 20px;
}
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  justify-content: space-between;
  max-width: 1116px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* Article typography */
.post-content { max-width: 720px; font-size: 1.06rem; }
.post-content p { color: #45435a; line-height: 1.8; margin-bottom: 1.15em; }
.post-content .post-lead { font-size: 1.18rem; color: var(--ink); line-height: 1.75; }
.post-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 1.8em 0 0.6em;
  padding-top: 0.4em;
}
.post-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-800);
  margin: 1.9em 0 0.55em;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.35;
}
.post-content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}
.post-content ul, .post-content ol { margin: 0 0 1.3em; padding-left: 1.35em; color: #45435a; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { line-height: 1.75; margin-bottom: 0.45em; padding-left: 0.2em; }
.post-content li::marker { color: var(--gold); }
.post-content li ul, .post-content li ol { margin: 0.45em 0 0.2em; }
.post-content .faq-list { margin: 0 0 1.4em; }
.post-content .faq-list dd { color: #45435a; line-height: 1.75; }
.post-content a {
  color: var(--navy-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--navy-900); background: rgba(244, 176, 0, 0.14); }
.post-summary {
  background: #f7f5fc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 28px 10px;
  margin-top: 2.2em;
}
.post-summary h2 { margin-top: 0; padding-top: 0; }

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.post-share-label { font-weight: 700; color: var(--ink); margin-right: 6px; }
.post-share a {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: border-color 0.2s, background 0.2s;
}
.post-share a:hover { border-color: var(--gold); background: rgba(244, 176, 0, 0.1); }

/* Sidebar */
.post-sidebar { position: sticky; top: 96px; display: grid; gap: 24px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
}
.sidebar-card h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 16px;
}
.recent-posts { display: grid; gap: 16px; }
.recent-post { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.recent-post img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.recent-post span { font-weight: 600; font-size: 0.92rem; line-height: 1.4; color: var(--ink); }
.recent-post:hover span { color: var(--navy-500); text-decoration: underline; text-decoration-color: var(--gold); }
.recent-post[aria-current] span { color: var(--body-muted); }
.category-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 600;
  color: var(--navy-700);
}
.category-list a:hover { color: var(--gold); }

/* Blog index (category/blog/) */
.blog-index-hero { padding-bottom: 56px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.blog-card-media img { width: 100%; height: auto; aspect-ratio: 58 / 45; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.blog-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--body-muted);
  margin-bottom: 8px;
}
.blog-card-meta span::before { content: "\2022"; margin-right: 14px; color: var(--gold); }
.blog-card-title { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; }
.blog-card-title a:hover { color: var(--navy-500); }
.blog-card-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-700);
}
.blog-card-more:hover { color: var(--gold); }
.category-list a[aria-current] { color: var(--ink); }

/* Plain text pages (Careers, Our Team): single column, no sidebar */
.info-layout { grid-template-columns: minmax(0, 720px); }
.post-content > :first-child { margin-top: 0; padding-top: 0; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-index-hero { padding-bottom: 40px; }
  .post-hero { padding: 32px 0 96px; }
  .post-cover { margin-top: -72px; }
  .post-content { font-size: 1rem; }
  .post-summary { padding: 20px 18px 6px; }
}
