/*@import url ('https://fonts.googleapis.com:css2?family=Bad+Script&family=Urbanist:wght@0,100..900;1,100..900&display=swap');*/

/* bad-script-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bad Script';
  font-style: normal;
  font-weight: 400;
  src: url('/media/templates/site/cassiopeia/fonts/bad-script-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* urbanist-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  src: url('/media/templates/site/cassiopeia/fonts/urbanist-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* urbanist-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Urbanist';
  font-style: italic;
  font-weight: 400;
  src: url('/media/templates/site/cassiopeia/fonts/urbanist-v18-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* urbanist-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  src: url('/media/templates/site/cassiopeia/fonts/urbanist-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* 1-Algemene bodytekst: Urbanist */
body {
  font-family: 'Urbanist', 'Century gothic', sans-serif;
  font-size: 17px;
  color: #000000;
  background-color: #FAF9F6; /* lichte achtergrond */
}

/* 2-Koppen: Bad Script */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bad Script', 'comic sans ms', 'Apple Chancery', cursive;
  font-weight: 700;
  color: #003366; /* donkerblauw accent */
  margin-bottom: 0.5em;
}

/* ============================================================
   3.A HOOFDMENU (MAIN MENU) - OPGESCHOOND
   Joomla 5.4.1 - Cassiopeia
   ============================================================ */

/* Container: zorg voor nette flex-opbouw zonder overflow */
.container-nav .mod-menu {
  display: flex;                 /* horizontaal menu */
  flex-wrap: wrap;
  column-gap: 20px; /* horizontale ruimte */
  row-gap: 6px;     /* verticale ruimte */
  align-items: center;
  justify-content: flex-start;
  gap: 20px;                     /* ruimte tussen menu-items */
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: visible;           /* geen harde cut, wel controle */
}

/* Individuele items: geen extra marge meer (gap doet het werk) */
.container-nav .mod-menu > li {
  position: relative;            /* nodig voor submenu-positionering */
}

/* Basisstijl hoofdmenu-links */
.container-nav .mod-menu > li > a {
  font-family: "Urbanist", 'Century gothic', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FAF9F6;                /* wit op donkerblauw */
  padding: 10px 18px;
  display: block;
  text-decoration: none;
  border-bottom: 2px solid transparent;   /* reserve voor hover-underline */
  transition: color 0.3s ease, 
              border-bottom-color 0.3s ease,
              background-color 0.3s ease;
  line-height: 1.1;
}

/* Hover: subtiel, zonder layoutverschuiving */
.container-nav .mod-menu > li > a:hover {
  color: #FAF9F6;                /* nog steeds wit */
  background-color: transparent;
}

/* Actief/geselecteerd item in hoofdmenu */
.container-nav .mod-menu > li.current > a,
.container-nav .mod-menu > li.active > a,
.container-nav .mod-menu > li.parent.current > a {
  background-color: #FAF9F6;     /* licht vlakje */
  color: #003366;                /* jouw donkerblauw */
  border-radius: 6px;
  border-bottom-color: transparent; /* geen underline op active */
}

/* Optioneel: submenu-basics (voor zekerheid, zonder widths) */
.container-nav .mod-menu > li > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .container-nav .mod-menu {
    flex-direction: column;
    gap: 10px;
  }

  .container-nav .mod-menu > li > a {
    padding: 6px 12px;
  }
}

/* MENU WRAP FIX – minimale verticale ruimte */
.container-nav .mod-menu {
  flex-wrap: wrap;
  column-gap: 20px;   /* horizontale ruimte */
  row-gap: 0px;       /* verticale ruimte volledig weg */
}

/* Links compacter maken */
.container-nav .mod-menu > li > a {
  padding: 4px 12px;  /* veel minder verticale padding */
  line-height: 1;     /* geen extra hoogte */
}

/* ============================================================
   3.B SUBMENU
   ============================================================ */

/* Submenu-container */
.mod-menu .mm-collapse {
  display: none !important;
  position: absolute;
  top: 100% !important;           /* onder parent */
  left: 0 !important;             /* mooi uitgelijnd */
  background-color: #003366;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  z-index: 9999;
  min-width: 240px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Toon submenu bij hover */
.mod-menu li:hover > .mm-collapse {
  display: block !important;
}

/* Submenu links */
.mod-menu .mm-collapse li > a {
  background-color: #FAF9F6;
  color: #003366;
  padding: 6px 12px;
  margin: 0;
  display: block;
  white-space: nowrap;
  font-family: "Urbanist", 'Century gothic', sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover submenu */
.mod-menu .mm-collapse li > a:hover {
  background-color: #003366;
  color: #FAF9F6;
}

/* ============================================================
   3.C METISMENU OVERRIDES (hover i.p.v. klik)
   ============================================================ */

/* Verberg toggler-knoppen (pijltjes) */
.mm-toggler,
.mm-toggler-link,
.metismenu-item > button {
  display: none !important;
}

/* ============================================================
   3.E SPECIALE ITEMS (Bad Script)
   ============================================================ */

.mod-menu li.special > a {
  font-family: "Bad Script", 'comic sans ms', 'Apple Chancery', cursive;
  font-size: 1.1rem;
}

/* ===== 4-TOPMENU-STYLING ===== */
/* Topmenu: modern en elegant */
ul.topmenu li a {
  font-family: 'Urbanist', 'Raleway', 'Century gothic', sans-serif; /* modern font */
  font-size: 1em;
  font-weight: 500;                       /* iets minder zwaar dan hoofdmenu */
  font-style: italic;
  color: #CC9900;                         /* accentkleur */
  padding: 6px 14px;
  text-transform: uppercase;              /* strakke look */
  letter-spacing: 0.05em;                 /* luchtiger */
  transition: color 0.3s, background-color 0.3s;
  text-decoration: none;
}

/* Rechts uitlijnen */
ul.topmenu {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.topmenu li {
  margin-left: 18px;
}

/* Hover-effect */
ul.topmenu li a:hover {
  color: #004080;                         /* sluit aan bij je overige menu’s */
  background-color: transparent;          /* geen blok, subtiel */
  border-bottom: 2px solid #004080;       /* elegante underline bij hover */
}

.container-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
}

/* ====5-HERO-sectie==== */
.hero {
  position: relative;       /* maakt de container een referentie */
  text-align: center;
  display: block;           /* neemt volledige breedte in */
  width: 100%;              /* expliciet 100% breed */
  height: 60vh; /* standaard hoogte */
  overflow: hidden;
  transition: height 0.4s ease-in-out; /* vloeiende overgang */
  margin: 0;                /* geen extra marge */
  padding: 0;               /* geen extra padding */
  background-color: #003366;
}

.hero.shrink {
  height: 30vh; /* verkleinde hoogte bij scroll */
}

.hero-image {
  width: 100%;              /* foto vult de container */
  height: auto;
  display: block;
  filter: brightness(90%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero h1 {
  margin-top: 30px; /* extra ruimte boven de koptekst */
  font-size: 3em; /* groot en elegant */
  margin-bottom: 10px;
  color: #ffffff; /* wit, consistent met titel */
  transition: font-size 0.3s ease;
}

.hero.shrink h1 {
  font-size: 2em; /* titel verkleint mee */
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffffff; /* wit, consistent met titel */
  transition: font-size 0.3s ease;
}

.hero.shrink p {
  font-size: 1em; /* subtitel verkleint mee */
}

.hero-button { 
  position: absolute;       /* knop positioneren binnen de hero */
  bottom: 20px;             /* afstand vanaf onderkant */
  right: 20px;              /* afstand vanaf rechterkant */
  background-color: #CC9900;
  color: #003366;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-family: 'Urbanist', 'Century gothic', Arial, sans-serif;
}

.hero-button:hover {
  background-color: #5C6BC0;
  color: #FAF9F6;
}

/* 📱 Responsieve variant voor kleine schermen */
@media (max-width: 768px) {
  .hero-button {
    bottom: 10px;       /* dichter bij de rand */
    right: 10px;
    padding: 16px 28px; /* iets grotere knop voor touchscreens */
    font-size: 1.1rem;  /* tekst beter leesbaar */
  }
}

/* 6-Modules */
.module {
  background-color: #E0E0E0;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.module h3 {
  font-family: 'Bad Script', 'comic sans ms', 'Apple Chancery', cursive;
  color: #003366;
}

/* 7-Fotogalerij */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
}

/* 8-Footer */
#footer {
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  font-family: 'Assistant', Arial, sans-serif;
}

/* === 9-AFBEELDINGEN === */
/* Marge rond afbeeldingen */
.img-margin-small { margin: 0 8px 8px 0 !important; }
.img-margin { margin: 0 15px 15px 0 !important; }
.img-margin-large { margin: 0 25px 25px 0 !important; }

.blog .items-row,
.newsfeed .newsfeed-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.newsfeed .newsfeed-item,
.blog .items-row {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.blog img,
.newsfeed img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Overlay voor achtergrond-afbeeldingen */
.image-background {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 24px;        /* ruimte onder het blok */
}

.image-background img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.image-background .overlay {
  position: absolute;
  inset: 0;                   /* top:0; right:0; bottom:0; left:0 */
  background-color: rgba(0,0,0,0.5);
  border-radius: 8px;
}

/* 📱 Mobiel: tekst in normale flow, eigen overlay-achtergrond */
@media (max-width: 768px) {
  .image-background .content {
    position: static;               /* niet absoluut */
    transform: none;
    margin: 12px auto 0;            /* onder de bovenrand van de foto */
    padding: 12px 16px;
    background-color: rgba(0,0,0,0.5); /* overlay enkel achter de tekst */
    border-radius: 6px;
    max-width: 92%;
    text-align: left;               /* optioneel: leesbaarder */
  }

  .image-background .overlay {
    background-color: rgba(0,0,0,0.35); /* iets lichter, tekst heeft eigen overlay */
  }

  .image-background h2 {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    margin: 0 0 6px;
  }
  .image-background p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.4;
    margin: 0;
  }
}

/* === 10-SPONSOR SLIDER + grid === */

/* Container & Basis */
.sponsor-slider { 
  position: relative; 
  overflow: hidden; 
  width: 100%; 
  padding: 20px 40px; 
}

.sponsor-slider .slide { display: none; }
.sponsor-slider .slide.active { display: block; }

/* Algemene rij & Hover effect */
.sponsor-row {
  display: flex;
  justify-content: center;   /* horizontaal centreren */
  align-items: center;       /* verticaal centreren */
  gap: 40px;                 /* standaard ruimte */
  flex-wrap: wrap;
}

.sponsor-slider img {
  max-height: 180px;         /* Beperkt hoogte voor slider-gebruik */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease; /* Vloeiende hover */
  display: block;
  margin: 0 !important;
}

.sponsor-slider img:hover {
  transform: scale(1.1);     /* Je originele hover effect */
}

/* Specifieke Grid modus (2x3) */
.sponsor-row.grid-mode {
  display: grid !important;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  align-content: center;
  max-width: 1200px;
  gap: 10px 40px;            /* Compacte verticale gap */
  margin: 0 auto;
  padding: 0 20px;
}

/* Zorg dat de logo's niet gigantisch worden */
.sponsor-row.grid-mode img {
  width: 100%;
  max-width: 300px;    /* De maximale breedte per logo */
  height: auto;
  object-fit: contain;
}

/* Navigatie pijltjes */
.sponsor-slider .nav {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  background: transparent; 
  color: #333; 
  border: 0; 
  font-size: 24px;
  cursor: pointer; 
  z-index: 10;
  transition: color 0.3s;
}
.sponsor-slider .nav.prev { left: 5px; }
.sponsor-slider .nav.next { right: 5px; }
.sponsor-slider .nav:hover { color: #000; }

/* === RESPONSIVE LAYOUT === */

/* Tablets & Grote telefoons */
@media (max-width: 768px) {
  .grid-mode {
    grid-template-columns: repeat(2, max-content) !important;
    gap: 15px 25px;
  }
  .sponsor-slider img { 
    max-height: 90px; /* Iets compacter op mobiel */
  }
  .sponsor-slider { padding: 10px 30px; }
}

/* Kleine telefoons */
@media (max-width: 480px) {
  .grid-mode, .sponsor-row {
    display: grid !important;
    grid-template-columns: repeat(1, max-content) !important;
    gap: 20px;
  }
  .sponsor-slider .nav { font-size: 18px; } /* Pijltjes iets kleiner */
}


/* Sponsor grid styling */
.sponsor-grid {
  max-height: 180px;       /* alle logo's dezelfde hoogte */
  object-fit: contain;     /* logo's netjes binnen hun vak */
  margin: 0 auto;          /* centreren */
  display: block;
  transition: transform 0.3s ease; /* Zorgt voor een vloeiende animatie */
}

.sponsor-grid:hover {
  transform: scale(1.1);     /* Je originele hover effect */
  cursor: pointer; /* Geeft een handje aan, wat duidelijker is voor de gebruiker */
}

/* optioneel: wat extra ruimte rond de logo's */
.col-6.col-md-3.mb-3 {
  padding: 10px;
}

/* === 11-JEvents - kalenderweergave === */
/* Maandtitel (bv. November 2025) */
.monthname {
  margin-top: 30px !important;        /* vrije marge boven de titel */
  font-family: 'Bad Script', 'comic sans ms', 'Apple Chancery', cursive; /* jouw standaard titel-font */
  font-size: 26px !important;         /* groter en duidelijker */
  text-align: center;
  text-transform: capitalize;         /* eerste letter groot, rest klein */
}

/* Navigatieknoppen (vorige/volgende maand) */
.monthnavigation {
  margin-top: 30px !important;        /* vrije marge boven de titel */
  font-family: 'Bad Script', 'comic sans ms', 'Apple Chancery', cursive;
  font-size: 18px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Dagcellen in de kalender */
.jem-calendar .daysRow td {
  border: 1px solid #ccc;       /* grijze boord */
  border-left: 1px solid #ccc;  /* doorlopende linkse lijn */
  border-right: 1px solid #ccc; /* doorlopende rechtse lijn */
  vertical-align: top;          /* nummer blijft bovenaan links */
  padding: 6px;                 /* wat ruimte in de cel */
}

/* Dagnummer links bovenaan */
.daynum {
  display: block;               /* blok-element zodat hij links blijft */
  text-align: left;             /* expliciet links uitlijnen */
  margin-bottom: 4px;           /* ruimte onder het nummer */
  font-size: 18px !important;   /* groter nummer */
  font-weight: bold;
}

/* Evenementtekst groter en leesbaarder */
.eventcontentinner {
  font-size: 16px !important;
  line-height: 1.4 !important;
  white-space: normal !important; /* laat afbreken i.p.v. ellips */
  font-weight: normal !important;       /* niet vet */
  text-decoration: none !important;     /* geen onderstreping */ 
  padding: 2px 4px;                     /* subtiele ruimte rond tekst */
  border-radius: 3px;                   /* optioneel afgeronde hoeken */
}

/* De cel van vandaag met arcering afgestemd op #CC9900 */
td.monthday.today {
  background: repeating-linear-gradient(
    45deg,
    #FFF9E6,       /* Zeer lichtgeel/beige */
    #FFF9E6 10px,  /* Breedte streep 1 */
    #F2E5B3 10px,  /* Iets donkerder goud-beige */
    #F2E5B3 20px   /* Breedte streep 2 */
  ) !important;
  
  border: 2px solid #CC9900 !important; /* De kleur van jouw button */
  padding: 0 !important;
}

/* De balk met het dagnummer in de volle kleur #CC9900 */
td.monthday.today .daynum {
  background-color: #CC9900 !important;
  color: #FFFFFF !important; /* Witte tekst voor goed contrast op goud */
  margin: 0 !important;
  padding: 4px 8px !important;
  display: block;
  font-weight: bold;
}

/* De event-tekst in het vak eronder */
td.monthday.today .eventcontentinner {
  padding: 5px !important;
}

/* === 12-In de kijker === */
.highlight-card {
  border: 1px solid #003366;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  margin: 10px;
  text-align: center;
  flex: 1;
}

.highlight-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.highlight-card i {
  color: #003366;
  margin-right: 6px;
}

.highlight-card p {
  margin: 8px 0;
  color: #003366;
}

/* 13-ICONEN FONT AWESOME */
/* Zorgt voor standaard marge en nette uitlijning */
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab {
  margin-right: 6px;       /* witruimte rechts van elk icoon */
  vertical-align: middle;  /* icoon mooi uitgelijnd met tekst */
}

/* 14-SIDE BAR RIGHT */
/* 1) Sidebar Layout & Artikelscheiding */
.container-sidebar-right {
  overflow-x: hidden !important;
}

.container-sidebar-right .mod-articlesnews .mod-articlesnews__item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  clear: both;
  display: flow-root; /* Zorgt dat de border altijd onder de afbeelding komt */
}

.container-sidebar-right .mod-articlesnews .mod-articlesnews__item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* 2) Afbeelding Instellingen */
/* We pakken alle mogelijke varianten in één keer aan */
.container-sidebar-right img,
.sidebar-right.card img,
.sidebar-right.card .item-image img,
.sidebar-right.card .article-introtext img {
  width: 180px !important;    /* Jouw gewenste breedte */
  max-width: 100% !important; /* Voorkomt uitsteken op mobiel */
  height: auto !important;
  display: inline-block;      /* Veranderd van block naar inline-block zodat tekst ernaast kan */
  float: left;                /* Laat tekst rechts van de afbeelding staan */
  margin: 0 15px 10px 0;      /* Ruimte rechts en onder de afbeelding */
  object-fit: contain;
}

/* 3) Opschoning styling */
.sidebar-right.card { 
  outline: none !important; 
}

/* 4) Mobiele weergave: afbeelding over de volle breedte op kleine schermen */
@media screen and (max-width: 767px) {
  .container-sidebar-right img,
  .sidebar-right.card img {
    width: 100% !important;   /* Vult de hele breedte van de sidebar */
    max-width: 100% !important;
    float: none !important;    /* Tekst verspringt naar onder de afbeelding */
    margin: 0 0 15px 0 !important; /* Ruimte onder de afbeelding */
    display: block !important;
  }
}

/* ====== 15-GALLERY TILE GRID ====== */
.gallery-tiles {
  max-width: 100%;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 350px));
  gap: 24px;
  justify-content: center;
  padding: 20px 0;
}

/* ====== TILE ====== */
.gallery-tiles .tile {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tiles .tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ====== IMAGE ====== */
.gallery-tiles .tile-image {
  width: 100%;
  height: 220px; /* minder croppen */
  overflow: hidden;
}

.gallery-tiles .tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* toont meer van de foto */
  display: block;
}

/* ====== TITLE ====== */
.gallery-tiles .tile-title {
  font-family: 'Bad Script', 'comic sans ms', 'Apple Chancery', cursive;
  font-size: 1.4em;
  font-weight: 700;
  color: #003366;
  text-align: center;
  padding: 12px 10px;
  background-color: #FAF9F6;
}

/* ====== 16-Abonneren op kalender ====== */
/* Container */
.ics-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 20px auto;
}

/* Knoppen */
.ics-btn {
  display: inline-block;
  background-color: #003366;        /* donkerblauw */
  color: #FAF9F6;                   /* wit */
  padding: 12px 18px;
  border-radius: 8px;
  font-family: "Assistant", sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Icoon */
.ics-btn i {
  margin-right: 10px;
  color: #FAF9F6;
  transition: color 0.3s;
}

/* Hover: zelfde kleur tekst houden, eigen underlinekleur */ 
.ics-btn:hover { 
  color: #ffffff; /* tekst blijft wit */ 
  text-decoration: underline; 
  text-decoration-color: #004080; /* blauw, passend bij topmenu */ 
  text-decoration-thickness: 2px; }

/* Optioneel: icoon meekleuren zoals in je menu */
.ics-btn:hover i {
    color: #004080;
}

/* Responsive */
@media (max-width: 600px) {
  .ics-buttons {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* ====== 17-GALERIJ SIGPLUS ====== */
/* Raster toepassen op de UL binnen sigplus-gallery */
.sigplus-gallery > ul {
    list-style: none;
    margin: 0;
    padding: 0;

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

/* LI's netjes laten meeschalen */
.sigplus-gallery > ul > li {
    margin: 0;
    padding: 0;
}

/* Thumbnails netjes laten schalen */
.sigplus-gallery img.sigplus-preview {
    width: 100%;
    height: auto;
    display: block;
}

/* Raster op UL blijft zoals eerder */
.sigplus-gallery > ul {
    list-style: none;
    margin: 0;
    padding: 0;

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

/* LI's netjes laten meeschalen */
.sigplus-gallery > ul > li {
    margin: 0;
    padding: 0;
}

/* Thumbnails: vaste hoogte, proportioneel geschaald */
.sigplus-gallery img.sigplus-preview {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.sigplus-gallery img.sigplus-preview {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sigplus-gallery img.sigplus-preview {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sigplus-gallery img.sigplus-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* ====== OVERLAY-BLOK (GEOPTIMALISEERD) ====== */

/* Container voor afbeelding + overlay + tekst */
.image-background {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Afbeelding */
.image-background img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Overlay */
.image-background .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.0),
        rgba(0, 0, 0, 0.45)
    );
    pointer-events: none; /* klikbare links blijven werken */
    transition: opacity 0.4s ease;
    z-index: 1; /* onder de tekst, boven de foto */
}

/* Hover-effect (optioneel) */
.image-background:hover .overlay {
    opacity: 0.6;
}

/* Tekstblok — LET OP: nu volledig gescope'd */
.image-background .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #FAF9F6;
    font-family: "Urbanist", 'Century gothic', sans-serif;
    z-index: 2; /* boven overlay */
}

/* Tekst in het blok */
.image-background .content p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.5;
}

/* Links in de overlay-tekst */
.image-background .content a {
    color: #FAF9F6;
    text-decoration: underline;
    text-decoration-color: #66A3FF;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.image-background .content a:hover {
    color: #66A3FF;
}

/* 📱 Mobiel: tekst onder de foto, overlay lichter */
@media (max-width: 768px) {
    .image-background .content {
        position: static;
        background-color: rgba(0,0,0,0.5);
        border-radius: 6px;
        margin-top: 12px;
        padding: 12px 16px;
        z-index: 2;
    }

    .image-background .overlay {
        background-color: rgba(0,0,0,0.35);
    }
}

/* LOGO CECILLEKES */
.cecillekes-logo {
    display: block;
    margin: 10px auto;
    width: 220px;        /* kies zelf de gewenste grootte */
    max-width: 100%;     /* blijft responsive in smallere sidebars */
    height: auto;
}

@media (max-width: 768px) {
    .cecillekes-logo {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .cecillekes-logo {
        width: 140px;
    }
}

/* GEARCHIVEERDE ARTIKELS */
/* Container spacing */
#archive-items {
    display: block;
}

/* Elke archive item als blok */
/*#archive-items > div {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    clear: both;
}*/

#archive-items > div {
    background: #fafafa;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    border-radius: 6px;
    transition: 0.2s;
}

#archive-items > div:hover {
    background: #f2f2f2;
}

/* Titel styling */
#archive-items .page-header h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Intro tekst netjes */
#archive-items .intro {
    display: block;
    overflow: hidden; /* voorkomt float issues */
}

/* Afbeeldingen netjes links met marge */
#archive-items .intro img {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 250px;
    height: auto;
}

/* Fix voor Joomla float classes */
#archive-items .float-start {
    float: left;
    margin-right: 15px;
}

/* Zorg dat tekst onder elkaar blijft */
#archive-items p {
    margin-bottom: 10px;
}