/* ===================================
   CSS Custom Properties (Design System)
   =================================== */
:root {
    /* Colors */
    --color-primary: #1a3a52;
    --color-primary-light: #2d5573;
    --color-primary-dark: #0f2537;
    --color-accent: #d4a574;
    --color-accent-light: #e6c9a8;
    --color-accent-dark: #b8895f;

    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-light: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a3a52 0%, #2d5573 100%);
    --gradient-accent: linear-gradient(135deg, #d4a574 0%, #b8895f 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 58, 82, 0.3) 0%, rgba(45, 85, 115, 0.3) 100%);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito', sans-serif;

    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2.2rem;
    --font-size-2xl: 3rem;
    --font-size-3xl: 4.5rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Global Interactive Effects
   =================================== */
.glass-card,
.service-card,
.contact-card,
.staff-card,
.gallery-card,
.btn,
.fancy-item,
.card-image {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                background-color 0.4s ease,
                border-color 0.4s ease;
}

/* Hover Shadows & Lift */
.glass-card:hover,
.service-card:hover,
.contact-card:hover,
.staff-card:hover,
.gallery-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 15px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

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

/* Specific Pop-out Animations */
.btn-pop:hover,
.play-button-jump:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.service-image:hover .play-button-jump {
    transform: scale(1.1) translateY(-2px);
}

.service-image .play-button-jump:hover {
    transform: scale(1.25) translateY(-8px);
}


.card-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.fancy-item:hover {
    background: rgba(26, 58, 82, 0.05);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

/* Universal Image Hover Shadow */
img:not(.logo):hover {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

img.no-zoom:hover {
    transform: none !important;
}

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

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    background-color: #0b1a28;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    /* overflow-x: hidden; Removed because it breaks background-attachment: fixed in Chrome */
    scrollbar-gutter: stable; /* Prevent layout shift when scrollbar appears/disappears */
}

html.stop-scrolling,
body.stop-scrolling {
    overflow: hidden !important;
    /* NOTE: position:fixed removed — it caused layout shifts on iOS Chrome.
       Scroll blocking is handled by touchmove preventDefault in script.js */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

/* ===================================
   Layout Components
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-large {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease-in-out, visibility 0.5s ease, box-shadow 0.8s ease;
}

.navbar.scrolled,
.navbar.menu-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out, visibility 0s, box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    text-decoration: none;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.brand:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.36rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.brand:hover .logo-text {
    color: var(--color-accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.05rem;
    justify-content: flex-end; /* Lock alignment to the right to prevent jumping */
}

.nav-links {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.nav-social {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    padding-left: 0.85rem;
    border-left: 1px solid rgba(26, 58, 82, 0.15);
}

.nav-social-link {
    color: var(--color-text-light);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
}

.nav-social-link:hover {
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.1);
    transform: translateY(-2px);
}

.nav-social-link svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 991px) {
    .nav-social {
        display: none;
    }
}

/* Search Styles */
.nav-search {
    display: flex;
    align-items: center;
    margin-right: -10px;
}

.search-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 17px;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--color-accent);
    background: rgba(212, 165, 116, 0.1);
}

.search-toggle svg {
    width: 17px;
    height: 17px;
}

.search-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background: none;
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-2xl);
    font-family: var(--font-heading);
    color: var(--color-primary);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: rgba(26, 58, 82, 0.3);
}

.search-close {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: color var(--transition-base);
}

.search-close:hover {
    color: var(--color-accent);
}

.search-results {
    margin-top: var(--spacing-2xl);
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-result-item {
    display: block;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    background: rgba(212, 165, 116, 0.05);
    transform: translateX(10px);
}

.search-result-item h4 {
    margin-bottom: 0px;
    color: var(--color-primary);
}

.search-result-item p {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}




.nav-link {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-light);
    position: relative;
    padding: 0.34rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-light);
}

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

.nav-item-mobile-wrapper {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    font-family: var(--font-heading);
    display: block;
    padding: var(--spacing-xs) var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-base);
    text-align: left;
    font-weight: 700;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-primary);
    padding-left: calc(var(--spacing-lg) + 5px);
}

.dropdown-item.active {
    color: var(--color-primary-dark);
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: default;
}

.dropdown-toggle svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.5px;
    transition: transform var(--transition-base);
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Removed legacy mobile menu styles to fix alignment conflict */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 21px;
    height: 2.5px;
    background: var(--color-text-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section with Slider
   =================================== */
.hero {
    position: relative;
    margin-top: 0; /* Hero now starts at the top, behind the navbar */
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0b1a28;
}

.hero-small {
    height: 80vh;
    min-height: 560px;
    margin-top: 0 !important;
    padding-top: 85px;
    background-color: #0b1a28;
    position: relative;
    overflow: hidden;
}

.hero-booking {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('Slider%20Images/Slider%201%20hd%20rioted.webp?v=3e26e896');
    background-size: 0 0;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
    overflow: hidden;
}

/* Blurred ambient background layer to seamlessly fill widescreen edges */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px) brightness(0.45);
    z-index: 0;
    opacity: 0.85;
}

/* Sharp main photo layer - displays full top and full bottom starting right at the top */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    filter: drop-shadow(0 0 35px rgba(0,0,0,0.6));
}

.hero:has(.hero-bg),
.hero.has-hero-bg {
    background-image: none !important;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    will-change: transform;
    background-color: #0b1a28;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.0s ease-in-out; 
    background-color: #0b1a28;
    overflow: hidden;
}

/* Blurred background layer to bridge the gap for non-matching aspect ratios */
.hero-slide::before {
    content: '';
    position: absolute;
    top: -50px; /* Bleed to ensure blur covers edges */
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: var(--slide-img);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.5);
    z-index: 0;
    opacity: 0.8;
}

/* High-quality sharp image layer */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40px;
    background-image: var(--slide-img);
    /* contain: show the entire photo (nothing cropped at the bottom on wide desktop
       viewports); the blurred ::before layer fills any leftover space at the sides */
    background-size: contain;
    background-position: var(--slide-pos-x, center) top;
    background-repeat: no-repeat;
    z-index: 1;
    /* Add a subtle depth effect to the main photo */
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.6));
}

.hero-slide.slide-contain::after {
    background-size: contain;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.25) 0%, rgba(45, 85, 115, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-light);
    max-width: 800px;
    padding: 40px var(--spacing-md) 0; /* Reduced padding-top to move content up */
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6), 0 8px 40px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.accent-highlight {
    color: var(--color-text-light);
    display: inline-block;
    position: relative;
    padding-top: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xl);
    opacity: 1;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 65px; /* Middle ground for visibility and alignment */
    left: 50%;
    transform: translateX(-50%);
    z-index: 50; /* Increased to stay above everything in the hero */
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.4); /* Subtle white border to pop against dark backgrounds */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dot:hover {
    background: #333333;
    transform: scale(1.3);
}

.dot.active {
    background: #ffffff; /* Changed from accent to white as requested */
    border-color: #000000;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Section Divider Style */
.hero-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 10;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    .hero-small {
        height: 60vh;
        min-height: 420px;
        margin-top: 0 !important;
        padding-top: 70px;
    }
    .hero-bg {
        top: 0;
        height: 100%;
    }
    /* Fill the whole hero on phones - no leftover/blurred filler space */
    .hero-bg::before {
        display: none;
    }
    .hero-bg::after {
        top: 0;
        bottom: 0;
        background-size: cover;
        background-position: center center;
        filter: none;
    }
    .hero-slide::before {
        display: none;
    }
    .hero-slide::after,
    .hero-slide.slide-contain::after {
        background-size: cover;
        background-position: var(--slide-pos, center center) !important;
        top: 0;
        bottom: 0;
        filter: none;
    }
    .hero-divider svg {
        height: 50px;
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.btn-primary {
    /* Base btn now covers the glass look; keeping class for semantic purposes */
}

/* ===================================
   About Section
   =================================== */
/* Waardes Section - Sticky Locked Background */
.history-section {
    position: relative;
    width: 100%;
    min-height: 125vh;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
}

.waardes-sticky-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/Paralax/Slide%201%20HD%20rioted.webp?v=02e5e170');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.waardes-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 37, 55, 0.4);
    pointer-events: none;
}

.history-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 110px;
}

@media (max-width: 1024px) {
    .history-section {
        min-height: auto;
    }
    .history-section > .container {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}

/* History Section for "Ons Geskiedenis" - Sticky Locked Background */
.history-parallax-section {
    position: relative;
    width: 100%;
    min-height: 125vh;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
}

.history-sticky-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/Paralax/Stoele Higher Res Rioted.webp?v=6b2a50ca');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.history-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 37, 55, 0.2);
    pointer-events: none;
}

.history-parallax-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 110px;
}

@media (max-width: 1024px) {
    .history-parallax-section {
        min-height: auto;
    }
    .history-parallax-section > .container {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}

/* Eredienste Section - Sticky Locked Background */
.dienste-parallax-section {
    position: relative;
    width: 100%;
    min-height: 125vh;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
}

.dienste-sticky-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/Kerk%20Lokaal/church%20hall%20converted.webp?v=337d0321');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.dienste-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 37, 55, 0.2);
    pointer-events: none;
}

.dienste-parallax-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 140px;
}

@media (max-width: 1024px) {
    .dienste-parallax-section {
        min-height: auto;
    }
    .dienste-parallax-section > .container {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}

/* Optredes Section (Komende Gebeure) - Sideways Banner (50% Smaller) */
.optredes-parallax-section {
    position: relative;
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 100%;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
    overflow: hidden;
}

.optredes-sticky-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Media/New%20Photos%20Higher%20Res/Events/6newnew.webp?v=5844a975');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.optredes-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 37, 55, 0.35);
    pointer-events: none;
}

.optredes-banner-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding: 35px 0 65px;
    width: 100%;
}

.events-scroll-banner::-webkit-scrollbar { display: none; }
.events-scroll-banner {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    position: relative;
    padding: 6px 0 12px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

@media (max-width: 1024px) {
    .optredes-banner-content {
        padding: 25px 0 55px;
    }
}

/* Sentrum van Hoop Section - Sticky Locked Background */
.hoop-parallax-section {
    position: relative;
    width: 100%;
    min-height: 125vh;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
}

.hoop-sticky-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/New%20Photos%20Higher%20Res/Bea/Converted%20Bea.webp?v=a9ffe60a');
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.hoop-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 37, 55, 0.25);
    pointer-events: none;
}

.hoop-parallax-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 120px;
}

@media (max-width: 1024px) {
    .hoop-parallax-section {
        min-height: auto;
    }
    .hoop-parallax-section > .container {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}

/* Aksies Section - Sticky Locked Background */
.aksies-parallax-section {
    position: relative;
    width: 100%;
    min-height: 125vh;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    padding: 0;
    margin: 0;
    margin-top: -1px;
    background-color: #0f2537;
}

.aksies-sticky-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/Bazaar/Converted/Roelf.webp?v=ae96d578');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.aksies-sticky-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right,
        rgba(15, 37, 55, 0.5) 0%,
        rgba(15, 37, 55, 0.2) 20%,
        rgba(15, 37, 55, 0.2) 80%,
        rgba(15, 37, 55, 0.5) 100%);
    pointer-events: none;
}

.aksies-parallax-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 120px;
}

@media (max-width: 1024px) {
    .aksies-parallax-section {
        min-height: auto;
    }
    .aksies-parallax-section > .container {
        padding-top: 60px;
        padding-bottom: 100px;
    }
}




/* Removed legacy history header styles to ensure clean parallax look */

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

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text p {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* 4-column grid for the Waardes / values cards */
.waardes-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    width: 100%;
}

.waardes-grid .service-card .card-image {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    display: block !important;
    margin: 0 auto 0.75rem !important;
}


.service-card {
    text-align: center;
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.service-time {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent-dark);
    margin: var(--spacing-sm) 0;
}

.card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.service-card:hover .card-image {
    transform: scale(1.12);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Glass Card Effect
   =================================== */
.glass-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card p {
    color: #ffffff !important;
}

#waardes .service-card h3 {
    color: var(--color-accent-dark); /* Restore original color */
    text-shadow: none;
}

#waardes .service-card p {
    color: var(--color-text-secondary); /* Restore original color */
    text-shadow: none;
}

/* ===================================
   Aksies Section (Animated Mesh Background)
   =================================== */
 
#contact {
    position: relative;
    background: #ffffff; /* Fallback */
    background: radial-gradient(at 0% 0%, rgba(26, 58, 82, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(212, 165, 116, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(230, 201, 168, 0.2) 0px, transparent 50%),
                radial-gradient(at 0% 100%, rgba(45, 85, 115, 0.1) 0px, transparent 50%),
                radial-gradient(at 50% 50%, rgba(255, 255, 255, 1) 0px, transparent 50%);
    background-size: 200% 200%;
    animation: mesh-flow 20s ease-infinite;
    overflow: hidden;
    z-index: 1;
}


#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
}

@keyframes mesh-flow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.aksies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-card {
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
}

.contact-card a {
    color: var(--color-accent-dark);
    font-weight: 500;
}

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

.map-container {
    margin-top: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 992px) {
    .contact-content {
        display: block;
    }
}

/* ===================================
   Rugama Section
   =================================== */
.rugama-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.rugama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* Featured Optredes (Komende Gebeure Sideways Banner) */
.optredes-featured-grid.events-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;              /* cards sit close together */
    position: relative;       /* offsetParent for the centring maths in index.html */
    width: max-content;
    padding: 0.5rem 1.5rem;
    will-change: transform;
    align-items: stretch;
    justify-content: flex-start;
}

.featured-event-card {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    border-color: var(--color-accent-light);
}

.featured-event-image {
    aspect-ratio: 16 / 10;
    height: 140px;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* The 'Bleeding Frame' for featured event - uses CSS variable for background */
.featured-event-image::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.6);
    z-index: 0;
    transition: transform 1.2s ease;
}

.featured-event-card:hover .featured-event-image::before {
    transform: scale(1.1);
}

.featured-event-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-event-card:hover .featured-event-image img {
    transform: scale(1.05) translateY(-5px);
}

.featured-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 1.2rem;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.featured-date-badge span {
    font-size: 0.85rem;
    opacity: 1;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.featured-event-content {
    padding: 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
}

.featured-event-content h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    font-weight: 700;
}

.featured-event-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-event-card {
    cursor: pointer;
    user-select: none;
}

.featured-event-card .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Komende Gebeure Enlarged Modal Popup */
.gebeure-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gebeure-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gebeure-modal-container {
    position: relative;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(20, 42, 62, 0.98) 0%, rgba(10, 26, 40, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gebeure-modal-overlay.active .gebeure-modal-container {
    transform: scale(1) translateY(0);
}

.gebeure-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gebeure-modal-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent-light);
    color: #0f2537;
    transform: rotate(90deg) scale(1.08);
}

.gebeure-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 20px);
    display: flex;
    flex-direction: column;
}

.gebeure-modal-image-wrap {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 0.75rem;
}

.gebeure-modal-image-wrap img {
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.gebeure-modal-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 5;
}

.gebeure-modal-badge span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.gebeure-modal-info {
    padding: 1.25rem 2rem 2rem;
    text-align: center;
    color: #ffffff;
}

.gebeure-modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--color-accent-light);
    margin: 0 0 0.6rem;
}

.gebeure-modal-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto;
    max-width: 580px;
    white-space: pre-line;
}

.gebeure-modal-icon-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1.5rem 0.5rem;
}

.gebeure-modal-icon-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(20, 42, 62, 0.7) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    line-height: 1;
    animation: pulseGebeureIcon 3s ease-in-out infinite alternate;
}

@keyframes pulseGebeureIcon {
    0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
    100% { transform: scale(1.05); box-shadow: 0 0 45px rgba(212, 175, 55, 0.5); }
}

.gebeure-modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline-modal {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .gebeure-modal-overlay {
        padding: 0.75rem;
    }
    .gebeure-modal-info {
        padding: 1rem 1.25rem 1.5rem;
    }
    .gebeure-modal-info h2 {
        font-size: 1.4rem;
    }
    .gebeure-modal-image-wrap img {
        max-height: 42vh;
    }
}

/* Image-only mode: show just the event picture */
.gebeure-modal-container.image-only {
    width: auto;
    max-width: 92vw;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.gebeure-modal-container.image-only .gebeure-modal-body {
    overflow: visible;
    max-height: none;
}

.gebeure-modal-container.image-only .gebeure-modal-image-wrap {
    background: transparent;
    padding: 0;
}

.gebeure-modal-container.image-only .gebeure-modal-image-wrap img {
    max-height: 88vh;
    max-width: 92vw;
    border-radius: 1rem;
}

.gebeure-modal-container.image-only .gebeure-modal-close {
    top: 0.75rem;
    right: 0.75rem;
}


/* Featured Aksies (Landing Page) */
.aksies-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .aksies-featured-grid {
        grid-template-columns: 1fr;
    }
    .aksies-featured-grid .aksie-featured-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

.aksie-featured-card {
    position: relative;
    border-radius: 1.35rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.aksie-featured-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent-light);
}

.aksie-image {
    /* Posters are 2:3 portrait - show them in full, card height follows the image */
    aspect-ratio: 2 / 3;
    height: auto;
    max-height: none;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.aksie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.aksie-content {
    padding: 1.1rem 1rem 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.aksie-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
    font-family: var(--font-heading);
}

.aksie-content p {
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl);
    text-align: left;
}

.leadership-image {
    width: 100%;
    max-width: 350px;
    height: 500px;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: 10% 0%;
    margin: 0 auto var(--spacing-md);
    display: block;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}

.news-date {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-accent-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

/* ===================================
   Kalender Section
   =================================== */
.events-container {
    max-width: 900px;
    margin: 0 auto;
}

.day-group {
    margin-bottom: var(--spacing-xl);
}

.day-header {
    border-bottom: 2px solid var(--color-accent-light);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
}

.day-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.event-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--color-accent);
}

.event-time {
    font-weight: 600;
    color: var(--color-accent-dark);
    font-family: var(--font-heading);
}

.event-info h3 {
    font-size: var(--font-size-md);
    margin-bottom: 2px;
}

.event-info p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
}

/* ===================================
   Upcoming Events (Home)
   =================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.event-card-home {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.event-card-home:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* The 'Bleeding Frame' - Blurred background */
.event-image::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    z-index: 0;
}

.event-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: transform var(--transition-slow);
}

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

.event-date-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--gradient-accent);
    color: var(--color-text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.event-card-content {
    padding: var(--spacing-lg);
    position: relative;
}

.event-card-content h3 {
    margin-bottom: var(--spacing-xs);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-sm);
}

/* ===================================
   Booking Form
   =================================== */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
}

.booking-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.booking-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-bg-white);
}

.btn-block {
    width: 100%;
}

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

    .booking-container {
        padding: var(--spacing-xl);
    }
}

/* ===================================
   Footer (Parallax Curtain Reveal)
   =================================== */
.footer {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 7rem 0 3rem;     /* extra room above the map / contacts */
    box-shadow: inset 0 25px 35px -15px rgba(0, 0, 0, 0.5);
}

/* Stacking context: ensure page content slides over the reveal footer */
body > *:not(.footer):not(.navbar):not(script):not(style):not(.gebeure-modal-overlay):not(.floating-menu-toggle):not(.search-overlay):not(.event-modal-overlay):not(.kennis-lightbox) {
    position: relative;
    z-index: 2;
}

/* Opaque backing so the sticky footer never shows through transparent sections
   (zero specificity: any section with its own background still wins) */
:where(body > section) {
    background-color: var(--color-bg-white, #ffffff);
}


.aksies-parallax-section,
.section:last-of-type {
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .footer {
        position: relative;
        z-index: 2;
        box-shadow: none;
        padding-top: 6rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: var(--spacing-md);
    display: block;
}


.footer-section h3,
.footer-section h4 {
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs) var(--spacing-lg);
}

.footer-links a {
    opacity: 0.8;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent-light);
    padding-left: var(--spacing-xs);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom p {
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.6;
}

.cms-access {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.cms-access a,
.admin-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0;
    border-radius: var(--radius-full, 9999px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition-base);
}

.cms-access a:hover,
.admin-login-btn:hover {
    color: #ffffff;
    background: rgba(212, 165, 116, 0.22);
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.cms-access a svg,
.admin-login-btn svg {
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.cms-access a:hover svg,
.admin-login-btn:hover svg {
    transform: scale(1.15);
}


/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 2.5s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 2.5s ease-out 0.8s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 2.5s ease-out 1.2s both;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.scroll-animate-slow {
    opacity: 0;
    transform: translateY(60px) scale(0.6);
    transition: opacity 2.5s ease-out, transform 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.scroll-animate-slow.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.hover-zoom-premium {
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 1.5s ease !important;
    cursor: pointer;
}

.hover-zoom-premium:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3) !important;
    z-index: 10;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 2rem;
        --font-size-xl: 1.5rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
    }

    /* New Mobile Menu Implementation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* height and width removed to let top/left/right/bottom define size and avoid dvh bugs */
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 80px 0 40px;
        z-index: 9999;
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior: none !important;
        pointer-events: none;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* --- Accordion Dropdown for Mobile --- */
    .dropdown {
        flex-direction: column;
        align-items: center;             /* Center the dropdown toggle and menu */
        width: 100%;
    }

    .nav-links li {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(26, 58, 82, 0.08);
    }

    /* Simple nav links (no dropdown) */
    .nav-links > li > a.nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--color-primary);
        text-align: center;              /* Ensure text is centered */
        width: 100%;
    }

    /* Category toggle button centered */
    .dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;         /* Center text and arrow */
        gap: 10px;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-primary);
        cursor: pointer;
        border: none;
        background: none;
        text-align: left;
    }

    .dropdown-toggle svg {
        display: block !important; /* Show arrows on mobile */
    }

    /* Rotate arrow when open */
    .dropdown.open .dropdown-toggle svg {
        transform: rotate(180deg);
        display: block !important;
    }

    /* Sub-menu hidden on mobile by default */
    .dropdown .dropdown-menu {
        display: none !important;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: calc(100% - 32px) !important;
        margin: 10px auto 0 auto !important;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 10px;
        box-sizing: border-box !important;
    }

    /* Sub-menu expanded on click */
    .dropdown.open .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item {
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem;
        display: block;
        color: var(--color-text-secondary);
        border: none;
        text-align: center;              /* Center the text */
    }

    /* Fancy item layout on mobile - simpler */
    .fancy-item {
        flex-direction: row !important;
        gap: 0.75rem !important;
        padding: 0.75rem 2rem !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    .fancy-item:hover {
        padding-left: 2rem !important;
        transform: none !important;
    }

    .fancy-icon {
        display: none;
    }

    .fancy-text {
        display: flex;
        flex-direction: column;
    }

    .fancy-desc {
        display: none;
    }

    .fancy-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--color-primary);
    }

    /* On mobile: remove nav-right from document flow so the flex layout only has
       2 children (brand + hamburger). This prevents Chrome iOS from
       recalculating a 3-item space-between layout during URL-bar animation,
       which was the cause of the hamburger 'jumping' left/right. */
    .nav-right {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
    }
    
    .nav-social, .nav-search {
        display: none !important;
    }
    
    .navbar.menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 3000;
        position: relative;
        margin-left: auto; /* Push hamburger to the right of the brand */
    }

    /* Two-item flex layout: brand (left) + hamburger (right) */
    .nav-content {
        justify-content: space-between;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Restored Mobile Fixes */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-header, .about-text, p, .lead {
        text-align: left !important;
        hyphens: auto;
        word-spacing: normal;
        letter-spacing: normal;
    }

    .title-underline {
        margin: 0 auto !important;
    }

    .about-content, .services-grid, .waardes-grid {
        grid-template-columns: 1fr;
    }

    .waardes-grid .service-card h3,
    .waardes-grid .service-card p {
        display: none !important;
    }

    .waardes-grid .service-card .card-image {
        margin-bottom: 0 !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Booking Page
   =================================== */
.booking-page-section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
    background: var(--color-bg-light);
}

.hero-booking {
    height: 90vh !important;
    min-height: 700px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.payment-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    opacity: 0.7;
}

.payment-icons img {
    height: 30px;
}

@media (max-width: 768px) {
    .booking-page-section {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }

    .hero-booking {
        height: 70vh !important;
        min-height: 500px !important;
    }
}

/* Fancy Dropdown Styles */
.fancy-dropdown {
    min-width: 280px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

@media (max-width: 991px) {
    .fancy-dropdown {
        width: calc(100% - 32px) !important;
        min-width: calc(100% - 32px) !important;
        margin: 10px auto 0 auto !important;
        left: 0 !important;
        transform: none !important;
        padding: 10px;
        border-radius: 12px;
        background: rgba(26, 58, 82, 0.03) !important;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        box-sizing: border-box !important;
    }
    
    .fancy-item {
        background: #ffffff !important;
        border: 1px solid rgba(26, 58, 82, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        margin-bottom: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .fancy-item:last-child {
        margin-bottom: 0;
    }
    
    .fancy-title {
        color: var(--color-primary) !important;
        text-align: left;
    }
    
    .fancy-desc {
        color: var(--color-text-secondary) !important;
        text-align: left;
    }
    
    .fancy-icon {
        background: rgba(26, 58, 82, 0.05) !important;
    }
}

.fancy-item {
    display: flex;
    align-items: center;
    padding: 12px 16px !important;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.3s ease !important;
    text-decoration: none;
    position: relative;
    background: transparent;
    z-index: 1;
}

.fancy-item:last-child {
    margin-bottom: 0;
}

.fancy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Themes */
.fancy-item.theme-blue::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-green::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-gold::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-rose::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-purple::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-teal::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-orange::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item.theme-slate::before {
    background: rgba(255, 255, 255, 0.1);
}

.fancy-item:hover::before {
    opacity: 1;
}

.fancy-item:hover {
    transform: translateY(-2px);
    padding-left: 16px !important;
}

.fancy-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fancy-item:hover .fancy-icon {
    transform: scale(1.1) rotate(5deg);
}

.fancy-item.theme-blue .fancy-icon {
    color: #4f46e5;
}

.fancy-item.theme-green .fancy-icon {
    color: #16a34a;
}

.fancy-item.theme-gold .fancy-icon {
    color: #d97706;
}

.fancy-item.theme-rose .fancy-icon {
    color: #e11d48;
}

.fancy-item.theme-purple .fancy-icon {
    color: #9333ea;
}

.fancy-item.theme-teal .fancy-icon {
    color: #0d9488;
}

.fancy-item.theme-orange .fancy-icon {
    color: #ea580c;
}

.fancy-item.theme-slate .fancy-icon {
    color: #475569;
}

.fancy-text {
    display: flex;
    flex-direction: column;
}

.fancy-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2px;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.fancy-desc {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.fancy-item.theme-blue:hover .fancy-title {
    color: #818cf8;
}

.fancy-item.theme-green:hover .fancy-title {
    color: #4ade80;
}

.fancy-item.theme-gold:hover .fancy-title {
    color: #fcd34d;
}

.fancy-item.theme-rose:hover .fancy-title {
    color: #fb7185;
}

.fancy-item.theme-purple:hover .fancy-title {
    color: #c084fc;
}

.fancy-item.theme-teal:hover .fancy-title {
    color: #2dd4bf;
}

.fancy-item.theme-orange:hover .fancy-title {
    color: #fb923c;
}

.fancy-item.theme-slate:hover .fancy-title {
    color: #94a3b8;
}

/* ===================================
   Gallery & Cart Styles
   =================================== */
.gallery-page-section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl); /* white space between the last photo row and the footer */
    background: var(--color-bg-light);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* four photos per row */
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.gallery-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-image-box {
    position: relative;
    width: 100%;
    height: 190px; /* compact thumbnails */
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fit perfectly without cutting off */
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Church-logo placeholder (shown when a photo fails to load): keep it small inside the box */
.gallery-img[src*="kerk-logo"] {
    box-sizing: border-box;
    padding: 15%;
}

/* Four per row everywhere except small tablets and phones */
@media (max-width: 820px) {
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-sm); }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .gallery-image-box { height: 150px; }
}

/* Gallery banner photo shown 25% smaller (desktop/tablet; phones keep full-bleed banner) */
@media (min-width: 769px) {
    .hero-gallery .hero-bg::after {
        left: 12.5%;
        right: 12.5%;
        bottom: auto;
        height: 75%;
    }
}

.btn-full:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===================================
   Rugama Digital Booklet (3D Flipbook)
   =================================== */
.book-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-xl);
    background: radial-gradient(circle at center, rgba(26, 58, 82, 0.05) 0%, transparent 70%);
}

.book {
    position: relative;
    width: 350px;
    height: 500px;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    user-select: none;
    /* Thickness effect */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 
                2px 0 0 white, 4px 0 0 #f0f0f0, 6px 0 0 #e0e0e0;
}

.book-checkbox {
    display: none;
}

.paper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1500px;
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    overflow: hidden;
    border-radius: 2px 10px 10px 2px;
}

.front {
    z-index: 2;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.05);
}

.back {
    transform: rotateY(180deg);
    border-radius: 10px 2px 2px 10px;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
}

/* Page Shading Effect during turn */
.paper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.1), transparent 25%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 3;
}

#c1:checked ~ .p1::after,
#c2:checked ~ .p2::after,
#c3:checked ~ .p3::after {
    opacity: 1;
}

/* Content Styling */
.page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.98);
    transition: filter 0.8s;
    pointer-events: none;
    -webkit-user-drag: none;
}

.page-text {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0.95));
}

.page-number {
    position: absolute;
    bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    opacity: 0.4;
    letter-spacing: 1px;
}

/* Checkbox Interactivity */
#c1:checked ~ .p1 { transform: rotateY(-175deg); z-index: 5; }
#c2:checked ~ .p2 { transform: rotateY(-172deg); z-index: 4; }
#c3:checked ~ .p3 { transform: rotateY(-169deg); z-index: 3; }

/* Subtle stack offset */
.p1 { z-index: 3; transform: rotateY(0deg); }
.p2 { z-index: 2; transform: rotateY(-2deg) translateZ(-1px); }
.p3 { z-index: 1; transform: rotateY(-4deg) translateZ(-2px); }

.page-btn {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 20;
}

/* Spine Shadow */
.book::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1) 50%, transparent);
    pointer-events: none;
    z-index: 10;
}

/* Cover Styling */
.front-cover {
    background: var(--gradient-primary);
    color: white;
    border-left: 10px solid rgba(0,0,0,0.3);
}

.front-cover h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Page Hint Overlay */
.flip-hint {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--color-primary);
}

.hint-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@media (max-width: 600px) {
    .book {
        width: 280px;
        height: 400px;
    }
}

/* ===================================
   RUGAMA FLIPBOOK — rebuilt
   =================================== */

/* Intro text */
.rugama-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0.75rem auto 0;
    text-align: center;
    line-height: 1.7;
}

/* Outer scene wrapper */
.flipbook-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 3rem 0 1.5rem;
}

/* The book itself — two page panels side by side */
.flipbook {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    min-height: 680px;
    perspective: 2000px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.28));
    transition: transform 0.3s ease-out; /* Smooth zoom transition */
    transform-origin: center center;
}

/* Each flip-page is a single physical page that rotates */
.flip-page {
    position: absolute;
    top: 0;
    left: 50%;             /* sits on the RIGHT half; hinge = left edge = spine */
    width: 50%;
    height: 100%;
    min-height: 680px;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    cursor: pointer;
    z-index: 2;
}

.flip-page.flipped {
    transform: rotateY(-180deg); /* swings LEFT — page turns from right to left */
    z-index: 1;
}

/* z-index: fp1 is on top initially, fp2 comes forward after fp1 has flipped */
#fp1 { z-index: 4; }
#fp2 { z-index: 2; }
#fp1.flipped { z-index: 1; }
#fp2.flipped { z-index: 3; }

/* Front and back faces */
.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0 4px 4px 0; /* right page: round right corners */
    overflow: hidden;
    transform: translateZ(1px);
    -webkit-transform: translateZ(1px);
}

.flip-back {
    transform: rotateY(180deg) translateZ(1px); /* un-mirrors the back face */
    -webkit-transform: rotateY(180deg) translateZ(1px);
    border-radius: 4px 0 0 4px; /* left page: round left corners */
}

/* Individual page panel */
.book-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;       /* clean white under contain letterboxing */
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.book-page-right {
    border: none !important;
    box-shadow: none !important;
}

.book-page-left {
    border: none !important;
    box-shadow: none !important;
}

/* The static right half always shows — it's behind the flipping page */
.flipbook::before,
.flipbook::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    min-height: 680px;
    background: #f0ece6;
    z-index: 0;
    border-radius: 0 4px 4px 0;
}

.flipbook::before {
    left: 50%;
    border-radius: 0 4px 4px 0;
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.08);
}

.flipbook::after {
    right: 50%;
    border-radius: 4px 0 0 4px;
    box-shadow: inset 2px 0 6px rgba(0,0,0,0.08);
}

/* Cover view: hide the left blank "page" so only the cover page is visible */
.flipbook.is-closed::after {
    display: none;
}

/* Page images */
.book-page-img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* show full page — no cropping */
    object-position: center;
    background: #fff;
    display: block;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.book-page-img:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ---- Directional click affordance ---- */
/* Right-side pages (unflipped): forward cursor + right arrow on hover */
.flip-page:not(.flipped) {
    cursor: pointer;
}
.flip-page:not(.flipped) .flip-front::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(26, 58, 82, 0);
    transition: color 0.25s ease;
    pointer-events: none;
    z-index: 6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.flip-page:not(.flipped):hover .flip-front::after {
    color: rgba(26, 58, 82, 0.45);
}

/* Left-side pages (flipped): backward cursor + left arrow on hover */
.flip-page.flipped {
    cursor: pointer;
}
.flip-page.flipped .flip-back::after {
    content: '‹';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(26, 58, 82, 0);
    transition: color 0.25s ease;
    pointer-events: none;
    z-index: 6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.flip-page.flipped:hover .flip-back::after {
    color: rgba(26, 58, 82, 0.45);
}

/* Page number badge */
.book-page-num {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(0,0,0,0.35);
    user-select: none;
    pointer-events: none;
    z-index: 5;
}

.book-page-left .book-page-num {
    right: auto;
    left: 14px;
}

/* Spine shadow in the middle */
.flipbook-scene::before {
    display: none !important;
}

/* ===========================
   Controls bar
   =========================== */
.flipbook-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    background: rgba(26, 58, 82, 0.05);
    border: 1px solid rgba(26, 58, 82, 0.1);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.5rem;
    backdrop-filter: blur(8px);
}

.flip-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.55rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.flip-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.flip-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 58, 82, 0.3);
}

.flipbook-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    min-width: 130px;
    justify-content: center;
    font-weight: 600;
}

.status-sep,
.status-total {
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ===========================
   Hint text
   =========================== */
.flipbook-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    user-select: none;
}

/* ===========================
   Download button
   =========================== */
.flipbook-download {
    margin-top: 1.75rem;
}

.flipbook-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

/* ===========================
   Previous editions
   =========================== */
.prev-editions {
    margin-top: 5rem;
}

.prev-editions-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 760px) {
    .flipbook {
        max-width: 100%;
        min-height: 440px;
    }

    .flip-page,
    .flipbook::before,
    .flipbook::after {
        min-height: 440px;
    }

    .flipbook-scene::before {
        height: 440px;
    }

    .flipbook-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        border-radius: var(--radius-lg);
    }

    .flip-btn span { display: none; }
    .flip-btn { padding: 0.55rem 0.9rem; }
}

@media (max-width: 480px) {
    .flipbook {
        min-height: 320px;
    }
    .flip-page,
    .flipbook::before,
    .flipbook::after {
        min-height: 320px;
    }
    .flipbook-scene::before {
        height: 320px;
    }
}

/* ===========================
   INLINE ZOOM — flipbook scaling
   =========================== */
.flipbook-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.flipbook-container.zoom-active {
    overflow: visible; /* allow scaled flipbook to overflow */
}

.flipbook-scene {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1500px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center center;
    will-change: transform;
}

/* Ensure controls don't scale with the book */
.flipbook-controls {
    position: relative;
    z-index: 100;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.flip-btn-zoom {
    background: var(--color-accent);
    color: white;
    border: none;
    min-width: 90px;
}

.flip-btn-zoom:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.zoom-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.5rem;
}

.zoom-slider-wrapper {
    display: flex;
    flex-direction: column;
    width: 140px;
}

.zoom-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
    opacity: 0.7;
    font-weight: 600;
}

/* Range input styling */
#zoomSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

#zoomSlider:hover {
    background: rgba(0, 0, 0, 0.15);
}

#zoomSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: 2px solid #fff;
}

#zoomSlider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #e67e22;
}

#zoomSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff;
}

/* Ensure controls stay on top and container allows overflow for zoom */
.flipbook-container {
    width: 100%;
    overflow: visible; /* Always visible for simple layout */
    padding: 2rem 0 5rem;
}

.flipbook-container.zoom-active {
    overflow: visible;
}

.flipbook-container.zoom-active .flipbook-scene::before {
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .zoom-control-group {
        width: 100%;
        margin-top: 0.5rem;
    }
}


/* ===================================
   Rugama Previous Editions Section
   =================================== */
.previous-editions {
    background-color: var(--color-bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.edition-card {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
}

.edition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.edition-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 58, 82, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.edition-info {
    flex-grow: 1;
}

.edition-info h3 {
    font-size: 1.25rem;
    margin-bottom: 2px;
    color: var(--color-primary);
}

.edition-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.edition-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    gap: 8px;
    white-space: nowrap;
}

.edition-dl:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: none; /* Override standard btn hover scale for this compact version */
}

.edition-dl svg {
    transition: transform var(--transition-base);
}

.edition-dl:hover svg {
    transform: translateY(2px);
}

@media (max-width: 480px) {
    .edition-card {
        flex-direction: column;
        text-align: center;
    }
    
    .edition-dl {
        width: 100%;
    }
}

/* ===================================
   Floating Hamburger Menu Button
   =================================== */
.floating-menu-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: rgba(26, 58, 82, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.floating-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu-toggle:hover {
    background: var(--color-accent);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.45);
}

.floating-menu-toggle.active {
    background: var(--color-accent);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.45);
}

.floating-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.floating-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.floating-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide-In Drawer for Navigation (tablets, landscape phones and desktop) */
@media (min-width: 769px) {
    .nav-links.active {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 360px !important;
        max-width: 90vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 85px 24px 40px !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        animation: slideInDrawerDesktop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links.active li {
        width: 100% !important;
        border-bottom: 1px solid rgba(26, 58, 82, 0.08);
        text-align: left !important;
    }

    .nav-links.active > li > a.nav-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--color-primary) !important;
        width: 100% !important;
    }

    .nav-links.active .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0.25rem 0 0.5rem 0.5rem !important;
        background: rgba(26, 58, 82, 0.03) !important;
        display: none;
        border-radius: var(--radius-sm);
    }

    .nav-links.active .dropdown.open .dropdown-menu {
        display: block !important;
    }
}

@keyframes slideInDrawerDesktop {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ===================================
   Calendar Styles
   =================================== */
.calendar-container {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

.calendar-month-year {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    font-weight: 700;
}

.calendar-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.calendar-nav-btn {
    background: rgba(26, 58, 82, 0.05);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 2px;
    }
}


.calendar-day-header {
    background: var(--color-bg-light);
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    background: var(--color-bg-white);
    height: 160px; /* Fixed height for consistency */
    padding: 0.6rem;
    position: relative;
    transition: background-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background-color: rgba(26, 58, 82, 0.02);
}

.calendar-day.other-month {
    background-color: #fdfdfd;
}

.calendar-day.other-month .day-number {
    opacity: 0.2;
}

.calendar-day.today {
    background-color: rgba(212, 165, 116, 0.12);
    border: 1px solid var(--color-accent);
    z-index: 2;
}

.calendar-day.today::after {
    content: 'VANDAG';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--color-accent-dark);
    letter-spacing: 1px;
}

.day-number {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--color-text-secondary);
}

.today .day-number {
    color: var(--color-accent-dark);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 2px;
}

.calendar-events::-webkit-scrollbar {
    width: 3px;
}
.calendar-events::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.calendar-event {
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    white-space: normal;
    overflow: visible;
    transition: all 0.2s ease;
    border-left: 4px solid var(--color-primary);
}

.calendar-event.event-special {
    border-left-color: var(--color-accent);
}

@media (max-width: 1024px) {
    .calendar-day {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .calendar-day {
        height: 100px;
        padding: 0.4rem;
    }
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.5rem 0.2rem;
    }
    .day-number {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        height: 70px;
    }
    .calendar-events {
        gap: 2px;
    }
    .calendar-event {
        height: 8px;
        padding: 0;
        font-size: 0;
        border-radius: 2px;
        border: none;
    }
}

/* --- Photo Submit Form --- */
.photo-submit-form {
    text-align: left;
    margin-top: 2rem;
}
.photo-submit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.photo-submit-form .form-group {
    margin-bottom: 1.5rem;
}
.photo-submit-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}
.photo-submit-form input,
.photo-submit-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.photo-submit-form input:focus,
.photo-submit-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.1);
}
@media (max-width: 600px) {
    .photo-submit-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Mobile Calendar Vertical Feed --- */
@media (max-width: 767px) {

    
    .mobile-day-card {
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--radius-md);
        padding: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        text-align: left;
    }
    
    .mobile-day-card.today {
        background: rgba(212, 165, 116, 0.05);
        border: 2px solid var(--color-accent);
        box-shadow: 0 8px 25px rgba(212, 165, 116, 0.12);
    }
    
    .mobile-day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 0.5rem;
    }
    
    .mobile-date-text {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-primary);
    }
    
    .mobile-today-badge {
        background: var(--color-accent-dark);
        color: white;
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
        font-weight: 800;
        border-radius: 20px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    
    .mobile-event-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .mobile-event-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 4px solid var(--color-primary);
        border-radius: 20px;
        transition: all 0.2s ease;
        color: white;
    }
    
    .mobile-event-item.event-special {
        background: rgba(0, 0, 0, 0.7);
        border-left-color: var(--color-accent);
    }
    
    .mobile-event-time {
        font-weight: 700;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        min-width: 50px;
        flex-shrink: 0;
        padding-top: 1px;
    }
    
    .mobile-event-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }
    
    .mobile-event-title {
        font-weight: 700;
        font-size: 0.9rem;
        color: white;
    }
    
    .mobile-event-desc {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.45;
        margin-top: 2px;
    }
}

/* ===================================
   Event Modal Styles
   =================================== */
.event-modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.event-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.event-modal {
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    border-radius: 1.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-modal-overlay.active .event-modal {
    transform: translateY(0) scale(1);
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.event-modal-close:hover {
    color: var(--color-accent) !important;
}

.event-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.event-modal-icon {
    font-size: 2.5rem;
}

.event-modal-title {
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .section-title {
        text-align: center !important;
    }
    .title-underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.flipbook.is-closed-back {
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .donation-card { padding: 2rem 1.5rem !important; }
    .banking-details { padding: 1.5rem !important; }
    .qr-container p { text-align: center !important; }
    .qr-img { max-width: 180px !important; width: 100%; height: auto; }
}

/* Mobile-only Home Link */
.mobile-only-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-only-nav {
        display: block;
    }
}
/* JS Parallax Styles */
.js-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Exactly viewport height to maintain perfect aspect ratio */
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* =======================================================
   Laptop Responsive Layout Improvements (769px - 1440px)
   Keeps Desktop (>1440px) and Mobile (<=768px) intact
   ======================================================= */
@media (min-width: 769px) and (max-width: 1440px) {


    /* --- Aksies Section --- */
    .aksies-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.25rem !important;
        max-width: 860px !important;
        margin: 1.5rem auto 0 !important;
    }

    .aksie-featured-card {
        border-radius: 1.25rem !important;
        min-height: 0 !important;
    }

    .aksie-image {
        aspect-ratio: 2 / 3 !important;
        height: auto !important;
        max-height: none !important;
    }

    .aksie-content {
        padding: 1rem 0.9rem 1.4rem !important;
    }

    .aksie-content h3 {
        font-size: 1.18rem !important;
        margin-bottom: 0.35rem !important;
    }

    .aksie-content p {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
    }

    /* --- Sentrum van Hoop Section --- */
    #sentrum-hoop .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
        max-width: 1020px !important;
        margin: 0 auto !important;
    }

    #sentrum-hoop .service-card {
        padding: 1.2rem !important;
        border-radius: 1.25rem !important;
    }

    #sentrum-hoop .card-image {
        height: 250px !important;
        max-height: 250px !important;
        margin-bottom: 1rem !important;
    }

    #sentrum-hoop .service-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.35rem !important;
    }

    #sentrum-hoop .service-card p {
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
    }

    /* --- Basaar Highlight Section --- */
    #basaar-highlight .glass-card {
        max-width: 860px !important;
        padding: 2.5rem !important;
        gap: 2rem !important;
        border-radius: 1.5rem !important;
    }

    #front-basaar-title {
        font-size: 2.2rem !important;
    }
}


/* ==============================================
   CSS Grid Sticky Parallax Background Layer
   Injected by parallax.js on desktop.
   Sticky inside a grid cell = perfect parallax
   with correct background-size:cover aspect ratio.
   ============================================== */
.css-parallax-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}



/* ===================================
   Mobile menu fix
   A transformed ancestor becomes the containing block for position:fixed
   children, so the full-screen menu collapsed to the height of the navbar
   (only "Tuis" was visible). Keep the navbar transform-free while visible,
   and keep the top hamburger above the open menu so it can close it.
   =================================== */
@media (max-width: 991px) {
    .navbar.scrolled,
    .navbar.menu-open {
        transform: none;
    }
    .mobile-menu-toggle {
        z-index: 10000;
    }
}

/* Keep the brand and the hamburger/close icon visible on the white open menu */
@media (max-width: 991px) {
    .navbar.menu-open .brand {
        position: relative;
        z-index: 10000;
    }
    .navbar.menu-open .logo-text {
        color: var(--color-primary) !important;
        text-shadow: none !important;
    }
    .navbar.menu-open .mobile-menu-toggle span {
        background: var(--color-primary);
    }
}

/* ===================================
   Komende Gebeure - bigger section, bigger images, no glass frame
   =================================== */
.optredes-banner-content {
    padding: 85px 0 122px;   /* section ~10% taller than before */
}
.optredes-banner-content .section-header {
    margin-bottom: 1.6rem !important;
}

.featured-event-card--plain {
    flex: 0 0 min(650px, 88vw);   /* 520px + 25% */
    width: min(650px, 88vw);
    max-width: min(650px, 88vw);
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    overflow: visible;
}

.featured-event-card--plain:hover {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-6px);
}

.featured-event-card--plain .featured-event-image {
    height: 325px;            /* 260px + 25% */
    overflow: visible;
    background: none;
}

/* remove the blurred "glass" frame behind the image */
.featured-event-card--plain .featured-event-image::before {
    display: none;
}

.featured-event-card--plain .featured-event-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.featured-event-card--plain:hover .featured-event-image img {
    transform: scale(1.03);
}

/* Text (when an event has one) now sits straight on the photo background */
.featured-event-card--plain .featured-event-content {
    background: none;
    padding: 1rem 0.5rem 0;
}
.featured-event-card--plain .featured-event-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.featured-event-card--plain .featured-event-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ===================================
   Calendar - days grow so every event fits (no inner scrolling)
   =================================== */
.calendar-day {
    height: auto;
    min-height: 160px;
}
.calendar-events {
    overflow: visible;
    flex-grow: 0;
}
@media (max-width: 1024px) { .calendar-day { height: auto; min-height: 120px; } }
@media (max-width: 768px)  { .calendar-day { height: auto; min-height: 100px; } }
@media (max-width: 480px)  { .calendar-day { height: auto; min-height: 70px; } }

/* Nothing white below the footer: the page canvas matches the footer colour,
   and elastic over-scroll at the bottom no longer reveals a white strip. */
html {
    background-color: var(--color-primary-dark);
    overscroll-behavior-y: none;
}

/* Slides whose photo is not 16:9 - fill the whole hero (no side bars / bottom strip) */
.hero-slide.slide-fill::before { display: none; }
.hero-slide.slide-fill::after {
    bottom: 0;
    background-size: cover;
    background-position: var(--slide-pos, center center);
    filter: none;
}

/* ===================================
   Hero slides on phones - per-photo focus point, softer fades behind the text
   =================================== */
@media (max-width: 768px) {
    .hero-slide::after,
    .hero-slide.slide-contain::after,
    .hero-slide.slide-fill::after {
        background-position: var(--slide-pos-m, var(--slide-pos, center center)) !important;
        background-size: cover;
    }
    /* darken top (menu) and the middle/bottom (text) a little so the words stay readable */
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(8,20,32,0.55) 0%, rgba(8,20,32,0) 22%),
            linear-gradient(to bottom, rgba(8,20,32,0) 30%, rgba(8,20,32,0.55) 100%);
    }
    .hero-content h1 { text-shadow: 0 2px 14px rgba(0,0,0,0.65); }
    .hero-content p, .hero-content .hero-subtitle { text-shadow: 0 1px 10px rgba(0,0,0,0.75); }
}

@media (max-width: 768px) {
    /* sit the text lower so it clears the church logo / focal point of each photo */
    .hero-content { padding-top: 170px; }
}

/* ===================================
   Die Vier Waardes - phones: 2 x 2 cards with readable titles and text
   =================================== */
@media (max-width: 768px) {
    .waardes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
        padding: 0 0.25rem;
    }
    .waardes-grid .service-card {
        padding: 0.9rem 0.7rem 1rem !important;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .waardes-grid .service-card .card-image {
        height: 190px !important;
        max-height: 190px !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto 0.7rem !important;
        box-shadow: none !important;
        filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
    }
    .waardes-grid .service-card h3,
    .waardes-grid .service-card p {
        display: block !important;
    }
    .waardes-grid .service-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.35rem !important;
        color: var(--color-accent, #d4a574) !important;
    }
    .waardes-grid .service-card p {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        color: rgba(255, 255, 255, 0.88) !important;
        hyphens: auto;
        text-align: center !important;
    }
}
@media (max-width: 340px) {
    .waardes-grid { grid-template-columns: 1fr !important; }
}

/* Floating hamburger button (bottom right) removed */
.floating-menu-toggle { display: none !important; }

/* ===================================
   Calendar events - cleaner cards
   =================================== */
.calendar-event {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 9px 7px;
    border-radius: 8px;
    background: rgba(26, 58, 82, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(26, 58, 82, 0.12);
    border-left: 4px solid var(--color-primary);
    color: var(--color-primary-dark, #0f2537);
    font-size: 0.74rem;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.calendar-event strong {
    order: -1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    opacity: 0.85;
}
.calendar-event span {
    font-weight: 600;
    word-break: break-word;
}
.calendar-event.event-special {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.45);
    border-left-color: var(--color-accent-dark, #b8844f);
}
.calendar-event.event-special strong {
    color: var(--color-accent-dark, #9a6a38);
}
.calendar-event:hover {
    transform: translateY(-1px);
    background: rgba(26, 58, 82, 0.14);
    box-shadow: 0 3px 8px rgba(15, 37, 55, 0.15);
}
.calendar-event.event-special:hover {
    background: rgba(212, 165, 116, 0.32);
}
.calendar-day.today .calendar-event { background-color: rgba(255, 255, 255, 0.75); }

@media (max-width: 768px) {
    .calendar-event { padding: 4px 6px 5px; font-size: 0.66rem; border-radius: 6px; border-left-width: 3px; }
    .calendar-event strong { font-size: 0.6rem; }
}
/* phones: keep the small colour bars used in the compact month grid */
@media (max-width: 480px) {
    .calendar-event {
        height: 8px;
        padding: 0;
        font-size: 0;
        border: none;
        border-radius: 3px;
        background: var(--color-primary);
    }
    .calendar-event.event-special { background: var(--color-accent-dark, #b8844f); }
    .calendar-event strong, .calendar-event span { display: none; }
}

/* Phone event list - light cards with a time chip */
.mobile-event-item {
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    background: rgba(26, 58, 82, 0.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(26, 58, 82, 0.12);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    color: var(--color-primary-dark, #0f2537);
}
.mobile-event-item.event-special {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.45);
    border-left-color: var(--color-accent-dark, #b8844f);
}
.mobile-event-time {
    min-width: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.mobile-event-item.event-special .mobile-event-time { background: var(--color-accent-dark, #b8844f); }
.mobile-event-title { color: var(--color-primary-dark, #0f2537); font-size: 0.92rem; }
.mobile-event-desc { color: var(--color-text-secondary, #5a6772); }
.calendar-day.today .calendar-event, .mobile-day-card.today .mobile-event-item { background-color: rgba(255, 255, 255, 0.8); }

/* ===================================
   Calendar colours - light blue events + the logo's palette
   (logo: blue #1a90b8, red #d01c1c, gold #f0b010, green #14805a, indigo #2e1a70)
   =================================== */
.calendar-day, .mobile-day-card { --ev-bg: rgba(26,144,184,0.14); --ev-border: rgba(26,144,184,0.30); --ev-accent: #1a90b8; --ev-text: #123a52; }

/* regular events: light blue */
.calendar-event, .mobile-event-item {
    background: rgba(26, 144, 184, 0.14);
    border-color: rgba(26, 144, 184, 0.30);
    border-left-color: #1a90b8;
    color: #123a52;
}
.calendar-event strong { color: #0f6f93; opacity: 1; }
.calendar-event:hover { background: rgba(26, 144, 184, 0.24); box-shadow: 0 3px 8px rgba(26,144,184,0.25); }
.mobile-event-time { background: #1a90b8; }
.mobile-event-title { color: #123a52; }

/* special events: rotate through the logo's red, gold and green */
.calendar-event.event-special:nth-child(3n+1), .mobile-event-item.event-special:nth-child(3n+1) {
    background: rgba(208, 28, 28, 0.10); border-color: rgba(208, 28, 28, 0.28); border-left-color: #d01c1c;
}
.calendar-event.event-special:nth-child(3n+2), .mobile-event-item.event-special:nth-child(3n+2) {
    background: rgba(240, 176, 16, 0.20); border-color: rgba(240, 176, 16, 0.45); border-left-color: #f0b010;
}
.calendar-event.event-special:nth-child(3n+3), .mobile-event-item.event-special:nth-child(3n+3) {
    background: rgba(20, 128, 90, 0.12); border-color: rgba(20, 128, 90, 0.30); border-left-color: #14805a;
}
.calendar-event.event-special:nth-child(3n+1) strong { color: #b01414; }
.calendar-event.event-special:nth-child(3n+2) strong { color: #a67300; }
.calendar-event.event-special:nth-child(3n+3) strong { color: #0f6a49; }
.mobile-event-item.event-special:nth-child(3n+1) .mobile-event-time { background: #d01c1c; }
.mobile-event-item.event-special:nth-child(3n+2) .mobile-event-time { background: #d99a00; color: #2a1d00; }
.mobile-event-item.event-special:nth-child(3n+3) .mobile-event-time { background: #14805a; }
.calendar-day.today .calendar-event, .mobile-day-card.today .mobile-event-item { background-color: rgba(255,255,255,0.8); }

@media (max-width: 480px) {
    .calendar-event { background: #1a90b8; }
    .calendar-event.event-special:nth-child(3n+1) { background: #d01c1c; }
    .calendar-event.event-special:nth-child(3n+2) { background: #f0b010; }
    .calendar-event.event-special:nth-child(3n+3) { background: #14805a; }
}

/* ===================================
   Calendar colours - vivid, solid logo colours
   =================================== */
.calendar-event, .mobile-event-item {
    background: linear-gradient(135deg, #22a8d6 0%, #1388b4 100%);
    border: 1px solid rgba(255,255,255,0.25);
    border-left: 4px solid #0b5f82;
    color: #fff;
    box-shadow: 0 2px 6px rgba(19, 136, 180, 0.35);
}
.calendar-event strong, .calendar-event span,
.mobile-event-title { color: #fff; opacity: 1; }
.mobile-event-desc { color: rgba(255,255,255,0.85); }
.calendar-event strong { color: rgba(255,255,255,0.92); }
.calendar-event:hover { background: linear-gradient(135deg, #36b8e4 0%, #1a96c4 100%); box-shadow: 0 5px 12px rgba(19,136,180,0.5); }
.mobile-event-time { background: rgba(255,255,255,0.25); color: #fff; }

.calendar-event.event-special:nth-child(3n+1), .mobile-event-item.event-special:nth-child(3n+1) {
    background: linear-gradient(135deg, #ec2e2e 0%, #c01212 100%);
    border-color: rgba(255,255,255,0.25); border-left-color: #7d0a0a;
    box-shadow: 0 2px 6px rgba(208,28,28,0.35);
}
.calendar-event.event-special:nth-child(3n+2), .mobile-event-item.event-special:nth-child(3n+2) {
    background: linear-gradient(135deg, #ffc61f 0%, #f0a400 100%);
    border-color: rgba(255,255,255,0.35); border-left-color: #a66d00;
    box-shadow: 0 2px 6px rgba(240,164,0,0.4);
}
.calendar-event.event-special:nth-child(3n+3), .mobile-event-item.event-special:nth-child(3n+3) {
    background: linear-gradient(135deg, #1fa876 0%, #0f7a54 100%);
    border-color: rgba(255,255,255,0.25); border-left-color: #08523a;
    box-shadow: 0 2px 6px rgba(20,128,90,0.35);
}
.calendar-event.event-special:nth-child(3n+1) strong,
.calendar-event.event-special:nth-child(3n+3) strong { color: rgba(255,255,255,0.92); }
/* gold needs dark text */
.calendar-event.event-special:nth-child(3n+2) strong,
.calendar-event.event-special:nth-child(3n+2) span,
.mobile-event-item.event-special:nth-child(3n+2) .mobile-event-title,
.mobile-event-item.event-special:nth-child(3n+2) .mobile-event-desc { color: #2b1d00; }
.mobile-event-item.event-special:nth-child(3n+1) .mobile-event-time,
.mobile-event-item.event-special:nth-child(3n+3) .mobile-event-time { background: rgba(255,255,255,0.25); }
.mobile-event-item.event-special:nth-child(3n+2) .mobile-event-time { background: rgba(43,29,0,0.18); color: #2b1d00; }
/* today's cell: keep colours vivid there too */
.calendar-day.today .calendar-event, .mobile-day-card.today .mobile-event-item { background-color: initial; }

@media (max-width: 480px) {
    .calendar-event { background: #1388b4; box-shadow: none; }
    .calendar-event.event-special:nth-child(3n+1) { background: #d01c1c; }
    .calendar-event.event-special:nth-child(3n+2) { background: #f0a400; }
    .calendar-event.event-special:nth-child(3n+3) { background: #0f7a54; }
}

/* Dienste card illustrations */
.service-card .dienste-card-img {
    display: block;
    width: calc(100% + 2 * var(--spacing-xl, 2rem));
    max-width: none;
    margin: calc(-1 * var(--spacing-xl, 2rem)) calc(-1 * var(--spacing-xl, 2rem)) 1.25rem;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}


/* ===================================
   Kennisgewing Bord (left) + Kalender (right)
   =================================== */
.kennis-section {
    position: relative;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    margin-top: -1px;
    padding: 0;
    background-color: #0f2537;
    color: #fff;
}
/* same locked photo background that "Ons Geskiedenis" used */
.kennis-bg {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: 100vh;
    background-image: url('Media/Paralax/Stoele Higher Res Rioted.webp?v=6b2a50ca');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}
.kennis-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(15, 37, 55, 0.35);
}
.kennis-section > .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    padding-bottom: 110px;
}
.kennis-heading { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.kennis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}
.kennis-col { display: flex; flex-direction: column; min-width: 0; }
.kennis-heading {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: #fff;
    text-align: center;
    margin: 0 0 1.25rem;
}
.kennis-heading::after {
    content: '';
    display: block;
    width: 50px; height: 2px;
    margin: 0.5rem auto 0;
    background: var(--color-accent);
}

/* Cork board with pinned paper notes */
.kennis-board {
    flex: 1;
    min-height: 420px;
    max-height: 720px;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    border: 10px solid #5b3d22;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 0 40px rgba(0,0,0,0.35);
    background:
        radial-gradient(rgba(0,0,0,0.12) 1px, transparent 1.5px) 0 0 / 7px 7px,
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1.5px) 3px 3px / 9px 9px,
        #b8895f;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.4rem 1.1rem;
    align-content: start;
    overscroll-behavior: auto;
}
/* Touch screens / narrow layouts: no nested scroller, the page itself scrolls so it can never get stuck */
@media (max-width: 900px), (pointer: coarse) {
    .kennis-board { max-height: none; overflow-y: visible; }
}
.kennis-note {
    position: relative;
    background: #fffdf5;
    color: #2b2b2b;
    padding: 1.4rem 1rem 1rem;
    border-radius: 3px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.25s ease;
}
.kennis-note:hover { transform: rotate(0deg) translateY(-3px); }
.kennis-note.is-pinned { background: #fff3c4; }
.kennis-note h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 0.35rem;
}
.kennis-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 0.4rem;
}
.kennis-note p {
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.kennis-empty {
    grid-column: 1 / -1;
    align-self: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 3rem 0;
}

/* Kalender: optional photo + mini month calendar (same look as kalender.html) */
.kennis-kalender {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: var(--color-text-secondary);
}
.kennis-cal-photo {
    position: relative;
    display: block;
    height: 150px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.kennis-cal-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.kennis-cal-photo:hover img { transform: scale(1.05); }
.kennis-cal-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.6rem 1rem 0.6rem;
    background: linear-gradient(to top, rgba(8,20,32,0.85), rgba(8,20,32,0));
    color: #fff;
    font-weight: 800;
}
.kennis-mini-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.9rem;
}
.kennis-mini-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    font-weight: 700;
}
.kennis-mini-nav {
    background: rgba(26, 58, 82, 0.05);
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}
.kennis-mini-nav:hover { background: var(--color-primary); color: #fff; }
.kennis-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.kennis-mini-wd {
    background: var(--color-bg-light);
    padding: 0.55rem 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.62rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.kennis-mini-d {
    position: relative;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--color-bg-white);
    color: var(--color-text-secondary);
    font: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.kennis-mini-d:hover { background-color: rgba(26, 58, 82, 0.05); }
.kennis-mini-d.other-month { background: #fdfdfd; cursor: default; opacity: 0.35; }
.kennis-mini-d.other-month:hover { background: #fdfdfd; }
.kennis-mini-d.is-today {
    background-color: rgba(212, 165, 116, 0.18);
    box-shadow: inset 0 0 0 1px var(--color-accent);
    color: var(--color-accent-dark);
}
.kennis-mini-d.is-selected { background: var(--color-primary); color: #fff; box-shadow: none; }
.kennis-mini-d.has-event::after {
    content: '';
    position: absolute; left: 50%; bottom: 5px;
    width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%;
    background: #d01c1c;
}
.kennis-mini-d.is-selected.has-event::after { background: #f0b010; }
.kennis-mini-day {
    padding-top: 0.2rem;
    margin-top: 0.5rem;
    min-height: 90px;
    max-height: 170px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
}
.kennis-mini-day-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}
.kennis-mini-ev {
    display: flex; flex-direction: column; gap: 2px;
    padding: 6px 9px 7px;
    border-radius: 8px;
    border-left: 4px solid #0e6f94;
    font-size: 0.78rem;
    line-height: 1.3;
}
.kennis-mini-ev strong { order: -1; font-size: 0.66rem; letter-spacing: 0.04em; }
.kennis-mini-ev span { font-weight: 600; word-break: break-word; }
.kennis-mini-ev.is-weekly { background: linear-gradient(135deg, #22a8d6 0%, #1388b4 100%); color: #fff; }
.kennis-mini-ev.is-weekly strong { color: rgba(255,255,255,0.92); }
.kennis-mini-ev.is-special.sp0 { background: linear-gradient(135deg, #ec2e2e 0%, #c01212 100%); border-left-color: #8a0c0c; color: #fff; }
.kennis-mini-ev.is-special.sp1 { background: linear-gradient(135deg, #ffc61f 0%, #f0a400 100%); border-left-color: #b37800; color: #2a1d00; }
.kennis-mini-ev.is-special.sp2 { background: linear-gradient(135deg, #1fa876 0%, #0f7a54 100%); border-left-color: #0a5238; color: #fff; }
.kennis-mini-ev.empty { background: none; border-left-color: transparent; color: var(--color-text-secondary); opacity: 0.7; padding-left: 0; }
.kennis-kalender-btn {
    align-self: center;
    margin-top: auto;
    background: var(--color-primary);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-base);
}
.kennis-kalender-btn:hover { background: var(--color-primary-light); }

@media (max-width: 860px) {
    .kennis-section { padding: 50px 0 70px; }
    .kennis-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .kennis-board { min-height: 340px; }
}


/* Rugama widget (under the notice board + calendar) */
.rugama-widget {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.rugama-widget-cover {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 37, 55, 0.3);
    background: var(--color-bg-light);
    transition: transform 0.3s ease;
}
.rugama-widget-cover:hover { transform: translateY(-4px) rotate(-0.6deg); }
.rugama-widget-cover img { display: block; width: 100%; height: auto; }
.rugama-widget-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}
.rugama-widget-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin: 0.2rem 0 0.4rem;
    line-height: 1.1;
}
.rugama-widget-meta { color: var(--color-text-secondary); margin: 0 0 1rem; }
.rugama-widget-thumbs { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.rugama-widget-thumbs a {
    flex: 0 0 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}
.rugama-widget-thumbs a:hover { transform: translateY(-3px); }
.rugama-widget-thumbs img { display: block; width: 100%; height: auto; }
.rugama-widget-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rugama-widget-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-base);
}
.rugama-widget-btn:hover { background: var(--color-primary-light); }
.rugama-widget-btn.secondary { background: rgba(26, 58, 82, 0.08); color: var(--color-primary); }
.rugama-widget-btn.secondary:hover { background: var(--color-primary); color: #fff; }

/* Ankerglans widget: same card as Rugama, preview on the right */
.ankerglans-widget { grid-template-columns: 1fr 240px; }
.ankerglans-widget .rugama-widget-cover:hover { transform: translateY(-4px) rotate(0.6deg); }
.ankerglans-widget.is-placeholder .rugama-widget-cover { padding: 1.5rem; box-sizing: border-box; background: #fff; }

@media (max-width: 640px) {
    .rugama-widget { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
    .rugama-widget-cover { max-width: 220px; margin: 0 auto; }
    .rugama-widget-thumbs, .rugama-widget-actions { justify-content: center; }
    .ankerglans-widget { grid-template-columns: 1fr; }
    .ankerglans-widget .rugama-widget-cover { order: -1; }
}

.kennis-mini-brand { display: flex; align-items: center; gap: var(--spacing-sm); min-width: 0; }
.kennis-mini-brand img { width: 40px; height: auto; flex: 0 0 auto; }
.kennis-mini-navs { display: flex; gap: var(--spacing-sm); }


/* Poster / picture notices pinned to the board */
.kennis-note.has-image {
    grid-column: auto;
    align-self: start;
    justify-self: center;
    width: 100%;
    max-width: 280px;
    padding: 1.1rem 0.5rem 0.5rem;
    background: #fffdf5;
    transform: rotate(var(--tilt, 0deg));
}
.kennis-note.has-image img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.kennis-note.has-image p { margin-top: 0.6rem; font-size: 0.85rem; text-align: center; }
/* a strip of tape on the corners, like a real pinned poster */
.kennis-note.has-image::before,
.kennis-note.has-image::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 44px; height: 15px;
    background: rgba(255, 245, 196, 0.75);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.kennis-note.has-image::before { left: -10px; transform: rotate(-38deg); }
.kennis-note.has-image::after { right: -10px; transform: rotate(38deg); }
.kennis-lightbox {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: rgba(5, 14, 22, 0.88);
    cursor: zoom-out;
}
.kennis-lightbox img {
    max-width: 100%; max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: #fff;
}
.kennis-lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    border: 0; background: transparent; color: #fff;
    font-size: 2.5rem; line-height: 1; cursor: pointer;
}
.kennis-zoom-hint {
    display: block;
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.75;
    cursor: zoom-in;
}



/* Short browser windows: the footer is taller than the screen, so the "reveal" effect
   would hide its top (the map). Let it scroll normally instead. */
@media (max-height: 920px) {
    .footer {
        position: relative;
        bottom: auto;
        z-index: 2;
        box-shadow: none;
    }
}


/* Ons Geskiedenis + Die Vier Unieke Waardes side by side */
.gesk-waardes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
.gesk-waardes-row > .history-content-wrapper {
    max-width: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gesk-waardes-row .about-content {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
}
.gesk-waardes-row .about-text { text-align: left; }
.gesk-waardes-row .section-header { text-align: center; }
.gesk-waardes-row .section-header .title-underline { margin: 0 auto !important; }
@media (max-width: 900px) {
    .gesk-waardes-row { grid-template-columns: 1fr; }
}


/* Previous Rugama editions: small cover pictures instead of the document icon */
.edition-thumb {
    flex: 0 0 auto;
    width: 74px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(15, 37, 55, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.edition-thumb img { display: block; width: 100%; height: auto; }
.edition-thumb:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 18px rgba(15, 37, 55, 0.3); }
@media (max-width: 480px) {
    .edition-thumb { width: 110px; }
}

/* White text on the glassmorphic widgets (Rugama, Ankerglans, calendar card) */
.rugama-widget,
.rugama-widget-tag,
.rugama-widget-title,
.rugama-widget-meta {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.rugama-widget-btn.secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-shadow: none;
}
.rugama-widget-btn.secondary:hover { background: #fff; color: var(--color-primary); }
.rugama-widget-btn { text-shadow: none; }
.kennis-kalender .kennis-mini-title,
.kennis-kalender .kennis-mini-day-title,
.kennis-kalender .kennis-mini-ev.empty {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.kennis-kalender .kennis-mini-nav {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.kennis-kalender .kennis-mini-nav:hover { background: #fff; color: var(--color-primary); }


/* Unified glass format (matches Rugama / Ankerglans widgets) */
.glass-card,
.featured-event-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.glass-card,
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card p,
.featured-event-card {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Navbar: same glass format as the widgets */
.navbar {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@media (min-width: 769px) {
    .navbar .nav-link {
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }
}

/* Komende Gebeure posters: no glass frame behind the posters (keeps the plain look)
   and each card hugs its poster so neighbouring posters sit close together */
.featured-event-card.featured-event-card--plain {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex: 0 0 auto;
    width: auto;
    max-width: 88vw;
}
.featured-event-card--plain .featured-event-image {
    aspect-ratio: auto;
    width: auto;
}
.featured-event-card--plain .featured-event-image img {
    width: auto;
    max-width: 88vw;
    height: 100%;
}
.optredes-featured-grid.events-track {
    gap: 0.5rem;
}

/* Dropdown menu (Nuus): same glass format as the widgets, desktop only */
@media (min-width: 992px) {
    .fancy-dropdown {
        background: rgba(255, 255, 255, 0.04);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        backdrop-filter: blur(10px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 32px rgba(15, 37, 55, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    .fancy-dropdown .fancy-title,
    .fancy-dropdown .fancy-desc {
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }
    .fancy-dropdown .fancy-desc { opacity: 0.85; }
}

/* Mobile menu: same glass format as the widgets.
   The glass sits on the full-screen panel (.nav-links); the navbar itself must stay
   free of backdrop-filter while open, otherwise the fixed panel collapses to its height. */
@media (max-width: 768px) {
    .navbar.menu-open {
        background: transparent !important;
        border-bottom-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .nav-links {
        background: rgba(255, 255, 255, 0.04);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        backdrop-filter: blur(10px) saturate(140%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    .nav-links li { border-bottom-color: rgba(255, 255, 255, 0.22); }
    .nav-links > li > a.nav-link,
    .dropdown-toggle,
    .dropdown-item,
    .fancy-title,
    .navbar .nav-link {
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }
    .fancy-dropdown {
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
    }
    .navbar.menu-open .logo-text {
        color: #fff !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45) !important;
    }
    .navbar.menu-open .mobile-menu-toggle span { background: #fff; }
}

/* Eredienste page: card text was white on a white background - make it black (hero text is untouched) */
.page-dienste .services-grid .service-card h3,
.page-dienste .services-grid .service-card p,
.page-dienste .services-grid .service-card strong,
.page-dienste .services-grid .service-card li,
.page-dienste .services-grid .service-card .service-time {
    color: #111111 !important;   /* beats the site-wide white .glass-card text rule */
    text-shadow: none !important;
}

/* Navbar dropdowns: much darker glassmorphic tint (desktop + phone menu) */
@media (min-width: 992px) {
    .navbar .fancy-dropdown {
        background: rgba(7, 18, 30, 0.78);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
        backdrop-filter: blur(22px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
    .navbar .fancy-dropdown .fancy-item:hover {
        background: rgba(255, 255, 255, 0.09);
        box-shadow: none;
    }
}
@media (max-width: 768px) {
    .navbar .fancy-dropdown {
        background: rgba(7, 18, 30, 0.55) !important;
        -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
        backdrop-filter: blur(16px) saturate(150%) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
    }
}

/* Donasies page */
.donasie-section { background: var(--color-bg-light); }
.donasie-intro { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.1rem; line-height: 1.7; color: #111; }
.donasie-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; align-items: stretch; }
.donasie-card { background: #fff; border-radius: 1.25rem; padding: 2rem; box-shadow: 0 8px 30px rgba(15, 37, 55, 0.10); border-top: 3px solid var(--color-accent); color: #111; }
.donasie-card h3 { margin: 0 0 1.25rem; font-size: 1.35rem; color: var(--color-primary); text-align: center; }
.donasie-details { margin: 0; }
.donasie-row { padding: 0.75rem 0; border-bottom: 1px solid rgba(26, 58, 82, 0.1); }
.donasie-row:last-child { border-bottom: 0; }
.donasie-row dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b7a; margin: 0 0 0.2rem; }
.donasie-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.donasie-row dd span { font-size: 1.15rem; font-weight: 700; color: #111; }
.donasie-copy { border: 1px solid rgba(26, 58, 82, 0.25); background: #fff; color: var(--color-primary); border-radius: 0.5rem; padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.donasie-copy:hover { background: var(--color-primary); color: #fff; }
.donasie-copy.copied { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.donasie-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donasie-qr img { width: 100%; max-width: 220px; height: auto; border-radius: 0.75rem; }
.donasie-help { text-align: center; margin-top: 2rem; color: #111; }
.donasie-help a { color: var(--color-primary); font-weight: 700; text-decoration: underline; }
@media (max-width: 768px) {
    .donasie-grid { grid-template-columns: 1fr; }
    .donasie-card { padding: 1.5rem; }
}

/* Sentrum van Hoop page: card text was white on white - make it black (hero text is untouched) */
.page-hoop .section .glass-card h2,
.page-hoop .section .glass-card h3,
.page-hoop .section .glass-card h4,
.page-hoop .section .glass-card p,
.page-hoop .section .glass-card li,
.page-hoop .section .glass-card strong {
    color: #111111 !important;   /* beats the site-wide white .glass-card text rule */
    text-shadow: none !important;
}
