/* Course listing (/courses), in the homepage's design: cream hero with search, format chips,
   a filter column and the homepage's program cards. Everything is scoped under #coursesPage. */
#coursesPage {
    --cl-green: #004238;
    --cl-deep: #01372f;
    --cl-accent: #D5D52B;
    --cl-cream: #F5F3EB;
    --cl-sage: #E9EBE0;
    --cl-ink: #0c1f1a;
    --cl-muted: #4B5850;
    --cl-line: #E3E1D6;
    --cl-line-2: #D8D6CA;
    background: #fff;
    color: var(--cl-ink);
    font-size: 16px;
    line-height: 1.5;
}
#coursesPage *, #coursesPage *::before, #coursesPage *::after { box-sizing: border-box; }
#coursesPage h1, #coursesPage h2, #coursesPage h3, #coursesPage p { margin: 0; }
/* :where() keeps the reset at element weight, so component colours (.cl-format.is-on, .cl-card-btn) win */
:where(#coursesPage) a { text-decoration: none; color: inherit; }
#coursesPage [hidden] { display: none !important; }
#coursesPage .cl-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.cl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero */
.cl-hero { background: var(--cl-cream); padding: 18px 0 0; }
.cl-crumbs { display: flex; gap: 10px; font-size: 12.5px; color: var(--cl-muted); margin-bottom: 44px; }
.cl-crumbs a:hover { color: var(--cl-green); text-decoration: underline; }
.cl-hero-grid { display: grid; grid-template-columns: minmax(0, 760px); padding-bottom: 36px; }
.cl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3E4C44; display: flex; align-items: center; gap: 8px; margin-bottom: 18px !important; }
.cl-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--cl-green); border-radius: 2px; }
.cl-hero h1 { font-size: 60.72px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; color: var(--cl-green); }
.cl-lead { font-size: 17px; color: var(--cl-muted); line-height: 1.65; max-width: 46ch; margin-top: 18px !important; }
.cl-search { position: relative; margin: 0; }
.cl-search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--cl-line-2); border-radius: 12px; padding: 0 6px 0 16px; min-height: 56px; background: #fff; margin: 0; cursor: text; transition: border-color .15s, box-shadow .15s; }
.cl-search-box:focus-within { border-color: var(--cl-green); box-shadow: 0 0 0 4px rgba(0, 66, 56, .08); }
.cl-search-box > .cl-ico { color: var(--cl-muted); }
.cl-search-box input { border: 0; outline: none; font: inherit; font-size: 15.5px; flex: 1; min-width: 0; background: transparent; color: var(--cl-ink); padding: 0; height: 52px; box-shadow: none; }
.cl-search-box button { flex: none; border: 0; border-radius: 9px; background: var(--cl-green); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; cursor: pointer; transition: background-color .15s; }
.cl-search-box button:hover { background: var(--cl-deep); }
.cl-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(12, 31, 26, .35); max-height: 360px; overflow-y: auto; }
.cl-suggest a, .cl-suggest-none { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--cl-ink); font-size: 14px; border-bottom: 1px solid #F0EEE6; }
.cl-suggest a small { font-size: 11.5px; color: var(--cl-muted); white-space: nowrap; }
.cl-suggest a:hover, .cl-suggest a.is-active { background: #F2F1EA; }
.cl-suggest-none { color: var(--cl-muted); }
.cl-suggest .cl-suggest-all { font-size: 13px; font-weight: 600; color: var(--cl-green); background: #F7F6F0; border-bottom: 0; }

/* format chips: a strip along the bottom of the hero */
.cl-formats { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid var(--cl-line-2); }
.cl-format { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 9px 16px; border: 1px solid var(--cl-line-2); border-radius: 8px; background: #fff; color: var(--cl-ink); transition: border-color .15s, background-color .15s, color .15s; }
.cl-format:hover { border-color: var(--cl-green); color: var(--cl-green); }
.cl-format.is-on { background: var(--cl-green); border-color: var(--cl-green); color: #fff; font-weight: 600; }

/* filters + results */
.cl-body { padding: 44px 0 110px; }
.cl-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 44px; align-items: start; }
.cl-aside { align-self: start; border-right: 1px solid var(--cl-line); padding-right: 22px; }
.cl-scroll { max-height: 236px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.cl-aside-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cl-aside-head h2 { font-size: 18px; font-weight: 600; }
.cl-aside-head a, .cl-aside-close { font-size: 13px; font-weight: 600; color: var(--cl-green); }
.cl-aside-close { display: none; border: 0; background: none; cursor: pointer; font: inherit; }
.cl-group { border-top: 1px solid var(--cl-line); padding: 16px 0; }
.cl-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-muted); margin-bottom: 10px; }
.cl-opt { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; color: #34403A; cursor: pointer; margin: 0; }
.cl-opt input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--cl-green); }
.cl-opt:has(input:checked) { color: var(--cl-green); font-weight: 600; }
.cl-opt:hover { color: var(--cl-green); }
.cl-count { margin-left: auto; font-size: 12px; color: #8A9189; font-weight: 400; }
.cl-range { margin-top: 10px; }
.cl-range-row { display: flex; align-items: flex-end; gap: 8px; }
.cl-range-row label { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--cl-muted); margin: 0; }
.cl-range-row input { width: 100%; margin-top: 4px; border: 1px solid var(--cl-line-2); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13.5px; color: var(--cl-ink); background: #fff; }
.cl-range-row input:focus { outline: none; border-color: var(--cl-green); }
.cl-range-sep { padding-bottom: 8px; color: #8A9189; }
.cl-range input[type=range] { width: 100%; margin: 12px 0 2px; accent-color: var(--cl-green); }
.cl-range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: #8A9189; }
.cl-range-apply { margin-top: 10px; width: 100%; border: 1px solid var(--cl-green); background: #fff; color: var(--cl-green); font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: background-color .15s, color .15s; }
.cl-range-apply:hover { background: var(--cl-green); color: #fff; }

.cl-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cl-total { font-size: 15px; color: var(--cl-muted); }
.cl-total b { color: var(--cl-ink); font-weight: 600; }
.cl-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cl-muted); }
.cl-sort select { border: 1px solid var(--cl-line-2); border-radius: 8px; padding: 8px 30px 8px 12px; font: inherit; font-size: 14px; color: var(--cl-ink); background: #fff; cursor: pointer; }
.cl-sort select:focus { outline: none; border-color: var(--cl-green); }
.cl-filters-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--cl-line-2); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--cl-ink); padding: 8px 14px; cursor: pointer; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--cl-sage); color: var(--cl-green); border-radius: 999px; padding: 6px 10px 6px 13px; transition: background-color .15s; }
.cl-chip:hover { background: #DEE1D2; }
.cl-chip .cl-ico { width: 14px; height: 14px; }
.cl-chips-clear { font-size: 13px; font-weight: 600; color: var(--cl-green); text-decoration: underline !important; margin-left: 4px; }

/* the homepage's program card, with the price, the wishlist heart and the course's main action */
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cl-line); border-radius: 16px; padding: 8px; box-shadow: 0 6px 18px -14px rgba(12, 31, 26, .35); transition: box-shadow .2s, transform .2s; }
.cl-card:hover { box-shadow: 0 18px 38px -22px rgba(12, 31, 26, .45); transform: translateY(-2px); }
.cl-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; border-radius: 10px; background: #E4E1D2; color: #8A866F; overflow: hidden; }
.cl-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-card-img .cl-ico { width: 30px; height: 30px; stroke-width: 1.5; }
.cl-flag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11.5px; font-weight: 600; background: var(--cl-accent); color: var(--cl-deep); border-radius: 6px; padding: 4px 9px; }
.cl-wish { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #46524b; box-shadow: 0 2px 8px rgba(6, 18, 14, .18); transition: color .15s; }
.cl-wish svg { width: 17px; height: 17px; }
.cl-wish:hover { color: #d9423a; }
.cl-wish.on { color: #ef4444; }
.cl-wish.on svg { fill: #ef4444; }
.cl-wish.is-busy { opacity: .55; pointer-events: none; }
.cl-badge { position: relative; z-index: 1; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: calc(100% - 16px); min-height: 44px; margin: -24px 0 0 8px; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 4px 14px -6px rgba(12, 31, 26, .35); font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.cl-badge img { height: 30px; width: auto; max-width: 96px; object-fit: contain; flex: none; }
.cl-badge img.is-person { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cl-badge span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 10px 6px; }
.cl-card-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-width: 0; }
.cl-card-type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-muted); white-space: nowrap; }
.cl-card-cat { font-size: 11.5px; font-weight: 600; color: var(--cl-green); background: var(--cl-sage); border-radius: 999px; padding: 3px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.cl-card-row .cl-card-meta { margin-top: 0; }
.cl-card-edu { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cl-ink); margin: 0 !important; min-width: 0; max-width: 50%; }
.cl-card-edu img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.cl-card-edu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card-title { font-size: 15.5px; font-weight: 500; line-height: 1.38; min-height: calc(1.38em * 2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 14px !important; }
.cl-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 16px; } /* the whole card opens the course */
.cl-card-title a:hover { color: var(--cl-green); }
.cl-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--cl-muted); margin-top: auto; }
.cl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EFEDE4; }
.cl-price { font-size: 16px; font-weight: 600; color: var(--cl-green); white-space: nowrap; }
.cl-price s { font-size: 12.5px; font-weight: 400; color: #8A9189; margin-left: 4px; }
.cl-rating { font-size: 12.5px; color: var(--cl-muted); white-space: nowrap; margin-left: auto; }
.cl-rating b { color: #B88A0B; }
.cl-card-btn { position: relative; z-index: 1; display: block; width: 100%; text-align: center; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--cl-line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--cl-green); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.cl-card-btn:hover { border-color: var(--cl-green); background: var(--cl-green); color: #fff; }
.cl-card form { margin: 0; position: relative; z-index: 1; }
.cl-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--cl-line-2); border-radius: 16px; color: var(--cl-muted); }
.cl-empty h3 { font-size: 20px; font-weight: 600; color: var(--cl-ink); margin-bottom: 6px; }
.cl-empty a { color: var(--cl-green); font-weight: 600; text-decoration: underline; }
.cl-more { display: flex; justify-content: center; margin-top: 44px; position: relative; z-index: 2; }
.cl-more button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; background: var(--cl-green); color: #fff; font: inherit; font-size: 15px; font-weight: 600; padding: 14px 30px; cursor: pointer; transition: background-color .15s; }
.cl-more button:hover { background: var(--cl-deep); }
.cl-more button:disabled { opacity: .65; cursor: default; }
.cl-backdrop { display: none; }

@media (max-width: 1100px) {
    .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .cl-hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .cl-crumbs { margin-bottom: 30px; }
    .cl-layout { grid-template-columns: 1fr; gap: 0; }
    /* the filter column becomes a drawer */
    .cl-aside { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; max-height: none; overflow-y: auto; border-right: 0; z-index: 1201; background: #fff; padding: 22px 20px; transform: translateX(-100%); transition: transform .22s; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
    .cl-aside.open { transform: none; }
    .cl-aside-close { display: inline; }
    .cl-backdrop.open { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(12, 31, 26, .4); }
    .cl-filters-btn { display: inline-flex; }
}
@media (max-width: 680px) {
    .cl-hero h1 { font-size: 40px; }
    .cl-wrap { padding: 0 16px; }
    .cl-body { padding: 28px 0 80px; }
    .cl-formats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 16px 16px 20px; scrollbar-width: none; }
    .cl-formats::-webkit-scrollbar { display: none; }
    .cl-format { flex: none; white-space: nowrap; }
    .cl-search-box button { padding: 11px 14px; }
    .cl-sort { margin-left: 0; width: 100%; }
    .cl-sort select { flex: 1; }
}
@media (max-width: 560px) {
    .cl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    #coursesPage * { transition: none !important; }
    .cl-card:hover { transform: none; }
}

/* the search sits in the results bar, between the count and Sort by */
.cl-search-bar { flex: 0 1 360px; margin: 0 0 0 auto; }
.cl-search-bar .cl-search-box { min-height: 42px; padding: 0 4px 0 14px; border-radius: 10px; border-width: 1px; background: #FAFAF6; }
.cl-search-bar .cl-search-box:focus-within { background: #fff; }
.cl-search-bar .cl-search-box > .cl-ico { width: 16px; height: 16px; }
.cl-search-bar .cl-search-box input { height: 38px; font-size: 14px; }
.cl-search-bar .cl-search-box input::placeholder { color: #8A9189; }
.cl-search-bar .cl-search-box button { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.cl-topbar .cl-sort { margin-left: 0; }
@media (max-width: 680px) {
    .cl-search-bar { flex-basis: 100%; max-width: none; order: 3; }
    .cl-topbar .cl-sort { order: 4; }
}
