/* Simpele, mobielvriendelijke styling */
img {
    max-width: 100%;
    height: auto;
}

/* Masthead afbeelding */
.masthead-image {
    display: block;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 5px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #fdfdfd;
    color: #333;
    -webkit-text-size-adjust: 100%;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}
.site-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}
.site-header h1, .site-header a {
    color: #333;
    text-decoration: none;
    margin: 0;
}
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.main-content {
    flex: 1;
    min-width: 65%;
}
.sidebar {
    flex-basis: 300px;
    flex-grow: 1;
}
article h1 { margin-top: 0; }
.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1.5rem;
}
.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.post-body p {
    margin-bottom: 1rem;
}
.post-body {
    overflow-wrap: break-word;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.post-body pre {
    overflow-x: auto;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
}
.post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.post-body table th, .post-body table td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.6rem;
}
.widget {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}
.widget h3 { margin-top: 0; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.5rem; }
.widget a { text-decoration: none; color: #007bff; }
.widget a:hover { text-decoration: underline; }

/* Zoekformulier */
.widget form { display: flex; gap: 0.5rem; }
.widget form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.widget form button {
    padding: 9px 12px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

/* Homepage pagination styling */
.homepage-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.pagination-prev,
.pagination-next {
    flex: 1;
}

.pagination-prev {
    text-align: left;
}

.pagination-next {
    text-align: right;
}

.homepage-pagination a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.homepage-pagination a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Pages menu styling */
.pages-menu {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 1rem 0;
    line-height: 2;
}

.pages-menu a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.pages-menu a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Zoekresultaten & archief */
.search-result, .archive-item {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

/* ===================== Mobiel ===================== */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }
    .site-header {
        padding: 1.25rem 0;
    }
    .site-header h1 {
        font-size: 1.5rem;
    }
    .masthead-image {
        max-height: 220px;
        margin-bottom: 1rem;
    }
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    .main-content {
        min-width: 100%;
    }
    .sidebar {
        flex-basis: auto;
        width: 100%;
    }
    article h1 {
        font-size: 1.4rem;
    }
    .pages-menu {
        font-size: 13px;
        padding: 0.75rem 0;
    }
    .homepage-pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    .pagination-prev,
    .pagination-next {
        flex: none;
        width: 100%;
        text-align: center;
    }
    .widget form input[type="search"] {
        width: auto;
    }
    .post-body pre {
        padding: 0.75rem;
    }
}
