﻿/* ============================================================
   Blog-specific styles. Loaded after sb-system.css.
   Covers: blog index hero + grid, article hero with cover photo,
   article body typography, related-posts strip.
   ============================================================ */

/* ----- Blog index ----- */
.sb-blog-index-hero {
  max-width: 920px;
  margin: 48px auto 32px;
  padding: 0 24px;
  text-align: center;
}
.sb-blog-index-hero .sb-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.sb-blog-index-hero h1 {
  font: 700 44px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #121722;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
}
@media (max-width: 720px) {
  .sb-blog-index-hero h1 { font-size: 32px; }
}
.sb-blog-index-hero .lede {
  font: 400 18px/1.55 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #3a4456;
  max-width: 680px;
  margin: 0 auto;
}

.sb-blog-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .sb-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .sb-blog-grid { grid-template-columns: 1fr; } }

.sb-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(15,18,28,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sb-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px -22px rgba(15,18,28,0.22);
  border-color: rgba(181,130,10,0.25);
}
.sb-blog-card-img {
  aspect-ratio: 16 / 9;
  background: #faf7ee;
  overflow: hidden;
}
.sb-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.sb-blog-card:hover .sb-blog-card-img img { transform: scale(1.04); }
.sb-blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sb-blog-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: #5a6478;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.sb-blog-card-meta .sb-eyebrow { margin: 0; padding: 0; color: #b5820a; }
.sb-blog-card h2 {
  font: 700 19px/1.3 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121722;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.sb-blog-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3a4456;
  margin: 0 0 14px;
  flex: 1;
}
.sb-blog-card-cta {
  font: 600 13.5px/1 -apple-system, sans-serif;
  color: #b5820a;
  letter-spacing: 0.01em;
}

/* ----- Blog article hero ----- */
.sb-blog-hero {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.sb-blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #5a6478;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.sb-blog-meta .sb-eyebrow { margin: 0; padding: 0; color: #b5820a; }
.sb-blog-hero h1 {
  font: 700 40px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #121722;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
}
@media (max-width: 720px) {
  .sb-blog-hero h1 { font-size: 30px; }
}
.sb-blog-hero .lede {
  font: 400 19px/1.55 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #3a4456;
  margin: 0 0 32px;
}
.sb-blog-figure {
  margin: 32px 0 0;
  position: relative;
}
.sb-blog-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(15,18,28,0.35), 0 0 0 1px rgba(15,18,28,0.06);
  filter: contrast(1.04) saturate(0.9);
}
.sb-blog-figure::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-top: 2px solid #b5820a;
  border-left: 2px solid #b5820a;
  border-radius: 2px 0 0 0;
  pointer-events: none;
}
.sb-blog-figure figcaption {
  font: italic 13px/1.5 Georgia, "Times New Roman", serif;
  color: #5a6478;
  margin-top: 12px;
  text-align: right;
  padding-right: 4px;
}

/* ----- Article body typography ----- */
.sb-blog-article {
  max-width: 720px;
  margin: 32px auto 32px;
  padding: 0 24px;
  font: 400 18px/1.7 Georgia, "Times New Roman", serif;
  color: #1a1f2e;
}
.sb-blog-article > p,
.sb-blog-article > ul,
.sb-blog-article > ol,
.sb-blog-article > blockquote {
  margin: 0 0 22px;
}
.sb-blog-article h2 {
  font: 700 26px/1.25 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121722;
  letter-spacing: -0.012em;
  margin: 44px 0 14px;
}
.sb-blog-article h3 {
  font: 700 21px/1.3 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121722;
  letter-spacing: -0.008em;
  margin: 32px 0 12px;
}
.sb-blog-article h4 {
  font: 700 17px/1.35 -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121722;
  margin: 24px 0 10px;
}
.sb-blog-article ul,
.sb-blog-article ol { padding-left: 24px; }
.sb-blog-article li { margin-bottom: 8px; }
.sb-blog-article a {
  color: #b5820a;
  text-decoration: underline;
  text-decoration-color: rgba(181,130,10,0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s ease;
}
.sb-blog-article a:hover { text-decoration-color: #b5820a; }
.sb-blog-article strong { color: #121722; }
.sb-blog-article em, .sb-blog-article i { color: #1a1f2e; font-style: italic; }
.sb-blog-article blockquote {
  padding: 24px 28px;
  margin: 28px 0;
  font: italic 19px/1.55 Georgia, "Times New Roman", serif;
  color: #2a3142;
  background: rgba(212,168,87,0.07);
  border: 1px solid rgba(212,168,87,0.22);
  border-radius: 12px;
}

/* CTA block at the end of an article */
.sb-blog-article .sb-cta {
  margin: 48px auto 0;
  padding: 28px 32px;
  background: #faf7ee;
  border: 1px solid rgba(181,130,10,0.18);
  border-radius: 14px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.sb-blog-article .sb-cta p {
  margin: 0 0 14px;
  font-size: 17px;
  color: #1a1f2e;
}
.sb-blog-article .sb-cta a {
  display: inline-block;
  padding: 12px 28px;
  background: #b5820a;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease;
}
.sb-blog-article .sb-cta a:hover { background: #9a6e08; transform: translateY(-1px); }
.sb-blog-article .sb-cta small {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: #5a6478;
  letter-spacing: 0.02em;
}

/* ----- Related-articles strip with cover images (blog only) ----- */
.sb-related-with-images {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
}
@media (max-width: 900px) { .sb-related-with-images { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .sb-related-with-images { grid-template-columns: 1fr !important; } }
.sb-related-with-images > a {
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(15,18,28,0.08) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.sb-related-with-images > a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 48px -22px rgba(15,18,28,0.22) !important;
  border-color: rgba(181,130,10,0.25) !important;
}
.sb-related-with-images .sb-related-img {
  aspect-ratio: 16 / 9;
  background: #faf7ee;
  overflow: hidden;
}
.sb-related-with-images .sb-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.sb-related-with-images > a:hover .sb-related-img img {
  transform: scale(1.04);
}
.sb-related-with-images .sb-related-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
