/* CSS Custom Properties (Variables) */
:root {
  --primary-red: #b00000;
  --dark-gray: #333333;
  --dark-gray-2: #444444; /* Added for better contrast */
  --light-gray: #f0f0f0;
  --white: #ffffff;
  --color-popup-bg: #444444;
  --color-popup-border: var(--primary-red);
}


/* Algemene opmaak */
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  padding-top: 70px;
  overflow-x: hidden; /* Prevent horizontal scroll */
  /* Space for fixed header */
}

h1 {
  color: #fff;
  font-size: 2.5rem;
}

h2 {
  color: #fff;
  font-size: 2.5rem;
}

p {
  color: #fff;
  font-size: 1rem
}

a {
  color: var(--primary-red);
  text-decoration: none;
}

/* Main blocks */
.main {
  padding-left: 10rem;
  padding-right: 10rem;
  background-color: var(--dark-gray);
}

.main.no-top-padding {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Main blocks */
.main-less-padding {
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: var(--dark-gray);
}


.blok {
  margin-bottom: 0rem;
  background-color: var(--dark-gray);
  /*f0f0f0 is a light gray background*/
  color: var(--light-gray);
  /* Text color */
  padding: 1rem;
  border-radius: 8px;
}


/* Fullscreen blok: removes margins and padding, makes image edge-to-edge */
.blok-fullscreen {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}
.blok-fullscreen img {
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

/* Remove top padding from .body if first child is .blok-fullscreen */
/* .main > .blok-fullscreen:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
} */


.blok img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  padding: 0 rem;
  border-radius: 8px;
}

.blok-foto {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

.blok-foto-fullscreen {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin-top: 0;
}
/* Photo and text layout */
.blok-with-image .blok-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blok-image {
  flex: 0 0 40%;
  /* Image takes 40% width, doesn't grow or shrink */
}

.blok-foto-left {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blok-text {
  flex: 1;
  /* Text takes remaining space */
}

/* Layout with image on the right */
.blok-with-image-right .blok-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blok-with-image-right .blok-text {
  flex: 1;
  order: 1;
  /* Text comes first */
}

.blok-with-image-right .blok-image {
  flex: 0 0 40%;
  order: 2;
  /* Image comes second (right side) */
}

.blok-foto-right {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


.news-indicator.active {
  background: var(--primary-red);
  box-shadow: 0 0 0 2px #fff, 0 0 4px var(--primary-red);
}

/*kalender table styles */
.kalender-table {
  /* width: 100%; */
  max-width: 600px;
  margin: auto;
  border-collapse: collapse;
  border: 2px solid #000;
  margin-top: 2rem;
}

.kalender-table td,
.kalender-table th {
  padding: 0.5em 1em;
  border: 1px solid #000;
}

.kalender-table th {
  background: var(--primary-red);
  color: var(--white);
}

/* Kalender table alternate row background */
.kalender-table tr.alt-row td {
  background: var(--dark-gray-2) !important;
  color: var(--white);
}

/* image with overlay styles */

.image-overlay-title {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  color: var(--white);
  font-size: 2.2rem;
  z-index: 2;
  text-align: center;
}

.blok-fullscreen-overlay-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;

  min-height: 90vh; /* Ensures it covers the full viewport height */
  /* Height will be determined by content */
  overflow: hidden;
}

.blok-fullscreen-overlay-container img.blok-foto-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 0;
  max-width: 100vw;
  min-height: 100%;
  display: block;
}

.textboxes-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  justify-content: center;
  /* background: rgba(44,44,44,0.5); */
  padding: 2rem;
  border-radius: 1rem;
  max-width: 900px;
  width: 90%;
  z-index: 2;
}

.textbox {
  background: rgba(44, 44, 44, 0.3); /* semi-transparent dark background */
  color: var(--white, #fff);
  padding: 1.5rem;
  border-radius: 12px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
  flex: 1 1 0;
  min-width: 220px;
  max-width: 350px;
}
.textbox h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--white);
  text-align: center;
}
.textbox ul {
  padding-left: 1.2em;
  margin: 0;
}
.blok-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.blok-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-red, #b00000);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.blok-btn:hover,
.blok-btn:focus {
  background: #8b0000;
  color: #fff;
}

.blok-btn-grey {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--dark-gray-2, #444444);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.blok-btn-grey:hover,
.blok-btn:focus {
  background: #545454;
  color: #fff;
}

.blok-btn-white {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--white, #ffffff);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  color :black;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Toon alleen desktop-img op desktop/tablet, mobile-img op mobiel */
.desktop-img {
  display: block !important; /* Show desktop images on desktop/tablet */
}
.mobile-img {
  display: none !important; /* Hide mobile images on desktop/tablet */
}

.hr-fullwidth {
  width: 100%;
  border: none;
  border-top: 2px solid var(--dark-gray-2); /* of een andere kleur */
  margin: 0rem 0;
}

/****************************** 
  Responsive layout for mobile 
*******************************/
@media (max-width: 900px) {
  body {
    padding-top: 60px;
    /* Smaller padding for mobile */
  }
  .main {
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: var(--dark-gray);
  }

  .blok-with-image .blok-content {
    flex-direction: column;
    gap: 1rem;
  }

  .blok-with-image .blok-content,
  .blok-with-image-right .blok-content {
    flex-direction: column;
    gap: 1rem;
  }

  .blok-image,
  .blok-with-image-right .blok-image,
  .blok-with-image-right .blok-text {
    flex: none;
    width: 100%;
    order: initial;
    /* Reset order on mobile */
  }

  .blok-fullscreen-overlay-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh; /* Ensures it covers the full viewport height */
    /* Height will be determined by content */
  }

  .blok-fullscreen-overlay-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 0;
    max-width: 100vw;
    min-height: 100%;
    display: block;
  }

  .image-overlay-title {
    position: relative !important;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: center;
    color: var(--white);
  }

  .textboxes-container {
    position: relative !important;
    top: 0%;
    left: 0%;
    transform: translate(-0%, -0%);
    margin-top: 0;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* background: rgba(44,44,44,0.5); */
    border-radius: 1rem;
    padding: 1rem;
  }
}

/********************************************************/
/* Hide arrows only on very small screens (smartphones) */
/********************************************************/
@media (max-width: 480px) {
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }
  h1 {
    color: #fff;
    font-size: 1.5rem;
  }

  p {
    color: #fff;
    font-size: 0.9em;
  }


  .main {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .main-less-padding {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background-color: var(--dark-gray);
  }
  
  .blok {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }


  .desktop-img {
    display: none !important; /* Hide desktop images on mobile */
  }
  .mobile-img {
    display: block !important; /* Show mobile images on mobile */
  }
}



/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 24px #000;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}
