/* Rijkswaterstaat Kennis- en Innovatiedashboard
   Gebaseerd op Rijkshuisstijl - rijkswaterstaat.nl */

/* === RijksoverheidSans Font === */
@font-face {
    font-family: 'RijksoverheidSans';
    src: url('../fonts/RijksoverheidSansTT-Regular.ttf') format('truetype'),
         url('../fonts/RijksoverheidSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RijksoverheidSans';
    src: url('../fonts/RijksoverheidSansTT-Italic.ttf') format('truetype'),
         url('../fonts/RijksoverheidSans-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'RijksoverheidSans';
    src: url('../fonts/RijksoverheidSansTT-Bold.ttf') format('truetype'),
         url('../fonts/RijksoverheidSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RijksoverheidSans';
    src: url('../fonts/RijksoverheidSansTT-BoldItalic.ttf') format('truetype'),
         url('../fonts/RijksoverheidSans-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* === CSS Variables === */
:root {
    /* Primaire kleuren */
    --rws-hemelblauw: #007bc7;
    --rws-lintblauw: #01689b;
    --rws-donkerblauw: #154273;
    --rws-wit: #ffffff;

    /* Accentkleuren */
    --rws-geel: #f9e11e;

    /* Grijstinten */
    --rws-grijs-licht: #f3f3f3;
    --rws-grijs-bg: #f1f5f9;
    --rws-grijs-rand: #e2e8f0;
    --rws-grijs-tekst: #64748b;
    --rws-zwart: #000000;

    /* Functionele kleuren */
    --success: #059669;
    --warning: #d97706;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'RijksoverheidSans', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rws-zwart);
    background-color: var(--rws-wit);
}

a {
    color: var(--rws-hemelblauw);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Accessibility === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--rws-hemelblauw);
    outline-offset: 2px;
}

/* === Header === */
.rws-header {
    background: var(--rws-wit);
}

.header-top-wrapper {
    background: var(--rws-wit);
}

.header-top {
    background: var(--rws-wit);
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.header-links {
    position: absolute;
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: var(--space-lg);
}

.header-links a {
    color: var(--rws-donkerblauw);
    font-size: 0.9375rem;
    text-decoration: none;
}

.header-links a:hover {
    text-decoration: underline;
}

.logo-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transform: translateX(116px);
}

.rws-logo {
    height: 90px;
    width: auto;
}

.rws-logo-mobile {
    display: none;
    height: 56px;
    width: auto;
}

/* === Yellow Navigation Bar (like rijkswaterstaat.nl) === */
.main-nav {
    background: var(--rws-geel);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.nav-list li {
    position: relative;
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--rws-donkerblauw);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: background 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.4);
    border-bottom-color: var(--rws-donkerblauw);
}

/* === Navigation Dropdown === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    /* Match nav-link styling */
    padding: 14px 20px;
    color: var(--rws-donkerblauw);
    font-weight: 600;
    font-size: 1.0625rem;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--rws-wit);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--rws-donkerblauw);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.nav-dropdown-link:hover {
    background: var(--rws-grijs-licht);
    text-decoration: none;
}

.nav-dropdown-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--rws-hemelblauw);
}

/* === Main Content === */
.dashboard-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #F1F5F9;
}

/* === Hero Banner (Full Width Image with Text Overlay) === */
.hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 500px;
    overflow: hidden;
}

.hero-banner-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
}

.hero-banner-content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    max-width: 700px;
}

.hero-banner-content h2 {
    color: var(--rws-wit);
    font-size: 2.75rem;
    font-weight: 400;
    margin: 0 0 var(--space-md);
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0 0 var(--space-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-link {
    color: var(--rws-wit);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-link:hover {
    text-decoration: underline;
}

.hero-button {
    display: inline-block;
    background: var(--rws-geel);
    color: var(--rws-donkerblauw);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.hero-button:hover {
    background: #e6cc00;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Content Wrapper === */
.content-wrapper {
    padding: var(--space-xl);
}

/* === Filter Section === */
.filter-section {
    background: #F1F5F9;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: none;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-header h3 {
    color: var(--rws-donkerblauw);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.project-count-badge {
    background: var(--rws-grijs-bg);
    color: var(--rws-grijs-tekst);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* === Filter Chips === */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-chip {
    background: var(--rws-wit);
    border: 1px solid var(--rws-grijs-rand);
    color: var(--rws-donkerblauw);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-icon {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.filter-chip:hover {
    background: var(--rws-grijs-licht);
    border-color: var(--rws-donkerblauw);
    text-decoration: none;
}

.filter-chip.active {
    background: var(--rws-donkerblauw);
    border-color: var(--rws-donkerblauw);
    color: var(--rws-wit);
}

/* === Projects Section === */
.projects-section {
    background: #F1F5F9;
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* === Projects Grid === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* === Project Card (RWS Style with Image) === */
.project-card {
    background: var(--rws-wit);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.project-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

/* Icon overlay on image */
.project-card-icon {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    background: var(--rws-wit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.project-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--rws-hemelblauw);
}

.project-card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.project-card-title h4 {
    color: var(--rws-hemelblauw);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.project-card:hover .project-card-title h4 {
    color: var(--rws-donkerblauw);
    text-decoration: underline;
}

.project-card-description {
    color: var(--rws-zwart);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-link {
    display: none;
}

/* === Compact Stats on Project Cards === */
.project-card-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--rws-grijs-rand);
}

.project-card-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.project-card-stat-icon {
    width: 20px;
    height: 20px;
    background: var(--rws-hemelblauw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-card-stat-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--rws-wit);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-card-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.project-card-stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rws-donkerblauw);
    margin-bottom: 2px;
}

.project-card-stat-label {
    font-size: 0.6875rem;
    color: var(--rws-grijs-tekst);
    margin-top: 2px;
}

@media (max-width: 480px) {
    .project-card-stats {
        gap: var(--space-sm);
    }

    .project-card-stat-icon {
        width: 18px;
        height: 18px;
    }

    .project-card-stat-icon svg {
        width: 10px;
        height: 10px;
    }

    .project-card-stat-value {
        font-size: 0.8125rem;
    }

    .project-card-stat-label {
        font-size: 0.625rem;
    }
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.project-card-tag {
    background: var(--rws-grijs-bg);
    color: var(--rws-lintblauw);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Legacy icon styles - kept for compatibility */
.project-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.project-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--rws-grijs-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.project-icon {
    width: 24px;
    height: 24px;
    color: var(--rws-lintblauw);
    transition: color 0.2s ease;
}

.project-icon svg {
    width: 100%;
    height: 100%;
}

/* Icon colors - all in RWS hemelblauw */
.project-card-icon svg {
    color: var(--rws-hemelblauw);
}

/* === No Results === */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--rws-grijs-tekst);
}

.no-results p {
    margin-bottom: var(--space-md);
}

/* === Footer === */
.rws-footer {
    background: var(--rws-grijs-licht);
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--rws-grijs-rand);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.footer-section h4 {
    color: var(--rws-donkerblauw);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 var(--space-md);
}

.footer-section p {
    color: var(--rws-grijs-tekst);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 var(--space-sm);
}

.footer-section a {
    color: var(--rws-hemelblauw);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    background: var(--rws-grijs-rand);
    padding: var(--space-md) var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--rws-grijs-tekst);
    font-size: 0.875rem;
}

/* === Theme Hero Section === */
.theme-hero {
    background: var(--rws-grijs-bg);
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
}

.theme-hero-content {
    max-width: 800px;
}

.theme-hero .breadcrumb {
    padding: 0;
    margin-bottom: var(--space-lg);
    background: transparent;
}

.theme-icon {
    width: 64px;
    height: 64px;
    background: var(--rws-hemelblauw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.theme-icon svg {
    width: 32px;
    height: 32px;
    color: var(--rws-wit);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-hero h1 {
    color: var(--rws-donkerblauw);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-md);
    line-height: 1.2;
}

.theme-description {
    color: var(--rws-grijs-tekst);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 var(--space-xl);
}

/* === Theme Hero Stats === */
.theme-hero-stats {
    position: absolute;
    top: var(--space-2xl);
    right: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.theme-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--rws-wit);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.theme-stat-icon {
    width: 40px;
    height: 40px;
    background: var(--rws-hemelblauw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--rws-wit);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-stat-text {
    display: flex;
    flex-direction: column;
}

.theme-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rws-donkerblauw);
    line-height: 1.2;
}

.theme-stat-label {
    font-size: 0.8125rem;
    color: var(--rws-grijs-tekst);
}

@media (max-width: 1024px) {
    .theme-hero-stats {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: var(--space-lg);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .theme-hero-stats {
        gap: var(--space-md);
    }

    .theme-stat {
        padding: var(--space-sm) var(--space-md);
    }

    .theme-stat-icon {
        width: 36px;
        height: 36px;
    }

    .theme-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .theme-stat-value {
        font-size: 1.125rem;
    }

    .theme-stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .theme-hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .theme-stat {
        width: 100%;
    }
}

/* === Project Detail Page (RWS Style) === */

/* Hero: alleen afbeelding */
.project-hero {
    width: 100%;
    height: 280px;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-card {
    display: none !important;
}

/* Project page layout with sidebar - sidebar left, content right */
.project-page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 140px var(--space-2xl) var(--space-xl);
}

/* Sidebar breadcrumb navigation */
.project-sidebar {
    padding-top: var(--space-xl);
}

/* Content: wit vlak dat overlapt over de foto */
.project-content {
    background: #fff;
    margin-top: -80px;
    padding: var(--space-2xl);
    position: relative;
    z-index: 10;
}

.project-breadcrumb-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-breadcrumb-nav li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* Vertical line connecting breadcrumb items */
.project-breadcrumb-nav li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rws-grijs-rand);
}

.project-breadcrumb-nav li:first-child::before {
    top: 50%;
}

.project-breadcrumb-nav li:last-child::before {
    bottom: 50%;
}

/* Dot on the breadcrumb line */
.project-breadcrumb-nav li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rws-grijs-rand);
    border: 2px solid var(--rws-wit);
}

.project-breadcrumb-nav li.active::after {
    background: var(--rws-donkerblauw);
}

.project-breadcrumb-nav a {
    color: var(--rws-hemelblauw);
    text-decoration: none;
    font-size: 0.9375rem;
}

.project-breadcrumb-nav a:hover {
    text-decoration: underline;
}

.project-breadcrumb-nav .current {
    color: var(--rws-zwart);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Theme icon in sidebar */
.sidebar-theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--rws-hemelblauw);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.sidebar-theme-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--rws-wit);
}

/* Sidebar sub-navigation */
.project-subnav {
    list-style: none;
    margin: var(--space-md) 0 0 var(--space-lg);
    padding: 0;
    border-left: 2px solid var(--rws-grijs-rand);
}

.project-subnav li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.project-subnav a {
    color: var(--rws-hemelblauw);
    text-decoration: none;
    font-size: 0.875rem;
}

.project-subnav a:hover {
    text-decoration: underline;
}

.project-subnav li.active a {
    color: var(--rws-zwart);
    font-weight: 600;
}

.project-subnav li.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rws-donkerblauw);
}

/* Main content area - white background */
.project-content {
    background: var(--rws-wit);
    padding: var(--space-2xl);
    padding-top: var(--space-lg);
    position: relative;
}

.project-content h1 {
    color: var(--rws-donkerblauw);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 var(--space-lg);
    line-height: 1.2;
}

.project-content .project-intro {
    color: var(--rws-zwart);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 var(--space-xl);
}

.project-content h2 {
    color: var(--rws-donkerblauw);
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-xl) 0 var(--space-md);
}

.project-content h2:first-child {
    margin-top: 0;
}

.project-content p {
    color: var(--rws-zwart);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 0 var(--space-md);
}

.project-content ul {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-xl);
}

.project-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Project meta tags */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--rws-grijs-rand);
}

.project-meta-tag {
    background: var(--rws-grijs-bg);
    color: var(--rws-lintblauw);
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* CTA box */
.project-cta {
    background: var(--rws-grijs-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-top: var(--space-2xl);
    border-left: 4px solid var(--rws-hemelblauw);
}

.project-cta h3 {
    color: var(--rws-donkerblauw);
    font-size: 1.25rem;
    margin: 0 0 var(--space-md);
}

.project-cta p {
    margin: 0;
    font-size: 1rem;
}

.project-cta a {
    color: var(--rws-hemelblauw);
    font-weight: 600;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--rws-hemelblauw);
    font-weight: 500;
    margin-top: var(--space-xl);
}

.back-link:hover {
    text-decoration: underline;
}

/* === In cijfers sectie === */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    background: var(--rws-grijs-bg);
    border-radius: var(--radius-md);
}

.project-stats-title {
    grid-column: 1 / -1;
    color: var(--rws-donkerblauw);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--rws-hemelblauw);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    background: var(--rws-wit);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--rws-hemelblauw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--rws-wit);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rws-donkerblauw);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--rws-grijs-tekst);
    margin-top: var(--space-xs);
}

/* === Contactpersonen sectie === */
.project-contacts {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--rws-wit);
    border: 1px solid var(--rws-grijs-rand);
    border-radius: var(--radius-md);
}

.project-contacts-title {
    color: var(--rws-donkerblauw);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--rws-hemelblauw);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
}

.contact-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
    border: 3px solid var(--rws-grijs-rand);
    transition: border-color 0.2s ease;
}

.contact-card:hover .contact-photo {
    border-color: var(--rws-hemelblauw);
}

.contact-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rws-donkerblauw);
    margin: 0 0 var(--space-xs);
}

.contact-role {
    font-size: 0.875rem;
    color: var(--rws-grijs-tekst);
    margin: 0 0 var(--space-sm);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--rws-hemelblauw);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--space-md);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-photo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .project-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .contact-photo {
        width: 70px;
        height: 70px;
    }

    .contact-name {
        font-size: 0.9375rem;
    }

    .contact-info a {
        font-size: 0.8125rem;
    }
}

/* Legacy breadcrumb (for compatibility) */
.breadcrumb {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    color: var(--rws-grijs-tekst);
    background: var(--rws-grijs-licht);
}

.breadcrumb a {
    color: var(--rws-hemelblauw);
}

.breadcrumb span {
    margin: 0 var(--space-sm);
}

/* Legacy project-detail (for compatibility) */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

.project-detail h1 {
    color: var(--rws-donkerblauw);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg);
    line-height: 1.2;
}

.project-detail h2 {
    color: var(--rws-donkerblauw);
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-xl) 0 var(--space-md);
}

.project-detail p {
    color: var(--rws-zwart);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 0 var(--space-md);
}

.project-detail ul {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-xl);
}

.project-detail li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* === Hamburger Menu Button (hidden on desktop) === */
.hamburger-btn {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--rws-donkerblauw);
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    font-weight: 600;
}

.hamburger-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--rws-donkerblauw);
    transition: background 0.2s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--rws-donkerblauw);
    transition: transform 0.2s ease;
}

.hamburger-icon::before {
    top: -7px;
}

.hamburger-icon::after {
    top: 7px;
}

.hamburger-text {
    color: var(--rws-donkerblauw);
}

/* === Mobile Menu Overlay === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rws-wit);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 20px;
    position: relative;
    background: var(--rws-wit);
    border-bottom: none;
}

.mobile-menu-logo {
    height: 56px;
    width: auto;
}

.mobile-menu-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--rws-donkerblauw);
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: var(--rws-donkerblauw);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--rws-grijs-rand);
    transition: background 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--rws-grijs-licht);
    text-decoration: none;
}

.mobile-menu-link.active {
    background: rgba(0, 123, 199, 0.1);
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-menu-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.mobile-menu-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--rws-grijs-rand);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-footer-link {
    color: var(--rws-donkerblauw);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-menu-footer-link:hover {
    text-decoration: underline;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-banner {
        height: 400px;
    }

    .hero-banner-content h2 {
        font-size: 2.25rem;
    }

    /* Logo offset aanpassen voor kleinere schermen */
    .logo-link {
        transform: translateX(80px);
    }

    /* Project page responsive */
    .project-hero {
        height: 400px;
    }

    .project-hero-card {
        width: 55%;
        padding: 32px;
    }

    .project-hero-card h1 {
        font-size: 1.875rem;
    }

    .project-page-layout {
        grid-template-columns: 180px 1fr;
    }

    .project-hero-bg {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* Logo centreren zonder offset op mobile */
    .logo-link {
        transform: translateX(0);
        align-items: flex-start;
    }

    .rws-logo {
        display: none;
    }

    .rws-logo-mobile {
        display: block;
    }

    /* Show hamburger menu, hide nav-list on mobile */
    .hamburger-btn {
        display: flex;
    }

    .nav-list {
        display: none;
    }

    .main-nav {
        padding: 0;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-banner-content {
        padding: var(--space-lg);
        max-width: 100%;
    }

    .hero-banner-content h2 {
        font-size: 1.75rem;
    }

    .hero-banner-content p {
        font-size: 1rem;
    }

    .filter-section {
        padding: var(--space-md);
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-header h3 {
        font-size: 1.25rem;
    }

    .projects-section {
        padding: var(--space-md);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .project-card-image {
        height: 180px;
    }

    .project-detail {
        padding: var(--space-lg);
    }

    .project-detail h1 {
        font-size: 1.75rem;
    }

    /* Mobile: stack vertically */
    .project-hero {
        height: 200px;
    }

    .project-page-layout {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md) var(--space-xl);
    }

    .project-sidebar {
        order: 2;
        padding-top: var(--space-lg);
    }

    .project-content {
        order: 1;
        margin-top: -40px;
        padding: var(--space-lg);
    }

    .project-content h1 {
        font-size: 1.5rem;
    }

    .project-content .project-intro {
        font-size: 1rem;
    }

    .theme-hero {
        padding: var(--space-xl) var(--space-md);
    }

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

    .theme-icon {
        width: 56px;
        height: 56px;
    }

    .theme-icon svg {
        width: 28px;
        height: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }

    .content-wrapper {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0 var(--space-sm);
    }

    .rws-logo {
        height: 60px;
    }

    .nav-list {
        padding: 0 var(--space-sm);
        gap: 0;
    }

    .nav-link {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .hero-banner {
        height: 280px;
    }

    .hero-banner-content {
        padding: var(--space-md);
    }

    .hero-banner-content h2 {
        font-size: 1.35rem;
        margin-bottom: var(--space-sm);
    }

    .hero-banner-content p {
        font-size: 0.9375rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .filter-section {
        padding: var(--space-sm);
    }

    .filter-header {
        margin-bottom: var(--space-sm);
    }

    .filter-header h3 {
        font-size: 1.125rem;
    }

    .filter-chips {
        gap: var(--space-xs);
    }

    .filter-chip {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8125rem;
    }

    .filter-icon {
        width: 16px;
        height: 16px;
    }

    .projects-section {
        padding: var(--space-sm);
    }

    .projects-grid {
        gap: var(--space-md);
    }

    .project-card-image {
        height: 160px;
    }

    .project-card-content {
        padding: var(--space-md) 0;
    }

    .project-card-title h4 {
        font-size: 1.125rem;
    }

    .project-card-description {
        font-size: 0.9375rem;
        -webkit-line-clamp: 2;
    }

    .project-detail {
        padding: var(--space-md);
    }

    .project-detail h1 {
        font-size: 1.5rem;
    }

    .project-detail h2 {
        font-size: 1.25rem;
    }

    .project-detail p {
        font-size: 1rem;
    }

    .project-cta {
        padding: var(--space-md);
    }

    .theme-hero {
        padding: var(--space-lg) var(--space-sm);
    }

    .theme-hero h1 {
        font-size: 1.5rem;
    }

    .theme-description {
        font-size: 1rem;
    }

    .theme-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-md);
    }

    .theme-icon svg {
        width: 24px;
        height: 24px;
    }

    .breadcrumb {
        padding: var(--space-sm);
        font-size: 0.8125rem;
    }

    .footer-content {
        padding: var(--space-md);
        gap: var(--space-lg);
    }

    .footer-section h4 {
        font-size: 0.9375rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding: var(--space-sm) var(--space-md);
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* === Print Styles === */
@media print {
    .main-nav,
    .filter-section,
    .rws-footer {
        display: none;
    }

    .hero-banner {
        height: auto;
        page-break-after: avoid;
    }

    .project-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
