
body {
    background-color: var(--umbraco-body-bg-color);
}


.block-question__panel{
    max-width: var(--umbraco-container-max-width) !important;
    margin: 0 auto;
}

/* ===============================
   aside (
   =============================== */
aside {
    position: relative;
}

aside::before {
    content: "";
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 1px;
    background-color: var(--umbraco-body-tertiary-color);
}


    .course-detail__asideHeader {
        background: var(--umbraco-body-tertiary-color);
        color: #fff;
        padding: 18px 20px;
        font-weight: 700;
        border-radius: var(--umbraco-border-radius);
    }

    .course-detail__asideBody {
        padding: 18px 20px 20px 20px;
        border-bottom: 1px solid #efefef;
    }

    .course-detail__price {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0 0 12px 0;
    }

    .course-detail__schedulePicker {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 0 14px 0;
        cursor: pointer;
        user-select: none;
    }

    .course-detail__scheduleCheck {
        width: 18px;
        height: 18px;
        border-radius: 3px;
        background: #0a8a2a;
        position: relative;
        flex: 0 0 auto;
    }

        .course-detail__scheduleCheck::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 2px;
            width: 6px;
            height: 10px;
            border-right: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(45deg);
        }

    .course-detail__schedulePickerText {
        font-weight: 600;
        line-height: 1.2;
    }

    .course-detail__scheduleChevron {
        margin-left: auto;
        width: 18px;
        height: 18px;
        position: relative;
        flex: 0 0 auto;
    }

        .course-detail__scheduleChevron::before {
            content: "";
            position: absolute;
            inset: 0;
            margin: auto;
            width: 8px;
            height: 8px;
            border-right: 2px solid #333;
            border-bottom: 2px solid #333;
            transform: rotate(-135deg);
            transition: transform 240ms ease;
        }
    /* Chevron rotation when collapsed */
    .course-detail__scheduleItem.is-collapsed .course-detail__scheduleChevron::before {
        transform: rotate(45deg);
    }

    .course-detail__kv {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px 14px;
        margin: 6px 0 16px 0;
        overflow: hidden;
        max-height: 3000px;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 240ms ease, opacity 200ms ease, transform 240ms ease, margin 240ms ease;
    }
    /* Collapse animation (per schedule item) */
    .course-detail__scheduleItem.is-collapsed .course-detail__kv {
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        margin: 0;
    }

    .course-detail__scheduleItem.is-collapsed .course-detail__enroll {
        display: none;
    }

    .course-detail__kvKey {
        color: #333;
        opacity: 0.75;
    }

    .course-detail__kvKey--top {
        align-self: start;
        padding-top: 2px;
    }

    .course-detail__daysList {
        display: grid;
        gap: 14px;
    }

    .course-detail__dayGroup {
        display: grid;
        gap: 6px;
    }

    .course-detail__dayDate {
        font-weight: 600;
    }

    .course-detail__dayTime {
        color: #333;
        opacity: 0.9;
    }
    
    .course-detail__enroll,
    .course-detail__waitList {
        height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 9999px;
        border: 0;
        color: #fff;
        font-weight: 700;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    }

    .course-detail__enroll {
        width: 100%;
        margin: 0;
        background: var(--umbraco-body-primary-color);
    }

    .course-detail__waitList {
        width: calc(100% - 40px);
        margin: 0 20px 20px;
        background: var(--umbraco-body-tertiary-color);
    }

    .course-detail__enroll:disabled {
        cursor: not-allowed;
    }

/* ===============================
   main course-texttabs
   =============================== */
.course-texttabs .MsoNormal,
.course-detail__block .MsoNormal {
    padding-bottom: 5px;
}

.course-texttabs h2,
.course-detail__block h2 {
    color: var(--umbraco-body-primary-color);
    font-weight: 700;
}

.course-detail__block {
    display: block;
    width: 100%;
}

.course-detail__block + .course-detail__block {
    margin-top: 22px;
}

.nav-tabs .nav-link {
    border: unset;
    border-radius: unset;
    border-right: 1px solid #d9d9d9
}

.nav-link:focus, .nav-link:hover {
    color: unset;
    /*   border: unset;*/
}

.course-texttabs__tab.is-active {
    border-bottom: 4px solid var(--umbraco-body-primary-color);
    font-weight: 700;
}

.course-texttabs__panels {
    padding: 25px 0;
}
/* ===============================
   GLOBAL CONTAINER (max-width: 1480px)
   =============================== */
.course-detail-container {
    max-width: var(--umbraco-container-max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
/* ============================================================
   PARENT FLEX WRAPPER (enable re-ordering)
   ============================================================ */
.course-detail {
    position: relative;
    display: flex;
    flex-direction: column;
}
/* ============================================================
   BANNER (ORDER: 1)
   ============================================================ */
.course-detail__banner {
    order: 1;
    width: 100%;
    height: 500px !important;
    object-fit: cover;
    display: block;
    margin-top: 0px;
}

.no-img {
    width: 100%;
    height: 475px;
    background: #d9d9d9;
    display: block;
    margin-top: 130px;
}

/* ============================================================
   TITLE OVERLAY ON BANNER
   ============================================================ */
.course-detail-title__container {
    position: absolute;
    top: 240px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    max-width: var(--umbraco-container-max-width);
    width: 100%;
    padding: 0 20px;
}

.course-detail__title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    color: white;
    font-weight: 700;
}
/* ============================================================
   INFORMATION CONTAINER (ORDER: 2)
   - floats right
   - overlaps 80% of the banner height
   ============================================================ */
.course-detail-information__container {
    order: 2;
    max-width: 500px;
    width: 100%;
    margin: 0px 200px 10px auto;
    padding: 20px 20px;
    position: relative;
    /* float: right; */
    margin-top: -125px;
    z-index: 10;
    display: block;
    background-color: #fff;
    border-radius: var(--umbraco-border-radius);
    min-height: 200px;
    box-shadow: var(--umbraco-card-box-shadow) !important;

    .course-detail-information__duration{
        width: 100%;
    
    }

    .course-detail-information__label{
        display: inline-block;
        vertical-align: top;
        margin-right: 5px;
    }
    .course-detail-information__value{
        display: inline-block;
        vertical-align: top;
    }

    .course-detail-information__label, .course-detail-information__value {
        color: var(--umbraco-body-primary-color);
    }

    .course-detail-information__label {
        font-weight: 700;
    }

    .course-detail-information__price {
        .course-detail-information__value {

            &::after {
                padding-left: 5px;
                content: ' | ';
            }
        }
    }

    .course-detail-information__code {
        padding-left: 5px;
    }

    course-detail-information__duration {
        width: 100%;
    }

    .course-detail-information {
        display: inline-block;
        vertical-align: top;
    }

    .course-detail-information__duration,
    .course-detail-information__price {
        display: inline-block;
        vertical-align: top;
    }

}

.course-detail-information__remark {
    background-color: #CFE5FF;
    color: var(--umbraco-body-primary-color);
    border-radius: var(--umbraco-input-border-radius-xs);
    padding: 15px;
    margin: 20px 0;

    p {
        color: var(--umbraco-body-primary-color);
        font-weight: 700;
    }

    &:empty {
        background-color: #fff;
        padding: 5px
    }
}

.course-detail-information__append-data {
    padding-top: 10px;
}

.course-detail-information__append-data::before {
    padding-top: 10px;
    font-weight: 800;
    font-size: 16px;
    content: 'Vragen?';
    height: 150px;
}

/*.course-detail-information__append-data,*/
.course-detail-information__append-data-child-1,
.course-detail-information__append-data-child-2 {
    display: inline;
    padding: 10px;
}

    /* ============================================================
   BACK BUTTON (ORDER: 3)
   - aligned to the left
   ============================================================ */
    .course-detail-back__container {
        order: 3;
        margin: 20px auto 0 auto;
        padding: 0 20px;
        text-align: left; /* Force left alignment */
        width: 100%;
        min-width: 0;
        max-width: var(--umbraco-container-max-width);
    }

    .course-detail__back {
        text-decoration: none;
        font-weight: 600;
    }

        .course-detail__back::after {
            content: ">";
            padding-left: 5px;
        }
    /* ============================================================
   GRID (ORDER: 4)
   ============================================================ */
    .course-detail__grid {
        order: 4;
        margin: 40px auto;
        padding: 10px 20px;
        display: grid;
        grid-template-columns: 70% 30%;
        gap: 20px;
        width: 100%;
        min-width: 0;
        max-width: var(--umbraco-container-max-width);
        ul{
                color: var(--umbraco-body-text-color);
        }
    }
    /* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
    @media (max-width: 768px) {
        /* Banner adjusts */
        .course-detail__banner {
            height: 300px !important;
        }
        /* Title smaller */
        .course-detail__title {
            font-size: 28px;
            text-align: center;
        }
        /* Information container no longer overlaps */
        .course-detail-information__container {
            float: none;
            margin-top: 20px;
            max-width: 95%;
            margin-left: auto;
            margin-right: auto;
        }
        /* Grid collapses to 100% width */
        .course-detail__grid {
            grid-template-columns: 1fr;
        }
    }

    .course-detail__banner {
        position: relative;
    }

    .course-detail__banner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.45) 45%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .course-detail__banner > * {
        position: relative;
        z-index: 2;
    }
}
    /* ===============================
   RESPONSIVE BEHAVIOR
   =============================== */
    @media (max-width: 1024px) {
        .course-detail__title {
            font-size: 36px;
        }
    }

    @media (max-width: 768px) {


        .course-detail__title {
            font-size: 28px;
            text-align: center;
        }

        .course-detail-title__container {
            text-align: center;
            top: 200px;
        }
        /* Stack main + aside */
        .course-detail__grid {
            grid-template-columns: 1fr;
            padding: 0 10px;
        }

        .course-detail-information__append-data-child-1,
        .course-detail-information__append-data-child-2 {
            padding: 15px 0 10px;
            display: inline-grid;
            width: 100%;
            &::after{
                text-align: center;
            }
        }
     

    }

    @media (max-width: 991.98px) {
    
    .course-detail__banner {
             margin-top: 0px;
        }
}



