/* Peppol Kennisbank Overzicht Styling - ALLEEN voor shortcode pagina */
:root {
    --primary: #d2691e;
    --secondary: #173752;
    --light: #f8f9fa;
    --grey: #667788;
    --light-grey: #e9ecef;
    --border: #dee2e6;
}

/* Header sectie */
.peppol-knowledge-base .knowledge-base-header {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.peppol-knowledge-base .knowledge-base-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white !important;
}

.peppol-knowledge-base .knowledge-base-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Zoekbalk */
.peppol-knowledge-base .kb-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.peppol-knowledge-base .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;
}

.peppol-knowledge-base .kb-search-button:hover {
    background: #b85c1a;
}

.peppol-knowledge-base .kb-search-button svg {
    width: 20px;
    height: 20px;
}

/* Content sectie */
.peppol-knowledge-base .knowledge-base-content {
    padding: 80px 0;
    background-color: var(--light);
}

.peppol-knowledge-base .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Categorieën */
.peppol-knowledge-base .kb-categories {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.peppol-knowledge-base .kb-category {
    background-color: transparent;
}

.peppol-knowledge-base .kb-category h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-grey);
}

/* Artikelen */
.peppol-knowledge-base .kb-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.peppol-knowledge-base .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;
}

.peppol-knowledge-base .kb-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
    text-decoration: none;
}

.peppol-knowledge-base .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);
}

.peppol-knowledge-base .article-icon svg,
.peppol-knowledge-base .article-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.peppol-knowledge-base .article-content {
    flex: 1;
}

.peppol-knowledge-base .article-content h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.peppol-knowledge-base .kb-article:hover .article-content h3 {
    color: var(--primary);
}

.peppol-knowledge-base .article-content p {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.peppol-knowledge-base .article-arrow {
    align-self: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary);
    transform: translateX(-10px);
}

.peppol-knowledge-base .article-arrow svg {
    width: 20px;
    height: 20px;
}

.peppol-knowledge-base .kb-article:hover .article-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Uitgelichte artikelen */
.peppol-knowledge-base .featured-article {
    position: relative;
}

.peppol-knowledge-base .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 - voor overzichtspagina */
.peppol-knowledge-base .kb-cta {
    margin-top: 80px;
    background-color: var(--secondary);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.peppol-knowledge-base .kb-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.peppol-knowledge-base .cta-content {
    position: relative;
    z-index: 1;
}

.peppol-knowledge-base .kb-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white !important;
}

.peppol-knowledge-base .kb-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.peppol-knowledge-base .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.peppol-knowledge-base .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;
}

.peppol-knowledge-base .primary-button {
    background-color: var(--primary);
    color: white !important;
    box-shadow: none;
}

.peppol-knowledge-base .primary-button:hover {
    background-color: #b85c1a;
    transform: translateY(-2px) scale(1.02);
    text-decoration: none;
}

.peppol-knowledge-base .secondary-button {
    background-color: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.peppol-knowledge-base .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Zoekresultaten styling */
.peppol-knowledge-base .kb-search-loading,
.peppol-knowledge-base .kb-search-results {
    /* ... rest van search styling ... */
}

/* Responsive */
@media (max-width: 1200px) {
    .peppol-knowledge-base .kb-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .peppol-knowledge-base .kb-articles {
        grid-template-columns: 1fr;
    }
    
    .peppol-knowledge-base .knowledge-base-header h1 {
        font-size: 2.5rem;
    }
    
    .peppol-knowledge-base .cta-buttons {
        flex-direction: column;
    }
    
    .peppol-knowledge-base .kb-cta {
        padding: 40px 25px;
    }
}

/* =========================================
   KB OVERZICHT: header full-width + breadcrumb in blauw
   (scoped via body:has(.peppol-knowledge-base))
   ========================================= */

/* 1) Maak het blauwe headerblok full width (break out of theme container) */
body:has(.peppol-knowledge-base) .peppol-knowledge-base .knowledge-base-header{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 2) Breadcrumb (Enfold/algemeen) ook full width + zelfde blauwe achtergrond */
body:has(.peppol-knowledge-base) #top .breadcrumb,
body:has(.peppol-knowledge-base) #top .avia-breadcrumbs,
body:has(.peppol-knowledge-base) #top .breadcrumb_trail{
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 18px 0 0;           /* ruimte boven */
  border: none !important;
}

/* 3) Zorg dat breadcrumb inhoud netjes binnen 1200px valt zoals je header container */
body:has(.peppol-knowledge-base) #top .breadcrumb .container,
body:has(.peppol-knowledge-base) #top .avia-breadcrumbs .container,
body:has(.peppol-knowledge-base) #top .breadcrumb_trail .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 4) Links/separators in breadcrumb wit */
body:has(.peppol-knowledge-base) #top .breadcrumb a,
body:has(.peppol-knowledge-base) #top .avia-breadcrumbs a,
body:has(.peppol-knowledge-base) #top .breadcrumb_trail a{
  color: rgba(255,255,255,0.95) !important;
  text-decoration: none;
}
body:has(.peppol-knowledge-base) #top .breadcrumb a:hover,
body:has(.peppol-knowledge-base) #top .avia-breadcrumbs a:hover,
body:has(.peppol-knowledge-base) #top .breadcrumb_trail a:hover{
  text-decoration: underline;
}

/* 5) Laat breadcrumb en header “aan elkaar plakken” (geen witte strook ertussen) */
body:has(.peppol-knowledge-base) #top .breadcrumb,
body:has(.peppol-knowledge-base) #top .avia-breadcrumbs,
body:has(.peppol-knowledge-base) #top .breadcrumb_trail{
  margin-bottom: -1px; /* voorkomt 1px naad */
}
body:has(.peppol-knowledge-base) .peppol-knowledge-base .knowledge-base-header{
  padding-top: 40px; /* iets minder omdat breadcrumb nu erboven zit */
}

/* Mobile: breadcrumb iets compacter */
@media (max-width: 768px){
  body:has(.peppol-knowledge-base) #top .breadcrumb,
  body:has(.peppol-knowledge-base) #top .avia-breadcrumbs,
  body:has(.peppol-knowledge-base) #top .breadcrumb_trail{
    padding: 12px 0 0;
    font-size: 0.9rem;
  }
}
