/* ==========================================================================
   1. ALGEMENE INSTELLINGEN (BODY & BASIS)
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F9F6F0; /* Rustgevende, zachte achtergrond */
    color: #1A2B3C; /* Zacht donkerblauwe tekst (geen hard zwart) */
    font-family: 'Inter', 'Open Sans', 'Lato', sans-serif; 
    font-size: 18px; 
    line-height: 1.65; 
    letter-spacing: 0.01em; 
}

/* Titels en kopjes voor een duidelijke structuur */
h1, h2, h3 {
    color: #0E1A24; 
    margin-top: 1.8em; 
    margin-bottom: 0.6em;
    line-height: 1.3;
}

/* Instellingen voor de tekstcontainers */
.content-container {
    max-width: 680px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Algemene container voor extra opvallen (zoals tips) */
.container {
    background: #f3e3c4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* ==========================================================================
   2. DE LUXE SIDEBAR & HOVER SUBMENU
   ========================================================================== */
.luxury-sidebar {
    height: 100vh;
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #11141a; /* Luxe diep donkergrijs */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

/* Elegant logo */
.sidebar-brand a {
    text-decoration: none;
}

.sidebar-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 20px 15px;
    background: linear-gradient(135deg, #fff 0%, #a6a6a6 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* Stijl van de hoofdmenu knoppen */
.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: #8a8f98; /* Rustig, elegant grijs */
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-item .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Hover-effect hoofdmenu: tekst licht op en icoon schuift fractie op */
.menu-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.menu-item:hover .icon {
    transform: translateX(3px);
}

/* Actieve knop met verfijnd goudkleurig verloop */
.menu-item.active, .main-kennisbank.active {
    color: #d4af37 !important; /* Luxe goudtint */
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.02) 100%) !important;
    border-left: 2px solid #d4af37 !important;
    font-weight: 500;
}

.menu-item.active .icon, .main-kennisbank.active .icon {
    color: #d4af37 !important;
}

/* --- SUBMENU HOVER SYSTEM --- */
.menu-item-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-kennisbank {
    cursor: pointer;
}

/* Het submenu is standaard onzichtbaar en dwingt een verticale lijst af */
.submenu {
    display: none !important;
    flex-direction: column !important; 
    align-items: flex-start !important; 
    padding-left: 53px;
    gap: 12px; 
    margin-top: 6px;
    margin-bottom: 12px;
    width: 100%; 
}

/* Als je over de container hovert OF als JS de pagina actief maakt (.open) -> tonen! */
.menu-item-container:hover .submenu,
.submenu.open {
    display: flex !important;
}

/* De losse subknoppen styling */
.submenu-item {
    color: #8a8f98; 
    text-decoration: none;
    font-size: 14px; 
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: block; 
    width: 100%;
}

/* Hover-effect voor de subknoppen */
.submenu-item:hover {
    color: #d4af37; 
    transform: translateX(4px); 
}

/* Actieve subpagina status */
.submenu-item.active {
    color: #d4af37 !important;
    font-weight: 500;
}

/* --- PROFIEL & COPYRIGHT ONDERAAN --- */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #d4af37;
    color: #11141a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    color: #626770;
    font-size: 12px;
}

.sidebar-copy {
    color: #ffffff;
    font-size: 12px;
    margin: 10px 0px 0px 0px;
}


/* ==========================================================================
   3. CONTENT LAYOUT & HOME-AFBEELDING
   ========================================================================== */
.content-wrapper {
    flex: 1 0 auto;
    margin-left: 200px; /* Ruimte voor de fixed zijbalk */
    padding: 40px;
    padding-bottom: 80px; 
    box-sizing: border-box; 
}

/* Home afbeelding container */
.home-afbeelding {
    max-width: 800px; 
    margin: 20px auto;
    border: 1px solid #ffffff; 
    border-radius: 20px;
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-afbeelding img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gekleurde tekstbalk onder afbeelding */
.tekst-balk {
    background-color: #f3e3c4; 
    color: #1A2B3C; 
    padding: 15px; 
    text-align: center; 
    font-family: Arial, sans-serif;
    font-size: 16px;
}


/* ==========================================================================
   4. BLOG STRUCTUUR
   ========================================================================== */
header {
    background-color: #e4e4e4;
    padding: 20px;
}

.blog-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-hoofd {
    flex: 3;
    min-width: 300px;
}

.blog-post {
    background: #f3e3c4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-post img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.meta-data {
    font-size: 0.9rem;
    color: #777;
    margin: 5px 0 15px 0;
}

.lees-meer {
    display: inline-block;
    margin-top: 15px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

/* Blog Rechter-zijbalk */
.sidebar {
    flex: 1;
    min-width: 250px;
    background: #f3e3c4;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}


/* ==========================================================================
   5. CONTACT FORMULIER
   ========================================================================== */
.contact-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f3e3c4;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.form-group input, 
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}

/* Gekleurde, asymmetrische verstuurknop */
.submit-btn {
    background: #D97C65;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #fa9177;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (VOOR TELEFOONS EN TABLETS) - GECORRIGEERD
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Maak van de zijbalk een strakke bovenbalk */
    .luxury-sidebar {
        height: auto;
        width: 100%;
        position: relative;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Logo netjes gecentreerd met wat ademruimte */
    .sidebar-brand {
        margin: 0 0 20px 0;
        text-align: center;
        width: 100%;
    }
    
    .sidebar-brand a {
        display: inline-block;
    }

    /* Dwing de menuknoppen strak en georganiseerd ONDER elkaar */
    .sidebar-menu {
        flex-direction: column !important;
        gap: 4px;
        width: 100%;
    }

    /* Geef de knoppen een rustige, paginabrede look */
    .menu-item {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start; /* Icoontje en tekst netjes links */
        border-bottom: 1px solid rgba(255, 255, 255, 0.02); /* Subtiel lijntje */
        border-radius: 8px;
    }
    
    /* Verwijder het lijntje bij de actieve status om overlapping te voorkomen */
    .menu-item.active, .main-kennisbank.active {
        border-left: 2px solid #d4af37 !important;
    }

    /* Container voor de kennisbank */
    .menu-item-container {
        width: 100%;
    }

    /* Het submenu op mobiel: springt iets in voor een duidelijke boomstructuur */
    .submenu {
        padding-left: 45px !important;
        margin-top: 4px;
        margin-bottom: 8px;
        gap: 10px;
        align-items: flex-start !important;
        background: rgba(255, 255, 255, 0.01);
        padding: 12px 12px 12px 45px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .submenu-item {
        text-align: left;
        font-size: 13px;
        padding: 4px 0;
        width: 100%;
    }

    /* Haal de grote linkermarge van de content weg */
    .content-wrapper {
        margin-left: 0 !important;
        padding: 20px;
    }

    /* Verberg zware elementen op mobiel */
    .sidebar-user, .sidebar-copy {
        display: none !important;
    }

    /* Klap blog en contact netjes onder elkaar */
    .blog-container {
        flex-direction: column;
    }
    
    .contact-container {
        margin: 1rem auto;
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
}