﻿.body--courses {
    background-color: var(--green);
    color: var(--white);
}

    .body--courses .navbar__brand svg .back {
        fill: var(--red);
    }

.placeholder__course {
    width: 80%;
    height: 11.8rem;
    background-color: #78c768;
    margin: 3.5rem 0 7rem;
    position: relative;
}

    .placeholder__course:before,
    .placeholder__course:after {
        content: "";
        width: 10rem;
        position: absolute;
        left: 0;
        background-color: inherit;
    }

    .placeholder__course:before {
        top: -3.5rem;
        height: 2.5rem;
    }

    .placeholder__course:after {
        width: 60%;
        bottom: -3rem;
        height: 2rem;
    }

.block__courses,
.courses__intro {
    background-color: var(--green);
    color: var(--white);
    text-align: center;
    padding: var(--padding-lg) 0;
    position: relative;
}

    .block__courses:has(+ section[class^="block__"]):after {
        content: "";
        width: 100vw;
        height: 6.4vw;
        position: absolute;
        bottom: -6.4vw;
        left: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='375' height='24' viewBox='0 0 375 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H375V9.6L0 24V0Z' fill='%2300AE44'/%3E%3C/svg%3E%0A");
        background-size: cover;
        z-index: 1;
    }

    .block__courses h2,
    .courses__intro h2 {
        margin-bottom: 5rem;
        display: inline-flex;
        background-color: var(--pink);
        padding: 1rem 1.5rem .5rem;
        clip-path: var(--polygon-title);
        position: relative;
    }

        .block__courses h2 span,
        .courses__intro h2 span {
            transform: rotate(-1.5deg);
            position: relative;
            z-index: 1;
        }

    .courses__intro h2 {
        margin-bottom: 3rem;
    }

    .courses__intro .button__wrapper {
        margin: 6rem 0 3rem;
        display: inline-flex;
        position: relative;
    }

        .courses__intro .button__wrapper span {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 2.5rem;
            height: 2.5rem;
            background-color: var(--red);
            color: var(--white);
            font-size: 1.4rem;
            border-radius: 50%;
            position: absolute;
            top: -1.25rem;
            right: -1.25rem;
            display: none;
        }

    .courses__intro .button svg {
        margin-right: 1rem;
    }


.courses__results {
    display: flex;
    flex-flow: column;
}

    .courses__results > .button {
        margin-top: 3rem;
    }

    .courses__results > .noresults {
        text-align: center;
    }

.courses {
    display: flex;
    flex-flow: column;
    text-align: left;
    margin-bottom: 5rem;
}

.course:has(+.course) {
    margin-bottom: 2.5rem;
}

.course--date:has(+.course--date) {
    margin-bottom: 4rem;
}

.course {
    background-color: var(--white);
    color: var(--black);
    transition: all .2s linear;
    font-size: 0;
}

    .course:nth-child(odd) {
        transform: rotate(-.5deg);
    }

    .course:nth-child(even) {
        transform: rotate(.5deg);
    }

    .course:hover {
        /*transform: rotate(0deg);*/
    }

    .course > a,
    .course > .course__wrapper {
        display: inline-flex;
        flex-flow: column;
        width: 100%;
        margin-right: auto;
        color: var(--black);
        position: relative;
    }

.course--highlight {
    background-color: var(--purple);
    color: var(--white);
}

    .course--highlight a,
    .course--highlight h3,
    .course--highlight p strong {
        color: var(--white) !important;
    }

.course--date h3 {
    margin-bottom: .6rem;
}

.course__image {
    height: 100%;
    aspect-ratio: 4/3;
    font-size: 0;
    overflow: hidden;
}

    .course__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        aspect-ratio: 4/3;
        transition: var(--transition-default);
    }

.course__text {
    padding: 2.4rem 1.6rem;
}

    .course__text h3,
    .course__text p strong {
        color: var(--purple);
    }

    .course__text h3 {
        font-size: 3.2rem;
        margin-bottom: 1rem;
    }

.course--date .course__image {
    background-color: var(--orange);
}

.course__labels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.course__label {
    font-family: var(--secondfont);
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    clip-path: var(--polygon-label);
    padding: .2rem .5rem;
    margin-bottom: 1rem;
}

    .course__label.bg--white {
        color: var(--green);
    }

    .course__label.bg--orange {
        color: var(--red);
    }

    .course__label.bg--yellow {
        color: var(--purple);
    }

.course__labels .course__label {
    margin-bottom: 0;
}

.course__results .course__label {
    width: fit-content;
}

.course__text a:not(.button) {
    color: var(--white);
    font-weight: 500;
    background-position-x: 0%;
    background-size: 0 2px;
}

    .course__text a:not(.button):hover {
        color: var(--white);
        background-size: 100% 2px;
    }

@media(max-width: 991px) {
    .course__text .button {
        margin: 1rem 0 0;
        width: 100%;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

        .course__text .button:after {
            position: relative;
            top: unset;
            right: unset;
            margin-left: 1rem;
        }
}

.course__text .button--disabled + strong {
    margin-left: 1rem;
    background-image: linear-gradient(var(--white), var(--white));
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    display: inline-block;
    transform: translateY(-.4rem);
    transition: var(--transition-default);
}

.course > a:hover .course__text .button--disabled + strong {
    background-size: 0% 1px;
}

.course__text > p,
.course__features {
    font-size: 1.4rem;
    line-height: 2rem;
}

    .course__text > p span {
        text-transform: lowercase;
    }

    .course__text > p:last-of-type {
        margin-top: 1.5rem;
    }

.course__text .course__summary {
    display: none;
}

.course__text .course__labels {
    justify-content: flex-start;
    margin-top: auto;
}

@media(max-width: 991px) {
    .course__text .course__labels {
        margin-top: 2rem;
    }
}

.course__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

    .course__features li {
        margin-right: .5rem;
    }

        .course__features li + li {
            padding-left: 1.9rem;
            position: relative;
        }

            .course__features li + li:before {
                content: "";
                width: .3rem;
                height: .3rem;
                background-color: var(--white);
                position: absolute;
                top: .9rem;
                left: .7rem;
            }


.course__locations {
    background-color: #efeef7;
    color: var(--black);
    font-size: 1.6rem;
}

    .course__locations > div {
        max-height: 0;
    }

        .course__locations > div.show {
            max-height: 200vh;
        }

            .course__locations > div.show table {
                display: table;
            }

        .course__locations > div > div {
            padding: 4rem;
        }

    .course__locations table {
        width: 100%;
        display: none;
    }

        .course__locations table tr {
            display: flex;
        }

        .course__locations table th {
            padding: 0 0 1.5rem;
            font-weight: 500;
            color: var(--purple);
            min-width: 25%;
        }

        .course__locations table td {
            padding: 1.2rem 0;
            border-top: .1rem solid #d1d1d1;
            min-width: 20%;
            display: flex;
            align-items: center;
        }

            .course__locations table td .button {
                width: auto;
                font-size: 2rem;
                margin-left: auto;
            }

    .course__locations > .button {
        background-color: var(--purple);
        color: var(--white);
        clip-path: none;
        width: 100%;
        transform: none;
        font-size: 1.6rem;
        padding: 1.6rem 0;
        justify-content: center;
    }

        .course__locations > .button span {
            position: relative;
        }

            .course__locations > .button span:after {
                content: "";
                width: .9rem;
                height: .8rem;
                position: absolute;
                top: calc(50% - .5rem);
                left: -1.8rem;
                background-image: url("data:image/svg+xml,%3Csvg width='9' height='8' viewBox='0 0 9 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Polygon 1' d='M4.46387 7.8555L0.13374 0.355498L8.794 0.355499L4.46387 7.8555Z' fill='%23fff'/%3E%3C/svg%3E%0A");
            }

        .course__locations > .button.active span:after {
            transform: rotate(180deg);
        }

.course__bg .course__locations > .button {
    background-color: var(--green);
}

@media(max-width: 991px) {
    .course__mobilelocations {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: calc(var(--app-height) - 12rem);
        overflow-y: scroll;
        padding: 2rem 2rem 10rem;
        background-color: var(--white);
        color: var(--black);
        display: flex;
        flex-flow: column;
        transform: translateY(100%);
        animation: showMobileLocations .3s ease-out forwards;
        z-index: 1000;
    }

        .course__mobilelocations .filter__title {
            margin-top: 0 !important;
            font-size: 4.8rem !important;
        }

        .course__mobilelocations .button--close {
            position: absolute !important;
        }

        .course__mobilelocations table {
            width: 100%;
            border-spacing: 0;
        }

        .course__mobilelocations th {
            color: var(--purple);
            text-align: left;
            font-weight: 500;
            padding-bottom: 1rem;
        }

        .course__mobilelocations tr td {
            border-top: .1rem solid #d1d1d1;
            padding: 1rem 0;
        }

            .course__mobilelocations tr td:last-of-type {
                display: flex;
                justify-content: flex-end;
            }

        .course__mobilelocations .button {
            text-indent: -9000px;
            padding-right: 4rem;
        }

            .course__mobilelocations .button:after {
                top: 1.2rem;
                right: 2rem;
            }

    @keyframes showMobileLocations {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

.courses__entries {
    display: flex;
    margin-top: 5rem;
}

.course__entry {
    display: flex;
    flex-flow: column;
    align-items: center;
    font-family: var(--secondfont);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

    .course__entry:has(+.course__entry) {
        margin-right: 1rem;
    }

    .course__entry a {
        color: var(--white);
        padding-bottom: 2rem;
        position: relative;
    }

        .course__entry a:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: calc(50% - .85rem);
            width: 1.6rem;
            height: 1.5rem;
            background-image: url("data:image/svg+xml,%3Csvg width='17' height='15' viewBox='0 0 17 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.15416 0.289186L6.84357 2.50909L10.003 5.79506L0.351448 5.62659L0.287456 9.2927L9.93899 9.46117L6.64694 12.6535L8.87925 14.9533L16.317 7.73889L9.15416 0.289186Z' fill='%23fff'/%3E%3C/svg%3E%0A");
        }

    .course__entry img {
        width: auto;
        height: 10rem;
        margin: 0 0 1rem;
        transform: rotate(7.25deg);
    }

    .course__entry:nth-child(even) img {
        transform: rotate(-8.19deg);
    }

.courses .button--white {
    margin-left: auto;
    margin-right: auto;
}

.courses__filter {
    position: fixed;
    top: 0;
    right: 0;
    width: 85vw;
    height: var(--app-height);
    padding: 0 2rem 10rem;
    background-color: var(--white);
    color: var(--black);
    box-sizing: border-box;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-default);
}

    .courses__filter.open {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }

    .courses__filter .filter__title,
    .course__mobilelocations .filter__title {
        display: block;
        font-family: var(--headerfont);
        font-size: 3.2rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-block: 3rem;
    }

    .courses__filter form {
        height: 100%;
        padding-bottom: 10rem;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .courses__filter p {
        font-size: 2.4rem;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .courses__filter ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-flow: column;
        gap: .8rem;
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }

    .courses__filter li input {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        opacity: 0;
    }

    .courses__filter li label {
        line-height: 1.6;
        padding-left: 3rem;
        display: flex;
        flex-flow: column;
        position: relative;
        cursor: pointer;
    }

        .courses__filter li label:before {
            content: "";
            width: 1.7rem;
            height: 1.7rem;
            position: absolute;
            top: calc(50% - .85rem);
            left: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.25437 15.1771L15.1587 14.6589L14.0783 1.67508L1.35726 1.24761L1.25437 15.1771Z' stroke='%23D1D1D1' stroke-width='2'/%3E%3C/svg%3E%0A");
        }

    .courses__filter li input:checked ~ label {
        font-weight: 500;
    }

        .courses__filter li input:checked ~ label:before {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath d='m16,15.41l-16,.6L.12,0l14.64.49,1.24,14.91Z' fill='%2300ae44' stroke-width='0'/%3E%3Crect x='2.86' y='2.86' width='10' height='10' fill='none' stroke-width='0'/%3E%3Cpath d='m11.31,3.7l-4.7,4.82-2.2-2.09-1.55,1.55,3.75,3.64,6.25-6.37-1.55-1.55Z' fill='%23fff' stroke-width='0'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
        }

        .courses__filter li span,
        .courses__filter li input:checked ~ label span {
            display: flex;
            font-size: 1.4rem;
            font-weight: 400;
        }

    .courses__filter form .filter__apply {
        position: fixed;
        left: 2rem;
        bottom: 4rem;
        width: calc(85vw - 4rem);
        justify-content: center;
    }

    .courses__filter .button--close,
    .course__mobilelocations .button--close {
        position: fixed;
        top: 0;
        right: 2rem;
        padding: 0;
        z-index: 3;
    }

.filter__agegroup li + li {
    margin-top: 1rem;
}

.filter__agegroup li {
    position: relative;
}

    .filter__agegroup li > span {
        width: 4.5rem;
        height: 6rem;
        background-size: auto 5.5rem;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        position: absolute;
        top: -.5rem;
        left: 3rem;
    }

    .filter__agegroup li:nth-child(1) > span {
        background-image: url('/media/gvaf5kkq/jth-24_hoofd1.png?width=45&height=0&v=1d9cba2846cbec0&format=webp&quality=80');
    }

    .filter__agegroup li:nth-child(2) > span {
        background-image: url('/media/h1xb0fk3/jth-24_hoofd2.png?width=45&height=0&v=1d9cb9fab573cc0&format=webp&quality=80');
    }

    .filter__agegroup li:nth-child(3) > span {
        background-image: url('/media/sw0d1kp0/jth-24_hoofd2.png?width=50&height=0&v=1d9cb9fab416ad0&format=webp&quality=80');
    }

    .filter__agegroup li:nth-child(4) > span {
        background-image: url('/media/rhgoq1nc/jth-24_hoofd4.png?width=0&height=60&v=1d9cba2846cbec0&format=webp&quality=80');
    }

.filter__selected {
    font-size: 1.6rem;
    line-height: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    display: none;
}

    .filter__selected button {
        background-color: transparent;
        margin: 0;
        padding: 0;
        outline: none;
        box-shadow: none;
        border: none;
        color: var(--white);
        font-size: 1.6rem;
        line-height: 2rem;
        height: 2rem;
        border-bottom: .1rem solid transparent;
        cursor: pointer;
        transition: var(--transition-default);
    }

        .filter__selected button:not(:last-of-type) {
            background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.0214 10.4838L2.53613 1.99854L1.12192 3.41275L9.6072 11.898L11.0214 10.4838Z' fill='white'/%3E%3Cpath d='M2.5362 11.898L11.0215 3.41272L9.60727 1.99851L1.12199 10.4838L2.5362 11.898Z' fill='white'/%3E%3C/svg%3E%0A");
            background-position: 0 calc(50% - .2rem);
            background-repeat: no-repeat;
            padding-left: 1.8rem;
        }

.courses__transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .courses__transition:after {
        content: "";
        width: 0;
        height: 0;
        clip-path: var(--polygon-title);
        background-color: var(--purple);
        transform: rotate(-1deg);
        position: relative;
    }

    .courses__transition.animate {
        width: 100vw;
        height: 100vh;
    }

        .courses__transition.animate:after {
            animation: coursesTransition .4s ease-out forwards;
        }

@keyframes coursesTransition {
    from {
        width: 0;
        height: 0;
    }

    to {
        width: calc(100vw - 12rem);
        max-width: 1320px;
        height: calc(100vh - 8rem);
    }
}

@media(max-width: 991px) {
    .course--date .course__features li, .course--date .course__features li + li {
        display: block;
        padding-left: 0;
    }

        .course--date .course__features li:before {
            content: none;
        }
}

@media(min-width: 992px) {
    .block__courses h2,
    .courses__intro h2 {
        margin-bottom: 10rem;
        padding: 1rem 2.5rem .5rem;
    }

    .courses__intro h2 {
        margin-bottom: 4rem;
    }

    .courses__filter {
        max-width: 56rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        overflow: hidden;
    }

        .courses__filter .filter__title {
            font-size: 4.8rem;
        }

        .courses__filter form .filter__apply {
            width: calc(100% + 2rem);
            left: -1rem;
            bottom: -1rem;
            clip-path: none;
            transform: rotate(-.5deg);
            font-size: 2rem;
            padding: 2rem 0 2.5rem;
        }

    .filter__selected button:hover {
        border-bottom-color: var(--white);
    }
    /*
    .courses__filter {
        position: relative;
        transform: none;
        opacity: 1;
        width: 100%;
        height: 5.6rem;
        padding: 0;
        margin: 0 0 12rem;
        background-color: transparent;
    }

        .courses__filter:before {
            content: "";
            position: absolute;
            top: -1rem;
            left: -3rem;
            width: 100%;
            height: 100%;
            padding: 1rem 2rem 1rem 3rem;
            box-sizing: content-box;
            background-color: var(--orange);
            clip-path: polygon(0 4%, 100% 0, 99% 100%, 2% 100%);
        }

        .courses__filter form {
            display: flex;
            justify-content: stretch;
            align-items: center;
            height: 5.6rem;
            padding: 0;
            background-color: var(--white);
            position: relative;
            overflow: visible;
        }

            .courses__filter form > div {
                flex: 1 1 0;
                position: relative;
            }

                .courses__filter form > div:has(+div):after {
                    content: "";
                    height: 4rem;
                    width: .1rem;
                    position: absolute;
                    top: .8rem;
                    right: 0;
                    background-color: hsla(0, 0%, 13%, .2)
                }

            .courses__filter form .filter__dropdown {
                position: absolute;
                top: 100%;
                left: -.5rem;
                width: 100%;
                min-width: 27rem;
                max-height: 0;
                overflow: hidden;
                padding: 0;
                background-color: var(--white);
                clip-path: polygon(0% 11%, 100% 8%, 99% 99%, 5% 100%);
                transition: var(--transition-default);
            }

            .courses__filter form > div:hover .filter__dropdown {
                display: flex;
                height: auto;
                max-height: 100vh;
            }

            .courses__filter form .filter__dropdown ul {
                width: 100%;
                margin: 0;
                padding: 4rem 1rem 2rem 3rem;
            }


            .courses__filter form .button {
                width: 100%;
                height: 5.6rem;
                display: flex;
                align-items: center;
                font-family: var(--mainfont);
                font-size: 1.6rem;
                font-weight: 400;
                color: var(--black);
                background-color: var(--white);
                text-align: left;
                text-transform: none;
                padding-left: 4rem;
                transform: none;
                position: relative;
            }

                .courses__filter form .button:after {
                    content: "";
                    width: .9rem;
                    height: .8rem;
                    position: absolute;
                    top: calc(50% - .2rem);
                    left: 2.4rem;
                    background-image: url("data:image/svg+xml,%3Csvg width='9' height='8' viewBox='0 0 9 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Polygon 1' d='M4.46387 7.8555L0.13374 0.355498L8.794 0.355499L4.46387 7.8555Z' fill='%2300AE44'/%3E%3C/svg%3E%0A");
                }

            .courses__filter form label {
                cursor: pointer;
            }

                .courses__filter form label span {
                    opacity: .7;
                }
                */
    .courses__results > .button {
        margin-top: 6rem;
    }

    .courses {
        margin-bottom: 8rem;
    }

    .course {
        position: relative;
        z-index: 0;
    }

        .course:hover {
            z-index: 1;
        }

            .course:has(~.course:hover),
            .course:hover ~ .course {
                /*opacity: .5;*/
            }

            .course:hover .course__image img {
                transform: scale(1.1);
            }

        .course:has(+.course) {
            margin-bottom: 4rem;
        }

        .course > a,
        .course > .course__wrapper {
            flex-flow: row;
        }

        .course a {
            width: 100%;
        }

        .course .course__image {
            min-width: 42.3rem;
        }

    @keyframes courseImage {
        from {
            opacity: 0;
            transform: rotate(-5deg) translateX(2rem);
        }

        to {
            opacity: 1;
            transform: rotate(0deg) translateX(0);
        }
    }

    .course__text {
        padding: 2.4rem 4rem;
        display: flex;
        flex-flow: column;
        width: 100%;
        position: relative;
        z-index: 1;
    }

        .course__text h3 {
            font-size: 4.8rem;
        }

        .course__text > p,
        .course__features {
            font-size: 1.6rem;
            line-height: 2.4rem;
        }

            .course__features li + li {
                padding-left: 3.8rem;
            }

                .course__features li + li:before {
                    width: .6rem;
                    height: .6rem;
                    left: 1.6rem;
                }

        .course__text .course__summary {
            display: block;
        }

        .course__text .button {
            margin: 2rem 0 1.5rem;
            position: absolute;
            right: 4rem;
            bottom: 2.4rem;
            width: auto;
        }

    .course__label {
        font-size: 1.6rem;
        padding: .4rem .6rem;
        margin-bottom: 1rem;
    }

    .courses__entries {
        justify-content: center;
        margin-top: 12rem;
    }

    .course__entry {
        max-width: 20rem;
        margin: 0 5rem;
        font-size: 2.4rem;
    }

        .course__entry img {
            height: 20rem;
        }

        .course__entry a img {
            transition: var(--transition-default);
        }

        .course__entry a:hover img {
            transform: rotate(0deg);
        }
}
