/* Peppol Kennisbank Frontend Styling */
:root {
    --primary: #d2691e;
    --secondary: #173752;
    --light: #f8f9fa;
    --grey: #667788;
    --light-grey: #e9ecef;
    --border: #dee2e6;
}

/* Header sectie */
.knowledge-base-header {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.knowledge-base-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white !important;
}

.knowledge-base-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Zoekbalk - Terug naar origineel met alleen knop-fix */
.kb-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.kb-search {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.peppol-knowledge-base .kb-search-button {
    position: absolute !important;
    right: -15px !important;
    top: 5px !important;
    bottom: 5px !important;
    margin: auto !important;
    background: var(--primary) !important;
    border: none !important;
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.kb-search-button:hover {
    background: #b85c1a;
}

.kb-search-button svg {
    width: 20px;
    height: 20px;
}

/* Content sectie */
.knowledge-base-content {
    padding: 80px 0;
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Categorieën */
.kb-categories {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.kb-category {
    background-color: transparent;
}

.kb-category h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-grey);
}

/* Artikelen */
.kb-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.kb-article {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.kb-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
    text-decoration: none;
}

.article-icon {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(232, 100, 60, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Icon styles - Lucide Icons */
.article-icon svg,
.article-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.kb-article:hover .article-content h3 {
    color: var(--primary);
}

.article-content p {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.article-arrow {
    align-self: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary);
    transform: translateX(-10px);
}

.article-arrow svg {
    width: 20px;
    height: 20px;
}

.kb-article:hover .article-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Uitgelichte artikelen */
.featured-article {
    position: relative;
}

.featured-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* CTA Sectie */
.kb-cta {
    margin-top: 80px;
    background-color: var(--secondary);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.kb-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 100, 60, 0.15) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.kb-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white !important;
}

.kb-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-button {
    background-color: var(--primary);
    color: white !important;
    box-shadow: none;
}

.primary-button:hover {
    background-color: #b85c1a;
    transform: translateY(-2px) scale(1.02);
    text-decoration: none;
}


.secondary-button {
    background-color: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive aanpassingen */
@media (max-width: 1200px) {
    .kb-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kb-articles {
        grid-template-columns: 1fr;
    }
    
    .knowledge-base-header h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .kb-cta {
        padding: 40px 25px;
    }
}