/* style.css */
:root {
    --primary-color: #1A362B;
    /* Midnight Forest green */
    --secondary-color: #2D5840;
    /* Rich muted green */
    --accent-color: #D4AF37;
    /* Warm Sand / Gold */
    --text-color: #2F3631;
    /* Slate dark text for readability */
    --background-color: #F8F9FA;
    /* Super clean off-white */
    --white: #ffffff;
    --font-main: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s ease;
}

/* Homepagina specifieke transparante header */
body.home-page header {
    position: fixed;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
}

/* Wanneer naar beneden gescrolld op homepagina */
body.home-page header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Zorg dat de tekst op de homepagina altijd wit is VOOR scrollen (valback) */
body.home-page header:not(.scrolled) .nav-container a,
body.home-page header:not(.scrolled) .nav-container .logo-text {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.home-page header:not(.scrolled) .nav-container .logo-img {
    filter: brightness(0) invert(1);
    transition: filter 0.5s ease;
}

body.home-page header:not(.scrolled) .nav-container {
    transition: all 0.5s ease;
}

body.home-page header.scrolled .nav-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.carousel-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(26, 54, 43, 0.85), rgba(26, 54, 43, 0.4));
    z-index: 0;
}

.carousel-content {
    z-index: 1;
    position: relative;
}

/* Knoppen Volgende & Vorige */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: var(--accent-color);
}

/* Indicatie bolletjes */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(26, 54, 43, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #111;
    font-weight: 700;
}

.btn-accent:hover {
    background-color: #ebd16c;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* Main Content Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

/* Grid layout for features/cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--secondary-color);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-col p,
.footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 74, 45, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Nieuws Pagina Styles */
.news-page {
    padding-bottom: 4rem;
}

.featured-news-wrapper {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.featured-news-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(26, 54, 43, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-news-card:hover {
    transform: translateY(-8px);
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-news-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 54, 43, 0.95) 0%, rgba(26, 54, 43, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    color: var(--white);
    max-width: 800px;
}

.news-category {
    background: var(--accent-color);
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
    margin-right: 1rem;
}

.featured-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.featured-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-content .btn .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.featured-content .btn:hover .icon {
    transform: translateX(5px);
}

/* Filters */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 54, 43, 0.2);
}

/* Masonry Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.badge-action {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #111;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: block;
}

.featured-content .news-date {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
}

.news-excerpt {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.action-card {
    border: 2px solid var(--accent-color);
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    margin-top: auto;
}

.news-link:hover {
    color: var(--accent-color);
}

.news-link svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.news-link:hover svg {
    transform: translateX(5px);
}

/* Archive Grid & Cards */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.archive-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.archive-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
    flex-grow: 1;
    font-weight: 700;
}

.archive-card a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.3s ease;
}

.archive-card a:hover {
    color: var(--primary-color);
}