body {
    background-color: #EFEFF0 !important;
    background-image: none !important;
    padding-bottom: 40px;
}

html:not(.popup) body:not(.ef-user-signed-in)::before {
    background: none;
}

#main-content {
    background-color: #fff;
}

.course-dashboard-custom {
    margin: 30px;
}

.course-dashboard-custom h3 {
    font-weight: bold;
    font-size: 22px;
}

.course-dashboard-custom .course-header {
    background-color: #e31d26;
    color: #fff;
    padding: 20px 40px;
}

.course-dashboard-custom .course-content {
    background-color: #EFEFF0;
    padding: 20px 40px;
}

.course-dashboard-custom #ef-course-name-heading {
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    font-size: 28px;
}

.course-dashboard-custom .section-support {
    display: flex;
    align-items: end;
}

.course-dashboard-custom .section-events {
    margin: 20px 0 0;
}

.course-dashboard-custom .section-events .session {
    background-color: #fff;
    display: flex;
    gap: 10px;
    padding: 20px;
    margin: 10px -15px 0 -15px;
    align-items: center;
}

.course-dashboard-custom .section-events .session > div {
    flex: 1;
}

.course-dashboard-custom .section-events .session > div:last-of-type {
    text-align: end;
}

.course-dashboard-custom .section-events .session > div h3,
.course-dashboard-custom .section-events .session > div p {
    margin: 0;
}

.course-dashboard-custom .section-events .costs-estimate,
.course-dashboard-custom .section-events .costs-estimate:hover {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.course-dashboard-custom .text,
.course-dashboard-custom #ef-course-name-heading {
    max-width: 60%;
}

.course-dashboard-custom .section-details .text {
    display: flex;
}

.course-dashboard-custom .section-details div:nth-of-type(2) {
    margin-left: 80px;
}

.course-dashboard-custom .section-support {
    margin-top: 20px;
}

.course-dashboard-custom .section-support .text a {
    text-decoration: underline;
    font-weight: bold;
}

.course-dashboard-custom .course-description {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
}

.course-dashboard-custom .course-description .text * {
    font-size: 13px !important;
}

.course-dashboard-custom .section-support .button {
    flex: 1;
    text-align: right;
}

.course-dashboard-custom .section-support .button a:not(.hidden),
.course-dashboard-custom .section-support .button input:not(.hidden),
.course-dashboard-custom .section-support .button button:not(.hidden) {
    width: auto !important;
    display: initial !important;
}

.course-dashboard-custom .course-price {
    font-size: 30px;
    font-weight: bold;
    margin: 0 10px 20px;
}

.course-dashboard-custom .course-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.course-dashboard-custom .course-image img {
    height: auto;
    max-width: 273px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}

@media(min-width: 767px) {
    .course-dashboard-custom .btn-book-custom {
        font-size: 22px;
        padding: 12px 42px;
    }
}

@media(max-width: 767px) {
    .course-dashboard-custom .section-support,
    .course-dashboard-custom .section-details .text {
        display: block;
    }

    .course-dashboard-custom .course-description {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .course-dashboard-custom .text,
    .course-dashboard-custom #ef-course-name-heading {
        max-width: none;
    }

    .course-dashboard-custom .section-details div:nth-of-type(2) {
        margin-left: 0;
    }

    .course-dashboard-custom .section-support .button {
        margin-top: 20px;
        text-align: left;
    }

    .course-dashboard-custom .section-events .session {
        display: block;
    }

    .course-dashboard-custom .course-image img {
        max-width: 100%;
    }
}