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;
}

/* Timeline wrapper */
.custom-timeline {
  position: relative;
  max-width: 1000px; /* Iets smaller voor een mooiere verticale look */
  margin: 40px auto;
  padding: 20px 0;
  box-sizing: border-box;
}

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

/* De Tijdlijn Items */
.custom-timeline .tl-item {
  position: relative;
  width: 50%; /* Neemt de helft van de breedte in */
  padding: 10px 40px;
  box-sizing: border-box;
  z-index: 2;
}

/* Items links uitlijnen */
.custom-timeline .tl-item.left {
  left: 0;
  text-align: right;
}

/* Items rechts uitlijnen */
.custom-timeline .tl-item.right {
  left: 50%;
  text-align: left;
}

/* De Witte Cirkels met Zwarte Rand (Perfect op de middellijn) */
.custom-timeline .tl-item::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background-color: white;
  border: 4px solid #000;
  border-radius: 50%;
  top: 25px; /* Uitgelijnd met de bovenkant van het tekstblok */
  z-index: 3;
}

/* Plaatsing van de cirkel voor linker items */
.custom-timeline .tl-item.left::after {
  right: -14px; /* Halverwege de middellijn */
}

/* Plaatsing van de cirkel voor rechter items */
.custom-timeline .tl-item.right::after {
  left: -14px; /* Halverwege de middellijn */
}

/* Het Groene Inhoudsblok */
.custom-timeline .tl-content {
  padding: 20px 30px;
  background-color: #c1debf;
  border-radius: 6px;
  position: relative;
  text-align: left; /* Tekst binnen het blokje blijft altijd links */
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

/* Pijltjes voor de tekstballonnetjes */
.custom-timeline .tl-content::before {
  content: "";
  position: absolute;
  top: 29px;
  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 600px)
   ================================================== */
@media screen and (max-width: 600px) {
  /* Verschuif de groene lijn naar links */
  .custom-timeline::after {
    left: 31px;
  }

  /* Items nemen nu de volle breedte in */
  .custom-timeline .tl-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .custom-timeline .tl-item.left,
  .custom-timeline .tl-item.right {
    left: 0;
    text-align: left;
  }

  /* Zet alle cirkels op de linkerlijn */
  .custom-timeline .tl-item.left::after,
  .custom-timeline .tl-item.right::after {
    left: 17px;
    right: auto;
  }

  /* Zorg dat alle pijltjes naar links wijzen op mobiel */
  .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;
  }
}