/* ===========================================================================
   Home Kruncher: blog chrome, aligned with /pages.css
   Load order: blog.css (article body components) -> pages.css (site chrome)
               -> this file (blog-specific layout)
   The header, hero, callouts, footer and link grid all come from pages.css,
   so the blog matches About / FAQ / Privacy / Terms / Contact exactly.
   =========================================================================== */

/* ───────────────────── article page shell (matches .page-wrap) ───────────── */

.blog-page-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* the article body sits in the same card as every other page */
.blog-article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.blog-article-card > *:first-child { margin-top: 0; }
.blog-article-card > *:last-child  { margin-bottom: 0; }

/* article titles run longer than page titles, so ease the hero size down */
.blog-page-container .page-hero h1 { font-size: 32px; }

.hero-meta .ti { font-size: 14px; vertical-align: -1px; }

/* ───────────────────────── in-article CTA bar ───────────────────────────── */

.blog-cta-bar {
  background: linear-gradient(135deg, var(--hk-navy) 0%, var(--blue-800) 100%);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  box-shadow: 0 8px 26px rgba(12, 26, 58, .20);
}

.blog-cta-bar .cta-text {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  flex: 1;
  min-width: 220px;
}

.blog-cta-bar .cta-sub {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .74);
  margin-top: 5px;
  line-height: 1.6;
}

.blog-cta-bar a.cta-btn-go {
  flex: none;
  background: var(--hk-green);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(92, 184, 92, .34);
  transition: transform .16s, box-shadow .16s, background .16s;
}

.blog-cta-bar a.cta-btn-go:hover {
  background: var(--hk-green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 184, 92, .42);
}

/* ───────────────────────── related guides block ─────────────────────────── */

.blog-related { margin: 0 0 4px; }

.blog-related h3 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 13px;
  padding-left: 2px;
}

.blog-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 11px;
}

.blog-related li { margin: 0; }

.blog-related a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.blog-related a::before {
  content: '\efc5';                 /* tabler book-2 */
  font-family: 'tabler-icons';
  font-size: 17px;
  color: var(--hk-blue);
  flex: none;
  font-weight: 400;
  margin-top: 1px;
}

.blog-related a:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ═══════════════════════ blog index (listing page) ═══════════════════════ */

.blog-index-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.blog-index-container .crumbs,
.blog-index-container .page-hero,
.blog-index-container .more-nav { max-width: 100%; }

/* featured post */

.featured-post {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.featured-post:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.featured-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--hk-navy) 60%, #22507f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.featured-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(92, 184, 92, .30) 0%, rgba(92, 184, 92, 0) 70%);
}

.featured-hero i { font-size: 58px; color: rgba(255, 255, 255, .92); position: relative; }

.featured-body { padding: 26px 30px 28px; }

.featured-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--hk-green-mid);
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  border-radius: 100px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.featured-title {
  font-family: 'Sora', sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.featured-excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0 0 14px;
}

.featured-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.featured-meta span { display: inline-flex; align-items: center; gap: 5px; }
.featured-meta .ti { font-size: 14px; }

.featured-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
}

.featured-post:hover .featured-read { gap: 11px; }
.featured-read { transition: gap .18s; }

/* section heading above the grid */

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 14px;
  padding-left: 2px;
}

/* card grid */

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.bi-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.bi-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bi-card-hero {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-bottom: 1px solid var(--gray-100);
}

.bi-card-hero i { font-size: 34px; color: var(--blue-600); }

.bi-card-hero.green  { background: var(--green-50); }
.bi-card-hero.green i  { color: var(--green-600); }
.bi-card-hero.amber  { background: var(--amber-100); }
.bi-card-hero.amber i  { color: #b45309; }
.bi-card-hero.purple { background: #f3e8ff; }
.bi-card-hero.purple i { color: #7c3aed; }
.bi-card-hero.navy   { background: var(--hk-navy-light); }
.bi-card-hero.navy i   { color: var(--hk-navy); }

.bi-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.bi-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.bi-tag.green  { color: var(--green-600); background: var(--green-50);  border-color: #bbf7d0; }
.bi-tag.amber  { color: #b45309;          background: var(--amber-100); border-color: #fde68a; }
.bi-tag.purple { color: #7c3aed;          background: #f3e8ff;          border-color: #e9d5ff; }

.bi-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--gray-900);
  margin-bottom: 8px;
  transition: color .18s;
}

.bi-card:hover .bi-card-title { color: var(--blue-600); }

.bi-card-excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 14px;
  flex: 1;
}

.bi-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-500);
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.bi-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bi-card-meta .ti { font-size: 13px; }

/* ──────────────────────────────── mobile ────────────────────────────────── */

@media (max-width: 760px) {
  .blog-article-card { padding: 22px 20px; }
  .blog-page-container .page-hero h1 { font-size: 25px; }
  .blog-cta-bar { padding: 22px; flex-direction: column; align-items: flex-start; }
  .blog-cta-bar a.cta-btn-go { width: 100%; justify-content: center; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-hero { min-height: 128px; }
  .featured-hero i { font-size: 44px; }
  .featured-body { padding: 22px 20px 24px; }
  .featured-title { font-size: 19px; }
}

@media (max-width: 640px) {
  .blog-page-container,
  .blog-index-container { padding: 0 16px 48px; }
  .blog-index-grid { grid-template-columns: 1fr; }
}

/* ---------- Article byline + author credibility block ---------- */

.hero-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-300);
  transition: color .18s, border-color .18s;
}

.hero-meta a:hover {
  color: var(--hk-blue);
  border-color: var(--hk-blue);
}

.article-author {
  display: flex;
  gap: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 0 0 20px;
}

.article-author .aa-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--hk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.article-author .aa-body { flex: 1; min-width: 0; }

.article-author h3 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 2px 0 9px;
}

.article-author p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--gray-700);
  margin: 0 0 11px;
}

.article-author p strong { color: var(--gray-900); font-weight: 600; }

.article-author .aa-note {
  font-size: 13px;
  line-height: 1.62;
  color: var(--gray-500);
  padding-top: 11px;
  border-top: 1px solid var(--gray-200);
}

.article-author .aa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hk-blue);
  text-decoration: none;
}

.article-author .aa-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .article-author { flex-direction: column; gap: 13px; padding: 20px; }
  .article-author .aa-icon { width: 40px; height: 40px; font-size: 20px; }
}
