header {
 	background-image: url("https://images.cngrsss.nl/isaacnewton/template/2d05465e74004d41b7c74ae4215320b0-lg.png")   
}

.template-home header {
    min-height: 400px;
}

.carousel-caption {
 	padding-bottom: 0;   
}

#logo a {
 	align-items: center;
    display: flex;
}

section#content .content-footer {
    display: none; 
}

.embed-responsive img {
	object-fit: cover;
    width: 100%;
    object-position: center;
}

@media (min-width: 992px) {
    section#content .content-main {
        margin-top: 15px;
        margin-bottom: 30px;   
    }

    section#content .content-sponsors-footer {
        margin: 30px 0 0;   
    }


    .template-home .content-row {
        display: flex;
        flex-wrap: wrap;
    }

    .template-home section#content .content-main .content-aside + .content-sections,
    .template-home section#content .content-main .content-aside {
        float: none;
        left: unset;
        right: unset;
    }

    .template-home section#content .content-main .content-aside + .content-sections {
        order: 1;
        width: 66%;
    }

    .template-home section#content .content-main .content-aside {
        width: 34%;
        order: 2;
    }

    .template-home .content-row .content-sponsors-footer {
        order: 4;
        width: 100%;
    }

    .template-home .content-row .homepage-headlines {
        order: 3;   
    }
}

@media (min-width: 768px) {
    header .header-container {
        display: grid;
        grid-template: "a a" 40px;
    }

    #top {
        width: 100%;   
    }

    #logo {
        width: auto;   
    }

    .navbar-collapse.collapse {
        width: auto;
        justify-self: right;
        margin: 0 -15px;
    }
    
 	.navigation-main > li {
        float: none;
    }
    
    .navigation-main {
     	display: flex;
        margin: 0 -15px;
        padding-left: 45px;
        flex-wrap: wrap;
        justify-content: right;
    }
    
    .navigation-main > li:last-child > a {
     	padding-right: 15px;   
    }
        
}

.template-home section#content .content-main .homepage-headlines {
    padding-left: 15px;
    padding-right: 15px;
}

.social-icons > li {
 	padding-left: 15px;   
}

.social-icons {
 	margin-left: -21px;   
}

.social-icons li a {
    padding: 0;
    border-radius: 5px;
    text-align: center;
}

.carousel .carousel-indicators {
	display: none;
}

header #header-content .carousel .carousel-inner .item .carousel-caption-container .carousel-caption p {
    margin-bottom: 0;
}

header #header-content .carousel .carousel-inner .item .carousel-caption-container .carousel-caption h2:after {
 	bottom: -6px;   
}

.template-home section#content .content-main .content-aside .homepage-event-headlines ul li:nth-child(n+7):not(:last-child) {
 	display: none;   
}

.navbar-collapse {
    width: 100%;
    padding-bottom: 15px;
}

.template-home section#content .content-main .content-aside .homepage-event-headlines ul li a::after {
 	right: 25px;
    transition: all 200ms ease-in-out;
}

.template-home section#content .content-main .content-aside .homepage-event-headlines ul li a:hover::after {
 	right: 15px;   
}

ul.homepage-headlines-4 {
    display: flex;
	flex-wrap: wrap;
}

.template-home section#content .homepage-headlines > ul > li {
 	float: unset;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

.template-home section#content .homepage-headlines > ul > li .heading-content {
 	height: 100%;
    padding-bottom: 40px;
}

.template-home section#content .homepage-headlines > ul > li > .heading-content > a {
	position: absolute;
    bottom: 12px;
}

/* ==================================================
   VEILIGE VERTICALE TIJDLIJN MET AFBEELDINGEN
   ================================================== */

.custom-timeline {
  position: relative;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px 0;
  box-sizing: border-box;
}

/* De Verticale Groene Lijn */
.custom-timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: green;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Het Tijdlijn Item (Beslaat nu de volle breedte voor de flex-indeling) */
.custom-timeline .tl-item {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Lijnt tekst en plaatje verticaal mooi uit */
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* LAY-OUT LOGICA: Draait tekst/afbeelding om op basis van de klasse */
.custom-timeline .tl-item.left {
  flex-direction: row; /* Tekst links, Plaatje rechts */
}

.custom-timeline .tl-item.right {
  flex-direction: row-reverse; /* Tekst rechts, Plaatje links */
}

/* Zowel de tekstbox als de plaatjesbox krijgen exact evenveel ruimte */
.custom-timeline .tl-content, 
.custom-timeline .tl-image-box {
  width: calc(50% - 45px); /* Laat een perfecte opening in het midden over voor de lijn */
  box-sizing: border-box;
}

/* De Witte Cirkels (Zitten nu op het hoofd-item, exact in het midden) */
.custom-timeline .tl-item::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background-color: white;
  border: 4px solid #000;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Altijd perfect gecentreerd, hoe hoog het blok ook is */
  z-index: 3;
}

/* Het Groene Inhoudsblok */
.custom-timeline .tl-content {
  padding: 20px 30px;
  background-color: #c1debf;
  border-radius: 6px;
  position: relative;
  text-align: left;
}

/* Styling voor de Afbeeldingenbox */
.custom-timeline .tl-image-box img {
  width: 100%;
  height: auto;
  max-height: 250px; /* Voorkomt dat plaatjes te gigantisch worden */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Geeft het plaatje een mooie zachte diepte */
  display: block;
}

/* Pijltjes voor de tekstballonnetjes */
.custom-timeline .tl-content::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
}

/* Pijltje wijst naar RECHTS voor linker items */
.custom-timeline .tl-item.left .tl-content::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #c1debf;
}

/* Pijltje wijst naar LINKS voor rechter items */
.custom-timeline .tl-item.right .tl-content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent #c1debf transparent transparent;
}

/* ==================================================
   RESPONSIVE: Mobiele weergave (Schermen tot 768px)
   ================================================== */
@media screen and (max-width: 768px) {
  .custom-timeline::after {
    left: 31px;
  }

  .custom-timeline .tl-item,
  .custom-timeline .tl-item.left,
  .custom-timeline .tl-item.right {
    flex-direction: column; /* Stapelt alles onder elkaar op mobiel */
    align-items: flex-start;
    padding-left: 70px;
    padding-right: 25px;
  }

  .custom-timeline .tl-content, 
  .custom-timeline .tl-image-box {
    width: 100%; /* Volledige breedte op mobiel */
  }

  .custom-timeline .tl-image-box {
    margin-top: 15px; /* Ruimte tussen tekst en plaatje op mobiel */
  }

  /* Zet de stip op de linkerlijn */
  .custom-timeline .tl-item::after {
    left: 31px;
    top: 35px;
    transform: translateX(-50%);
  }

  /* Zorg dat alle pijltjes op mobiel netjes naar links wijzen */
  .custom-timeline .tl-content::before {
    top: 35px;
  }
  
  .custom-timeline .tl-item.left .tl-content::before,
  .custom-timeline .tl-item.right .tl-content::before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent #c1debf transparent transparent;
  }
}