/* ==============================================================
   POST PAGE SPECIFIC STYLES (post-style.css)
   ============================================================== */
html {
    scroll-behavior: smooth;
    overflow-x: clip !important;
}
body {
    overflow-x: clip !important;
}

.breadcrumb-nav {
    background: #ffffff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin: 0 auto 20px auto; font-weight: 600; font-size: 0.88rem; max-width: 1450px; border: 1px solid #f1f5f9;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.breadcrumb-nav a { color: #0d6efd; text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }

/* 2-COLUMN LAYOUT FOR LEFT TOC SIDEBAR + POST CONTENT */
.ls-post-layout-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* FIXED / STICKY LEFT SIDEBAR TABLE OF CONTENTS */
.ls-toc-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    z-index: 50;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.ls-toc-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding: 0 6px 10px 6px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ls-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ls-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.35;
}
.ls-toc-link:hover {
    background: #f1f5f9;
    color: #0d6efd;
    transform: translateX(2px);
}
.ls-toc-link.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-left-color: #2563eb;
    font-weight: 700;
}
.ls-toc-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.ib-blue   { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.ib-green  { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.ib-purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; }
.ib-orange { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.ib-teal   { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.ib-indigo { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.ib-gold   { background: rgba(217, 119, 6, 0.14); color: #b45309; }

.post-card {
    background: #ffffff; border-radius: 20px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0; margin-bottom: 30px; transition: background-color 0.35s ease, border-color 0.35s ease; min-width: 0;
}

.ls-post-sec {
    scroll-margin-top: 95px;
}

h1.post-title-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 1.85rem !important;
    line-height: 1.38 !important;
    text-align: center !important;
    margin: 0 auto 20px auto !important;
    padding: 0 10px !important;
    word-wrap: break-word;
}

.featured-img-box {
    width: 75%; margin: 14px auto 25px auto; background: #fff; border-radius: 12px;
    overflow: hidden; border: 1px solid #eaeaea; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.featured-img-box img {
    width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; background: #f8f9fa;
}

.about-org-box {
    background: #f0f7ff; border-left: 5px solid #0d6efd; padding: 15px 20px;
    border-radius: 8px; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6; color: #333;
}
.about-org-box h2 { color: #084298; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }

/* GET INSTANT ALERTS BOX */
.official-community-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.community-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alerts-btn-group {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.community-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.community-pill:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    color: #ffffff !important;
}
.pill-wa { background: #25D366; }
.pill-tg { background: #0088cc; }
.pill-li { background: #0a66c2; }

.google-pref-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #f59e0b;
    padding: 7px 16px 7px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #78350f !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.18);
}
.google-pref-pill .brand-highlight {
    font-weight: 800;
    color: #b45309;
}
.google-pref-pill .g-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.google-pref-pill:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
    color: #451a03 !important;
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
}
.share-text {
    font-weight: 700;
    color: #334155;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin-right: 4px;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
}
.btn-share:hover {
    transform: translateY(-2px);
    color: #fff;
}
.bg-whatsapp { background-color: #25D366; }
.bg-telegram { background-color: #0088cc; }
.bg-linkedin { background-color: #0a66c2; }
.bg-copy { background-color: #475569; border: none; cursor: pointer; }

/* WHATSAPP 3D FLIP CARD */
.sidebar-wa-flip-scene {
    perspective: 1200px;
    -webkit-perspective: 1200px;
    margin-bottom: 24px;
    width: 100%;
}
.sidebar-wa-flip-inner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: "cardSlot";
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) {
    .sidebar-wa-flip-scene:hover .sidebar-wa-flip-inner {
        transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
    }
}
.sidebar-wa-flip-scene.is-flipped .sidebar-wa-flip-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.sidebar-wa-card {
    grid-area: cardSlot;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.12);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}
.sidebar-wa-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    z-index: 2;
}
.sidebar-wa-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background: #0b141a;
    border: 1.5px solid #1f2c34;
    padding: 18px 14px 14px 14px;
    color: #ffffff;
}
.sidebar-wa-flip-scene:hover .sidebar-wa-front,
.sidebar-wa-flip-scene.is-flipped .sidebar-wa-front {
    pointer-events: none;
}

.sidebar-wa-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.wa-brand-banner {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.08));
}
.sidebar-wa-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 6px;
}
.sidebar-wa-desc {
    font-size: 0.82rem;
    color: #047857;
    line-height: 1.5;
    margin-bottom: 16px;
}
.sidebar-wa-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.sidebar-wa-icons-row span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-size: 1.05rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}
.sidebar-wa-icons-row span:hover {
    transform: scale(1.1);
}
.btn-sidebar-wa-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    width: 100%;
}
.btn-sidebar-wa-join:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}
.wa-flip-hint {
    font-size: 0.72rem;
    font-weight: 600;
    color: #047857;
    margin-top: 10px;
    opacity: 0.88;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Back Panel QR Card Design */
.wa-qr-white-box {
    background: #ffffff !important;
    border-radius: 14px;
    padding: 24px 12px 12px 12px;
    width: 100%;
    max-width: 235px;
    margin: 14px auto 10px auto;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    text-align: center;
}
.wa-qr-top-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0b141a;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    overflow: hidden;
    padding: 3px;
}
.wa-qr-top-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.wa-qr-channel-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #111b21 !important;
    margin: 0 0 1px 0;
    line-height: 1.25;
}
.wa-qr-channel-sub {
    font-size: 0.72rem;
    color: #667781 !important;
    margin-bottom: 8px;
    font-weight: 500;
}
.wa-qr-code-box {
    width: 156px;
    height: 156px;
    margin: 0 auto;
    position: relative;
    background: #ffffff !important;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-qr-code-box svg,
.wa-qr-code-box img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    shape-rendering: crispEdges;
    image-rendering: pixelated;
}
.wa-qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: none;
}
.wa-qr-center-logo i {
    color: #000000;
    font-size: 20px;
    line-height: 1;
}
.wa-qr-scan-caption {
    font-size: 0.72rem;
    color: #8696a0 !important;
    line-height: 1.35;
    margin-bottom: 10px;
    padding: 0 4px;
    font-weight: 500;
}
.btn-wa-qr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #25D366;
    color: #0b141a !important;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none !important;
    width: 100%;
    max-width: 235px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}
.btn-wa-qr-action:hover {
    background: #22c35e;
    transform: translateY(-2px);
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    padding: 12px 15px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-start;
    font-size: 0.95rem; line-height: 1.6;
}
.info-list li:hover { background-color: #fcfcfc; }
.info-list li i { color: #198754; font-size: 1.2rem; margin-right: 12px; margin-top: 4px; flex-shrink: 0; }
.info-label { font-weight: 700; color: #222; min-width: 180px; display: inline-block; }

.details-box-custom {
    background: #fff9e6;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    scroll-margin-top: 95px;
}
.details-box-custom h2 {
    font-weight: 700;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    font-size: 1.25rem;
}

.links-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 25px;
    scroll-margin-top: 95px;
}
.links-header { background: #212529; color: #fff; padding: 15px; text-align: center; font-weight: 700; font-size: 1.3rem; }
.link-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; transition: all 0.2s ease; }
.link-row:last-child { border-bottom: none; }
.link-row:hover { background-color: #f8f9fa; padding-left: 25px; }
.link-title { font-weight: 600; color: #333; font-size: 1rem; }

.btn-action-apply {
    background-color: #198754; color: #ffffff !important; border: none;
    padding: 8px 22px; border-radius: 20px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 3px 10px rgba(25, 135, 84, 0.2);
}
.btn-action-apply:hover { background-color: #146c43; transform: scale(1.05); color: #ffffff !important; }

.btn-action-download {
    background-color: #0d6efd; color: #ffffff !important; border: none;
    padding: 8px 22px; border-radius: 20px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
}
.btn-action-download:hover { background-color: #0b5ed7; transform: scale(1.05); color: #ffffff !important; }

.btn-expired { border: 2px solid #dc3545; color: #dc3545; background: transparent; border-radius: 20px; padding: 6px 18px; font-weight: 700; cursor: not-allowed; opacity: 0.8; pointer-events: none; font-size: 0.95rem; }

.post-navigation { border-top: 2px solid #f0f0f0; padding-top: 35px; }
.post-navigation .nav-link-box {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 25px; background: #ffffff; border: 1px solid #eaeaea; border-radius: 16px;
    text-decoration: none; transition: all 0.3s ease; height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); position: relative; overflow: hidden;
}
.post-navigation .nav-link-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: #0d6efd; transform: scaleY(0); transition: transform 0.3s ease;
}
.post-navigation .next-post::before { left: auto; right: 0; }
.post-navigation .nav-link-box:hover::before { transform: scaleY(1); }
.post-navigation .nav-link-box:hover {
    background: #f8fbff; border-color: #cfe2ff; transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.08);
}
.post-navigation .nav-label { font-size: 0.65rem; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.post-navigation .nav-title { font-size: 0.85rem; font-weight: 600; color: #212529; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-navigation .prev-post { align-items: flex-start; text-align: left; }
.post-navigation .next-post { align-items: flex-end; text-align: right; }

.author-box-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
    margin-top: 35px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.author-heading-text {
    font-size: 0.85rem; font-weight: 700; color: #64748b; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px dashed #e2e8f0; padding-bottom: 8px;
}
.author-profile-body { display: flex; align-items: center; gap: 20px; }
.author-avatar-wrapper {
    width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 3px solid #0d6efd; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.author-info { flex-grow: 1; }
.author-name {
    font-size: 1.25rem; font-weight: 700; color: #1e293b; margin: 0 0 4px 0;
    display: flex; align-items: center; gap: 8px;
}
.author-bio { font-size: 0.92rem; color: #475569; line-height: 1.6; margin: 0; }

.post-publish-meta {
    margin-top: 30px; padding-top: 15px; border-top: 2px dashed #e0e0e0; font-size: 0.85rem; color: #6c757d;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center;
}

.promo-widget-box {
    background-color: transparent;
    border: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    text-align: center;
    margin: 22px auto;
    padding: 0;
    clear: both;
}
.promo-unit-standard {
    width: 100%;
    max-width: 728px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.promo-unit-sidebar {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-sticky-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 5;
}
.sidebar-widget-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 24px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.sidebar-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-posts-scroll-window {
    max-height: 465px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}
.top-posts-scroll-window::-webkit-scrollbar {
    display: none;
}
.top-posts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.top-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: #f8fafc;
}
.top-post-item:hover {
    background: #f0f7ff;
    border-color: #cfe2ff;
    transform: translateX(4px);
}
.top-post-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.top-post-item:nth-child(1) .top-post-rank { background: linear-gradient(135deg, #f59e0b, #d97706); }
.top-post-item:nth-child(2) .top-post-rank { background: linear-gradient(135deg, #64748b, #475569); }
.top-post-item:nth-child(3) .top-post-rank { background: linear-gradient(135deg, #b45309, #92400e); }
.top-post-info {
    flex-grow: 1;
    min-width: 0;
}
.top-post-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top-post-item:hover .top-post-title {
    color: #0d6efd;
}
.top-post-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.top-post-cat {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}
.top-post-deadline {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.top-post-deadline.expired {
    background: #f1f5f9;
    color: #64748b;
}

/* --- MODERN & COLORFUL RELATED POSTS STYLING --- */
.related-posts-wrapper {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #ffedd5 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08);
}
.related-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed rgba(180, 83, 9, 0.25);
    padding-bottom: 10px;
}
.related-subtitle {
    font-size: 0.88rem;
    color: #78350f;
    margin-bottom: 18px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.related-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.4);
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.related-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.related-card-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}
.related-card-item:hover::before {
    opacity: 1;
}
.related-post-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.related-card-item:hover .related-post-title {
    color: #d97706;
}
.related-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}
.related-cat-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    color: #b45309;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.related-read-more {
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

/* DARK MODE OVERRIDES FOR POST PAGE */
html.dark-mode .breadcrumb-nav,
html.dark-mode .post-card,
html.dark-mode .sidebar-widget-card,
html.dark-mode .ls-toc-sidebar {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.dark-mode .ls-toc-title {
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}
html.dark-mode .ls-toc-link {
    color: #cbd5e1 !important;
}
html.dark-mode .ls-toc-link:hover {
    background: #0f172a !important;
    color: #60a5fa !important;
}
html.dark-mode .ls-toc-link.active {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
    border-left-color: #3b82f6 !important;
}
html.dark-mode .breadcrumb-current { color: #cbd5e1 !important; }
html.dark-mode h1.post-title-main { color: #f8fafc !important; }
html.dark-mode .featured-img-box { background: #0f172a; border-color: #334155; }
html.dark-mode .featured-img-box img { background: #0f172a; }
html.dark-mode .about-org-box {
    background: rgba(13, 110, 253, 0.12) !important;
    color: #e2e8f0 !important;
    border-left-color: #3b82f6 !important;
}
html.dark-mode .about-org-box h2 { color: #60a5fa !important; }
html.dark-mode .official-community-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-color: #334155 !important;
}
html.dark-mode .community-text { color: #f8fafc !important; }
html.dark-mode .google-pref-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.25) 100%) !important;
    border-color: #f59e0b !important;
    color: #fef3c7 !important;
}
html.dark-mode .google-pref-pill .brand-highlight {
    color: #fbbf24 !important;
}
html.dark-mode .sidebar-wa-front {
    background: linear-gradient(145deg, rgba(22, 101, 52, 0.25) 0%, rgba(20, 83, 45, 0.4) 100%) !important;
    border-color: #22c55e !important;
}
html.dark-mode .sidebar-wa-title { color: #4ade80 !important; }
html.dark-mode .sidebar-wa-desc,
html.dark-mode .wa-flip-hint { color: #bbf7d0 !important; }
html.dark-mode .sidebar-wa-icons-row span { background: #1e293b !important; }
html.dark-mode .share-section { background: #0f172a !important; border-color: #334155 !important; }
html.dark-mode .share-text { color: #e2e8f0 !important; }
html.dark-mode .details-box-custom {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #e2e8f0 !important;
}
html.dark-mode .details-box-custom h2 { color: #fbbf24 !important; border-bottom-color: #334155 !important; }
html.dark-mode .info-list li { border-bottom-color: #334155 !important; color: #e2e8f0 !important; }
html.dark-mode .info-list li:hover { background-color: rgba(255,255,255,0.03) !important; }
html.dark-mode .info-label { color: #f8fafc !important; }
html.dark-mode .links-container { background: #0f172a !important; border-color: #334155 !important; }
html.dark-mode .link-row { border-bottom-color: #334155 !important; }
html.dark-mode .link-row:hover { background-color: #1e293b !important; }
html.dark-mode .link-title { color: #f8fafc !important; }
html.dark-mode .post-navigation { border-top-color: #334155 !important; }
html.dark-mode .post-navigation .nav-link-box { background: #0f172a !important; border-color: #334155 !important; }
html.dark-mode .post-navigation .nav-link-box:hover { background: #1e293b !important; border-color: #3b82f6 !important; }
html.dark-mode .post-navigation .nav-title { color: #f8fafc !important; }
html.dark-mode .post-navigation .nav-label { color: #94a3b8 !important; }
html.dark-mode .author-box-card { background: #0f172a !important; border-color: #334155 !important; }
html.dark-mode .author-heading-text { border-bottom-color: #334155 !important; color: #94a3b8 !important; }
html.dark-mode .author-name { color: #f8fafc !important; }
html.dark-mode .author-bio { color: #cbd5e1 !important; }
html.dark-mode .post-publish-meta { border-top-color: #334155 !important; color: #94a3b8 !important; }
html.dark-mode .sidebar-widget-title { color: #f8fafc !important; border-bottom-color: #334155 !important; }
html.dark-mode .top-post-item { background: #0f172a !important; }
html.dark-mode .top-post-item:hover { background: rgba(59, 130, 246, 0.12) !important; border-color: #3b82f6 !important; }
html.dark-mode .top-post-title { color: #f8fafc !important; }
html.dark-mode .top-post-cat { background: #334155 !important; color: #cbd5e1 !important; }
html.dark-mode .top-post-deadline { background: rgba(220, 38, 38, 0.2) !important; color: #f87171 !important; }
html.dark-mode .top-post-deadline.expired { background: #1e293b !important; color: #94a3b8 !important; }

/* Dark Mode for Related Posts Block */
html.dark-mode .related-posts-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}
html.dark-mode .related-header-title { color: #fbbf24 !important; border-bottom-color: #334155 !important; }
html.dark-mode .related-subtitle { color: #cbd5e1 !important; }
html.dark-mode .related-card-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}
html.dark-mode .related-card-item:hover {
    background: #1e293b !important;
    border-color: #f59e0b !important;
}
html.dark-mode .related-post-title { color: #f8fafc !important; }
html.dark-mode .related-card-item:hover .related-post-title { color: #fbbf24 !important; }
html.dark-mode .related-cat-badge { background: rgba(245, 158, 11, 0.2) !important; color: #fcd34d !important; }
html.dark-mode .related-read-more { color: #60a5fa !important; }

@media (max-width: 991px) {
    .ls-post-layout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ls-toc-sidebar {
        position: static;
        max-height: none;
        padding: 14px;
        border-radius: 14px;
    }
    .ls-toc-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .ls-toc-link {
        border-left: none;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 0.78rem;
    }
    html.dark-mode .ls-toc-link {
        background: #0f172a !important;
        border-color: #334155 !important;
    }
    .sidebar-sticky-wrap { position: static; margin-top: 10px; }
    .promo-unit-standard, .promo-unit-sidebar { max-width: 100%; }
}

@media (max-width: 768px) {
    .post-card { padding: 18px; }
    h1.post-title-main { font-size: 1.38rem !important; }
    .ls-toc-list { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    
    .official-community-box {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }
    .community-text {
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
    }
    .alerts-btn-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    .alerts-btn-group .community-pill {
        width: 100%;
        padding: 9px 6px;
        font-size: 0.76rem;
        border-radius: 12px;
        gap: 5px;
        text-align: center;
    }
    .alerts-btn-group .google-pref-pill {
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px 14px;
        font-size: 0.84rem;
        justify-content: center;
        margin-top: 2px;
    }

    .share-section {
        justify-content: center;
        padding: 12px;
        border-radius: 16px;
    }
    .btn-share { padding: 6px 12px; font-size: 0.78rem; }
    
    .link-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .info-list li { flex-direction: row !important; align-items: flex-start !important; padding: 10px 12px !important; font-size: 0.9rem !important; line-height: 1.5 !important; }
    .info-list li i { font-size: 1.1rem !important; margin-right: 10px !important; margin-top: 2px !important; }
    .info-label { min-width: auto !important; display: inline !important; margin-right: 5px !important; }
    .author-profile-body { flex-direction: column; text-align: center; gap: 14px; }
    .author-name { justify-content: center; }
    .post-publish-meta { flex-direction: column; text-align: center; justify-content: center; }
    .featured-img-box { width: 100%; border-radius: 8px; }
}

@media (max-width: 400px) {
    .alerts-btn-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .alerts-btn-group .pill-li {
        grid-column: 1 / -1;
    }
}