/* LANGUAGE ARCHIVE CSS */
#language-dir-list .language-details {
    padding: 0 15px 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#language-dir-list .bb-course-items .bb-course-cover {
    min-height: fit-content;
}

#language-dir-list .bb-course-title {
    color: var(--bb-headings-color);
    font-size: 22px !important;
    line-height: 1.24 !important;
    margin: 10px 0 !important;    
    text-align: center;
}

#language-dir-list .bb-course-item-wrap {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 33.333%;
    flex: 0 0 33.333%;
}

#language-dir-list .bb-cover-list-item:hover {
    background: var(--bb-content-alternate-background-color);
}

#language-dir-list .bb-cover-list-item a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#language-dir-list li.bb-course-item-wrap .bb-course-cover::after {
    content: "";
    position: absolute;
    transition: all 0.3s;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    right: 0;
    top: 0;
    margin: -5px 0 0 -5px;
    transform-origin: 0 0;
    transform: rotate(-20deg);
}

#language-dir-list li.bb-course-item-wrap a:hover .bb-course-cover::after {
    width: 40%;
}

#language-dir-list .language-data {
    display: flex;
    justify-content: space-around;
    font-size: 0.875em;
    color: var(--bb-body-text-color);
    padding-top: 5px;
    border-top: 1px solid var(--bb-alternate-text-color);
    margin-top: auto;
}

/* LANGUAGE CSS */
#primary {
    order: 2;
}

.language-course-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 30vh;
    min-height: 250px;
    color: #fff;
    overflow: hidden;
    margin: 0 -30px;
    background: var(--ODBUyellow);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
}

.language-course-image {
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    background-color: #8d8d8d;
    background-blend-mode: multiply;
    min-height: inherit;
    max-height: inherit;
    height: inherit;
    position: absolute;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 98%);
}

.language-course-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    max-width: 1200px;
    align-items: center;
    align-content: center;
    z-index: 2;
    padding: 2em;
    margin: 0 auto;
    width: 100%;
}

.courses section {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 33.333%;
    flex: 0 0 33.333%;
    margin-bottom: 20px;
}

.courses section .course {
    background: var(--bb-cover-image-background-color);
    border: 1px solid var(--bb-content-border-color);
    border-radius: var(--bb-block-radius);
    height: 100%;
    padding-bottom: 0;
    -webkit-transition: .2s box-shadow;
    transition: .2s box-shadow;
    position: relative;
    overflow: hidden;
}

.course a::after {
    content: "";
    position: absolute;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    right: 0;
    top: 0;
    margin: -5px 0 0 -5px;
    -webkit-transform-origin: 0 0;
    -webkit-transform: rotate(-20deg);
    -moz-transform-origin: 0 0;
    -moz-transform: rotate(-20deg);
    -ms-transform-origin: 0 0;
    -ms-transform: rotate(-20deg);
    transform-origin: 0 0;
    transform: rotate(-20deg);
}

.course a:hover::after,
.course a:focus::after {
    width: 40%;
}

.course-image {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--bb-cover-image-background-color);
    border-radius: var(--bb-block-radius) var(--bb-block-radius) 0 0;
    padding-top: 52%;
}

.course-image img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 0;
    min-height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    border-radius: 0;
}

.course .content {
    padding: 16px 20px 10px;
}

.course .content h2 {
    font-size: 1.2em !important;
    color: #ffffff;
    width: 100%;
    line-height: 1.24;
    margin: 0 0 10px;
}

.course .content .excerpt {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #ffffff;
    margin: -3px 0 10px;
    font-size: 14px;
    line-height: 1.384;
}

.course-code {
    color: #ffffff;
    background: var(--ODBUblack);
    position: absolute;
    bottom: 0;
    font-size: 0.8em;
    line-height: 1em;
    padding: 5px 10px;
    border-top-right-radius: var(--bb-block-radius);
    z-index: 9;
}

.RTL .site-main {
    text-align: right;
}

.RTL .bb-grid {
    flex-direction: row-reverse;
}

.RTL .searchandfilter input.sf-input-text {
    text-align: right;
}

/* LANGUAGE COURSE CSS */
.header-search-wrap form.search-form,
.header-aside-inner .bb-header-buttons,
.bb-separator {
    display: none;
}

.featured-image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 200px;
    max-height: 300px;
    height: 40vh;
    margin-left: -10px;
    margin-right: -10px;
    position: relative;
}

.featured-image a {
    position: absolute;
    bottom: 0;
    right: 20%;
    background: var(--ODBUblue);
    padding: 5px 20px;
    border-top-right-radius: var(--bb-button-radius);
    border-top-left-radius: var(--bb-button-radius);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 400;
}

.featured-image a:hover {
    background: var(--ODBUblack);
}

.featured-image a i {
    font-weight: 300;
    margin-right: 5px;
}

.lessons section {
    flex: 0 0 50%;
}

.lessons section .lesson {
    margin: 15px 15px 35px;
}

.lesson h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--bb-content-border-color);
    padding-bottom: 5px;
    position: relative;
}

.lesson h3 span {
    position: absolute;
    right: 0;
    color: var(--bb-alternate-text-color);
}

.lesson-materials {
    margin-top: 10px;
}

.audio-player {
    margin-bottom: 10px;
    height: 33px;
}

.audio-player audio {
    height: 15px;
    width: 100%;
}

.RTL .featured-image a {
    right: unset;
    left: 20%;
}

.RTL .lesson h3 span {
    left: 0;
    right: unset;
}

.RTL .course-materials a,
.RTL .lesson-materials a {
    padding: 7px 0px 7px 15px;
}

.RTL .course-materials a::before,
.RTL .lesson-materials a::before {
    display: none;
}

.RTL .course-materials a::after,
.RTL .lesson-materials a::after {
    content: "\ee8a";
    font-family: bb-icons;
    font-style: normal;
    margin-left: 10px;
    font-size: 1.1em;
    background: var(--ODBUyellow);
    padding: 7px 5px;
    color: #ffffff;
}

@media (max-width: 820px) {

    #language-dir-list .bb-course-item-wrap,
    .courses section {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
    }
    .lessons section {
        flex: 0 0 100%;
    }
    .featured-image a {
        right: 5%;
    }
    .RTL .featured-image a {
        right: unset;
        left: 5%;
    }
}


@media (max-width: 599px) {
    #language-dir-list .bb-course-item-wrap,
    .courses section {
        flex: 0 0 100%;
    }
    .course-image {
        padding-top: 40%;
    }
    .featured-image a,
    .RTL .featured-image a {
        right: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        text-align: center;
    }
}