/* ALL PAGES */

/* Page Parts */
main {
    margin-top: 20px;
    padding-bottom: 15px;
    /* flex-direction: column; */
}

header {
    background-color: #D3DFCE; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    position: relative;
    height: 145px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #E7EDE5;
    color: #097C69;
}

/* Logo */
.logo {
    height: 100px;
    padding-left: 100px;
}

/* Navigation */
nav {
    display: flex;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #1A584F;
    margin: 5px;
}

/* Info Box */
.box-info {
    max-width: 1024px;
    width: 75%;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PAGE SPECIFIC */
/* Index */
video {
    max-width: calc(1024px + 60px); /* Houdt rekening met de padding */
    width: calc(75% + 60px); /* Houdt rekening met de padding */
    margin: 50px auto; /* Houdt dezelfde marges als .box-info */
    display: block;
    border-radius: 15px;
    object-fit: contain; /* Zorgt dat de video goed past */
    height: auto; /* Houdt de juiste aspect-ratio */
}

/* multiple */
.linkedin-btn {
    display: inline-block;
    background-color: #1A584F;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.section-image-large {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.large-img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #1A584F;
}

/* Team */
.team-container {
    max-width: 1024;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 20px;
}


.teambox {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 22%; 
    min-width: 250px;
    max-width: 300px;
    margin: 10px;
}

.teambox img {
    width: 150px; 
    height: 100px;
    border-radius: 15%; 
    object-fit: cover;
}

.articles-layout {
    display: flex;
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Linkerzijde: Artikellijst */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    max-width: 40%;
    min-width: 300px; 
}

.article-box, .paper-box {
    width: 350px; /* Vaste breedte */
    min-width: 350px; /* Mag niet kleiner worden */
    max-width: 350px; /* Mag niet groter worden */
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.article-box{
    cursor: pointer;
}

.paper-box {
    cursor: default; /* Zorgt ervoor dat de pointer niet verschijnt */
}

.article-box:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Rechterzijde: Volledig artikel weergeven */
.full-article {
    flex: 2;
    background: white;
    padding: 30px;  /* Extra padding om tekst van de rand te houden */
    border-radius: 10px;
    max-width: 1500px;
    min-height: 300px;
    height: auto; /* Laat de hoogte zich aanpassen aan de inhoud */
    overflow-y: auto; /* Scroll indien nodig */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Zorgt ervoor dat tekst van boven begint */
    text-align: center; /* Maak de tekst links uitgelijnd voor een beter leesbare layout */
    transition: all 0.3s ease-in-out;
}

.full-article #article-title, 
.full-article #article-author, 
.full-article #article-link {
    text-align: center;
}

/* Standaard: tekst gecentreerd */
.full-article #article-content {
   text-align: center;
}

/* Na klikken op een artikel: tekst links uitlijnen */
.full-article.article-loaded #article-content {
    padding: 20px; /* Extra ruimte rond de tekst */
    max-width: 90%; /* Zorgt ervoor dat de tekst niet te breed wordt */
    margin: 0 auto; /* Centreert de tekstinhoud binnen het vak */
    text-align: left;
}

.article-link {
    display: inline-block;
    background-color: #1A584F;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.article-link:hover {
    background-color: #0c6a5a;
}

.read-more {
    display: inline-block;
    background: #1A584F;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
}

.read-more:hover {
    background: #097C69;
}

.full-article #article-link {
    display: inline-block; /* Zorgt dat de breedte zich aanpast aan de inhoud */
    padding: 10px 20px; /* Geef de knop een consistente padding */
    text-align: center; /* Zorgt ervoor dat de tekst goed gecentreerd blijft */
    margin: 20px auto; /* Centreert de knop horizontaal */
    width: auto; /* Houdt de breedte van de inhoud */
    white-space: nowrap; /* Voorkomt dat de tekst over meerdere regels breekt */
}

footer {
    background-color: #D3DFCE; /* Zelfde kleur als header */
    padding: 10px 0; /* Smalle hoogte */
    text-align: center;
    font-size: 14px;
    color: #1A584F; /* Zelfde kleur als menu tekst */
    margin-top: 30px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    display: flex;
    gap: 15px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    text-decoration: none;
    color: #1A584F;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #097C69; /* Groen effect bij hover */
}
/* Behaviour */
@media screen and (max-width: 1024px) {
    .articles-layout {
        flex-direction: column;
        align-items: center;
    }

    .articles-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Zorg ervoor dat de artikelen in het midden blijven */
        max-width: 100%;
    }

    .article-box, .paper-box {
        flex: 1 1 calc(50% - 10px); /* Zorg voor twee kolommen op middelgrote schermen */
        max-width: 350px;
    }

    .full-article {
        width: 100%;
        padding: 0px;
        margin: 20px auto;
    }

    .logo {
        padding-left: 50px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 15px;
        background-color: #D3DFCE;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
        align-items: flex-end;
    }

    nav ul li {
        text-align: right;
        padding: 5px 10px;
    }

    nav ul li a {
        text-decoration: none;
        /*color: #1A584F; */
        color: black;
        font-weight: bold;
        font-size: 18px;
        display: block;
    }

    .teambox {
        width: 90%; 
    }

    .articles-layout {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 10px; /* Voorkom dat elementen buiten het scherm vallen */
        box-sizing: border-box;
    }

    .articles-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 90%;
    }

    .article-box, .paper-box {
        width: 100%;
        max-width: 350px; /* Houd artikelen consistent */
        margin: 10px auto; /* Centreer ze */
    }

    .full-article {
        width: 100%;
        max-width: 90%;
        padding: 20px;
        margin: 20px auto;
        text-align: center;
        box-sizing: border-box;
    }

    .logo {
        padding-left: 25px; 
    }
}

@media screen and (max-width: 480px) {   
    body {
        overflow-x: hidden; /* Voorkom horizontale scroll */
    }

    .articles-layout {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 5px; /* Minder padding om binnen 360px te passen */
        box-sizing: border-box;
    }

    .articles-list {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .article-box,.paper-box,
    .full-article {
        width: 90%;
        max-width: 320px;
        margin: 10px auto;
        padding: 15px; /* Zorg dat beide dezelfde padding hebben */
        box-sizing: border-box; /* Zorg dat padding en border geen extra breedte toevoegen */
        border-radius: 10px;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        padding-left: 5px;
    }
}
