/**
 * Frontend Styling voor mandieligneis.nl
 * Gebaseerd op Demo17 - Entertainment/Media Design
 */

/* ========================================
   CSS Custom Properties (Color Scheme)
   ======================================== */

/* ----------------------------------------
   Light mode variabelen (default)
   ---------------------------------------- */
:root {
    color-scheme: light dark;

    --bg-primary: #f8f9f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2ea;
    --bg-header: rgba(248, 249, 245, 0.95);
    --bg-overlay: rgba(255, 255, 255, 0.9);

    --text-primary: #1a3d1a;
    --text-secondary: #3d5c3d;
    --text-muted: #5a7a5a;
    --text-dark: #2d4a2d;

    --accent: #2d6b2d;
    --accent-dark: #1a4d1a;
    --accent-light: rgba(45, 107, 45, 0.15);

    --border-color: rgba(45, 107, 45, 0.2);
    --border-accent: rgba(45, 107, 45, 0.4);

    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(45, 107, 45, 0.2);

    --hamburger-color: #1a3d1a;
}

/* ----------------------------------------
   Dark mode variabelen via OS-voorkeur
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2c2c2c;
        --bg-tertiary: #3a3a3a;
        --bg-header: rgba(26, 26, 26, 0.95);
        --bg-overlay: rgba(0, 0, 0, 0.7);

        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-muted: #999999;
        --text-dark: #666666;

        --accent: #ff6b6b;
        --accent-dark: #ee5a24;
        --accent-light: rgba(255, 107, 107, 0.2);

        --border-color: rgba(255, 255, 255, 0.1);
        --border-accent: rgba(255, 107, 107, 0.3);

        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-accent: rgba(255, 107, 107, 0.2);

        --hamburger-color: #ffffff;
    }
}


/* ========================================
   Base Styles
   ======================================== */

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

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    /* Word wrapping voor lange woorden */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
    margin-right: 30px;
    transition: transform 0.3s ease;
    forced-color-adjust: none;
}

.logo:hover {
    transform: scale(1.05);
}

/* Standaard src in HTML is logo_white.png (veilig voor dark mode).
   Alleen bij light mode (OS) wisselen naar groen logo. */
@media (prefers-color-scheme: light) {
    .logo {
        content: url('../images/logo_green.png');
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    position: relative;
    align-items: center;
    justify-content: center;
    color: var(--hamburger-color);
    font-size: 24px;
}

.hamburger span {
    display: none;
}

.hamburger.active {
    gap: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0px);
    position: absolute;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0px);
    position: absolute;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    align-items: center;
    margin-right: 280px; /* Space for search + theme toggle on desktop */
}

/* Desktop header tools (search + toggle) */
.header-tools {
    position: fixed;
    top: 15px;
    right: 40px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-header);
    padding: 6px 10px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-search-input {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    width: 120px;
    transition: width 0.3s ease;
}

.header-search-input:focus {
    width: 180px;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* Hide mobile search on desktop */
.nav-search-mobile {
    display: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.nav a:hover {
    background: var(--accent);
    color: var(--text-primary);
}

/* Responsive Menu */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    /* Hide desktop header tools on mobile */
    .header-tools {
        display: none;
    }
    
    /* Show mobile search in nav */
    .nav-search-mobile {
        display: flex;
        width: 100%;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
        flex-direction: column;
        margin-right: 0; /* Remove desktop margin on mobile */
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 90px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        display: block;
        padding: 14px 16px;
        border-radius: 8px;
        width: 100%;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }
    
    /* Logo: smaller and no margin-right when hamburger menu is visible */
    .logo {
        height: 55px;
        margin-right: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 60px 0;
    box-sizing: border-box;
}

/* Container for rotating backgrounds */
.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Individual background images */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-title,
.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Prevent long words from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle,
.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Weather Widget */
.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: white;
    animation: fadeInUp 1s ease-out 0.8s both;
    flex-wrap: wrap;
    justify-content: center;
}

.weather-widget .weather-loading {
    opacity: 0.7;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.weather-icon {
    font-size: 1.3em;
}

.weather-temp {
    font-weight: 700;
    font-size: 1.1em;
}

.weather-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .weather-widget {
        gap: 12px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .weather-divider {
        display: none;
    }
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page {
    padding: 120px 40px 80px;
}

/* Main Content */
.main-content {
    padding-top: var(--header-height, 100px);
    padding-bottom: 80px;
    flex: 1 0 auto;
    background: var(--bg-primary);
    transition: background-color 0.4s ease, padding-top 0.2s ease;
}

/* Sections */
.section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-primary);
}

.section h2 {
    margin-bottom: 24px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    /* Prevent long words from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Don't block clicks on card content */
}

.card:hover::before {
    opacity: 0.1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

/* Clickable cards */
.clickable-card {
    cursor: pointer;
}

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

.past-ribbon {
    position: absolute;
    top: 28px;
    right: -36px;
    width: 150px;
    background: var(--accent-dark);
    color: #fff;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 0;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-link-hint {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-link-hint {
    transform: translateX(5px);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    /* Prevent long words from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.location {
    color: var(--accent);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    z-index: 2; /* Ensure button is clickable above card overlay */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Announcements */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
}

.announcement-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.announcement .text,
.announcement-card .text {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Photo Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Album cover photo background */
.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--cover-image);
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.album-card:hover::before {
    opacity: 0.35;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-accent);
}

.album-card a {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.album-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px var(--shadow-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
    grid-auto-rows: 280px; /* Fixed row height for uniform appearance */
}

.photo-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%; /* Fill the grid cell */
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
    z-index: 10;
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Crop to fill the square, maintaining aspect ratio */
    object-position: center;
}

.caption {
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 40px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid #333;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

#searchResults:empty {
    display: none;
}

.search-suggestions a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: var(--accent);
}

/* Entrepreneurs Grid */
.entrepreneurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.entrepreneur-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.entrepreneur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

.entrepreneur-card .photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entrepreneur-card .content {
    padding: 30px;
}

.entrepreneur-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

/* Article Detail */
.article-detail {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.article-detail h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    /* Prevent long words from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.article-detail .content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 40px 0;
}

/* Tables in article content */
.article-detail .content table,
.oud-papier-tabel {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-detail .content table th,
.article-detail .content table td,
.oud-papier-tabel th,
.oud-papier-tabel td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-detail .content table th,
.oud-papier-tabel th,
.oud-papier-tabel .header-row th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-detail .content table tr:nth-child(even),
.oud-papier-tabel tr.alt-row {
    background: rgba(0,0,0,0.03);
}

.light-mode .article-detail .content table tr:nth-child(even),
.light-mode .oud-papier-tabel tr.alt-row {
    background: rgba(0,0,0,0.03);
}

.article-detail .content table tr:last-child td,
.oud-papier-tabel tr:last-child td {
    border-bottom: none;
}

/* Year Selector */
.year-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.year-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.year-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.year-btn:hover {
    background: var(--accent);
}

/* Archive List */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.archive-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.archive-item a:hover {
    color: var(--accent);
}

.archive-item .title {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.pagination a:hover {
    background: var(--accent);
}

/* Nieuws lazy reveal */
.nieuws-hidden {
    display: none;
}

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

.nieuws-reveal {
    animation: nieuwsFadeIn 0.4s ease both;
}

#nieuws-sentinel {
    height: 1px;
    margin-top: 40px;
}

.nieuws-status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 1.4em;
}

/* ============================================================
   Edities Mandielig Neis
   ============================================================ */

.editions-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.editions-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 50px;
}

/* Zoekbalk edities */
.editions-search-form {
    margin-bottom: 40px;
}

.editions-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.editions-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--border, #ddd);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.editions-search-input:focus {
    border-color: var(--accent);
}

.editions-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.editions-search-btn:hover {
    background: var(--accent-dark);
}

.editions-search-clear {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.editions-search-result {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.editions-year-section {
    margin-bottom: 50px;
}

.editions-year {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.edition-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.edition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-accent);
    border-color: var(--accent-light);
}

.edition-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

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

.edition-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edition-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.edition-read {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
}

/* Editie detail pagina */
.editie-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.editie-header h1 {
    flex: 1;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.editie-back {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

.editie-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pdf-viewer-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.pdf-iframe {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 900px;
    border: none;
    display: block;
}

.pdf-viewer-mobile {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.pdf-mobile-msg {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pdf-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-secondary-outline {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary-outline:hover {
    background-color: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .pdf-viewer-desktop {
        display: none;
    }
    .pdf-viewer-mobile {
        display: block;
    }
    .editie-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .editions-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Page */
.content-page {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-page h1,
.content-page h2 {
    margin-top: 0;
}

.content-page ul {
    margin: 20px 0 20px 40px;
}

.content-page li {
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    background: #333;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.contact-info strong {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    position: relative;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    color: var(--text-dark);
}

/* Footer Sponsors */
.footer-sponsors {
    margin-bottom: 40px;
    min-height: 180px; /* Fixed height to prevent jumping */
}

.sponsors-title {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 400;
}

.sponsors-banners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; /* No wrapping for smooth animation */
    max-width: 1200px;
    margin: 0 auto;
    height: 140px; /* Fixed height to prevent jumping */
    min-height: 140px;
    position: relative;
    overflow: visible; /* Allow hover effects to expand outside */
}

.sponsor-banner {
    position: relative;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0; /* Prevent shrinking during animation */
    will-change: transform, opacity; /* Optimize for animations */
    width: 280px; /* Fixed width */
    height: 140px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade-in animation for new banners */
.sponsor-banner.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* Fade-out animation for removed banners */
.sponsor-banner.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

.sponsor-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sponsor-banner:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.5);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
    z-index: 100; /* Ensure it appears above other banners */
}

.sponsor-banner:hover::before {
    opacity: 0.15;
}

.sponsor-banner:hover img {
    filter: brightness(1.1);
}

/* Prevent hover effects during fade animations */
.sponsor-banner.fade-in:hover,
.sponsor-banner.fade-out:hover {
    transform: none;
    opacity: inherit;
    z-index: auto;
}

.sponsor-banner img {
    display: block;
    max-height: 120px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ============================================
   Drents Woord van de Week Widget
   ============================================ */

.drents-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.drents-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drents-nav {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.drents-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.drents-nav svg {
    width: 24px;
    height: 24px;
}

.drents-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.drents-widget {
    flex: 1;
    transition: opacity 0.2s ease;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.drents-widget::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: var(--accent);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.drents-word {
    margin-bottom: 15px;
}

.drents-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
    /* Prevent long Drents words from overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.drents-translation {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
}

.drents-pronunciation {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.drents-example {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.drents-example-text {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 8px;
}

.drents-example-translation {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ============================================
   Weather Forecast Page
   ============================================ */

.weather-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.weather-current {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.current-main {
    text-align: center;
    min-width: 200px;
}

.current-icon .weather-svg {
    width: 80px;
    height: 80px;
    stroke: var(--accent);
}

.current-temp {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 10px 0;
}

.current-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.current-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.current-detail .weather-svg-sm {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.forecast-day-wrapper {
    display: flex;
    flex-direction: column;
}

.forecast-day {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 50px 1fr 100px 150px 100px;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.forecast-day:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.forecast-day.expanded {
    border-color: var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.forecast-day-header {
    display: flex;
    flex-direction: column;
}

.forecast-day-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.forecast-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.forecast-icon .weather-svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
}

.forecast-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.forecast-temps {
    display: flex;
    gap: 10px;
    font-size: 1.1rem;
}

.temp-max {
    font-weight: 700;
    color: var(--text-primary);
}

.temp-min {
    color: var(--text-muted);
}

.forecast-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forecast-rain,
.forecast-wind {
    display: flex;
    align-items: center;
    gap: 4px;
}

.forecast-rain .weather-svg-sm,
.forecast-wind .weather-svg-sm {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.forecast-expand {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 0.85rem;
    justify-self: end;
}

.forecast-expand .chevron-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.forecast-day.expanded .forecast-expand .chevron-icon {
    transform: rotate(180deg);
}

/* Hourly Panel */
.hourly-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, border 0.1s ease-out;
    background: var(--bg-tertiary);
    border-radius: 0 0 15px 15px;
    border: 0 solid var(--accent);
    border-top: none;
}

.hourly-panel.open {
    border: 2px solid var(--accent);
    border-top: none;
    max-height: 2000px;
    overflow-x: auto;
}

.hourly-table-wrapper {
    overflow-x: auto;
    padding: 15px;
}

.hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 900px;
}

.hourly-table th {
    text-align: left;
    padding: 10px 8px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.hourly-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.hourly-table tr:last-child td {
    border-bottom: none;
}

.hourly-table tr:hover {
    background: var(--bg-secondary);
}

.hour-time {
    font-weight: 600;
    color: var(--text-primary);
}

.hour-icon .weather-svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.hour-temp {
    font-weight: 600;
    color: var(--text-primary);
}

.weather-source {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.weather-source a {
    color: var(--accent);
}

.weather-error,
.weather-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Make weather widget clickable */
.weather-widget-link {
    text-decoration: none;
    color: inherit;
}

.weather-widget:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.25);
}

/* ── Hero: eerstvolgende activiteit ─────────────────────────────────────── */
.hero-next-activity {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    animation: fadeInUp 1s ease-out 0.8s both;
    transition: background 0.2s ease, transform 0.2s ease;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-next-activity:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-next-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.hero-next-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.hero-next-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    opacity: 0.85;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Weer-sectie (onder drents-section) ─────────────────────────────────── */
.weer-section-inner {
    display: flex;
    justify-content: center;
}

.weer-section-link {
    display: inline-block;
}

.weather-widget-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 16px 32px;
    animation: none;
    border: 1px solid var(--border-color);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.weather-widget-section:hover {
    background: var(--bg-tertiary) !important;
    transform: translateY(-2px);
}

.weather-widget-section .weather-loading {
    color: var(--text-secondary);
    opacity: 1;
}

.weather-widget-section .weather-item {
    color: var(--text-primary);
}

.weather-widget-section .weather-temp {
    color: var(--accent);
}

.weather-widget-section .weather-divider {
    background: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* #1 - container zijpadding */
    .container {
        padding: 0 20px;
    }

    /* #2 - card padding */
    .card {
        padding: 25px;
    }

    /* #3 - section verticale padding */
    .section {
        padding: 50px 0;
    }

    /* #4 - section-title margin */
    .section-title {
        margin-bottom: 35px;
    }

    /* #5 - cards-grid gap */
    .cards-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    /* #6 - main-content onderkant */
    .main-content {
        padding-bottom: 40px;
    }

    /* #7 - hero-content zijpadding */
    .hero-content {
        padding: 0 20px;
    }

    /* #8 - hero verticale padding */
    .hero {
        padding: 40px 0;
    }

    .hero h1,
    .hero-title {
        font-size: 2.2rem;
    }

    .hero p,
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page {
        padding: 100px 20px 60px;
    }

    .article-detail {
        padding: 40px 30px;
    }

    .content-page {
        padding: 40px 30px;
    }

    /* Drents widget responsive */
    .drents-carousel {
        position: relative;
        gap: 0;
    }

    .drents-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.5;
        z-index: 10;
        background: var(--bg-secondary);
    }

    .drents-nav:hover,
    .drents-nav:active {
        opacity: 0.9;
    }

    .drents-prev {
        left: 5px;
    }

    .drents-next {
        right: 5px;
    }

    .drents-widget {
        flex: 1;
        width: 100%;
    }

    /* Weather page responsive */
    .weather-current {
        padding: 25px;
        gap: 25px;
    }

    .current-temp {
        font-size: 3rem;
    }

    .current-icon .weather-svg {
        width: 60px;
        height: 60px;
    }

    .forecast-day {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .forecast-day-header {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .forecast-details {
        justify-content: center;
    }

    .forecast-expand {
        justify-self: center;
    }

    .hourly-panel.open {
        max-height: none;
    }

    /* Footer banners: 1 banner on mobile */
    .footer-sponsors {
        min-height: 160px;
        height: 160px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 20px;
        height: 120px; /* Fixed height */
        min-height: 120px;
    }
    
    .sponsor-banner {
        width: 240px; /* Fixed width for mobile */
        height: 120px; /* Fixed height for mobile */
        max-width: 100%;
    }
    
    .sponsor-banner img {
        max-height: 100px;
        max-width: 200px;
    }
    
    /* Photo grid: smaller squares on mobile */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 10px;
    }
}

/* Tablet: 2 banners */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-sponsors {
        min-height: 170px;
        height: 170px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 25px;
        height: 130px; /* Fixed height */
        min-height: 130px;
    }
    
    .sponsor-banner {
        width: 260px; /* Fixed width for tablet */
        height: 130px; /* Fixed height for tablet */
    }
    
    .sponsor-banner img {
        max-height: 110px;
        max-width: 220px;
    }
    
    /* Photo grid: medium squares on tablet */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
        gap: 15px;
    }
}

/* Desktop: 3 banners */
@media (min-width: 1025px) {
    .footer-sponsors {
        min-height: 180px;
        height: 180px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 30px;
        height: 140px; /* Fixed height */
        min-height: 140px;
    }
    
    .sponsor-banner {
        width: 280px; /* Fixed width for desktop */
        height: 140px; /* Fixed height for desktop */
    }
    
    .sponsor-banner img {
        max-height: 120px;
        max-width: 250px;
    }
}

/* Sponsors Page */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

.sponsor-cta {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    text-align: center;
}

.sponsor-cta h2 {
    color: var(--accent);
    margin-bottom: 15px;
}

.sponsor-cta p {
    font-size: 1.1rem;
}

.sponsor-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.sponsor-cta a:hover {
    border-bottom-color: var(--accent);
}

.intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 20px 0 40px;
    text-align: center;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 107, 107, 0.8);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(255, 107, 107, 0.8);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10001;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ========================================
   Theme Toggle Switch
   ======================================== */

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-label {
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.theme-toggle-label svg {
    display: block;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 26px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.theme-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-switch input:checked + .theme-slider {
    background: var(--accent-light);
    border-color: var(--accent);
}

.theme-switch input:checked + .theme-slider::before {
    left: calc(100% - 20px);
    transform: translateY(-50%);
    background: var(--accent);
}

/* Desktop: Show toggle in header-tools container */
.theme-toggle-desktop {
    display: flex;
    background: var(--bg-header);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.theme-toggle-mobile {
    display: none;
}

/* Mobile: Show toggle in hamburger menu, hide desktop version */
@media (max-width: 1024px) {
    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-mobile {
        display: flex;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        justify-content: center;
        flex-shrink: 0;
        width: 100%;
    }
}

/* Light mode specific adjustments */
body.light-mode .header {
    box-shadow: 0 2px 20px var(--shadow-color);
}

body.light-mode .card {
    box-shadow: 0 5px 30px var(--shadow-color);
}

body.light-mode .card:hover {
    box-shadow: 0 15px 40px var(--shadow-accent);
}

body.light-mode .btn {
    box-shadow: 0 4px 15px var(--shadow-accent);
}

body.light-mode .photo-item {
    box-shadow: 0 4px 20px var(--shadow-color);
}

body.light-mode .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

body.light-mode .lightbox-overlay {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .lightbox-close,
body.light-mode .lightbox-nav {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.light-mode .lightbox-close:hover,
body.light-mode .lightbox-nav:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

body.light-mode .lightbox-counter {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

body.light-mode .lightbox-caption {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* ========================================
   SEARCH STYLES
   ======================================== */

/* Navigation Search */
.nav-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.nav-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-accent);
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

/* Search Page */
.search-form-large {
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-large {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-large:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--shadow-accent);
}

.search-input-large::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
}

.search-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.search-count {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 15px;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent);
}

.result-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.category-icon {
    flex-shrink: 0;
}

body.light-mode .result-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.search-result-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.search-result-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-card h3 a:hover {
    color: var(--accent);
}

.result-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.result-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.location-icon {
    flex-shrink: 0;
}

/* Desktop: nav search is hidden, using header-tools instead */
@media (min-width: 1025px) {
    .nav-search-mobile {
        display: none !important;
    }
}

/* Mobile search adjustments */
@media (max-width: 1024px) {
    .nav-search-form {
        width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */

.contact-form {
    max-width: 700px;
    margin: 30px 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
    display: block;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="number"],
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--shadow-accent);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.contact-form .form-group input[type="file"] {
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-group input[type="file"]:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.contact-form .form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.captcha-group .captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-tertiary);
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

.captcha-group input[type="number"] {
    width: 120px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.captcha-group input[type="hidden"] {
    display: none !important;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-mode .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

body.light-mode .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Contact Info Box */
.contact-info-box {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info-box p {
    margin: 10px 0;
    color: var(--text-secondary);
}

.contact-info-box a {
    color: var(--accent);
    text-decoration: none;
}

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

@media (max-width: 600px) {
    .captcha-group .captcha-question {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-group input[type="number"] {
        width: 100%;
    }
}

/* ── Custom checkboxen voorkant ──────────────────────────────────────── */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #b0c4b0;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: -3px;
    width: 8px;
    height: 12px;
    border: 2.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

input[type="checkbox"]:hover:not(:checked) {
    border-color: var(--accent);
}

label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: fit-content;
}
