/* ==========================================================================
   LAYOUT.CSS
   ========================================================================== */

/* Header & Logo Uitlijning */
header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 10px 0;
}

header h1 a {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 65px !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0;
    border-radius: 12px;
}

.site-title {
    font-size: 2.2rem;
    color: white;
    line-height: 1;
}

/* Navigatie Desktop */
.main-nav {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

/* Hoofdcontainer */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Info Blokken (Tekst + Beeld) */
.info-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.info-block.reverse {
    flex-direction: row-reverse;
}

.info-block .text, .info-block .image {
    flex: 1;
}

.info-block p, .info-block ul li {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-block .image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* ===== FLEXIBEL GRID VOOR LINK-BLOKKEN ===== */
/* Dit zorgt ervoor dat witruimte aan de zijkanten wordt opgevuld */
.links-container {
    display: flex;
    flex-wrap: wrap;      /* Laat items naar de volgende regel gaan */
    gap: 20px;            /* Ruimte tussen de blokken */
    margin-bottom: 5rem;
    justify-content: center;
}

.link-block {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    
    /* MAGIE: Groeit (1), krimpt (1) en basisbreedte is 300px */
    /* Hierdoor worden ze groter om de rij volledig te vullen */
    flex: 1 1 300px; 
    
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.link-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.link-image img {
    width: 100%;
    height: 200px;     /* Vaste hoogte voor uniformiteit */
    object-fit: cover; /* Voorkomt vervorming van de foto */
    display: block;
}

.link-text {
    padding: 1.5rem;
    flex-grow: 1;      /* Zorgt dat alle tekstvakken in een rij even hoog zijn */
    display: flex;
    flex-direction: column;
}

.link-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
}

.link-text p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Aanpassing voor mobiele schermen onder 1440px */
@media (max-width: 1440px) {
    .info-block {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .info-block.hero {
        padding: 2rem 1rem;
    }
}

/* Aanpassing voor hele smalle schermen */
@media (max-width: 480px) {
    .link-block {
        flex-basis: 100%; /* Op kleine telefoons gewoon 1 per rij */
    }
}