/**
 * PanchayatSetu Modern Post Layout Engine (2026.2)
 * Dedicated, Standalone Stylesheet for Single Post & Guide Pages
 * File: assets/css/modern-post.css
 */

:root {
    --mp-primary: #0F2167;
    --mp-primary-hover: #1e3a8a;
    --mp-navy-dark: #08112e;
    --mp-accent-blue: #0284c7;
    --mp-accent-green: #059669;
    --mp-emerald: #10b981;
    --mp-amber: #f59e0b;
    --mp-danger: #dc2626;
    --mp-text-main: #0f172a;
    --mp-text-body: #334155;
    --mp-text-muted: #64748b;
    --mp-border-light: #e2e8f0;
    --mp-border-subtle: #f1f5f9;
    --mp-bg-card: #ffffff;
    --mp-bg-subtle: #f8fafc;
    --mp-radius-sm: 8px;
    --mp-radius-md: 12px;
    --mp-radius-lg: 16px;
    --mp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --mp-shadow-md: 0 4px 16px rgba(15, 33, 103, 0.07);
    --mp-shadow-lg: 0 10px 30px rgba(15, 33, 103, 0.12);
}

/* ==========================================================================
   1. TOP STICKY READING PROGRESS BAR
   ========================================================================== */
#mp-reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 999999;
    pointer-events: none;
}

#mp-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   2. MAIN MODERN POST CONTAINER
   ========================================================================== */
.modern-post-container {
    max-width: 1140px;
    margin: 20px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--mp-text-main);
}

/* ==========================================================================
   3. MODERN HERO HEADER CARD
   ========================================================================== */
.mp-hero-card {
    background: linear-gradient(135deg, #0b1736 0%, #142850 50%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: var(--mp-radius-lg);
    padding: 28px 30px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mp-shadow-lg);
    margin-bottom: 22px;
}

.mp-hero-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

/* Breadcrumbs */
.mp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.mp-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mp-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.mp-breadcrumb-sep {
    color: #64748b;
    font-size: 11px;
}

.mp-breadcrumb-curr {
    color: #f8fafc;
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-Badge Row */
.mp-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mp-tag-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.mp-cat-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.mp-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 3px 10px;
    border-radius: 99px;
}

.mp-pulse-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: mpPulse 1.8s infinite ease-in-out;
}

@keyframes mpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

/* Post Title */
.mp-title {
    font-size: clamp(23px, 3.4vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 6px 0 16px;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 2;
}

/* Meta Data Line */
.mp-meta-line {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

.mp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mp-meta-item strong {
    color: #ffffff;
}

/* ==========================================================================
   4. E-E-A-T AUTHOR & EDITORIAL TRUST CARD
   ========================================================================== */
.mp-author-card {
    background: #ffffff;
    border: 1px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--mp-shadow-sm);
}

.mp-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mp-primary), #1e40af);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 33, 103, 0.2);
}

.mp-author-details {
    font-size: 13.5px;
    line-height: 1.45;
}

.mp-author-name {
    color: var(--mp-primary);
    font-weight: 800;
}

.mp-author-role {
    font-size: 12px;
    color: var(--mp-text-muted);
    font-weight: 500;
}

.mp-author-dates {
    font-size: 12px;
    color: var(--mp-text-muted);
    margin-top: 2px;
}

.mp-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 99px;
}

/* ==========================================================================
   5. QUICK UTILITY TOOLBAR (Share, Copy Link, Print, Zoom)
   ========================================================================== */
.mp-toolbar {
    background: #ffffff;
    border: 1px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    padding: 10px 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--mp-shadow-sm);
}

.mp-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mp-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--mp-radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.mp-tool-whatsapp {
    background: #25D366;
    color: #ffffff !important;
}
.mp-tool-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.mp-tool-telegram {
    background: #0088cc;
    color: #ffffff !important;
}
.mp-tool-telegram:hover {
    background: #0077b5;
    transform: translateY(-1px);
}

.mp-tool-action {
    background: var(--mp-bg-subtle);
    border-color: var(--mp-border-light);
    color: var(--mp-text-body);
}
.mp-tool-action:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--mp-primary);
}

.mp-zoom-btn {
    background: var(--mp-bg-subtle);
    border: 1px solid var(--mp-border-light);
    color: var(--mp-text-body);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
}
.mp-zoom-btn:hover {
    background: #eff6ff;
    color: var(--mp-primary);
}

/* ==========================================================================
   6. FEATURED IMAGE (16:9 HD with modern styling)
   ========================================================================== */
.mp-featured-wrap {
    margin: 0 0 24px 0;
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    border: 1px solid var(--mp-border-light);
    box-shadow: var(--mp-shadow-md);
    background: #ffffff;
    position: relative;
}

.mp-featured-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ==========================================================================
   7. 2026 SNAPSHOT / LEAD HIGHLIGHTS BOX
   ========================================================================== */
.mp-snapshot-box,
.article-lead-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1.5px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 0 var(--mp-radius-md) var(--mp-radius-md) 0;
    padding: 18px 22px;
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.05);
}

.mp-snapshot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mp-snapshot-text {
    font-size: 16px;
    line-height: 1.7;
    color: #14532d;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   8. DYNAMIC TABLE OF CONTENTS (TOC) CARD
   ========================================================================== */
.mp-toc-card {
    background: #f8fafc;
    border: 1px solid var(--mp-border-light);
    border-left: 4px solid var(--mp-primary);
    border-radius: var(--mp-radius-sm);
    padding: 10px 18px;
    margin: 18px 0 24px;
    box-shadow: var(--mp-shadow-sm);
    transition: all 0.2s ease;
}

.mp-toc-card.is-open,
.mp-toc-card.open {
    background: #ffffff;
    border: 1.5px solid var(--mp-border-light);
    border-top: 4px solid var(--mp-primary);
    border-left: 1.5px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    padding: 16px 20px;
    box-shadow: var(--mp-shadow-md);
}

.mp-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.mp-toc-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mp-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mp-toc-toggle {
    font-size: 12px;
    color: var(--mp-accent-blue);
    font-weight: 700;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 12px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mp-toc-toggle:hover {
    background: #dbeafe;
    color: var(--mp-primary);
}

.mp-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 14px 0 0 !important;
    display: none; /* STRICTLY HIDDEN BY DEFAULT */
    flex-direction: column;
    gap: 8px;
}

.mp-toc-card.is-open .mp-toc-list,
.mp-toc-card.open .mp-toc-list {
    display: flex !important;
}

.mp-toc-hidden {
    display: none !important;
}

.mp-toc-item {
    font-size: 14px;
    line-height: 1.5;
}

.mp-toc-item a {
    color: var(--mp-text-body);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.mp-toc-item a:hover {
    background: var(--mp-bg-subtle);
    color: var(--mp-primary);
    padding-left: 12px;
}

.mp-toc-item.active a {
    background: #eff6ff;
    color: var(--mp-primary);
    font-weight: 700;
    border-left: 3px solid var(--mp-accent-blue);
}

/* ==========================================================================
   9. POST CONTENT BODY (Modern Typography & Flow)
   ========================================================================== */
.mp-post-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--mp-text-body);
    word-break: break-word;
}

.mp-post-body p {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--mp-text-body);
}

.mp-post-body strong {
    color: var(--mp-text-main);
    font-weight: 700;
}

.mp-post-body a {
    color: var(--mp-accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.mp-post-body a:hover {
    color: var(--mp-primary);
}

/* Headings (H2, H3, H4) */
.mp-post-body h2 {
    font-size: 21.5px;
    font-weight: 800;
    color: var(--mp-primary);
    margin-top: 38px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(15, 33, 103, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 5px solid var(--mp-primary);
    border-radius: 0 10px 10px 0;
    line-height: 1.45;
    scroll-margin-top: 80px;
}

.mp-post-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
    margin-top: 28px;
    margin-bottom: 14px;
    padding: 8px 14px;
    background: rgba(5, 150, 105, 0.04);
    border-left: 4px solid var(--mp-accent-green);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
    scroll-margin-top: 80px;
}

.mp-post-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text-main);
    margin-top: 22px;
    margin-bottom: 10px;
}

/* Lists */
.mp-post-body ul {
    list-style-type: disc;
    padding-left: 24px;
    margin: 16px 0 24px;
}

.mp-post-body ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin: 16px 0 24px;
}

.mp-post-body li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.75;
}

/* ==========================================================================
   10. RESPONSIVE 2-COLUMN TABLES WITH SWIPE ENGINE
   ========================================================================== */
.mp-table-wrap,
.mj-table-wrap,
.ps-table-wrap {
    margin: 26px 0 34px 0;
    border-radius: var(--mp-radius-md);
    border: 1.5px solid var(--mp-border-light);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
}

.mp-table-hint,
.mj-table-hint,
.ps-table-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
    border-bottom: 1.5px solid #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 768px) {
    .mp-table-hint,
    .mj-table-hint,
    .ps-table-hint {
        display: flex;
    }
}

.mp-table-scroll,
.mj-table-scroll,
.ps-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mp-post-body table,
table.mp-data-table,
table.mj-data-table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse !important;
    background: #ffffff;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 !important;
    border: none !important;
}

.mp-post-body table thead th,
table.mp-data-table thead th,
table.mj-data-table thead th {
    background: var(--mp-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 13px 16px !important;
    text-align: left !important;
    border: none !important;
}

.mp-post-body table tbody td,
table.mp-data-table tbody td,
table.mj-data-table tbody td {
    padding: 13px 16px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: var(--mp-text-body) !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    vertical-align: top !important;
}

.mp-post-body table tbody tr:nth-child(even) td,
table.mp-data-table tbody tr:nth-child(even) td,
table.mj-data-table tbody tr:nth-child(even) td {
    background: var(--mp-bg-subtle) !important;
}

.mp-post-body table.mj-table-compact td:first-child,
.mp-post-body table.mp-table-compact td:first-child,
table.mp-data-table.mj-table-compact td:first-child {
    font-weight: 700 !important;
    color: var(--mp-primary) !important;
    width: 40% !important;
    background: #fafbfc !important;
    border-right: 1px solid var(--mp-border-light) !important;
}

/* ==========================================================================
   11. ADVISORY & ALERT CALLOUT BOXES
   ========================================================================== */
.mp-alert-box,
.ps-alert-box,
.ps-callout-box {
    border-radius: var(--mp-radius-md);
    padding: 16px 20px;
    margin: 24px 0 28px 0;
    font-size: 15px;
    line-height: 1.7;
    box-sizing: border-box;
}

.mp-alert-box p,
.ps-alert-box p,
.ps-callout-box p {
    margin: 0 !important;
}

/* Warning (Fraud / Broker Advisory) */
.mp-alert-warning,
.ps-alert-warning,
.ps-callout-warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-left: 5px solid var(--mp-amber);
    color: #92400e;
}
.mp-alert-warning strong,
.ps-alert-warning strong {
    color: #78350f;
}

/* Info (e-KYC / NPCI DBT Link) */
.mp-alert-info,
.ps-alert-info,
.ps-callout-info {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    color: #1e40af;
}

/* Success */
.mp-alert-success,
.ps-alert-success,
.ps-callout-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    color: #166534;
}

/* ==========================================================================
   12. QUICK ACTION & DIRECT VERIFIED LINKS BOX
   ========================================================================== */
.mp-action-box,
.pmsetu-quick-action-box {
    background: var(--mp-bg-subtle);
    border: 1.5px solid #cbd5e1;
    border-radius: var(--mp-radius-lg);
    padding: 22px;
    margin: 32px 0;
    box-shadow: var(--mp-shadow-sm);
}

.mp-action-tag {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--mp-accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.mp-action-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--mp-text-main);
}

.mp-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.mp-btn-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-radius: var(--mp-radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mp-btn-action:hover {
    transform: translateY(-2px);
}

.mp-btn-portal {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.mp-btn-pdf {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

/* Direct Pill Link in Table */
.ps-btn-direct {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
}

/* ==========================================================================
   13. INTERACTIVE ACCORDION FAQS
   ========================================================================== */
.mp-faq-card,
.modern-faqs-section {
    margin-top: 36px;
    margin-bottom: 30px;
}

.mp-faq-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--mp-primary);
    margin-bottom: 18px;
}

.mp-faq-item,
details.mj-faq-item {
    background: #ffffff;
    border: 1.5px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-faq-item:hover,
details.mj-faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--mp-shadow-sm);
}

.mp-faq-item[open],
details.mj-faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07);
}

.mp-faq-item summary,
details.mj-faq-item summary {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--mp-primary);
    cursor: pointer;
    user-select: none;
    outline: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    line-height: 1.45;
}

.mp-faq-item summary::-webkit-details-marker,
details.mj-faq-item summary::-webkit-details-marker {
    display: none;
}

.mp-faq-item summary::after,
details.mj-faq-item summary::after {
    content: "＋";
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mp-faq-item[open] summary::after,
details.mj-faq-item[open] summary::after {
    content: "－";
    background: #dbeafe;
    color: #1e40af;
}

.mp-faq-item p,
details.mj-faq-item p {
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 15px;
    line-height: 1.75;
    color: var(--mp-text-body);
}

/* ==========================================================================
   14. READER FEEDBACK CARD
   ========================================================================== */
.mp-feedback-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1.5px solid #dbeafe;
    border-radius: var(--mp-radius-md);
    padding: 18px 22px;
    margin: 36px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mp-feedback-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
}

.mp-feedback-actions {
    display: flex;
    gap: 10px;
}

.mp-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--mp-radius-sm);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mp-fb-yes {
    background: #ffffff;
    border-color: #86efac;
    color: #15803d;
}
.mp-fb-yes:hover {
    background: #dcfce7;
}

.mp-fb-no {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
}
.mp-fb-no:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ==========================================================================
   15. NEXT & PREVIOUS POST NAVIGATION GRID
   ========================================================================== */
.mp-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 34px 0;
}

@media (max-width: 640px) {
    .mp-nav-grid {
        grid-template-columns: 1fr;
    }
}

.mp-nav-card {
    background: #ffffff;
    border: 1px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    padding: 16px 20px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: var(--mp-shadow-sm);
}

.mp-nav-card:hover {
    transform: translateY(-2px);
    border-color: var(--mp-accent-blue);
    box-shadow: var(--mp-shadow-md);
}

.mp-nav-label {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--mp-accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mp-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mp-text-main);
    line-height: 1.45;
}

/* ==========================================================================
   16. RELATED POSTS GRID
   ========================================================================== */
.mp-related-section {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 2px solid var(--mp-border-subtle);
}

.mp-related-header {
    margin-bottom: 20px;
}

.mp-related-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--mp-primary);
}

.mp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.mp-related-card {
    background: #ffffff;
    border: 1px solid var(--mp-border-light);
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-md);
}

.mp-related-thumb {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.mp-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mp-related-card:hover .mp-related-thumb img {
    transform: scale(1.04);
}

.mp-related-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mp-related-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
}

.mp-related-title a {
    color: var(--mp-text-main);
    text-decoration: none;
}
.mp-related-title a:hover {
    color: var(--mp-accent-blue);
}

.mp-related-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--mp-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   17. TOAST NOTIFICATION
   ========================================================================== */
#mp-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#mp-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   18. PRINT OPTIMIZATIONS
   ========================================================================== */
@media print {
    #mp-reading-progress-wrap,
    .mp-toolbar,
    .mp-feedback-card,
    .mp-nav-grid,
    .mp-related-section,
    .site-header,
    .site-footer,
    header,
    footer,
    nav {
        display: none !important;
    }
    .modern-post-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mp-hero-card {
        background: #0F2167 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* ==========================================================================
   16. GOOGLE DISCOVER HIGH-CTR SNAPSHOT & CLASSIC EDITORIAL CARD
   ========================================================================== */
.ps-discover-snapshot {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-top: 4px solid var(--mp-primary);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px 0 26px 0;
    box-shadow: 0 4px 16px rgba(15, 33, 103, 0.06);
    box-sizing: border-box;
}

.ps-snapshot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.ps-discover-snapshot ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.ps-discover-snapshot li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #334155;
}

.ps-discover-snapshot li:last-child {
    margin-bottom: 0;
}

.ps-discover-snapshot li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

/* Classic Direct Action Link Buttons */
.ps-btn-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0284c7;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.15s ease;
}

.ps-btn-direct:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}


/* Lead Infographic Poster Styling (16:9 HD Display) */
.article-lead-infographic {
  margin: 28px auto 32px;
  text-align: center;
  max-width: 960px;
  width: 100%;
}
.article-lead-infographic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-lead-infographic img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}
.article-lead-infographic figcaption {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 640px) {
  .article-lead-infographic {
    margin: 20px auto 24px;
  }
  .article-lead-infographic img {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .article-lead-infographic figcaption {
    font-size: 12.5px;
  }
}


/* In-Post Topic Images (Multi-Image Content Styling) */
.article-content-image {
  margin: 28px auto 32px;
  text-align: center;
  max-width: 920px;
  width: 100%;
}
.article-content-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-content-image img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.article-content-image figcaption {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .article-content-image {
    margin: 20px auto 24px;
  }
  .article-content-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  .article-content-image figcaption {
    font-size: 12.5px;
  }
}

/* TOC Scroll margin and touch enhancements */
html {
    scroll-behavior: smooth;
}
[id^="section-"], h2[id], h3[id], h4[id] {
    scroll-margin-top: 90px;
}
.mp-toc-header {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
}
.mp-toc-toggle {
    pointer-events: none !important;
}
