/* Blog Detail Page - Premium UI/UX Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --blog-primary: #2563eb;
    --blog-text-main: #1e293b;
    --blog-text-muted: #64748b;
    --blog-bg: #f8fafc;
    --blog-card-bg: #ffffff;
    --blog-border: #e2e8f0;
    --blog-radius-lg: 20px;
    --blog-radius-md: 12px;
    --blog-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.blog-detail-page {
    background-color: var(--blog-bg);
    font-family: 'Inter', sans-serif;
    padding: 40px 0 80px;
    color: var(--blog-text-main);
    width: 100%;
}

.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.blog-main { min-width: 0; flex: 1; }
.blog-side {
    width: 100%;
    display: grid;
    gap: 24px;
}
.blog-side-stack {
    display: grid;
    gap: 24px;
}
.blog-side-sticky {
    align-self: start;
}

/* Main Card */
.blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);
    padding: 30px;
    box-shadow: var(--blog-shadow);
    margin-bottom: 30px;
    max-width: 100%;
}

/* Breadcrumb */
.blog-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: var(--blog-text-muted);
    margin-bottom: 20px;
}
.blog-breadcrumb a { color: var(--blog-primary); text-decoration: none; }
.blog-breadcrumb span { margin: 0 8px; color: #cbd5e1; }

.blog-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 24px !important;
    letter-spacing: -0.025em;
    text-align: left !important;
}

/* Author Box & Meta */
.blog-author-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    margin-bottom: 24px;
}
.blog-author-main { display: flex; align-items: center; gap: 15px; }
.blog-author-avatar, .blog-author-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #475569;
    font-size: 18px;
    flex-shrink: 0;
}
.blog-author-text { display: flex; flex-direction: column; gap: 2px; }
.blog-author-name { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.blog-author-role { font-size: 13px; color: var(--blog-text-muted); font-weight: 500; }
.blog-author-meta-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.blog-meta-pill { font-size: 11px; font-weight: 600; color: var(--blog-text-muted); }

.blog-follow-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--blog-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border: 0;
    cursor: pointer;
}
.blog-follow-btn.is-disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: default;
}

/* Post Actions (Like & Share) */
.blog-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    margin: 24px 0;
}
.blog-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.blog-like-btn:hover { border-color: #f43f5e; color: #f43f5e; background: #fff1f2; }
.blog-like-btn.is-active { background: #f43f5e; color: #fff; border-color: #f43f5e; }
.blog-like-emoji { font-size: 16px; }
.blog-like-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    margin-left: 4px;
}
.blog-like-btn.is-active .blog-like-count { background: rgba(255,255,255,0.2); color: #fff; }

.blog-share-group { display: flex; align-items: center; gap: 12px; }
.blog-share-label { font-size: 13px; font-weight: 700; color: var(--blog-text-muted); margin-right: 4px; }
.blog-share-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0;
    text-decoration: none;
    transition: all 0.23s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-share-link:hover { transform: translateY(-3px); }
.blog-share-link::before { font-size: 15px; font-weight: 800; }
.blog-share-link[href*="facebook"]::before { content: "F"; }
.blog-share-link[href*="twitter"]::before { content: "X"; }
.blog-share-link[href*="wa.me"]::before { content: "W"; }
.blog-share-link[href*="facebook.com"] {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.18);
}
.blog-share-link[href*="facebook.com"]:hover {
    background: #1669d9;
    border-color: #1669d9;
    color: #fff;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.28);
}
.blog-share-link[href*="twitter.com"] {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}
.blog-share-link[href*="twitter.com"]:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.28);
}
.blog-share-link[href*="wa.me"] {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.blog-share-link[href*="wa.me"]:hover {
    background: #1fba59;
    border-color: #1fba59;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.blog-share-copy {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
    margin-left: 5px;
}
.blog-share-copy:hover { background: #fff; border-color: var(--blog-primary); color: var(--blog-primary); }

.blog-toc {
    margin: 0;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
}
.blog-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.blog-toc-title {
    margin: 0 !important;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 18px !important;
    color: #0f172a;
    font-weight: 800;
}
.blog-toc-title::after {
    display: none;
}
.blog-toc-count {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.blog-toc-list {
    display: grid;
    gap: 10px;
}
.blog-toc-link {
    display: block;
    text-decoration: none;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}
.blog-toc-link.is-sub {
    padding-left: 16px;
    color: #334155;
    font-weight: 600;
}
.blog-toc-link:hover {
    color: var(--blog-primary);
}

.blog-mobile-toc-toggle,
.blog-mobile-toc-overlay,
.blog-mobile-toc-drawer {
    display: none;
}

/* Content Spacing & Elements */
.blog-content {
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    text-align: left !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.blog-content p { margin-bottom: 12px !important; }
.blog-content h2 { font-size: 26px !important; color: #0f172a; font-weight: 800; line-height: 1.3; margin: 24px 0 12px !important; }
.blog-content h3 { font-size: 21px !important; color: #1e293b; font-weight: 700; line-height: 1.3; margin: 20px 0 10px !important; }

/* Image scaling */
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 15px 0; }
.blog-content figure { margin: 18px 0; }
.blog-content iframe { max-width: 100%; }

/* Premium Table Styling */
.blog-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
}

.blog-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: table;
}

.blog-content thead th, .blog-content th {
    background: #1e3a8a;
    color: #fff;
    font-weight: 700;
    padding: 18px 20px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.blog-content td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    color: #334155;
    line-height: 1.5;
}

.blog-content th,
.blog-content td {
    min-width: 140px;
}

.blog-content tr:last-child td { border-bottom: none; }
.blog-content tr:nth-child(even) { background: #f8fafc; }

.blog-content td a {
    color: var(--blog-primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Mobile Responsive Table */
@media (max-width: 640px) {
    .blog-table-wrap {
        margin: 24px 0;
    }

    .blog-content table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        border-radius: 14px;
    }

    .blog-content thead,
    .blog-content tbody,
    .blog-content tr,
    .blog-content th,
    .blog-content td {
        display: table-cell;
    }

    .blog-content thead {
        display: table-header-group;
    }

    .blog-content tbody {
        display: table-row-group;
    }

    .blog-content tr {
        display: table-row;
        background: transparent !important;
    }

    .blog-content th,
    .blog-content td {
        padding: 12px 14px;
        font-size: 14px;
        text-align: left;
        vertical-align: top;
        white-space: normal;
    }

    .blog-content thead th {
        white-space: nowrap;
    }
}

/* List Styling */
.blog-content ul {
    margin: 15px 0 15px 25px;
    padding: 0;
    list-style-type: disc !important;
}
.blog-content ol {
    margin: 15px 0 15px 25px;
    padding: 0;
    list-style-type: decimal !important;
}
.blog-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.blog-content li p { margin-bottom: 0px !important; }

.blog-feature-image {
    width: 100%;
    border-radius: var(--blog-radius-md);
    margin-bottom: 30px;
}

/* Sidebar Boxes */
.side-box, .discovery-widget {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    padding: 24px;
    box-shadow: var(--blog-shadow);
}
.side-title, .discovery-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}
.side-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blog-primary);
}

/* Category List */
.category-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    color: var(--blog-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.category-list li a:hover {
    background: var(--blog-primary);
    color: #fff;
    transform: translateX(5px);
}

/* Latest/Reactions sidebar */
.latest-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.latest-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.latest-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blog-primary); margin-top: 6px; flex-shrink: 0; }
.latest-link { 
    font-size: 14px; 
    font-weight: 700; 
    color: #1e293b; 
    text-decoration: none; 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-link:hover { color: var(--blog-primary); }
.latest-meta { font-size: 12px; color: var(--blog-text-muted); margin-top: 4px; font-weight: 500; }

/* Discovery Widget */
.discovery-list { display: grid; gap: 10px; }
.discovery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.discovery-item:hover { background: #e2e8f0; transform: translateY(-2px); }
.disc-icon { font-size: 18px; }
.disc-text { font-size: 13px; font-weight: 700; color: #334155; }

/* Related Content */
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 25px;
}
.related-card {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.related-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.1); border-color: var(--blog-primary); }
.related-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--blog-border); }
.related-card div { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.related-title { 
    font-size: 16px !important; 
    font-weight: 700; 
    margin-bottom: 12px !important; 
    line-height: 1.45; 
    color: #0f172a; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    height: 46px; 
}
.related-btn { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--blog-primary); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    margin-top: auto;
}

/* Reactions */
.reaction-wrap { margin-top: 40px; padding: 35px; background: #fff; border: 1px solid var(--blog-border); border-radius: var(--blog-radius-lg); }
.reaction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 15px; }
.reaction-btn {
    padding: 18px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.reaction-btn:hover { background: #fff; border-color: var(--blog-primary); transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.reaction-btn.active { background: #eff6ff; border-color: var(--blog-primary); color: var(--blog-primary); box-shadow: inset 0 0 0 2px var(--blog-primary); }
.reaction-btn .emoji { font-size: 28px; }
.reaction-btn .count { font-size: 14px; font-weight: 800; }

/* Comments */
.comment-wrap { margin-top: 40px; padding: 40px; background: #fff; border: 1px solid var(--blog-border); border-radius: var(--blog-radius-lg); }
.comment-title { font-size: 26px; font-weight: 800; margin-bottom: 30px; color: #0f172a; display: flex; align-items: center; gap: 12px; }
.comment-list { display: grid; gap: 32px; margin-top: 35px; }
.comment-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.comment-avatar, .comment-avatar-fallback { width: 52px; height: 52px; border-radius: 50%; background: #e2e8f0; object-fit: cover; flex-shrink: 0; }
.comment-avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #475569; font-size: 18px; background: #cbd5e1; }
.comment-card { border-radius: 18px; position: relative; }
.comment-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.comment-head-left { display: flex; align-items: center; gap: 10px; }
.comment-name { font-weight: 800; font-size: 16px; color: #0f172a; }
.comment-badge { font-size: 11px; font-weight: 700; background: #e2e8f0; color: #475569; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }
.comment-date { font-size: 12px; color: var(--blog-text-muted); font-weight: 500; }
.comment-body { background: #f8fafc; padding: 18px 22px; border-radius: 18px; font-size: 16px; line-height: 1.65; color: #334155; border: 1px solid #f1f5f9; }
.comment-footer { display: flex; gap: 15px; margin-top: 12px; padding-left: 5px; }
.comment-reply-btn { font-size: 14px; font-weight: 700; color: var(--blog-primary); cursor: pointer; background: transparent; border: 0; padding: 0; transition: opacity 0.2s; }
.comment-reply-btn:hover { opacity: 0.7; }

/* Comment children */
.comment-children { margin-top: 24px; padding-left: 60px; border-left: 2px solid #f1f5f9; display: grid; gap: 24px; }
.comment-child { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.comment-child .comment-avatar, .comment-child .comment-avatar-fallback { width: 44px; height: 44px; }
.comment-child .comment-body { background: #ffffff; border: 1px solid #e2e8f0; }

/* Comment Form UI */
.comment-form-shell { display: grid; gap: 12px; margin-bottom: 30px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.comment-reply-state {
    display: none;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-bottom: 10px;
}
.comment-reply-state.is-visible { display: flex; }
.comment-reply-state span { font-size: 13.5px; font-weight: 700; color: var(--blog-primary); flex: 1; }

.comment-cancel-reply {
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #3b82f6;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.comment-cancel-reply:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.comment-help { font-size: 13px; color: var(--blog-text-muted); margin-bottom: 2px !important; line-height: 1.4; opacity: 0.85; }
.comment-help strong { color: #0f172a; }

.comment-input, .comment-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.comment-input:focus, .comment-textarea:focus { outline: none; border-color: var(--blog-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.comment-textarea { min-height: 120px; resize: vertical; }

.comment-actions { display: flex; justify-content: flex-start; margin-top: 5px; }
.comment-submit {
    background: var(--blog-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    border: 0;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.comment-submit:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }

/* Comment Empty */
.comment-empty { text-align: center; padding: 40px 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; font-weight: 600; font-size: 15px; }

/* Responsive */
@media (min-width: 1024px) {
    .blog-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .blog-side {
        width: 340px;
        flex-shrink: 0;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        bottom: auto;
        height: auto;
        align-self: flex-start;
        max-height: none;
        overflow: visible;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .blog-card, .comment-wrap, .reaction-wrap { padding: 20px 15px; }
    .blog-title { font-size: 26px !important; }
    .blog-content { font-size: 16.5px; }
    .blog-toc { padding: 16px; }
    .blog-toc-head { align-items: flex-start; flex-direction: column; }
    .blog-author-box { flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px; }
    .blog-author-avatar, .blog-author-avatar-fallback { width: 44px; height: 44px; }
    .related-list { grid-template-columns: 1fr; }
    .reaction-grid { grid-template-columns: repeat(auto-fit, minmax(75px, 1fr)); gap: 10px; }
    .comment-item { grid-template-columns: 40px 1fr; gap: 12px; }
    .comment-avatar, .comment-avatar-fallback { width: 40px; height: 40px; }
    .comment-children { padding-left: 15px; margin-top: 15px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .blog-post-actions { flex-direction: column; align-items: flex-start; gap: 15px; }
    .blog-share-group { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .blog-toc-desktop { display: none; }
    .blog-mobile-toc-toggle {
        position: fixed;
        right: 0;
        bottom: 118px;
        z-index: 1200;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 0;
        padding: 11px 14px 11px 18px;
        border-radius: 999px 0 0 999px;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        color: #fff;
        box-shadow: -4px 10px 24px rgba(30, 58, 138, 0.28);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.01em;
    }
    .blog-mobile-toc-toggle svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }
    .blog-mobile-toc-overlay {
        position: fixed;
        inset: 0;
        z-index: 1298;
        display: block;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        backdrop-filter: blur(2px);
    }
    .blog-mobile-toc-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
    .blog-mobile-toc-drawer {
        position: fixed;
        top: 0;
        right: -320px;
        width: min(320px, 86vw);
        height: 100vh;
        z-index: 1299;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.16);
        transition: right 0.28s ease;
    }
    .blog-mobile-toc-drawer.is-open {
        right: 0;
    }
    .blog-mobile-toc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 18px 16px;
        border-bottom: 1px solid #e2e8f0;
        background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    }
    .blog-mobile-toc-title {
        margin: 0;
        color: #0f172a;
        font-size: 1rem;
        font-weight: 800;
    }
    .blog-mobile-toc-close {
        border: 0;
        background: transparent;
        color: #475569;
        font-size: 30px;
        line-height: 1;
        padding: 0;
    }
    .blog-mobile-toc-body {
        flex: 1;
        overflow-y: auto;
        padding: 18px;
    }
    .blog-mobile-toc-count {
        margin-bottom: 14px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .blog-mobile-toc-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 8px;
    }
    .blog-mobile-toc-link {
        display: block;
        padding: 10px 0 10px 12px;
        border-left: 3px solid transparent;
        color: #334155;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.45;
        transition: all 0.2s ease;
    }
    .blog-mobile-toc-link[data-level="3"] {
        margin-left: 14px;
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
    }
    .blog-mobile-toc-link:hover,
    .blog-mobile-toc-link:focus {
        color: #2563eb;
        border-left-color: #2563eb;
        padding-left: 16px;
    }
    body.blog-toc-lock {
        overflow: hidden;
    }
}
