/* OGC Course Directory V1 — 29 November 2026 */

/* Nairobi city image hero, styled consistently with the individual course pages. */
.catalogue-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 390px;
  padding: 78px 0 82px;
  overflow: hidden;
  background-color: #102b38;
  background-image:
    linear-gradient(90deg, rgba(7, 34, 45, .94) 0%, rgba(7, 34, 45, .84) 43%, rgba(7, 34, 45, .38) 100%),
    linear-gradient(0deg, rgba(7, 34, 45, .42), rgba(7, 34, 45, .04) 58%),
    url('../images/ogc-nairobi-course-directory-hero-v1.webp');
  background-size: cover;
  background-position: center 52%;
}

.catalogue-hero > .container {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 48px));
}

.catalogue-hero .eyebrow {
  color: #8be1bf;
}

.catalogue-hero h1 {
  max-width: 930px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}

.catalogue-hero p {
  max-width: 790px;
  color: rgba(239, 248, 247, .88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .16);
}

.catalogue-proof {
  color: #e1efec;
}

/* Keep every control in the catalogue filter pane on the site's Urbanist typeface. */
.catalogue .filters,
.catalogue .filters *,
.catalogue .filters *::before,
.catalogue .filters *::after {
  font-family: 'Urbanist', sans-serif !important;
}

.catalogue .filters label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.catalogue .filters input,
.catalogue .filters select {
  font-family: 'Urbanist', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.catalogue .filters input::placeholder {
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
}

.catalogue .filters select option {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
}

.catalogue .filter-heading h3 {
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 800;
}

.catalogue .filters .btn {
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 800;
}

/* Four-line course summaries with a native, accessible expansion control. */
.catalogue-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalogue-card .course-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
}

.catalogue-card .course-body p.course-summary {
  min-height: 0;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #687e85);
}

.ogc-course-directory-js .catalogue-card .course-body p.course-summary:not(.is-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.ogc-course-directory-js .catalogue-card .course-body p.course-summary.is-expanded {
  display: block;
  overflow: visible;
}

.course-summary-toggle {
  align-self: flex-start;
  margin: 7px 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #218b6c;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
}

.course-summary-toggle:hover {
  color: #126b51;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-summary-toggle:focus-visible {
  outline: 2px solid #218b6c;
  outline-offset: 4px;
  border-radius: 3px;
}

.catalogue-card .course-body > .course-card-link {
  margin-top: auto;
  padding-top: 13px;
}

/* Highlight the fee after duration, delivery and level in each course detail hero. */
.detail-hero-tags .detail-hero-fee {
  border-color: rgba(139, 225, 191, .55);
  background: rgba(59, 191, 147, .19);
  color: #effff8;
  font-weight: 800;
}

@media (max-width: 700px) {
  .catalogue-hero {
    min-height: 350px;
    padding: 58px 0 62px;
    background-position: 58% center;
  }

  .catalogue-hero > .container {
    width: calc(100% - 32px);
  }

  .catalogue-hero h1 {
    max-width: 100%;
    font-size: clamp(35px, 8vw, 48px);
  }

  .catalogue-hero p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-summary-toggle {
    transition: none;
  }
}
