/* =====================================================
   1. KNOWLEDGE BASE HERO & SEARCH SECTION
   ===================================================== */
.Vagocat-kb-page {
    background-color: #ffffff; /* Pure white foundation */
}

.kb-hero {
    background-color: #0d1117;
    padding: 100px 24px 80px 24px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-bottom: 4px solid #111827;
}

.kb-hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kb-main-heading {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(40px, 6vw, 64px); 
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0 0 20px 0;
}

.kb-sub-heading {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 18px;
    color: #8b949e; 
    margin: 0 0 40px 0;
    max-width: 600px;
}

/* Brutalist Search Input */
.kb-search-module {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

.kb-search-box {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 4px solid #D1D5DB; 
    box-shadow: 12px 12px 0px #D1D5DB; 
    padding: 8px 24px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-search-box:focus-within {
    border-color: #9D00FF;
    box-shadow: 12px 12px 0px #9D00FF;
}

.kb-search-icon {
    font-size: 24px;
    color: #111827;
    margin-right: 16px;
}

.kb-search-input {
    flex-grow: 1;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 18px;
    color: #111827;
    border: none;
    outline: none;
    padding: 16px 0;
    background: transparent;
    width: 100%;
}

.kb-search-input::placeholder {
    color: #9CA3AF;
}

/* Tabs (Updated with aggressive Brutalist hover effects) */
.kb-tabs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.kb-tab-btn {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background-color: #111827;
    border: 3px solid #D1D5DB;
    box-shadow: 4px 4px 0px #D1D5DB;
    padding: 12px 32px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s ease, background-color 0.2s ease;
    border-radius: 0;
}

.kb-tab-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #9D00FF;
    border-color: #9D00FF;
}

.kb-tab-btn.active {
    background-color: #9D00FF;
    color: #ffffff;
    border-color: #9D00FF;
    box-shadow: 6px 6px 0px #ffffff;
    transform: translate(-2px, -2px);
}

.kb-tab-btn.active:hover {
    box-shadow: 8px 8px 0px #ffffff;
    transform: translate(-4px, -4px);
}


/* =====================================================
   2. ACCORDION CONTENT SECTION
   ===================================================== */
.kb-content-section {
    background-color: #ffffff;
    padding: 80px 24px 120px 24px;
    width: 100%;
    box-sizing: border-box;
}

.kb-content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.kb-tab-content {
    display: none;
}

.kb-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Brutalist Accordion Wrapper (Updated Border Logic) */
.kb-accordion {
    background-color: #ffffff;
    /* Invisible top and left borders by default to prevent layout jumping */
    border: 4px solid #ffffff; 
    border-right-color: #111827;
    border-bottom-color: #111827;
    box-shadow: 8px 8px 0px #111827;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}

.kb-accordion.active {
    /* Reveals the top and left borders only when active */
    border-color: #111827; 
    box-shadow: 12px 12px 0px #9D00FF;
}

/* Accordion Button */
.kb-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 24px 32px;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background-color 0.2s ease;
}

.kb-accordion-btn:hover {
    background-color: #F8F9FA;
}

.kb-accordion.active .kb-accordion-btn {
    background-color: #ffffff; /* Keep white when open */
}

.kb-btn-text {
    display: flex;
    flex-direction: column;
    padding-right: 24px;
}

.kb-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.kb-title i {
    color: #9D00FF;
    margin-right: 12px;
    font-size: 20px;
}

.kb-desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    color: #4B5563;
    line-height: 1.5;
}

.kb-toggle-icon {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 32px;
    font-weight: 900;
    color: #111827;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kb-accordion.active .kb-toggle-icon {
    color: #9D00FF;
}

/* Accordion Content Body */
.kb-accordion-content {
    display: none;
    padding: 32px;
    border-top: 4px solid #111827;
    background-color: #ffffff;
}

.kb-accordion.active .kb-accordion-content {
    display: block;
}

/* Inner Typography & Layout */
.kb-section-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 32px 0 16px 0;
    letter-spacing: -0.5px;
}

/* Remove margin for the very first title */
.kb-accordion-content > *:first-child,
.kb-grid-2 > div > *:first-child {
    margin-top: 0;
}

.kb-accordion-content p {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 16px 0;
}

.kb-muted {
    color: #6B7280 !important;
    font-style: italic;
}

/* Lists */
.kb-list, .kb-list-num {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.kb-list li, .kb-list-num li {
    margin-bottom: 8px;
}

.kb-list li b, .kb-list-num li b {
    color: #111827;
    font-weight: 700;
}

/* Code Blocks & Inline Code */
code {
    font-family: monospace;
    background-color: #F3F4F6;
    color: #9D00FF;
    padding: 2px 6px;
    border: 1px solid #D1D5DB;
    font-size: 14px;
    font-weight: bold;
}

.kb-code-block {
    font-family: monospace;
    background-color: #111827;
    color: #34D399; /* Terminal Green */
    padding: 24px;
    border: 3px solid #111827;
    box-shadow: 6px 6px 0px #D1D5DB;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    margin: 24px 0;
    white-space: pre-wrap;
}

.kb-link {
    color: #9D00FF;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #9D00FF;
    transition: all 0.2s ease;
}

.kb-link:hover {
    color: #111827;
    border-color: #111827;
}

/* Sub-grid for dense content (like the first hosting tab) */
.kb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
   ===================================================== */
@media (max-width: 980px) {
    .kb-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .kb-hero {
        padding: 80px 20px 60px 20px;
    }
    
    .kb-main-heading {
        font-size: 40px;
    }
    
    .kb-search-box {
        padding: 4px 16px;
    }
    
    .kb-search-input {
        font-size: 16px;
    }
    
    .kb-accordion-btn {
        padding: 20px;
        align-items: flex-start;
    }
    
    .kb-title {
        font-size: 18px;
        align-items: flex-start;
    }
    
    .kb-title i {
        margin-top: 4px; /* Align icon with multi-line title */
    }

    .kb-desc {
        display: none; /* Hide description on mobile to save space */
    }
    
    .kb-toggle-icon {
        font-size: 28px;
        margin-left: 16px;
    }

    .kb-accordion-content {
        padding: 20px;
    }
}