﻿/* =========================================================
   ARTICLE DETAIL PAGE
   PREMIUM / MODERN / RESPONSIVE
   ========================================================= */

.article-detail-page {
    direction: rtl;
    padding: 30px 0 60px;
    background: radial-gradient(circle at 10% 5%, rgba(37, 99, 235, .035), transparent 25%), radial-gradient(circle at 90% 20%, rgba(124, 58, 237, .03), transparent 25%), #f7f9fc;
    color: #263142;
}


    /* =========================================================
   GLOBAL
   ========================================================= */

    .article-detail-page *,
    .article-detail-page *::before,
    .article-detail-page *::after {
        box-sizing: border-box;
    }

    .article-detail-page a {
        -webkit-tap-highlight-color: transparent;
    }

    .article-detail-page ::selection {
        background: rgba(37, 99, 235, .18);
        color: #172033;
    }


/* =========================================================
   ARTICLE HEADER
   ========================================================= */

.article-header {
    position: relative;
    background: linear-gradient( 145deg, #ffffff 0%, #fbfcff 100% );
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 99, 235, .08);
    box-shadow: 0 12px 35px rgba(30, 41, 59, .06), 0 2px 8px rgba(30, 41, 59, .025);
    overflow: hidden;
}

    .article-header::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        top: -110px;
        left: -60px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(37, 99, 235, .10), transparent 70% );
        pointer-events: none;
    }

    .article-header::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        right: -90px;
        bottom: -100px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(124, 58, 237, .08), transparent 70% );
        pointer-events: none;
    }

    .article-header h1 {
        position: relative;
        z-index: 2;
        font-size: 32px;
        font-weight: 900;
        line-height: 2;
        margin-top: 15px;
        color: #172033;
    }


/* =========================================================
   CATEGORY
   ========================================================= */

.article-category {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient( 135deg, #2563eb, #6366f1 );
    color: white;
    padding: 7px 17px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .18);
}

    .article-category::before {
        content: "\F4FA";
        font-family: "bootstrap-icons";
        font-size: 11px;
    }


/* =========================================================
   ARTICLE INFO
   ========================================================= */

.article-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 22px;
}

    .article-info > * {
        position: relative;
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 48px;
        padding: 9px 12px;
        border-radius: 14px;
        background: #f8fafc;
        border: 1px solid #edf1f6;
        color: #737d8c;
        font-size: 11px;
        transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

        .article-info > *:hover {
            transform: translateY(-2px);
            background: #fff;
            border-color: rgba(37, 99, 235, .10);
            box-shadow: 0 7px 18px rgba(30, 41, 59, .05);
        }

    .article-info i {
        width: 31px;
        height: 31px;
        min-width: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: linear-gradient( 135deg, rgba(37, 99, 235, .10), rgba(99, 102, 241, .08) );
        color: #2563eb;
        font-size: 12px;
    }


/* =========================================================
   COVER
   ========================================================= */

.article-cover {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(30, 41, 59, .07);
    box-shadow: 0 18px 45px rgba(30, 41, 59, .10);
    transition: transform .4s ease, box-shadow .4s ease;
}

    .article-cover:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 55px rgba(30, 41, 59, .14);
    }


/* =========================================================
   CONTENT
   ========================================================= */

.article-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(30, 41, 59, .06);
    box-shadow: 0 12px 35px rgba(30, 41, 59, .055);
    line-height: 2.5;
    font-size: 17px;
    color: #414b5a;
    overflow: hidden;
}


    /* =========================================================
   CONTENT TYPOGRAPHY
   ========================================================= */

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        position: relative;
        color: #1d2735;
        scroll-margin-top: 90px;
    }

    .article-content h2 {
        margin-top: 45px;
        margin-bottom: 20px;
        padding: 13px 18px 13px 15px;
        border-radius: 14px;
        background: linear-gradient( 90deg, rgba(37, 99, 235, .07), rgba(37, 99, 235, .015), transparent );
        border-right: 4px solid #2563eb;
        font-size: 24px;
        font-weight: 900;
        line-height: 1.9;
    }

        .article-content h2::before {
            content: "\F4CA";
            font-family: "bootstrap-icons";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            margin-left: 9px;
            border-radius: 9px;
            background: linear-gradient( 135deg, #2563eb, #6366f1 );
            color: #fff;
            font-size: 12px;
            vertical-align: middle;
            box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
        }

    .article-content h3 {
        margin-top: 35px;
        margin-bottom: 16px;
        padding-right: 13px;
        border-right: 3px solid #6366f1;
        font-size: 20px;
        font-weight: 850;
    }

        .article-content h3::before {
            content: "\F4FE";
            font-family: "bootstrap-icons";
            color: #6366f1;
            font-size: 12px;
            margin-left: 7px;
        }

    .article-content h4 {
        margin-top: 28px;
        margin-bottom: 12px;
        font-size: 18px;
        font-weight: 800;
    }

    .article-content p {
        margin-bottom: 20px;
    }

    .article-content strong {
        color: #202a38;
        font-weight: 800;
    }


    /* =========================================================
   ARTICLE LINKS
   ========================================================= */

    .article-content a {
        color: #2563eb;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-color: rgba(37, 99, 235, .25);
        text-underline-offset: 4px;
        transition: color .2s ease, text-decoration-color .2s ease;
    }

        .article-content a:hover {
            color: #6d28d9;
            text-decoration-color: currentColor;
        }


    /* =========================================================
   LISTS
   ========================================================= */

    .article-content ul,
    .article-content ol {
        margin: 20px 0 25px;
        padding-right: 25px;
    }

    .article-content li {
        margin-bottom: 9px;
        padding-right: 8px;
    }

    .article-content ul li::marker {
        color: #2563eb;
    }

    .article-content ol li::marker {
        color: #6366f1;
        font-weight: 800;
    }


    /* =========================================================
   ARTICLE IMAGES
   ========================================================= */

    .article-content img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 25px auto;
        border-radius: 17px;
        border: 1px solid #edf0f5;
        box-shadow: 0 12px 30px rgba(30, 41, 59, .09);
        transition: transform .3s ease, box-shadow .3s ease;
    }

        .article-content img:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 38px rgba(30, 41, 59, .13);
        }


    /* =========================================================
   BLOCKQUOTE
   ========================================================= */

    .article-content blockquote {
        position: relative;
        margin: 28px 0;
        padding: 22px 55px 22px 22px;
        border: 1px solid rgba(37, 99, 235, .10);
        border-right: 4px solid #2563eb;
        border-radius: 16px;
        background: linear-gradient( 135deg, rgba(37, 99, 235, .055), rgba(99, 102, 241, .025) );
        color: #596474;
        font-size: 16px;
    }

        .article-content blockquote::before {
            content: "\F6B0";
            font-family: "bootstrap-icons";
            position: absolute;
            right: 18px;
            top: 19px;
            width: 27px;
            height: 27px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #2563eb;
            color: #fff;
            font-size: 12px;
        }


    /* =========================================================
   TABLES INSIDE ARTICLE
   ========================================================= */

    .article-content table {
        width: 100%;
        margin: 28px 0;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
        border: 1px solid #e5eaf1;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 25px rgba(30, 41, 59, .06);
        font-size: 14px;
    }

        .article-content table thead {
            background: linear-gradient( 135deg, #2563eb, #4f46e5 );
            color: #fff;
        }

        .article-content table th {
            padding: 14px 16px;
            text-align: right;
            font-weight: 800;
            white-space: nowrap;
            border: 0;
        }

        .article-content table td {
            padding: 13px 16px;
            border-top: 1px solid #edf0f5;
            color: #596474;
            vertical-align: middle;
        }

        .article-content table tbody tr {
            transition: background .2s ease;
        }

            .article-content table tbody tr:nth-child(even) {
                background: #fafbfc;
            }

            .article-content table tbody tr:hover {
                background: rgba(37, 99, 235, .045);
            }

            .article-content table tbody tr:last-child td:first-child {
                border-bottom-right-radius: 15px;
            }

            .article-content table tbody tr:last-child td:last-child {
                border-bottom-left-radius: 15px;
            }


    /* =========================================================
   CODE
   ========================================================= */

    .article-content code {
        direction: ltr;
        display: inline-block;
        padding: 2px 7px;
        border-radius: 7px;
        background: #f1f4f8;
        color: #b4236b;
        font-family: "Consolas", "Monaco", monospace;
        font-size: .88em;
    }

    .article-content pre {
        position: relative;
        direction: ltr;
        overflow-x: auto;
        margin: 28px 0;
        padding: 22px;
        border-radius: 18px;
        background: linear-gradient( 145deg, #151b2b, #20283b );
        color: #e8edf5;
        border: 1px solid rgba(255,255,255,.06);
        box-shadow: 0 15px 35px rgba(15, 23, 42, .18);
        line-height: 1.8;
        scrollbar-width: thin;
    }

        .article-content pre code {
            display: block;
            padding: 0;
            background: transparent;
            color: inherit;
            font-size: 13px;
            line-height: 1.9;
        }


    /* =========================================================
   HORIZONTAL RULE
   ========================================================= */

    .article-content hr {
        border: 0;
        height: 1px;
        margin: 35px 0;
        background: linear-gradient( 90deg, transparent, #dfe5ee, transparent );
    }


/* =========================================================
   SHARE BOX
   ========================================================= */

.share-box {
    position: relative;
    background: linear-gradient( 145deg, #ffffff, #fafbff );
    padding: 25px;
    border-radius: 22px;
    margin-top: 30px;
    border: 1px solid rgba(37, 99, 235, .07);
    box-shadow: 0 10px 28px rgba(30, 41, 59, .055);
    overflow: hidden;
}

    .share-box::before {
        content: "\F52D";
        font-family: "bootstrap-icons";
        position: absolute;
        left: 20px;
        top: 17px;
        color: rgba(37, 99, 235, .08);
        font-size: 45px;
    }

    .share-box h4 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        color: #263142;
        font-size: 16px;
        font-weight: 850;
    }

        .share-box h4::before {
            content: "\F52D";
            font-family: "bootstrap-icons";
            width: 33px;
            height: 33px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: linear-gradient( 135deg, #2563eb, #6366f1 );
            color: #fff;
            font-size: 12px;
        }


/* Share buttons */

.share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 20px;
    border-radius: 13px;
    color: white;
    margin: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

    .share:hover {
        color: white;
        transform: translateY(-3px);
        filter: brightness(.97);
        box-shadow: 0 9px 20px rgba(30, 41, 59, .12);
    }

    .share i {
        font-size: 14px;
    }

.telegram {
    background: linear-gradient( 135deg, #0088cc, #229ed9 );
}

    .telegram::before {
        content: "\F5B2";
        font-family: "bootstrap-icons";
    }

.whatsapp {
    background: linear-gradient( 135deg, #20bd5a, #25d366 );
}

    .whatsapp::before {
        content: "\F618";
        font-family: "bootstrap-icons";
    }


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar-box {
    position: relative;
    background: linear-gradient( 145deg, #ffffff, #fafbff );
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(30, 41, 59, .06);
    box-shadow: 0 10px 28px rgba(30, 41, 59, .055);
    overflow: hidden;
}

    .sidebar-box::before {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        top: -60px;
        left: -40px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(37, 99, 235, .09), transparent 70% );
    }

    .sidebar-box h4 {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 850;
        margin-bottom: 20px;
        color: #263142;
        font-size: 16px;
    }

        .sidebar-box h4::before {
            content: "\F4FE";
            font-family: "bootstrap-icons";
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: linear-gradient( 135deg, #2563eb, #6366f1 );
            color: #fff;
            font-size: 11px;
        }


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    transition: transform .25s ease;
}

    .related-item:last-child {
        border-bottom: 0;
    }

    .related-item:hover {
        transform: translateX(-4px);
    }

    .related-item img {
        width: 82px;
        height: 62px;
        object-fit: cover;
        border-radius: 12px;
        flex-shrink: 0;
        border: 1px solid #edf0f4;
        transition: transform .25s ease;
    }

    .related-item:hover img {
        transform: scale(1.04);
    }

    .related-item strong {
        display: block;
        line-height: 1.8;
        color: #354052;
        font-size: 11px;
        font-weight: 800;
    }

    .related-item small {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #929aa6;
        margin-top: 5px;
        font-size: 9px;
    }

        .related-item small::before {
            content: "\F4FF";
            font-family: "bootstrap-icons";
            color: #2563eb;
        }


/* =========================================================
   ARTICLE SIDEBAR INFO - TABLE / GRID
   ========================================================= */

.article-sidebar-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

    .article-sidebar-info > div {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 5px;
        min-height: 76px;
        padding: 11px;
        border: 1px solid #edf0f5;
        border-radius: 14px;
        background: linear-gradient( 145deg, #ffffff, #f8fafc );
        transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

        .article-sidebar-info > div:hover {
            transform: translateY(-2px);
            border-color: rgba(37, 99, 235, .12);
            box-shadow: 0 7px 17px rgba(30, 41, 59, .06);
        }

        .article-sidebar-info > div::before {
            font-family: "bootstrap-icons";
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: rgba(37, 99, 235, .08);
            color: #2563eb;
            font-size: 11px;
        }

        /* icons */

        .article-sidebar-info > div:nth-child(1)::before {
            content: "\F4DA";
        }

        .article-sidebar-info > div:nth-child(2)::before {
            content: "\F214";
        }

        .article-sidebar-info > div:nth-child(3)::before {
            content: "\F3D6";
        }

        .article-sidebar-info > div:nth-child(4)::before {
            content: "\F341";
        }

    .article-sidebar-info span {
        color: #929aa6;
        font-size: 9px;
    }

    .article-sidebar-info strong {
        color: #303b4b;
        font-size: 11px;
        font-weight: 800;
    }


/* =========================================================
   COMMENTS
   ========================================================= */

.comments-box,
.comment-form {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 22px;
    margin-top: 30px;
    border: 1px solid rgba(30, 41, 59, .06);
    box-shadow: 0 10px 30px rgba(30, 41, 59, .05);
}

    .comments-box h4,
    .comment-form h4 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 20px;
        color: #263142;
        font-size: 18px;
        font-weight: 850;
    }

        .comments-box h4::before,
        .comment-form h4::before {
            content: "\F4AD";
            font-family: "bootstrap-icons";
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: linear-gradient( 135deg, #2563eb, #6366f1 );
            color: #fff;
            font-size: 13px;
        }

.comment {
    background: linear-gradient( 145deg, #f8fafc, #f5f7fa );
    padding: 17px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #edf0f4;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #354052;
    font-weight: 800;
}

    .comment-author i {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(37, 99, 235, .09);
        color: #2563eb;
    }

.comment p {
    margin: 0;
    line-height: 2;
    color: #667181;
    font-size: 13px;
}


/* =========================================================
   PREMIUM TABLE OF CONTENTS
   ========================================================= */

.toc-box {
    position: relative;
    overflow: hidden;
    direction: rtl;
    padding: 0;
    margin-bottom: 28px;
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 24px;
    background: linear-gradient( 145deg, #ffffff 0%, #fafbff 52%, #f8f9ff 100% );
    box-shadow: 0 20px 50px rgba(35, 45, 75, .08), 0 5px 15px rgba(35, 45, 75, .035);
    isolation: isolate;
}

    .toc-box::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        top: -145px;
        left: -75px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(99, 102, 241, .13), transparent 68% );
        pointer-events: none;
        z-index: -1;
    }

    .toc-box::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        right: -120px;
        bottom: -120px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(14, 165, 233, .10), transparent 68% );
        pointer-events: none;
        z-index: -1;
    }


/* TOC HEADER */

.toc-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 21px 18px;
}

.toc-main-icon {
    position: relative;
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 21px;
    background: linear-gradient( 135deg, #2563eb 0%, #4f46e5 48%, #7c3aed 100% );
    box-shadow: 0 12px 26px rgba(79, 70, 229, .25), inset 0 1px 1px rgba(255,255,255,.35);
    transition: transform .35s ease, box-shadow .35s ease;
}

    .toc-main-icon::before {
        content: "";
        position: absolute;
        inset: 5px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 14px;
    }

.toc-box:hover .toc-main-icon {
    transform: translateY(-3px) rotate(-3deg);
    box-shadow: 0 16px 32px rgba(79, 70, 229, .30);
}

.toc-icon-sparkle {
    position: absolute;
    top: -6px;
    left: -5px;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient( 135deg, #f59e0b, #ef4444 );
    color: #fff;
    font-size: 8px;
    box-shadow: 0 4px 10px rgba(239,68,68,.22);
    animation: tocSparkle 2.5s ease-in-out infinite;
}

@keyframes tocSparkle {
    0%, 100% {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.12) rotate(8deg);
    }
}

.toc-header-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.toc-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-bottom: 2px;
    color: #6366f1;
    font-size: 9px;
    font-weight: 800;
}

    .toc-mini-label i {
        font-size: 8px;
    }

.toc-header-content h4 {
    margin: 0;
    color: #202733;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.6;
}

.toc-header-content p {
    margin: 2px 0 0;
    color: #929aa7;
    font-size: 9px;
    line-height: 1.8;
}

.toc-header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(16,185,129,.12);
    border-radius: 50px;
    background: rgba(16,185,129,.06);
    color: #0f9f6d;
    font-size: 8px;
    white-space: nowrap;
}

.toc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10);
    animation: tocPulse 2s infinite;
}

@keyframes tocPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.22);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(16,185,129,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0);
    }
}

.toc-line {
    height: 1px;
    margin: 0 21px;
    background: linear-gradient( 90deg, transparent, #e5e9f1 12%, #e5e9f1 88%, transparent );
}


/* TOC CONTENT */

.toc-content {
    position: relative;
    padding: 13px 20px 21px;
}

.toc-side-line {
    position: absolute;
    top: 28px;
    right: 35px;
    bottom: 28px;
    width: 2px;
    border-radius: 10px;
    background: linear-gradient( 180deg, #c7d2fe, #dbeafe, #ddd6fe );
    opacity: .8;
}

.toc-box ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-item;
}

.toc-box li {
    position: relative;
    margin: 0 0 5px;
    counter-increment: toc-item;
}

    .toc-box li:last-child {
        margin-bottom: 0;
    }


/* TOC LINKS */

.toc-box a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 11px;
    padding: 7px 7px 7px 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #596474;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

    .toc-box a::before {
        content: counter(toc-item, decimal-leading-zero);
        position: relative;
        z-index: 2;
        width: 32px;
        height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e8ecf3;
        border-radius: 10px;
        background: linear-gradient( 145deg, #f8fafc, #eef2f7 );
        color: #7c8795;
        font-size: 8px;
        font-weight: 900;
        box-shadow: 0 3px 8px rgba(31,41,55,.035);
        transition: all .3s ease;
    }

    .toc-box a::after {
        content: "\F135";
        font-family: "bootstrap-icons";
        position: absolute;
        left: 13px;
        width: 23px;
        height: 23px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: rgba(37,99,235,.08);
        color: #2563eb;
        font-size: 8px;
        opacity: 0;
        transform: translateX(-7px) scale(.8);
        transition: all .3s ease;
    }

.toc-box .toc-h2 {
    color: #394454;
    font-size: 12px;
    font-weight: 750;
}

.toc-box .toc-h3 {
    padding-right: 50px;
    color: #7a8594;
    font-size: 10px;
    font-weight: 500;
}

    .toc-box .toc-h3::before {
        width: 27px;
        height: 27px;
        min-width: 27px;
        border-radius: 9px;
        background: #fafbfc;
        color: #9aa3ae;
        font-size: 7px;
    }

.toc-box a:hover {
    color: #2563eb;
    border-color: rgba(37,99,235,.08);
    background: linear-gradient( 90deg, rgba(37,99,235,.075), rgba(99,102,241,.025) );
    transform: translateX(-4px);
    box-shadow: 0 6px 18px rgba(37,99,235,.055);
}

    .toc-box a:hover::before {
        border-color: transparent;
        background: linear-gradient( 135deg, #2563eb, #6366f1 );
        color: #fff;
        transform: scale(1.06) rotate(-3deg);
        box-shadow: 0 6px 14px rgba(37,99,235,.20);
    }

    .toc-box a:hover::after {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

.toc-box a.toc-active {
    color: #2563eb !important;
    font-weight: 800;
    border-color: rgba(37,99,235,.10);
    background: linear-gradient( 90deg, rgba(37,99,235,.105), rgba(99,102,241,.035) );
    box-shadow: inset -3px 0 0 #2563eb, 0 7px 20px rgba(37,99,235,.065);
}

    .toc-box a.toc-active::before {
        border-color: transparent;
        background: linear-gradient( 135deg, #2563eb, #7c3aed );
        color: #fff;
        box-shadow: 0 6px 16px rgba(79,70,229,.23);
    }

    .toc-box a.toc-active::after {
        opacity: 1;
        transform: translateX(0) scale(1);
    }


/* =========================================================
   READING PROGRESS
   ========================================================= */

#readingProgress {
    position: fixed;
    top: 0;
    right: 0;
    height: 5px;
    width: 0;
    background: linear-gradient( 90deg, #2563eb, #6366f1, #7c3aed );
    z-index: 99999;
    box-shadow: 0 1px 8px rgba(37,99,235,.35);
}


/* =========================================================
   ARTICLE DETAILS HEADER BANNER
   ========================================================= */

.article-details-page .article-header-banner,
.container > .article-header-banner {
    position: relative;
    max-width: 1311px;
    width: 100%;
    margin: 7px auto 30px;
    padding: 32px 35px;
    border-radius: 24px;
    background: linear-gradient( 135deg, #1d4ed8, #4f46e5 55%, #6d28d9 );
    color: #fff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .22);
    overflow: hidden;
    box-sizing: border-box;
}

    .container > .article-header-banner::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        background: rgba(255,255,255,.10);
        border-radius: 50%;
        left: -90px;
        top: -120px;
    }

    .container > .article-header-banner::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,.07);
        border-radius: 50%;
        right: -100px;
        bottom: -110px;
    }

    .container > .article-header-banner .article-header-content {
        display: flex;
        align-items: center;
        gap: 20px;
        position: relative;
        z-index: 2;
    }

    .container > .article-header-banner .article-header-icon {
        position: relative;
        width: 74px;
        height: 74px;
        min-width: 74px;
        border-radius: 21px;
        background: rgba(255,255,255,.15);
        border: 1px solid rgba(255,255,255,.20);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        backdrop-filter: blur(12px);
        box-shadow: inset 0 1px rgba(255,255,255,.25), 0 10px 25px rgba(0,0,0,.10);
    }

    .container > .article-header-banner h1 {
        color: #fff;
        font-size: 32px;
        font-weight: 900;
        margin: 0 0 8px;
    }

    .container > .article-header-banner p {
        color: rgba(255,255,255,.88);
        font-size: 15px;
        line-height: 2;
        margin: 0;
    }


/* =========================================================
   RESPONSIVE TABLE
   ========================================================= */

@media (max-width: 991px) {

    .article-content {
        padding: 30px;
    }

    .article-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-sidebar-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .article-detail-page {
        padding-top: 20px;
    }

    .article-header {
        padding: 23px;
        border-radius: 19px;
    }

        .article-header h1 {
            font-size: 23px;
            line-height: 1.8;
        }

    .article-content {
        padding: 23px;
        border-radius: 19px;
        font-size: 15px;
        line-height: 2.3;
    }

        .article-content h2 {
            font-size: 20px;
            margin-top: 32px;
        }

        .article-content h3 {
            font-size: 18px;
        }

        .article-content table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
            border-radius: 13px;
            -webkit-overflow-scrolling: touch;
        }

            .article-content table th,
            .article-content table td {
                padding: 11px 13px;
            }

    .sidebar {
        position: relative !important;
        top: auto !important;
    }

        .sidebar .card {
            position: relative;
        }

    .toc-box {
        border-radius: 19px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .article-detail-page {
        padding: 15px 10px 40px;
    }


    /* Header banner */

    .container > .article-header-banner {
        margin: 7px 0 22px;
        width: 100%;
        padding: 20px 16px;
        border-radius: 18px;
    }

        .container > .article-header-banner .article-header-content {
            flex-direction: column;
            text-align: center;
            gap: 11px;
        }

        .container > .article-header-banner .article-header-icon {
            width: 58px;
            height: 58px;
            min-width: 58px;
            font-size: 26px;
            border-radius: 17px;
        }

        .container > .article-header-banner h1 {
            font-size: 23px;
            line-height: 1.6;
        }

        .container > .article-header-banner p {
            font-size: 12px;
            line-height: 2;
        }


    /* Article header */

    .article-header {
        padding: 18px;
        border-radius: 17px;
    }

        .article-header h1 {
            font-size: 21px;
            line-height: 1.8;
        }


    /* Info grid */

    .article-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

        .article-info > * {
            min-height: 44px;
            padding: 7px 8px;
            border-radius: 11px;
            font-size: 9px;
        }

        .article-info i {
            width: 27px;
            height: 27px;
            min-width: 27px;
            font-size: 10px;
        }


    /* Cover */

    .article-cover {
        margin-bottom: 20px;
        border-radius: 17px;
        max-height: 350px;
    }


    /* Content */

    .article-content {
        padding: 18px;
        border-radius: 17px;
        font-size: 14px;
        line-height: 2.25;
    }

        .article-content h2 {
            font-size: 18px;
            padding: 10px 12px;
            margin-top: 28px;
            border-right-width: 3px;
            border-radius: 11px;
        }

            .article-content h2::before {
                width: 27px;
                height: 27px;
                font-size: 10px;
            }

        .article-content h3 {
            font-size: 16px;
            margin-top: 25px;
        }

            .article-content h3::before {
                font-size: 10px;
            }

        .article-content p {
            margin-bottom: 16px;
        }


        /* Mobile tables */

        .article-content table {
            margin: 20px 0;
            font-size: 11px;
            border-radius: 12px;
        }

            .article-content table th,
            .article-content table td {
                padding: 9px 11px;
            }


        /* Code */

        .article-content pre {
            margin: 20px -2px;
            padding: 15px;
            border-radius: 13px;
            font-size: 11px;
        }

            .article-content pre code {
                font-size: 11px;
            }


        /* Blockquote */

        .article-content blockquote {
            padding: 17px 45px 17px 15px;
            font-size: 13px;
            border-radius: 13px;
        }


    /* Share */

    .share-box,
    .comments-box,
    .comment-form {
        padding: 18px;
        border-radius: 17px;
    }

    .share {
        display: flex;
        width: 100%;
        margin: 6px 0;
    }


    /* Sidebar info */

    .article-sidebar-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

        .article-sidebar-info > div {
            min-height: 68px;
            padding: 9px;
            border-radius: 11px;
        }

            .article-sidebar-info > div::before {
                width: 25px;
                height: 25px;
                font-size: 9px;
            }

        .article-sidebar-info span {
            font-size: 8px;
        }

        .article-sidebar-info strong {
            font-size: 9px;
        }


    /* Related */

    .related-item {
        gap: 9px;
        padding: 9px 0;
    }

        .related-item img {
            width: 70px;
            height: 54px;
            border-radius: 9px;
        }

        .related-item strong {
            font-size: 10px;
        }

        .related-item small {
            font-size: 8px;
        }


    /* TOC */

    .toc-box {
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .toc-header {
        gap: 10px;
        padding: 15px 13px;
    }

    .toc-main-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        border-radius: 14px;
        font-size: 17px;
    }

        .toc-main-icon::before {
            inset: 4px;
            border-radius: 11px;
        }

    .toc-icon-sparkle {
        width: 17px;
        height: 17px;
        font-size: 6px;
        top: -5px;
        left: -4px;
    }

    .toc-mini-label {
        font-size: 7px;
    }

    .toc-header-content h4 {
        font-size: 14px;
    }

    .toc-header-content p {
        font-size: 7px;
    }

    .toc-header-status {
        padding: 5px 7px;
        font-size: 7px;
    }

    .toc-status-dot {
        width: 5px;
        height: 5px;
    }

    .toc-line {
        margin: 0 13px;
    }

    .toc-content {
        padding: 9px 11px 13px;
    }

    .toc-side-line {
        top: 23px;
        right: 27px;
        bottom: 23px;
    }

    .toc-box li {
        margin-bottom: 3px;
    }

    .toc-box a {
        min-height: 41px;
        gap: 8px;
        padding: 5px 6px 5px 8px;
        border-radius: 11px;
        font-size: 9px;
    }

        .toc-box a::before {
            width: 27px;
            height: 27px;
            min-width: 27px;
            border-radius: 8px;
            font-size: 7px;
        }

        .toc-box a::after {
            display: none;
        }

    .toc-box .toc-h3 {
        padding-right: 41px;
        font-size: 8px;
    }

        .toc-box .toc-h3::before {
            width: 24px;
            height: 24px;
            min-width: 24px;
        }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .article-detail-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .article-info {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 15px;
    }

    .article-content {
        padding: 15px;
    }

    .toc-header {
        padding: 13px 11px;
    }

    .toc-main-icon {
        width: 41px;
        height: 41px;
        min-width: 41px;
        border-radius: 12px;
    }

    .toc-header-content h4 {
        font-size: 13px;
    }

    .toc-header-content p {
        display: none;
    }

    .toc-header-status {
        display: none;
    }

    .toc-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .article-sidebar-info {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   READING PROGRESS
   ========================================================= */

#readingProgress {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    width: 0;
    background: linear-gradient( 90deg, #2563eb, #6366f1, #7c3aed );
    z-index: 99999;
    box-shadow: 0 1px 10px rgba(37,99,235,.35);
}
