/* ======================== */
/* Algemene instellingen    */
/* ======================== */

body, html {
    margin: 0;                     /* Verwijdert standaard marges */
    padding: 0;                    /* Verwijdert standaard padding */
    font-family: Arial, sans-serif; /* Bepaalt het lettertype voor de hele website */
    background-color: #f4f4f4;     /* Lichtgrijze achtergrondkleur */
}


/* ======================== */
/* Header en Banner         */
/* ======================== */

header {
    position: relative;           /* Laat andere elementen (zoals titel/logo) eroverheen positioneren */
    width: 100%;                  /* Volledige breedte */
    height: 250px;                /* Hoogte van de banner */
    overflow: hidden;            /* Voorkomt overloop van afbeelding of tekst */ 
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#random-banner {
    width: 100%;                 /* Past breedte aan op container */
    height: 100%;                /* Past hoogte aan op container */
    object-fit: cover;           /* Zorgt dat de afbeelding het hele vlak opvult zonder vervorming */
}

.site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centreert de titel precies */
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Zorgt voor leesbaarheid op lichte banners */
}

/* Logo met witte achtergrond voor zichtbaarheid */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.85); /* Witte transparante achtergrond */
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 1001;
}

.logo-container img {
    height: 100px; /* Standaard: desktop en tablets */
}

/* Voor mobiel kleiner dan 600px breed */
@media (max-width: 600px) {
    .logo-container img {
        height: 60px; /* Kleinere hoogte op smartphones */
    }
}



/* ======================== */
/* Navigatiebalk            */
/* ======================== */

nav {
    background-color: #004488;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
    z-index: 1000; /* Zorgt dat nav boven andere content ligt */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links li a img {
    width: 24px;
    height: 24px;
}

.nav-links li a:hover {
    background-color: #003366;
}

/* Hamburger-menu (mobiel) */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ======================== */
/* Mobiele weergave menu    */
/* ======================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #004488;
        position: fixed;
        top: 60px; /* Onder de header */
        left: 0;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        z-index: 1000; /* Zorgt dat het menu boven content ligt */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-active {
        display: flex;
    }
}


/* ======================== */
/* Pagina layout (main)     */
/* ======================== */

main {
    padding: 20px;                /* Ruimte rondom content */
    max-width: 900px;             /* Beperkt breedte voor leesbaarheid */
    margin: auto;                 /* Centreert inhoud */
    position: relative;
    z-index: 1;                   /* Zorgt dat main-content onder het mobiele menu blijft */
}


/* ======================== */
/* Blogposts (Nieuwsitems)  */
/* ======================== */

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.blog-post {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
    max-width: 100%;
}

.blog-post img {
    width: 30%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-content {
    width: 65%;
    text-align: left;
}

.blog-content h3 {
    margin-top: 0;
}

.blog-content p {
    margin-bottom: 10px;
}

.blog-content a {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.blog-content a:hover {
    text-decoration: underline;
}


/* ======================== */
/* Modals (Pop-ups)         */
/* ======================== */

.modal {
    display: none; /* Verberg standaard */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparant zwart */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 500px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}


/* ======================== */
/* Footer                   */
/* ======================== */

footer {
    text-align: center;
    background-color: #002244;
    color: white;
    padding: 15px;
    margin-top: 20px;
}


/* ======================== */
/* Contactformulier         */
/* ======================== */

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 15px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}
