/* INTROFILMPJE -------------------------------------------- */

.custom-container {
    max-width: 1100px;
    /* margin: 0 auto; *//* Center the container */
}

/* Column for the image */
.custom-col {
    max-width: 400px; /* Maximum width for the image column */
    flex: 0 0 auto; /* Ensure it doesn't stretch */
}

.custom-col a{
    width: 100%;
}

.custom-col img {
    width: 100%;  /* Ensures the image scales to the container width */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Removes any spacing below the image */
}

/* Column for the text section (fills the remaining space) */
.custom-col-fill {
    flex-grow: 1; /* Fill remaining space */
}

.custom-col-fill h2{
    padding-top: 2rem;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .custom-col {
        margin: 0 auto;
    }
}


/* TIMELINE ------------------------------------------------ */
.timeline-container {
    max-width: 320px;
    margin: 60px 0 0 auto;
    position: relative;
    padding: 0;
}

.timeline-year {
    text-align: right;
}

.timeline-year .badge-timeline{
    background-color: rgba(var(--mja-blue-rgb), 0.5);
}

.timeline {
    margin-top: 15px;
    padding-right: 45px;
    position: relative;
}

.timeline::before{ /* De volledige bolletjeslijn */
    content: '';
    position: absolute;
    right: 16px;
    top: -11px;
    bottom: 0px;
    width: 6px;
    background-color: var(--mja-bglight);
    /* border-radius: 2px; */
    border-left: 4px dotted rgba(var(--mja-blue-rgb), 0.3);
    z-index: 0;  
}

.timeline-item {
    position: relative;
    padding-bottom: 20px; /* Increase spacing between items */
}

/* Circles for timeline steps */
.timeline-item::before { /* Het gewone bolletje */
    content: '';
    position: absolute;
    right: -36px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--mja-bglight);
    border: 4px solid rgba(var(--mja-blue-rgb), 0.3);
}

.timeline-item.active::before { /* Het active bolletje */
    background-color: var(--mja-bglight);
    border: 9px solid rgba(var(--mja-blue-rgb), 1);
}

.timeline-item.passed::before { /* Het voorbije bolletje */
    background-color: var(--mja-bglight);
    border: 9px solid rgba(var(--mja-blue-rgb), 0.5);
}

.timeline-item.future::before { /* Het toekomstige bolletje */
    background-color: var(--mja-bglight);
    border: 4px solid rgba(var(--mja-blue-rgb), 0.3);
}

/* Secondary circles for timeline steps */
.timeline-item.sec-item::after {
    content: '';
    position: absolute;
    right: -36px;
    bottom: 20px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--mja-bglight);
    border: 4px solid rgba(var(--mja-blue-rgb), 0.3);
}

.timeline-item.active.sec-item::after { /* Het active bolletje */
    background-color: var(--mja-bglight);
    border: 9px solid rgba(var(--mja-blue-rgb), 1);
}

.timeline-item.passed.sec-item::after { /* Het voorbije bolletje */
    background-color: var(--mja-bglight);
    border: 9px solid rgba(var(--mja-blue-rgb), 0.5);
}

.timeline-item.future.sec-item::after { /* Het toekomstige bolletje */
    background-color: var(--mja-bglight);
    border: 4px solid rgba(var(--mja-blue-rgb), 0.3);
}

/* Additional full lines for steps */
.timeline-item.sec-item .timeline-content::after { /* For items with a second circle */
    content: '';
    position: absolute;
    right: -27px;
    top: 23px;
    bottom: 39px;
    width: 4px;
    /* background-color: rgba(var(--mja-blue-rgb), 0.8); */
    z-index: 0; 
}

.timeline-item.full-item .timeline-content::after { /* For items without a second circle */
    content: '';
    position: absolute;
    right: -27px;
    top: 23px;
    bottom: -2px;
    width: 4px;
    /* background-color: rgba(var(--mja-blue-rgb), 0.8); */
    z-index: 0; 
}

.timeline-item.active.sec-item .timeline-content::after, .timeline-item.active.full-item .timeline-content::after {
    background-color: rgba(var(--mja-blue-rgb), 1);
}

.timeline-item.passed.sec-item .timeline-content::after, .timeline-item.passed.full-item .timeline-content::after {
    /* background-color: rgba(var(--mja-blue-rgb), 0.5); */
    background-color: #9095B0;
}

.timeline-item.future.sec-item .timeline-content::after, .timeline-item.future.full-item .timeline-content::after {
    /* background-color: rgba(var(--mja-blue-rgb), 0.3); */
    background-color: #ACB0C5;
}

/* Timeline headers & text */
.timeline-item.active h5, .timeline-item.active h5 a {
    color: rgba(var(--mja-blue-rgb), 1);
}

.timeline-item.passed h5, .timeline-item.passed h5 a {
    font-weight: 400;
    color: rgba(var(--mja-blue-rgb), 0.7);
}

.timeline-item.future h5, .timeline-item.future h5 a {
    font-weight: 400;
    color: rgba(var(--mja-blue-rgb), 0.7);
}

.timeline-content h5, .timeline-content h5 a {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: rgba(var(--mja-blue-rgb), 1);
    border-bottom: 1px solid #CCCDCF;
    text-decoration: none;
}

.timeline-content h5 a:hover {
    color: rgba(var(--mja-blue-rgb), 1);
    text-decoration: underline;
}

.timeline-content h5 a{
    border-bottom: none;
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

/* Bottom arrow */
.timeline::after {
    content: '';
    position: absolute;
    right: 13px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    /* border-left: 4px solid rgba(var(--mja-blue-rgb), 0.3); */
    border-left: 4px solid #ACB0C5;
    /* border-bottom: 4px solid rgba(var(--mja-blue-rgb), 0.3); */
    border-bottom: 4px solid #ACB0C5;
    transform: rotate(-45deg); /* Create a diagonal arrow */
    background-color: unset;
}

/* Hover state for interactivity */
.timeline-item:hover::before {
    background-color: var(--mja-bglight);
    border: 6px solid rgba(var(--mja-accent-rgb), 1);
    cursor: pointer;
}

/* Responsiveness */
@media (max-width: 991px) {
    .timeline-container {
        margin: 0 auto;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-item.passed, .timeline-item.future{
        display: none;
    }

    .timeline-container.mobile-full .timeline-item.passed, .timeline-container.mobile-full .timeline-item.future{
        display: block;
    }

    .timeline-container .btn.btn-primary{
        width: 260px;
    }

    .timeline-container.mobile-full .timeline::before,
    .timeline-container.mobile-full .timeline-item::before,
    .timeline-container.mobile-full .timeline-item.active::before,
    .timeline-container.mobile-full .timeline-item.passed::before,
    .timeline-container.mobile-full .timeline-item.future::before,
    .timeline-container.mobile-full .timeline-item.sec-item::after,
    .timeline-container.mobile-full .timeline-item.active.sec-item::after,
    .timeline-container.mobile-full .timeline-item.passed.sec-item::after,
    .timeline-container.mobile-full .timeline-item.future.sec-item::after,
    .timeline-container.mobile-full .timeline-item:hover::before { /* achtergrondkleur correctie modal */
        background-color: #ffffff;
    }
}


