html,body{
    background-color: #f8fafb !important;
    height: 100%;
	height: -webkit-fill-available;
	overflow: hidden;
}
.ykb-wrapper * {
   box-sizing: border-box;
   margin: 0;
}
.ykb-wrapper {
   font-family: 'Nunito', sans-serif;
   --kb-text-primary: #111827;
   --kb-text-secondary: #4b5563;
   --kb-primary-rgb: 255, 99, 71;
    --kb-primary-light: rgba(var(--kb-primary-rgb), 0.1);
    
   display: grid;
   grid-template-columns: 350px minmax(0, 1fr);
   gap: 30px;
   width: 100%;
    height: calc(100vh - 172px);   /* fallback */
    height: calc(100dvh - 172px);  /* modern fix */
}


.ykb-sidebar {
    background: #f8f9fb;
    padding: 20px;
    border-right: 1px solid #e5e5e5;
}

.ykb-content {
    padding: 10px 0;
}


.kt-category h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kb-text-primary);
    margin: 20px 0 14px;
    padding-left: 8px;
    display: flex;
    align-items: center;
    opacity: 0.85;
   
}
.kt-toggle-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 30px 6px 13px;
    margin-bottom: 4px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--kb-text-secondary);
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
}
.kt-toggle-btn::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 16px;
    transition: transform .3s ease;
}
.kt-toggle-btn:focus{
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--kb-text-primary) !important;
}
.kt-toggle-btn.active{
    padding-left: 14px;
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--kb-text-primary) !important;
    font-weight: 700 !important;
    border-left: 3px solid #2eb2f3 !important;
    padding-left: 11px !important;
}
.kt-toggle-btn.active::after {
    transform: rotate(90deg);
}
.kt-toggle-btn:hover{
    background-color: transparent !important;
    color: var(--kb-text-primary) !important;
}
.kt-article {
    display: block;
    padding: 9px 10px;
    margin: 3px 0 3px 8px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--kb-text-secondary);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.kt-article:hover {
    background-color: #f3f4f6;
}
.kt-article.active {
    background-color: #eef2ff;
    border-left: 2px solid #2eb2f3;
    
}
.ykb-search {
    position: relative;
    max-width: 700px;
    margin:20px auto;
}

#ykb-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
}

#ykb-search-input:focus {
    border-color: #2eb2f3;
    box-shadow: 0 0 0 2px rgba(46, 178, 243, 0.15);
}

.ykb-search-icon {
    position: absolute;
    left: 15px;
    top: 55%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sidebar-wrapper, .community-tree {
    width: 100%;
    max-width: 350px;
    padding: 32px 20px;
    border-right: 1px solid var(--grey);
    min-height: calc(100vh - 92px);;
    overflow-y: auto;
}
.sidebar-wrapper {
    background: #fff !important;
    border-right: 1px solid var(--kb-border-light) !important;
    padding: 14px 12px !important;
}
.kb-main-page-content {
   width: 100%;
   overflow-y: auto;
   padding: 20px 70px 20px 50px;
}
.kb-primary-box {
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.kb-hero{
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--kb-primary-light) 0%, transparent 100%) !important;
    border-radius: 30px;
    
}
.home-title {
    margin-bottom: 16px !important;
    font-family: 'Nunito Sans', 'Nunito', sans-serif !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #0f172a 0%, #4466f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}
.kb-primary-box h3 {
    color: #666;
    text-transform: capitalize;
    line-height: 1.2;
    margin-top: 20px;
}
.home-subtitle {
    color: #475569 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 600px;
    text-align: center;
    margin-top: 0 !important;
    margin: auto;
}
.kb-main-page-content > * {
   max-width: 980px;
   margin-left: auto;
   margin-right: auto;
}
.kb-category-section {
    max-width: 980px;
    margin: 40px auto;
}

.kb-main-category {
    margin-bottom: 15px;
}

.kb-main-cat-btn {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
    transition: 0.2s ease;
}

.kb-main-cat-btn:hover {
    background: #e5e7eb;
}

.kb-subcategories {
    margin-top: 10px;
    padding-left: 20px;
}

.kb-subcategory-item {
    display: block;
    padding: 10px 0;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

.kb-subcategory-item:hover {
    color: #2eb2f3;
}
 
/* GRID LAYOUT */
.blocks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
    align-items: stretch;
}

/* CARD */
.blocks-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    display: flex;
    cursor: pointer;
    min-height: 150px;
    height: 100%;
    transition: all 0.3s ease;
}

/* CARD HOVER */
.blocks-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* LINK WRAPPER */
.blocks-item-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
    gap: 20px;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* TITLE AREA */
.blocks-item-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-items: normal;
    padding: 20px;
}

.blocks-item-title h4 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* ICON */
.epkb-cat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 99, 71, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* DESCRIPTION */
.blocks-item-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;

    /* 2 line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kb-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.kb-breadcrumb-home {
    color: #2eb2f3;
    font-weight: 600;
}

.kb-breadcrumb-home:hover {
    text-decoration: underline;
}
 
/* HEADER */
.kb-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.kb-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.kb-logo {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
}

/* Hamburger Button */
.kb-menu-toggle {
    display: none;
     width: 22px;
    height: 18px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.kb-bar {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #111827;
    left: 0;
    transition: 0.3s ease;
}

.kb-bar:nth-child(1) { top: 0; }
.kb-bar:nth-child(2) { top: 9px; }
.kb-bar:nth-child(3) { bottom: 0; }

/* Active state → X icon */
.kb-menu-toggle.active .kb-bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.kb-menu-toggle.active .kb-bar:nth-child(2) {
    opacity: 0;
}

.kb-menu-toggle.active .kb-bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
}
.kb-logo img {
    max-height: 40px;
    width: auto;
}
.kb-icon{
    padding : 0 10px;
}
.blocks-item p{
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: -20px;
    padding: 0 20px;
}
img.emoji{
    width: 25px !important;
    height: auto !important;
}
.article-list {
    grid-template-columns: repeat(1, 1fr);
    display: grid;
    gap: 12px !important;
    margin-bottom: 0px;
    margin-top:30px;
}
.article-list-item{
background: transparent !important;
}
.article-list-item {
    animation: fadeIn 0.6s ease-out forwards;
}
.article-list-item a {
    display: block;
    border-bottom: 1px solid var(--grey);
    padding: 15px 0;
    color: #666;
    position: relative;
}
.article-list-item a {
    display: block;
    padding: 20px 24px !important;
    background:  #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 8px !important;
    color: #0f172a  !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}
.article-list-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4466f2;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}
.article-list-item a:after, .article-list .article-list-item a:after, body .article-list-item a:after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232eb2f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    background-size: 24px 24px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: inherit !important;
}
.article-list-item a:hover {
    transform: translateX(8px);
    box-shadow: var(--kb-shadow-sm) !important;
    color: #4466f2 !important;
    border-color: var(--kb-primary-light) !important;
}
.article-list-item a:hover::before {
    transform: scaleY(1);
}
.ykb-login-wrapper {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafb;
        }

        .ykb-login-form {
            width: 400px;
            padding: 40px;
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            text-align: center;
        }

        .ykb-login-form h2 {
            margin-bottom: 20px;
            font-size: 26px;
        }

        .ykb-login-form input {
            width: 100%;
            padding: 14px;
            margin-bottom: 15px;
            border-radius: 10px;
            border: 1px solid #ddd;
        }

        .ykb-login-form button {
            width: 100%;
            padding: 14px;
            border-radius: 10px;
            border: none;
            background: #2eb2f3;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
        }

        .ykb-login-error {
            color: red;
            margin-bottom: 15px;
        }
.ykb-logout-btn {
    padding: 10px 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.ykb-logout-btn:hover {
    background: #dc2626;
}
/* ==========================================
   ARTICLE CONTENT TYPOGRAPHY (CLASSIC EDITOR)
========================================== */

.ykb-article-content {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* Paragraph spacing */
.ykb-article-content p {
    margin-bottom: 20px;
}

/* ================= HEADINGS ================= */

.ykb-article-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 18px;
    color: #0f172a;
    line-height: 1.3;
}

/* H2 → 28px as requested */
.ykb-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 18px;
    color: #0f172a;
    line-height: 1.3;
}


/* H3 proportional to H2 */
.ykb-article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 14px;
    color: #1e293b;
}

/* Optional H4 */
.ykb-article-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ================= LISTS ================= */

.ykb-article-content ul,
.ykb-article-content ol {
    margin: 20px 0 25px 25px;
    padding: 0;
}

.ykb-article-content ul li,
.ykb-article-content ol li {
    margin-bottom: 10px;
    padding-left: 6px;
    line-height: 1.7;
}

/* Better bullet style */
.ykb-article-content ul {
    list-style-type: disc;
}

.ykb-article-content ul ul {
    list-style-type: circle;
    margin-top: 10px;
}

/* Ordered list styling */
.ykb-article-content ol {
    list-style-type: decimal;
}

/* ================= LINKS ================= */

.ykb-article-content a {
    color: #2eb2f3;
    text-decoration: none;
    font-weight: 500;
}

.ykb-article-content a:hover {
    text-decoration: underline;
}

/* ================= IMAGES ================= */

.ykb-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
}

/* ================= BLOCKQUOTE ================= */

.ykb-article-content blockquote {
    border-left: 4px solid #2eb2f3;
    padding: 15px 20px;
    background: #f1f5f9;
    margin: 25px 0;
    border-radius: 8px;
}
/* ================================
   TOC BASE
================================ */

.ykb-toc {
    font-size: 14px;
    border-left: 1px solid #e5e7eb;
    padding-left: 20px;
    max-width:250px;
}
/* When activated */
.ykb-toc.is-sticky {
    position: sticky;
    top: 10px; /* header height */
}

/* ================================
   H2
================================ */

.ykb-toc .toc-h2 > a {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.ykb-toc .toc-h1 > a {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* ================================
   H3
================================ */

.ykb-toc .toc-h3 > a {
   display: -webkit-box;
  -webkit-line-clamp: 2; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
    font-weight: 400;
    color: #64748b;
    margin-left: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
	 
}

/* ================================
   HOVER
================================ */

.ykb-toc a:hover {
    color: #2eb2f3;
}

/* ================================
   ACTIVE STATE
================================ */

.ykb-toc a.active {
    color: #2eb2f3;
    font-weight: 600;
}

/* H2 active gets blue bar */
.ykb-toc .toc-h2 > a.active::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2eb2f3;
    border-radius: 3px;
}
.ykb-toc .toc-h1 > a.active::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2eb2f3;
    border-radius: 3px;
}

/* Remove bar from H3 */
.ykb-toc .toc-h3 > a.active::before {
    content: none;
}

/* H3 active styling */
.ykb-toc .toc-h3 > a.active {
    color: #2eb2f3;
    font-weight: 600;
}
/* =====================================
   INNER ARTICLE LAYOUT
===================================== */

.ykb-article-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Article Content */
.ykb-article-content {
    flex: 1;
    min-width: 0;
}


/* ===============================
   RESPONSIVE BELOW 980px
=================================*/

@media (max-width: 1100px) {
     .kb-sidebar-toggle {
        display: block;
        z-index: 99999;
    }
    .ykb-wrapper {
        display: block;
        position: relative;
    }
     .ykb-toc {
        display: none !important;
    }
    /* SIDEBAR becomes off-canvas */
    .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: -360px; /* hidden by default */
        width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    /* when active */
    .sidebar-wrapper.active {
        left: 0;
    }

    /* content full width */
    .kb-main-page-content {
        width: 100%;
        padding: 20px;
        
    }

    /* grid becomes 2 columns */
    .blocks-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .kb-menu-toggle {
        display: block;
    }
	html,body{
		 

		overflow: auto;   /* 🚀 disables main page scroll */

	}
}

/* ===============================
   MOBILE BELOW 640px
=================================*/

@media (max-width: 640px) {
	html,body{
     
	overflow: auto;
	}
    .blocks-list {
        grid-template-columns: 1fr;
    }

    .home-title {
        font-size: 34px !important;
    }

    .home-subtitle {
        font-size: 16px !important;
    }

}

