/*
 * ZiacPay – Blog Stylesheet  (blog.css)
 * ─────────────────────────────────────────────────────────────
 * Loaded ONLY on blog pages (Index.cshtml and Blog*.cshtml).
 * Requires:
 *   • beforelogin-critical.css  (CSS vars, body, navbar, hero reset)
 *   • beforelogin-deferred.css  (footer, general layout utilities)
 *   • Bootstrap 5, Font Awesome 6, Sora + DM Sans fonts
 *     (all loaded via _layoutbeforeloginnew.cshtml)
 *
 * This file owns:
 *   1. Blog-specific CSS variables (colour tokens)
 *   2. Blog hero banner  (blog listing page)
 *   3. Blog card grid    (blog listing page)
 *   4. Blog post hero    (individual post pages)
 *   5. Article body typography & components
 *      (callouts, stats, tables, steps, feature-list, link-box,
 *       author-bio, share row, post-nav)
 *   6. Sidebar & widgets
 *   7. CTA section & bottom CTA
 *   8. Breadcrumb
 *   9. Responsive overrides for all of the above
 * ─────────────────────────────────────────────────────────────
 */

/* ============================================================
   1. BLOG CSS VARIABLES
   ============================================================ */
@charset "UTF-8";

:root {
    --bp-primary: #1A56DB;
    --bp-primary-dark: #1246C0;
    --bp-primary-light: #EBF2FF;
    --bp-accent: #F59E0B;
    --bp-accent-light: #FEF3C7;
    --bp-dark: #111827;
    --bp-text: #374151;
    --bp-muted: #6B7280;
    --bp-border: #E5E7EB;
    --bp-bg: #F9FAFB;
    --bp-white: #FFFFFF;
    /* colour utility tokens used in article content */
    --bp-green: #D1FAE5;
    --bp-green-text: #065F46;
    --bp-blue: #DBEAFE;
    --bp-blue-text: #1E40AF;
    --bp-orange: #FEE2E2;
    --bp-orange-text: #9B1C1C;
    --bp-purple: #EDE9FE;
    --bp-purple-text: #5B21B6;
    --bp-teal: #CCFBF1;
    --bp-teal-text: #0F766E;
    --bp-radius: 12px;
    --bp-shadow: 0 4px 24px rgba(0,0,0,0.07);
    --bp-shadow-hover: 0 12px 40px rgba(26,86,219,0.15);
    --primary: #1A56DB;
    --primary-dark: #1246C0;
    --primary-light: #EBF2FF;
    --accent: #F59E0B;
    --dark: #111827;
    --text: #374151;
    --muted: #6B7280;
    --border: #E5E7EB;
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --green: #D1FAE5;
    --green-text: #065F46;
    --blue: #DBEAFE;
    --blue-text: #1E40AF;
    --orange: #FEE2E2;
    --orange-text: #9B1C1C;
    --purple: #EDE9FE;
    --purple-text: #5B21B6;
    --teal: #CCFBF1;
    --teal-text: #0F766E;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 12px 40px rgba(26,86,219,0.15);
}

/* ============================================================
   2. BLOG LISTING — HERO BANNER
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, #dc3545 1%, #1A56DB 100%);
    padding: calc(80px + 70px) 24px 60px; /* 80px = hero top padding + 70px = nav height */
    text-align: center;
}

    .blog-hero .hero-label {
        display: inline-block;
        background: rgba(255,255,255,0.15);
        color: #BFDBFE;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 5px 14px;
        border-radius: 20px;
        margin-bottom: 18px;
        border: 1px solid rgba(191,219,254,0.3);
    }

    .blog-hero h1 {
        font-family: 'Sora', sans-serif;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 16px;
    }

    .blog-hero p {
        color: rgba(255,255,255,0.75);
        font-size: 1.05rem;
        max-width: 560px;
        margin: 0 auto;
    }

/* ============================================================
   3. BLOG LISTING — CARD GRID
   ============================================================ */
.blog-section {
    background: var(--bp-bg);
    padding: 60px 0 80px;
}

    .blog-section .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

        .blog-section .section-header h2 {
            font-family: 'Sora', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--bp-dark);
        }

        .blog-section .section-header p {
            color: var(--bp-muted);
            font-size: 0.95rem;
            margin-top: 8px;
        }

/* Card */
.blog-card {
    background: var(--bp-white);
    border-radius: var(--bp-radius);
    overflow: hidden;
    box-shadow: var(--bp-shadow);
    border: 1px solid var(--bp-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--bp-shadow-hover);
    }

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 22px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.blog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 5px;
    background: var(--bp-primary-light);
    color: var(--bp-primary);
}

    .blog-tag.amber {
        background: #FEF3C7;
        color: #92400E;
    }

    .blog-tag.green {
        background: #D1FAE5;
        color: #065F46;
    }

.blog-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp-dark);
    line-height: 1.45;
    margin-bottom: 10px;
}

.blog-card-desc {
    font-size: 0.875rem;
    color: var(--bp-muted);
    line-height: 1.65;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-border);
    font-size: 0.78rem;
    color: var(--bp-muted);
}

    .blog-card-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.blog-card-footer {
    padding: 0 22px 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bp-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(26,86,219,0.25);
    width: 100%;
    justify-content: center;
}

    .btn-read-more:hover {
        background: var(--bp-primary-dark);
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-read-more i {
        font-size: 0.75rem;
    }

/* ============================================================
   4. BLOG POST — BREADCRUMB
   ============================================================ */
.bp-breadcrumb {
    background: var(--bp-bg);
    border-bottom: 1px solid var(--bp-border);
    padding: 12px 24px;
    margin-top: 74px; /* exact navbar height from critical CSS */
}

.bp-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

    .bp-breadcrumb-inner a {
        text-decoration: none;
        color: var(--bp-muted);
        transition: color .2s;
    }

        .bp-breadcrumb-inner a:hover {
            color: var(--bp-primary);
        }

    .bp-breadcrumb-inner .sep {
        color: var(--bp-border);
    }

    .bp-breadcrumb-inner .current {
        color: var(--bp-text);
        font-weight: 500;
    }

/* ============================================================
   5. BLOG POST — HERO
   ============================================================ */
.bp-hero {
    background: linear-gradient(160deg, #0F2559 0%, #1A56DB 100%);
    padding: 56px 24px 0;
}

.bp-hero-inner {
    max-width: 840px;
    margin: 0 auto;
}

/* Tags */
.bp-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bp-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Title */
.bp-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 24px;
}

/* Meta row */
.bp-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.bp-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.bp-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.bp-author-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.bp-meta-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

.bp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
}

    .bp-meta-item svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

/* Hero image */
.bp-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    margin-top: 32px;
}

/* ============================================================
   6. BLOG POST — CONTENT LAYOUT
   ============================================================ */
.bp-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ============================================================
   7. ARTICLE BODY — TYPOGRAPHY
   ============================================================ */
.article-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bp-dark);
    margin: 36px 0 14px;
    padding-top: 8px;
    border-top: 2px solid var(--bp-border);
}

.article-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bp-dark);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 16px;
    font-size: 0.975rem;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px 24px;
}

.article-body li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.article-body strong {
    color: var(--bp-dark);
}

.article-body a {
    color: var(--bp-primary);
    text-decoration: underline;
}

    .article-body a:hover {
        color: var(--bp-primary-dark);
    }

/* ============================================================
   8. ARTICLE BODY — COMPONENTS
   ============================================================ */
/* ── Audit Mistake Card ── */
        .audit-card {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            margin-bottom: 24px;
            overflow: hidden;
        }

        .audit-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 20px;
            background: var(--dark);
            color: #fff;
        }

        .audit-card-num {
            font-family: 'Sora', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--accent);
            min-width: 32px;
        }

        .audit-card-header h3 {
            font-family: 'Sora', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            margin: 0;
        }

        .audit-card-body {
            padding: 0;
        }

        .audit-finding {
            padding: 14px 20px;
            background: #FEF3C7;
            border-bottom: 1px solid var(--border);
            font-size: 0.9rem;
        }

        .audit-finding-label {
            font-weight: 700;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #92400E;
            margin-bottom: 4px;
        }

        .audit-fix {
            padding: 14px 20px;
            background: var(--green);
            font-size: 0.9rem;
        }

        .audit-fix-label {
            font-weight: 700;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--green-text);
            margin-bottom: 4px;
        }
/* ── Pillar Cards ── */
.pillar-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pillar-content h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 5px;
}

.pillar-content p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text);
}

/* ── Pillar Cards ── */
.load-pillar-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.load-pillar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.pillar-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.load-pillar-card-header h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.load-pillar-card-body {
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.75;
}

    .load-pillar-card-body strong {
        color: var(--dark);
    }


/* ── Formula Box ── */
.formula-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

    .formula-box h4 {
        font-family: 'Sora', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 12px;
    }

.formula-line {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.formula-note {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── Rounding Table ── */
.rounding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.rounding-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    background: var(--bg);
}

.rounding-card-range {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.rounding-card-result {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.rounding-card-desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Problem/Fix Cards ── */
.problem-fix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.pf-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pf-card-header {
    padding: 12px 16px;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.pf-card-body {
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── Law Cards ── */
.law-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.law-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.law-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.law-card-header h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.law-card-body {
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.75;
}

    .law-card-body strong {
        color: var(--dark);
    }

.law-retention {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 6px;
}

/* ── Deadline Cards ── */
.deadline-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.deadline-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.deadline-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.deadline-card-header h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.deadline-card-body {
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.75;
}

    .deadline-card-body strong {
        color: var(--dark);
    }

.deadline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 6px;
}

/* ── Compare Cards ── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.compare-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-card-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-card-icon {
    font-size: 1.4rem;
}

.compare-card-header h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.compare-card-body {
    padding: 14px 18px;
    font-size: 0.88rem;
    line-height: 1.7;
}

    .compare-card-body ul {
        margin: 0;
        padding-left: 18px;
    }

    .compare-card-body li {
        margin-bottom: 6px;
        font-size: 0.88rem;
    }

.compare-card-tradeoff {
    padding: 10px 18px;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

    .compare-card-tradeoff strong {
        color: var(--dark);
    }

/* ── Penalty Grid ── */
.penalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.penalty-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg);
}

.penalty-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
}

.penalty-card-rate {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #DC2626;
    line-height: 1;
}

.penalty-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Grace Period Example ── */
.grace-example {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
}

    .grace-example h4 {
        font-family: 'Sora', sans-serif;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
    }

.grace-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

    .grace-row:last-child {
        border-bottom: none;
    }

.grace-time {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--dark);
    min-width: 72px;
}

.grace-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Disciplinary Steps ── */
.discipline-steps {
    margin: 20px 0;
}

.discipline-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.discipline-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.discipline-content h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}

.discipline-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Rotation Cards ── */
.rotation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 12px;
    margin: 20px 0;
}

.rotation-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg);
}

.rotation-card-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.rotation-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.rotation-card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Women Night Shift Checklist ── */
.compliance-checklist {
    margin: 16px 0;
}

.compliance-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

    .compliance-item:last-child {
        border-bottom: none;
    }

.compliance-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.compliance-item strong {
    color: var(--dark);
    display: block;
    margin-bottom: 2px;
}

/* ── Cost Cards ── */
.cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.cost-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg);
}

.cost-card-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.cost-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.cost-card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── ROI Box ── */
.roi-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

    .roi-box h4 {
        font-family: 'Sora', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 12px;
    }

/* ── Pipeline Steps ── */
.pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

.pipeline-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 20px;
}

    .pipeline-step:last-child {
        padding-bottom: 0;
    }

    .pipeline-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 17px;
        top: 36px;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

.pipeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.pipeline-content h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}

.pipeline-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Workflow Steps (connected pipeline) ── */
.workflow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

.workflow-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 20px;
}

    .workflow-step:last-child {
        padding-bottom: 0;
    }

    .workflow-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 17px;
        top: 36px;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

.workflow-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.workflow-content h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}

.workflow-content p {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.workflow-detail {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-top: 6px;
}

    .workflow-detail strong {
        color: var(--dark);
    }

/* ── GST ITC Box ── */
.itc-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
}

    .itc-box h4 {
        font-family: 'Sora', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
    }
/* ── Policy Cap Example ── */
.policy-cap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 0.88rem;
}

    .policy-cap h4 {
        font-family: 'Sora', sans-serif;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
    }

.policy-cap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

    .policy-cap-row:last-child {
        border-bottom: none;
    }

.policy-cap-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.policy-cap-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.policy-cap-result {
    background: #D1FAE5;
    color: #065F46;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Section Cards ── */
.section-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.section-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-card-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.section-card-body {
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.75;
}

    .section-card-body strong {
        color: var(--dark);
    }

/* ── Step Tap Path ── */
.tap-path {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

/* ── Pro Tip ── */
.pro-tip {
    background: var(--teal);
    border-left: 4px solid var(--teal-text);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.9rem;
}

    .pro-tip strong {
        color: var(--teal-text);
    }

.tap-step {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.tap-arrow {
    color: var(--muted);
    font-size: 0.85rem;
}

.cost-formula {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

    .cost-formula h4 {
        font-family: 'Sora', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 12px;
    }

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

    .cost-row:last-child {
        border-bottom: none;
    }

.cost-row-label {
    color: var(--muted);
}

.cost-row-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.cost-row-total {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #DC2626;
}

/* ── Friction Tax Box ── */
.friction-calc {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
}

    .friction-calc h4 {
        font-family: 'Sora', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 10px;
    }

/*.formula-line {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 6px 0;
    display: block;
}*/

/* ── Transparency Metrics ── */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.metric-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg);
    text-align: center;
}

.metric-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.metric-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.metric-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Trigger Cards (resignation types) ── */
.trigger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.trigger-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trigger-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.trigger-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

/* — Callouts — */
.callout {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

    .callout.amber {
        background: #FEF3C7;
        border-left-color: var(--bp-accent);
    }

    .callout.green {
        background: var(--bp-green);
        border-left-color: #059669;
    }

.callout-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bp-dark);
    margin-bottom: 6px;
}

.callout p {
    margin: 0;
    font-size: 0.9rem;
}

/* — Stats row — */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 20px 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bp-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--bp-muted);
    margin-top: 4px;
}

/* — Table — */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--bp-radius);
    border: 1px solid var(--bp-border);
}

    .table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.875rem;
    }

    .table-wrapper thead tr {
        background: var(--bp-dark);
        color: #fff;
    }

    .table-wrapper th,
    .table-wrapper td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--bp-border);
    }

    .table-wrapper tbody tr:nth-child(even) {
        background: var(--bp-bg);
    }

    .table-wrapper tbody tr:hover {
        background: var(--bp-primary-light);
    }

.td-new {
    color: var(--bp-primary);
    font-weight: 600;
}

.td-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: var(--bp-green);
    color: var(--bp-green-text);
}

.badge-red {
    background: #FEE2E2;
    color: #9B1C1C;
}

.badge-blue {
    background: var(--bp-blue);
    color: var(--bp-blue-text);
}

/* — Steps list — */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    margin-bottom: 12px;
    font-size: 0.93rem;
}

.step-num {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-weight: 600;
    color: var(--bp-dark);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--bp-muted);
    margin: 0;
}

/* — Feature list — */
.feature-list {
    list-style: none;
    margin: 18px 0 26px;
    padding: 0;
}

    .feature-list li {
        position: relative;
        padding-left: 34px;
        margin-bottom: 14px;
        font-size: 0.96rem;
        line-height: 1.65;
    }

        .feature-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--bp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 11px;
        }

/* — Internal link box — */
.link-box-text {
    font-size: 0.875rem;
    color: var(--bp-text);
    background: var(--bp-primary-light);
    border: 1px solid #C7D7F9;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0 4px;
    display: block;
}

    .link-box-text strong {
        color: var(--bp-dark);
    }

/* — Author bio — */
.author-bio {
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 28px;
    margin: 48px 0 40px;
    display: flex;
    gap: 20px;
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-bio h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 4px;
}

.author-bio .role {
    font-size: 0.8rem;
    color: var(--bp-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.author-bio p {
    font-size: 0.875rem;
    color: var(--bp-muted);
    margin: 0;
}

/* — Post navigation — */
.bp-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--bp-border);
    margin-top: 40px;
}

.bp-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    max-width: 45%;
    transition: color .2s;
}

    .bp-nav-link:hover {
        color: var(--bp-primary);
    }

.bp-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bp-muted);
    letter-spacing: 0.05em;
}

.bp-nav-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bp-dark);
    line-height: 1.4;
}

.bp-nav-link:hover .bp-nav-title {
    color: var(--bp-primary);
}

/* ============================================================
   9. SIDEBAR
   ============================================================ */
.bp-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--bp-shadow);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bp-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bp-border);
}

    .widget-title svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: var(--bp-primary);
        stroke-width: 2;
    }

/* CTA widget */
.cta-widget {
    background: linear-gradient(135deg, #0F2559, #1A56DB);
    border: none;
}

    .cta-widget .widget-title {
        border-bottom-color: rgba(255,255,255,0.2);
        color: #fff;
    }

        .cta-widget .widget-title svg {
            stroke: var(--bp-accent);
        }

    .cta-widget h3 {
        font-family: 'Sora', sans-serif;
        color: #fff;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .cta-widget p {
        color: rgba(255,255,255,0.75);
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

.cta-widget-btn {
    display: block;
    background: var(--bp-accent);
    color: var(--bp-dark);
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 8px;
}

    .cta-widget-btn:hover {
        background: #E08E00;
        transform: translateY(-1px);
        color: var(--bp-dark);
    }

.cta-widget-secondary {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-top: 10px;
    transition: color .2s;
}

    .cta-widget-secondary:hover {
        color: #fff;
    }

/* Recent posts */
.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bp-border);
    align-items: flex-start;
}

    .recent-post:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.recent-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

    .recent-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.recent-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bp-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

    .recent-title a {
        text-decoration: none;
        color: inherit;
        transition: color .2s;
    }

        .recent-title a:hover {
            color: var(--bp-primary);
        }

.recent-date {
    font-size: 0.72rem;
    color: var(--bp-muted);
    margin-top: 3px;
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--bp-border);
    color: var(--bp-text);
    transition: background .2s, color .2s, border-color .2s;
}

    .tag-pill:hover {
        background: var(--bp-primary);
        color: #fff;
        border-color: var(--bp-primary);
    }

/* ============================================================
   10. CTA SECTION  (bottom of every blog post)
   ============================================================ */
.bp-cta {
    background: linear-gradient(135deg, #0F2559 0%, #1A56DB 100%);
    padding: 72px 24px;
    text-align: center;
}

.bp-cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #BFDBFE;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(191,219,254,0.3);
}

.bp-cta h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.bp-cta p {
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    margin: 0 auto 28px;
}

.bp-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.bp-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bp-accent);
    color: var(--bp-dark);
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform .15s;
}

    .bp-cta-primary:hover {
        transform: translateY(-2px);
        color: var(--bp-dark);
    }

.bp-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: border-color .2s, background .2s;
}

    .bp-cta-ghost:hover {
        border-color: #fff;
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

.bp-cta-trust {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    margin-top: 18px;
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */

/* Blog listing */
@media (max-width: 991px) {
    .blog-hero {
        padding-top: calc(60px + 70px);
    }
}

@media (max-width: 575px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-card-img {
        height: 180px;
    }
}

/* Blog post — layout collapse */
@media (max-width: 1024px) {
    .bp-layout {
        grid-template-columns: 1fr;
    }

    .bp-sidebar {
        position: static;
    }
}

/* Blog post — mid-mobile */
@media (max-width: 768px) {
    .bp-layout {
        padding: 24px 16px 40px;
        gap: 24px;
    }

    .bp-breadcrumb {
        padding: 12px 16px;
    }

    .bp-hero {
        padding: 40px 16px 0;
    }

    .bp-hero-title {
        font-size: 1.4rem;
    }

    .bp-hero-meta {
        gap: 10px;
    }

    .bp-meta-divider {
        display: none;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

        .stats-row .stat-card:last-child {
            grid-column: span 2;
        }

    .table-wrapper {
        font-size: 0.8rem;
    }

        .table-wrapper th,
        .table-wrapper td {
            padding: 8px 10px;
        }

    .step-item {
        padding: 14px 12px;
        gap: 12px;
    }

    .callout {
        padding: 14px 16px;
    }

    .article-body h2 {
        font-size: 1.25rem;
    }

    .article-body h3 {
        font-size: 1.05rem;
    }

    .article-body p,
    .article-body li {
        font-size: 0.92rem;
    }

    .author-bio {
        flex-direction: column;
    }

    .bp-post-nav {
        flex-direction: column;
        gap: 12px;
    }

    .bp-nav-link {
        max-width: 100%;
    }

    .bp-cta {
        padding: 48px 16px;
    }

    .bp-cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .bp-cta-primary,
    .bp-cta-ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .feature-list li {
        padding-left: 30px;
        font-size: 0.92rem;
    }

        .feature-list li::before {
            width: 18px;
            height: 18px;
            background-size: 9px;
        }
}

/* Blog post — small mobile */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .bp-hero-title {
        font-size: 1.25rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .table-wrapper th,
    .table-wrapper td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}
