/*!
 * pkc-blog-single.css — Modern single-post layout
 * Enqueued only when is_singular('post') (functions.php line ~164).
 * Loaded LAST so it wins style.css blanket rules.
 *
 * Page structure (driven by single.php):
 *   .pkc-reading-progress             — fixed top progress bar
 *   .pkc-blog-hero                    — hero/banner: breadcrumb, pill, title, meta, image
 *   .pkc-blog-wrap > .pkc-blog-grid   — body grid
 *     ├── aside.pkc-blog-toc          — sticky TOC sidebar (≈260px)
 *     └── main.pkc-blog-article       — article + signup banner + nav + related
 *   .pkc-blog-callback                — full-width end-of-article callback CTA + Zoho form
 */

/* ─────────────────────────────────────────────────────────────────────
   0. Tokens
   ───────────────────────────────────────────────────────────────────── */
:root {
    --pkc-blog-bg:           #f6f8fb;
    --pkc-blog-surface:      #ffffff;
    --pkc-blog-text:         #1f2937;
    --pkc-blog-text-soft:    #475569;
    --pkc-blog-muted:        #64748b;
    --pkc-blog-heading:      #0d1937;
    --pkc-blog-brand:        #00267a;
    --pkc-blog-accent:       #f2c433;
    --pkc-blog-link:         #1a4cd0;
    --pkc-blog-border:       #e6e9f2;
    --pkc-blog-border-soft:  #eef1f7;
    --pkc-blog-radius:       14px;
    --pkc-blog-shadow-sm:    0 2px 6px rgba(15, 23, 42, .04);
    --pkc-blog-shadow:       0 8px 24px rgba(15, 23, 42, .06);
    --pkc-blog-shadow-lg:    0 18px 40px rgba(15, 23, 42, .10);
    --pkc-blog-article-max:  760px;   /* readable measure */
    --pkc-blog-toc-w:        260px;
    --pkc-blog-gutter:       40px;
}

/* Page background */
body.single-post {
    background: var(--pkc-blog-bg) !important;
}

/* Neutralise the old container wrapper if any legacy parent kept it. */
body.single-post .container-fluid.my-5 { background: transparent !important; padding: 0 !important; margin: 0 !important; }
body.single-post .row.padding-both { display: block !important; max-width: none !important; margin: 0 !important; }

/* ─────────────────────────────────────────────────────────────────────
   1. Reading-progress bar (fixed top, behind sticky header)
   ───────────────────────────────────────────────────────────────────── */
body.single-post .pkc-reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}
body.single-post .pkc-reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--pkc-blog-accent), #ff9a3c);
    transition: width .08s linear;
}

/* ─────────────────────────────────────────────────────────────────────
   2. Hero / article header
   ───────────────────────────────────────────────────────────────────── */
body.single-post .pkc-blog-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--pkc-blog-bg) 100%);
    padding: 48px 24px 24px;
    border-bottom: 1px solid var(--pkc-blog-border-soft);
}
body.single-post .pkc-blog-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}
body.single-post .pkc-blog-breadcrumb {
    font-size: .8125rem;
    color: var(--pkc-blog-muted);
    margin: 0 0 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
body.single-post .pkc-blog-breadcrumb a {
    color: var(--pkc-blog-muted);
    text-decoration: none;
}
body.single-post .pkc-blog-breadcrumb a:hover { color: var(--pkc-blog-brand); }
body.single-post .pkc-blog-breadcrumb .sep { opacity: .6; }

body.single-post .pkc-blog-cat-pill {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pkc-blog-brand);
    background: rgba(0, 38, 122, .07);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin: 0 0 18px;
    transition: background .15s ease, color .15s ease;
}
body.single-post .pkc-blog-cat-pill:hover {
    background: var(--pkc-blog-brand);
    color: #fff;
}

body.single-post .pkc-blog-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);  /* 28→44px */
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em;
    color: var(--pkc-blog-heading) !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    text-transform: none !important;
    border: 0 !important;
}

body.single-post .pkc-blog-meta {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    align-items: center;
    margin: 0 0 32px;
    font-size: .875rem;
    color: var(--pkc-blog-text-soft);
}
body.single-post .pkc-blog-meta-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Poppins', sans-serif;
}
body.single-post .pkc-blog-meta-item svg { color: var(--pkc-blog-brand); flex-shrink: 0; }
body.single-post .pkc-blog-meta-item time {
    color: var(--pkc-blog-text);
    font-weight: 600;
}
body.single-post .pkc-blog-author a {
    color: var(--pkc-blog-brand);
    font-weight: 600;
    text-decoration: none;
}
body.single-post .pkc-blog-author a:hover {
    text-decoration: underline;
}
body.single-post .pkc-blog-verified {
    color: #0a7a3a;
    background: rgba(10, 122, 58, .08);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .8125rem;
}

body.single-post .pkc-blog-hero-image {
    border-radius: var(--pkc-blog-radius);
    overflow: hidden;
    box-shadow: var(--pkc-blog-shadow);
    margin: 0 0 8px;
    background: #f0f2f6;
}
body.single-post .pkc-blog-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────
   3. Body grid: sticky TOC + wide article column
   ───────────────────────────────────────────────────────────────────── */
body.single-post .pkc-blog-wrap {
    padding: 40px 24px 24px;
}
body.single-post .pkc-blog-grid {
    max-width: calc(var(--pkc-blog-article-max) + var(--pkc-blog-toc-w) + var(--pkc-blog-gutter) + 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--pkc-blog-toc-w) minmax(0, 1fr);
    gap: var(--pkc-blog-gutter);
    align-items: flex-start;
}

/* ── 3a. Sticky TOC ── */
body.single-post .pkc-blog-toc {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
body.single-post .pkc-blog-toc-inner {
    background: var(--pkc-blog-surface);
    border: 1px solid var(--pkc-blog-border-soft);
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: var(--pkc-blog-shadow-sm);
}
body.single-post .pkc-blog-toc-title {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pkc-blog-brand);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pkc-blog-border-soft);
}
body.single-post .pkc-blog-toc nav.ez-toc-container,
body.single-post .pkc-blog-toc div#ez-toc-container,
body.single-post .pkc-blog-toc .ez-toc-title-container {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}
body.single-post .pkc-blog-toc .ez-toc-title-container { display: none !important; }   /* using our own */
body.single-post .pkc-blog-toc ul.ez-toc-list,
body.single-post .pkc-blog-toc ul.ez-toc-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.single-post .pkc-blog-toc ul.ez-toc-list ul { padding-left: 10px !important; margin: 0 !important; }
body.single-post .pkc-blog-toc ul.ez-toc-list li {
    font-size: .7875rem !important;   /* tighter text */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}
body.single-post .pkc-blog-toc a.ez-toc-link {
    display: block !important;
    padding: 3px 10px !important;     /* was 6px — halved to reduce gaps */
    border-radius: 5px !important;
    color: var(--pkc-blog-text-soft) !important;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* ── Suppress the in-content EZ TOC duplicate ──────────────────────────
   EZ TOC's `the_content` filter auto-inserts a TOC block into the post
   body (because "post" is in auto_insert_post_types). We already render
   the TOC in the sticky sidebar, so hide the in-content one with CSS.
   Using display:none on #ez-toc-container inside .entry-content only —
   the sidebar version lives inside .pkc-blog-toc and is unaffected.     */
body.single-post .entry-content #ez-toc-container,
body.single-post .entry-content .ez-toc-v2_0_84,
body.single-post .entry-content [class*="ez-toc-v2_"],
body.single-post .entry-content [class*="ez-toc-container"] {
    display: none !important;
}
body.single-post .pkc-blog-toc a.ez-toc-link:hover {
    background: rgba(0, 38, 122, .04) !important;
    color: var(--pkc-blog-brand) !important;
}
body.single-post .pkc-blog-toc a.ez-toc-link.active {
    background: rgba(0, 38, 122, .06) !important;
    color: var(--pkc-blog-brand) !important;
    font-weight: 600 !important;
    border-left-color: var(--pkc-blog-accent) !important;
}

/* ── 3b. Article column ── */
body.single-post .pkc-blog-article {
    width: 100%;
    min-width: 0;   /* let it shrink inside the grid cell */
    /* No max-width here — the article fills its grid cell so the gap on
       the right matches the gap on the left of the TOC. The overall page
       width is already capped by .pkc-blog-grid (max-width ~1140px). */
}
body.single-post .pkc-blog-article article.post {
    background: var(--pkc-blog-surface);
    border: 1px solid var(--pkc-blog-border-soft);
    border-radius: var(--pkc-blog-radius);
    padding: 40px 44px;
    box-shadow: var(--pkc-blog-shadow);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   4. Article typography
   ───────────────────────────────────────────────────────────────────── */
body.single-post .entry-content {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.0625rem !important;     /* 17px — comfortable read */
    line-height: 1.78 !important;
    color: var(--pkc-blog-text) !important;
}
body.single-post .entry-content > * + * { margin-top: 18px; }
body.single-post .entry-content p {
    margin: 0 0 18px !important;
    font-size: 1.0625rem !important;
    line-height: 1.78 !important;
    color: var(--pkc-blog-text) !important;
}
body.single-post .entry-content p:last-child { margin-bottom: 0 !important; }

body.single-post .entry-content a {
    color: var(--pkc-blog-link) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(26, 76, 208, .35) !important;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
}
body.single-post .entry-content a:hover {
    color: var(--pkc-blog-brand) !important;
    text-decoration-color: currentColor !important;
}

body.single-post .entry-content h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.625rem !important;      /* 26px */
    font-weight: 700 !important;
    color: var(--pkc-blog-heading) !important;
    line-height: 1.3 !important;
    letter-spacing: -.005em;
    margin: 44px 0 14px !important;
    padding: 0 !important;
    text-transform: none !important;
    scroll-margin-top: 96px;
    border: 0 !important;
}
body.single-post .entry-content h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.3125rem !important;     /* 21px */
    font-weight: 700 !important;
    color: var(--pkc-blog-heading) !important;
    line-height: 1.35 !important;
    margin: 32px 0 10px !important;
    padding: 0 !important;
    text-transform: none !important;
    scroll-margin-top: 96px;
    border: 0 !important;
}
body.single-post .entry-content h4 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    color: var(--pkc-blog-heading) !important;
    line-height: 1.4 !important;
    margin: 24px 0 8px !important;
    text-transform: none !important;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    padding-left: 26px !important;
    margin: 0 0 20px !important;
}
body.single-post .entry-content li {
    margin-bottom: 8px !important;
    line-height: 1.72;
    color: var(--pkc-blog-text);
}
body.single-post .entry-content li::marker { color: var(--pkc-blog-accent); }
body.single-post .entry-content li strong { color: var(--pkc-blog-heading) !important; font-weight: 700; }

body.single-post .entry-content blockquote {
    border-left: 4px solid var(--pkc-blog-accent) !important;
    background: linear-gradient(90deg, rgba(242, 196, 51, .12) 0%, rgba(242, 196, 51, .02) 100%) !important;
    padding: 20px 26px !important;
    border-radius: 0 10px 10px 0 !important;
    margin: 28px 0 !important;
    color: var(--pkc-blog-text);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.7;
}
body.single-post .entry-content blockquote p { margin: 0 !important; }
body.single-post .entry-content blockquote p + p { margin-top: 12px !important; }

body.single-post .entry-content img,
body.single-post .entry-content figure img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    display: block;
    margin: 24px auto;
    box-shadow: var(--pkc-blog-shadow-sm);
}
body.single-post .entry-content figure { margin: 28px 0 !important; }
body.single-post .entry-content figcaption {
    text-align: center;
    font-size: .8125rem;
    color: var(--pkc-blog-muted);
    margin-top: 8px;
    font-style: italic;
}

/* pkc-responsive-fixes.css sets `display:block` on .entry-content table
   to enable horizontal scroll. That breaks border-collapse (browser wraps
   children in an anonymous table that uses the default border-spacing:2px)
   and stops all table-specific CSS from applying.
   Fix: restore display:table here (loaded after responsive-fixes) and move
   the horizontal scroll responsibility to the figure/div wrapper instead. */
body.single-post .entry-content table {
    display: table !important;
    overflow-x: visible !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 24px 0 !important;
    font-size: .9375rem;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--pkc-blog-border-soft);
}

/* Gutenberg wraps table blocks in <figure class="wp-block-table">.
   - Handle horizontal scroll here (not on the table itself).
   - Collapse double margin: figure gets the spacing, inner table gets 0. */
body.single-post .entry-content figure.wp-block-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 !important;
    border-radius: 8px;
}
body.single-post .entry-content figure.wp-block-table table {
    margin: 0 !important;
    border-radius: 0;
    box-shadow: none;
}
/* figcaption under table — subtle muted label */
body.single-post .entry-content figure.wp-block-table figcaption {
    font-size: 0.8125rem;
    color: var(--pkc-blog-muted);
    text-align: center;
    margin-top: 6px;
}

body.single-post .entry-content table th,
body.single-post .entry-content table td {
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pkc-blog-border-soft) !important;
    text-align: left !important;
    vertical-align: middle !important;
}
body.single-post .entry-content table th {
    background: #f4f6fa !important;
    font-weight: 700 !important;
    color: var(--pkc-blog-heading) !important;
    border-bottom: 2px solid var(--pkc-blog-border) !important;
}
body.single-post .entry-content table tr:last-child td,
body.single-post .entry-content table tr:last-child th {
    border-bottom: 0 !important;
}

/* Reset any <p> inside table cells (some editors / paste operations wrap
   cell text in paragraphs which adds 18px bottom margin per cell). */
body.single-post .entry-content table td p,
body.single-post .entry-content table th p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
body.single-post .entry-content table td p + p,
body.single-post .entry-content table th p + p {
    margin-top: 4px !important;
}

body.single-post .entry-content code {
    background: #f4f6fa;
    border: 1px solid var(--pkc-blog-border-soft);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: .9375rem;
    color: var(--pkc-blog-heading);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.single-post .entry-content pre {
    background: #0d1937;
    color: #e5e9f2;
    padding: 16px 18px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: .9375rem;
    line-height: 1.55;
    margin: 24px 0;
}
body.single-post .entry-content pre code {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}

body.single-post .entry-content hr {
    border: 0;
    border-top: 1px solid var(--pkc-blog-border-soft);
    margin: 36px 0;
}

/* Hide leftover legacy bits if any */
body.single-post article .entry-header,
body.single-post article > .wp-post-image,
body.single-post article > .post-thumbnail { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────
   5. "How PKC can help you" CTA banner (#post-signup)
   ───────────────────────────────────────────────────────────────────── */
body.single-post #post-signup {
    background: linear-gradient(135deg, #00267a 0%, #1438a6 100%) !important;
    border-radius: var(--pkc-blog-radius) !important;
    padding: 0 !important;
    margin: 40px 0 !important;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 38, 122, .22);
    border: 0;
}
body.single-post #post-signup .pg-serv-sucont {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px 30px;
}
body.single-post #post-signup .pg-serv-suttl { padding: 0 !important; color: #fff !important; }
body.single-post #post-signup .pg-serv-suttl h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    line-height: 1.25 !important;
    border: 0 !important;
    text-transform: none !important;
    letter-spacing: 0;
}
body.single-post #post-signup .pg-serv-suttl p {
    font-size: .9375rem !important;
    color: rgba(255, 255, 255, .88) !important;
    margin: 0 0 4px !important;
    line-height: 1.5 !important;
}
body.single-post #post-signup .pg-serv-suttl p a {
    color: var(--pkc-blog-accent) !important;
    font-weight: 700;
    text-decoration: none !important;
}
body.single-post #post-signup .pg-serv-cta { display: flex; justify-content: flex-end; }

body.single-post #post-signup a.frm-mdl-lnk.popfrm {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    width: auto !important; height: auto !important;
    min-height: 0 !important;
    padding: 14px 24px !important;
    background: var(--pkc-blog-accent) !important;
    color: var(--pkc-blog-heading) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
body.single-post #post-signup a.frm-mdl-lnk.popfrm:hover {
    background: #ffd84a !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .25);
}
body.single-post #post-signup a.frm-mdl-lnk.popfrm > span:first-child {
    padding: 0 !important;
    margin: 0 !important;
    color: inherit;
}
body.single-post #post-signup a.frm-mdl-lnk.popfrm .arr_svg,
body.single-post #post-signup a.frm-mdl-lnk.popfrm:hover .arr_svg {
    width: 20px !important; height: 20px !important;
    flex-shrink: 0;
    padding: 0 !important;
    background: transparent !important;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease;
}
body.single-post #post-signup a.frm-mdl-lnk.popfrm:hover .arr_svg { transform: translateX(4px); }
body.single-post #post-signup a.frm-mdl-lnk.popfrm .arr_svg svg {
    width: 20px !important; height: 20px !important;
    margin: 0 !important; display: block;
}
body.single-post #post-signup a.frm-mdl-lnk.popfrm .arr_svg svg path { fill: var(--pkc-blog-heading) !important; }

/* ─────────────────────────────────────────────────────────────────────
   6. Post navigation (Prev / Next)
   ───────────────────────────────────────────────────────────────────── */
body.single-post .post-navigation { margin: 32px 0 !important; }
body.single-post .post-navigation .nav-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px !important;
}
body.single-post .post-navigation a {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px !important;
    background: var(--pkc-blog-surface) !important;
    border: 1px solid var(--pkc-blog-border) !important;
    border-radius: 12px !important;
    color: var(--pkc-blog-heading) !important;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.single-post .post-navigation a:hover {
    border-color: rgba(0, 38, 122, .25) !important;
    box-shadow: var(--pkc-blog-shadow) !important;
    transform: translateY(-2px);
}
body.single-post .post-navigation .nav-subtitle {
    display: block;
    font-size: .75rem !important;
    font-weight: 700;
    color: var(--pkc-blog-brand);
    text-transform: uppercase;
    letter-spacing: .06em;
}
body.single-post .post-navigation .nav-link-title {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--pkc-blog-heading);
    line-height: 1.4;
}
body.single-post .post-navigation .nav-next { text-align: right !important; }

/* ─────────────────────────────────────────────────────────────────────
   7. YARPP related posts
   ───────────────────────────────────────────────────────────────────── */
body.single-post .yarpp-related,
body.single-post .yarpp-thumbnails-horizontal {
    margin: 40px 0 0 !important;
    padding: 28px 0 0 !important;
    border-top: 1px solid var(--pkc-blog-border-soft);
}
body.single-post .yarpp-related h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--pkc-blog-heading) !important;
    margin: 0 0 18px !important;
    text-transform: none !important;
    border: 0 !important;
}
/* YARPP's plugin ships an inline <style id="yarpp-thumbnails-inline-css">
   that hardcodes width: 310px; height: 350px on each .yarpp-thumbnail,
   width/height: 300px on the inner <img>, and min-height: 300px on the
   .yarpp-thumbnail-default > img. We have to override ALL of those
   (especially min-height — it clamps `height` regardless of !important)
   AND its style/styles_thumbnails.css plugin stylesheet. */
body.single-post .yarpp-thumbnails-horizontal {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
body.single-post .yarpp-thumbnails-horizontal .yarpp-thumbnail,
body.single-post a.yarpp-thumbnail {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--pkc-blog-surface) !important;
    border: 1px solid var(--pkc-blog-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
body.single-post .yarpp-thumbnails-horizontal .yarpp-thumbnail:hover,
body.single-post a.yarpp-thumbnail:hover {
    border-color: rgba(0, 38, 122, .25) !important;
    box-shadow: var(--pkc-blog-shadow) !important;
    transform: translateY(-3px);
}
body.single-post .yarpp-thumbnails-horizontal .yarpp-thumbnail > img,
body.single-post .yarpp-thumbnail-default,
body.single-post .yarpp-thumbnail-default > img,
body.single-post .yarpp-thumbnails-horizontal img {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    object-fit: cover;
    background: #f4f6fa;       /* visible if image is missing */
    flex-shrink: 0;
}
body.single-post .yarpp-thumbnails-horizontal .yarpp-thumbnail-title,
body.single-post span.yarpp-thumbnail-title {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: .9375rem !important;
    font-weight: 700;
    color: var(--pkc-blog-heading) !important;
    line-height: 1.4 !important;
    text-transform: none !important;

    /* YARPP's plugin stylesheet caps the title at max-height: 2.8em with
       overflow: hidden — long titles end up clipped mid-word. Lift both
       constraints so the title can grow to fit (the flex card grows too). */
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────────────────────────
   8. End-of-article callback section (Zoho form)
   ───────────────────────────────────────────────────────────────────── */
body.single-post .pkc-blog-callback {
    background: linear-gradient(180deg, var(--pkc-blog-bg) 0%, #eef1f7 100%);
    padding: 56px 24px 64px;
    border-top: 1px solid var(--pkc-blog-border-soft);
}
body.single-post .pkc-blog-callback-inner {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--pkc-blog-surface);
    border-radius: var(--pkc-blog-radius);
    box-shadow: var(--pkc-blog-shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    border: 1px solid var(--pkc-blog-border);
}
body.single-post .pkc-blog-callback-copy {
    padding: 36px 36px;
    background: linear-gradient(135deg, #00267a 0%, #1438a6 100%);
    color: #fff;
    display: flex; flex-direction: column; justify-content: center;
}
body.single-post .pkc-blog-callback-copy h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 10px !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    border: 0 !important;
    letter-spacing: 0;
}
body.single-post .pkc-blog-callback-copy p {
    font-size: .9375rem !important;
    color: rgba(255, 255, 255, .88) !important;
    line-height: 1.55;
    margin: 0;
}
body.single-post .pkc-blog-callback-formwrap { padding: 28px 32px; }

/* Reset Zoho's own !important rules inside our form */
body.single-post .pkc-blog-callback-form,
body.single-post div#crmWebToEntityForm.pkc-blog-callback-form {
    background: transparent !important;
    color: var(--pkc-blog-heading) !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
body.single-post .pkc-blog-callback-form .zcwf_title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--pkc-blog-heading) !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--pkc-blog-border-soft);
    margin: 0 0 16px !important;
    line-height: 1.4 !important;
    text-align: left;
    background: transparent !important;
    max-width: none !important;
}
body.single-post .pkc-blog-callback-form .zcwf_title br { display: none !important; }
body.single-post .pkc-blog-callback-form .zcwf_title a {
    color: var(--pkc-blog-brand) !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 6px;
    display: inline-block;
    font-size: .9375rem !important;
}
body.single-post .pkc-blog-callback-form .zcwf_title a::before {
    content: "☎ "; color: var(--pkc-blog-accent); margin-right: 4px;
}

body.single-post .pkc-blog-callback-form .zcwf_row {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: visible !important;
}
body.single-post .pkc-blog-callback-form .zcwf_col_lab {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: .8125rem !important;
    font-weight: 600;
    color: var(--pkc-blog-text-soft) !important;
    text-transform: none !important;
    min-height: 0 !important;
}
body.single-post .pkc-blog-callback-form .zcwf_col_lab label {
    font-size: .8125rem !important;
    color: inherit !important;
    font-family: inherit !important;
}
body.single-post .pkc-blog-callback-form .zcwf-req { color: #e03131; margin-left: 2px; font-weight: 700; }
body.single-post .pkc-blog-callback-form .zcwf_col_fld {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}
body.single-post .pkc-blog-callback-form .zcwf_col_fld input[type=text],
body.single-post .pkc-blog-callback-form .zcwf_col_fld input[type=email],
body.single-post .pkc-blog-callback-form .zcwf_col_fld input[type=tel],
body.single-post .pkc-blog-callback-form .zcwf_col_fld .zcwf_col_fld_slt {
    width: 100% !important;
    max-width: none !important;
    background: #f9fafd !important;
    border: 1px solid #d6dce8 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: .9375rem !important;
    color: var(--pkc-blog-heading) !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.single-post .pkc-blog-callback-form .zcwf_col_fld input:focus,
body.single-post .pkc-blog-callback-form .zcwf_col_fld .zcwf_col_fld_slt:focus {
    outline: none !important;
    background: #fff !important;
    border-color: var(--pkc-blog-brand) !important;
    box-shadow: 0 0 0 3px rgba(0, 38, 122, .12) !important;
}
body.single-post .pkc-blog-callback-form .wfrm_fld_dpNn { display: none !important; }
body.single-post .pkc-blog-callback-form .zcwf_col_help { display: none !important; }
body.single-post .pkc-blog-callback-form .pkc-callback-actions {
    margin-top: 18px !important;
}
body.single-post .pkc-blog-callback-form .pkc-callback-actions input[type=submit] {
    width: 100%;
    background: var(--pkc-blog-accent) !important;
    color: var(--pkc-blog-heading) !important;
    border: 0 !important;
    padding: 12px 18px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    font-size: 1rem !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(242, 196, 51, .3) !important;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap;
}
body.single-post .pkc-blog-callback-form .pkc-callback-actions input[type=submit]:hover {
    background: #ffd84a !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(242, 196, 51, .38) !important;
}
body.single-post .pkc-blog-callback-form .pkc-callback-actions input[type=submit]:disabled {
    opacity: .65; cursor: not-allowed; transform: none;
}

/* ─────────────────────────────────────────────────────────────────────
   9. Responsive — collapse to single column
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    body.single-post .pkc-blog-hero { padding: 32px 20px 18px; }
    body.single-post .pkc-blog-wrap { padding: 28px 20px 18px; }
    body.single-post .pkc-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    body.single-post .pkc-blog-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }
    body.single-post .pkc-blog-toc-inner { padding: 14px 14px; }
    body.single-post .pkc-blog-article article.post { padding: 28px 24px; }
    body.single-post #post-signup .pg-serv-sucont {
        grid-template-columns: 1fr;
        text-align: center;
    }
    body.single-post #post-signup .pg-serv-cta { justify-content: center; }
    body.single-post .post-navigation .nav-links { grid-template-columns: 1fr !important; }
    body.single-post .yarpp-thumbnails-horizontal { grid-template-columns: repeat(2, 1fr); }

    body.single-post .pkc-blog-callback-inner { grid-template-columns: 1fr; }
    body.single-post .pkc-blog-callback-copy { padding: 28px 24px; }
    body.single-post .pkc-blog-callback-formwrap { padding: 24px; }
}
@media (max-width: 575px) {
    body.single-post .pkc-blog-hero { padding: 24px 16px 14px; }
    body.single-post .pkc-blog-hero-image img { max-height: 240px; }
    body.single-post .pkc-blog-wrap { padding: 24px 16px 14px; }
    body.single-post .pkc-blog-article article.post {
        padding: 22px 18px;
        border-radius: 12px;
    }
    body.single-post .entry-content { font-size: 1rem !important; line-height: 1.7 !important; }
    body.single-post .entry-content p { font-size: 1rem !important; line-height: 1.7 !important; }
    body.single-post .entry-content h2 { font-size: 1.375rem !important; margin-top: 32px !important; }
    body.single-post .entry-content h3 { font-size: 1.125rem !important; margin-top: 24px !important; }
    body.single-post #post-signup .pg-serv-sucont { padding: 22px 18px; }
    body.single-post .yarpp-thumbnails-horizontal { grid-template-columns: 1fr; }
    body.single-post .pkc-blog-callback { padding: 32px 16px 40px; }
    body.single-post .pkc-blog-callback-copy { padding: 22px 20px; }
    body.single-post .pkc-blog-callback-formwrap { padding: 20px; }
}
