/* Basic styling */
:root {
  --text-color: #1a100d;
  --light-background: #F0EBE3;
  --very-light-background: #fbf9f6;
  --color-0: #333;
  --color-1: #A5543C;
  --color-2: #5D3A2E;
  --color-3: #C8A87A;
  --color-4: #F4F1EC;
  --color-5: #6b6661; /* secondary text; darker than before to meet WCAG AA */
  --color-test: #DC4C20;
  --color-banner-1: #f56f24;
  --color-banner-2: #d94520;
  --color-U-1: #ff8a27;
  --color-U-2: #d04b40;
  --color-ivory: #fffff0;
  --color-footer: #2c1b16;

  --font-general: Futura, sans-serif;
}

/* Tekstgrootte from Site-instellingen (REQUIREMENTS.md R-112). Sizes on the site are in rem,
   so this one value scales all text together. Percentages keep the visitor's own browser setting. */
html.text-klein   { font-size: 87.5%; }
html.text-normaal { font-size: 93.75%; }
html.text-groot   { font-size: 100%; }

body {
  font-family: var(--font-general);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--light-background);
  /* Keep the footer at the bottom of the screen on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

header {
  background: linear-gradient(90deg, var(--color-banner-1), var(--color-banner-2));
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999999;
}

header a {
  text-decoration: none;
  font-family: var(--font-general);
  color: var(--color-4);
}

nav {
  box-shadow: 2px 2px 4px 2px rgba(0,0,0,.2);
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-top: 65px;
}

/* Minimal Footer Styles */
footer.footer-minimal {
  flex-shrink: 0;
  background-color: var(--color-footer);
  color: var(--color-4);
  width: 100%;
  text-align: center;
  padding: 1.25rem 1rem 1rem;
  z-index: 999999;
}

footer.footer-minimal a {
  text-decoration: none;
  font-family: var(--font-general);
  color: var(--color-4);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

footer.footer-minimal a:hover {
  opacity: 1;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6; /* lower fails WCAG AA contrast on the dark footer */
}

.footer-social {
  display: flex;
  gap: 0.25rem;
}

.footer-social a {
  font-size: 1rem;
  /* Big enough to tap (WCAG 2.2: at least 24 px), R-114 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.footer-copyright {
  opacity: 0.6; /* lower fails WCAG AA contrast on the dark footer */
}

.footer-business {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  opacity: 0.6; /* lower fails WCAG AA contrast on the dark footer */
}

/* Inside .footer-copyright, so it already has its 0.6. Without this, the 0.6 of every footer link
   multiplies with it (0.36) and fails contrast (R-114). */
footer.footer-minimal .footer-credit {
  opacity: 1;
}

.footer-credit:hover,
.footer-credit:focus {
  text-decoration: underline;
}

/* Legacy footer styles for backwards compatibility */
footer:not(.footer-minimal) {
  background-color: var(--color-footer);
  color: var(--color-4);
  width: 100%;
  text-align: center;
  position: relative;
  bottom: 0;
  padding: 0 0 1rem;
  margin-top: -2rem;
  z-index: 999999;
}

footer:not(.footer-minimal) a {
  text-decoration: none;
  font-family: var(--font-general);
  color: var(--color-4);
}

.footer-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.newsletter-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.subscribe-btn {
  background: none;
  border: none;
  color: var(--color-4);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0.5rem 0.75rem;
}

.subscribe-btn:hover {
  transform: scale(1.1);
  color: var(--color-banner-1);
}

.subscribe-btn i {
  font-size: 1.5rem;
}

.banner-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.75rem;
  padding: .1rem 1rem;
  z-index: 999;
  color: var(--color-4);
  position: relative;
}

/* IMPORTANT: Only apply gradient to header banner logo, not welcome logo */
header .banner-logo {
  display: flex;
  max-height: 50px;
  border-radius: 25px;
  align-items: center;
  background: linear-gradient(90deg, var(--color-banner-1), var(--color-banner-2));
  z-index: 1001;
}

.banner-left {
  color: var(--color-4);
  display: flex;
  align-items: center;
  font-size: large;
  gap: 4px;
  flex: 1;
  max-width: 200px;
}

.banner-left a {
  color: var(--color-4);
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: inline-block;
  padding: 12px 4px;
}

.banner-left a:hover {
  transform: scale(1.2);
}

.banner-right {
  color: var(--color-4);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 200px;
  justify-content: flex-end;
}

/* WELCOME BANNER STYLES - moved from welcome.css */
.welcome-container {
   display: flex;
   flex-direction: row;
   width: 100%;
   box-sizing: border-box;
   aspect-ratio: 4.2358;
   min-height: 162px;
   padding: 0rem;
   position: relative;
   overflow: hidden;
   color: var(--color-ivory);
   align-items: center;
   justify-content: center;
   gap: 2rem;
}

.welcome-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   /* Phones: the whole photo. Wider screens: a cropped band, see the media query below. */
   background-image: url("../images/ubuntu_coaching_banner_960.ba6b5bf3bfb4.webp");
   background-size: cover;
   background-position: center 75%;
   background-repeat: no-repeat;
   z-index: -1;
}

@media (min-width: 769px) {
   .welcome-container::before {
      background-image: url("../images/ubuntu_coaching_banner.d43508b7741d.webp");
      background-position: center 66%;
   }
}

.welcome-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* 30% dark overlay */
    z-index: -1;
}

.welcome-logo {
  height: 50%;
  width: auto;
  border-radius: 5px;
  flex-shrink: 0; /* Prevent logo from shrinking */
  z-index: 1001;
  background: none !important;
  display: block !important;
}

.titles-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    flex: 1;
    max-width: 60%; /* Prevent text from taking too much space */
}

.main-title-container h1,
.main-title-container .banner-title {
    margin: 0;
    font-size: clamp(1rem, 4vw, 3rem);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-slogan-container {
    position: relative;
    min-height: 50px;
    width: 100%;
}

.slogan-text p {
    margin: 0;
    font-size: clamp(.5rem, 3vw, 1.5rem);
    color: var(--color-4);
}

.slogan-text {
    display: block;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    font-size: clamp(.5rem, 3vw, 1.5rem);
    margin: 0;
}

.welcome-text-container {
    position: relative;
    min-height: 50px;
    width: 100%;
}

.welcome-text {
    opacity: 0;
    display: none;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    font-size: clamp(.5rem, 3vw, 1.5rem);
    margin: 0;
    color: var(--color-4);
}

.welcome-text.active {
    opacity: 1;
    display: block;
}

.welcome-text p {
    margin: 0;
    font-size: clamp(.5rem, 3vw, 1.5rem);
    color: var(--color-4);
}

/* Background container - applies to all screen sizes */
.bkgnd-container {
    position: relative;
    background-color: transparent; /* Let the fixed pattern show through */
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0rem;
}

/* Fixed background pattern using pseudo-element to prevent stretching */
.bkgnd-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--very-light-background);
    background-image: url("../images/flower_of_life.026eb7c0c340.svg");
    background-repeat: repeat;
    background-size: 150px 150px; /* Exact size prevents stretching */
    background-position: center;
    z-index: -2; /* Below hero section which has z-index: 1 */
    pointer-events: none;
}

/* DESKTOP STYLES (1021 and up) */
@media (min-width: 1021px) {
  .banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: .1rem 2rem;
  }

  .banner-left {
    flex: 0 0 auto;
    max-width: none;
  }

  .banner-right {
    flex: 0 0 auto;
    max-width: none;
  }

  /* Show menu horizontally on desktop */
  .banner-right #myLinks {
    display: flex !important;
    position: static;
    background: none;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    flex-direction: row;
    align-items: center;
  }

  .menu-item {
    position: relative;
  }

  .menu-item > a {
    color: var(--color-4);
    padding: 20px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    white-space: nowrap;
  }

  .menu-item > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Desktop dropdown arrows */
  .menu-item.has-dropdown > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 8px;
  }

  /* Desktop dropdowns - show on hover */
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-0);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .submenu a {
    color: var(--color-4);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-left: 3px solid transparent;
  }

  .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--color-banner-1);
  }

  /* Keyboard users can open dropdowns too */
  .menu-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-cta > a {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 8px 18px;
    margin-left: 8px;
  }

  .menu-cta > a:hover {
    background-color: var(--color-4);
    color: var(--color-banner-2);
  }

  .menu-account {
    display: none;
  }

  /* Hide mobile hamburger on desktop */
  .banner-right .icon {
    display: none;
  }

  .banner-right .login-icon,
  .banner-right .logout-icon {
    display: inline-block;
    padding: 20px 15px;
    color: var(--color-4);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 4px;
  }

  .banner-right .login-icon:hover,
  .banner-right .logout-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: var(--color-4);
  }
}

/* MOBILE STYLES (1020 and below) */
@media (max-width: 1020px) {
  /* Mobile menu - hidden by default */
  .banner-right #myLinks {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-0);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    flex-direction: column;
  }

  .menu-item {
    position: relative;
    width: 100%;
  }

  .menu-item > a {
    color: var(--color-4);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-item > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Mobile dropdown arrows */
  .menu-item.has-dropdown > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
  }

  .menu-item.has-dropdown.open > a::after {
    transform: rotate(180deg);
  }

  /* Mobile dropdowns - click to toggle */
  .submenu {
    background-color: var(--color-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu.open {
    max-height: 300px;
  }

  .submenu a {
    color: var(--color-4);
    padding: 12px 40px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-left: 3px solid transparent;
  }

  .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--color-banner-1);
  }

  /* Top bar on mobile: logo + hamburger only; account rows live in the menu */
  .nav-icons {
    display: none;
  }

  .menu-account {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .menu-account a,
  .menu-account button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-4);
    font-family: var(--font-general);
    font-size: 15px;
    padding: 14px 20px;
    text-decoration: none;
    cursor: pointer;
  }

  .menu-account a:hover,
  .menu-account button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-4);
    text-decoration: none;
  }

  .menu-account i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
  }

  .menu-account form {
    margin: 0;
  }

  /* Show hamburger on mobile */
  .banner-right .icon {
    display: block;
    right: 0;
    top: 0;
    padding: 12px 16px;
    min-width: 48px;
    min-height: 48px;
    background: none;
    border: none;
    color: var(--color-4);
    font-size: 1.3rem;
    cursor: pointer;
  }

  .banner-right .icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-4);
  }

  .banner-right .login-icon {
    display: inline-block;
    padding: 14px 12px;
    color: var(--color-4);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-right: 4px;
  }

  .banner-right .login-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: var(--color-4);
  }

  /* Mobile header bar adjustments */
  .banner-container {
    margin-top: 0;
    padding: 0.5rem 1rem;
    min-height: 50px;
  }

  .banner-left {
    align-items: center;
  }

  .banner-left a {
    padding: 8px 4px;
    display: flex;
    align-items: center;
  }

  header .banner-logo {
    max-height: 40px;
  }

  /* Mobile welcome banner responsive */
  .welcome-container {
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .welcome-logo {
    height: 30%;
  }

  .titles-container {
    text-align: center;
    max-width: 100%;
  }
}

/* Authentication icons styling */
.nav-icons {
    display: flex;
    align-items: center;
}

.auth-icon {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.auth-icon:hover {
    color: #007bff; /* or your theme color */
    text-decoration: none;
}

.auth-form {
    display: inline;
    margin: 0;
}

.logout-btn {
    padding: 0;
}

.logout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* Admin dropdown styling */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--color-0);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.admin-dropdown-content a {
    color: var(--color-4);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.admin-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-dropdown-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.admin-dropdown:hover .admin-dropdown-content,
.admin-dropdown.open .admin-dropdown-content {
    display: block;
}

.admin-dropdown:hover .auth-icon {
    color: #007bff;
}

/* Footer responsive styles */
@media (max-width: 768px) {
    /* On mobile, use regular scrolling background for performance */
    .bkgnd-container::before {
        position: fixed;
        background-size: 250px 250px;
    }

    /* Minimal footer responsive */
    footer.footer-minimal {
        padding: 1rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal {
        gap: 0.75rem;
    }

    /* Legacy footer responsive */
    footer:not(.footer-minimal) {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    footer:not(.footer-minimal) h3 {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .newsleter-div,
    .info-div {
        width: 100%;
        text-align: center;
    }

    .newsletter-fields {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .newsletter-fields .col-auto {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-fields input {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .subscribe-btn {
        padding: 0.5rem 1rem;
    }

    .info-div {
        line-height: 1.8;
    }

    .info-div i {
        font-size: 0.9rem !important;
    }

    .info-div a {
        display: inline-block;
        margin: 0.25rem 0;
    }

    footer p {
        font-size: 0.85rem;
        margin: 1rem 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .bkgnd-container::before {
        background-size: 200px 200px;
    }

    footer {
        font-size: 0.85rem;
    }

    footer h3 {
        font-size: 1rem;
    }

    .newsletter-fields input {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .footer-container {
        gap: 1rem;
    }

    .info-div {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}
/* Contact call-to-action (shared include) */
.cta-contact {
    max-width: 760px;
    margin: 2.5rem auto 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cta-contact h2 {
    color: var(--color-2);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cta-contact p {
    color: var(--color-0);
    margin-bottom: 1.25rem;
}

.cta-contact-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-banner-1), var(--color-banner-2));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-contact-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 69, 32, 0.3);
}

/* Staff-only "edit this page" button; sits below the cookie banner (z-index 99999) */
.admin-edit-btn {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background-color: var(--color-0);
    color: var(--color-4);
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    opacity: 0.85;
}

.admin-edit-btn:hover {
    opacity: 1;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cta-contact {
        margin: 2rem 1rem 1rem;
    }

    .cta-contact-btn {
        display: block;
        width: 100%;
    }

    .admin-edit-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }

    .admin-edit-btn span {
        display: none;
    }
}

/* Error pages */
.error-page {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
}

.error-page h1 {
    color: var(--color-2);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.error-links a {
    padding: 0.6rem 1.4rem;
    min-height: 44px;
    border: 1px solid var(--color-1);
    border-radius: 999px;
    color: var(--color-1);
    text-decoration: none;
}

.error-links a:hover {
    background-color: var(--color-1);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .error-links {
        flex-direction: column;
    }
}

/* Newsletter (admin tool) page */
.newsletter-admin {
    max-width: 860px;
    margin: 1rem auto;
    padding: 2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
}

.newsletter-admin h1 {
    color: var(--color-2);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.newsletter-admin-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-admin-links a {
    color: var(--color-1);
}

.newsletter-admin .ck-editor,
.newsletter-admin input,
.newsletter-admin textarea {
    max-width: 100%;
}

.newsletter-admin .ck.ck-toolbar > .ck-toolbar__items {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .newsletter-admin {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }

    .newsletter-admin button[type="submit"] {
        width: 100%;
    }
}

/* Offer menu (REQUIREMENTS.md R-002): each course type on its own in the bar when it fits,
   otherwise grouped under "Aanbod". The hamburger menu (max-width 1020px) always groups.
   Raise the width below if many more course types are added. */
.menu-item.menu-offer-item {
  display: none;
}

@media (min-width: 1100px) {
  .menu-item.menu-offer-item {
    display: block;
  }

  .menu-item.menu-offer-group {
    display: none;
  }
}

/* Links inside texts written in the admin (REQUIREMENTS.md R-109): the site's terracotta with a
   soft sand underline, instead of the browser's bright blue. Contrast stays above WCAG AA. */
.rich-text-content a,
.rich-text-content a:visited {
  color: var(--color-1);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.rich-text-content a:hover {
  color: var(--color-2);
  text-decoration-color: var(--color-1);
  text-decoration-thickness: 2px;
}

.rich-text-content a:focus-visible {
  outline: 2px solid var(--color-1);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Private groups (REQUIREMENTS.md R-012): shown so the agenda looks as busy as it is, never bookable */
.class-private {
  display: inline-block;
  color: var(--color-2);
  font-weight: 500;
  font-size: 0.9em;
}

.class-private .fa {
  margin-right: 0.3em;
}

/* ==========================================
   TILES (Tegels), REQUIREMENTS.md R-111
   templates/includes/tiles.html and course_tiles.html
   ========================================== */
.tiles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.tile {
    display: flex;
    align-items: stretch;
    /* Narrower than the column, so the left/right lean shows on every page */
    width: 88%;
    max-width: 860px;
    background-color: #F5F0E8;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Staggered: odd tiles lean left, even tiles lean right */
.tile:nth-child(odd)  { align-self: flex-start; }
.tile:nth-child(even) { align-self: flex-end; }

/* Photo on the right: chosen, or automatic on every second tile */
.tile--right,
.tile--auto:nth-child(even) { flex-direction: row-reverse; }

.tile-photo {
    flex: 0 0 40%;
    width: 40%;
    min-height: 260px;
    object-fit: cover;
}

.tile-body {
    flex: 1;
    padding: 2rem 2.25rem;
    min-width: 0;
}

.tile-body h2 {
    margin-top: 0;
    color: var(--color-2);
    font-size: 1.6rem;
}

.tile-body .rich-text-content > :last-child { margin-bottom: 0; }

.tile-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.65rem 1.4rem;
    background-color: var(--color-0);
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.tile-link:hover,
.tile-link:focus {
    background-color: var(--color-1);
    color: white;
}

@media (max-width: 768px) {
    .tiles { gap: 1.75rem; margin: 2rem auto; }

    .tile,
    .tile--right,
    .tile--auto:nth-child(even) {
        flex-direction: column;
        align-self: stretch;
        width: 100%;
    }

    .tile-photo {
        flex-basis: auto;
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .tile-body { padding: 1.5rem; }
}

/* Text for screen readers only: hidden on screen, still read aloud (labels of compact forms) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Headings written in the editor: Heading 1-3 are saved as h2-h4 (R-114) and keep the sizes they
   had as h3-h5 before 2026-11-24. */
.rich-text-content h2 { font-size: 1.75rem; }
.rich-text-content h3 { font-size: 1.5rem; }
.rich-text-content h4 { font-size: 1.25rem; }
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
/* Inside a tile, a heading in the text stays smaller than the tile's own title */
.tile-body .rich-text-content h2 { font-size: 1.3rem; }
.tile-body .rich-text-content h3 { font-size: 1.15rem; }
.tile-body .rich-text-content h4 { font-size: 1.05rem; }
