/* Algemene opmaak */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Gouden Titel */
.nieuws-titel {
    text-align: center;
    padding: 40px 0;
}

.nieuws-titel h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #d4af37;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Nieuwscontainer */
.nieuws-container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

/* Grid voor de nieuwsitems */
.nieuws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Nieuwskaart */
.nieuws-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease-in-out forwards;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Afbeeldingen binnen de nieuwskaarten */
.news-image {
    width: 100%;
    height: 250px; /* Consistente hoogte voor alle afbeeldingen */
    object-fit: cover; /* Houdt de verhoudingen correct en snijdt indien nodig */
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease-in-out;
}

/* Nieuwscontent */
.nieuws-content {
    padding: 20px;
    text-align: left;
}

/* Titel en animatie */
.nieuws-content h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
}

.nieuws-item:hover h2 {
    color: #d4af37;
}

/* Datum */
.datum {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

/* Samenvatting */
.nieuws-content p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

/* Lees meer knop */
.lees-meer {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #d4af37;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.lees-meer:hover {
    text-decoration: underline;
    color: #b88a2e;
}

/* Hover-effect op kaarten */
.nieuws-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Hover-effect op afbeeldingen */
.nieuws-item:hover .news-image {
    transform: scale(1.05);
}

/* Geen nieuwsberichten */
.geen-nieuws {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* Animatie voor fade-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== DETAIL PAGINA (news_detail.php) ======== */

/* Nieuws Detailpagina */
.news-detail-container {
    width: 90%;
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Titel */
.news-title {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Datum */
.news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

/* Afbeelding container */
.news-detail-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Afbeelding styling */
.news-detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

/* Afbeelding zoom effect */
.news-detail-image:hover {
    transform: scale(1.02);
}

/* Content */
.news-content {
    font-size: 18px;
    color: #444;
    text-align: left;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 10px;
}

/* Back button */
.back-button {
    display: inline-block;
    padding: 12px 20px;
    background: #d4af37;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
    margin-top: 20px;
}

.back-button:hover {
    background: #b88a2e;
}

/* Responsiviteit */
@media (max-width: 768px) {
    .nieuws-grid {
        grid-template-columns: 1fr;
    }

    .nieuws-item:nth-child(3n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .nieuws-titel h1 {
        font-size: 2.5rem;
    }

    .news-detail-container {
        padding: 30px;
    }

    .news-title {
        font-size: 2rem;
    }

    .news-detail-image-container {
        max-height: 300px;
    }

    .news-detail-image {
        max-height: 300px;
    }
}
