/* GIP Longread CSS - Based on Dashboard Styling */

/* CSS Variables - Vlaamse overheid kleuren */
:root {
    --primary-color: #ff4000;
    --secondary-color: #3f334d;
    --success-color: #c1809d;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ==========================================
   DASHBOARD INTEGRATION STYLES
   ========================================== */

.dashboard-section {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.dashboard-section .content-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dashboard Filters */
.dashboard-filters {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-filters h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group input,
.filter-group select {
    padding: 0.625rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    min-height: 38px;
}

.filter-group select[multiple] {
    min-height: 120px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 64, 0, 0.1);
}

.filter-group small {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-secondary,
.btn-primary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e63900;
    transform: translateY(-2px);
}

/* Results Info */
.results-info {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filtered-budget {
    color: var(--text-secondary);
}

.filtered-budget strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

#projects-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Column widths - responsive and smart */
#projects-table .col-project {
    width: 30%;
    min-width: 200px;
}

#projects-table .col-entiteit {
    width: 15%;
    min-width: 120px;
}

#projects-table .col-gemeenten {
    width: 15%;
    min-width: 120px;
}

#projects-table .col-budget {
    width: 8%;
    min-width: 80px;
}

#projects-table .col-jaar {
    width: 6%;
    min-width: 60px;
}

#projects-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

#projects-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

#projects-table th.sortable:hover {
    background: rgba(255,255,255,0.1);
}

#projects-table th.numeric {
    text-align: right;
}

#projects-table tbody tr {
    border-bottom: 1px solid var(--border-color, #eee);
    transition: background-color 0.2s;
}

#projects-table tbody tr:hover {
    background-color: #f8f9fa;
}

#projects-table td {
    padding: 0.75rem 0.5rem;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

#projects-table td.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    white-space: nowrap;
    font-weight: 500;
}

/* Pagination */
.pagination {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

#page-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#items-per-page {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: stretch;
    }
    
    .filter-actions button {
        flex: 1;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    #projects-table {
        min-width: 800px;
    }
    
    .pagination {
        flex-direction: column;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    scroll-snap-align: start;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding: 1rem 2rem;
}

.hero-nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-4px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: inline-block;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    scroll-snap-align: start;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.content-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    margin: 3rem 0;
}

/* Stats Highlight */
.stats-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-radius: 12px;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* Video Sections */
.video-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: auto;
}

.video-container video {
    object-fit: cover;
}

@media (min-aspect-ratio: 16/9) {
    .video-container iframe,
    .video-container video {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-container iframe,
    .video-container video {
        width: 177.78vh;
    }
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.video-caption h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.video-caption p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.video-caption .budget-highlight {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 64, 0, 0.3);
}

/* Map Sections */
.map-section {
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Scroll-driven fade-out for complete overview overlay */
.map-overlay-fade {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.map-overlay-fade.fade-out {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.map-overlay h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.map-overlay p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Highlight Box */
.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.highlight-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Stats Overview - Modern Card Layout */
.stats-overview {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 0;
    max-width: 100%;
    width: 100%;
}

.stats-overview h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.overview-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.summary-item {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.95rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-categories-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.top-categories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Top 6 Categories Grid - 3 Columns Full Width */
.categories-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.category-card-full {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-card-full h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 3.9em; /* Fixed height for 3 lines max */
    display: flex;
    align-items: flex-start;
}

.category-budget {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.category-years {
    margin: 1rem 0;
    padding: 0;
}

.category-years div {
    padding: 0.3rem 0;
    font-size: 1.1rem;
    color: #555;
}

.category-count {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy categories grid (dynamic version) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 0; /* Prevent overflow */
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.category-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    flex: 1;
    padding-right: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.year-budget {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.year-budget::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: 700;
}

.category-count {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.loading-placeholder {
    grid-column: 1 / -1;
}

/* Responsive adjustments - Tablets */
@media (max-width: 1024px) {
    .categories-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive adjustments - Mobile */
@media (max-width: 768px) {
    .stats-overview {
        padding: 2rem 1.5rem;
    }
    
    .overview-summary {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .category-card-full h4 {
        min-height: unset;
    }
    
    .category-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-header h5 {
        padding-right: 0;
        flex-basis: 100%;
    }
    
    .category-total {
        flex-basis: auto;
    }
    
    .year-budget {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .stats-overview h3 {
        font-size: 1.5rem;
    }
    
    .summary-number {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-header h5 {
        font-size: 1rem;
    }
    
    .category-total {
        font-size: 1.3rem;
    }
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.two-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Final Section */
.final-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    text-align: center;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 64, 0, 0.3);
}

.cta-button:hover {
    background: #e63900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 0, 0.4);
}

.cta-button.secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(63, 51, 77, 0.3);
}

.cta-button.secondary:hover {
    background: #322942;
    box-shadow: 0 6px 20px rgba(63, 51, 77, 0.4);
}

/* Footer */
.longread-footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dashboard Embed Section */
.dashboard-embed-section {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-light);
    position: relative;
}

.dashboard-iframe {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    border: none;
    display: block;
}

/* Warning/Disclaimer Box */
.highlight-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.highlight-box.warning p {
    margin: 0;
    color: #e65100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .stats-highlight {
        grid-template-columns: 1fr;
    }
    
    .map-overlay {
        padding: 2rem;
        max-width: 90%;
    }
    
    .video-caption {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .video-caption h3 {
        font-size: 1.75rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Print Styles */
@media print {
    .video-section,
    .map-section {
        display: none;
    }
    
    .content-section {
        min-height: auto;
        page-break-inside: avoid;
    }
}

/* ==========================================
   DASHBOARD INTEGRATION STYLES
   ========================================== */

.dashboard-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

/* Dashboard Filters */
.dashboard-filters {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-filters h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-secondary,
.btn-primary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e63900;
    transform: translateY(-2px);
}

/* Results Info */
.results-info {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filtered-budget {
    color: var(--text-secondary);
}

.filtered-budget strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

#projects-table {
    width: 100%;
    border-collapse: collapse;
}

#projects-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

#projects-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

#projects-table th.sortable:hover {
    background: rgba(255,255,255,0.1);
}

#projects-table th.numeric {
    text-align: right;
}

#projects-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#projects-table tbody tr:hover {
    background-color: #f8f9fa;
}

#projects-table td {
    padding: 1rem;
    font-size: 0.9rem;
}

#projects-table td.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Pagination */
.pagination {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

#page-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#items-per-page {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-section {
        padding: 2rem 0;
    }
    
    .dashboard-filters {
        padding: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    #projects-table {
        min-width: 900px;
        font-size: 0.85rem;
    }
    
    #projects-table th,
    #projects-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination button {
        width: 100%;
    }
    
    #items-per-page {
        width: 100%;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-filters h2 {
        font-size: 1.5rem;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   LONGREAD SPECIFIC STYLES
   ========================================== */

/* Longread Layout */
.longread {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
}

.longread h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 3rem 0 1.5rem 0;
    font-weight: 700;
}

.longread h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.longread p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Lead Images */
.lead-image {
    margin: 3rem 0;
    text-align: center;
}

.lead-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lead-image figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Full Bleed Images */
.full-bleed {
    margin: 3rem -2rem;
    text-align: center;
}

.full-bleed img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Quote References */
.quote-ref {
    background: rgba(255, 64, 0, 0.1);
    color: var(--primary-color);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95em;
}

/* Lists */
.policy-list {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.policy-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.apa-list {
    padding-left: 0;
    list-style: none;
    counter-reset: item;
}

.apa-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    counter-increment: item;
    font-size: 0.95rem;
    line-height: 1.6;
}

.apa-list li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footnotes */
.footnotes {
    border-top: 2px solid var(--border-color, #eee);
    margin-top: 4rem;
    padding-top: 2rem;
}

.footnotes li {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.fn-source {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.fn-back {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

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

/* Navigation TOC Styling */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.toc-section {
    background: var(--bg-light);
}

.icon-card h3 a {
    text-decoration: none;
    color: inherit;
}

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

/* Responsive longread */
@media (max-width: 768px) {
    .longread {
        padding: 1rem;
    }
    
    .full-bleed {
        margin: 3rem -1rem;
    }
    
    .lead-image img {
        max-width: 100%;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ENHANCED VISUAL SECTIONS - V2
   ========================================== */

/* Parallax Hero Image Sections */
.hero-image-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Specific hero backgrounds - works both locally and on GitHub Pages */
.hero-inleiding {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-betaalbaarheid {
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-aanbod {
    background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-verdringing {
    background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-upzoning {
    background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-vlaanderen {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.hero-asset-management {
    background-image: url('../assets/alvaro-reyes-qWwpHwip31M-unsplash.jpg');
}

.hero-grote-werken {
    background-image: url('../assets/peter-heymans-ooh4m2HdEls-unsplash.jpg');
}

.hero-zeehavens {
    background-image: url('../assets/demet-kayabasi-GtshVNCTyTs-unsplash.jpg');
}

.hero-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(63, 51, 77, 0.85), rgba(255, 64, 0, 0.75));
    z-index: 1;
}

.hero-image-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.hero-image-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-image-content .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Split Screen Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

.split-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.split-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Gradient Background Sections */
.gradient-section-warm {
    background: linear-gradient(135deg, #ff9a56 0%, #ff4000 100%);
    color: white;
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gradient-section-cool {
    background: linear-gradient(135deg, #3f334d 0%, #6b5b7d 100%);
    color: white;
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gradient-section-warm h2,
.gradient-section-cool h2 {
    color: white;
}

.gradient-section-warm .lead,
.gradient-section-cool .lead {
    color: rgba(255, 255, 255, 0.95);
}

/* Icon Grid for Key Points */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.icon-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.icon-card-icon {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.icon-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.icon-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Compact Cards for Better Readability */
.compact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.compact-card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.compact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.compact-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Callout Box - Updated */
.callout-box {
    background: linear-gradient(135deg, rgba(255, 64, 0, 0.1), rgba(193, 128, 157, 0.1));
    border-left: 5px solid var(--primary-color);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.callout-box strong {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .split-content {
        padding: 2rem;
    }
    
    .hero-image-section {
        height: 50vh;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-image-content h2 {
        font-size: 2rem;
    }
    
    .hero-image-content .lead {
        font-size: 1.1rem;
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
    }
}
