.module-events .paragraphs .img-responsive { 
object-fit: contain !important; object-position: center left; 
} 
.heading-image { 
padding-bottom: 25%; 
}
.module-news .paragraphs .img-responsive { 
object-fit: contain !important; object-position: center left; 
} 

/* Footer andere kleur, toegevoegd door Folmer van Congressus op 11-12-2024 */
:root {
  --secondary: #fff;
  --main: #0054a6;
}

footer{
    background-color: var(--main);
    color: #fff;
}
footer .headline {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
footer .headline h2, footer .headline h3, footer .headline h4, footer .headline h5, footer .headline h6 {
    border-bottom: 2px solid var(--secondary);
}
.social-icons li a {
	background-color: rgba(255,255,255,.2);
  background-color:var(--secondary);
  color:var(--main);
  border-radius: 5px;
}
dl.headlines.headlines-footer dd .text-muted {
	color: rgba(255,255,255,.5);
}
footer a,
dl.headlines.headlines-footer dd a {
	color: #ddd;
    color: #ffffff;
}
footer a:focus,
footer a:hover,
dl.headlines.headlines-footer dd a:focus,
dl.headlines.headlines-footer dd a:hover {
	color: #fff;
}

/* Make it look more like a title */
.home-1-roulerende.isw-typing {
  font-size: 3rem;          /* bigger = more title-like */
  font-weight: 700;         /* bold */
  line-height: 1.2;
  font-family: inherit;     /* or set a specific title font if you want */
}

/* Rotating words container:
   inline, aligned with baseline so it sits nicely on the line */
.home-1-roulerende .isw-rotate-wrapper {
  display: inline;
  position: relative;
  overflow:visible;
  height: 3em;              /* match current line height */
  vertical-align: bottom; /* align with surrounding text */
}

/* Each rotating word */
.home-1-roulerende .isw-rotate-wrapper span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  animation: isw-word-rotate 12s infinite;
}

/* Timings for each word (4 words = 12s cycle → 3s each) */
.home-1-roulerende .isw-rotate-wrapper span:nth-child(1) { animation-delay: 0s; }
.home-1-roulerende .isw-rotate-wrapper span:nth-child(2) { animation-delay: 3s; }
.home-1-roulerende .isw-rotate-wrapper span:nth-child(3) { animation-delay: 6s; }
.home-1-roulerende .isw-rotate-wrapper span:nth-child(4) { animation-delay: 9s; }

/* Keyframes: fade in/out without sliding up/down
   so the words stay aligned with the sentence */
@keyframes isw-word-rotate {
  0%   { opacity: 0; transform: translateY(100%); }
  8%   { opacity: 1; transform: translateY(0); }
  25%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}


/*Versatile logo spinning*/
/* Targets ONLY the image with your specific filename */
img[src*="https://congressus-svversatile.s3-eu-west-1.amazonaws.com/files/e6ace788da974a6b81a4f88f0e9428d9.png"] {
  opacity: 0;
  transform: translateY(15px) rotate(0deg);
  will-change: opacity, transform;

  /* Animation settings */
  animation-name: fadeSpinIn;
  animation-duration: 2.5s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); ;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;

  /* Scroll trigger (modern browsers) */
  animation-timeline: view();
  animation-range: entry 10% cover 50%;
}

/* The actual animation keyframes */
@keyframes fadeSpinIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(360deg);
  }
}


/*Waarom lid geworden?*/
.why-versatile-v4 {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6faff 0%, #eaf2ff 100%);
  border: 1px solid rgba(48, 75, 163, 0.12);
  box-shadow: 0 14px 35px rgba(48, 75, 163, 0.08);
  overflow: hidden;
}

.why-versatile-v4__question {
  flex: 0 0 270px;
  background: linear-gradient(180deg, #304ba3 0%, #3b62cf 100%);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(48, 75, 163, 0.14);
}

.why-versatile-v4__answers {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 18px;
  min-width: 0;
}

.why-versatile-v4__answer {
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(48, 75, 163, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(48, 75, 163, 0.06);
  min-width: 0;
}

.why-versatile-v4__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.why-versatile-v4__label--answer {
  background: rgba(48, 75, 163, 0.10);
  color: #304ba3;
}

.why-versatile-v4__question h2 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}

.why-versatile-v4__question p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
}

.why-versatile-v4__quote {
  font-size: 2rem;
  line-height: 1;
  color: #304ba3;
  margin-bottom: 8px;
  font-weight: 800;
}

.why-versatile-v4__answer p {
  margin: 0;
  color: #24324d;
  line-height: 1.8;
  font-size: 1.67rem;
  font-family: inherit;
  font-weight: 500;
}


@media (max-width: 900px) {
  .why-versatile-v4 {
    flex-direction: column !important;
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
  }

  .why-versatile-v4__question {
    flex: none;
    padding: 20px;
    border-radius: 16px;
  }

  .why-versatile-v4__answers {
    flex-direction: column;
    gap: 14px;
  }

  .why-versatile-v4__answer {
    padding: 18px;
    border-radius: 16px;
  }

  .why-versatile-v4__question h2 {
  margin: 0 0 12px 0;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


  .why-versatile-v4__answer p {
    font-size: 2rem;
  }
}
