/* Saher Academy: mobile slides, centered course/instructor text, RTL lessons. */
.saher-slide-mobile-image {
    display: none !important;
}

.student-course-detail .student-detail-copy,
.student-course-detail .student-detail-facts,
.student-course-body > h3,
.student-course-body > p {
    text-align: center;
}
.student-course-detail .student-detail-copy h1,
.student-course-detail .student-detail-copy > p {
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}
.student-course-detail .student-detail-facts {
    justify-content: center;
    flex-wrap: wrap;
}
.student-course-detail .student-instructors-section .student-detail-section-heading {
    justify-content: center;
    text-align: center;
}
.student-course-detail .student-instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.student-course-detail .student-instructor-card > div:last-child {
    width: 100%;
    max-width: 900px;
}
.student-course-detail .student-instructor-avatar {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
}
.student-course-detail .student-instructor-card h3,
.student-course-detail .student-instructor-card strong,
.student-course-detail .student-instructor-card small,
.student-course-detail .student-instructor-card p {
    text-align: center;
}

/* Explicit alignment avoids Bootstrap's inherited left text alignment. */
.student-course-detail .student-detail-module > h3 {
    text-align: right;
    overflow-wrap: anywhere;
}
.student-course-detail .student-detail-lesson {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    direction: rtl;
    align-items: center;
    text-align: right;
}
.student-course-detail .student-detail-lesson > div {
    min-width: 0;
    text-align: right;
}
.student-course-detail .student-detail-lesson strong {
    text-align: right;
    overflow-wrap: anywhere;
}
.student-course-detail .student-detail-lesson > a,
.student-course-detail .student-detail-locked {
    margin: 0;
    justify-self: end;
}

@media (max-width: 767.98px) {
    .owl-carousel.home-slider {
        height: auto;
        background: #0d1531;
    }
    .owl-carousel.home-slider .slider-item {
        height: auto;
        background-image: none !important;
        background-color: #0d1531;
    }
    .owl-carousel.home-slider .saher-slide-mobile-image {
        display: block !important;
        width: 100%;
        height: auto;
        aspect-ratio: 1672 / 941;
        object-fit: contain;
    }
    .owl-carousel.home-slider .slider-item .slider-text {
        height: auto;
        min-height: 320px;
        padding: 25px 0 45px;
        direction: rtl;
        text-align: center;
    }
    .owl-carousel.home-slider .slider-text > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .owl-carousel.home-slider .slider-item .slider-text h1 {
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.55;
        overflow-wrap: anywhere;
    }
    .owl-carousel.home-slider .slider-item .slider-text p {
        font-size: 15px;
        line-height: 1.9;
    }
    .owl-carousel.home-slider .owl-dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .student-course-detail .student-detail-lesson {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
        gap: 9px 12px;
    }
    .student-course-detail .student-detail-lesson > a,
    .student-course-detail .student-detail-locked {
        grid-column: 2;
        justify-self: end;
    }
}
