/* =========================================================
   BusinessLoanBrokers.com — Blog / Article Stylesheet
   Shared by all individual article pages in /blog/
   ========================================================= */

/* ─── Blog Hero ──────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(90deg, #F8FBFF 0%, #F2F5F9 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before { display: none; }

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: #8892a1;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #8892a1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-breadcrumb a:hover { color: #10172b; }

.blog-breadcrumb .sep { color: #cbd5e1; }

.blog-breadcrumb .current { color: #485266; }

.blog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #485266;
  background: #f0f2f5;
  border: 1px solid #d8dce3;
  border-radius: var(--radius-full);
  padding: .3rem .85rem;
  margin-bottom: 1.25rem;
}

.blog-hero-inner > p {
  color: #8e959b !important;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #10172b;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Author pill */
.blog-author-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.blog-author-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8dce3;
  flex-shrink: 0;
}

.blog-author-pill .author-name {
  font-size: .875rem;
  font-weight: 600;
  color: #10172b;
  display: block;
  line-height: 1.2;
}

.blog-author-pill .author-title {
  font-size: .75rem;
  color: #8892a1;
  display: block;
}

.blog-meta-divider {
  width: 1px;
  height: 28px;
  background: #d8dce3;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: #8892a1;
}

.blog-meta-item i { font-size: .75rem; }

/* ─── Article Body Layout ────────────────────────────────── */
.blog-layout {
  padding: 4rem 0 5rem;
  background: #fff;
}

.blog-layout .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout .container {
    grid-template-columns: 1fr;
  }
  .blog-sidebar { order: 2; }
}

/* ─── Article Content ────────────────────────────────────── */
.blog-article {
  min-width: 0; /* prevent overflow in grid */
}

.blog-article .lead {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
  font-weight: 400;
}

.blog-article h2 {
  font-family: var(--font-display);
  font-size: 1.625rem; /* 26px */
  font-weight: 500;
  color: var(--gray-900);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-article h3 {
  font-family: var(--font-display);
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  color: var(--gray-800);
  margin: 2rem 0 .75rem;
  line-height: 1.35;
}

.blog-article p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.blog-article ul,
.blog-article ol {
  margin: 1rem 0 1.5rem 1.25rem;
  color: var(--gray-700);
}

.blog-article li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: .5rem;
}

.blog-article strong { color: var(--gray-900); }

.blog-article a {
  color: var(--blue-600);
  text-decoration: none;
}

.blog-article a:hover { color: var(--blue-700); }

/* Step / numbered callout boxes */
.blog-step {
  display: flex;
  gap: 1.25rem;
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  align-items: flex-start;
}

.blog-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.blog-step-content h3 {
  font-size: 1.125rem; /* 18px */
  margin: 0 0 .5rem;
  color: var(--gray-900);
}

.blog-step-content p {
  margin: 0;
  font-size: .9375rem;
  color: var(--gray-600);
}

/* Highlight / tip box */
.blog-tip {
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}

.blog-tip i {
  color: var(--blue-600);
  font-size: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.blog-tip p {
  margin: 0;
  font-size: .9375rem;
  color: var(--blue-900);
  line-height: 1.7;
}

.blog-tip strong { color: var(--blue-800); }

/* Warning box */
.blog-warning {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}

.blog-warning i {
  color: #d97706;
  font-size: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.blog-warning p {
  margin: 0;
  font-size: .9375rem;
  color: #78350f;
  line-height: 1.7;
}

/* Success / green box */
.blog-success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 4px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}

.blog-success i {
  color: #059669;
  font-size: 1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.blog-success p {
  margin: 0;
  font-size: .9375rem;
  color: #064e3b;
  line-height: 1.7;
}

/* Stat highlight row */
.blog-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.blog-stat-box {
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}

.blog-stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blue-600);
  margin-bottom: .25rem;
}

.blog-stat-box span {
  font-size: .8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Table */
.blog-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.blog-table thead {
  background: linear-gradient(145deg, #1e40af, #2563eb);
  color: #fff;
}

.blog-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-table tr:last-child td { border-bottom: none; }
.blog-table tbody tr:hover { background: var(--blue-50); }
.blog-table td:first-child { font-weight: 600; color: var(--gray-900); }

/* Article CTA */
.blog-cta-box {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: #fff;
}

.blog-cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--h4-size, 1.625rem); /* in-article CTA title scales to h4 */
  font-weight: 500;
  color: #fff;
  margin: 0 0 .75rem;
}

.blog-cta-box p {
  color: rgba(255,255,255,.85);
  margin: 0 0 1.5rem;
  font-size: .9375rem;
}

.blog-cta-box .btn-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--blue-700);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.blog-cta-box .btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}

/* Article footer author box */
.blog-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 3rem;
}

.blog-author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.blog-author-box-info h6 {
  font-weight: 500;
  color: var(--gray-900);
  margin: 0;
}

.blog-author-box-info .role {
  font-size: .8125rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: .6rem;
  display: block;
}

.blog-author-box-info p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.sidebar-card h4 {
  font-size: .75rem; /* intentional: sidebar section labels are tiny caps */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin: 0 0 1rem;
}

/* Table of contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toc-list a {
  font-size: .875rem;
  color: var(--gray-700);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  flex-shrink: 0;
  margin-top: .45rem;
}

.toc-list a:hover { color: var(--blue-600); }

/* Related articles */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-list li a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  display: block;
  line-height: 1.45;
  transition: color var(--transition-fast);
}

.related-list li a:hover { color: var(--blue-600); }

.related-list li span {
  font-size: .775rem;
  color: var(--gray-400);
  margin-top: .2rem;
  display: block;
}

/* Sidebar CTA */
.sidebar-cta-card {
  background: linear-gradient(145deg, var(--blue-600), var(--blue-800));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-cta-card h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  color: #fff;
  margin: 0 0 .6rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.sidebar-cta-card p {
  font-size: .8125rem;
  color: rgba(255,255,255,.8);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* ─── Sources & Further Reading ─────────────────────────── */
.sources-section {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-xl);
}

.sources-section h4 {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sources-section h4 i {
  color: var(--blue-600);
  font-size: .875rem;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sources-list li {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.sources-list li::before {
  content: "↗";
  color: var(--blue-500);
  font-size: .75rem;
  flex-shrink: 0;
}

.sources-list a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.sources-list a:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.sources-disclaimer {
  font-size: .75rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
}

.sidebar-cta-card .btn-white-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: var(--blue-700);
  padding: .6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .8125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}

.sidebar-cta-card .btn-white-sm:hover {
  background: var(--blue-50);
  transform: translateY(-1px);
}

/* ─── Newsletter Sidebar Widget ─────────────────────────── */
.sidebar-newsletter {
  background: linear-gradient(145deg, var(--blue-600), var(--blue-800));
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.sidebar-newsletter h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar-newsletter > p:not(.snl-disclaimer) {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}
.snl-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.snl-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.8375rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.snl-input::placeholder { color: rgba(255,255,255,0.5); }
.snl-input:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.15); }
.snl-btn {
  width: 100%;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: none;
  background: #fff;
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  margin-top: 0;
  text-decoration: none;
}
.snl-btn:hover { background: var(--blue-50); transform: translateY(-1px); }
.snl-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8) !important;
  margin: 0.6rem 0 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.snl-success {
  background: rgba(16,185,129,0.15);
  border: 1.5px solid rgba(16,185,129,0.4);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8375rem;
  color: #6ee7b7;
  margin-top: 0.75rem;
}
.snl-success i { font-size: 1rem; color: #10b981; }

/* ─── Case Study Pages ───────────────────────────────────── */

/* Hero override for case studies */
.cs-page-hero {
  background: linear-gradient(90deg, #F8FBFF 0%, #F2F5F9 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.cs-page-hero::before { display: none; }
.cs-page-hero-inner { position: relative; z-index: 1; max-width: 860px; }

/* Result banner inside hero */
.cs-result-banner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl); padding: 1.25rem 1.75rem;
  margin-top: 2rem;
}
.cs-result-banner-item { text-align: center; flex: 1; min-width: 0; }
.cs-result-banner-item strong {
  display: block; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 500; color: #10172b; line-height: 1;
}
.cs-result-banner-item span {
  font-size: .75rem; color: #8892a1; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; display: block;
}
.cs-result-divider {
  width: 1px; background: #e2e8f0; align-self: stretch;
}

/* Challenge / Solution / Result blocks */
.cs-section-block {
  background: var(--gray-50); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 2rem 2.25rem; margin: 2rem 0;
}
.cs-section-block h3 {
  font-family: var(--font-display); font-size: var(--h5-size, 1.375rem); font-weight: 500;
  color: var(--gray-900); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.cs-section-block h3 i { color: var(--blue-600); font-size: .95rem; }
.cs-section-block p { margin-bottom: .85rem; font-size: .9375rem; color: var(--gray-700); line-height: 1.8; }
.cs-section-block p:last-child { margin-bottom: 0; }
.cs-section-block ul { margin: .5rem 0 .5rem 1.25rem; }
.cs-section-block li { font-size: .9375rem; color: var(--gray-700); line-height: 1.8; margin-bottom: .35rem; }

/* Solution block teal accent */
.cs-section-block.solution {
  background: #f0fdf4; border-color: #bbf7d0; border-left: 4px solid #10b981;
}
.cs-section-block.solution h3 i { color: #059669; }

/* Result block blue accent */
.cs-section-block.result {
  background: var(--blue-50); border-color: var(--blue-200); border-left: 4px solid var(--blue-600);
}
.cs-section-block.result h3 i { color: var(--blue-600); }

/* Client quote pull-out */
.cs-quote {
  border-left: 4px solid var(--blue-500);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  background: var(--blue-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.cs-quote blockquote {
  font-size: 1.15rem; font-style: italic;
  color: var(--blue-900); line-height: 1.75; margin: 0 0 1rem;
  font-weight: 500;
}
.cs-quote cite {
  display: flex; align-items: center; gap: .75rem; font-style: normal;
}
.cs-quote cite img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,.4);
}
.cs-quote cite strong { font-size: .9rem; color: var(--gray-900); display: block; }
.cs-quote cite span { font-size: .8rem; color: var(--gray-500); }

/* Loan details table in sidebar */
.cs-loan-details { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.cs-loan-details li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; gap: .5rem;
}
.cs-loan-details li span:first-child { color: var(--gray-500); }
.cs-loan-details li span:last-child { font-weight: 700; color: var(--gray-900); text-align: right; }
.cs-loan-details .divider { height: 1px; background: var(--color-border); margin: .25rem 0; }

/* Credit-type badge override */
.blog-category-chip.teal {
  color: #0d9488; background: rgba(13,148,136,.1); border-color: rgba(13,148,136,.25);
}
.blog-category-chip.teal i { color: #0d9488; }
