﻿.module-events #submenu {
  display: block !important;
}

@media (min-width: 992px) {
    .module-events .heading-image {
        max-width: 100%;
        padding-bottom: 28.125% !important;
    }
}


/* Define a custom CSS property '--num' that can be animated as an integer */
@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

/* Basisstijl voor animatie-elementen */
.number-animation {
  --num: 0;
  counter-reset: num var(--num);
  display: inline-block;
  font-size: 2rem;
  margin: 10px;
  position: relative;
}

/* Toon de teller */
.number-animation::after {
  content: counter(num);
}

/* Pseudo-element voor '+' teken, standaard verborgen */
.number-animation::before {
  content: "+";
  opacity: 0;
  margin-left: 0.2ch; /* kleine ruimte na het getal */
}

/* Animaties per doelwaarde */
.number-animation--20 {
  animation: count-to-20 2s linear forwards;
}
.number-animation--270 {
  animation: count-to-270 3s linear forwards;
}
.number-animation--1200 {
  animation: count-to-1200 4s linear forwards;
}
.number-animation--1400 {
  animation: count-to-1400 5s linear forwards;
}

/* Keyframes voor tellen */
@keyframes count-to-20   { from { --num: 0; } to { --num: 20; } }
@keyframes count-to-270  { from { --num: 0; } to { --num: 270; } }
@keyframes count-to-1200 { from { --num: 0; } to { --num: 1200; } }
@keyframes count-to-1400 { from { --num: 0; } to { --num: 1400; } }

/* Keyframes voor '+' teken, verschijnt na vertraging gelijk aan animatieduur */
.number-animation--20::before {
  animation: show-plus 1s linear 2s forwards; /* vertraging = 2s */
}
.number-animation--270::before {
  animation: show-plus 1s linear 3s forwards; /* vertraging = 3s */
}
.number-animation--1200::before {
  animation: show-plus 1s linear 4s forwards; /* vertraging = 5s */
}
.number-animation--1400::before {
  animation: show-plus 1s linear 5s forwards; /* vertraging = 6s */
}

@keyframes show-plus {
  from { opacity: 0; }
  to   { opacity: 1; }
}

footer{
    background-color: #5b89ba;
    color: #fff;
}
footer .headline {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.social-icons li a {
	background-color: rgba(255,255,255,.2);
}
dl.headlines.headlines-footer dd .text-muted {
	color: rgba(255,255,255,.5);
}
footer a,
dl.headlines.headlines-footer dd a {
	color: #ddd;
    color: rgba(255,255,255,.7);
}
footer a:focus,
footer a:hover,
dl.headlines.headlines-footer dd a:focus,
dl.headlines.headlines-footer dd a:hover {
	color: #fff;
}

footer {
    border-top: var(--congresus-header-border) !important;
    border-bottom: var(--congresus-header-border) !important;
}



.logo {
    /* ... jouw logo styling ... */
}

:root {
  /* Pas hier de headerkleur aan */
  --congresus-header-color: #5b89ba;
  --congresus-header-text-color: #000000;

  /* Gele lijn: pas kleur/dikte hier aan */
  --congresus-header-border: 4px solid #f5d000; /* gele lijn */
}

/* Algemene Congresus-header */
header,
.congresus-header,
#header,
.site-header {
  background-color: var(--congresus-header-color) !important;
  color: var(--congresus-header-text-color) !important;

  /* Gele lijn onder de header */
  border-bottom: var(--congresus-header-border) !important;
}

/* Eventuele tekst/links in de header */
header a,
.congresus-header a,
#header a,
.site-header a {
  color: var(--congresus-header-text-color) !important;
}


/* 1. De getallen en de '+' tekens zwart maken */
.number-animation, 
.number-animation::after, 
.number-animation::before {
    color: #000000 !important;
}

/* 2. De tekst (Commissies, Alumni etc.) zwart maken als deze in de footer staat */
footer, footer a, footer .text-muted {
    color: #000000 !important;
}

/* 3. De getallen gelijkmatig verdelen */
/* We pakken de container waar de getallen in staan. 
   In Congressus is dit vaak een rij (row) of de footer-content. */
.footer .container .row { 
    display: flex !important;
    justify-content: space-around !important;
    flex-wrap: wrap; /* Zorgt dat ze op mobiel onder elkaar gaan staan als het niet past */
    text-align: center;
}

/* Fix voor mobiele weergave (niet meer uitzoomen) */
@media (max-width: 768px) {
    
    /* Zorgt dat de getallen op mobiel netjes onder elkaar staan in plaats van gepropt */
    .number-animation {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }
}


/* =========================================================
   HOMEPAGINA - fixes (Dirk, oktober 2026)
   ========================================================= */

/* ---------- 1. Drie kolommen even hoog (desktop) ---------- */
@media (min-width: 992px) {
  .template-home .paragraphs > .row {
    display: flex;
    flex-wrap: wrap;
  }
  .template-home .paragraphs > .row::before,
  .template-home .paragraphs > .row::after {
    display: none;            /* Bootstrap-clearfix stoort flex */
  }
  .template-home .paragraphs > .row > [class*="col-"] {
    float: none;
    display: flex;
    flex-direction: column;
  }
  /* het gele vak / videoblok vult de hele kolomhoogte */
  .template-home .ps-geel-vak,
  .template-home .ps-video-blok {
    flex: 1;
  }
}

/* ---------- Gele vakken (openingstijden + Instagram) ---------- */
.ps-geel-vak {
  border: 3px solid #f5d000;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.ps-geel-vak h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #334155;
}
/* dagen verdeeld over de hele hoogte van het vak */
.ps-openingstijden ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ps-openingstijden li {
  margin-bottom: 8px;
}
.ps-openingstijden li strong {
  display: block;
}

/* ---------- 4. Instagramvak past binnen zijn kolom ---------- */
.ps-insta {
  overflow: hidden;
  container-type: inline-size;   /* zodat 'cqw' = breedte van het vak */
}
.ps-insta iframe,
.ps-insta .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  /* precies zo hoog als profielkop + 2 rijen posts, geen wit eronder */
  height: calc(66.67cqw + 150px) !important;
}
/* knop onderaan het vak */
.ps-insta-knop {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #5b89ba;
  color: #000 !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none !important;
}
.ps-insta-knop:hover,
.ps-insta-knop:focus {
  background: #f5d000;
}

/* ---------- 3. Promotievideo + blauwe balk ---------- */
.ps-video-blok {
  margin: 20px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #5b89ba;
  display: flex;
  flex-direction: column;
}
.ps-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.ps-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ps-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex: 1;
  gap: 10px;
  padding: 12px 16px;
}
.ps-stat {
  text-align: center;
  color: #000;
}
.ps-stat-label {
  display: block;
  font-weight: bold;
  font-size: 1.7rem;          /* op deze site is 1rem = 10px */
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ps-stats .number-animation {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 4px auto 0;
}
@media (max-width: 600px) {
  .ps-stats { flex-wrap: wrap; }
  .ps-stat { flex: 1 1 40%; }
}

/* ---------- 2. Banner klikbaar ---------- */
#carousel-homepage .item[data-href] {
  cursor: pointer;
}

/* ---------- Extra: sponsorbalk niet meer over het blauwe deel ---------- */
@media (max-width: 767px) {
  .sponsors-fixed-bottom .sponsors ul {
    display: flex !important;
    align-items: center;
  }
  .sponsors-fixed-bottom .sponsors li {
    width: 33.333%;
    float: none;
  }
  .sponsors-fixed-bottom .sponsors img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
  }
}


/* =========================================================
   LOOK & FEEL - extra verbeteringen (Dirk, oktober 2026)
   ========================================================= */

/* ---------- Menu op één regel + compacte header bij scrollen ---------- */
@media (min-width: 992px) {
  #menu > li > a {
    font-size: 15px;
    padding: 12px 26px 12px 10px;
  }
  #menu > li > a.sf-with-ul::after {
    right: 10px;
  }
  /* bij scrollen schuiven logo + inlogregel weg, alleen de menubalk blijft staan */
  header {
    top: -106px !important;
  }
}
/* kleinere laptops: iets compacter, zodat het nog steeds op één regel past */
@media (min-width: 992px) and (max-width: 1299px) {
  #menu > li > a {
    font-size: 13.5px;
    padding: 10px 18px 10px 6px;
  }
  #menu > li > a.sf-with-ul::after {
    right: 4px;
  }
}

/* ---------- Sponsors: gewone balk boven de footer, grijs -> kleur bij hover ---------- */
.sponsors-fixed-bottom {
  position: static !important;
  border-top: 1px solid #e5e7eb;
}
body.has-fixed-bottom {
  padding-bottom: 0 !important;
}
.sponsors-fixed-bottom .sponsors img {
  filter: grayscale(1);
  opacity: .65;
  transition: filter .3s, opacity .3s;
}
.sponsors-fixed-bottom .sponsors a:hover img,
.sponsors-fixed-bottom .sponsors a:focus img {
  filter: none;
  opacity: 1;
}

/* ---------- "Word lid!"-knop ---------- */
.ps-knop-wrap {
  text-align: center;
  padding: 20px 0;
}
.ps-knop {
  display: inline-block;
  background: #5b89ba;
  color: #000 !important;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 48px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ps-knop:hover,
.ps-knop:focus {
  background: #f5d000;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* ---------- Agenda als kaartjes ---------- */
.paragraph-events-view dl.headlines {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 12px;
  margin-bottom: 16px;
  transition: transform .2s, box-shadow .2s;
}
.paragraph-events-view dl.headlines:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.paragraph-events-view dt.date a {
  border-radius: 8px;
}

/* ---------- Banner: donker verloop zodat de tekst leesbaar is ---------- */
#carousel-homepage .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
#carousel-homepage .carousel-container {
  z-index: 2;
}
/* pijlen smaller, zodat ze niet meer over de tekst "Word lid" liggen */
#carousel-homepage .carousel-control {
  width: 60px;
  z-index: 3;
}
/* maar één slide? dan geen pijlen en bolletjes */
#carousel-homepage:not(:has(.item + .item)) .carousel-control,
#carousel-homepage:not(:has(.item + .item)) .carousel-indicators {
  display: none;
}

/* ---------- Menu verdeeld over de hele balk (ook onder het logo) ---------- */
@media (min-width: 992px) {
  .header-menu {
    justify-content: flex-start !important;
  }
  #menu {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    float: none !important;
  }
  #menu::before,
  #menu::after {
    display: none;
  }
}

/* ---------- Cijfers pas laten tellen als ze in beeld komen ---------- */
/* werkt samen met het script in het HTML-blok; zonder script tellen ze gewoon direct */
.ps-js .ps-stats:not(.ps-in-beeld) .number-animation,
.ps-js .ps-stats:not(.ps-in-beeld) .number-animation::before {
  animation-play-state: paused;
}

/* pijlen smaller, zodat ze niet meer over de tekst "Word lid" liggen */
#carousel-homepage .carousel-control {
  width: 60px;
  z-index: 3;
}
/* maar één slide? dan geen pijlen en bolletjes */
#carousel-homepage:not(:has(.item + .item)) .carousel-control,
#carousel-homepage:not(:has(.item + .item)) .carousel-indicators {
  display: none;
}

/* ---------- Menu verdeeld over de hele balk (ook onder het logo) ---------- */
@media (min-width: 992px) {
  .header-menu {
    justify-content: flex-start !important;
  }
  #menu {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    float: none !important;
  }
  #menu::before,
  #menu::after {
    display: none;
  }
}
