@keyframes courseFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.single-course {
  border-radius: 15px;
  background: #FFF;
  font-family: "Open Sans", serif;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
  padding: 26px;
  height: 100%;
  animation: courseFadeIn 0.5s ease-in-out forwards;
}

.single-course-container {
  margin-bottom: 32px;
}

.single-course .title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.single-course .card-body {
  color: #444;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
}

.single-course .course-date {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.single-course .course-location {
  display: inline-flex;
  height: 30px;
  padding: 10px 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid #000;
}

.single-course .course-price {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.single-course .badge {
  font-size: 14px;
  font-weight: 400;
  margin-top: 30px;
  display: inline-flex;
  height: 37px;
  padding: 10px 14px;
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #1C1B1F;
}

.single-course .card-footer {
  white-space: pre-line;
}

.single-course .card-footer a:first-child {
  margin-top: 0;
}

.single-course .badge .img-arrow {
  margin-left: 2px;
}

.single-course .card-body {
  min-height: 110px
}

.single-course .course-info-meta {
  margin-top: 20px;
  margin-bottom: 20px;
}

.single-course .course-info-meta .btn {
  display: inline-flex;
  height: 30px;
  padding: 10px 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.single-course .course-info-meta .btn {
  background: white;
  color: black;
}

.single-course .course-info-meta .btn span {
  max-width: 160px;
}

.single-course .course-info-meta .course-badge-info {
  display: inline-flex;
  height: 30px;
  padding: 10px 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  background: white;
  color: black;
  border: 1px solid #000;
  cursor: default;
}

.single-course .course-info-meta .course-badge-info span {
  max-width: 160px;
}

.single-course .badge-unset {
  background-color: #F9F9F9;
  color: #747474;
}

.single-course .badge-email {
  background-color: #E8EEFD;
}

.single-course .badge-phone {
  background-color: #E4FFF5;
}

.single-course .badge-website {
  background-color: #FFF9D7;
}

.single-company-listing.card-blue {
  background-color: #E8EEFD;
}

.single-company-listing.card-green {
  background-color: #E4FFF5;
}

.single-company-listing.card-yellow {
  background-color: #FFF9D7;
}

.single-company-listing .inner {
  border-radius: 8px;
  padding: 60px 32px 32px;
}

.single-company-listing .company-logo {
  margin-bottom: 32px;
}

.course-listings-picklist-container .offcanvas-body .course-listings-filter {
  width: 100%;
  position: relative;
}

.course-listings-picklist-container .btn-course-listings-filter {
  background-color: #FFF116;
}

.course-listings-picklist-container .btn-course-listings-filter:focus,
.course-listings-picklist-container .btn-course-listings-filter:hover,
.course-listings-picklist-container .btn-course-listings-filter:active {
  background-color: #07BED7;
}

.course-listings-picklist-container select,
.course-listings-picklist-container .ss-main {
  min-height: 40px;
  background: #FFF;
  border: 1px solid #000;
  border-radius: 5px;
  color: #808080;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
}

/* Hide native browser clear button (Chrome, Safari, Edge) */
.search-input-wrapper .course-listing-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Show magnifier when input is empty (placeholder shown) */
.search-input-wrapper .course-listing-search-input:placeholder-shown {
  background-image: url("/wp-content/plugins/rcslt/assets/images/svg/magnifier-black.svg") !important;
  background-position: center right 15px !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  padding-right: 45px !important;
}

/* Hide magnifier when input has value (clear button will be visible) */
.search-input-wrapper .course-listing-search-input:not(:placeholder-shown) {
  background-image: none !important;
  padding-right: 45px !important;
}

/* Hide magnifier when focused or active */
.search-input-wrapper .course-listing-search-input:focus,
.search-input-wrapper .course-listing-search-input:active {
  background-image: none !important;
}

.btn-clear-input-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #666;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 10;
  width: 20px;
  height: 20px;
}

/* Show clear button when search input has a value (using :placeholder-shown) */
.search-input-wrapper input[type="search"]:not(:placeholder-shown) ~ .btn-clear-input-search {
  display: flex;
}

/* Also show if input has focus and has content */
.search-input-wrapper input[type="search"]:focus:not(:placeholder-shown) ~ .btn-clear-input-search {
  display: flex;
}

.btn-clear-input-search:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

.btn-clear-input-search:focus {
  outline: 2px solid #07BED7;
  border-radius: 50%;
}

.btn-reset-filters {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  width: 75px;
  margin-top: 43px;
  text-wrap: nowrap;
  display: block;
}

.courses-pagination-container .pagination-information {
  opacity: 0.5;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

@media (max-width: 991px) {
  .course-listings-picklist-container .offcanvas.offcanvas-end {
    max-width: 320px;
  }

  .cen-block-section .cen-search-form {
    padding: 0;
  }

  .course-listings-picklist-container .offcanvas-body {
    flex-direction: column;
  }

  .course-listings-picklist-container .offcanvas.offcanvas-end {
    z-index: 10000;
  }

  .course-listings-search-form .search-input-container input[type="search"] {
    width: 100%;
  }

  .course-listings-picklist-container .btn-reset-filters {
    margin: 0;
  }

  .courses-pagination-container .nav-links {
    flex-direction: column;
  }
}

@media (min-width: 992px) {
  .search-input-container {
    justify-content: start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .course-listings-picklist-container .offcanvas.offcanvas-end {
    position: relative;
    width: 100%;
    padding: 0;
    visibility: visible;
    background: transparent;
    border: none;
    transform: unset;
    transition: none;
    z-index: 1;
  }

  .course-listings-picklist-container .offcanvas-body {
    justify-content: space-between;
    padding: 20px 0 0;
  }

  .course-listings-picklist-container .cen-filter {
    max-width: 24%;
  }

  .course-listings-picklist-container .offcanvas-header {
    display: none;
  }
}

.offcanvas-header .btn-close {
  display: flex;
  min-width: 32px;
  height: 22px;
  flex-direction: row;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  background-position: center left;
  background-size: 10px 10px;
}


.courses-pagination-container .nav-links .btn-primary {
  background-color: #ffffff;
  border-color: #E8E9EC;
  box-shadow: none;
  color: #000000;
  padding: 5px 11px;
  margin-left: 7px;
  margin-right: 7px;
}

.courses-pagination-container .nav-links .btn-primary.current {
  color: #ffffff;
  box-shadow: none;
  background-color: #40abfc;
  border-color: #40abfc;
}

.courses-pagination-container .nav-links .btn-primary:hover,
.courses-pagination-container .nav-links .btn-primary:focus {
  color: #ffffff;
  background-color: #40abfc;
}

.courses-pagination-container .nav-links .page-numbers:disabled {
  background-color: #ffffff;
  border-color: #E8E9EC;
  opacity: 0.4;
  box-shadow: none;
}

.no-results-course-listings {
  max-width: 370px;
  margin: 0 auto;
}

.no-results-course-listings .title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.no-results-course-listings .sub-title {
  opacity: 0.5;
  color: #000;
  font-size: 16px;
  font-weight: 400;
}
