/* ==========================================================================
   BadCredit CarLoans — landing page styles
   Framework-free. Design tokens (colors, gradients, --maxw*) live entirely
   in global.css, which always loads first — this file only adds
   page-specific component styles on top of them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bccl {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bccl h1,
.bccl h2,
.bccl h3,
.bccl h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

.bccl p { margin: 0; }

.bccl a { text-decoration: none; color: inherit; }

.bccl img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.bccl .container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .bccl .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bccl .container { padding-inline: 2rem; } }

.bccl .container--narrow { max-width: var(--maxw-narrow); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.bccl .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.bccl .btn svg { width: 1rem; height: 1rem; }

.bccl .btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.bccl .btn--primary:hover { transform: translateY(-2px); }

.bccl .btn--ghost {
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--foreground);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.bccl .btn--ghost:hover { background: var(--surface); }

.bccl .btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.bccl .btn--md { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.bccl .btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

.bccl .icon-primary { color: var(--primary); }

/* --------------------------------------------------------------------------
   Utility bits reused across sections
   -------------------------------------------------------------------------- */
/* !important: same Elementor Site Kit CSS bleed documented in global.css —
   its global paragraph color rule ships with !important and beats an
   ordinary declaration here. Safe to drop once every page is off Elementor. */
.bccl .eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary) !important;
}
.bccl .text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bccl .text-muted { color: var(--ink-muted); }

.bccl .section { padding-block: 3rem; }
@media (min-width: 768px) { .bccl .section { padding-block: 5rem; } }
.bccl .section--tight-top { padding-top: 0; }
.bccl .section--tight-bottom { padding-bottom: 0; }

.bccl .section-head {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}
.bccl .section-head h1,
.bccl .section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
}

/* Smaller section titles on the Loan Type templates only — 24px mobile,
   40px desktop. Scoped via WordPress's own page-template body class
   rather than a new selector, so it can't leak onto Home/About/Contact/
   Blog, which share the same .section-head markup. The hero's own <h1>
   isn't wrapped in .section-head at all, so it's unaffected either way. */
body.page-template-template-loan-type-php .bccl .section-head h1,
body.page-template-template-loan-type-php .bccl .section-head h2,
body.page-template-template-loan-type-flex-php .bccl .section-head h1,
body.page-template-template-loan-type-flex-php .bccl .section-head h2 {
  font-size: 1.5rem;
}
@media (min-width: 768px) {
  body.page-template-template-loan-type-php .bccl .section-head h1,
  body.page-template-template-loan-type-php .bccl .section-head h2,
  body.page-template-template-loan-type-flex-php .bccl .section-head h1,
  body.page-template-template-loan-type-flex-php .bccl .section-head h2 {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.bccl .hero {
  position: relative;
  overflow: hidden;
  background-image: var(--gradient-hero);
}
.bccl .hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 2.5rem;
}
.bccl .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  backdrop-filter: blur(4px);
}
.bccl .badge svg { width: 0.875rem; height: 0.875rem; }

.bccl .hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
}
.bccl .hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.bccl .hero__lead strong { color: var(--foreground); font-weight: 500; }

.bccl .hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bccl .hero__assurances {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.bccl .hero__assurances span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bccl .hero__assurances svg { width: 1rem; height: 1rem; }

.bccl .hero__media { position: relative; }
.bccl .hero__media-glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 2rem;
  background-image: var(--gradient-primary);
  opacity: 0.2;
  filter: blur(48px);
}
.bccl .hero__media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.bccl .hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 640px) {
  .bccl .hero__cta { flex-direction: row; }
}
@media (min-width: 768px) {
  .bccl .hero__inner { padding-block: 6rem; }
}
@media (min-width: 1024px) {
  .bccl .hero__inner { grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 8rem; }
  .bccl .hero__inner--no-media { grid-template-columns: 1fr; max-width: 42rem; }
}

/* No-media hero (e.g. the blog listing) — centered text, tighter padding,
   at every breakpoint (comes after the responsive rules above so it wins
   the specificity tie regardless of screen size). */
.bccl .hero__inner--no-media {
  text-align: center;
  padding-block: 1rem !important;
}
.bccl .hero__inner--no-media .hero__lead {
  max-width: none;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.bccl .trustbar {
  border-block: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.bccl .trustbar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.bccl .stat { text-align: center; }
.bccl .stat__k {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
}
.bccl .stat__v { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-muted); }

@media (min-width: 768px) {
  .bccl .trustbar__inner { grid-template-columns: repeat(4, 1fr); }
  .bccl .stat { text-align: left; }
  .bccl .stat__k { font-size: 2.25rem; }
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.bccl .feature-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.bccl .feature-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.bccl .feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
}
.bccl .feature-card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.bccl .feature-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }

@media (min-width: 640px) { .bccl .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bccl .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Process (four steps)
   -------------------------------------------------------------------------- */
.bccl .process-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.bccl .step-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.bccl .step-card__num {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.bccl .step-card__icon { color: var(--primary); margin-bottom: 0.75rem; }
.bccl .step-card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.bccl .step-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }

@media (min-width: 640px) { .bccl .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bccl .process-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Loan types
   -------------------------------------------------------------------------- */
.bccl .loans {
  display: grid;
  gap: 3rem;
  align-items: start;
  grid-template-columns: 1fr;
}
.bccl .loans__intro h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
}
.bccl .loans__intro p { margin-top: 1rem; color: var(--ink-muted); }
.bccl .loans__intro em { font-style: italic; }
.bccl .loans__link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  /* !important: global.css's `a { color: inherit !important; }` reset
     otherwise wins over this regardless of specificity. */
  color: var(--primary) !important;
}
.bccl .loans__link:hover { text-decoration: underline; }

.bccl .loans__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.bccl .loan-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}
.bccl .loan-item:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.bccl .loan-item__row { display: flex; align-items: flex-start; gap: 0.75rem; }
.bccl .loan-item__row svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--primary); width: 1.25rem; height: 1.25rem; }
.bccl .loan-item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.bccl .loan-item p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-muted); }

@media (min-width: 640px) { .bccl .loans__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bccl .loans { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* --------------------------------------------------------------------------
   Showcase (image with overlay copy)
   -------------------------------------------------------------------------- */
.bccl .showcase-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}
.bccl .showcase-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.bccl .showcase-frame__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--background), color-mix(in oklab, var(--background) 80%, transparent), transparent);
}
.bccl .showcase-frame__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.bccl .showcase-frame__copy { max-width: 36rem; padding-inline: 2rem; }
.bccl .showcase-frame__copy h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
}
.bccl .showcase-frame__copy p { margin-top: 1rem; color: var(--ink-muted); }
.bccl .showcase-frame__copy .btn { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .bccl .showcase-frame img { height: 520px; }
  .bccl .showcase-frame__copy { padding-inline: 4rem; }
}

/* --------------------------------------------------------------------------
   Lenders (banded section background shared with Process)
   -------------------------------------------------------------------------- */
.bccl .testimonials {
  border-block: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--surface) 30%, transparent);
}
/* TODO: placeholder only — awaiting final lender panel + logo assets. */
.bccl .lenders-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
.bccl .lenders-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
}
.bccl .lenders-grid__item img { max-width: 100%; max-height: 2.5rem; }

@media (min-width: 768px) { .bccl .lenders-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .bccl .lenders-grid { grid-template-columns: repeat(5, 1fr); } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.bccl .faq-list {
  margin-top: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.bccl .faq-item { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.bccl .faq-item:first-child { border-top: none; }
.bccl .faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.bccl .faq-item > summary::-webkit-details-marker { display: none; }
.bccl .faq-item summary span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.bccl .faq-item summary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.bccl .faq-item[open] summary svg { transform: rotate(180deg); }
.bccl .faq-item__body { overflow: hidden; height: 0; transition: height 0.3s ease; }
.bccl .faq-item__body p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink-muted); }
.bccl .faq-item__body ul, .bccl .faq-item__body ol {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.bccl .faq-item__body ul { list-style: disc; }
.bccl .faq-item__body ol { list-style: decimal; }
.bccl .faq-item__body li + li { margin-top: 0.25rem; }
.bccl .faq-item__body p + ul,
.bccl .faq-item__body p + ol { margin-top: 0.375rem; }
/* No-JS fallback: native instant show/hide still works via the [open] attribute. */
.bccl .faq-item:not([open]) .faq-item__body { display: none; }
.bccl .faq-item[open] .faq-item__body { display: block; height: auto; }

/* "Tips" variant (Loan Type template's mid-page accordion) — genuinely
   different structure from a plain FAQ, not just recoloured: separate
   rounded cards with gaps between them, instead of one joined list with
   divider lines. */
.bccl .faq-list--tips {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  background: none;
  overflow: visible;
}
.bccl .faq-item--tips,
.bccl .faq-item--tips:first-child {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  padding: 1rem 1.25rem;
}
.bccl .faq-item--tips[open] { border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); }
.bccl .faq-item--tips summary span { font-family: var(--font-sans); font-weight: 600; font-size: 0.9375rem; }
.bccl .faq-item--tips summary svg { color: var(--primary); }
.bccl .faq-item--tips .faq-item__body p { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.bccl .cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-image: var(--gradient-hero);
  padding: 2.5rem;
  text-align: center;
}
.bccl .cta-panel__glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  height: 16rem;
  width: 80%;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  filter: blur(48px);
}
.bccl .cta-panel__body { position: relative; }
.bccl .cta-panel h2 {
  margin-inline: auto;
  max-width: 42rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
}
.bccl .cta-panel p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--ink-muted);
}
.bccl .cta-panel__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .bccl .cta-panel__actions { flex-direction: row; } }
@media (min-width: 768px) { .bccl .cta-panel { padding: 4rem; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bccl .site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.bccl .site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}
.bccl .site-footer__legal { font-size: 0.75rem; color: var(--ink-muted); text-align: center; }
@media (min-width: 640px) {
  .bccl .site-footer__inner { flex-direction: row; }
  .bccl .site-footer__legal { text-align: right; }
}

/* --------------------------------------------------------------------------
   Process (photo + list) — shared by Home, About, Contact
   -------------------------------------------------------------------------- */
.bccl .process-photo__grid {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.bccl .process-photo__image {
  justify-self: center;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  overflow: hidden;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}
.bccl .process-photo__image img { width: 100%; height: 100%; object-fit: cover; }
.bccl .process-photo__list { display: flex; flex-direction: column; gap: 1.75rem; }
.bccl .process-photo__item { display: flex; gap: 1rem; align-items: flex-start; }
.bccl .process-photo__icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; color: var(--primary); margin-top: 0.125rem; }
.bccl .process-photo__item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.bccl .process-photo__item p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-muted); }
@media (min-width: 768px) {
  .bccl .process-photo__grid { grid-template-columns: 20rem 1fr; }
}

/* --------------------------------------------------------------------------
   About page copy
   -------------------------------------------------------------------------- */
.bccl .about-copy p { margin-top: 1rem; color: var(--ink-muted); line-height: 1.7; }
.bccl .about-copy p:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Contact details block
   -------------------------------------------------------------------------- */
.bccl .contact-details {
  display: grid;
  gap: 2rem;
}
.bccl .contact-details__intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.bccl .contact-details__intro p { margin-top: 0.75rem; color: var(--ink-muted); }
.bccl .contact-details__list { display: flex; flex-direction: column; gap: 1rem; }
.bccl .contact-details__row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
.bccl .contact-details__row svg { flex-shrink: 0; }
@media (min-width: 768px) {
  .bccl .contact-details { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Blog grid + pagination — shared by the archive and single (related articles)
   -------------------------------------------------------------------------- */
.bccl .blog-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.bccl .blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--background);
}
.bccl .blog-card__media { display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.bccl .blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bccl .blog-card__body { padding: 1.25rem; flex: 1; }
.bccl .blog-card__body h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.bccl .blog-card__body h3 a { color: inherit; }
.bccl .blog-card__body p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }
.bccl .blog-card__date { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--ink-muted); }
.bccl .blog-card__more { display: inline-block; margin-top: 0.75rem; padding: 0 1.25rem 1.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--primary); }
.bccl .blog-card__meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.bccl .blog-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; }
.bccl .blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.bccl .blog-pagination .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
@media (min-width: 640px) { .bccl .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bccl .blog-grid { grid-template-columns: repeat(3, 1fr); } }
/* Related articles (single post) — always exactly 4 items, so this gets
   its own breakpoint rather than changing .blog-grid itself, which would
   throw off the main blog listing's clean 3x3 grid (9 posts per page). */
@media (min-width: 1024px) { .bccl .blog-grid--related { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.bccl .single-post { padding-top: 3.5rem; }
.bccl .single-post__header { text-align: center; }
.bccl .single-post__header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.bccl .single-post__meta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.bccl .single-post__meta svg { width: 1rem; height: 1rem; }
.bccl .single-post__thumb { margin-top: 2rem; border-radius: 1rem; overflow: hidden; }
.bccl .single-post__thumb img { width: 100%; height: auto; display: block; }
.bccl .single-post__content { margin-top: 2rem; color: var(--foreground); line-height: 1.75; }
.bccl .single-post__content > * + * { margin-top: 1.25rem; }
.bccl .single-post__content h2,
.bccl .single-post__content h3 { font-family: var(--font-sans); font-weight: 600; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   CTA banner (slim, inline) — used on single posts
   -------------------------------------------------------------------------- */
.bccl .cta-banner { background: var(--primary); }
.bccl .cta-banner__inner {
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.bccl .cta-banner p { color: var(--primary-foreground); font-weight: 600; font-size: 1.0625rem; }
@media (min-width: 640px) {
  .bccl .cta-banner__inner { flex-direction: row; text-align: left; }
}

/* --------------------------------------------------------------------------
   Section intro (heading + a paragraph or two underneath it)
   -------------------------------------------------------------------------- */
.bccl .section-head__intro { margin-top: 1rem; text-align: center; }
.bccl .section-head__intro p { color: var(--ink-muted); }
.bccl .section-head__intro p + p { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   Icon badges — "Why [X] choose us" row (Loan Type template)
   -------------------------------------------------------------------------- */
.bccl .icon-badges {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}
.bccl .icon-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.bccl .icon-badge__icon svg { width: 1.75rem; height: 1.75rem; }
.bccl .icon-badge h3 { font-family: var(--font-sans); font-size: 1.1875rem; font-weight: 600; }
.bccl .icon-badge p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-muted); }
@media (min-width: 768px) { .bccl .icon-badges { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Checklist grid (Loan Type template) — reuses .loan-item for the cards
   -------------------------------------------------------------------------- */
.bccl .checklist-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .bccl .checklist-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Rich text block (Loan Type Flexible template) — real WYSIWYG output, so
   this styles whatever headings/lists/paragraphs an editor produces rather
   than a fixed known shape.
   -------------------------------------------------------------------------- */
.bccl .rich-text { margin-top: 1.5rem; color: var(--ink-muted); }
.bccl .rich-text > * + * { margin-top: 1rem; }
.bccl .rich-text h2, .bccl .rich-text h3, .bccl .rich-text h4 { color: var(--foreground); margin-top: 1.75rem; }
.bccl .rich-text strong { color: var(--foreground); }
.bccl .rich-text ul, .bccl .rich-text ol { padding-left: 1.25rem; }
.bccl .rich-text ul { list-style: disc; }
.bccl .rich-text ol { list-style: decimal; }
.bccl .rich-text li + li { margin-top: 0.375rem; }
.bccl .rich-text a { color: var(--primary) !important; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Two-column checklist (Loan Type Flexible template) — e.g. Eligibility /
   Documentation, each point with a blue tick.
   -------------------------------------------------------------------------- */
.bccl .two-col-checklist {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}
.bccl .two-col-checklist__col h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 1rem; }
.bccl .two-col-checklist__list { display: flex; flex-direction: column; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.bccl .two-col-checklist__list li { display: flex; align-items: flex-start; gap: 0.625rem; }
.bccl .two-col-checklist__list li svg { flex-shrink: 0; margin-top: 0.125rem; color: var(--primary); width: 1.125rem; height: 1.125rem; }
.bccl .two-col-checklist__list--x li svg { color: var(--destructive); }
.bccl .two-col-checklist__list li span { color: var(--ink-muted); }
@media (min-width: 768px) { .bccl .two-col-checklist { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

/* --------------------------------------------------------------------------
   Numbered steps (Loan Type Flexible template) — numbered circles
   connected by a vertical line, any number of steps.
   -------------------------------------------------------------------------- */
.bccl .numbered-steps {
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}
.bccl .numbered-steps__item {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.bccl .numbered-steps__item:last-child { padding-bottom: 0; }
.bccl .numbered-steps__item::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: 1.125rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.bccl .numbered-steps__item:last-child::before { display: none; }
.bccl .numbered-steps__badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.9375rem;
}
.bccl .numbered-steps__content h3 { font-size: 1.0625rem; font-weight: 700; }
.bccl .numbered-steps__content p { margin-top: 0.375rem; color: var(--ink-muted); }
.bccl .numbered-steps__cta { margin-top: 2rem; text-align: center; }

/* --------------------------------------------------------------------------
   Table (Loan Type Flexible template) — e.g. loan cost comparison.
   -------------------------------------------------------------------------- */
.bccl .flex-table__scroll { margin-top: 2rem; overflow-x: auto; }
.bccl .flex-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.bccl .flex-table th, .bccl .flex-table td { padding: 0.75rem 1rem; text-align: left; white-space: nowrap; }
.bccl .flex-table thead th { background: var(--surface); color: var(--foreground); font-weight: 600; border-bottom: 1px solid var(--border); }
.bccl .flex-table tbody tr:nth-child(even) { background: color-mix(in oklab, var(--surface) 50%, transparent); }
.bccl .flex-table tbody td { color: var(--ink-muted); border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.bccl .flex-table__note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--ink-muted); }
