/* ========================================
   Kennisbank - overzicht (Aqua+ style, Black/Red)
   Proporties: content ~80% gecentreerd (max 1180px), ~10% marges
   ======================================== */

.kb-hero {
    margin-top: 80px;
    background: var(--bg-dark);
    color: var(--white);
    padding: 96px 0 80px;
}

.kb-hero-inner {
    width: 82%;
    max-width: 1180px;
    margin: 0 auto;
}

.kb-hero-label {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.kb-hero h1 {
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1px;
    max-width: 800px;
    margin: 0 0 22px;
}

.kb-hero p {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
}

/* Grid */
.kb-section {
    width: 82%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 0 96px;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border: 1px solid #ebebeb;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.kb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
    border-color: transparent;
}

.kb-card-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f4;
}

.kb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kb-card:hover .kb-card-img {
    transform: scale(1.06);
}

.kb-card-body {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kb-card-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.kb-card-title {
    font-family: "pill-gothic-900mg", 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.22;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.kb-card-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 22px;
    flex: 1;
}

.kb-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.kb-card-link .arrow {
    transition: transform 0.3s ease;
}

.kb-card:hover .kb-card-link .arrow {
    transform: translateX(5px);
}

/* Article extra (gebruikt verder project-detail.css .pd-*) */
.pd-article .pd-text-block-inner ul {
    margin: 0 0 18px;
    padding-left: 20px;
    color: #6b7275;
    font-size: 17px;
    line-height: 1.7;
}

.pd-article .pd-text-block-inner ul li {
    margin-bottom: 8px;
}

/* ========================================
   Kennisbank-artikel: FAQ-accordion (details/summary, geen JS)
   ======================================== */
.pd-faq {
    max-width: 1480px;
    margin: 0 auto;
    padding: 26px 50px;
}

.pd-faq-inner {
    margin-left: 6%;
    max-width: 900px;
}

.pd-faq-inner > h2 {
    font-family: "pill-gothic-900mg", 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.pd-faq details {
    border-top: 1px solid #e2dede;
}

.pd-faq details:last-of-type {
    border-bottom: 1px solid #e2dede;
}

.pd-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    font-family: "pill-gothic-900mg", 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.pd-faq summary::-webkit-details-marker { display: none; }

.pd-faq summary::after {
    content: '+';
    color: var(--accent);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

.pd-faq details[open] summary::after { content: '\2013'; }

.pd-faq details p {
    font-size: 18px;
    line-height: 1.75;
    color: #6b7275;
    margin: 0 0 22px;
    max-width: 94%;
}

/* ========================================
   Kennisbank-artikel: gerelateerde artikelen (hergebruikt .kb-card)
   ======================================== */
.pd-related-kb {
    max-width: 1480px;
    margin: 0 auto;
    padding: 48px 50px 8px;
}

.pd-related-kb > h2 {
    font-family: "pill-gothic-900mg", 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin: 0 0 28px;
}

@media (max-width: 1024px) {
    .kb-hero { padding: 72px 0 56px; margin-top: 70px; }
    .kb-hero-inner, .kb-section { width: 88%; }
    .kb-section { padding: 56px 0 72px; }
    .kb-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
    .pd-faq, .pd-related-kb { padding-left: 32px; padding-right: 32px; }
    .pd-faq-inner { margin-left: 0; }
    .pd-related-kb .kb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .kb-hero-inner, .kb-section { width: 90%; }
    .kb-grid { grid-template-columns: 1fr; gap: 26px; }
    .kb-hero { padding: 52px 0 44px; }
    .kb-section { padding: 40px 0 52px; }
    .kb-hero h1 { font-size: clamp(30px, 8vw, 40px); }
    .pd-faq, .pd-related-kb { padding-left: 22px; padding-right: 22px; }
    .pd-related-kb .kb-grid { grid-template-columns: 1fr; }
}
