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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #222222;
    line-height: 1.6;
    font-size: 15px;
}

/* Header & Banner */
header {
    background-color: #343d73;
    width: 100%;
    padding-top: 15px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-wrapper {
    width: 100%;
    text-align: center;
}

.banner-wrapper img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

/* Navigatie Menu & Submenu's */
nav {
    background-color: #343d73;
    padding: 12px 0;
}

nav > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 4px 4px 8px;
    border-left: 2px solid transparent;
    display: inline-block;
    transition: all 0.2s ease;
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
    border-left: 2px solid #ffffff;
}

/* Dropdown Submenu */
nav ul li ul.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a325e;
    min-width: 210px;
    list-style: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    z-index: 1000;
    padding: 6px 0;
    border-top: 2px solid #ffffff;
}

nav ul li:hover > ul.submenu {
    display: block;
}

nav ul li ul.submenu li a {
    display: block;
    padding: 8px 16px;
    border-left: none;
    font-size: 14px;
    white-space: nowrap;
}

nav ul li ul.submenu li a:hover,
nav ul li ul.submenu li a.active {
    background-color: #3f4a8a;
    border-left: none;
}

/* Hoofdinhoud */
main {
    padding: 35px 20px 60px 20px;
    min-height: 450px;
}

.content-body h2, .content-body h3 {
    color: #343d73;
    margin: 22px 0 10px 0;
}

.content-body p, .content-body div {
    margin-bottom: 14px;
}

.content-body ul, .content-body ol {
    margin: 0 0 16px 25px;
}

.content-body a {
    color: #1a4b8c;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.content-body a:hover {
    color: #343d73;
}

/* Opsommingsblokken met Fotoreeks */
.foto-reeks-blok {
    margin: 28px 0 36px 0;
    padding: 20px;
    background: #f8f9fc;
    border-left: 4px solid #343d73;
    border-radius: 4px;
}

.foto-reeks-blok h3 {
    margin-top: 0;
    color: #343d73;
    font-size: 19px;
}

.foto-reeks-omschrijving {
    margin-bottom: 15px;
    color: #333;
}

.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.foto-kaart {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foto-kaart:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.foto-kaart img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.foto-kaart span {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: #444;
    text-align: center;
    background: #fff;
}

/* Lijst met Popuplinks */
.popup-lijst-blok {
    margin: 25px 0;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #d5dce8;
    border-radius: 5px;
}

.popup-lijst-blok h3 {
    margin-top: 0;
    color: #343d73;
    margin-bottom: 12px;
}

.popup-lijst-blok ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-lijst-blok ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-lijst-blok ul li:last-child {
    border-bottom: none;
}

.popup-lijst-blok ul li::before {
    content: "▸";
    color: #343d73;
    font-weight: bold;
}

/* Inline Iframe container */
.inline-iframe-box {
    margin: 25px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.inline-iframe-header {
    background: #343d73;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.inline-iframe-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.inline-iframe-box iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Footer */
footer {
    border-top: 1px solid #d0d0d0;
    padding: 20px 0 40px 0;
    text-align: center;
    font-size: 14px;
    color: #333;
    position: relative;
}

footer a {
    color: #1a4b8c;
    text-decoration: underline;
}

.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scroll-top-btn:hover {
    background: #f0f0f0;
}

/* Popup Modal voor Webpagina's / Links */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-window {
    background: #fff;
    width: 90%;
    max-width: 920px;
    height: 82vh;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.modal-header {
    background: #343d73;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex: 1;
    width: 100%;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox Popup voor Vergrote Foto's */
.foto-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.foto-lightbox img {
    max-width: 92%;
    max-height: 82vh;
    border: 3px solid #fff;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.foto-lightbox-caption {
    color: #fff;
    margin-top: 12px;
    font-size: 16px;
    text-align: center;
}

.foto-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 38px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
/* Ledenlijst Overzicht */
.leden-lijst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 25px 0;
}

.lid-kaart-knop {
    background: #f8f9fc;
    border: 1px solid #d5dce8;
    border-left: 4px solid #343d73;
    border-radius: 4px;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lid-kaart-knop:hover {
    background: #eef2f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.lid-kaart-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.lid-kaart-naam {
    font-size: 16px;
    font-weight: 600;
    color: #343d73;
    display: block;
}

.lid-kaart-sub {
    font-size: 13px;
    color: #555;
    display: block;
}

/* Lid Popup (Naam, Pasfoto, Verhaal, Fotoreeks) */
.lid-modal-window {
    background: #fff;
    width: 92%;
    max-width: 880px;
    max-height: 88vh;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.lid-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.lid-profiel-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lid-pasfoto {
    width: 170px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.lid-verhaal {
    flex: 1;
    line-height: 1.65;
    color: #222;
}

.lid-reeks-titel {
    color: #343d73;
    border-top: 1px solid #e0e4ec;
    padding-top: 18px;
    margin-bottom: 14px;
    font-size: 17px;
}

@media (max-width: 640px) {
    .lid-profiel-top {
        flex-direction: column;
    }
    .lid-pasfoto {
        width: 140px;
    }
}
/* Album-link knop in de Lid Popup */
.lid-album-balk {
    margin: 14px 0 18px 0;
}

.lid-album-knop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #343d73;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.lid-album-knop:hover {
    background-color: #242b54;
}

/* Subtiele versieweergave in de footer */
.site-versie {
    display: inline-block;
    margin-left: 14px;
    font-size: 12px;
    color: #777777;
}/* Programma Tabel */
/* Programma Tabel (Onderwerp eerst + ruime kolomafstand) */
.programma-tabel-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 22px 0 32px 0;
}

.programma-tabel {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
    border: 1px solid #d5dce8;
}

.programma-tabel thead th {
    background-color: #343d73;
    color: #ffffff;
    text-align: left;
    padding: 12px 38px 12px 16px;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.programma-tabel thead th:last-child {
    border-right: none;
    padding-right: 16px;
    white-space: normal;
}

.programma-tabel tbody td {
    padding: 11px 38px 11px 16px;
    border-bottom: 1px solid #e2e6f0;
    border-right: 1px solid #eef1f7;
    vertical-align: top;
    white-space: nowrap;
}

.programma-tabel tbody td:last-child {
    border-right: none;
    padding-right: 16px;
    white-space: normal;
}

.programma-tabel tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

.programma-tabel tbody tr:hover {
    background-color: #eef2f9;
}
/* Zorg dat de ingebedde .html / .php pagina altijd 100% van de containerbreedte inneemt */
main.container {
    display: block;
    width: 100%;
    max-width: 1140px; /* of dezelfde breedte als je banner/menu */
    box-sizing: border-box;
}

.ingebedde-pagina-wrapper {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 10px 0 25px 0;
    box-sizing: border-box;
}

.ingebedde-pagina-frame {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    min-height: 750px;
    border: none;
    background: transparent;
}