/* ==========================
   Zendpiraten.com Style (CLEAN PRO)
   ========================== */

:root{
    --primary:#0077b6;
    --primary-dark:#023e8a;
    --dark:#0d1b2a;
    --text:#333;
    --bg:#f4f6f8;
    --white:#fff;
    --muted:#777;
}

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    display:flex;
    flex-direction:column;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
}

main{ flex:1; }

.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

/* ==========================
   HERO
   ========================== */

.hero{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:var(--white);
    padding:80px 30px;
    text-align:center;
    border-radius:12px;
    margin:30px 0;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.hero h1{ font-size:42px; margin-bottom:15px; }
.hero p{ font-size:18px; }

/* ==========================
   NEWS SYSTEM
   ========================== */

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:20px;
    margin:30px 0;
}

/* CARD */
.news-card{
    background:var(--white);
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.3s ease;
}

.news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

/* IMAGE (grid + row safe default) */
.news-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:12px;
}

/* META */
.news-meta{
    display:block;
    font-size:13px;
    color:var(--muted);
    margin-bottom:8px;
}

/* READ MORE */
.read-more{
    display:inline-block;
    margin-top:12px;
    color:var(--primary);
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.read-more:hover{
    color:var(--primary-dark);
    text-decoration:underline;
}

/* ==========================
   ROW NEWS (homepage variant)
   ========================== */

.news-row{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.news-row .news-image{
    width:140px;
    flex-shrink:0;
}

.news-row .news-image img{
    width:100%;
    height:100px;
    object-fit:cover;
    border-radius:10px;
}

.news-row .news-content{
    flex:1;
}

.news-row .news-content h3{
    margin-bottom:5px;
    color:var(--primary-dark);
}

/* ==========================
   FORM
   ========================== */

.form-box{
    background:var(--white);
    max-width:700px;
    margin:40px auto;
    padding:35px;
    border-radius:12px;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.form-box h2{
    margin-bottom:25px;
    color:var(--primary-dark);
    text-align:center;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
    transition:.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(0,119,182,.15);
}

/* ==========================
   BUTTON
   ========================== */

.btn{
    display:inline-block;
    background:var(--primary);
    color:var(--white);
    border:none;
    border-radius:8px;
    padding:12px 25px;
    cursor:pointer;
    font-size:15px;
    transition:.3s ease;
}

.btn:hover{
    background:var(--primary-dark);
}

/* ==========================
   TABLES
   ========================== */

.table{
    width:100%;
    border-collapse:collapse;
    background:var(--white);
    border-radius:10px;
    overflow:hidden;
    font-size:14px;
}

.table th{
    background:var(--dark);
    color:var(--white);
    padding:15px;
    text-align:left;
}

.table td{
    padding:14px;
    border-bottom:1px solid #eee;
}

.table tr:hover{
    background:#f8fafc;
}

/* ==========================
   FOOTER
   ========================== */

.footer{
    background:var(--dark);
    color:var(--white);
    margin-top:60px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-box h3{
    margin-bottom:15px;
    color:#00b4d8;
    font-size:16px;
}

.footer-box p,
.footer-box a{
    color:#cbd5e1;
    font-size:14px;
    text-decoration:none;
}

.footer-bottom{
    text-align:center;
    padding:15px;
    border-top:1px solid rgba(255,255,255,.1);
    font-size:13px;
    color:#94a3b8;
}

/* ==========================
   Nieuwsbericht detail pagina
   ========================== */

.news-detail{
    background: var(--white);
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.news-detail span{
    display:block;
    font-size:13px;
    color: var(--muted);
    margin-bottom:10px;
}

.news-detail h1{
    margin-bottom:15px;
    color: var(--primary-dark);
}

.news-detail img{
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}

/* Meldingen */

.error-message{
    background:#f8d7da;
    color:#842029;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
}

.success{
    background:#d1e7dd;
    color:#0f5132;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
}

/* Verplichte velden */

.required{
    color:#dc3545;
}

/* Checkbox groepen */

.checkbox-group{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.checkbox-group label{
    display:flex;
    align-items:center;
    gap:6px;
    background:#eef6fb;
    border:1px solid #cde7f3;
    border-radius:25px;
    padding:10px 15px;
    cursor:pointer;
    transition:.3s;
}

.checkbox-group label:hover{
    background:#dff1fb;
}

.checkbox-group input[type="checkbox"]{
    width:auto;
}

@media(max-width:768px){

    .hero{
        padding:50px 20px;
    }

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:16px;
    }

    .news-row{
        flex-direction:column;
    }

    .news-row .news-image{
        width:100%;
    }

    .news-row .news-image img{
        height:180px;
    }

    .form-box{
        padding:25px;
    }

    .checkbox-group{
        flex-direction:column;
    }
}

textarea{
    resize:vertical;
    min-height:120px;
}

input,
select,
textarea,
button{
    font-family:inherit;
}