/* Modern CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader Styles - Zen Breathing Circle */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--primary-color);
}

.preloader-spinner {
    margin-bottom: var(--space-lg);
}

.breathing-circle {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: breathe 2.5s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(194, 157, 63, 0.3);
}

.breathing-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: breathe-inner 2.5s ease-in-out infinite reverse;
    opacity: 0.6;
}

@keyframes breathe {
    0%, 100% { 
        transform: scale(0.9);
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(194, 157, 63, 0.2);
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 40px rgba(194, 157, 63, 0.4);
    }
}

@keyframes breathe-inner {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

.preloader-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fade-pulse 3s ease-in-out infinite;
    color: var(--primary-color);
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* CSS Variables - Inspiring Business/Zen */
:root {
    /* Primary Colors - Deep Forest & Warm Gold */
    --primary-color: #2c4a3b;
    --primary-light: #3d5e4c;
    --primary-dark: #1e3327;
    --accent-color: #c29d3f;
    --accent-light: #d9b865;
    --accent-dark: #a08432;
    --header-color: #832232;
    --header-light: #a0384a;
    --header-dark: #6b1a2a;
    --red-color: #d63031;
    --red-light: #e84142;
    --red-dark: #c23031;
    
    /* Section Colors for Visual Distinction */
    --hero-gradient: linear-gradient(135deg, #fefefe 0%, #f8faf9 100%);
    --aanbod-gradient: linear-gradient(135deg, #f8faf9 0%, #fcf9f4 100%);
    --methode-gradient: linear-gradient(135deg, #fcf9f4 0%, #f7f4ed 100%);
    --imre-gradient: linear-gradient(135deg, #f7f4ed 0%, #f8faf9 100%);
    --contact-gradient: linear-gradient(135deg, #f8faf9 0%, #fefefe 100%);
    
    /* Text Colors */
    --text-primary: #2c3e35;
    --text-secondary: #4a5d52;
    --text-muted: #7a8f84;
    --text-light: #a5b8ad;
    --background: #fefefe;
    --surface: #ffffff;
    --border: #e8ede9;
    --border-warm: #f1ede3;
    
    /* Inspiring Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    
    /* Harmonious Spacing */
    --space-xs: 0.75rem;
    --space-sm: 1.25rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Natural Shadows */
    --shadow-soft: 0 2px 16px rgba(44, 74, 59, 0.08);
    --shadow-medium: 0 4px 24px rgba(44, 74, 59, 0.12);
    --shadow-strong: 0 8px 48px rgba(44, 74, 59, 0.16);
    --shadow-warm: 0 4px 24px rgba(194, 157, 63, 0.12);
    
    /* Organic Shapes */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Smooth Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    margin: 0;
    padding: 0;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
    margin: 0;
    padding: 0;
}

/* Inspiring Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xl);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-left: var(--space-md);
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 4px;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-warm);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: var(--space-md);
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: var(--radius-sm);
}

p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 70ch;
}

/* Header - Elegant Navigation */
.header {
    background: var(--header-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(var(--shadow-soft));
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    padding: 0;
}

.logo {
    margin-right: auto;
}

.desktop-only {
    display: flex;
}

.mobile-language-toggle {
    display: none;
    padding: 5px 2rem;
    border-top: 1px solid rgba(44, 74, 59, 0.08);
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    padding: 0;
}


.logo-img:hover {
    transform: translateY(-2px);
}

/* Navigation - Compact & Professional */
.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transform-origin: center;
}

.nav-list a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--transition);
}

.nav-list a:hover {
    transform: translateY(-2px);
    color: white;
}

.nav-list a:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.nav-list a:active {
    transform: translateY(0px) scale(1);
    transition-duration: 0.1s;
}


/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    /* No hover effect on mobile */
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0px, -7px);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 2px;
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.lang-btn.active::before {
    opacity: 0.15;
}

.lang-btn:hover::before {
    opacity: 0.08;
}

.lang-btn img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-grid {
    max-width: 900px;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-direction: column;
}

/* Hero Section - Perfect One Page */
.hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-lg) 0;
    height: calc(100vh - 100px);
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(194, 157, 63, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-text {
    margin-bottom: var(--space-xl);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-color);
    border: 2px solid var(--border-warm);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: rgba(194, 157, 63, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-images {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    margin-bottom: var(--space-sm);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.hero-img:hover {
    transform: translateY(-2px);
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.hero-gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0.9;
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.hero-gallery-img:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

/* Section Visual Distinction */
#aanbod {
    background: var(--aanbod-gradient);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    scroll-margin-top: 100px;
}

#achtergrond {
    background: var(--methode-gradient);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    scroll-margin-top: 100px;
}

#over-imre {
    background: var(--imre-gradient);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    scroll-margin-top: 100px;
}

#agenda {
    background: linear-gradient(135deg, #f7f4ed 0%, #f8faf9 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    scroll-margin-top: 100px;
    min-height: 400px; /* Prevent layout shifts while content loads */
}

#agenda-dynamic-content {
    min-height: 200px; /* Reserve space for agenda content */
}

#contact {
    background: var(--contact-gradient);
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) 0;
    scroll-margin-top: 100px;
}

/* Content Cards - Zen & Professional */
.content-card {
    background: var(--surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.6;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Section Images - Uniform Layout */
.section-image {
    margin: var(--space-xl) 0;
    text-align: center;
}

.section-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.section-img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

/* Gallery Images - Three Small Images */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    opacity: 0.9;
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.gallery-img:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .gallery-img {
        height: 200px;
    }
}

/* TEDx Video Section */
.tedx-section {
    /* Inherits styling from .content-card */
}

.video-container {
    position: relative;
    width: 100%;
    margin: var(--space-lg) 0;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: var(--transition);
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.video-thumbnail:hover .thumbnail-img {
    transform: translateY(-2px);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: var(--transition);
}

.video-thumbnail:hover .video-overlay {
    transform: translateY(0);
}

.video-overlay h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
}

.video-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    color: rgba(255,255,255,0.8);
}

.tedx-quote {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
}

.tedx-quote blockquote {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
}

.tedx-quote cite {
    font-size: 0.95rem;
    color: var(--accent-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .video-container {
        margin: var(--space-md) 0;
    }
    
    .play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .video-overlay {
        padding: var(--space-md);
        transform: translateY(0); /* Always visible on mobile */
    }
    
    .video-overlay h4 {
        font-size: 1rem;
    }
    
    .video-overlay p {
        font-size: 0.85rem;
    }
    
    .tedx-quote {
        padding: var(--space-md);
    }
    
    .tedx-quote blockquote {
        font-size: 1rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.service-item {
    background: linear-gradient(145deg, var(--surface) 0%, rgba(248, 250, 249, 0.8) 100%);
    padding: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-warm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-bottom: var(--space-md);
}

.service-item > :not(.service-img) {
    padding: 0 var(--space-lg);
}

.service-item > ul {
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
}

.service-item::after {
    content: '';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    opacity: 0.4;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.service-item:hover::after {
    opacity: 0.8;
    background: var(--accent-light);
}

.service-item h4 {
    color: var(--primary-color);
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-family: var(--font-display);
}

.service-subtitle {
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-body);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.6;
}

.service-item ul,
.content-card ul,
#event-description-content ul,
.event-description ul {
    margin: var(--space-lg) 0;
    padding-left: 0;
    list-style: none;
}

.service-item li,
.content-card li,
#event-description-content ul li,
.event-description ul li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}

.service-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 500;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.content-card li::before,
#event-description-content ul li::before,
.event-description ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

/* Ordered lists for event descriptions */
#event-description-content ol,
.event-description ol {
    margin: var(--space-lg) 0;
    padding-left: 0;
    list-style: none;
    counter-reset: list-counter;
}

#event-description-content ol li,
.event-description ol li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
    counter-increment: list-counter;
}

#event-description-content ol li::before,
.event-description ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Headers in event descriptions */
#event-description-content h1,
#event-description-content h2,
#event-description-content h3,
.event-description h1,
.event-description h2,
.event-description h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

#event-description-content h1, .event-description h1 { 
    font-size: 2rem; 
    font-weight: 700; 
}
#event-description-content h2, .event-description h2 { 
    font-size: 1.5rem; 
    font-weight: 600; 
}
#event-description-content h3, .event-description h3 { 
    font-size: 1.25rem; 
    font-weight: 500; 
}

/* Paragraphs in event descriptions - tighter spacing */
#event-description-content p,
.event-description p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tighter spacing for headers followed by lists */
#event-description-content h1 + ul,
#event-description-content h1 + ol,
#event-description-content h2 + ul,
#event-description-content h2 + ol,
#event-description-content h3 + ul,
#event-description-content h3 + ol,
#event-description-content p + ul,
#event-description-content p + ol,
.event-description h1 + ul,
.event-description h1 + ol,
.event-description h2 + ul,
.event-description h2 + ol,
.event-description h3 + ul,
.event-description h3 + ol,
.event-description p + ul,
.event-description p + ol {
    margin-top: var(--space-sm);
}

/* Links in event descriptions */
#event-description-content a,
.event-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#event-description-content a:hover,
.event-description a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-color);
}

/* Contact Section */
.contact-details {
    margin: var(--space-lg) 0;
    padding: var(--space-xl);
    background: rgba(252, 249, 244, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-warm);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
}

.contact-info p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border-warm);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer */
.footer {
    margin-top: var(--space-3xl);
    padding: var(--space-xl) 0;
    background: var(--contact-gradient);
    border-top: 1px solid var(--border);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    font-family: var(--font-body);
}

/* Language Toggle Functionality */
.language-toggle .lang-btn {
    display: flex !important;
}

body.lang-en .connect-extra[data-lang="en"] {
    display: block !important;
}

body.lang-nl .connect-extra[data-lang="en"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
        padding: var(--space-lg) 0;
        height: auto;
        min-height: 85vh;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-images {
        order: 2;
    }
    
    .hero-img {
        height: 300px;
    }
    
    .hero-gallery-img {
        height: 80px;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .nav-list {
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    :root {
        --space-xs: 0.5rem;
        --space-sm: 1rem;
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
        --space-3xl: 5rem;
    }
}

/* Header controls container */
.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile Navigation with Hamburger */
@media (max-width: 768px) {
    .header {
        height: auto; /* Let header height be determined by content */
        min-height: auto;
        border-bottom: none; /* Remove border that creates thin line */
        box-shadow: none; /* Remove shadow that might create gap */
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        height: auto;
    }
    
    .logo {
        order: -1;
        width: 100vw;
        margin: 0 -50vw;
        position: relative;
        left: 50%;
        right: 50%;
        background: rgba(248, 250, 249, 0.95);
        backdrop-filter: blur(24px);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        min-height: fit-content;
    }

    .logo-img {
        width: 100vw;
        height: auto;
        max-width: none;
        object-fit: contain;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: var(--space-md);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1005;
        pointer-events: auto;
    }
    
    .mobile-menu-toggle .hamburger-line {
        background-color: white;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-language-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 250, 249, 0.98);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
    }
    
    .nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 600px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: var(--space-md) 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(44, 74, 59, 0.08);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: var(--space-md) var(--space-xl);
        text-align: center;
        display: block;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        color: var(--primary-color);
    }

    .nav-list a:hover {
        background: rgba(131, 34, 50, 0.1);
        transform: none;
        scale: none;
        color: #832232;
    }
    
    .language-toggle {
        flex-shrink: 0;
    }
    
    h2 {
        padding-left: var(--space-sm);
    }
    
    h2::before {
        left: -var(--space-xs);
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-md) var(--space-lg);
        text-align: center;
        justify-content: center;
        min-width: 200px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
    }
    
    .content-card {
        padding: var(--space-lg);
    }
}

/* Event Cards Styling */
.dynamic-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    width: 100%;
}

.event-preview {
    width: 100%;
}

.event-card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(44, 74, 59, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "image title"
        "image description"
        "image meta"
        "image actions";
    gap: 0;
    padding: 0;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(44, 74, 59, 0.18), 
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(44, 74, 59, 0.08);
    border-radius: 28px;
}

.agenda-event-image {
    grid-row: 1 / -1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 200px; /* Force minimum height for consistent display */
    border-radius: 0;
    overflow: hidden;
    position: relative;
    /* Firefox-specific grid layout stability */
    contain: layout style;
}

.agenda-event-image img {
    width: 100%;
    height: 100%;
    min-height: 200px; /* Firefox compatibility */
    object-fit: cover;
    object-position: center;
    display: block;
    /* Firefox-specific fixes for grid layout */
    flex-shrink: 0;
    box-sizing: border-box;
}

.event-title {
    grid-area: title;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--font-display);
    margin: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

.event-description {
    grid-area: description;
    padding: 0.5rem 1.5rem 0 1.5rem;
}

.event-meta-row {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
}

.event-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.event-location-cost {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}



.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0;
}

.event-detail-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}



.event-excerpt {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.event-meta-item {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 1;
}

.event-meta-item svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.event-trainer {
    background: none;
    color: var(--text-muted);
    font-weight: 500;
    border: none;
}

.event-actions {
    grid-column: 2;
    grid-row: 4;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.event-link {
    background: var(--header-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    max-width: 320px;
}

.event-link:hover {
    background: var(--header-dark);
}

.event-link:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

/* Ripple effect for buttons */
.event-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.event-link:active::before {
    width: 300px;
    height: 300px;
}
    box-shadow: var(--shadow-medium);
}

/* Modern Skeleton Loaders */
.skeleton-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.event-skeleton .event-card {
    pointer-events: none;
    animation: fadeInSkeleton 0.6s ease-out;
}

.event-skeleton .skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 20px 0 0 20px;
}

.event-content-skeleton {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.event-meta-skeleton {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-md);
}

.skeleton-meta {
    height: 14px;
    width: 120px;
}

.skeleton-button {
    height: 48px;
    width: 200px;
    border-radius: 24px;
    margin-top: var(--space-md);
    align-self: center;
}

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

.agenda-skeleton .event-skeleton:nth-child(1) { animation-delay: 0s; }
.agenda-skeleton .event-skeleton:nth-child(2) { animation-delay: 0.2s; }
.agenda-skeleton .event-skeleton:nth-child(3) { animation-delay: 0.4s; }

/* Modern Scroll Animations */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.animate-on-scroll.scroll-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation styles for different elements - titles disabled */

.service-card.animate-on-scroll {
    transform: translateY(0) scale(1);
}

.service-card.scroll-animated {
    transform: translateY(0) scale(1);
}

/* Event animations PERMANENTLY DISABLED to prevent agenda conflicts */
/* Prevent scroll animation classes from being applied to event elements */
.event-preview.animate-on-scroll,
.event-card.animate-on-scroll, 
.event-link.animate-on-scroll,
#agenda-dynamic-content .animate-on-scroll,
.agenda-loading.animate-on-scroll,
.event-skeleton.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* But preserve hover effects */
.event-card:hover {
    transform: translateY(-2px) !important;
}

.event-link:hover {
    transform: translateY(-2px) !important;
}

.gallery-img.animate-on-scroll {
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.gallery-img.scroll-animated {
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Enhanced header with dynamic opacity */
.header {
    background: var(--header-color);
}

/* Smooth parallax for hero */
.hero {
    will-change: transform;
    backface-visibility: hidden;
    z-index: 1;
    position: relative;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .hero {
        transform: none !important;
    }
    
    .event-preview.animate-on-scroll {
        transform: none;
    }
}

/* Modern Touch Interactions */
.touch-device {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced touch feedback */
.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.event-link.touch-active {
    transform: scale(0.95) translateY(-1px);
    box-shadow: 0 4px 12px rgba(131, 34, 50, 0.3);
}

.nav-list a.touch-active {
    transform: scale(0.95) translateY(-1px);
    background: rgba(44, 74, 59, 0.15);
}

/* Swipe indicators */
.swipe-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.swipe-indicator.swipe-left .swipe-arrow-right,
.swipe-indicator.swipe-right .swipe-arrow-left {
    display: none;
}

.swipe-arrow-left,
.swipe-arrow-right {
    font-size: 1.5rem;
    animation: swipeArrow 1s ease-in-out infinite;
}

@keyframes swipeArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.swipe-left .swipe-arrow-left {
    animation-direction: reverse;
}

/* Pull to refresh indicator */
.pull-refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -20px) rotate(0deg); }
    to { transform: translate(-50%, -20px) rotate(360deg); }
}

/* Smooth body transitions for pull refresh */
body {
    transition: transform 0.2s ease;
    transform-origin: center top;
}

/* Better touch targets */
@media (max-width: 768px) {
    .nav-list a,
    .event-link,
    .lang-btn,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Larger touch areas for mobile */
    .event-link {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
    }
    
    .nav-list a {
        padding: 1rem;
        margin: 0.2rem;
    }
}

/* Responsive event cards */
@media (max-width: 1024px) {
    .event-card {
        grid-template-columns: 1fr;
        grid-template-rows: 200px auto auto auto auto;
    }
    
    .agenda-event-image {
        grid-row: 1;
        grid-column: 1;
        height: 200px;
    }
    
    .event-title {
        grid-row: 2;
        grid-column: 1;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }
    
    .event-description {
        grid-row: 3;
        grid-column: 1;
    }
    
    .event-meta-row {
        grid-row: 4;
        grid-column: 1;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .event-actions {
        grid-row: 5;
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .event-card {
        display: block !important;
        grid: none !important;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }
    
    .agenda-event-image {
        width: 100%;
        height: 180px;
        margin: 0;
        position: relative;
        grid: none !important;
        display: block;
    }
    
    .agenda-event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .event-title {
        display: block !important;
        grid: none !important;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-color);
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        margin: 0;
        text-align: left;
        line-height: 1.3;
    }
    
    .event-description {
        display: block !important;
        grid: none !important;
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .event-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--text-secondary);
    }
    
    .event-meta-row {
        display: block !important;
        grid: none !important;
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .event-datetime,
    .event-location-cost {
        margin-bottom: 1rem;
    }
    
    .event-detail-item {
        margin-bottom: 0.5rem;
    }
    
    .event-actions {
        display: block !important;
        grid: none !important;
        padding: 0 1.5rem 1.5rem 1.5rem;
        text-align: center;
    }
}

/* Focus & Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

html {
    scroll-behavior: smooth;
    /* Fix for sticky header overlap with anchor links like #home */
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==================================================
   EVENT DETAIL PAGE STYLES
   (Consolidated from event.css for consistency)
   ================================================== */

/* Loading & Error States */
.loading-section, .error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-content, .error-content {
    max-width: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-content h1 {
    color: #dc2626;
    margin-bottom: 1rem;
}

/* Event Main - back to normal */
.event-main {
    padding-top: 80px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* Event Hero */
.event-hero {
    margin-bottom: 4rem;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.event-left {
    
}

.event-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Event Page Specific - Scoped to avoid conflicts with agenda */
.event-main .event-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1f2937;
    margin: 0 0 2rem 0;
    line-height: 1.2;
}

.description-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 3rem;
}

.description-content p {
    margin-bottom: 1.2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.meta-icon {
    font-size: 1.2rem;
}

.event-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Event Page Image - Scoped to avoid conflicts */
.event-main .event-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.info-address {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Location card special styling */
.location-info {
    padding: 0;
    overflow: hidden;
}

.location-image {
    height: 120px;
    overflow: hidden;
}

.location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info .info-item {
    padding: 1rem;
    align-items: center;
}

/* Trainer card special styling */
.trainer-info {
    padding: 0;
    overflow: hidden;
}

.trainer-info .trainer-image {
    height: 120px;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    display: flex;
}

.trainer-info .trainer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.trainer-info .trainer-img.multi-trainer {
    flex: 1;
    width: 0; /* Important: reset width so flex can work */
    min-width: 0; /* Allow flex items to shrink */
    border-right: 1px solid #e5e7eb;
}

.trainer-info .trainer-img.multi-trainer:last-child {
    border-right: none;
}

.trainer-info .info-item {
    padding: 1rem;
    align-items: center;
}

/* Register button rechts */
.register-btn-right {
    background: var(--header-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.register-btn-right:hover {
    background: #6b1a2a;
}

/* Registration form inline */
.registration-card-inline {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.registration-card-inline h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

/* Nieuwe register button */
.btn-register-new {
    background: var(--header-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register-new:hover {
    background: var(--header-dark);
}

/* Registration Section */
.registration-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.registration-container {
    max-width: 600px;
    margin: 0 auto;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-description h2,
.event-trainer h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.description-content {
    line-height: 1.7;
    color: #374151;
    font-size: 1.05rem;
}

.description-content p {
    margin-bottom: 1rem;
}

/* Trainer Info */
.event-main .trainer-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.trainer-image {
    width: 80px;
    height: 80px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.trainer-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.trainer-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.trainer-content a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.trainer-content a:hover {
    text-decoration: underline;
}

/* Registration Sidebar */
.registration-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.registration-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.price-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.registration-status {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.status-available {
    background: #d1fae5;
    color: #065f46;
}

.status-limited {
    background: #fef3c7;
    color: #92400e;
}

.status-full {
    background: #fee2e2;
    color: #991b1b;
}

.status-past {
    background: #f3f4f6;
    color: #6b7280;
}

/* Registration Form */
.registration-form h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox */
.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Register Button */
.btn-register {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: var(--space-md);
    text-align: center;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.success-message h4,
.error-message h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.success-message p,
.error-message p {
    margin: 0;
    font-size: 0.9rem;
}

/* Event Page Responsive Design */
@media (max-width: 1024px) {
    .event-main .event-title {
        font-size: 2.5rem;
    }
    
    .event-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .event-right {
        order: -1;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* MOBILE EVENT PAGE - Complete redesign */
    body {
        margin: 0;
        padding: 0;
    }
    
    /* FORCE: Remove ALL header spacing */
    .header {
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .header::after {
        display: none !important;
    }
    
    .event-main {
        padding: 0 !important;
        padding-top: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
    }
    
    .event-main .container {
        padding: 0 var(--space-md);
        margin: 0;
    }
    
    .event-hero {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        padding: 0 var(--space-md);
        margin: 0;
    }
    
    .event-content-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        position: relative;
        top: 0;
    }
    
    .event-left,
    .event-right {
        display: contents !important;
    }
    
    /* 1. EVENT IMAGE - Full width hero */
    .event-image-container {
        order: 1;
        width: 100vw;
        height: 240px;
        margin: 0 -50vw 0 -50vw;
        left: 50%;
        position: relative;
        border-radius: 0;
        overflow: hidden;
        display: block !important;
    }
    
    .event-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 2. DIRECT INSCHRIJVEN - Original color, full width */
    .register-btn-right {
        order: 2;
        background: var(--header-color);
        color: white;
        border: none;
        border-radius: 0;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        position: relative;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .register-btn-right:hover {
        background: #6b1a2a;
        transform: none;
        box-shadow: none;
    }
    
    /* 3. EVENT TITEL - Clean typography */
    .event-main .event-title {
        order: 3;
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
        color: var(--primary-color);
        margin: 0 0 1rem 0;
        text-align: left;
    }
    
    /* 4. BESCHRIJVING - Readable content */
    .description-content {
        order: 4;
        margin-bottom: 2rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }
    
    /* 5. PRAKTISCHE INFO - Full width cards */
    .info-card:not(.trainer-info) {
        order: 5;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem;
        margin: 0 -50vw 1px -50vw;
        left: 50%;
        position: relative;
        width: 100vw;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        box-shadow: none;
        text-align: left;
    }
    
    .info-card .info-icon {
        font-size: 1.2rem;
        width: 24px;
        flex-shrink: 0;
        text-align: left;
    }
    
    .info-card .info-content {
        flex: 1;
        text-align: left !important;
    }
    
    .info-card .info-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
        text-align: left !important;
    }
    
    .info-card .info-value {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: left !important;
    }
    
    /* BRUTAL FORCE: All text left aligned */
    .info-card,
    .info-card *,
    .info-card .info-content,
    .info-card .info-label,
    .info-card .info-value,
    .info-item,
    .info-item *,
    .datetime-info,
    .time-info,
    .price-info {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    /* Location card special styling - full width image */
    .location-info {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
    }
    
    .location-info .location-image {
        display: block !important;
        width: 100%;
        height: 180px;
        order: -1;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }
    
    .location-info .location-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .location-info .info-item {
        padding: 1rem !important;
        align-items: center !important;
    }
    
    /* 6. TRAINER INFO - Full width profile style */
    .trainer-info {
        order: 6;
        background: linear-gradient(135deg, var(--surface) 0%, var(--aanbod-gradient) 100%);
        border: 1px solid var(--border-warm);
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1.5rem;
        margin: 0 -50vw 2rem -50vw;
        left: 50%;
        position: relative;
        width: 100vw;
        text-align: center;
        box-shadow: none;
    }
    
    .trainer-info {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    .trainer-info .trainer-image {
        height: 180px;
        width: 100%;
        border-radius: 0;
        overflow: hidden;
        margin: 0;
        border: none;
        order: -1;
    }
    
    .trainer-info .trainer-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .trainer-info .info-item {
        padding: 1rem !important;
        align-items: center !important;
    }
    
    .trainer-info .info-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--accent-dark);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .trainer-info .info-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-color);
        text-align: left;
    }
    
    /* 7. REGISTRATIE FORMULIER - Full width form */
    .registration-card-inline {
        order: 7;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1.5rem;
        margin: 0 -50vw 0 -50vw;
        left: 50%;
        position: relative;
        width: 100vw;
    }
    
    .registration-card-inline h3 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.875rem;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.2s ease;
        background: var(--surface);
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--accent-color);
    }
    
    .btn-register-new {
        background: var(--header-color);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 1rem 2rem;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        margin-top: 1rem;
        cursor: pointer;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn-register-new:hover {
        background: var(--header-dark);
    }
    
    .event-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .event-main .event-image {
        height: 250px;
    }
    
    .event-main .trainer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .trainer-image {
        align-self: center;
        width: 100px;
        height: 100px;
        border-radius: 0;
    }
    
    .registration-card {
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .event-main {
        padding-top: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .event-main .event-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Compact Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.team-member {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    transition: var(--transition);
}

/* Specific positioning for Judith's photo */
.team-photo[alt="Judith van den Boogert"] {
    object-position: left center;
}

.team-photo:hover {
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

/* Always visible name bar */
.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    padding: var(--space-xs) var(--space-sm) var(--space-xs);
    transition: all 0.3s ease;
}

/* Expanded state on hover */
.team-member:hover .team-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85));
    padding: var(--space-md) var(--space-sm) var(--space-sm);
}

.team-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.team-title {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin: var(--space-xs) 0 0 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member:hover .team-name {
    transform: translateY(-8px);
}

.team-member:hover .team-title {
    opacity: 1;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .team-photo {
        height: 250px;
    }
    
    .team-name {
        font-size: 1rem;
        transform: translateY(-8px);
    }
    
    .team-title {
        font-size: 0.75rem;
        opacity: 1;
        height: auto;
    }
    
    .team-overlay {
        padding: var(--space-md) var(--space-sm) var(--space-sm);
        background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85));
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .team-photo {
        height: 280px;
    }
    
    .team-name {
        font-size: 1rem;
        transform: translateY(-8px);
    }
    
    .team-title {
        font-size: 0.8rem;
        opacity: 1;
        height: auto;
    }
    
    .team-overlay {
        padding: var(--space-md) var(--space-sm) var(--space-sm);
        background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85));
    }
}