/* 
 * Kennisbank Base Styles
 * Gemeenschappelijke styling voor alle kennisbank artikelen
 * Gebruikt door alle 18+ kennisbank pagina's
 */

/* CSS Variabelen */
:root {
    --primary: #d2691e;
    --secondary: #173752;
    --light: #f8f9fa;
    --grey: #667788;
    --light-grey: #e9ecef;
    --border: #dee2e6;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Sectie */
.knowledge-base-header {
    background-color: #173752;
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.knowledge-base-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

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

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

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

/* Content Secties */
.content-section {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-grey);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(210, 105, 30, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.content-section h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 30px 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection-icon {
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.content-section h4 {
    color: var(--secondary);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.content-section p {
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    margin: 15px 0 15px 20px;
    color: var(--grey);
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* CTA Sectie */
.kb-cta {
    margin-top: 15px;
    background-color: var(--secondary);
    border-radius: 15px;
    padding: 30px 50px 0px 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.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;
}

.primary-button:hover {
    background-color: #b85c1a;
    transform: translateY(-2px);
    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;
}

/* Breadcrumb Navigatie */
.knowledge-base-header .breadcrumb {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: white;
}

.knowledge-base-header .breadcrumb a {
    color: white !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.knowledge-base-header .breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.knowledge-base-header .breadcrumb .separator {
    margin: 0 10px;
    color: white;
    opacity: 0.6;
}

.knowledge-base-header .breadcrumb .current {
    color: white;
    opacity: 0.6;
}

/* Terug Knop */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    gap: 12px;
    text-decoration: none;
}

.back-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

/* Related Pages Section */
.related-pages {
    background-color: white;
    border-radius: 15px;
     padding: 30px 40px 20px 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.related-pages h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-pages-intro {
    color: var(--grey);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 0px;
}

.related-card {
    background-color: white;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.related-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    background-color: rgba(210, 105, 30, 0.1);
    color: var(--primary);
}

.related-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.related-card p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.related-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.related-link:hover {
    gap: 12px;
    text-decoration: none;
}

.related-link svg {
    width: 16px;
    height: 16px;
}

/* Navigation Buttons */
.kb-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 0;
    width: 100%;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-button:last-child {
    margin-left: auto;
}

.nav-button:hover {
    gap: 12px;
    text-decoration: none;
}

.nav-button svg {
    width: 18px;
    height: 18px;
}

/* Content Area - Custom Bullets & Numbering */
.entry-content ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 25px;
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 7px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, var(--primary) 0%, #e8643c 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(210, 105, 30, 0.2);
}

.entry-content ol {
    list-style: none;
    counter-reset: custom-counter;
    margin-left: 0;
    margin-bottom: 25px;
    padding-left: 0;
}

.entry-content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    line-height: 1.7;
    counter-increment: custom-counter;
}

.entry-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #e8643c 100%);
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(210, 105, 30, 0.3);
}

.entry-content ul ul,
.entry-content ol ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

.entry-content ul ul li::before {
    width: 7px;
    height: 7px;
    top: 12px;
    background: rgba(210, 105, 30, 0.6);
    box-shadow: none;
}

.entry-content ul li:hover::before {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(210, 105, 30, 0.4);
    transition: all 0.2s ease;
}

.entry-content ol li:hover::before {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(210, 105, 30, 0.4);
    transition: all 0.2s ease;
}

/* Responsive Basis */
@media (max-width: 768px) {
    .knowledge-base-header h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .kb-cta {
        padding: 40px 25px;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-icon {
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .kb-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-button:last-child {
        margin-left: 0;
    }
}

