/* Northeast PTA Knowledge Base Styles */
.northeast-knowledge-base {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    line-height: 1.6;
}

/* Header Styles */
.northeast-knowledge-base .kb-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
}

.northeast-knowledge-base .kb-header h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.northeast-knowledge-base .kb-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 18px;
    font-weight: 300;
}

/* Search Styles */
.northeast-knowledge-base .search-container {
    margin-bottom: 25px;
    position: relative;
}

.northeast-knowledge-base .search-box {
    width: 100%;
    padding: 18px 25px 18px 55px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 30px;
    background: #f8fafb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.northeast-knowledge-base .search-box:focus {
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1), 0 2px 12px rgba(44, 90, 160, 0.15);
}

.northeast-knowledge-base .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8899a6;
    font-size: 20px;
    transition: color 0.3s ease;
}

.northeast-knowledge-base .search-box:focus + .search-icon {
    color: #2c5aa0;
}

/* Filter Styles */
.northeast-knowledge-base .filter-container {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.northeast-knowledge-base .filter-btn {
    background: #f1f5f9;
    border: 2px solid #e1e8ed;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-family: inherit;
}

.northeast-knowledge-base .filter-btn:hover {
    background: #e6f1ff;
    border-color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.northeast-knowledge-base .filter-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Stats Container */
.northeast-knowledge-base .stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e1e8ed;
}

.northeast-knowledge-base .stat-item {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.northeast-knowledge-base .stat-number {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 16px;
}

/* Popular Section */
.northeast-knowledge-base .popular-section {
    margin-bottom: 25px;
}

.northeast-knowledge-base .popular-title {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* FAQ Items */
.northeast-knowledge-base .faq-item {
    border: 1px solid #e1e8ed;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.northeast-knowledge-base .faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.northeast-knowledge-base .faq-question {
    background: #f8fafb;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: #2d3748;
    font-family: inherit;
}

.northeast-knowledge-base .faq-question:hover {
    background: #edf2f7;
}

.northeast-knowledge-base .faq-question.active {
    background: #2c5aa0;
    color: white;
}

.northeast-knowledge-base .faq-category {
    background: #2c5aa0;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    display: inline-block;
}

.northeast-knowledge-base .faq-question.active .faq-category {
    background: rgba(255, 255, 255, 0.2);
}

.northeast-knowledge-base .faq-toggle {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    min-width: 20px;
    text-align: center;
}

.northeast-knowledge-base .faq-toggle.rotated {
    transform: rotate(180deg);
}

/* FAQ Answers */
.northeast-knowledge-base .faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    opacity: 0;
}

.northeast-knowledge-base .faq-answer.active {
    max-height: 800px;
    padding: 24px;
    opacity: 1;
}

.northeast-knowledge-base .faq-answer p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #4a5568;
    font-size: 15px;
}

.northeast-knowledge-base .faq-answer p:last-child {
    margin-bottom: 0;
}

.northeast-knowledge-base .faq-answer a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.northeast-knowledge-base .faq-answer a:hover {
    color: #1e3f73;
    text-decoration: underline;
}

.northeast-knowledge-base .faq-answer strong {
    color: #2d3748;
    font-weight: 600;
}

/* No Results */
.northeast-knowledge-base .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8899a6;
    background: #f8fafb;
    border-radius: 12px;
    margin: 20px 0;
}

.northeast-knowledge-base .no-results h3 {
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.northeast-knowledge-base .no-results p {
    margin: 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .northeast-knowledge-base .kb-header {
        padding: 20px 15px;
    }
    
    .northeast-knowledge-base .kb-header h2 {
        font-size: 26px;
    }
    
    .northeast-knowledge-base .kb-header p {
        font-size: 16px;
    }
    
    .northeast-knowledge-base .stats-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .northeast-knowledge-base .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .northeast-knowledge-base .filter-btn {
        font-size: 13px;
        padding: 8px 16px;
        margin: 2px;
    }
    
    .northeast-knowledge-base .search-box {
        padding: 16px 20px 16px 50px;
        font-size: 15px;
    }
    
    .northeast-knowledge-base .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .northeast-knowledge-base .faq-answer {
        padding: 0 18px;
    }
    
    .northeast-knowledge-base .faq-answer.active {
        padding: 18px;
    }
    
    .northeast-knowledge-base .faq-category {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .northeast-knowledge-base .kb-header h2 {
        font-size: 22px;
    }
    
    .northeast-knowledge-base .kb-header p {
        font-size: 14px;
    }
    
    .northeast-knowledge-base .popular-title {
        font-size: 20px;
    }
}

/* Accessibility */
.northeast-knowledge-base .faq-question:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.northeast-knowledge-base .filter-btn:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Animation for smooth interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.northeast-knowledge-base .faq-item {
    animation: fadeInUp 0.3s ease-out;
}

/* Print Styles */
@media print {
    .northeast-knowledge-base .search-container,
    .northeast-knowledge-base .filter-container {
        display: none;
    }
    
    .northeast-knowledge-base .faq-answer {
        max-height: none !important;
        padding: 15px !important;
        opacity: 1 !important;
    }
    
    .northeast-knowledge-base .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
}