/* ============================================================
   Blog Post Layout v2 (trial)
   Structural layout adapted from the FlatPackCo blog template.
   Colors/fonts are SprintCo's own (--headlines, --orange-color,
   --mild-grey, --dark-color, --white, --body-color, --primary-font,
   --seconday-font) — nothing borrowed from the source site.
   Scoped under .bv2-page so it cannot leak into the rest of the site.
   ============================================================ */

body:has(.bv2-page) {
    background-color: #fff !important;
}

.bv2-page,
.bv2-page *,
.bv2-page *::before,
.bv2-page *::after {
    box-sizing: border-box;
}

.bv2-page {
    --bv2-dark: var(--headlines);
    --bv2-muted: var(--mild-grey);
    --bv2-accent: var(--orange-color);
    --bv2-panel: var(--dark-color);
    --bv2-white: var(--white);
    --bv2-border: rgba(23, 17, 17, 0.1);
    --bv2-surface: #fff;
    --bv2-tint: rgba(244, 96, 43, 0.08);
    padding: 0 !important;
    max-width: none !important;
    font-family: var(--primary-font);
    color: var(--bv2-dark);
}

.bv2-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ---- Hero / Breadcrumb ---- */
.bv2-hero {
    /* clears the site's floating fixed nav pill before content begins */
    padding: clamp(120px, 9vw, 190px) 0 28px;
}

.bv2-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--bv2-muted);
}

.bv2-breadcrumb a {
    color: var(--bv2-muted);
    text-decoration: none;
}

.bv2-breadcrumb a:hover {
    color: var(--bv2-accent);
}

.bv2-breadcrumb .sep {
    color: var(--bv2-border);
}

.bv2-breadcrumb .current {
    color: var(--bv2-dark);
    font-weight: 500;
}

/* ---- Section ---- */
.bv2-section {
    padding: 0 0 64px;
}

/* ---- Post layout grid ---- */
.bv2-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

/* ---- Post header ---- */
.bv2-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.bv2-cat {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--bv2-tint);
    color: var(--bv2-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bv2-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--bv2-muted);
}

.bv2-meta-item i {
    color: var(--bv2-accent);
}

.bv2-post-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.2;
    margin: 0 0 18px;
}

.bv2-post-lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--bv2-muted);
    max-width: 720px;
    margin: 0;
}

/* ---- Featured image ---- */
.bv2-featured-img {
    margin: 32px 0 40px;
    border-radius: 14px;
    overflow: hidden;
}

.bv2-featured-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ---- Post body typography ---- */
.bv2-post-body h2 {
    font-size: 1.5rem;
    margin: 44px 0 16px;
    line-height: 1.3;
}

.bv2-post-body h3 {
    font-size: 1.22rem;
    margin: 36px 0 14px;
    line-height: 1.3;
}

.bv2-post-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bv2-dark);
    margin: 0 0 18px;
}

.bv2-post-body ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.bv2-post-body li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--bv2-dark);
}

.bv2-post-body a {
    color: var(--bv2-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bv2-post-body figure {
    margin: 28px 0;
}

.bv2-post-body figure img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.bv2-post-body figcaption {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--bv2-muted);
    text-align: center;
}

.bv2-thumbnail {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

/* ---- FAQ accordion ---- */
.bv2-faq {
    margin: 40px 0;
}

.bv2-faq-title {
    font-size: 1.3rem;
    margin: 0 0 16px;
}

.bv2-faq-item {
    border: 1px solid var(--bv2-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bv2-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 44px 16px 18px;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--bv2-dark);
    position: relative;
}

.bv2-faq-item summary::-webkit-details-marker {
    display: none;
}

.bv2-faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--bv2-accent);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.bv2-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.bv2-faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--bv2-muted);
}

/* ---- Post footer: tags + share ---- */
.bv2-post-footer {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--bv2-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.bv2-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.bv2-tags-label {
    font-size: 0.8rem;
    color: var(--bv2-muted);
}

.bv2-tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 100px;
    background: var(--bv2-tint);
    color: var(--bv2-accent);
    font-size: 0.78rem;
    font-weight: 500;
}

.bv2-share {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
    color: var(--bv2-muted);
}

.bv2-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--bv2-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bv2-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.25s;
}

.bv2-social-link:hover {
    background: var(--bv2-accent);
    border-color: var(--bv2-accent);
    color: #fff;
}

/* ---- Prev / Back / Next ---- */
.bv2-post-nav {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--bv2-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bv2-post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bv2-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}

.bv2-post-nav a:hover {
    color: var(--bv2-accent);
}

.bv2-post-nav .bv2-back {
    color: var(--bv2-muted);
    text-align: center;
}

/* ---- Sidebar ---- */
.bv2-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    /* stays just below the fixed nav pill instead of sliding under it */
    top: clamp(130px, 9.5vw, 200px);
    align-self: start;
}

.bv2-widget {
    background: var(--bv2-surface);
    border: 1px solid var(--bv2-border);
    border-radius: 14px;
    padding: 24px;
}

.bv2-widget-title {
    font-size: 0.95rem;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bv2-border);
}

.bv2-author {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.bv2-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bv2-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.bv2-author-name {
    font-weight: 600;
    color: var(--bv2-dark);
    font-size: 0.92rem;
    margin: 0 0 4px;
}

.bv2-author-bio {
    font-size: 0.84rem;
    color: var(--bv2-muted);
    line-height: 1.6;
    margin: 0;
}

.bv2-cat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bv2-border);
    color: var(--bv2-dark);
    text-decoration: none;
    font-size: 0.88rem;
}

.bv2-cat-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bv2-cat-list-item:hover {
    color: var(--bv2-accent);
}

.bv2-cat-list-item i {
    color: var(--bv2-accent);
    width: 16px;
}

.bv2-cat-list-item span {
    margin-left: auto;
    color: var(--bv2-muted);
    font-size: 0.8rem;
}

.bv2-recent-post {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--bv2-border);
}

.bv2-recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bv2-recent-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.bv2-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bv2-recent-info h6 {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--bv2-dark);
    font-weight: 600;
}

.bv2-recent-info span {
    font-size: 0.76rem;
    color: var(--bv2-muted);
}

.bv2-cta-widget {
    background: var(--bv2-panel);
    border-color: transparent;
    text-align: center;
}

.bv2-cta-widget i {
    font-size: 1.8rem;
    color: var(--bv2-accent);
    display: block;
    margin-bottom: 14px;
}

.bv2-cta-widget h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 8px;
}

.bv2-cta-widget p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.86rem;
    margin: 0 0 18px;
    line-height: 1.6;
}

.bv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--bv2-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.bv2-btn:hover {
    filter: brightness(0.92);
}

.bv2-btn-block {
    width: 100%;
}

/* ---- More from blog ---- */
.bv2-more {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--bv2-border);
}

.bv2-more h2 {
    margin: 0 0 28px;
    font-size: 1.5rem;
}

.bv2-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.bv2-blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bv2-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bv2-surface);
    transition: 0.25s;
}

.bv2-blog-card:hover {
    border-color: var(--bv2-accent);
    transform: translateY(-2px);
}

.bv2-blog-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.bv2-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bv2-blog-card-body {
    padding: 22px;
}

.bv2-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bv2-blog-date {
    font-size: 0.78rem;
    color: var(--bv2-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bv2-blog-card-body h3 {
    font-size: 1.08rem;
    margin: 0 0 10px;
    line-height: 1.35;
}

.bv2-blog-card-body p {
    font-size: 0.88rem;
    color: var(--bv2-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}

.bv2-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bv2-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Newsletter ---- */
.bv2-newsletter {
    background: var(--bv2-panel);
    padding: 48px 0;
}

.bv2-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bv2-newsletter-text h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.bv2-newsletter-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    margin: 0;
}

.bv2-newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bv2-newsletter-input {
    padding: 13px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    min-width: 260px;
}

.bv2-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .bv2-post-layout {
        grid-template-columns: 1fr;
    }

    .bv2-sidebar {
        position: static;
    }

    .bv2-grid-2 {
        grid-template-columns: 1fr;
    }

    .bv2-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .bv2-hero {
        padding-top: 100px;
    }

    .bv2-container {
        padding: 0 18px;
    }

    .bv2-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
