* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #141416;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f0f0f0;
    overflow-x: hidden;
    display: flex;
}

/* --- Linkerkant: Header afbeelding + Logo + Gecurved Menu --- */
.sidebar {
    width: 280px;
    position: fixed;
    left: 0;
    top: 3%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-left: 0px;
    padding-bottom: 20px;
    z-index: 100;
    pointer-events: none;
}

.logo-container {
    pointer-events: auto;
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-header-img {
    width: 220px;
    height: auto;
    display: block;
}

.club-logo {
    width: 120px;
    height: auto;
    display: block;
}

.menu-curve {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Compacter gemaakt */
    pointer-events: auto;
    width: 100%;
}

.menu-item {
    position: relative;
    background: rgba(40, 38, 42, 0.85);
    color: #e8a0af;
    padding: 8px 20px; /* Compacter gemaakt in hoogte */
    border-radius: 0 35px 35px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem; /* Iets compacter qua tekstgrootte */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 6px solid #e8a0af;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Doorgetrokken golfbeweging voor alle 9 menu-items */
.menu-item:nth-child(1) { transform: translateX(0px); }
.menu-item:nth-child(2) { transform: translateX(6px); }
.menu-item:nth-child(3) { transform: translateX(12px); }
.menu-item:nth-child(4) { transform: translateX(17px); }
.menu-item:nth-child(5) { transform: translateX(20px); }
.menu-item:nth-child(6) { transform: translateX(17px); }
.menu-item:nth-child(7) { transform: translateX(12px); }
.menu-item:nth-child(8) { transform: translateX(6px); }
.menu-item:nth-child(9) { transform: translateX(0px); }

.menu-item:hover {
    transform: translateX(25px) scale(1.03);
    background: linear-gradient(135deg, #3d242c, #e8a0af);
    color: #ffffff;
    border-left-color: #ff6b81;
    box-shadow: 0 6px 25px rgba(232, 160, 175, 0.4);
}

/* --- Varkentje Animatie in het Menu --- */
.menu-pig {
    font-size: 1.2rem;
    margin-left: 10px;
    display: inline-block;
    animation: pigBounce 0.5s infinite alternate ease-in-out;
}

@keyframes pigBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-4px) rotate(8deg);
    }
}

/* --- Linker Sidebar Contact Container (Gecentreerd boven de knop) --- */
.sidebar-contact-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    pointer-events: auto;
    margin-top: auto;
    padding-bottom: 5px;
}

.sidebar-contact-container .right-bottom-text {
    margin: 0 auto;
    font-size: 0.75rem;
    color: #bbb;
    text-align: center;
    display: block;
    width: 100%;
}

/* --- Rechterkant: EST. 1976, Aftelklokken, Proost-logo & Footer info --- */
.top-right-widget {
    position: fixed;
    top: 130px;
    right: 20px;
    height: 92vh;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 100;
    overflow-y: auto;
    padding-bottom: 15px;
    box-sizing: border-box;
    text-align: center;
}

.top-right-widget::-webkit-scrollbar {
    width: 4px;
}
.top-right-widget::-webkit-scrollbar-thumb {
    background: rgba(232, 160, 175, 0.3);
    border-radius: 4px;
}

.right-top-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.sidebar-footer-img {
    width: 140px;
    height: auto;
    display: block;
    opacity: 0.95;
}

/* --- Gecentreerde Aftelklokken --- */
.countdown-container {
    background: linear-gradient(135deg, rgba(30, 30, 36, 0.95), rgba(45, 35, 40, 0.9));
    border: 1px solid #333;
    border-left: 4px solid #e8a0af;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(5px);
    width: 250px;
    position: relative;
    margin-bottom: 12px;
}

.countdown-title {
    font-size: 0.7rem;
    color: #e8a0af;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-title::before {
    content: "🐖 ";
}
.countdown-title::after {
    content: " 🐖";
}

.countdown-timer {
    font-size: 1.05rem;
    font-weight: bold;
    color: #e8a0af;
    font-family: monospace;
    margin-bottom: 2px;
}

.target-date-info {
    font-size: 0.65rem;
    color: #e8a0af;
    opacity: 0.8;
}

.sidebar-footer-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.proost-logo-right {
    margin-top: 15px;
    margin-bottom: 10px;
    width: 120px;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    filter: none;
}

/* --- Rechter Widget: Info, Socials & Copyright (Onder Proost logo) --- */
.right-bottom-widget {
    margin-top: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.right-bottom-text {
    font-size: 0.7rem;
    color: #bbb;
    margin: 0;
    text-align: center;
}

.right-bottom-copy {
    font-size: 0.6rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5px;
    width: 90%;
    text-align: center;
}

/* --- Layout voor Content & Footer --- */
.content-wrapper {
    width: 100%;
    margin-left: 280px;
    margin-right: 270px;
    padding: 80px 20px 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* --- Flexibele hoofd-layout wrapper om overlapping te voorkomen --- */
.main-layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-content {
    flex-grow: 1;
    width: 100%;
    max-width: calc(100vw - 610px); 
    min-width: 300px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-icons {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    vertical-align: middle;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #222;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.icon-wrapper.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.icon-wrapper i {
    font-size: 10px;
    color: #888;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8a0af;
    color: #141416;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 160, 175, 0.2);
}

.email-btn i {
    font-size: 11px;
    color: #141416;
}

.email-btn:hover {
    background: #ff6b81;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 129, 0.4);
}

.email-btn:hover i {
    color: #fff;
}

/* --- Kader voor de Middensectie (Nieuws) --- */
.news-container {
    background: rgba(25, 25, 30, 0.85);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    width: 100%;
}

.news-main-title {
    font-size: 1.5rem !important;
    margin-top: 0;
    margin-bottom: 5px;
    color: #fff;
}

.news-subtitle {
    color: #999;
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin-bottom: 20px;
}

#news-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.news-item-row {
    background: rgba(40, 38, 42, 0.85);
    border: 1px solid #2a2a30;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.news-item-row:hover {
    background: rgba(55, 50, 58, 0.95);
    border-color: #e8a0af;
}

.news-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.news-thumb-placeholder {
    width: 70px;
    height: 70px;
    background: #252328;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.news-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.news-title {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.news-arrow {
    color: #e8a0af;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.news-date {
    font-size: 0.7rem;
    color: #999;
    font-family: monospace;
}

.news-content-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-text {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.news-text p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.news-text p:last-child {
    margin-bottom: 0;
}

.news-text a,
.agenda-event-desc a {
    color: #e8a0af;
    text-decoration: underline;
    font-weight: 500;
}

.news-text a:hover,
.agenda-event-desc a:hover {
    color: #ff6b81;
}

/* --- Dynamisch Schalende Modal Popup (Responsive op schermresolutie) --- */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.news-modal-content {
    background: #1e1e24;
    border: 1px solid #333;
    border-left: 6px solid #e8a0af;
    padding: 25px;
    border-radius: 10px;
    
    /* Dynamische afmetingen op basis van het scherm */
    width: 100%;
    max-width: min(550px, 90vw);
    max-height: 85vh;
    
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.news-modal-close:hover {
    color: #fff;
}

.modal-news-image {
    width: 100%;
    max-height: 200px; 
    object-fit: contain;
    background: #141416;
    border-radius: 6px;
    margin: 0 auto 12px auto;
    display: block;
}

/* --- Styling voor de Club Pagina (home.html) --- */
.club-page-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    box-sizing: border-box;
    overflow: hidden;
}

.club-header-section {
    flex-shrink: 0;
    margin-bottom: 15px;
}

.club-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    align-items: start;
    flex-grow: 1;
    overflow: hidden;
}

.club-image-wrapper {
    position: sticky;
    top: 0;
}

.club-page-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    background: #141416;
    border-radius: 8px;
    border: 1px solid #2a2a30;
    display: block;
}

.club-intro-text {
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-y: auto;
    height: 100%;
    max-height: none;
    padding-right: 10px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.club-intro-text p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1.5;
}

.club-intro-text p:last-child {
    margin-bottom: 0;
}

.club-history-title {
    color: #e8a0af;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

/* --- Styling voor de Agenda Pagina (agenda.html) --- */
.agenda-grid {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
    padding-right: 5px;
}

.agenda-loading-text,
.agenda-empty-text {
    color: #888;
    text-align: center;
    padding: 20px;
}

.agenda-date-badge {
    background: rgba(232, 160, 175, 0.15);
    color: #e8a0af;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.agenda-event-desc {
    font-size: 0.9rem;
    margin: 0;
}

.agenda-event-desc p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.agenda-event-desc p:last-child {
    margin-bottom: 0;
}

.agenda-event-location {
    font-size: 0.75rem;
    color: #999;
}

/* --- Verfijnde Styling voor de Agenda Tabelweergave --- */
.agenda-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    background: rgba(25, 24, 28, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    table-layout: fixed;
}

.agenda-table th, 
.agenda-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: middle;
    word-break: break-word;
}

.agenda-table th {
    color: #e8a0af;
    font-weight: 600;
    background: rgba(40, 38, 45, 0.9);
    border-bottom: 2px solid rgba(232, 160, 175, 0.2);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.agenda-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-table tbody tr:last-child td {
    border-bottom: none;
}

.agenda-table th:nth-child(1), .agenda-table td:nth-child(1) {
    width: 32%;
}

.agenda-table th:nth-child(2), .agenda-table td:nth-child(2) {
    width: 38%;
}

.agenda-table th:nth-child(3), .agenda-table td:nth-child(3) {
    width: 30%;
}

.agenda-table tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.agenda-table tr:hover {
    background: rgba(232, 160, 175, 0.08);
}

.agenda-table-date {
    color: #e8a0af;
    font-weight: 500;
}

.agenda-table-title {
    color: #fff;
    font-weight: 500;
}

.agenda-table-location {
    color: #aaa;
}

/* --- Styling voor de Leden Secties & Filters --- */
.leden-section-title {
    font-size: 1.1rem;
    color: #e8a0af;
    border-bottom: 1px solid rgba(232, 160, 175, 0.2);
    padding-bottom: 5px;
    margin-top: 15px;
    margin-bottom: 12px;
}

@media screen and (max-width: 1200px) {
    #leden-grid-actief, 
    #leden-grid-oud, 
    #leden-grid-memoriam {
        grid-template-columns: 1fr !important;
    }
}

/* --- Styling voor de Leden Secties & Extra Ruimte --- */
.leden-section-wrapper {
    margin-bottom: 35px;
}

.leden-section-wrapper:last-child {
    margin-bottom: 10px;
}

.leden-section-title {
    font-size: 1.1rem;
    color: #e8a0af;
    border-bottom: 1px solid rgba(232, 160, 175, 0.2);
    padding-bottom: 6px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- Styling voor de Documenten Boomstructuur --- */
.doc-tree {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-folder {
    background: rgba(40, 38, 42, 0.5);
    border: 1px solid #2a2a30;
    border-radius: 8px;
    overflow: hidden;
}

.doc-folder-header {
    padding: 12px 16px;
    background: rgba(40, 38, 42, 0.85);
    color: #e8a0af;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: background 0.2s ease;
}

.doc-folder-header:hover {
    background: rgba(55, 50, 58, 0.95);
}

.doc-folder-items {
    padding: 10px 15px 15px 35px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-item-row {
    background: rgba(30, 29, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.doc-item-row:hover {
    background: rgba(232, 160, 175, 0.08);
    border-color: #e8a0af;
}

.doc-item-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.doc-item-date {
    color: #999;
    font-size: 0.75rem;
    font-family: monospace;
}

.proost-logo-right {
    margin-top: 15px;
    margin-bottom: 10px;
    width: 120px;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    filter: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.proost-logo-right:hover {
    transform: scale(1.05);
}


/* ==========================================================================
   RESPONSIVE / MOBIELE AANPASSINGEN
   ========================================================================== */
@media screen and (max-width: 1200px) {
    body {
        flex-direction: column;
        overflow-x: auto;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        align-items: center;
        padding: 20px;
        pointer-events: auto;
    }

    .menu-curve {
        width: 100%;
        max-width: 400px;
    }

    .menu-item {
        border-radius: 35px;
        justify-content: center;
        border-left: none;
        border-bottom: 4px solid #e8a0af;
    }

    .menu-item:nth-child(n) {
        transform: none !important;
    }

    .top-right-widget {
        position: relative;
        width: 100%;
        top: 0;
        right: 0;
        padding: 20px;
        margin-top: 20px;
        height: auto;
        justify-content: flex-start;
    }

    .countdown-container {
        width: 100%;
        max-width: 350px;
    }

    .content-wrapper {
        margin-left: 0;
        padding: 20px;
    }

    .main-layout-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        max-width: 100%;
    }

    .agenda-grid {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .club-page-container {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .club-grid {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .club-intro-text {
        font-size: 0.9rem;
        line-height: 1.5;
        overflow-y: visible;
        max-height: none;
        height: auto;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .club-intro-text p {
        font-size: 0.9rem;
        color: #ccc;
        margin-bottom: 12px;
    }

    .club-history-title {
        color: #e8a0af;
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 1rem;
        font-weight: 600;
    }

    .club-image-wrapper {
        position: static;
        margin-bottom: 20px;
    }

    #news-grid-container {
        grid-template-columns: 1fr;
    }
	
	/* --- Linker Sidebar Contact Container (Mobiel) --- */
	.sidebar-contact-container {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 6px;
		pointer-events: auto;
		margin-top: 20px;
		padding-bottom: 10px;
	}

	.sidebar-contact-container .right-bottom-text {
		margin: 0 auto;
		font-size: 0.75rem;
		color: #bbb;
		text-align: center;
		display: block;
		width: 100%;
	}

	/* --- Rechter Widget: Info, Socials & Copyright (Mobiel) --- */
	.right-bottom-widget {
		margin-top: 20px;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		text-align: center;
	}

	.right-bottom-text {
		font-size: 0.7rem;
		color: #bbb;
		margin: 0;
	}

	.right-bottom-copy {
		font-size: 0.6rem;
		color: #666;
		border-top: 1px solid rgba(255, 255, 255, 0.05);
		padding-top: 6px;
		width: 90%;
		text-align: center;
	}
}

/* Zorg dat de organogram modal een standaard hoge z-index heeft */
#organogram-modal {
	z-index: 1000 !important;
}

/* Zorg dat de lid-detail modal hier altijd bovenop opent */
#leden-modal {
	z-index: 2000 !important;
}


/* --- Unieke stijlen voor clubhuis modal in CSS (volledig responsief) --- */
#clubhuis-modal-title {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: #fff;
    margin-top: 0;
    margin-bottom: 6px;
}

#clubhuis-modal-body p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #ccc;
    margin-bottom: 10px;
}

#clubhuis-modal-body p:last-child {
    margin-bottom: 0;
}