/* added by Nabil for lms option  */
.theme-img[style] {
  width: 100% !important;
}

.theme-img .acf-radio-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.theme-img .acf-radio-list li {
  margin: 0 !important;
}

.theme-img .acf-radio-list li label {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  gap: 5px;
  position: relative;
  cursor: pointer;
  border: 1px solid #ebebeb;
  padding: 5px;
  border-radius: 5px;
  overflow: hidden;
}

.theme-img .acf-radio-list li label img {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
  display: block;
}

.theme-img .acf-radio-list li label input[type="radio"] {
  display: none;
}

.theme-img .acf-radio-list li label::before {
  background-color: white;
  color: white;
  content: " ";
  display: block;
  border-radius: 50%;
  border: 1px solid grey;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 28px;
  transition-duration: 0.4s;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
}

.theme-img .acf-radio-list li label p {
  margin: 0;
  text-align: center;
}

.theme-img .acf-radio-list li label.selected::before {
  content: "✓";
  background-color: #000;
  z-index: 10;
  opacity: 1;
}

.theme-img .acf-radio-list li label.selected img {
  transform: scale(0.9);
}

.theme-img .acf-radio-list li label.selected::after {
  content: "";
  display: block;
  background: #000;
  opacity: 0.1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 1;
}

.course-search-button {
  cursor: pointer;
}

body {
  margin: 0 !important;
}

section.lost-password-form-edited {
  padding: 100px 0;
}

/* Course search suggestions — add to the theme stylesheet or Additional CSS */

/* 1. ROOT CAUSE: the dropdown is position:absolute but nothing around it was
      positioned, so it anchored to the page and appeared at the top-left.
      Make the search wrapper the positioning context. */
.course-search.widget_search_course {
  position: relative;
}

/* 2. Dropdown sits directly under the input, same width, above other content.
            !important beats the inline styles currently in the HTML. */
/* Hidden until the script shows it (script sets inline display:block/none).
         This removes the empty white box that showed before any search. */
.course-search .course-search-results {
  display: none;
}

.course-search .course-search-results {
  position: absolute !important;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto !important;
  min-width: 280px;
  max-height: 340px !important;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff !important;
  border: 1px solid #e3e6ee !important;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(25, 35, 62, 0.18);
  overflow-y: auto;
  z-index: 9999 !important;
  text-align: left;
}

.course-search .course-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #19233e;
  font-size: 15px;
  line-height: 1.35;
}

.course-search .course-search-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 6px;
  background: #eef1f8 center / cover no-repeat;
  color: #19233e;
  font-size: 18px;
}

.course-search .course-search-thumb.has-image {
  color: transparent;
}

.course-search .course-search-item:hover,
.course-search .course-search-item.is-active {
  background: #eef1f8;
}

.course-search .course-search-message {
  padding: 12px 14px;
  color: #6b7280;
  font-size: 14px;
}

.course-search .course-search-message.is-error {
  color: #b42318;
}

/* 3. Input: comfortable height and visible focus state */
.course-search .course-search-input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd5e3;
  border-radius: 6px;
  outline: none;
}

.course-search .course-search-input:focus {
  border-color: #19233e;
  box-shadow: 0 0 0 3px rgba(25, 35, 62, 0.12);
}

@media (max-width: 767px) {
  .course-search .course-search-results {
    max-height: 60vh !important;
  }

  .course-search .course-search-item {
    font-size: 14px;
  }
}