/* All Courses page */
:root { --cl-blue: #5f76a4; --cl-blue-dark: #4b6190; --cl-line: #e9e9e9; --cl-text: #666; }

/* Banner: blue block with the title, grey strip with the breadcrumb */
.cl-banner { background: var(--cl-blue); padding: 74px 0; text-align: center; }
.cl-banner h1 { margin: 0; font-size: 38px; font-weight: 600; color: #222; }
.cl-crumbs { background: #f3f3f3; padding: 20px 0; text-align: center; }
.cl-crumbs .breadcrumb { justify-content: center; margin: 0; font-size: 15px; }
.cl-crumbs .breadcrumb-item a { color: #222; }
.cl-crumbs .breadcrumb-item.active { color: #222; }
.cl-crumbs .breadcrumb-item + .breadcrumb-item::before { color: #555; }

.cl-section { padding: 44px 0 90px; }

/* Toolbar */
.cl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 36px; }
.cl-toolbar-left, .cl-toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-layout { display: flex; gap: 8px; }
.cl-layout a { font-size: 26px; line-height: 1; color: var(--cl-blue); opacity: .55; }
.cl-layout a.active, .cl-layout a:hover { opacity: 1; color: var(--cl-blue); }
.cl-count { font-size: 18px; color: #555; margin-left: 14px; }
.cl-select { height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--cl-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 17px; color: #333; border-radius: 2px; }
.cl-search { position: relative; }
.cl-search input { height: 42px; width: 337px; max-width: 100%; border: 1px solid var(--cl-line); padding: 0 46px 0 14px; font-size: 17px; border-radius: 2px; outline: none; }
.cl-search input:focus, .cl-select:focus { border-color: var(--cl-blue); }
.cl-search button { position: absolute; right: 0; top: 0; height: 42px; width: 44px; border: 0; background: transparent; color: #aaa; font-size: 17px; }
.cl-search button:hover { color: var(--cl-blue); }

/* List rows */
.cl-list { display: flex; flex-direction: column; }
.cl-item { display: flex; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--cl-line); }
.cl-item:first-child { padding-top: 0; }
.cl-item:last-child { border-bottom: 0; }
.cl-thumb { flex: 0 0 338px; max-width: 42%; align-self: flex-start; overflow: hidden; border-radius: 4px; display: block; aspect-ratio: 4 / 3; background: #f3f3f3; }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cl-item:hover .cl-thumb img { transform: scale(1.04); }
.cl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-title { font-size: 26px; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }
.cl-title a { color: #222; }
.cl-title a:hover { color: var(--cl-blue); }
.cl-excerpt { font-size: 18px; line-height: 1.9; color: var(--cl-text); margin: 0 0 22px; }
.cl-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; color: #555; font-size: 18px; }
.cl-author { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: #666; padding-right: 26px; border-right: 1px solid var(--cl-line); }
.cl-avatar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #1c5fd8; color: #1c5fd8; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.cl-stat { padding: 0 26px; border-right: 1px solid var(--cl-line); }
.cl-stat i { margin-right: 6px; }

.cl-empty { text-align: center; padding: 70px 0; color: #777; }
.cl-empty i { font-size: 48px; color: #ccc; display: block; margin-bottom: 10px; }

/* Sidebar */
.cl-filter-card { border: 1px solid var(--cl-line); padding: 26px 24px 30px; margin-bottom: 40px; }
.cl-filter-title { font-size: 22px; font-weight: 600; margin: 0 0 14px; color: #222; }
.cl-filter-title:not(:first-child) { margin-top: 26px; }
.cl-filter-list { list-style: none; margin: 0; padding: 0; }
.cl-filter-list li { margin-bottom: 8px; }
.cl-filter-list label { display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; font-size: 18px; color: #555; }
.cl-filter-list input { position: absolute; opacity: 0; }
.cl-check { width: 20px; height: 20px; border: 1px solid #b9b9b9; border-radius: 2px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.cl-filter-list input:checked + .cl-check { background: var(--cl-blue); border-color: var(--cl-blue); }
.cl-filter-list input:checked + .cl-check::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cl-filter-list input:focus-visible + .cl-check { outline: 2px solid var(--cl-blue); outline-offset: 2px; }
.cl-opt-label { flex: 1; }
.cl-opt-count { color: #888; }
.cl-filter-actions { display: flex; gap: 10px; margin-top: 26px; }
.cl-btn { flex: 1; text-align: center; padding: 15px 10px; font-size: 16px; text-transform: uppercase; border-radius: 2px; border: 1px solid var(--cl-blue); cursor: pointer; display: inline-block; line-height: 1.2; }
.cl-btn-solid { background: var(--cl-blue); color: #fff; }
.cl-btn-solid:hover { background: var(--cl-blue-dark); border-color: var(--cl-blue-dark); }
.cl-btn-outline { background: #fff; color: #333; border-color: var(--cl-line); }
.cl-btn-outline:hover { color: var(--cl-blue); border-color: var(--cl-blue); }

.cl-side-title { font-size: 24px; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; color: #222; }
.cl-side-links { list-style: none; padding: 0; margin: 0 0 40px; }
.cl-side-links a { font-size: 18px; color: #555; }
.cl-side-links a:hover { color: var(--cl-blue); }
.cl-latest-item { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.cl-latest-item img { width: 112px; height: 102px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.cl-latest-item span { font-family: "Roboto Slab", serif; font-size: 20px; font-weight: 500; line-height: 1.5; color: #222; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-latest-item:hover span { color: var(--cl-blue); }

/* Responsive */
@media (max-width: 991.98px) {
  .cl-banner { padding: 54px 0; }
  .cl-banner h1 { font-size: 32px; }
  .cl-toolbar-right { width: 100%; }
  .cl-search { flex: 1; }
  .cl-search input { width: 100%; }
}
@media (max-width: 767.98px) {
  .cl-item { flex-direction: column; gap: 18px; }
  .cl-thumb { flex-basis: auto; max-width: 100%; width: 100%; }
  .cl-title { font-size: 22px; }
  .cl-excerpt, .cl-meta { font-size: 16px; }
  .cl-count { font-size: 16px; margin-left: 6px; }
  .cl-author { padding-right: 16px; }
  .cl-stat { padding: 0 16px; }
}
