@media print {

    body,
    #page,
    main,
    header,
    #header, 
    .courssilder,
    .owl-stage,
    .owl-stage-outer,
    footer,
    #footer,
    #footerBottom,
    #footerBottomContainer {
        max-width: 99%;
    }

    .subhero {
        margin-top: 0;
    }

    .entry-footer .edit-link,
    #page::before,
    #page > header nav.main-navigation,
    #page > footer #footer .cell:not(:last-child),
    #footerBottomContainer #socialMediaFooter,
    #footerBottomContainer #legalsFooter,
    body.single-course .entry-header .side-links,
    main article.post .prod .container.relatedcourses {
        content: none;
        display: none !important;
    }

    #page > footer #footer,
    #footerBottom #footerBottomContainer,
    #footerBottom #footerBottomContainer div {
        display: block;
        padding-top: 0;
        padding-left: 0;
        white-space: normal;
    }

    h5,
    #page footer #footer .cell:not(:first-child) {
        margin-left: 0;
        font-size: 1rem;
    }

    #page footer #footer .cell {
        display: block;
        width: 100%;
    }

    #page footer #footer .cell a {
        white-space: nowrap;
    }

    #page > footer,
    #page > footer *,
    #page footer #footer .cell p,
    #page footer #footer a,
    #page footer #footer a:link,
    #page footer #footer a:visited,
    #page footer #footer a:active,
    .course.with-filter .course-overview-filters,
    .course.with-filter .course-overview-filters div,
    #date-overview-filter-onpremise .course-overview-filters,
    #date-overview-filter-online .course-overview-filters a,
    #date-overview-filter-online .course-overview-filters a:link,
    #date-overview-filter-online .course-overview-filters a:visited,
    #date-overview-filter-online .course-overview-filters a:hover,
    #footerBottom,
    #footerBottom * {
        background: transparent !important;
        border: none !important;
        color: #000000 !important;
    }

    ul#all_cat_overview li h3,
    ul#all_cat_overview li a {
        background: transparent !important;
        color: #000000 !important;
        padding: 0 !important;
        text-decoration: none;
    }

    .wp-block-columns a[href]:not([href^="#"])::after,
    ul#all_cat_overview a[href]::after {
        content: " ( " attr(href) " )";
        display: block;
        font-size: 12pt;
    }

    .wp-block-columns a[href]:not([href^="#"]) + figcaption {
        margin-top: 30px;
    }

    main a,
    main a:link,
    main a:visited,
    main a:active {
        color: #000000;
    }

    figcaption,
    table th {
        background: none !important;
        color: #000000 !important;
    }

    figcaption {
        border: solid 1px #92a834;
    }

    /* prevent committer photos taking full width */
    body.page-id-23044 .wp-block-columns img {
        max-width: 30vw;
        height: auto;
    }

    .course.with-filter .course-overview-filters div:not(:first-child),
    #date-overview-filter-online .course-overview-filters a:not(:first-child) {
        display: none !important;
    }

    .date-overview-month-wrapper,
    .date-overview-table tr,
    .date-overview-table td {
        break-inside: avoid;
    }

    .wp-block-heading,
 
    .date-overview-month-wrapper h3 {
        break-after: avoid;
    }

    .course h2 {
        break-before: auto;
        break-after: avoid;
    }

    .course .courselist {
        break-before: avoid;
    }

    .wp-block-heading,
    .date-overview-month-wrapper .date-overview-table {
        break-before: auto;
        break-inside: auto;
    }

    .coursslider {
        margin-top: 0;
    }

    .coursslider .card,
    .coursslider .card-wrap {
        display: block;
        min-height: unset;
    }

    .coursslider .card-footer .btn,
    .course div.accordion-container .btn {
        display: none;
    }

    section.course {
        margin-top: 0;
        padding-top: 0;
    }

    .course div.accordion-container:not(.accordions-close) {
        display: block !important;
        width: 100%;
        height: auto !important;
    }

    .course div.accordion-container .courselist__item {
        display: block !important;
        width: 100% !important;
        height: min-content !important;
    }

    .course div.accordion-container .courselist__item .card {
        min-height: unset;
    }

    .course div.accordion-container .card-subtitle {
        color: #000000 !important;
    }

    .course .accordion-action {
        padding-left: 10px !important;
    }

    .course .accordion-action div {
        display: none !important;
    }

    .course-odd,
    .course-odd * {
        background: none !important;
        background-color: transparent !important;
    }

    .owl-carousel {
        display: block !important;
    }

    /* Force all hidden items to be visible */
        .owl-carousel .owl-stage-outer,
        .owl-carousel .owl-stage,
        .owl-carousel .owl-item {
        display: block !important;
        width: 100% !important;
        transform: none !important;
        height: auto !important;
        min-height: unset;
        height: min-content;
    }

    /* Hide carousel navigation and pagination */
    .owl-carousel .owl-nav,
    .owl-carousel .owl-dots {
        display: none !important;
    }

    /* Adjust spacing between the now-stacked items */
    .owl-carousel .owl-item {
        margin-bottom: 20px !important;
    }

    ul.shortlist {
        column-count: 1;
        margin-top: 0;
    }

    ul.shortlist,
    ul.shortlist * {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
    }

    ul.shortlist li {
        display: list-item;
    }

    ul.shortlist li a {
        display: inline !important;
    }

    ul.shortlist li .translation-links-container {
        display: inline-flex;
    }

    /** .d-print styles moved here from grid.css */

    .d-print-none {
        display: none !important;
    }

    .d-print-inline {
        display: inline !important;
    }

    .d-print-inline-block {
        display: inline-block !important;
    }

    .d-print-block {
        display: block !important;
    }

    .d-print-table {
        display: table !important;
    }

    .d-print-table-row {
        display: table-row !important;
    }

    .d-print-table-cell {
        display: table-cell !important;
    }

    .d-print-flex {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .d-print-inline-flex {
        display: -webkit-inline-box !important;
        display: -ms-inline-flexbox !important;
        display: inline-flex !important;
    }
}