/* site overrides */

/* Homepage programme search results — solid panel above page content */
.hero{overflow:visible}
.programme-bar{z-index:200}
.find-box{z-index:210}
.find-results{
  background:#ffffff !important;
  border:1px solid #E6EFFF;
  box-shadow:0 22px 48px rgba(3,19,48,.35);
  z-index:220;
  isolation:isolate;
  opacity:1;
}
.find-results-item,
.find-results-group,
.find-results-label{
  background-color:#ffffff;
}
.find-results-item:hover,
.find-results-item.is-active{
  background-color:#f3f6fb;
}

/* Scrollable nice-select dropdowns sitewide (states/districts/courses) */
.nice-select.open {
  z-index: 100;
}
.nice-select .list {
  max-height: 240px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Single dropdown caret (hide theme/bootstrap double-chevron) */
.nice-select::before {
  display: none !important;
  content: none !important;
  background: none !important;
}
.nice-select:after {
  border-bottom: 2px solid #5B6D84;
  border-right: 2px solid #5B6D84;
  height: 8px;
  width: 8px;
  margin-top: -5px;
  right: 16px;
}
select.form-select + .nice-select {
  background-image: none !important;
}

/* ===== Courses category pills (courses listing pages) ===== */
.courses-page .site-header {
  position: fixed;
}

.course-cat-bar {
  margin-top: 110px;
  background: #fff;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.course-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  justify-content: center;
  align-items: center;
}

.course-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #2a2a2a;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.course-cat-pill i {
  font-size: 0.95rem;
  color: #8a6d1f;
}

.course-cat-pill:hover {
  border-color: #c9a227;
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.course-cat-pill.active {
  background: #c9a227;
  border-color: #c9a227;
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.course-cat-pill.active i {
  color: #fff;
}

.course-listing-section {
  background: #f7f8fa;
  min-height: 40vh;
}

.course-listing-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-listing-icon {
  font-size: 1.75rem;
  color: #c9a227;
}

.course-listing-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #14265c;
  margin: 0;
  line-height: 1.25;
}

.course-listing-desc {
  color: #555;
  max-width: 720px;
}

.course-empty-state {
  background: #fff;
  border: 1px dashed #d0d0d0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 8px;
}

.course-empty-state p {
  color: #666;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .course-cat-bar {
    margin-top: 90px;
    padding: 0.85rem 0;
  }

  .course-cat-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
}
