/* ===========================================
   CSS Variables & Base Styles          doorverwijsfunctie(if klacht door naar...) en profiel maken in nav
   =========================================== */
:root {
  /* Font family */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  
  /* Colors - Updated for design consistency */
  --bg: #e3dcd5;
  --cloud-bg: #d9d3cc;
  --cloud-border: #fff;
  --text: #1a1a1a;        /* Darker for better contrast */
  --text-muted: #595959;  /* Meets 4.5:1 contrast ratio */
  --text-hover: #000000;  /* Darker on hover */
  --focus-outline: rgba(26, 26, 26, 0.5); /* Subtle focus indicator */
  --hover-bg: rgba(0, 0, 0, 0.05); /* Subtle hover background */
  --error: #cf0000;       /* For error messages */
  --success: #008a28;     /* For success messages */
  
  /* Responsive spacing units */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  
  /* Breakpoints */
  --mobile: 23.4375rem;   /* 375px */
  --tablet: 48rem;        /* 768px */
  --desktop: 64rem;       /* 1024px */
  --large: 80rem;         /* 1280px */
  
  /* Base font size for rem calculations (16px default) */
  font-size: 16px;
  
  /* Fluid typography */
  --fs-sm: clamp(0.875rem, 0.8vw + 0.7rem, 1rem);        /* 14-16px */
  --fs-base: clamp(1rem, 1vw + 0.75rem, 1.125rem);       /* 16-18px */
  --fs-lg: clamp(1.125rem, 1.5vw + 0.9rem, 1.25rem);     /* 18-20px */
  --fs-xl: clamp(1.25rem, 2vw + 1rem, 1.5rem);           /* 20-24px */
  --fs-2xl: clamp(1.5rem, 2.5vw + 1.1rem, 2rem);         /* 24-32px */
  --fs-3xl: clamp(2rem, 3vw + 1.5rem, 2.5rem);           /* 32-40px */
  
  /* Container widths */
  --container-narrow: min(100% - 2rem, 48rem);   /* 768px */
  --container-wide: min(100% - 2rem, 80rem);     /* 1280px */
  /* Footer spacing: used to keep content above fixed footer */
  --footer-height: 3.125rem; /* default footer height (50px) */
}

/* ===========================================
   Reset & Base Styles
   =========================================== */

/* ===========================================
   Plant widget (small decorative growing plant)
   - Fixed on desktop: left, vertically centered
   - On mobile: placed near the top / above logo area
   - Uses pointer-events: none so it doesn't change layout or intercept clicks
   =========================================== */
.plant-widget {
  position: fixed;
  right: 2rem;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40; /* above normal content but below modals which use higher z-index */
  width: 110px;
  max-width: 12vw;
  pointer-events: none;
  transition: transform 300ms ease, opacity 300ms ease;
  opacity: 0.98;
}
.plant-widget img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12));
  transition: transform 400ms ease;
  /* allow clicks on the image while keeping container pointer-events none */
  pointer-events: auto;
  cursor: pointer;
}
.plant-widget .plant-grow {
  transform: scale(1.06);
}

@media (max-width: 47.9375rem) {
  /* On small screens move the plant near the top-right where the logo sits
     so it visually appears above the logo without changing existing layout */
  .plant-widget {
    position: absolute;
    left: 50%;
    transform: translate(X(-50%));
    top: 5rem;
    transform: translateY(0);
    width: 80px;
    max-width: 24vw;
    z-index: 30;
    opacity: 1;
  }

  /* Ensure header area is positioned so absolute placement is predictable */
  .top-section {
    position: relative;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Playfair Display', serif;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-primary);
  overflow-x: hidden;
  /* reserve space for fixed footer; add extra room so fixed footer and bottom icons
     don't overlap the last content and page remains scrollable */
  padding-bottom: calc(var(--footer-height) + 1.5rem);
}

/* Prevent background scrolling when menu overlay open */
body.menu-open {
  overflow: hidden;
}

/* Blur/dim the page content when menu overlay is active */
body.menu-open .top-section,
body.menu-open .hero-section,
body.menu-open .info-section,
body.menu-open .clouds-row,
body.menu-open .icons-explanation {
  filter: blur(3px) saturate(0.98);
  transition: filter 0.2s ease;
}

.papier-background {
    min-height: 100vh;
    background-color: var(--bg);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 29px,
            rgba(139, 119, 101, 0.15) 29px,
            rgba(139, 119, 101, 0.15) 30px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 29px,
            rgba(139, 119, 101, 0.08) 29px,
            rgba(139, 119, 101, 0.08) 30px
        );
    position: relative;
    overflow-x: hidden;
}

/* Textuur overlay voor papier effect */
.papier-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(210, 180, 140, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(222, 184, 135, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(188, 143, 143, 0.2) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
        }

        /* Noise textuur */
        .papier-background::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                repeating-linear-gradient(
                    45deg,
                    transparent 0px,
                    rgba(160, 140, 120, 0.03) 1px,
                    transparent 2px
                ),
                repeating-linear-gradient(
                    -45deg,
                    transparent 0px,
                    rgba(140, 120, 100, 0.03) 1px,
                    transparent 2px
                );
            pointer-events: none;
            z-index: 2;
            opacity: 0.6;
        }

/* ===========================================
   Navigation & Header
   =========================================== */
.navbar {
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 3rem; /* 8px 48px */
  font-size: 0.9375rem; /* 15px */
  gap: 1.75rem; /* 28px */
  border-bottom: 0.0625rem solid rgba(10, 10, 10, 0.08); /* 1px */
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  padding: 0.375rem 0.5rem;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  border-radius: 0.25rem;
  position: relative;
}

.navbar a:hover {
  color: var(--text-hover);
  background-color: var(--hover-bg);
  transform: translateY(-1px);
}

.navbar a:focus {
  outline: 0.1875rem solid var(--focus-outline);
  outline-offset: 0.125rem;
}

.navbar a.active {
  color: var(--text);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25rem;
}

/* ===========================================
   Header Components & Layout
   =========================================== */
.top-section {
  padding: var(--spacing-sm) var(--spacing-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  min-height: auto;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* Small screens and up */
@media (min-width: 30rem) { /* 480px */
  .top-section {
    padding: var(--spacing-md) var(--spacing-md) 0;
  }
}

/* Medium screens and up */
@media (min-width: 48rem) { /* 768px */
  .top-section {
    padding: 2.5rem 3rem 1.25rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 12.5rem;
    gap: var(--spacing-md);
  }
}

/* ===========================================
   Menu Component - Accessible Navigation
   =========================================== */
.menu-section {
  flex: 0 0 17.5rem;
  padding-left: 0;
  position: relative;
}

.menu-icons {
  display: none;
}

/* Skip to main content link for keyboard users */
.skip-to-main {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--bg);
  padding: 1rem;
  z-index: 9999;
  color: var(--link);
}

.skip-to-main:focus {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  outline: 0.1875rem solid var(--focus-outline);
}

.hamburger {
  position: relative;
  width: 2rem;
  height: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 50;
  transition: transform 0.3s ease;
  /* Voeg ARIA labels toe in HTML: aria-label="Menu" aria-expanded="false" */
}

.hamburger:focus {
  outline: none;
}

.hamburger:focus-visible {
  outline: 0.1875rem solid var(--focus-outline);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 0.1875rem;
  background-color: var(--text);
  border-radius: 0.125rem;
  transition: transform 0.3s ease,
              opacity 0.3s ease,
              background-color 0.3s ease;
}

.hamburger:hover span {
  background-color: var(--text-hover);
}

/* Active state animations */
.hamburger.active span:nth-child(1) {
  transform: translateY(0.65625rem) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-100%);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-0.65625rem) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 47.9375rem) {
  .menu-section {
    width: auto;
    padding-left: 0.5rem;
    order: 1;
  }

  .menu-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 45;
  }

  .menu-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
    padding-right: 1rem;
  }

  .menu-icons .icon {
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0.75;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-icons .icon svg {
    width: 100%;
    height: 100%;
  }

  /* Mobile menu: full-screen overlay behavior and clear item styling */
  .menu-content {
    position: fixed; /* overlay */
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4.5rem 1rem 2rem;
    z-index: 120;
    transform: translateY(0);
  }

  /* Make sure the menu content is visible when menu-open toggled */
  .menu-content.menu-open {
    opacity: 1;
    visibility: visible;
  }

  /* Remove bullets and ensure vertical stack */
  .menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
  }

  /* Each list item becomes a full-width block with clear separation */
  .menu-content li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .menu-content a {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    background: transparent;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    text-align: left;
  }

  .menu-content a:hover,
  .menu-content li:hover > a {
    background: var(--hover-bg);
    color: var(--text-hover);
  }

  /* Increase tappable area for arrows/labels inside items if present */
  .menu-content .icon-arrow {
    margin-right: 0.75rem;
    font-size: 1.5rem;
  }

  /* If icons exist inside items, align them and give space */
  .menu-content .icon-visual {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.75rem;
    vertical-align: middle;
  }

  /* Ensure long menus scroll and always allow closing via hamburger */
  .menu-content {
    -webkit-overflow-scrolling: touch;
  }

  /* Remove bullets on mobile hamburger menu entirely */
  .menu-content ul {
    list-style: none;
    padding-left: 0; /* align text with other menu content */
    margin-left: 0;
  }

  .menu-content li::before {
    /* ensure any pseudo-element bullets are hidden */
    content: none !important;
    display: none !important;
  }

  /* Adjust left padding so text aligns nicely without bullets */
  .menu-content li {
    padding-left: 0.5rem;
  }

  /* Mobile dropdown behavior: push content down instead of overlaying */
  .menu-content {
    position: relative; /* keep in flow so it pushes content */
    width: 100%;
    max-height: 0; /* collapsed by default */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    padding: 0; /* will expand when open */
    transition: max-height 0.45s cubic-bezier(.2,.9,.2,1), padding 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    opacity: 1; /* visibility handled by max-height */
    transform: none;
  }

  /* When menu is opened (toggled by JS adding .menu-open) it expands and pushes the page */
  .menu-content.menu-open {
    max-height: 40rem; /* enough space for menu content; adjust if you have longer lists */
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  }

  /* Ensure list spacing inside the dropdown looks good when expanded */
  .menu-content ul {
    padding-left: 1.25rem;
    margin: 0;
  }

  .menu-content li {
    padding-left: 1.75rem;
    position: relative;
  }

}
/* Pagina2 specific menu-section */
.menu-section.pagina2 {
  flex: 1;
  max-width: 25rem;
}

/* Pagina2 specific search-section */
.search-section.pagina2 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.9375rem; /* 15px */
  position: relative;
  left: 0;
  transform: none;
  top: 0;
}

.search-section.pagina2 .search-bar {
  width: 100%;
  max-width: 26.25rem; /* 420px */
}

/* Pagina2 specific logo-section */
.logo-section.pagina2 {
  flex: 1;
  padding-top: 0.625rem; /* 10px */
}

/* Pagina2 specific top-section */
.top-section.pagina2 {
  padding: 2.5rem 3rem; /* 40px 48px */
  min-height: 20rem; /* 320px */
}

.hamburger {
  width: 2rem;
  height: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .hamburger {
    width: 2.5rem;
    height: 1.875rem;
    margin-bottom: 0.9375rem;
  }
}

.hamburger span {
  width: 100%;
  height: 0.1875rem; /* 3px */
  background: var(--text);
  border-radius: 0.125rem; /* 2px */
  transition: all 0.3s ease;
}

.hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.menu-arrow {
  font-size: 2rem; /* 32px */
  margin-left: 1.25rem; /* 20px */
  margin-bottom: 0.3125rem; /* 5px */
  color: var(--text);
  transition: transform 0.3s ease;
}

.menu-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; /* 18px */
  margin-left: 1.25rem; /* 20px */
}

.menu-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; /* Increased size */
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--link);
}

.menu-content ul {
  list-style: none;
  padding-left: 0.9375rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-content li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* 16px */
  margin-bottom: 0.375rem; /* 6px */
  font-weight: 300;
}

.menu-content li::before {
  content: "• ";
  margin-right: 0.5rem; /* 8px */
}

.menu-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding: 5rem 2rem 2rem;
  z-index: 40;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
}

/* Menu content visible by default on pagina2 */
.menu-section.pagina2 .menu-content {
  position: static;
  height: auto;
  background: none;
  transform: none;
  opacity: 1;
  padding-top: 0;
  margin-top: 0.9375rem;
}

.menu-content.menu-open {
  transform: translateX(0);
  opacity: 1;
  animation: menuFadeIn 0.3s ease-out;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-content li {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 0.5rem;
  background-color: transparent;
}

.menu-content li:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: translateX(0.25rem);
}

.menu-content a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  position: relative;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.menu-content a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.menu-content a:hover {
  color: var(--text-hover);
}

.menu-content a:hover::after {
  width: calc(100% - 2rem); /* Compenseer voor de padding */
}

.menu-content a:focus {
  outline: none;
}

.menu-content a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}

.menu-content a:focus::after {
  width: calc(100% - 2rem);
}

/* Theme placeholder styling (non-clickable menu items) */
.theme-placeholder {
  color: var(--text-muted);
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  font-size: 1rem;
  opacity: 0.7;
  cursor: default;
}

.themes-dropdown .theme-placeholder {
  display: inline-block;
  padding: 0.25rem 0.5rem;
}

/* Selected theme styling (bold in navigation) */
.theme-placeholder.selected {
  font-weight: 700;
  opacity: 1;
  color: var(--text, #222);
}

/* Mobile-specific override placed after general menu rules to ensure it wins the cascade */
@media (max-width: 47.9375rem) {
  .menu-section .menu-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .menu-section .menu-content li::before {
    content: none !important;
    display: none !important;
  }

  .menu-section .menu-content li {
    padding-left: 0.5rem !important;
  }
}

.theme-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; /* 18px */
  margin-top: 0.625rem; /* 10px */
}

/* Themes Dropdown Menu */
.themes-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.themes-dropdown.dropdown-open {
  max-height: 31.25rem; /* 500px */
  opacity: 1;
  margin-top: 0.9375rem; /* 15px */
}

.themes-dropdown h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; /* 18px */
  margin-bottom: 0.75rem; /* 12px */
  font-weight: 400;
}

.themes-dropdown ul {
  list-style: none;
  padding-left: 0.9375rem; /* 15px */
}

.themes-dropdown li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* 16px */
  margin-bottom: 0.375rem; /* 6px */
  font-weight: 300;
}

.themes-dropdown li::before {
  content: "• ";
  margin-right: 0.5rem; /* 8px */
}

.themes-dropdown a {
  color: var(--text-muted);
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  transition: color 0.2s ease;
}

.themes-dropdown a:hover {
  color: var(--text-hover);
  background-color: var(--hover-bg);
  border-radius: 0.25rem;
  transform: translateX(0.25rem);
}

/* Center - Search bar */
.search-section {
  position: relative;
  width: 100%;
  z-index: 10;
  order: 2;
}

.search-bar {
  width: 100%;
  height: 3rem;
  background: rgba(255, 255, 255, 0.9); /* Verhoogd contrast */
  border: none; /* verwijder donkere rand */
  border-radius: 1.875rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.75rem;
  position: relative;
  transition: box-shadow 0.2s ease;
}

@media (min-width: 48rem) {
  .search-section {
    position: absolute;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    top: 2.5rem;
    order: initial;
  }

  .search-bar {
    width: 26.25rem;
  }
}

.search-icon {
  width: 1.375rem; /* 22px */
  height: 1.375rem; /* 22px */
  opacity: 0.6;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem; /* Verhoogd voor betere leesbaarheid */
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
}

.search-bar:focus-within {
  /* show a clear focus ring while keeping no permanent border */
  box-shadow: 0 0 0 0.125rem var(--focus-outline);
}

/* Label voor schermlezers */
.search-bar label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mic-icon {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  opacity: 0.6;
}

.ai-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6.25rem; /* 100px */
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem; /* 17px */
}

.ai-arrow {
  position: absolute;
  left: 47%;
  top: 5.9375rem; /* 95px */
  font-size: 1.75rem; /* 28px */
  transform: rotate(-25deg);
}

/* ===========================================
   Logo Component
   =========================================== */
.logo-section {
  flex: none;
  width: 100%;
  display: flex;
  justify-content: center;
  order: 1;
}

.logo {
  position: relative;
  width: 12.5rem;
  height: 6.25rem;
}

@media (min-width: 48rem) {
  .logo-section {
    flex: 0 0 17.5rem;
    justify-content: flex-end;
    order: initial;
    width: auto;
  }

  .logo {
    width: 17.5rem;
    height: 9.375rem;
  }
}

.speech-bubble {
  position: absolute;
  border-radius: 3.125rem; /* 50px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.875rem; /* 46px */
  color: white;
  letter-spacing: 0.125rem; /* 2px */
}

.bubble-psy {
  background: #c97d6c;
  width: 11.25rem; /* 180px */
  height: 8.75rem; /* 140px */
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 5.625rem 5.625rem 5.625rem 1.25rem; /* 90px 90px 90px 20px */
}

.bubble-ovl {
  background: #b5c4d8;
  width: 11.25rem; /* 180px */
  height: 8.75rem; /* 140px */
  top: 1.25rem; /* 20px */
  right: 0;
  z-index: 1;
  border-radius: 5.625rem 5.625rem 1.25rem 5.625rem; /* 90px 90px 20px 90px */
}

/* Zorg dat de tekst in beide bubbles altijd zichtbaar is met een hogere z-index */
.bubble-text {
  position: absolute;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.875rem; /* 46px */
  color: white;
  letter-spacing: 0.125rem; /* 2px */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Positioneer de "psy" tekst in de psy bubble */
.bubble-psy + .bubble-text {
  top: 0;
  left: 0;
  width: 11.25rem; /* 180px */
  height: 8.75rem; /* 140px */
}

/* Positioneer de "ovl" tekst in de ovl bubble */
.bubble-text:nth-of-type(2) {
  top: 1.25rem; /* 20px */
  right: 0;
  width: 11.25rem; /* 180px */
  height: 8.75rem; /* 140px */
}

/* ============================================
   Diary Page Styles
   ============================================ */
.diary-page {
  min-height: 100vh;
  background-color: var(--bg);
  position: relative;
  padding: var(--spacing-sm) var(--spacing-xs);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(139, 119, 101, 0.15) 29px,
      rgba(139, 119, 101, 0.15) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 29px,
      rgba(139, 119, 101, 0.08) 29px,
      rgba(139, 119, 101, 0.08) 30px
    );
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 48rem) {
  .diary-page {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

.diary-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(210, 180, 140, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(222, 184, 135, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(188, 143, 143, 0.2) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.diary-page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      rgba(160, 140, 120, 0.03) 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      rgba(140, 120, 100, 0.03) 1px,
      transparent 2px
    );
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.diary-content {
  width: 100%;
  max-width: var(--container-narrow);
  margin: var(--spacing-md) auto;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 48rem) {
  .diary-content {
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-lg);
  }
}

.diary-content h1 {
  color: var(--text);
  font-size: var(--fs-2xl);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

@media (min-width: 48rem) {
  .diary-content h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--spacing-lg);
  }
}

.diary-form {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 48rem) {
  .diary-form {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
  }
}

.diary-form textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  transition: all 0.3s ease;
}

.diary-form textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus-outline);
  background: #fff;
}

.diary-form textarea::placeholder {
  color: var(--text-muted);
}

.add-note-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--cloud-bg);
  color: var(--text);
  border: 2px solid var(--cloud-border);
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .add-note-btn {
    width: auto;
    min-width: 200px;
    padding: 0.875rem 2rem;
    font-size: var(--fs-base);
    gap: 10px;
  }
}

.add-note-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.add-note-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.12);
  background-color: var(--cloud-border);
}

.add-note-btn:hover::before {
  opacity: 1;
}

.add-note-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.notes-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xs);
}

.note-card {
  position: relative;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideIn 0.3s ease;
  width: 100%;
}

@media (min-width: 48rem) {
  .note-card {
    padding: var(--spacing-lg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Note controls: visibility selector and badge */
.note-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.note-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visibility-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.visibility-badge.private {
  background: #6c6f72; /* grey for private */
}

.visibility-badge.shared {
  background: linear-gradient(90deg,#c97d6c,#b5c4d8); /* accent for shared */
}

.note-visibility select {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 8px;
  border-radius: 6px;
  background: white;
  font-size: 0.9rem;
}

/* Small helper for screen reader only text */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.note-date {
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-date::before {
  content: "📅";
  font-size: var(--fs-base);
}

.note-content {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text);
  font-size: var(--fs-base);
}

.back-button {
  position: fixed;
  top: 12px;
  left: 12px;
  background-color: var(--cloud-bg);
  color: var(--text);
  border: 2px solid var(--cloud-border);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 100;
  position: relative;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .back-button {
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    gap: 8px;
    font-size: var(--fs-base);
  }
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.12);
  background-color: var(--cloud-border);
}

.back-button:hover::before {
  opacity: 1;
}

.back-button svg {
  stroke-width: 2;
  stroke: currentColor;
}

.delete-note {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 28px;
  height: 28px;
}

@media (min-width: 48rem) {
  .delete-note {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  }
}

.delete-note:hover {
  background: rgba(207, 0, 0, 0.1);
  color: var(--error);
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-sm);
  color: var(--text);
  font-size: var(--fs-lg);
}

.empty-state::before {
  content: "📖";
  display: block;
  font-size: var(--fs-3xl);
  margin-bottom: var(--spacing-sm);
}

/* Hero Section */

/* ============================================
   Hero Section (Index page)
   ============================================ */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 3rem 1.5rem; /* 60px 48px 80px */
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem; /* 52px */
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.875rem; /* 30px */
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
}

/* Illustration */
.illustration-container {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 47.9375rem) {
  .illustration-container {
    padding: 0.5rem;
  }
}

.stamp-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: min(0.5rem, 2vw) dashed #333;
  border-radius: 0.5rem;
}

.illustration {
  position: relative;
  width: min(85vw, 26.25rem);
  height: min(85vw, 26.25rem);
  background: linear-gradient(135deg, #e8e0f5 0%, #d8d0e8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.illustration-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  max-width: 100%;
  height: auto;
  /* Voeg alt-tekst toe in HTML voor toegankelijkheid */
}

/* Ondersteun moderne afbeeldingsformaten */
@supports (object-fit: cover) {
  .illustration-image {
    height: 100%;
    object-fit: cover;
  }
}

/* Loading state voor afbeeldingen */
.illustration-image.loading {
  background: var(--bg);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}


/* Info section */
.info-section {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--spacing-md) var(--spacing-xl);
}

.info-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-2xl);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-sm);
}

.info-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-sm);
}

@media (min-width: 48rem) {
  .info-section {
    max-width: 56.25rem;
    padding: 0 5rem 6.25rem;
  }

  .info-title {
    font-size: 2.625rem;
    margin-bottom: 2.5rem;
    padding: 0;
  }
}

.info-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.9;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5625rem; /* 25px */
}

/* Icon explanations */
.icons-explanation {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--container-narrow);
  margin: var(--spacing-xl) auto 0;
  padding: 0 1rem;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: center;
}

@media (min-width: 48rem) {
  .icons-explanation {
    flex-direction: row;
    align-self: center;
    justify-content: center;
    max-width: 68.75rem;
    margin: 5rem auto 0;
    padding: 0 2rem;
    gap: 4rem;
  }
}

.icon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  width: 100%;
  padding: 0.75rem;
  max-width: 300px;
  margin: 0 auto;
}

.icon-left {
  justify-content: flex-start;
}

.icon-right {
  justify-content: flex-start;
  flex-direction: row;
}

@media (min-width: 48rem) {
  .icon-item {
    gap: 1.5625rem;
    padding: 0;
  }
  
  .icon-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
  }
}

.icon-visual {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.icon-arrow {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.icon-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  word-break: normal;
  hyphens: auto;
  flex: 1;
  white-space: normal;
  line-height: 1.4;
}

@media (min-width: 48rem) {
  .icon-visual {
    width: 3.75rem;
    height: 3.75rem;
  }

  .icon-arrow {
    font-size: 2.25rem;
    margin: 0 0.625rem;
  }

  .icon-label {
    font-size: 1.25rem;
  }
}

.icon-column {
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
  flex: 1;
  max-width: 400px;
}

/* Cloud Sections
   ============================================ */
   .clouds-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem var(--spacing-md);
  }

  @media (min-width: 48rem) {
    .clouds-row {
      flex-direction: row;
      justify-content: center;
      gap: 5rem;
      padding: 3.75rem 3rem;
    }
  }
  
  .cloud-section {
    display: flex;
    justify-content: center;
    padding: 2.5rem 3rem 3.75rem; /* 40px 48px 60px */
    position: relative;
  }
  
  .cloud-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 15rem);
    height: 10rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  }

  @media (min-width: 48rem) {
    .cloud-container {
      width: 18rem;
      height: 12rem;
    }
  }
  
  .cloud {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
  }
  
  /* Main cloud body - bottom oval */
  .cloud::before {
    content: '';
    position: absolute;
    width: 18rem;
    height: 9rem;
    background: var(--cloud-bg);
    border: 0.3125rem solid var(--cloud-border);
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Top left bump */
  .cloud::after {
    content: '';
    position: absolute;
    width: 7.5rem;
    height: 7.5rem;
    background: var(--cloud-bg);
    border: 0.3125rem solid var(--cloud-border);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom: none;
    top: 0.5rem;
    left: 1.5rem;
    z-index: 2;
    clip-path: ellipse(50% 50% at 50% 40%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .cloud span {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    transition: transform 0.3s ease;
  }
  
  /* Top center bump */
  .cloud-container::before {
    content: '';
    position: absolute;
    width: 9rem;
    height: 9rem;
    background: var(--cloud-bg);
    border: 0.3125rem solid var(--cloud-border);
    border-radius: 50%;
    border-bottom: none;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    clip-path: ellipse(50% 50% at 50% 45%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Top right bump */
  .cloud-container::after {
    content: '';
    position: absolute;
    width: 7rem;
    height: 7rem;
    background: var(--cloud-bg);
    border: 0.3125rem solid var(--cloud-border);
    border-radius: 50%;
    border-bottom: none;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    clip-path: ellipse(50% 50% at 50% 40%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Hover effects */
  .cloud-container:hover {
    transform: translateY(-0.625rem) scale(1.02);
    filter: brightness(1.08);
  }
  
  .cloud-container:hover .cloud span {
    transform: scale(1.05);
  }
  
  /* Active/Click effect */
  .cloud-container:active {
    transform: translateY(-0.3125rem) scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Floating animation */
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-0.625rem);
    }
  }
  
  .cloud-container {
    animation: float 4s ease-in-out infinite;
  }
  
  /* Stagger the animation for each cloud */
  .clouds-row .cloud-container:nth-child(1) {
    animation-delay: 0s;
  }
  
  .clouds-row .cloud-container:nth-child(2) {
    animation-delay: 0.5s;
  }
  
  .clouds-row .cloud-container:nth-child(3) {
    animation-delay: 1s;
  }
  
  .clouds-row .cloud-container:nth-child(4) {
    animation-delay: 1.5s;
  }
  
  .clouds-row .cloud-container:nth-child(5) {
    animation-delay: 2s;
  }
  
  /* Pause floating animation on hover */
  .cloud-container:hover {
    animation-play-state: paused;
  }
  
  /* Smaller cloud variant for clouds-row */
  .clouds-row .cloud-container {
    width: 15rem;
    height: 10rem;
  }
  
  .clouds-row .cloud {
    font-size: 1.75rem;
  }
  
  .clouds-row .cloud::before {
    width: 15rem;
    height: 7.5rem;
  }
  
  .clouds-row .cloud::after {
    width: 6.5rem;
    height: 6.5rem;
    top: 0.3rem;
    left: 1.2rem;
  }
  
  .clouds-row .cloud-container::before {
    width: 7.5rem;
    height: 7.5rem;
    top: 0;
  }
  
  .clouds-row .cloud-container::after {
    width: 6rem;
    height: 6rem;
    top: 0.8rem;
    right: 1.2rem;
  }
/* ============================================
   Content Sections (Theme pages)
   ============================================ */
.content-wrapper {
  /* Slightly wider container on desktop and reduced side padding for better use
     of horizontal space while keeping mobile padding responsive */
  max-width: 95rem; /* ~1520px */
  margin: 0 auto;
  padding: 0 4rem; /* 0 64px */
  padding-bottom: 0.5rem;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6.25rem; /* 100px */
  margin-bottom: 5rem; /* 80px */
}

.content-column h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; /* 24px */
  margin-bottom: 1.25rem; /* 20px */
  text-decoration: underline;
  font-weight: 400;
}

.content-column p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
  margin-bottom: 0.9375rem; /* 15px */
}

.content-column ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.9375rem; /* 15px */
}

.tips-section {
      max-width: 1100px;
      margin: 40px auto 120px;
      padding: 0 40px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      
    padding-bottom: 3rem;
    }

    /* Responsive tweaks: 2 columns on medium screens, 1 on small */
    @media (max-width: 1000px) {
      .tips-section {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .tips-section {
        grid-template-columns: 1fr;
        padding: 0 20px;
      }
    }
    .tip-item {
      background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
      border-radius: 20px;
      padding: 35px 30px;
      box-shadow: 0 8px 24px rgba(201, 125, 108, 0.12);
      border: 2px solid rgba(201, 125, 108, 0.15);
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }
    .tip-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #c97d6c 0%, #b5c4d8 100%);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }
    .tip-item:hover {
      box-shadow: 0 16px 40px rgba(201, 125, 108, 0.2);
      border-color: rgba(201, 125, 108, 0.3);
    }
    .tip-item:hover::before {
      transform: scaleX(1);
    }
    .tip-item h2 {
      font-family: 'Montserrat', sans-serif;
      font-size: 18px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.5;
      text-decoration: none;
      margin: 0;
    }
    .tip-number {
      display: inline-block;
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #c97d6c 0%, #b58a7a 100%);
      color: white;
      border-radius: 50%;
      text-align: center;
      text-decoration: none;
      line-height: 32px;
      font-weight: 700;
      font-size: 16px;
      margin-bottom: 8px;
      box-shadow: 0 4px 12px rgba(201, 125, 108, 0.3);
    }

.content-column li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.75rem; /* 12px */
  padding-left: 1.5625rem; /* 25px */
  position: relative;
}

.content-column li::before {
  content: "•";
  position: absolute;
  left: 0.5rem; /* 8px */
  font-weight: bold;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; /* 28px */
  margin: 3.75rem 0 2.5rem; /* 60px 0 40px */
  text-decoration: underline;
}

/* Decorative separator used to break up dense content blocks */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.25rem 0 1.75rem; /* spacing around the separator */
}

.section-separator .sep-line {
  height: 2px;
  width: 32%;
  background: linear-gradient(90deg, rgba(201,125,108,0.9), rgba(181,196,216,0.9));
  border-radius: 2px;
  opacity: 0.9;
}

.section-separator .sep-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c97d6c 0%, #b5c4d8 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

@media (max-width: 48rem) {
  .section-separator .sep-line { width: 20%; }
  .section-separator { margin: 1rem 0 1.25rem; }
}

.bottom-content {
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6.25rem; /* 100px */
  margin-bottom: 5rem; /* aligned with .content-row spacing (80px) */
}

.bottom-column h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; /* 24px - match .content-column h2 */
  margin-bottom: 1.25rem; /* 20px */
  text-decoration: underline;
  font-weight: 400;
}

.bottom-column p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
  margin-bottom: 0.9375rem; /* 15px */
}

/* Make bottom-column lists/items match content-column styling for visual consistency */
.bottom-column ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.9375rem; /* 15px */
}

.bottom-column li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.75rem; /* 12px */
  padding-left: 1.5625rem; /* 25px */
  position: relative;
}

.bottom-column li::before {
  content: "•";
  position: absolute;
  left: 0.5rem; /* 8px */
  font-weight: bold;
}

/* ===========================================
   Content Sections - Tips
   =========================================== */
/* Page-specific adjustments for `educatie.html` to improve readability
   Kept scoped so other pages are unaffected. */
.educatie-page .content-wrapper {
  max-width: var(--container-wide); /* narrower measure for long text */
  padding: 0 2.5rem; /* softer side gutters */
}

.educatie-page .content-row,
.educatie-page .bottom-content {
  gap: 3rem; /* tighter vertical rhythm for this page */
  margin-bottom: 3.5rem;
}

.educatie-page .content-column p,
.educatie-page .bottom-column p {
  text-align: left; /* avoid aggressive justification on narrow measure */
  hyphens: auto;
}

.educatie-page .content-column h2,
.educatie-page .bottom-column h3 {
  font-size: 1.5rem; /* consistent heading scale */
}

@media (max-width: 48rem) {
  .educatie-page .content-wrapper { padding: 0 1.5rem; }
  .educatie-page .content-row, .educatie-page .bottom-content { gap: 2rem; }
}

/* ===========================================
   Game / Card styles (reusable)
   =========================================== */
.game-card {
  background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 8px 24px rgba(201, 125, 108, 0.12);
  border: 2px solid rgba(201, 125, 108, 0.15);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c97d6c 0%, #b5c4d8 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 16px 40px rgba(201, 125, 108, 0.2);
  border-color: rgba(201, 125, 108, 0.3);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.requirements-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
}

.examples-list li {
  list-style: none;
  background: linear-gradient(90deg, #eae7e4 0%, #f6f4f2 100%);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--text);
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg,#c97d6c 0%, #b5c4d8 100%);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(201,125,108,0.12);
}

@media (max-width: 48rem) {
  .game-card { padding: 18px; }
  .examples-list li { font-size: 0.9rem; padding: 0.3rem 0.5rem; }
}

/* ===========================================
   Content Sections - Podcast
   =========================================== */
.content-section {
  max-width: 68.75rem; /* 1100px */
  margin: 0 auto;
  padding: 0 5rem 3.75rem; /* 0 80px 60px */
}

.intro-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.25rem; /* 20px */
}

.podcast-details {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
  margin-bottom: 3.75rem; /* 60px */
}

.podcast-title {
  font-style: italic;
  font-weight: 400;
}

.spotify-container {
  max-width: 56.25rem; /* 900px */
  margin: 0 auto 7.5rem; /* 0 auto 120px */
  background: #fff;
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15); /* 0 4px 20px */
  overflow: hidden;
}

.spotify-embed {
  width: 100%;
  height: 31.25rem; /* 500px */
  border: none;
}

/* ============================================
   Exercise Section
   ============================================ */
.example-section {
  max-width: 62.5rem; /* 1000px */
  margin: 0 auto;
  padding: 1.25rem 5rem 3.75rem; /* 20px 80px 60px */
  text-align: center;
}

.example-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; /* 20px */
  margin-bottom: 1.25rem; /* 20px */
}

.example-arrow {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 1.25rem; /* 20px */
}

.example-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; /* 24px */
  margin-bottom: 1.875rem; /* 30px */
}

.exercise-content {
  max-width: 62.5rem; /* 1000px */
  margin: 0 auto;
  padding: 0 5rem 9.375rem; /* 0 80px 150px */
}

.exercise-section {
  margin-bottom: 2.5rem; /* 40px */
}

.exercise-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.25rem; /* 20px */
}

.exercise-section p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.9375rem; /* 15px */
}

/* Exercise section - improved h2 and list styles */
.exercise-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  margin: 0 0 0.6rem 0;
  color: var(--text);
  text-align: left;
}

.exercise-section ul,
.exercise-section ol {
  margin: 0.4rem 0 1rem 1.15rem;
  padding-left: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text-muted);
}

.exercise-section li {
  margin-bottom: 0.55rem;
}

.exercise-section ul li::marker {
  color: var(--text);
  font-weight: 600;
}

/* Slightly larger, centered intro headings keep their spacing but align content titles left */
.exercise-section h3 {
  text-align: left;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 48rem) {
  .exercise-content { padding: 0 1.25rem 3rem; }
  .exercise-section ul, .exercise-section ol { margin-left: 0.9rem; }
  .exercise-section h2 { font-size: 1.05rem; }
}

/* ============================================
   Psy Play Section
   ============================================ */
.content-wrapper.psy-play {
  max-width: 75rem; /* 1200px */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; /* 80px */
  align-items: start;
  padding: 0 5rem 7.5rem; /* 0 80px 120px */
}

.left-column {
  text-align: left;
}

.right-column {
  text-align: left;
}

.game-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  margin-bottom: 0.9375rem; /* 15px */
  text-align: center;
}

.description-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
}

/* ===== Improved card typography & spacing for Psy-Play ===== */
.content-wrapper.psy-play .game-card {
  padding: 28px 26px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20,20,20,0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf9 100%);
  max-width: 100%;
}

.content-wrapper.psy-play .game-card p,
.content-wrapper.psy-play .game-card ol,
.content-wrapper.psy-play .game-card ul {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.content-wrapper.psy-play .game-card h4 {
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.content-wrapper.psy-play .examples-list {
  display: block;
  gap: 0.5rem;
  padding-left: 1.05rem;
  margin: 0.4rem 0 0.8rem 0;
}

.content-wrapper.psy-play .examples-list li {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: list-item;
  margin-bottom: 0.45rem;
}

.content-wrapper.psy-play .examples-list li a {
  color: #2a5db0;
  text-decoration: underline;
}

.content-wrapper.psy-play .game-card .examples-list > ul {
  padding-left: 1rem;
}

/* Make long paragraphs easier to read by limiting measure inside each card */
.content-wrapper.psy-play .game-card > * {
  max-width: 46rem;
}

/* Responsive: stack columns and give breathing room on mobile */
@media (max-width: 48rem) {
  .content-wrapper.psy-play {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1.25rem 3rem;
  }

  .content-wrapper.psy-play .game-card {
    padding: 18px;
  }

  .content-wrapper.psy-play .game-title {
    text-align: left;
  }
}

/* Small tweak for better contrast on inline chips */
.content-wrapper.psy-play .examples-list li {
  background: linear-gradient(90deg, rgba(230,230,230,0.4), rgba(245,245,245,0.4));
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  display: inline-block;
}

.requirements-list {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  list-style: none;
  padding: 0;
}

.requirements-list li {
  margin-bottom: 0.5rem; /* 8px */
}

.examples-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  margin-top: 0.9375rem; /* 15px */
  margin-bottom: 0.5rem; /* 8px */
}

.examples-list {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  font-weight: 300;
  list-style: none;
  padding-left: 0;
}

.examples-list li {
  margin-bottom: 0.375rem; /* 6px */
}

/* ============================================
   Bottom Icons
   ============================================ */
.bottom-icons {
  display: none;
}

@media (min-width: 48rem) {
  .bottom-icons {
    position: fixed;
    bottom: 3.75rem; /* 60px */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5rem; /* 0 80px */
    pointer-events: none;
    z-index: 50;
  }
}

.icon-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  pointer-events: all;
}

.icon-group-right {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
  pointer-events: all;
}

 .icon {
  width: 3.125rem; /* 50px */
  height: 3.125rem; /* 50px */
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.icon:hover {
  opacity: 1;
}

/* Ensure chat-launch buttons match icon sizing */
.icon .chat-launch {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon .chat-launch svg {
  width: 100%;
  height: 100%;
}
.svg-icon {
  width: 100%;
  height: 100%;
}

/* ============================================
   Footer
   ============================================ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c0c0c;
  color: #fff;
  font-size: 0.8125rem; /* 13px */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.5rem; /* 10px 24px */
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.25rem; /* 20px */
}

footer a:hover {
  text-decoration: underline;
}

footer .opacity-70 {
  opacity: 0.7;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 75rem) { /* 1200px */
  .top-section {
    flex-direction: column;
    align-items: center;
    gap: 1.875rem; /* 30px */
  }
  
  .search-section {
    position: relative;
    left: 0;
    transform: none;
    top: 0;
  }
  
  .ai-label, .ai-arrow {
    display: none;
  }
  
  .menu-section, .search-section, .logo-section {
    max-width: 100%;
    justify-content: center;
  }
  
  .icons-explanation {
    flex-direction: column;
    gap: 2.5rem; /* 40px */
  }
  
  .icon-right {
    flex-direction: row;
  }
  
  .clouds-row {
    flex-direction: column;
    gap: 2.5rem; /* 40px */
  }
  
  .content-row, .bottom-content {
    grid-template-columns: 1fr;
    gap: 2.5rem; /* 40px */
  }
  
  .content-wrapper {
    padding: 0 2.5rem; /* 0 40px */
  }
  
  .tips-section {
    padding: 0 2.5rem 7.5rem; /* 0 40px 120px */
    padding-bottom: 3rem;
  }
  
  .content-section {
    padding: 0 2.5rem 3.75rem; /* 0 40px 60px */
  }
  
  .spotify-embed {
    height: 25rem; /* 400px */
  }
  
  .example-section, .exercise-content {
    padding: 1.25rem 2.5rem 9.375rem; /* 20px 40px 150px */
  }
  
 
  .content-wrapper.psy-play {
    grid-template-columns: 1fr;
    gap: 2.5rem; /* 40px */
    padding: 0 2.5rem 7.5rem; /* 0 40px 120px */
  }
  
  .bottom-icons {
    padding: 0 3.75rem; /* 0 60px */
  }
  
  .search-section.pagina2 {
    position: relative;
    left: 0;
    transform: none;
    top: 0;
  }
}

/* Final overrides: reduce spacing for tips on small screens */
@media (max-width: 600px) {
  .tips-section {
    gap: 12px !important; /* smaller gap between grid items */
    padding: 0 12px !important;
    margin: 1.25rem auto 2rem !important;
    margin-bottom: 0.5rem;
    
    padding-bottom: 3rem;
  }

  .tip-item {
    margin-bottom: 1.5rem !important; /* 24px */
    padding: 18px 14px !important; /* smaller card padding */
    border-radius: 12px !important;
  }

  .tip-item::before {
    height: 3px !important;
  }
}

/* Ensure tips-section always stays 0.5rem above the top of the fixed footer */
.tips-section {
  margin-bottom: calc(var(--footer-height) + 0.5rem) !important;
  
    padding-bottom: 3rem;
}

/* Final mobile override: ensure no bullets show for any dropdown/menu lists */
@media (max-width: 47.9375rem) {
  .menu-section .menu-content ul,
  .themes-dropdown ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .menu-section .menu-content li::before,
  .themes-dropdown li::before,
  .menu-content li::before {
    content: none !important;
    display: none !important;
  }

  .menu-section .menu-content li,
  .themes-dropdown li,
  .menu-content li {
    padding-left: 0.5rem !important;
  }
}

/* Force mobile menu to project above all other page elements when opened
   This ensures the menu won't be visually under floating icon groups or other fixed elements */
@media (max-width: 47.9375rem) {
  .menu-content.menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    padding: 3.5rem 1.25rem 1.5rem !important;
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(6px) !important;
  }
}

/* ============================================
   Profile modal styles
   ============================================ */
.profile-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.profile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  width: min(520px, 94vw);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f6 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 2px solid rgba(0,0,0,0.06);
}

.profile-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.profile-body {
  display: flex;
  gap: 18px;
  align-items: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c97d6c 0%, #b5c4d8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.profile-address,
.profile-psych,
.profile-next {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .profile-modal { padding: 14px; }
  .profile-body { gap: 12px; }
  .profile-avatar { width: 76px; height: 76px; font-size: 1.1rem; }
  .profile-name { font-size: 1.1rem; }
}

/* prevent body scroll when modal open */
.modal-open {
  overflow: hidden;
}

/* ============================================
   Language Selector
   ============================================ */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.lang-toggle {
  background: linear-gradient(135deg, #c97d6c 0%, #b5c4d8 100%);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.lang-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lang-toggle .current-flag {
  font-size: 24px;
  line-height: 1;
}

.lang-toggle .lang-arrow {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  color: white;
  opacity: 0.8;
}

.lang-dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
  font-family: var(--font-primary);
}

.lang-option:hover {
  background: rgba(201, 125, 108, 0.1);
}

.lang-option.active {
  background: linear-gradient(90deg, rgba(201, 125, 108, 0.15) 0%, rgba(181, 196, 216, 0.15) 100%);
  font-weight: 600;
}

.lang-option .flag {
  font-size: 20px;
  line-height: 1;
}

.lang-option .lang-name {
  font-size: 14px;
  color: var(--text);
}

/* Mobile adjustments */
@media (max-width: 48rem) {
  .language-selector {
    top: 12px;
    right: 12px;
  }

  .lang-toggle {
    width: 42px;
    height: 42px;
  }

  .lang-toggle .current-flag {
    font-size: 20px;
  }

  .lang-dropdown {
    min-width: 160px;
  }
}

/* Hide Google Translate default widget completely */
#google_translate_element_hidden,
.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important; /* Prevent Google Translate from adding top margin */
}

.skiptranslate {
  display: none !important;
}

/* Chat overlay styles (visual demo) */
.chat-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.chat-overlay.open {
  opacity: 1;
  visibility: visible;
}

.chat-window {
  width: min(420px, 96vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 2px solid rgba(0,0,0,0.06);
}

@media (min-width: 769px) {
  .chat-window {
    border-radius: 12px;
    width: 360px;
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-height: 60vh;
  }
  .chat-overlay {
    align-items: flex-end;
    justify-content: flex-end;
    background: transparent;
  }
  .chat-overlay.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(90deg, #c97d6c, #b5c4d8);
  color: #fff;
}

.chat-header h3 { margin: 0; font-size: 1rem; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

.chat-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #faf8f6;
}

.bot-msg { background: #f1f1f1; padding: 10px 12px; border-radius: 10px; color: var(--text); max-width: 85%; }
.user-msg { align-self: flex-end; background: linear-gradient(90deg,#c97d6c,#b5c4d8); color: #fff; padding: 10px 12px; border-radius: 10px; max-width: 85%; }

.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(0,0,0,0.06); background: #fff; }
.chat-input input { flex: 1; padding: 10px; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; }
.chat-input .chat-send { padding: 8px 12px; border-radius: 8px; background: var(--cloud-bg); border: 1px solid var(--cloud-border); cursor: pointer; }

/* Profile page specific styles (reuse modal visual language) */
.profile-page .profile-card {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
  border: 2px solid rgba(201,125,108,0.12);
  box-shadow: 0 8px 30px rgba(201,125,108,0.08);
}

.profile-avatar.large {
  width: 120px;
  height: 120px;
  font-size: 2rem;
}

.profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.profile-row .label {
  min-width: 140px;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-row .value {
  color: var(--text);
  font-weight: 500;
}

.profile-actions {
  margin-top: 8px;
}

@media (max-width: 48rem) {
  .profile-page .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }

  .profile-row { flex-direction: column; gap: 6px; }

  .profile-row .label { min-width: 0; }
}

/* ============================================
   Referral/Doorverwijzing Modal Styles
   ============================================ */
.referral-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.referral-overlay.open {
  opacity: 1;
  visibility: visible;
}

.referral-modal {
  width: min(580px, 94vw);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f6 100%);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 2px solid rgba(0,0,0,0.06);
  max-height: 90vh;
  overflow-y: auto;
}

.referral-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.referral-close:hover {
  color: var(--text);
}

.referral-body {
  position: relative;
  padding: 8px;
}

.referral-body h2 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

.referral-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.referral-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(201, 125, 108, 0.05);
  border-radius: 8px;
  border-left: 4px solid rgba(201, 125, 108, 0.2);
}

.referral-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.referral-name,
.referral-address,
.referral-gp,
.referral-service,
.referral-contact,
.referral-phone,
.referral-email,
.referral-date,
.referral-status {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.referral-note {
  margin-top: 1.5rem;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(201, 125, 108, 0.1) 0%, rgba(181, 196, 216, 0.1) 100%);
  border-left: 4px solid rgba(201, 125, 108, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .referral-modal {
    padding: 14px;
    border-radius: 10px;
  }
  
  .referral-row {
    grid-template-columns: 110px 1fr;
    padding: 8px 10px;
    gap: 8px;
  }
  
  .referral-label {
    font-size: 0.9rem;
  }
  
  .referral-name,
  .referral-address,
  .referral-gp,
  .referral-service,
  .referral-contact,
  .referral-phone,
  .referral-email,
  .referral-date,
  .referral-status {
    font-size: 0.9rem;
  }
  
  .referral-body h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
}

  /* Desktop-specific spacing: ensure footer and bottom-icon area don't hide content
     and use wider container on large screens */
  @media (min-width: 48rem) {
    body {
      /* Add extra bottom padding to accommodate .bottom-icons + fixed footer */
      padding-bottom: calc(var(--footer-height) + 7.5rem);
    }

    .content-wrapper {
      /* Slightly more side padding on desktop for visual breathing room */
      padding: 0 5rem;
    }
  }

  @media (min-width: 90rem) { /* very large desktops */
    .content-wrapper {
      max-width: 110rem; /* ~1760px */
      padding: 0 6rem;
    }
  }

/* Ensure <strong> and <b> appear visually bold across the site.
   Some font-family rules or specific component styles were reducing
   their weight; this rule forces a strong appearance. Use sparingly. */
strong, b {
  font-weight: 700 !important;
  font-family: inherit !important;
}

/* Small Artevelde badge placed on all pages. Injected via JS so HTML doesn't need editing.
   Position: bottom-left above the fixed footer; non-invasive and responsive. */
.artevelde-badge {
  position: fixed;
  left: 1rem;
  bottom: calc(var(--footer-height) + 1rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: auto;
  padding: 0.25rem;
  background: rgba(255,255,255,0.95);
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 180ms ease, opacity 180ms ease;
}
.artevelde-badge:hover { transform: translateY(-4px); }
.artevelde-badge img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@media (max-width: 47.9375rem) {
  .artevelde-badge {
    left: 0.75rem;
    top: 0.75rem;
    bottom: auto;
    width: 48px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  }
}

/* Desktop: place Artevelde badge in the header (top-right) when available.
   This keeps it visually out of the way and consistent with header controls. */
@media (min-width: 48rem) {
  .top-section {
    position: relative;
  }

  .top-section .artevelde-badge,
  .artevelde-badge.artevelde-top {
    position: absolute !important;
    right: 1rem !important;
    top: 0.75rem !important;
    width: 48px !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center !important;
  }

  .top-section .artevelde-badge img,
  .artevelde-badge.artevelde-top img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* When the badge is placed inside the header/menu, make it inline and unobtrusive */
.menu-top .artevelde-badge,
.artevelde-badge.artevelde-inline {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin-right: 0.5rem;
  width: 40px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  align-self: center;
}
.menu-top .artevelde-badge img,
.artevelde-badge.artevelde-inline img {
  width: 100%;
  height: auto;
  display: block;
}

