/* ═══════════════════════════════════════════════
   SPRUCE UP — blog-single.css
   Single article: breadcrumb, hero, sidebar layout
═══════════════════════════════════════════════ */

:root {
    --bs-yellow:   #F5C800;
    --bs-charcoal: #1C1C1C;
    --bs-white:    #ffffff;
    --bs-gray:     #f6f6f6;
    --bs-border:   #e8e8e8;
    --bs-text:     #2a2a2a;
    --bs-muted:    #777777;
    --bs-font:     'Poppins', sans-serif;
    --bs-radius:   6px;
    --bs-trans:    0.2s cubic-bezier(0.4,0,0.2,1);
}

body { background: var(--bs-white); }

/* ════════════════════════
   BREADCRUMB
════════════════════════ */
.bs-breadcrumb {
    background: var(--bs-white);
    border-bottom: 1px solid var(--bs-border);
    padding: 12px 0;
}

.bs-breadcrumb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bs-breadcrumb a,
.bs-breadcrumb span {
    font-size: 12px;
    color: var(--bs-muted);
    text-decoration: none;
    transition: color var(--bs-trans);
}

.bs-breadcrumb a:hover { color: var(--bs-charcoal); }

.bs-breadcrumb__sep {
    color: #ccc;
    font-size: 12px;
}

.bs-breadcrumb__current {
    color: var(--bs-charcoal) !important;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ════════════════════════
   ARTICLE HERO
════════════════════════ */
.bs-article-hero {
    background: #f5f5f5;
    padding: 52px 0 0;
    position: relative;
}

.bs-article-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.bs-article-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bs-cat-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    background: var(--bs-yellow);
    color: var(--bs-charcoal);
    text-decoration: none;
}

.bs-read-time {
    font-size: 12px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bs-read-time svg { width: 13px; height: 13px; opacity: 0.6; }

.bs-article-hero__title {
    font-family: var(--bs-font);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--bs-charcoal);
    line-height: 1.2;
    margin: 0 0 20px;
    max-width: 760px;
    letter-spacing: -0.01em;
}

.bs-article-hero__byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
}

.bs-byline-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bs-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-charcoal);
    flex-shrink: 0;
    overflow: hidden;
}

.bs-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bs-byline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bs-byline-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-charcoal);
}

.bs-byline-date {
    font-size: 11.5px;
    color: #888888;
}

/* Hero featured image */
.bs-article-hero__img {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16/7;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.bs-article-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bs-article-hero__img-filler {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bs-article-hero__img-filler svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* ════════════════════════
   ARTICLE BODY LAYOUT
════════════════════════ */
.bs-article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 72px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
}

/* ── CONTENT COL ── */
.bs-content {
    min-width: 0;
}

/* Prose typography */
.bs-prose {
    font-family: var(--bs-font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--bs-text);
}

.bs-prose h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bs-charcoal);
    margin: 40px 0 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bs-prose h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-charcoal);
    margin: 32px 0 10px;
    line-height: 1.35;
}

.bs-prose p {
    margin: 0 0 18px;
}

.bs-prose ul,
.bs-prose ol {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.bs-prose li {
    margin-bottom: 7px;
}

.bs-prose strong { font-weight: 600; color: var(--bs-charcoal); }

.bs-prose a {
    color: #0a6e5c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bs-prose a:hover { color: #084d40; }

.bs-prose blockquote {
    border-left: 3px solid var(--bs-yellow);
    margin: 28px 0;
    padding: 16px 20px;
    background: var(--bs-gray);
    border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
    font-style: italic;
    color: #555;
}

.bs-prose blockquote p { margin: 0; }

/* In-article image */
.bs-prose figure {
    margin: 28px 0;
}

.bs-prose figure img {
    width: 100%;
    border-radius: var(--bs-radius);
    display: block;
}

.bs-prose figcaption {
    font-size: 11.5px;
    color: var(--bs-muted);
    text-align: center;
    margin-top: 8px;
}

/* Inline video embed */
.bs-inline-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--bs-radius);
    overflow: hidden;
    margin: 28px 0;
    background: #111;
    position: relative;
}

.bs-inline-video iframe {
    width: 100%; height: 100%; border: none; display: block;
}

.bs-inline-video__filler {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: #1a1a1a; cursor: pointer;
}

.bs-inline-video__play {
    width: 52px; height: 52px;
    background: #FF0000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.bs-inline-video__play svg { width: 20px; height: 20px; color: white; margin-left: 3px; }

.bs-inline-video__label {
    font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
}

/* Share bar */
.bs-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
    margin: 40px 0 48px;
    flex-wrap: wrap;
}

.bs-share__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 4px;
}

.bs-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--bs-border);
    border-radius: 4px;
    font-family: var(--bs-font);
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-charcoal);
    text-decoration: none;
    cursor: pointer;
    background: white;
    transition: all var(--bs-trans);
}

.bs-share-btn:hover { border-color: var(--bs-charcoal); background: var(--bs-charcoal); color: white; }
.bs-share-btn svg { width: 14px; height: 14px; }

/* Related articles */
.bs-related__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-charcoal);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bs-yellow);
    display: inline-block;
}

.bs-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bs-related-card {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color var(--bs-trans), box-shadow var(--bs-trans), transform var(--bs-trans);
}

.bs-related-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.bs-related-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.bs-related-card__img img { width: 100%; height: 100%; object-fit: cover; }
.bs-related-card__img-filler { width: 100%; height: 100%; position: absolute; inset: 0; }

.bs-related-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-related-card__cat {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a07a00;
    background: rgba(245,200,0,0.15);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-flex;
    width: fit-content;
}

.bs-related-card__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bs-charcoal);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── SIDEBAR COL ── */
.bs-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bs-sidebar__widget {
    background: var(--bs-gray);
    border-radius: var(--bs-radius);
    padding: 22px;
    border: 1px solid var(--bs-border);
}

.bs-sidebar__widget-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bs-muted);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bs-border);
}

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

.bs-toc li a {
    font-size: 12.5px;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--bs-trans), color var(--bs-trans);
}

.bs-toc li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bs-yellow);
    flex-shrink: 0;
    margin-top: 6px;
}

.bs-toc li a:hover,
.bs-toc li a.is-active {
    background: white;
    color: var(--bs-charcoal);
}

/* CTA widget */
.bs-sidebar__cta {
    background: #f5f5f5;
    border-radius: var(--bs-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(28,28,28,0.08);
}

.bs-sidebar__cta-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-charcoal);
    margin: 0 0 8px;
    line-height: 1.3;
}

.bs-sidebar__cta-sub {
    font-size: 12px;
    color: #666666;
    margin: 0 0 18px;
    line-height: 1.55;
}

.bs-sidebar__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 16px;
    background: var(--bs-yellow);
    color: var(--bs-charcoal);
    font-family: var(--bs-font);
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background var(--bs-trans);
}

.bs-sidebar__cta-btn:hover { background: #e0b500; }
.bs-sidebar__cta-btn svg { width: 13px; height: 13px; }

/* Recent posts widget */
.bs-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-recent-post {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    transition: opacity var(--bs-trans);
}

.bs-recent-post:hover { opacity: 0.75; }

.bs-recent-post__img {
    width: 56px;
    height: 42px;
    border-radius: 4px;
    background: #ddd;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.bs-recent-post__img img { width: 100%; height: 100%; object-fit: cover; }
.bs-recent-post__img-filler { width: 100%; height: 100%; position: absolute; inset: 0; }

.bs-recent-post__title {
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-charcoal);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ════════════════════════
   BOTTOM CTA
════════════════════════ */
.bs-cta-band {
    background: #1C1C1C;
    padding: 60px 0;
    text-align: center;
}

.bs-cta-band__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 48px;
}

.bs-cta-band__title {
    font-family: var(--bs-font);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--bs-white);
    margin: 0 0 10px;
}

.bs-cta-band__sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
    line-height: 1.6;
}

.bs-cta-band__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bs-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: var(--bs-radius);
    font-family: var(--bs-font);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--bs-trans);
}

.bs-btn--yellow {
    background: var(--bs-yellow);
    color: var(--bs-charcoal);
    border-color: var(--bs-yellow);
}

.bs-btn--yellow:hover { background: #e0b500; transform: translateY(-1px); }

.bs-btn--outline-white {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}

.bs-btn--outline-white:hover { border-color: rgba(255,255,255,0.7); color: white; }

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 1024px) {
    .bs-article-layout {
        grid-template-columns: 1fr;
        padding: 36px 32px 60px;
        gap: 40px;
    }
    .bs-sidebar { position: static; }
    .bs-related-grid { grid-template-columns: repeat(2, 1fr); }
    .bs-breadcrumb__inner,
    .bs-article-hero__inner,
    .bs-cta-band__inner { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 640px) {
    .bs-article-layout { padding: 24px 20px 48px; }
    .bs-breadcrumb__inner,
    .bs-article-hero__inner,
    .bs-cta-band__inner { padding-left: 20px; padding-right: 20px; }
    .bs-related-grid { grid-template-columns: 1fr; }
    .bs-article-hero__title { font-size: 22px; }
    .bs-cta-band__actions { flex-direction: column; align-items: stretch; }
    .bs-cta-band__actions .bs-btn { justify-content: center; }
}

/* ── Full-width featured image below hero text ── */
.bs-article-hero__img-full {
    width: 100%;
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 0 48px;
    height: 340px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1024px) {
    .bs-article-hero__img-full { padding: 0 32px; height: 260px; }
}
@media (max-width: 640px) {
    .bs-article-hero__img-full { padding: 0; height: 200px; border-radius: 0; margin-top: 20px; }
}

/* ════════════════════════════════════════════════════════
   V4 FIXES — Single blog post
════════════════════════════════════════════════════════ */

/* Sidebar CTA button — prevent overflow, ensure single line */
.bs-sidebar__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 12px;
    background: #F5C800;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    transition: background 0.2s ease;
}
.bs-sidebar__cta-btn:hover { background: #e0b500; }
.bs-sidebar__cta-btn svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Sidebar widget box — ensure no overflow */
.bs-sidebar__cta {
    background: #1C1C1C;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Bottom CTA band — "Get a Quote" button fix: single line */
.bs-btn--yellow {
    white-space: nowrap;
    padding: 11px 20px;
    gap: 6px;
}
.bs-btn--yellow svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.bs-btn--outline-white {
    white-space: nowrap;
}

/* Ensure CTA band action buttons don't wrap text */
.bs-cta-band__actions .bs-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
   V5 FIXES — Single blog post
════════════════════════════════════════════ */

/* Sidebar CTA box — no overflow */
.bs-sidebar__cta {
    background: #1C1C1C;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 24px;
}

/* Sidebar CTA button — fits inside widget, single line */
.bs-sidebar__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    background: #F5C800;
    color: #1C1C1C;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.2s ease;
    margin-top: 16px;
}
.bs-sidebar__cta-btn:hover { background: #e0b500; }
.bs-sidebar__cta-btn svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Bottom CTA band buttons — always single line */
.bs-cta-band__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.bs-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.bs-btn--yellow { background: #F5C800; color: #1C1C1C; }
.bs-btn--yellow:hover { background: #e0b500; transform: translateY(-1px); }
.bs-btn--yellow svg { width: 12px; height: 12px; flex-shrink: 0; }
.bs-btn--outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
}
.bs-btn--outline-white:hover { border-color: #F5C800; color: #F5C800; }

/* Related card images — need position:relative on parent */
.bs-related-card__img {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    background: #e8e8e8;
}

/* Recent post images */
.bs-recent-post__img {
    position: relative;
    width: 72px;
    min-width: 72px;
    height: 52px;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e8e8;
    flex-shrink: 0;
}
