*:not(.fa):not(.glyphicon):not([class*="sorting"]):not([class*="icon-cc"]):not([class*="mce-"]) {
    font-family: "Noto Naskh Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
@media (min-width: 992px) {
    header.global-header .main-header {
        display: flex;
        height: auto;
    }
}
/* Rowad linear-course Arabic outline */
html[dir="rtl"] #root #outline-sidebar-outline a,
html[dir="rtl"] #root #outline-sidebar-outline a *,
html[dir="rtl"] #root .course-outline-tab a,
html[dir="rtl"] #root .outline-sidebar a {
  direction: rtl !important;
  text-align: right !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

html[dir="rtl"] #root #outline-sidebar-outline .rowad-section-progress,
html[dir="rtl"] #root #outline-sidebar-outline .pgn-icon {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Course wrapper spacing — desktop and mobile */
body.view-in-course .course-wrapper.chromeless,
body.view-courseware .course-wrapper.chromeless {
  padding: 10px !important;
}

/* Course wrapper spacing — desktop and mobile */
body.view-in-course .course-wrapper.chromeless,
body.view-courseware .course-wrapper.chromeless {
  padding: 10px !important;
}

/* Match LMS theme course tabs to Learning MFE tabs */
.course-tabs-navigation,
.course-tabs-navigation ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2.5rem !important;
}

.course-tabs-navigation a,
.course-tabs-navigation .nav-link {
  font-family: "Rowad Noto", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #173f78 !important;
  padding: 0.75rem 0.25rem 1rem !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.course-tabs-navigation a:hover,
.course-tabs-navigation .nav-link:hover,
.course-tabs-navigation a.active,
.course-tabs-navigation .nav-link.active,
.course-tabs-navigation a[aria-current="page"] {
  color: #173f78 !important;
  border-bottom-color: #173f78 !important;
  background: transparent !important;
}

html[dir="rtl"] .course-tabs-navigation,
html[dir="rtl"] .course-tabs-navigation ul {
  direction: rtl !important;
}

@media (max-width: 767.98px) {
  .course-tabs-navigation,
  .course-tabs-navigation ul {
    gap: 1rem !important;
    overflow-x: auto !important;
  }

  .course-tabs-navigation a,
  .course-tabs-navigation .nav-link {
    font-size: 1rem !important;
  }
}

/* Rowad Journey-style course cards */
.courses-listing.courses-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}

.courses-listing.courses-list .course {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 420px !important;
  border: 1px solid #d7d3d1 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.courses-listing.courses-list .course:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

.courses-listing.courses-list .course-image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 210px !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.courses-listing.courses-list .course-info {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 1.25rem 1rem 1.5rem !important;
  text-align: center !important;
}

.courses-listing.courses-list .course-title,
.courses-listing.courses-list .course-name {
  font-family: "Rowad Noto", sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #111 !important;
}

.courses-listing.courses-list .course-description {
  margin-top: 0.75rem !important;
  font-family: "Rowad Noto", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #52606d !important;
}

html[dir="rtl"] .courses-listing.courses-list .course-info {
  direction: rtl !important;
  text-align: center !important;
}

@media (max-width: 991.98px) {
  .courses-listing.courses-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  .courses-listing.courses-list {
    grid-template-columns: 1fr !important;
  }
}

/* Rowad courseware content spacing */
body.view-in-course .course-wrapper.chromeless .course-content .vert-mod .vert,
body.view-in-course .course-wrapper.chromeless .courseware-results-wrapper .vert-mod .vert,
body.view-courseware .course-wrapper.chromeless .course-content .vert-mod .vert,
body.view-courseware .course-wrapper.chromeless .courseware-results-wrapper .vert-mod .vert {
  padding: 0 30px 15px !important;
}

/* Final Rowad course-list correction */
.courses-listing.courses-list .course {
  min-height: 400px !important;
}

.courses-container .courses .course .course-image .cover-image {
  height: 220px !important;
  overflow: hidden !important;
}

.courses-container .courses .courses-listing .courses-listing-item {
  width: auto !important;
  margin: 0 !important;
}

/* Align important-date titles to the right in Arabic */
html[dir="rtl"] .course-info .course-sidebar .important-dates li .important-dates-item-title,
body.lang_ar .course-info .course-sidebar .important-dates li .important-dates-item-title {
  float: right !important;
  direction: rtl !important;
  text-align: right !important;
  width: 100% !important;
}

/* Remove max-height from all course-list cards */
.find-courses .courses-container .courses .courses-listing .courses-listing-item,
.university-profile .courses-container .courses .courses-listing .courses-listing-item,
.courses-container .courses .courses-listing .courses-listing-item {
  max-height: none !important;
}

/* Match theme course tabs to Learning MFE tabs */
body.view-in-course .wrapper-course-material .course-tabs .tab a,
body.view-courseware .wrapper-course-material .course-tabs .tab a {
  box-sizing: border-box !important;
  color: #15376d !important;
  font-family: "Rowad Noto Kufi Arabic", "Rowad Noto Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  padding: 8px 16px !important;
  margin: 0 0 0 32px !important;
  border-bottom: 1.6px solid transparent !important;
  text-decoration: none !important;
}

body.view-in-course .wrapper-course-material .course-tabs .tab a:hover,
body.view-in-course .wrapper-course-material .course-tabs .tab a:focus,
body.view-in-course .wrapper-course-material .course-tabs .tab.active a,
body.view-courseware .wrapper-course-material .course-tabs .tab a:hover,
body.view-courseware .wrapper-course-material .course-tabs .tab a:focus,
body.view-courseware .wrapper-course-material .course-tabs .tab.active a {
  color: #15376d !important;
  border-bottom: 1.6px solid #15376d !important;
  background: transparent !important;
  text-decoration: none !important;
}

html[dir="rtl"] body.view-in-course .wrapper-course-material .course-tabs,
html[dir="rtl"] body.view-courseware .wrapper-course-material .course-tabs {
  direction: rtl !important;
}


/* Final MFE-matching account dropdown placement */
#rowadThemeHeader .account-popup {
  position: absolute !important;
  top: 76px !important;
  width: 276px !important;
  min-width: 276px !important;
  padding: 16px !important;
  transform: none !important;
  z-index: 10000 !important;
}

/* Arabic: account button and dropdown on the left */
#rowadThemeHeader[dir="rtl"] .account-popup {
  left: 16px !important;
  right: auto !important;
  direction: rtl !important;
}

#rowadThemeHeader[dir="rtl"] .account-popup a {
  text-align: right !important;
}

/* English: account button and dropdown on the right */
#rowadThemeHeader[dir="ltr"] .account-popup {
  right: 16px !important;
  left: auto !important;
  direction: ltr !important;
}

#rowadThemeHeader[dir="ltr"] .account-popup a {
  text-align: left !important;
}


/* Homepage English txt4 alignment */
.child1 .txt4 a,
.child2 .txt4 a {
  padding: 13px 34px;
  color: #056F6B;
  font-size: 18px;
  background: #F3F3F3;
  border-radius: 8px;
  margin-right: -70px !important;
}


/* Course card image overlay height */
.courses-container .courses .course .course-image .cover-image::before {
  height: 220px !important;
}

/* Course cards on small screens */
@media screen and (max-width: 399px) {
  .find-courses .courses-container .courses .courses-listing .courses-listing-item,
  .university-profile .courses-container .courses .courses-listing .courses-listing-item,
  .courses-container .courses .courses-listing .courses-listing-item {
    width: 320px !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 319px) {
  .find-courses .courses-container .courses .courses-listing .courses-listing-item,
  .university-profile .courses-container .courses .courses-listing .courses-listing-item,
  .courses-container .courses .courses-listing .courses-listing-item {
    width: 220px !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

