﻿/* ===========================================
   ALGEMENE STIJL
=========================================== */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background-color: #fff8e7;
    color: #333;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ===========================================
   HEADER & NAVIGATIE
=========================================== */
header {
    background-color: #ff6f61;
    padding: 1em;
    border-bottom: 4px dashed #4ecdc4;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

/* --- Menu items --- */
.nav-items {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
}

    .nav-items a {
        text-decoration: none;
        color: #fff;
        font-weight: bold;
    }

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background: #ffc5b3;
    border-radius: 8px;
    padding: 0.5em;
    top: 100%;
    left: 0;
    z-index: 10;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.5em;
    color: #333;
}

/* --- Hamburger menu --- */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    background: none;
    color: white;
    border: none;
}

/* ===========================================
   MOBIEL MENU
=========================================== */
@media (max-width: 768px) {
    .nav-items {
        display: none;
        flex-direction: column;
        background: #ff6f61;
        width: 100%;
        padding: 1em;
    }

        .nav-items.active {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .has-submenu.open .submenu {
        display: block;
        position: static;
    }
}

/* ===========================================
   CONTENT EN TITELS
=========================================== */
.content {
    padding: 2em;
    text-align: center;
}

    .content h1 {
        font-size: 2em;
        color: #ff6f61;
    }

/* ===========================================
   FOOTER
=========================================== */
footer {
    background-color: #4ecdc4;
    color: white;
    text-align: center;
    padding: 1em;
    border-top: 4px dashed #ff6f61;
}

/* ===========================================
   KENNISBANK OVERZICHT
=========================================== */
.kennisbank-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    padding: 2em 1em;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* --- Kaart (artikel) --- */
.kennisbank-item {
    position: relative;
    background-color: #fff8e7;
    border: 3px dashed #ff6f61;
    border-radius: 12px;
    width: 280px;
    padding: 1.5em 1em 1em;
    box-shadow: 4px 4px 0 #4ecdc4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}

    .kennisbank-item:hover {
        transform: translateY(-4px);
        box-shadow: 6px 6px 0 #4ecdc4;
    }

/* --- Domein label (sticker) --- */
.domein-sticker {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #ffca28, #ffb300);
    color: #333;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 2;
}

/* --- Tekst binnen kaart --- */
.kennisbank-text {
    text-align: center;
    margin-top: 10px;
}

    .kennisbank-text h3 {
        font-size: 1.3em;
        margin: 0.5em 0;
        color: #ff6f61;
    }

    .kennisbank-text .intro {
        font-size: 0.95em;
        color: #444;
    }

/* --- Afbeelding binnen kaart --- */
.kennisbank-image {
    text-align: center;
}

    .kennisbank-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        border: 2px solid #ffd3b6;
    }

/* --- Knop onder kaart --- */
.kennisbank-action {
    margin-top: 1em;
    text-align: right;
}

/* --- Verwijder onderlijning van titels en tekst --- */
.kennisbank-item a {
    text-decoration: none !important;
    color: inherit !important;
}

/* --- Alleen knop mag eruit springen --- */
.lees-artikel {
    background: #ff6f61;
    color: white !important;
    padding: 0.5em 1em;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
}

    .lees-artikel:hover {
        background: #e6594f;
        text-decoration: none !important;
    }


/* ===========================================
   ARTIKEL PAGINA
=========================================== */
.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 1em;
    color: #555;
}

    .breadcrumb a {
        text-decoration: none;
        color: #4ecdc4;
    }

.kennisbank-artikel h1 {
    color: #ff6f61;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.kennisbank-artikel .intro {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 1em;
}

.kennisbank-image img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1em 0;
}

.kennisbank-content {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.meta time {
    color: #999;
    font-size: 0.9em;
}


/* --- Responsieve layout voor kleinere schermen --- */
@media (max-width: 768px) {
    .kennisbank-grid {
        padding: 1em 0.5em;
        gap: 2.2em;
        max-width: 100%;
        justify-content: space-around;
    }

    .kennisbank-item {
        width: 95%;
        max-width: none;
    }
}
   
@media (max-width: 1024px) and (min-width: 769px) {
    .kennisbank-item {
        width: 45%;
    }
}
