/* ════════════════════════════════════════════════════════
   VJR BLOG PAGES SPECIFIC STYLES
   ════════════════════════════════════════════════════════ */

/* Category bar (sticky) */
.cat-bar {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #E6E6E6;
    padding: 12px 0;
}
.cat-bar-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px;
}
.cat-bar-inner::-webkit-scrollbar {
    display: none;
}

/* Category Filter Pills */
.pill {
    height: 36px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    font-family: var(--fb);
    font-weight: 500;
    font-size: 13px;
    color: var(--dark);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t), border-color var(--t), color var(--t);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.pill:hover {
    background: var(--bg-yellow);
    border-color: var(--primary);
}
.pill.active {
    background: var(--dark);
    color: #FAFAFA;
    border-color: var(--dark);
}


/* Featured Post (listing page) */
.featured-post {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}
.fp-left {
    padding: 40px;
    background: var(--bg-yellow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fp-right {
    background: linear-gradient(135deg, var(--bg-lavender) 0%, var(--bg-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}
.fp-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-cat {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 11px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: .1em;
    background: rgba(45, 29, 56, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
}
.fp-title {
    font-family: var(--fh);
    font-weight: 800;
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}
.fp-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t);
}
.fp-title a:hover {
    color: var(--primary);
}
.fp-excerpt {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}
.fp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}
.fp-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(45, 29, 56, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 12px;
    color: var(--dark);
}
.fp-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--fh);
    font-weight: 700;
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 14px;
    transition: gap var(--t);
}
.fp-read:hover {
    gap: 9px;
}

/* Post Cards Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.post-card {
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.post-cat {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.post-title {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.25;
    flex: 1;
}
.post-title a {
    text-decoration: none;
    transition: opacity var(--t);
}
.post-title a:hover {
    opacity: 0.75;
}
.post-excerpt {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

/* Sidebar & CTA (listing & post templates) */
.main-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}
.sidebar-cta {
    background: var(--primary);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    position: sticky;
    top: 124px;
}
.sc-title {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}
.sc-sub {
    font-size: 13px;
    color: var(--bg-yellow);
    margin-bottom: 16px;
    line-height: 1.5;
}
.sc-btn {
    display: block;
    background: #fff;
    color: var(--primary);
    border-radius: 6px;
    padding: 13px 16px;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background var(--t);
}
.sc-btn:hover {
    background: var(--bg-yellow);
}
.sc-tel {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--bg-yellow);
}
.sc-tel a {
    color: inherit;
    font-weight: 600;
}

/* Pagination (listing) */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-page);
    font-family: var(--fh);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
}
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-btn:hover:not(.active) {
    background: var(--bg-yellow);
    border-color: var(--primary);
}

/* ── SINGLE POST PAGE SPECIFIC STYLES ───────────────── */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.post-hero {
    background: var(--bg-beige);
    padding: 116px 0 0;
}
.post-category {
    background: rgba(222, 100, 59, 0.1);
    color: var(--primary);
    font-family: var(--fh);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
}
.post-h1 {
    font-family: var(--fh);
    font-weight: 800;
    font-size: clamp(28px, 4.5vw, 48px);
    color: var(--dark);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(45, 29, 56, 0.1);
}
.pma {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pma-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}
.post-feat-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-lavender) 0%, var(--bg-yellow) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    margin-bottom: 36px;
}

/* Table of Contents (TOC) */
.toc {
    background: var(--bg-beige);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.toc h4 {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
}
.toc ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc li a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Article content layout & tags */
.post-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
}
.post-body h2 {
    font-family: var(--fh);
    font-weight: 800;
    font-size: clamp(20px, 2.8vw, 26px);
    color: var(--dark);
    margin: 36px 0 14px;
    letter-spacing: -.01em;
}
.post-body h3 {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
    margin: 24px 0 10px;
}
.post-body p {
    margin-bottom: 18px;
}
.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.post-body a:hover {
    color: var(--hover);
}
.post-body ul, .post-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-body li {
    font-size: 16px;
    line-height: 1.65;
}
.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 0 12px 20px;
    font-style: italic;
    background: var(--bg-page);
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
    color: var(--dark);
}
.post-body img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}
.post-body figcaption {
    font-size: 12px;
    color: var(--muted2);
    font-style: italic;
    text-align: center;
    margin-top: -14px;
    margin-bottom: 20px;
}

/* Pull quotes */
.pull-quote {
    background: var(--bg-yellow);
    border-radius: 12px;
    padding: 24px 32px;
    margin: 28px 0;
    text-align: center;
}
.pull-quote p {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    line-height: 1.4;
}

/* Formatting callout blocks */
.info-tip {
    background: var(--bg-yellow);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.6;
}
.info-warn {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 500;
    color: #92400E;
    line-height: 1.6;
}

/* Inline In-Article CTA */
.in-cta {
    background: var(--primary);
    border-radius: 12px;
    padding: 24px 32px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.in-cta h3 {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}
.in-cta p {
    font-size: 14px;
    color: var(--bg-yellow);
    margin: 0;
}
.in-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.in-cta-btn {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 0 22px;
    height: 44px;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background var(--t);
}
.in-cta-btn:hover {
    background: var(--bg-yellow);
}
.in-cta-tel {
    font-size: 13px;
    color: var(--bg-yellow);
}
.in-cta-tel a {
    color: inherit;
    font-weight: 600;
}

/* Author box */
.author-box {
    background: var(--bg-page);
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.author-name {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 2px;
}
.author-role {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 7px;
}
.author-bio {
    font-size: 14px;
    color: var(--body);
    line-height: 1.65;
}

/* Related Posts block */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rel-card {
    background: var(--bg-page);
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 18px;
    display: block;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}
.rel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.rel-cat {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 7px;
    display: block;
}
.rel-title {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.35;
}

/* Sidebar sticky post widgets */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 124px;
}
.side-card {
    border-radius: 12px;
    padding: 20px;
}
.sc2-title {
    font-family: var(--fh);
    font-weight: 800;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 8px;
}
.sc2-p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

/* Progress reading indicator */
.read-progress {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform-origin: left;
    z-index: 850;
    transition: transform 0.1s linear;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    .main-with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar-cta {
        position: static;
    }
    .fp-right {
        display: none;
    }
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        position: static;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .in-cta {
        flex-direction: column;
    }
    .in-cta-actions {
        align-items: flex-start;
    }
    .author-box {
        flex-direction: column;
    }
    .pull-quote {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .featured-post {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(45, 29, 56, 0.1);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    gap: 14px;
    cursor: pointer;
    transition: color var(--t);
}
.faq-item--open .faq-item__btn {
    color: var(--primary);
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.faq-item__icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(222, 100, 59, 0.1);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--t), background var(--t);
}
.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}
.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item--open .faq-item__body {
    max-height: 400px;
}
.faq-item__content {
    padding: 0 0 18px 15px;
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
}
.faq-item__content a {
    color: var(--primary);
    font-weight: 600;
}

