/* Color Palette and Variables */
:root {
    --primary-color: #0077b6;
    --primary-light: #00b4d8;
    --secondary-color: #03045e;
    --accent-color: #fb8500;
    --bg-color: #f8f9fa;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Outfit', sans-serif; color: var(--text-color); background-color: var(--bg-color); }
body { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.w-100 { width: 100%; }
.w-50 { width: calc(50% - 0.5rem); }

/* Typography */
h1, h2, h3, h4 { color: var(--secondary-color); font-weight: 800; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 span { color: var(--primary-color); }
p { line-height: 1.6; margin-bottom: 1rem; color: var(--text-light); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm, .btn-secondary-sm, .btn-danger-sm {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600;
    transition: var(--transition); cursor: pointer; text-align: center; border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: var(--white); box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4); }
.btn-primary-sm { background: var(--accent-color); color: var(--white); padding: 0.5rem 1.2rem; }
.btn-primary-sm:hover { background: #e07600; transform: translateY(-2px); }
.btn-secondary { background: var(--glass-bg); color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-color); color: var(--white); }
.btn-secondary-sm { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-danger-sm { background: #d90429; color: var(--white); padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.8rem; }
.btn-danger-sm:hover { background: #ef233c; }

/* Navigation */
#navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: var(--transition); }
#navbar.scrolled { padding: 1rem 0; background: var(--glass-bg); backdrop-filter: blur(15px); box-shadow: var(--shadow-soft); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
#navbar.scrolled .logo { color: var(--secondary-color); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--white); font-weight: 600; position: relative; transition: var(--transition); }
#navbar.scrolled .nav-links a { color: var(--secondary-color); }
#navbar.scrolled .btn-secondary-sm { color: var(--secondary-color); border-color: var(--secondary-color); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; font-size: 1.5rem; color: var(--white); cursor: pointer; }
#navbar.scrolled .hamburger { color: var(--secondary-color); }

/* Event Banner */
.event-banner {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ff9e00);
    color: var(--white); padding: 0.8rem 0; z-index: 990;
    box-shadow: var(--shadow-soft);
    animation: slideDown 0.5s ease-out forwards;
}
.pulse-icon { animation: pulse 2s infinite; font-size: 1.2rem; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); color: #fff3e0; } 100% { transform: scale(1); } }

/* Hero Section */
.hero {
    height: 100vh; min-height: 600px;
    background: url('https://images.unsplash.com/photo-1519315901367-f34f770928a6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(3, 4, 94, 0.85), rgba(0, 119, 182, 0.7)); }
.hero-content { position: relative; z-index: 10; max-width: 800px; padding: 0 2rem; }
.hero h1 { font-size: 4rem; color: var(--white); margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; color: #e0e0e0; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Waves */
.wave-bottom, .wave-top { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-bottom { bottom: 0; } .wave-top { top: 0; }
.wave-bottom svg, .wave-top svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.wave-bottom .shape-fill, .wave-top .shape-fill { fill: var(--bg-color); }

/* Dynamic Sections */
.dynamic-section { padding: 5rem 0; transition: background-color 0.3s ease; }
.bg-light { background-color: var(--white); }
.bg-dark { background-color: var(--bg-color); }

.about-grid, .membership-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.badge { display: inline-block; background: rgba(0, 119, 182, 0.1); color: var(--primary-color); padding: 0.3rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.features { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; color: var(--secondary-color); }
.feature-item i { color: var(--primary-light); font-size: 1.2rem; }

/* Fix image wrapper collapsing and floating card */
.about-image { position: relative; padding: 0 0 30px 30px; } 
.image-wrapper { 
    position: relative; border-radius: 20px; overflow: hidden; 
    box-shadow: var(--shadow-strong); z-index: 1;
    min-height: 300px; /* Prevents collapsing to a line if image is broken */
    background: #e0e0e0;
}
.image-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.5s; min-height: 300px; object-fit: cover; }
.image-wrapper:hover img { transform: scale(1.05); }

.floating-card { position: absolute; bottom: 0; left: 0; z-index: 10; background: var(--glass-bg); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 15px; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-strong); border: 1px solid var(--glass-border); animation: float 4s ease-in-out infinite; }
.floating-card .icon { width: 50px; height: 50px; min-width: 50px; background: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.floating-card .text { display: flex; flex-direction: column; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.section-title { text-align: center; margin-bottom: 3rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.info-card { background: var(--bg-color); padding: 2.5rem 2rem; border-radius: 20px; text-align: center; box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid rgba(0,0,0,0.02); }
.info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.card-icon { width: 70px; height: 70px; background: rgba(0, 119, 182, 0.1); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.time-list { text-align: left; margin-top: 1.5rem; }
.time-list li { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.time-list li:last-child { border-bottom: none; }
.day { font-weight: 600; color: var(--secondary-color); }
.map-container { margin-top: 1.5rem; border-radius: 15px; overflow: hidden; }

/* Agenda List */
.agenda-list { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.agenda-item { display: flex; align-items: center; gap: 2rem; background: var(--white); padding: 1.5rem; border-radius: 15px; box-shadow: var(--shadow-soft); transition: var(--transition); border-left: 5px solid var(--accent-color); }
.bg-light .agenda-item { background: var(--bg-color); } /* Contrast if section is light */
.agenda-item:hover { transform: translateX(10px); box-shadow: var(--shadow-strong); }
.agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); padding: 1rem; border-radius: 10px; min-width: 80px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.bg-light .agenda-date { background: var(--white); }
.agenda-date .day { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.agenda-date .month { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; color: var(--text-light); }
.agenda-content h3 { margin-bottom: 0.5rem; }
.agenda-content p { margin: 0; font-size: 0.95rem; }

/* Forms & Cards */
.form-card { background: var(--white); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow-strong); border: 1px solid rgba(0,0,0,0.05); }
.form-card h3 { margin-bottom: 1.5rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--secondary-color); font-size: 0.95rem; }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 2px solid #e0e0e0; border-radius: 10px; font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--bg-color); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1); }
textarea.form-control { resize: vertical; }
.secure-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #2a9d8f; background: #e9c46a1a; padding: 0.5rem 1rem; border-radius: 50px; margin-bottom: 1.5rem; justify-content: center; font-weight: 600; }

/* Contact Section */
.contact-section { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 6rem 0; color: var(--white); position: relative; }
.contact-section p, .contact-section label { color: #e0e0e0; }
.contact-text-box h3 { color: var(--white); margin-bottom: 1rem; }
.contact-list { margin-top: 1rem; }
.contact-list li { margin-bottom: 0.5rem; }
.contact-list a { color: var(--accent-color); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
footer { background: var(--secondary-color); color: #e0e0e0; padding: 4rem 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
footer h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a:hover { color: var(--primary-light); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; border-radius: 50%; transition: var(--transition); }
.social-icons a:hover { background: var(--primary-light); color: var(--white); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,0.2); text-align: center; padding: 1.5rem; font-size: 0.9rem; }

/* Backoffice Additions */
.bo-container { max-width: 800px; margin: 4rem auto; background: var(--white); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow-strong); }
.bo-container h2 { text-align: center; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .membership-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero h1 { font-size: 3rem; }
    .agenda-item { flex-direction: column; text-align: center; gap: 1rem; }
}
@media (max-width: 768px) {
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 2rem 0; gap: 1.5rem; box-shadow: var(--shadow-strong); clip-path: circle(0% at 100% 0); transition: clip-path 0.5s ease-out; }
    .nav-links.active { clip-path: circle(150% at 100% 0); }
    .nav-links a, .nav-links .btn-secondary-sm { color: var(--secondary-color) !important; border-color: var(--secondary-color); }
    .hamburger { display: block; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .floating-card { position: relative; bottom: auto; left: auto; margin-top: -20px; }
    .about-image { padding: 0; }
    .form-row .w-50 { width: 100%; }
}

/* Animations */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Toast container: Rechtsboven vastgezet */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Zorgt dat muisklikken door de container heen gaan */
}

.toast {
    padding: 1rem 2rem;
    margin-top: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    /* De animatie: 0.4s soepel verschijnen */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: auto; /* Zorgt dat de toast zelf wel klikbaar blijft */
}

    /* Wanneer de klasse 'show' wordt toegevoegd, komt hij in beeld */
    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

.toast-success {
    background: #2a9d8f;
}

.toast-error {
    background: #d90429;
}

/* Stijl die gelijk is aan je andere knoppen qua vorm en grootte */
.btn-common {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

/* De Help-specifieke kleur (Indigo/Blauw-paarsig) */
.btn-help-custom {
    background-color: #4834d4; /* Een professionele diepblauwe/indigo kleur */
    color: white;
}

    .btn-help-custom:hover {
        background-color: #686de0;
        transform: translateY(-2px);
    }

/* Zorg dat de Bekijk Website knop ook deze basis heeft */
.btn-primary-sm {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary-orange {
    /* Flexbox zorgt voor perfecte centrering */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Kleurverloop (gradient) - zelfde stijl als je blauwe knoppen */
    background: linear-gradient(135deg, var(--accent-color), #ff9e00);
    color: white;
    padding: 0.8rem 2rem; /* Gebruik hier de padding van je andere knoppen */
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

    .btn-primary-orange:hover {
        transform: translateY(-3px);
        /* Iets sterkere glow bij hover voor extra effect */
        box-shadow: 0 8px 20px rgba(251, 133, 0, 0.4);
    }

/* Modal accent */
.modal-header {
    border-bottom: 3px solid #f39c12;
    margin-bottom: 1rem;
}

.modal-btn {
    background-color: #f39c12 !important;
    color: white !important;
}

/* Modal verbetering voor betere leesbaarheid */
.modal-content {
    line-height: 1.6;
    color: #333;
}

    .modal-content h4 {
        color: var(--primary-color);
        margin-top: 1.2rem;
        border-bottom: 2px solid #eee;
        padding-bottom: 5px;
    }
/* Pas de lijst-items in de Trainingen sectie aan */
.time-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem; /* Iets meer ruimte voor het haakje */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    /* Het oranje haakje toevoegen */
    border-left: 5px solid var(--accent-color);
    background: #f8f9fa; /* Licht achtergrondkleurtje voor contrast */
    margin-bottom: 0.5rem; /* Ruimte tussen de dagen */
    border-radius: 0 5px 5px 0; /* Alleen rechts afronden */
}