/* Universal border-box with inheritance*/
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Titels verbergen */
.hiddenTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    left: -10000px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation styling */
header {
    background-color: #f4f4f4;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    float: left;
    color: #343434;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #343434;
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #6495EDFF;
}

.nav-foto {
    width: 3rem;
    height: auto;
    border-radius: 50%;
    margin-left: -18rem;
}

/* Main styling */
.informatie h3 {
    margin-top: 20px;
    font-size: 1.75em;
    color: #333;
}

.about-section {
    padding: 50px 0;
    text-align: center;
    background-color: lightgray;
}

section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

article p {
    margin-bottom: 1rem;
}

.info-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.informatie {
    width: 30%;
    margin-bottom: 20px;
    text-align: left;
}

.profielfoto {
    width: 15rem;
    height: auto;
    border-radius: 50%;
}

.profielfoto:hover {
    border: 2px solid black;
    transform: scale(1.2);
}


/* Footer Styling */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "Opleiding SocialMedia Contact";
    gap: 1rem;
    padding: 2rem;
    background-color: #333;
    color: white;
    text-align: center;
}

footer section {
    background-color: #555;
}

footer section:nth-child(1) {
    grid-area: Opleiding;
}

footer section:nth-child(2) {
    grid-area: SocialMedia;
}

footer section:nth-child(3) {
    grid-area: Contact;
}

footer section {
    padding: 1rem;
}

footer h3 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

footer a {
    color: #f0f0f0;
    text-decoration: none;
}

footer a:hover {
    color: #6495EDFF;
}

footer ul {
    list-style: none;
    padding: 0;
}

/* Space tussen elke grid */
footer ul li {
    margin: 0.5rem 0;
}

/* Footer text buiten de grid */
footer > p {
    grid-column: 1 / -1; /* Neemt de volledige breedte van de grid in */
    margin-top: 2rem;
    font-size: 0.9em;
    border-top: 2px solid #555; /* Zorgt voor die grijze lijn boven de <p></p> */
    padding-top: 1rem;
}

/* MediaQueries */
/* Voor kleine schermen (tablets en telefoons) */
@media (max-width: 1140px) {
    .container {
        width: 95%;
    }

    header h1, header nav {
        float: none;
        text-align: center;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .info-grid {
        flex-direction: column;
    }

    .informatie, h3 {
        width: 100%;
    }

    h3 {
        text-align: center;
    }

    footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "Opleiding"
            "SocialMedia"
            "Contact";
    }

    footer section {
        margin-bottom: 1rem;
    }
}
