
/* ==========================================================
   IMAGE META + SHARE ROW
   ========================================================== */

.post-image-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 16px;
    padding: 8px 0;
}

.post-image-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.post-category-meta {
    font-size: 13px;
    font-weight: 700;
    color: #0073aa;
    text-transform: uppercase;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.post-meta-item i {
    color: #0073aa;
}

.post-share-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}


/* ==========================================================
   MODERN ACTION TOOLBAR
   ========================================================== */

.post-toolbar-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #eee;
}

.ptm-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ptm-btn {
    border: none;
    background: #f4f5f7;
    color: #333;
    height: 38px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        color .15s ease;
}

.ptm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.ptm-share .ptm-btn,
.post-share-buttons .ptm-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
}

.ptm-fb {
    background: #3b5998;
}

.ptm-tw {
    background: #1da1f2;
}

.ptm-wa {
    background: #25d366;
}

.ptm-copy {
    background: #555 !important;
    color: #fff !important;
}

.ptm-ai {
    background: linear-gradient(135deg,#7b2ff7,#f107a3);
    color: #fff;
}

.ptm-listen {
    background: #0073aa;
    color: #fff;
}

.ptm-listen.speaking {
    background: #d63638;
}

.ptm-select {
    padding: 0 10px;
    cursor: pointer;
}


/* ==========================================================
   SPEECH HIGHLIGHT
   ========================================================== */

.speech-highlight {
    background: #fff3a3;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(255,193,7,.15);
    transition: background .1s ease;
}


/* ==========================================================
   SAVE TOAST
   ========================================================== */

.save-toast {
    position: fixed;
    right: 25px;
    bottom: 85px;
    z-index: 10001;
    background: #222;
    color: #fff;
    padding: 11px 17px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.save-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================================================
   AI MODAL
   ========================================================== */

.ai-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.ai-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-modal-content {
    background: #fff;
    width: 90%;
    max-width: 620px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.ai-modal-header {
    background: #0073aa;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.ai-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.ai-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.ai-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-short-summary {
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #333;
}

.ai-key-points {
    padding-left: 20px;
}

.ai-key-points li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}


/* ==========================================================
   READING PROGRESS
   ========================================================== */

#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}


/* ==========================================================
   STICKY BAR
   ========================================================== */

.sticky-engagement-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
    padding: 10px 0;
    z-index: 999;
    transform: translateY(100%);
    transition: 0.3s;
    border-top: 1px solid #eee;
}

.sticky-engagement-bar.show {
    transform: translateY(0);
}

.sticky-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
}

.sticky-btn.fb {
    background: #3b5998;
}

.sticky-btn.tw {
    background: #1da1f2;
}

.sticky-btn.wa {
    background: #25d366;
}

.sticky-btn.copy-link {
    background: #555;
}

.sticky-comment-btn {
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.sticky-comment-btn .count {
    background: rgba(255,255,255,0.25);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 12px;
}


/* ==========================================================
   POST TEXT
   ========================================================== */

.post-text {
    font-size: 18px;
    line-height: 1.8;
    transition: font-size 0.2s;
}

.post-text .speech-highlight {
    background: #fff3a3;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .post-image-share-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .post-image-meta {
        width: 100%;
    }

    .post-share-buttons {
        width: 100%;
    }

    .post-share-buttons .ptm-btn {
        width: 36px;
        height: 36px;
    }

    .post-toolbar-modern {
        justify-content: center;
        padding: 10px;
    }

}

@media (max-width: 576px) {

    .ptm-btn span {
        display: none;
    }

    .ptm-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .ptm-select {
        width: auto;
        padding: 0 8px;
    }

    .save-toast {
        left: 15px;
        right: 15px;
        bottom: 75px;
        justify-content: center;
    }

}


/* ==========================================================
   PRINT
   ONLY FEATURED IMAGE + POST CONTENT
   ========================================================== */

@media print {

    /* Hide everything globally first */
    body * {
        visibility: hidden !important;
    }

    /*
     * Then make ONLY the featured image and post content visible.
     */
    .post-layout-1-area,
    .post-layout-1-area .container,
    .post-layout-1-area .row,
    .post-layout-1-area .col-lg-8,
    .post-layout-1-area .post-layout-top-content,
    .post-layout-1-area .post-thumb,
    .post-layout-1-area .post-thumb img,
    .post-layout-1-area .post-text,
    .post-layout-1-area .post-text * {
        visibility: visible !important;
    }

    /*
     * Remove layout restrictions.
     */
    .post-layout-1-area {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .post-layout-1-area .container,
    .post-layout-1-area .row,
    .post-layout-1-area .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .post-layout-1-area .post-layout-top-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /*
     * Explicitly hide all unwanted story elements.
     */
    .post-print-hide,
    .post-image-share-row,
    .post-toolbar-modern,
    .post-author-meta,
    .title,
    .post-tags,
    .post-navigation,
    .col-lg-4,
    #readingProgress,
    .sticky-engagement-bar,
    .ai-modal,
    .save-toast {
        display: none !important;
        visibility: hidden !important;
    }

    /*
     * Featured image only.
     */
    .post-thumb {
        display: block !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
    }

    .post-thumb img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    /*
     * Post content only.
     */
    .post-text {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 18px !important;
        line-height: 1.7 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .post-text * {
        visibility: visible !important;
    }

    /*
     * Don't print speech highlight background.
     */
    .speech-highlight {
        background: transparent !important;
        box-shadow: none !important;
    }

    /*
     * Browser print margins.
     */
    @page {
        margin: 15mm;
    }

}
/* ==========================================================
   SCREEN RESTRICTION
   ========================================================== */

@media screen {

    .post-layout-1-area {
        display: block;
    }

}

/* =========================================================
   POST LAYOUT 1 — COVER STORY (Premium)
   BG image + Title overlay, Author & Share in ONE ROW
   ========================================================= */

.post-layout-1-area {
    padding: 26px 0 80px;
}

.post-layout-1-area * {
    box-sizing: border-box;
}

/* =========================================================
   HERO — Full-width BG image with TITLE overlay
   ========================================================= */
.post-layout-1-area .post-thumb {
    position: relative;
    width: 100%;
    margin-bottom: 0 !important;
    aspect-ratio: 21 / 9;
    min-height: 380px;
    overflow: hidden;
    border-radius: 16px;
    background-color: #0d1626;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-size 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-layout-1-area .post-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.20) 40%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.88) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.post-layout-1-area .post-thumb:hover {
    background-size: 105% auto;
}

.post-layout-1-area .post-thumb > .post-layout-top-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 44px 40px;
    max-width: 1000px;
}

.post-layout-1-area .post-thumb .title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    max-width: 900px;
    padding: 0;
    position: relative;
}

.post-layout-1-area .post-thumb .title::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: #d70017;
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(215, 0, 23, 0.55);
}

/* =========================================================
   META STRIP — Author pill (left) + Share buttons (right)
   ========================================================= */
.post-layout-1-area .post-author-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    margin: 20px 0 28px !important;
    background: linear-gradient(135deg, #fbfcfe 0%, #f4f7fb 100%);
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(13, 22, 38, 0.05);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-layout-1-area .post-author-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d70017 0%, #ff3b52 100%);
    border-radius: 0 0 3px 0;
}

.post-layout-1-area .post-author-meta:hover {
    border-color: #d70017;
    box-shadow: 0 8px 28px rgba(215, 0, 23, 0.10);
    transform: translateY(-1px);
}

/* ---------- AUTHOR PILL (Left) ---------- */
.post-layout-1-area .post-author-meta .author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 6px 14px 6px 6px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(13, 22, 38, 0.06);
    transition: all 0.3s ease;
}

.post-layout-1-area .post-author-meta:hover .author-info {
    box-shadow: 0 4px 16px rgba(13, 22, 38, 0.10);
}

.post-layout-1-area .post-author-meta .author-info img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #d70017,
                0 4px 14px rgba(215, 0, 23, 0.18);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-layout-1-area .post-author-meta:hover .author-info img {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 0 2px #d70017,
                0 6px 20px rgba(215, 0, 23, 0.28);
}

.post-layout-1-area .post-author-meta .author-info h5 {
    font-size: 14px;
    font-weight: 800;
    color: #0d1626;
    letter-spacing: 0.2px;
    line-height: 1.1;
    margin: 0 0 4px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-layout-1-area .post-author-meta .author-info h5::after {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    color: #d70017;
    opacity: 0.85;
}

.post-layout-1-area .post-author-meta .author-info small {
    font-size: 11.5px;
    color: #7a869c;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.post-layout-1-area .post-author-meta .author-info small::before {
    content: "\f133";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 10px;
    color: #d70017;
    opacity: 0.7;
}

/* ---------- SHARE / SOCIAL (Right) ---------- */
.post-layout-1-area .post-author-meta > .post-social-share,
.post-layout-1-area .post-author-meta > [class*="social-share"],
.post-layout-1-area .post-author-meta > [class*="post-share"],
.post-layout-1-area .post-author-meta > [class*="share-post"],
.post-layout-1-area .post-author-meta > .post-share,
.post-layout-1-area .post-author-meta > .share-buttons,
.post-layout-1-area .post-author-meta > .post-social {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0;
    width: auto;
    float: none;
}

.post-layout-1-area .post-author-meta > .post-social-share > *,
.post-layout-1-area .post-author-meta > [class*="social-share"] > *,
.post-layout-1-area .post-author-meta > [class*="post-share"] > *,
.post-layout-1-area .post-author-meta > [class*="share-post"] > *,
.post-layout-1-area .post-author-meta > .post-share > *,
.post-layout-1-area .post-author-meta > .share-buttons > *,
.post-layout-1-area .post-author-meta > .post-social > * {
    margin: 0 !important;
    float: none !important;
}

/* Comments / read time — pill chips */
.post-layout-1-area .post-author-meta .meta-comments,
.post-layout-1-area .post-author-meta .read-time,
.post-layout-1-area .post-author-meta .meta-read-time,
.post-layout-1-area .post-author-meta .post-comment-count {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0d1626;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin: 0 !important;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(13, 22, 38, 0.04);
    transition: all 0.3s ease;
    line-height: 1;
}

.post-layout-1-area .post-author-meta .meta-comments:hover,
.post-layout-1-area .post-author-meta .read-time:hover,
.post-layout-1-area .post-author-meta .meta-read-time:hover,
.post-layout-1-area .post-author-meta .post-comment-count:hover {
    border-color: #d70017;
    color: #d70017;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(215, 0, 23, 0.12);
}

.post-layout-1-area .post-author-meta .meta-comments i,
.post-layout-1-area .post-author-meta .read-time i,
.post-layout-1-area .post-author-meta .meta-read-time i {
    color: #d70017;
    font-size: 11px;
}

/* Social icons */
.post-layout-1-area .post-author-meta ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.post-layout-1-area .post-author-meta ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-layout-1-area .post-author-meta ul li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d1626;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid #e6ebf2;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 22, 38, 0.05);
}

.post-layout-1-area .post-author-meta ul li a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(215, 0, 23, 0.95) 0%, rgba(165, 0, 18, 1) 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 50%;
}

.post-layout-1-area .post-author-meta ul li a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.post-layout-1-area .post-author-meta ul li a i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.post-layout-1-area .post-author-meta ul li a:hover {
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(215, 0, 23, 0.35);
}

/* =========================================================
   POST TEXT TYPOGRAPHY
   ========================================================= */
.post-layout-1-area .post-text {
    font-size: 17px;
    line-height: 1.85;
    color: #33404f;
    letter-spacing: 0.1px;
    margin-top: 26px;
    margin-bottom: 30px;
}

.post-layout-1-area .post-text > *:first-child { margin-top: 0; }
.post-layout-1-area .post-text > *:last-child  { margin-bottom: 0; }

.post-layout-1-area .post-text p {
    font-size: 17px;
    line-height: 1.85;
    color: #33404f;
    margin: 0 0 22px;
}

.post-layout-1-area .post-text > p:first-of-type::first-letter,
.post-layout-1-area .post-text > p:first-child::first-letter {
    float: left;
    font-size: 62px;
    line-height: 0.85;
    font-weight: 800;
    color: #d70017;
    margin: 6px 12px 0 0;
    padding: 3px 0;
}

.post-layout-1-area .post-text h2 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
    color: #0d1626;
    margin: 42px 0 18px;
    letter-spacing: -0.3px;
    padding-left: 16px;
    border-left: 4px solid #d70017;
}

.post-layout-1-area .post-text h3 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    color: #0d1626;
    margin: 32px 0 14px;
    letter-spacing: -0.2px;
}

.post-layout-1-area .post-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1626;
    margin: 26px 0 12px;
}

.post-layout-1-area .post-text h5,
.post-layout-1-area .post-text h6 {
    font-size: 16px;
    font-weight: 700;
    color: #0d1626;
    margin: 22px 0 10px;
}

.post-layout-1-area .post-text a {
    color: #d70017;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(215, 0, 23, 0.3);
    transition: all 0.25s ease;
}

.post-layout-1-area .post-text a:hover {
    color: #a50012;
    border-bottom-color: #a50012;
    background: rgba(215, 0, 23, 0.05);
}

.post-layout-1-area .post-text blockquote {
    position: relative;
    margin: 34px 0;
    padding: 24px 26px 24px 60px;
    background: #fef4f5;
    border-left: 4px solid #d70017;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    color: #0d1626;
    font-weight: 500;
}

.post-layout-1-area .post-text blockquote::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 20px;
    font-size: 56px;
    font-family: Georgia, serif;
    color: #d70017;
    line-height: 1;
    opacity: 0.35;
}

.post-layout-1-area .post-text blockquote p:last-child { margin-bottom: 0; }
.post-layout-1-area .post-text blockquote p {
    font-size: inherit;
    color: inherit;
    margin-bottom: 12px;
}

.post-layout-1-area .post-text ul,
.post-layout-1-area .post-text ol {
    margin: 0 0 22px;
    padding-left: 0;
    list-style: none;
}

.post-layout-1-area .post-text ul li,
.post-layout-1-area .post-text ol li {
    position: relative;
    padding: 6px 0 6px 34px;
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #33404f;
}

.post-layout-1-area .post-text ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d70017;
    box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.15);
}

.post-layout-1-area .post-text ol { counter-reset: pla-ol; }

.post-layout-1-area .post-text ol li::before {
    counter-increment: pla-ol;
    content: counter(pla-ol);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d70017;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.post-layout-1-area .post-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 22px 0;
    display: block;
    box-shadow: 0 8px 22px rgba(13, 22, 38, 0.08);
}

.post-layout-1-area .post-text figure { margin: 26px 0; }

.post-layout-1-area .post-text figcaption {
    font-size: 13px;
    color: #7a869c;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.post-layout-1-area .post-text hr {
    border: none;
    height: 1px;
    background: #e6ebf2;
    margin: 40px 0;
}

.post-layout-1-area .post-text code {
    background: #f4f7fa;
    color: #d70017;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.post-layout-1-area .post-text pre {
    background: #0d1626;
    color: #e6ebf2;
    padding: 22px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.7;
}

.post-layout-1-area .post-text pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-layout-1-area .post-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 22, 38, 0.06);
}

.post-layout-1-area .post-text table th {
    background: #0d1626;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.post-layout-1-area .post-text table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e6ebf2;
    font-size: 15px;
}

.post-layout-1-area .post-text table tr:nth-child(even) td {
    background: #f8fafc;
}

/* =========================================================
   TAGS
   ========================================================= */
.post-layout-1-area .post-tags {
    margin-top: 40px !important;
    padding-top: 28px;
    border-top: 1px solid #e6ebf2;
}

.post-layout-1-area .post-tags ul {
    gap: 8px !important;
    align-items: center;
    margin: 0;
    padding: 0;
}

.post-layout-1-area .post-tags ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-layout-1-area .post-tags ul li.fw-bold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #0d1626;
    font-weight: 800 !important;
    margin-right: 8px;
}

.post-layout-1-area .post-tags ul li.fw-bold i {
    color: #d70017;
    font-size: 11px;
}

.post-layout-1-area .tag-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    color: #0d1626;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-layout-1-area .tag-link:hover {
    background: #d70017;
    border-color: #d70017;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.3);
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
}

#readingProgress::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #d70017 0%, #ff3b52 50%, #a50012 100%);
    box-shadow: 0 0 10px rgba(215, 0, 23, 0.5);
    transform: scaleX(var(--pla-progress, 0));
    transform-origin: left center;
    transition: transform 0.1s linear;
}

/* =========================================================
   SAVE TOAST
   ========================================================= */
.save-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #0f7a3c 0%, #0a5c2d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(15, 122, 60, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
}

.save-toast.show,
.save-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.save-toast i { font-size: 15px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .post-layout-1-area { padding: 22px 0 60px; }

    .post-layout-1-area .post-thumb {
        aspect-ratio: 16 / 9;
        min-height: 320px;
    }

    .post-layout-1-area .post-thumb > .post-layout-top-content {
        padding: 32px 30px 32px;
    }

    .post-layout-1-area .post-thumb .title {
        font-size: 34px;
        max-width: 700px;
    }

    .post-layout-1-area .post-author-meta {
        padding: 14px 16px;
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    .post-layout-1-area { padding: 18px 0 44px; }

    .post-layout-1-area .post-thumb {
        aspect-ratio: 4 / 3;
        min-height: 280px;
        border-radius: 14px;
    }

    .post-layout-1-area .post-thumb > .post-layout-top-content {
        padding: 22px 20px 22px;
    }

    .post-layout-1-area .post-thumb .title {
        font-size: 22px;
        line-height: 1.25;
        letter-spacing: -0.3px;
    }

    .post-layout-1-area .post-thumb .title::before {
        width: 36px;
        height: 3px;
        margin-bottom: 14px;
    }

    /* Meta strip — stack */
    .post-layout-1-area .post-author-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
        border-radius: 12px;
        margin: 16px 0 22px !important;
    }

    .post-layout-1-area .post-author-meta .author-info {
        width: 100%;
        justify-content: flex-start;
    }

    .post-layout-1-area .post-author-meta > .post-social-share,
    .post-layout-1-area .post-author-meta > [class*="social-share"],
    .post-layout-1-area .post-author-meta > [class*="post-share"],
    .post-layout-1-area .post-author-meta > [class*="share-post"],
    .post-layout-1-area .post-author-meta > .post-share,
    .post-layout-1-area .post-author-meta > .share-buttons,
    .post-layout-1-area .post-author-meta > .post-social {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px dashed #e6ebf2;
    }

    .post-layout-1-area .post-author-meta .author-info img {
        width: 42px;
        height: 42px;
    }

    .post-layout-1-area .post-author-meta .author-info h5 { font-size: 13px; }
    .post-layout-1-area .post-author-meta .author-info small { font-size: 10.5px; }

    .post-layout-1-area .post-author-meta .meta-comments,
    .post-layout-1-area .post-author-meta .read-time,
    .post-layout-1-area .post-author-meta .meta-read-time,
    .post-layout-1-area .post-author-meta .post-comment-count {
        font-size: 11px;
        padding: 6px 10px;
    }

    .post-layout-1-area .post-text { font-size: 16px; line-height: 1.8; }
    .post-layout-1-area .post-text p { font-size: 16px; margin-bottom: 18px; }

    .post-layout-1-area .post-text > p:first-of-type::first-letter,
    .post-layout-1-area .post-text > p:first-child::first-letter {
        font-size: 50px;
        margin: 4px 10px 0 0;
    }

    .post-layout-1-area .post-text h2 { font-size: 21px; margin: 30px 0 14px; }
    .post-layout-1-area .post-text h3 { font-size: 18px; margin: 24px 0 12px; }

    .post-layout-1-area .post-text blockquote {
        padding: 18px 20px 18px 46px;
        font-size: 16px;
        margin: 24px 0;
    }

    .post-layout-1-area .post-text blockquote::before {
        font-size: 44px;
        left: 12px;
    }

    .post-layout-1-area .post-tags {
        margin-top: 30px !important;
        padding-top: 22px;
    }

    .post-layout-1-area .tag-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .post-layout-1-area { padding: 14px 0 36px; }

    .post-layout-1-area .post-thumb {
        min-height: 240px;
    }

    .post-layout-1-area .post-thumb > .post-layout-top-content {
        padding: 18px 16px 18px;
    }

    .post-layout-1-area .post-thumb .title {
        font-size: 19px;
    }

    .post-layout-1-area .post-thumb .title::before {
        width: 30px;
        height: 2px;
        margin-bottom: 12px;
    }

    .post-layout-1-area .post-author-meta .author-info img {
        width: 38px;
        height: 38px;
    }

    .post-layout-1-area .post-author-meta .author-info h5 { font-size: 12.5px; }
    .post-layout-1-area .post-author-meta .author-info small { font-size: 10px; }

    .post-layout-1-area .post-author-meta ul li a {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .post-layout-1-area .post-text { font-size: 15.5px; }
    .post-layout-1-area .post-text p { font-size: 15.5px; }

    .post-layout-1-area .post-text > p:first-of-type::first-letter,
    .post-layout-1-area .post-text > p:first-child::first-letter {
        font-size: 44px;
        margin: 3px 9px 0 0;
    }

    .post-layout-1-area .post-text h2 {
        font-size: 19px;
        padding-left: 12px;
        border-left-width: 3px;
    }

    .post-layout-1-area .post-text h3 { font-size: 17px; }

    .post-layout-1-area .post-text ul li,
    .post-layout-1-area .post-text ol li {
        font-size: 15.5px;
        padding-left: 28px;
    }

    .save-toast {
        bottom: 80px;
        font-size: 13px;
        padding: 10px 18px;
    }
}

/* =========================================================
   COMMENT FORM — Clean, Compact, Sober
   Button class: .ncmt-btn (new — no theme conflict)
   ========================================================= */

.post-form-area {
    padding: 30px 0 20px;
    background: #fff;
}

/* ---------- Form Card ---------- */
.post-form-area .comment-respond {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 26px 30px 28px;
    box-shadow: 0 4px 16px rgba(13, 22, 38, 0.04);
}

/* ---------- Title ---------- */
.post-form-area .comment-reply-title {
    font-size: 20px;
    font-weight: 800;
    color: #0d1626;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
    line-height: 1.3;
    position: relative;
    padding-left: 14px;
}

.post-form-area .comment-reply-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #d70017;
    border-radius: 2px;
}

.post-form-area .comment-reply-title small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 500;
    color: #7a869c;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* ---------- Notes / Logged-in text ---------- */
.post-form-area .logged-in-as,
.post-form-area .comment-notes {
    display: block;
    font-size: 12.5px;
    color: #7a869c;
    line-height: 1.5;
    margin: 10px 0 18px;
    padding: 0;
    border: none;
    letter-spacing: 0.2px;
}

.post-form-area .logged-in-as a {
    color: #d70017;
    text-decoration: none;
    font-weight: 600;
}

.post-form-area .logged-in-as a:hover {
    text-decoration: underline;
}

/* ---------- Form Grid ---------- */
.post-form-area .newsora-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}

/* ---------- Input Box ---------- */
.post-form-area .newsora-comment-form .input-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: span 2;
}

.post-form-area .newsora-comment-form .input-box.half {
    grid-column: span 1;
}

/* ---------- Labels ---------- */
.post-form-area .newsora-comment-form .input-box label {
    font-size: 11px;
    font-weight: 700;
    color: #0d1626;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.post-form-area .newsora-comment-form .input-box label .required {
    color: #d70017;
    font-size: 12px;
    margin-left: 2px;
}

/* ---------- Inputs & Textarea ---------- */
.post-form-area .newsora-comment-form .input-box input[type="text"],
.post-form-area .newsora-comment-form .input-box input[type="email"],
.post-form-area .newsora-comment-form .input-box textarea {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0d1626;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    resize: vertical;
}

.post-form-area .newsora-comment-form .input-box input[type="text"]::placeholder,
.post-form-area .newsora-comment-form .input-box input[type="email"]::placeholder,
.post-form-area .newsora-comment-form .input-box textarea::placeholder {
    color: #a8b0bd;
}

.post-form-area .newsora-comment-form .input-box input[type="text"]:focus,
.post-form-area .newsora-comment-form .input-box input[type="email"]:focus,
.post-form-area .newsora-comment-form .input-box textarea:focus {
    border-color: #d70017;
    box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.08);
}

.post-form-area .newsora-comment-form .input-box textarea {
    min-height: 110px;
    line-height: 1.65;
}

/* =========================================================
   SUBMIT BUTTON — New class: .ncmt-btn
   ========================================================= */
.post-form-area .ncmt-btn {
    grid-column: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #d70017;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
    margin-top: 2px;
    justify-self: start;
    min-width: 200px;
    min-height: 44px;
    outline: none;
}

.post-form-area .ncmt-btn:hover {
    background: #a50012;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.25);
    color: #fff;
}

.post-form-area .ncmt-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(215, 0, 23, 0.2);
}

.post-form-area .ncmt-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.2);
}

/* ---------- Cookie consent checkbox ---------- */
.post-form-area .comment-form-cookies-consent {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.post-form-area .comment-form-cookies-consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #d70017;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.post-form-area .comment-form-cookies-consent label {
    font-size: 12px;
    font-weight: 500;
    color: #7a869c;
    letter-spacing: 0.2px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    text-transform: none;
}

/* ---------- Comments list title ---------- */
.post-form-area .comments-title {
    font-size: 16px;
    font-weight: 800;
    color: #0d1626;
    margin: 0 0 14px;
    padding-left: 14px;
    position: relative;
    letter-spacing: -0.1px;
}

.post-form-area .comments-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: #d70017;
    border-radius: 2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .post-form-area {
        padding: 24px 0 16px;
    }

    .post-form-area .comment-respond {
        padding: 22px 24px 24px;
        border-radius: 12px;
    }

    .post-form-area .comment-reply-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .post-form-area {
        padding: 18px 0 12px;
    }

    .post-form-area .comment-respond {
        padding: 18px 16px 20px;
        border-radius: 10px;
    }

    .post-form-area .comment-reply-title {
        font-size: 16px;
    }

    .post-form-area .logged-in-as,
    .post-form-area .comment-notes {
        font-size: 12px;
        margin: 8px 0 14px;
    }

    /* Single column */
    .post-form-area .newsora-comment-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-form-area .newsora-comment-form .input-box.half {
        grid-column: span 1;
    }

    .post-form-area .newsora-comment-form .input-box input[type="text"],
    .post-form-area .newsora-comment-form .input-box input[type="email"],
    .post-form-area .newsora-comment-form .input-box textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .post-form-area .newsora-comment-form .input-box textarea {
        min-height: 100px;
    }

    .post-form-area .ncmt-btn {
        padding: 12px 24px;
        font-size: 12px;
        justify-self: stretch;
        min-width: 0;
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 575px) {
    .post-form-area {
        padding: 14px 0 10px;
    }

    .post-form-area .comment-respond {
        padding: 16px 14px 18px;
    }

    .post-form-area .comment-reply-title {
        font-size: 15px;
        padding-left: 12px;
    }

    .post-form-area .newsora-comment-form .input-box label {
        font-size: 10.5px;
    }

    .post-form-area .comment-form-cookies-consent label {
        font-size: 11.5px;
    }
}
/* =========================================================
   STICKY BOTTOM BAR — Modern Design
   ========================================================= */

.sticky-engagement-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9990;
    width: calc(100% - 40px);
    max-width: 760px;

    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 50px;
    padding: 8px 14px;

    box-shadow: 0 8px 28px rgba(13, 22, 38, 0.10),
                0 2px 8px rgba(13, 22, 38, 0.04);

    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Show state (add via JS) */
.sticky-engagement-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sticky-engagement-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d70017 0%, #a50012 100%);
    border-radius: 0 0 3px 3px;
}

/* ---------- Left: Share Buttons ---------- */
.sticky-engagement-bar .sticky-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e6ebf2;
    background: #f8fafc;
    color: #0d1626;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
    line-height: 1;
    position: relative;
    overflow: hidden;
    outline: none;
}

.sticky-engagement-bar .sticky-btn i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Hover state */
.sticky-engagement-bar .sticky-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(13, 22, 38, 0.18);
}

/* Brand colors on hover */
.sticky-engagement-bar .sticky-btn.fb:hover {
    background: #1877f2;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.35);
}
.sticky-engagement-bar .sticky-btn.tw:hover {
    background: #1da1f2;
    box-shadow: 0 8px 18px rgba(29, 161, 242, 0.35);
}
.sticky-engagement-bar .sticky-btn.wa:hover {
    background: #25d366;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}
.sticky-engagement-bar .sticky-btn.copy-link:hover {
    background: #d70017;
    box-shadow: 0 8px 18px rgba(215, 0, 23, 0.35);
}

/* Active/click state */
.sticky-engagement-bar .sticky-btn:active {
    transform: translateY(-1px) scale(0.96);
}

/* Copy success state */
.sticky-engagement-bar .sticky-btn.copy-link.copied {
    background: #16a34a;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

/* ---------- Right: Comment Button ---------- */
.sticky-engagement-bar .sticky-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #d70017 0%, #a50012 100%);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.30);
    position: relative;
    overflow: hidden;
    line-height: 1;
    white-space: nowrap;
}

/* Shine sweep */
.sticky-engagement-bar .sticky-comment-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0) 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sticky-engagement-bar .sticky-comment-btn i {
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.sticky-engagement-bar .sticky-comment-btn span {
    position: relative;
    z-index: 2;
}

.sticky-engagement-bar .sticky-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(215, 0, 23, 0.42);
    color: #ffffff;
}

.sticky-engagement-bar .sticky-comment-btn:hover::before {
    transform: translateX(0);
}

.sticky-engagement-bar .sticky-comment-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(215, 0, 23, 0.30);
}

/* Comment count badge */
.sticky-engagement-bar .sticky-comment-btn .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    margin-left: 2px;
    transition: background 0.3s ease;
    line-height: 1;
}

.sticky-engagement-bar .sticky-comment-btn:hover .count {
    background: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
    .sticky-engagement-bar {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 8px 10px;
        border-radius: 40px;
    }

    .sticky-engagement-bar .sticky-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .sticky-engagement-bar .sticky-comment-btn {
        padding: 9px 14px;
        font-size: 11px;
        letter-spacing: 0.8px;
        gap: 6px;
    }

    .sticky-engagement-bar .sticky-comment-btn .count {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    /* Hide "Comment" text, show only icon + count on mobile */
    .sticky-engagement-bar .sticky-comment-btn > span:not(.count) {
        display: none;
    }
}

@media (max-width: 400px) {
    .sticky-engagement-bar {
        padding: 6px 8px;
        gap: 0;
    }

    .sticky-engagement-bar .sticky-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .sticky-engagement-bar .sticky-comment-btn {
        padding: 8px 12px;
        font-size: 10.5px;
    }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .sticky-engagement-bar {
        display: none !important;
    }
}
/* =========================================================
   POST NAVIGATION — Prev / Next Cards
   ========================================================= */
.post-layout-1-area .post-navigation,
.post-navigation {
    margin-top: 48px !important;
    padding-top: 32px !important;
    border-top: 1px solid #e6ebf2 !important;
}

/* ---------- Card Base ---------- */
.post-navigation .nav-post {
    display: block;
    width: 100%;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fbfcfe 0%, #f4f7fb 100%);
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 100px;
}

/* Red left bar (Prev) / right bar (Next) */
.post-navigation .nav-post::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, #d70017 0%, #a50012 100%);
    border-radius: 2px;
    transform: scaleY(0.35);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-navigation .nav-post.prev::before {
    left: 0;
    border-radius: 0 2px 2px 0;
}
.post-navigation .nav-post.next::before {
    right: 0;
    border-radius: 2px 0 0 2px;
}

/* Hover lift + shadow */
.post-navigation .nav-post:hover {
    background: #ffffff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(215, 0, 23, 0.14),
                0 4px 10px rgba(13, 22, 38, 0.05);
}
.post-navigation .nav-post:hover::before {
    transform: scaleY(1);
}

/* ---------- Label ---------- */
.post-navigation .nav-post .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d70017;
    margin-bottom: 10px;
    transition: gap 0.3s ease;
}
.post-navigation .nav-post .nav-label i {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Arrow slide on hover */
.post-navigation .nav-post.prev:hover .nav-label i {
    transform: translateX(-3px);
}
.post-navigation .nav-post.next:hover .nav-label i {
    transform: translateX(3px);
}

/* ---------- Title ---------- */
.post-navigation .nav-post h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #0d1626;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}
.post-navigation .nav-post:hover h5 {
    color: #d70017;
}

/* ---------- Next card align right ---------- */
.post-navigation .nav-post.next {
    text-align: right;
}
.post-navigation .nav-post.next .nav-label {
    flex-direction: row-reverse;
}

/* ---------- Disabled state (when no prev/next) ---------- */
.post-navigation .col-md-6:empty,
.post-navigation .col-md-6:not(:has(.nav-post)) {
    /* no card shown, keeps grid balance */
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
    .post-navigation {
        margin-top: 36px !important;
        padding-top: 24px !important;
    }

    .post-navigation .nav-post {
        padding: 16px 18px;
        min-height: auto;
    }

    .post-navigation .nav-post h5 {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .post-navigation .nav-post .nav-label {
        font-size: 10px;
        letter-spacing: 1.2px;
        margin-bottom: 8px;
    }

    .post-navigation .nav-post.next {
        text-align: left;
    }
    .post-navigation .nav-post.next .nav-label {
        flex-direction: row;
    }
    .post-navigation .nav-post.next::before {
        right: auto;
        left: 0;
        border-radius: 0 2px 2px 0;
    }
}

@media (max-width: 575px) {
    .post-navigation .nav-post h5 {
        font-size: 13.5px;
    }
}

/* =========================================================
   POST AUTHOR META STRIP — Clean Modern
   Classes used:
   .post-author-meta  →  wrapper
   .author-info       →  avatar + name + date
   .post-image-share-row → right side (comments + share)
   .post-image-meta   →  comments + read time
   .post-meta-item    →  each item
   .post-share-buttons → share buttons wrapper
   .ptm-btn           → share button (base)
   .ptm-fb / .ptm-tw / .ptm-wa / .ptm-copy → variants
   ========================================================= */

/* ---------- Wrapper ---------- */
.post-author-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin: 20px 0 28px !important;
    background: linear-gradient(135deg, #fbfcfe 0%, #f4f7fb 100%);
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(13, 22, 38, 0.04);
    position: relative;
    transition: all 0.3s ease;
}

/* Red accent corner */
.post-author-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d70017 0%, #a50012 100%);
    border-radius: 0 0 3px 0;
}

.post-author-meta:hover {
    border-color: #d70017;
    box-shadow: 0 8px 24px rgba(215, 0, 23, 0.08);
}

/* =========================================================
   LEFT — Author Info
   ========================================================= */
.post-author-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(13, 22, 38, 0.06);
    flex-shrink: 0;
    transition: all 0.3s ease;
    min-width: 0;
}

.post-author-meta:hover .author-info {
    box-shadow: 0 4px 16px rgba(13, 22, 38, 0.10);
}

/* Avatar */
.post-author-meta .author-info img,
.post-author-meta .author-info .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #d70017,
                0 4px 12px rgba(215, 0, 23, 0.15);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-author-meta:hover .author-info img,
.post-author-meta:hover .author-info .avatar {
    transform: scale(1.06) rotate(-4deg);
}

/* Name + Date block */
.post-author-meta .author-info .ms-3 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-author-meta .author-info h5 {
    font-size: 14px;
    font-weight: 800;
    color: #0d1626;
    letter-spacing: 0.2px;
    margin: 0 !important;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified badge after name */
.post-author-meta .author-info h5::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d70017'><path d='M12 2l2.4 3.6 4.1-.6.9 4 3.7 1.9-2.1 3.6 1.2 4-3.9 1.6-2 3.5-3.9-1.6-3.9 1.6-2-3.5L1.8 18l1.2-4L1 10.4l3.7-1.9.9-4 4.1.6L12 2zm-1.3 14.6l5-5-1.4-1.4-3.6 3.6-1.6-1.6-1.4 1.4 3 3z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Date */
.post-author-meta .author-info small {
    font-size: 11.5px;
    font-weight: 500;
    color: #7a869c;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.post-author-meta .author-info small::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d70017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
    flex-shrink: 0;
}

/* =========================================================
   RIGHT — Comments + Read Time + Share Buttons
   ========================================================= */
.post-author-meta .post-image-share-row {
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

/* ---------- Comments + Read Time ---------- */
.post-author-meta .post-image-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.post-author-meta .post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #0d1626;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.post-author-meta .post-meta-item i {
    color: #d70017;
    font-size: 11px;
    line-height: 1;
}

.post-author-meta .post-meta-item:hover {
    border-color: #d70017;
    color: #d70017;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(215, 0, 23, 0.12);
}

/* ---------- Share Buttons ---------- */
.post-author-meta .post-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.post-author-meta .ptm-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    color: #0d1626;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 22, 38, 0.05);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.post-author-meta .ptm-btn i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Red fill effect on hover */
.post-author-meta .ptm-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d70017 0%, #a50012 100%);
    opacity: 0;
    transform: scale(0);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-author-meta .ptm-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.post-author-meta .ptm-btn:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(215, 0, 23, 0.35);
}

.post-author-meta .ptm-btn:active {
    transform: translateY(-1px) scale(1);
}

.post-author-meta .ptm-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.2);
}

/* Copy success state */
.post-author-meta .ptm-btn.copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.post-author-meta .ptm-btn.copied::before {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .post-author-meta {
        padding: 14px 16px;
        gap: 14px;
    }

    .post-author-meta .author-info img,
    .post-author-meta .author-info .avatar {
        width: 42px;
        height: 42px;
    }

    .post-author-meta .author-info h5 {
        font-size: 13px;
    }

    .post-author-meta .ptm-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .post-author-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
        border-radius: 12px;
    }

    .post-author-meta .author-info {
        width: 100%;
    }

    /* Right side becomes full-width flex */
    .post-author-meta .post-image-share-row {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px dashed #e6ebf2;
        gap: 10px;
    }

    .post-author-meta .author-info img,
    .post-author-meta .author-info .avatar {
        width: 40px;
        height: 40px;
    }

    .post-author-meta .post-meta-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    .post-author-meta .ptm-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .post-author-meta {
        padding: 12px;
    }

    .post-author-meta .author-info {
        padding: 5px 12px 5px 5px;
    }

    .post-author-meta .author-info img,
    .post-author-meta .author-info .avatar {
        width: 36px;
        height: 36px;
    }

    .post-author-meta .author-info h5 {
        font-size: 12.5px;
    }

    .post-author-meta .author-info small {
        font-size: 10.5px;
    }

    .post-author-meta .post-meta-item {
        padding: 5px 9px;
        font-size: 10.5px;
        gap: 5px;
    }

    .post-author-meta .post-meta-item i {
        font-size: 10px;
    }

    .post-author-meta .ptm-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .post-author-meta .post-share-buttons {
        gap: 6px;
    }
}
