﻿:root {
    /* set overall colors per theme below in :root[data-theme="dark"]*/
    /* we need to copy them here if there is no theme switching needed*/
    --bg: #FFFFDB;
    --bg2: #FFFFAB;
    --fg: #111111;
    --card: #f4f4f4;
    --header-bg: gold;
    --header-bg2: #FFE872;
    --header-fg: SaddleBrown;
    --accent: Peru;
    --article-bg: #fafafa;
    --button-fg: Black;
    --button-accent: orange;
    --button-bg: gold;
    --button-light-fg: Black;
    --button-light-accent: orange;
    --button-light-bg: gold;
    --code-fg: Black;
    /* set overall heights here */
    --header-height: 70px; /* keep in sync with header */
    --nav-gap: 18px; /*change spacing between menu items in header*/
    --max-width-used: 1200px; /*used for limiting used space*/
    /* set overall font sizes here */
    --font-small: 10px;
    --font-middle: 12px;
    --font-large: 14px;
    --font-code: 18px;
    --font-extralarge: 22px;
}

/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%; /* Added to ensure container fills screen */
    overflow-x: hidden; /* Added to forcibly prevent horizontal scrollbars */
}

/*THEME SWITCHER : set general colors here */

:root[data-theme="dark"] {
    --bg: #0f1115;
    --bg2: #26282C;
    --fg: #f5f5f5;
    --card: #171a21;
    --header-bg: #101010;
    --header-bg2: #2F2F2FEB;
    --header-fg: gold;
    --accent: orange;
    --article-bg: #1a1a1a;
    --button-fg: #101010;
    --button-accent: rgb(201,162,0);
    --button-bg: gold;
    --button-light-fg: Black;
    --button-light-accent: orange;
    --button-light-bg: gold;
    --code-fg: #f4e5a4;
}

:root[data-theme="light"] {
    --bg: #FFFFFF;
    --bg2: #F4F4F2;
    --fg: #111111;
    --card: #f4f4f4;
    --header-bg: gold;
    --header-bg2: #FFE872;
    --header-fg: SaddleBrown;
    --accent: Peru;
    --article-bg: #fafafa;
    --button-fg: Black;
    --button-accent: orange;
    --button-bg: gold;
    --button-light-fg: Black;
    --button-light-accent: orange;
    --button-light-bg: gold;
    --code-fg: Black;
}

body {
    background: linear-gradient(180deg,var(--bg),var(--bg2)); /*sets gradient colors using theme*/
    /*background: var(--bg);*/
    color: var(--fg);
    font-family: DM sans-serif,Arial;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
    overflow-wrap: break-word;
}

code {
    color: var(--code-fg); /*sets code colors using theme*/
}

/*SPACERS : use them to control image sizes instead of stretching available space */
.maxspacer {
    flex-grow: 1; /* Takes up available space */
}

.minspacer {
    flex-grow: 0.2; /* Takes up minimal space */
}


/* HEADER STYLES */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    /*background: var(--header-bg);*/ /* Changed to use the variable */
    background: linear-gradient(180deg,var(--header-bg2),var(--header-bg));
    color: var(--header-fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: saturate(120%) blur(4px);
}


/* LOGO */
.site-header .logo img {
    height: 44px; /*set height of logo in menu*/
    display: block;
}

/* NAVIGATION */
nav#mainnav {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
}

    nav#mainnav ul {
        list-style: none;
        display: flex;
        gap: var(--nav-gap);
        align-items: center;
    }

    nav#mainnav a {
        color: var(--header-fg);
        text-decoration: none;
        padding: 8px 4px;
        font-weight: 600;
        font-family: DM sans-serif,Arial;
        /*font-family: 'Anek Bangla Expanded', DM sans-serif;*/ /* ADDED THIS LINE */
        border-bottom: 3px solid transparent;
    }

        nav#mainnav a:hover {
            opacity: 0.9;
        }

        nav#mainnav a.active {
            border-bottom-color: var(--accent);
            color: var(--header-fg);
        }

/* LANGUAGE SWITCHER */
.lang-flag {
    width: 28px;
    height: auto;
    cursor: pointer;
    transition: transform .15s ease;
}

    .lang-flag:hover {
        transform: scale(1.08);
    }

/* THEME SWITCHER */
#themeToggle img {
    width: 28px;
    height: auto;
    cursor: pointer;
    transition: transform .15s ease;
}

.themeToggle:hover {
    transform: scale(1.08);
}

/* HAMBURGER FOR MOBILE */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1010;
}

/* MAIN CONTENT */
main {
    max-width: var(--max-width-used);
    margin: 20px auto;
    padding: 20px;
    min-height: calc(100vh - var(--header-height) - 120px);
    overflow: visible;
}


    main img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 20px; 
    }


    main video {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 20px;
    }
.img-fixed {
    width: 200px;
    height: auto;
    justify-self: start;
    align-self: start;
    min-width: 200px;
    max-width: 200px;
}

.img-fixed-left {
    width: 200px;
    height: auto;
    float: left;
    max-width: 180px;
}

body.has-fixed-header {
    padding-top: var(--header-height);
}

.pushbutton {
    display: inline-block;
    padding: 14px 28px;
    background: var(--button-bg);
    color: var(--button-fg);
    text-decoration: none;
    font-weight: bold;
    border-radius: 24px;
}

.pushbutton-light {
    display: inline-block;
    padding: 14px 28px;
    background: var(--button-light-bg);
    color: var(--button-light-fg);
    text-decoration: none;
    font-weight: bold;
    border-radius: 24px;
}

.pushbutton:hover {
    background: var(--button-accent);
}

.pushbutton-light:hover {
    background: var(--button-light-accent);
}

/* TITLES */
h1 {
    font-family: DM sans-serif,Arial;
    /*font-family: 'Anek Bangla Expanded', sans-serif;*/
    color: var(--header-fg);
    font-size: var(--font-extralarge);
    margin-top: 1px;
    margin-bottom: 10px;
    font-weight: bold;
    padding: 8px 14px;
    border-bottom: 1px solid;
    text-decoration-color: var(--header-fg);
}

h2 {
    font-family: DM sans-serif,Arial;
    /*font-family: 'Anek Bangla Expanded', sans-serif;*/
    color: var(--fg);
    font-size: var(--font-extralarge);
    margin: 10px 0;
    font-weight: bold;
}

/* use an image as title instead of text */
.img-title-h2 {
    height: 40px;
    width: auto; /* preserve aspect ratio */
    max-width: 100%; /* prevent overflow */
    display: block; /* remove inline baseline gap */
}


h3 {
    color: var(--fg);
    font-size: var(--font-middle);
    margin: 10px 0;
    font-weight: bold;
}

h4 {
    color: var(--fg);
    font-size: var(--font-small);
    margin: 10px 0;
    font-weight: normal;
}

/* set colors on specific titles */
.title-red {
    color: #e10600; /* red */
}

.title-orange {
    color: #ff8c00; /* orange */
}

.title-gold {
    color: #f5b700; /* yellow-gold */
}


/* ARTICLES */

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.articles-row-flow {
    display: flex;
    flex-direction: row;
    gap: 1px;
}

@media (max-width: 768px) {
    .articles-row-flow {
        flex-direction: column;
    }
}

.articles-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
}

@media (max-width: 700px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-with-title {
    background: var(--article-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 20px;
    line-height: 1.5;
    flex: 1;
}

    .article-with-title h1 {
        color: var(--header-fg);
        margin-top: 0;
        border-bottom: 1px solid var(--accent);
        padding-bottom: 10px;
    }

/*let tekst indent : 1 tab 2tabs ...*/
.indent-1 {
    margin-left: 2em; /* ≈ 1 tab stops */
}

.indent-2 {
    margin-left: 4em; /* ≈ 2 tab stops */
    line-height: 1.5;
}

.indent-3 {
    margin-left: 6em; /* ≈ 3 tab stops */
    line-height: 1.5;
}

.indent-1 .indent-2 .indent-3 li {
    line-height: 2.5;
}



/* FOOTER */
.footer-legal-right {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0.8;
}

    .footer-legal-right a {
        color: white;
        text-decoration: none;
    }

        .footer-legal-right a:hover {
            text-decoration: underline;
        }



/* -------------------------------------------------------------------------*/
/* image scaling command clipping form clickable content that opens page*/
/* -------------------------------------------------------------------------*/
/* CSS Variables for Customizing scaling*/
:root {
    --scale-factor: 1.05;
    --transition-duration: 0.5s;
    --transition-easing: ease-in-out;
}

.scaled-image:hover .scaled-img,
.scaled-image:hover .scaled-background {
    transform: scale(var(--scale-factor));
    transition: transform var(--transition-duration) var(--transition-easing);
}

.scaled-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block; /* Ensures it behaves like an inline block */
}

    .scaled-image .scaled-img {
        cursor: pointer;
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.5s ease-in-out;
    }

    .scaled-image:hover .scaled-img {
        transform: scale(1.05);
        transition: transform 0.5s ease-in-out;
    }

    .scaled-image .scaled-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
        transform: scale(1);
        transition: transform 0.5s ease-in-out;
    }

<style >
/* 3-label badges: Uitdaging / Oplossing / Resultaat */
.por {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.por__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ============================= */
/* LIGHT MODE */
/* ============================= */

.badge {
    color: #111827; /* bijna zwart = veel beter leesbaar */
}

/* 🔴 Uitdaging */
.badge--challenge {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #111827;
}

/* 🟠 Oplossing */
.badge--solution {
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: #111827;
}

/* 🟡 Resultaat */
.badge--result {
    background: rgba(202, 138, 4, 0.15);
    border: 1px solid rgba(202, 138, 4, 0.40);
    color: #111827;
}

/*TAGS Uitdaging - oplossing -resultaat*/
/* ============================= */
/* DARK MODE */
/* ============================= */

@media (prefers-color-scheme: dark) {

    .badge {
        color: rgba(255,255,255,0.95);
    }

    .badge--challenge {
        background: rgba(220, 38, 38, 0.35);
        border-color: rgba(220, 38, 38, 0.55);
    }

    .badge--solution {
        background: rgba(234, 88, 12, 0.35);
        border-color: rgba(234, 88, 12, 0.55);
    }

    .badge--result {
        background: rgba(202, 138, 4, 0.40);
        border-color: rgba(202, 138, 4, 0.60);
    }


    <style >
    /* ===================================== */
    /* POR layout (Probleem Oplossing Resultaat) */
    /* ===================================== */
    .por {
        display: grid;
        gap: 8px;
        margin-top: 10px;
    }

    .por__row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
        align-items: start;
    }


    /* ===================================== */
    /* BADGE BASE */
    /* ===================================== */

    .badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }


    /* ===================================== */
    /* LIGHT THEME  (standaard) */
    /* ===================================== */
    /* zwarte tekst voor maximale leesbaarheid */

    .badge {
        color: #111827;
    }

    /* 🔴 Uitdaging */
    .badge--challenge {
        background: rgba(220, 38, 38, 0.12);
        border: 1px solid rgba(220, 38, 38, 0.35);
    }

    /* 🟠 Oplossing */
    .badge--solution {
        background: rgba(234, 88, 12, 0.12);
        border: 1px solid rgba(234, 88, 12, 0.35);
    }

    /* 🟡 Resultaat */
    .badge--result {
        background: rgba(202, 138, 4, 0.15);
        border: 1px solid rgba(202, 138, 4, 0.40);
    }


    /* ===================================== */
    /* DARK THEME  (volgt jouw site toggle) */
    /* ===================================== */
    /* GEEN prefers-color-scheme gebruiken */

    :root[data-theme="dark"] .badge {
        color: rgba(255,255,255,0.95);
    }

    /* 🔴 */
    :root[data-theme="dark"] .badge--challenge {
        background: rgba(220, 38, 38, 0.35);
        border-color: rgba(220, 38, 38, 0.55);
    }

    /* 🟠 */
    :root[data-theme="dark"] .badge--solution {
        background: rgba(234, 88, 12, 0.35);
        border-color: rgba(234, 88, 12, 0.55);
    }

    /* 🟡 */
    :root[data-theme="dark"] .badge--result {
        background: rgba(202, 138, 4, 0.40);
        border-color: rgba(202, 138, 4, 0.60);
    }

   
    /* MOBILE */
    @media (max-width: 900px) {
        nav#mainnav ul {
        position: fixed;
        top: var(--header-height);
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 12px;
        border-left: 1px solid rgba(255,255,255,0.02);
        display: none;
        min-width: 220px;
        z-index: 1005;
    }

        nav#mainnav ul.open {
            display: flex;
        }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    main {
        padding: 15px;
        margin: 0;
        width: 100%;
    }

    .site-header {
        padding: 0 12px;
    }

    body {
        max-width: 100%;
        overflow-x: hidden;
        font-size: 0.8rem; /* ← ALLE gewone tekst kleiner */
        line-height: 1.45;
    }
}
