﻿/* =========================
   Guide Page
   ========================= */
.post-content {
    padding-right: 20px;
}

#guidePage{
    margin-top:24px;
}

/* =========================
   Shared Panel (Sidebar + TOC)
   ========================= */
#guidePage .guide-panel {
    background: #f6f7fa;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 0 16px;
}

#guidePage .guide-panel--cats {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    #guidePage .guide-panel--cats .guide-panel__title {
        font-weight: 700 !important;
        border-bottom: 1px solid #E5E7EB;
        background-color: #f6f7fa;
        margin-bottom: 0;
        padding: 20px 0;
        flex: 0 0 auto;
        z-index: 2;
    }

    #guidePage .guide-panel--cats .guide-panel__body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 16px 0;
        scrollbar-width: thin; 
        scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    }

        /* Chrome / Edge / Safari */
        #guidePage .guide-panel--cats .guide-panel__body::-webkit-scrollbar {
            width: 8px;
        }

        #guidePage .guide-panel--cats .guide-panel__body::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 999px;
        }

        #guidePage .guide-panel--cats .guide-panel__body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: background 0.25s ease, border-color 0.25s ease;
        }

            #guidePage .guide-panel--cats .guide-panel__body::-webkit-scrollbar-thumb:hover {
                background: rgba(255, 255, 255, 0.34);
                border-color: rgba(255, 255, 255, 0.28);
            }

        #guidePage .guide-panel--cats .guide-panel__body::-webkit-scrollbar-corner {
            background: transparent;
        }

@media (max-width: 991.98px) {

    #guidePage .guide-panel--cats {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

        #guidePage .guide-panel--cats .guide-panel__body {
            overflow: visible;
            max-height: none;
        }
}


/* =========================
   Category Sidebar
   ========================= */
#guidePage .guide-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

#guidePage .guide-cats__item {
    margin-top: 13px;
}

    #guidePage .guide-cats__item:first-child {
        margin-top: 0;
    }

#guidePage .guide-cats__toggle {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight:800;
}

    #guidePage .guide-cats__toggle.is-active {
        color: #2166AE;
    }

    #guidePage .guide-cats__toggle i:before {
        transform: rotate(0deg);
        transition: 0.3s all;
    }

    #guidePage .guide-cats__toggle.collapsed i:before {
        transform: rotate(90deg);
    }

#guidePage .guide-cats__links {
    list-style: none;
    margin: 10px 0 0 16px;
    padding: 0;
    color: #4F4F4F;
}

    #guidePage .guide-cats__links li,
    #guidePage .guide-cats__links a {
        font-size: 13px !important;
    }

    #guidePage .guide-cats__links a {
        padding: 6px;
        display: inline-block;
        margin-bottom: 6px;
        text-decoration: none;
    }

    #guidePage .guide-cats__links li.is-active {
        background-color: #2166AE;
        border-radius: 4px;
        margin-bottom: 6px;

    }

        #guidePage .guide-cats__links li.is-active a {
            margin: 0;
            color: #fff !important;
        }

/* =========================
   Layout: Content + TOC
   ========================= */
#guidePage .guide-layout {
    display: flex;
    gap: 24px;
}

#guidePage .guide-main {
    flex: 1 1 auto;
    min-width: 0;
}

    #guidePage .guide-main * {
        line-height: 40px;
    }

#guidePage .guide-aside {
    width: 280px;
    flex: 0 0 280px;
}

#guidePage .guide-panel--toc {
    position: sticky;
    top: 100px;
}


#guidePage .guide-panel--toc ul li {
    padding:6px 0;
    font-size:14px;
}

/* =========================
   Header (Title + Edit link)
   ========================= */
#guidePage .guide-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

    #guidePage .guide-title {
        font-size: 32px !important;
        font-weight: 900;
        margin: 0;
    }

#guidePage .guide-edit-link {
    text-decoration: none;
    font-size: 14px;
}

#guidePage .guide-updateAt{
    font-size:12px;
}

/* =========================
   TOC: Mobile placement
   ========================= */
#guidePage .guide-toc-mobile {
    margin: 12px 0 18px 0;
}

    #guidePage .guide-toc-mobile .guide-panel--toc {
        position: static;
        top: auto;
    }

/* =========================
   Prev / Next Navigation
   ========================= */
#guidePage .guide-nav {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#guidePage .guide-nav__item {
    background: #f6f7fa;
    border-radius: 8px;
    padding: 12px 14px;
    display: inline-flex;
    flex-direction: row;
    align-items:center;
    justify-content:space-between;
    gap: 100px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E5E7EB;
}

    #guidePage .guide-nav__item.is-disabled {
        opacity: .5;
        pointer-events: none;
    }

#guidePage .guide-nav__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

#guidePage .guide-nav__title {
    font-size: 14px;
}

#guidePage .guide-nav__item--next {
    align-items: flex-end;
    text-align: left;
}

/* =========================
   FAQ (AI only)
   ========================= */
#guidePage .guide-faq__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

#guidePage .guide-faq__item {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    margin-bottom: 12px;
}

#guidePage .guide-faq__q {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

#guidePage .guide-faq__a {
    font-size: 14px;
}

/* =========================
   Footer (keep as-is)
   ========================= */
#guidePage .footer-guide {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 7px 0 #E0E0E0;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px 20px;
}

    #guidePage .footer-guide h5 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
    }

    #guidePage .footer-guide p,
    #guidePage .footer-guide a {
        font-size: 12px;
    }

    #guidePage .footer-guide .btn-amoot {
        background-color: #2166AE;
        color: #fff;
        padding: 4px 12px;
        border-radius: 4px;
        margin-top: 12px;
    }

    #guidePage .footer-guide #surveyGuideForm .description-box {
        border: 1px solid;
        padding: 12px;
        box-shadow: 0 0 4px 0 #eee;
        margin: 12px 0;
        color: #828282 !important;
    }

    #guidePage .footer-guide #surveyGuideForm .like,
    #guidePage .footer-guide #surveyGuideForm .dislike {
        border: 1px solid #2166AE;
        outline: none;
        background-color: transparent;
        color: #2166AE;
        border-radius: 4px;
        padding: 4px 12px;
        font-size: 12px;
        cursor: pointer;
    }

        #guidePage .footer-guide #surveyGuideForm .like.active,
        #guidePage .footer-guide #surveyGuideForm .dislike.active {
            background-color: #2166AE;
            color: #fff;
        }

    #guidePage .footer-guide #surveyGuideForm .description-box input {
        display: block;
        border: none;
        width: 100%;
        color: #828282 !important;
        font-size: 12px !important;
    }

    #guidePage .footer-guide #surveyGuideForm .description-box button {
        border: none;
        outline: none;
        background-color: #2166AE;
        color: #fff;
        border-radius: 4px;
        padding: 4px 12px;
        font-size: 12px;
        margin-top: 30px;
    }

    #guidePage .footer-guide .guide-survey-result .fw-semibold {
        font-size: 14px;
    }

    #guidePage .footer-guide .guide-survey-result img {
        width: 18px;
        height: 18px;
    }

    /* anonymous */
    #guidePage .footer-guide #surveyGuideForm.guide-survey-anon .like,
    #guidePage .footer-guide #surveyGuideForm.guide-survey-anon .dislike {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* =========================
   Responsive
   ========================= */
@media (max-width: 991.98px) {
    #guidePage {
        padding: 0 16px !important;
    }

        #guidePage .guide-layout {
            display: block;
        }

        #guidePage .guide-aside {
            display: none !important;
        }

        #guidePage .guide-nav {
            flex-direction: column;
        }

        #guidePage .guide-nav__item {
            width: 100%;
        }

        #guidePage .guide-nav__item--next {
            align-items: flex-start;
            text-align: right;
        }
}

@media (min-width: 992px) {
    #guidePage .guide-toc-mobile {
        display: none !important;
    }
}

.alert-primary{
    border:0;
    border-right:5px solid #2166AE;
}

.alert-info {
    border: 0;
    border-right: 5px solid #70e2f9;
}

.alert-warning {
    border: 0;
    border-right: 5px solid #f39c1e;
}

h1 {
    font-size:28px !important;
    font-weight:700;
}

h2 {
    font-size: 22px !important;
    font-weight: 700;
}

h3 {
    font-size: 18px !important;
    font-weight: 700;
}