.courses-page {
  background-image: url("../images/courses-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  overflow-x: hidden;
}

.courses-page .courses-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 8px;
}

.courses-page .courses-kicker {
  display: inline-block;
  font-family: "Jost", sans-serif;
  color: #d48a07;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.courses-page .courses-heading h2 {
  font-family: "Jost", sans-serif;
  font-size: 42px;
  line-height: 1.15;
  color: #4b2a20;
  font-weight: 600;
  margin: 5px 0;
}

.courses-page .courses-divider {
  position: relative;
  width: max-content;
  margin: 8px auto 0;
  font-size: 28px;
  line-height: 1;
  color: #c89b4d;
}

.courses-page .courses-divider::before,
.courses-page .courses-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: #d4b06d;
}

.courses-page .courses-divider::before {
  right: 40px;
}

.courses-page .courses-divider::after {
  left: 40px;
}

.courses-page .courses-lead {
  color: #555;
  line-height: 1.8;
  margin: 18px auto 28px;
  max-width: 640px;
  text-align: center;
}

.courses-page .courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.courses-page .courses-toolbar.is-guest {
  justify-content: center;
}

.courses-page .courses-toolbar.is-guest .course-search-box {
  margin-left: 0;
}

.courses-page .course-scope-toggle {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  min-height: 44px;
  box-shadow: rgba(17, 17, 26, 0.08) 0 0 8px;
}

.courses-page .course-scope-toggle .scope-btn {
  appearance: none;
  border: 0;
  background: #bdbcbc;
  color: #fff;
  margin: 0;
  padding: 0 18px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.courses-page .course-scope-toggle .scope-btn.active,
.courses-page .course-scope-toggle .scope-btn.active:hover {
  background: #e48800;
  color: #fff;
}

.courses-page .course-search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
  margin-left: auto;
}

.courses-page .course-search-box .bi-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a7a7a;
  pointer-events: none;
}

.courses-page .course-search-box .course-search-input {
  display: block;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 30px;
  padding: 0 18px 0 42px;
  background: #fff;
  color: #2a1212;
  font-size: 15px;
  font-family: inherit;
  box-shadow: rgba(17, 17, 26, 0.08) 0 0 8px;
}

.courses-page .course-search-box .course-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e48800;
}

.courses-page .custom-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
}

.courses-page .custom-tabs .tab-btn {
  appearance: none;
  background: #bdbcbc;
  border: 0;
  color: #fff;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 30px;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}

.courses-page .custom-tabs .tab-btn:hover,
.courses-page .custom-tabs .tab-btn.active,
.courses-page .custom-tabs .tab-btn.active:hover {
  background: #e48800;
  color: #fff;
}

.courses-page .custom-tabs .tab-btn.active::after {
  display: none;
}

.courses-page .courses-result-count {
  text-align: center;
  color: #6b5b5b;
  margin-bottom: 18px;
}

.courses-page .program-parent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.courses-page .course-grid-item {
  display: flex;
  min-width: 0;
}

.courses-page .course-grid-item.is-hidden {
  display: none !important;
}

.courses-page .course-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow:
    rgba(17, 17, 26, 0.05) 0 1px 0,
    rgba(17, 17, 26, 0.1) 0 0 8px;
  transition: transform 0.25s ease;
}

.courses-page .course-card:hover {
  transform: translateY(-4px);
  color: inherit;
  text-decoration: none;
}

.courses-page .course-card-media {
  position: relative;
  height: 225px;
  background: #f3eeed;
  flex: 0 0 auto;
}

.courses-page .course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
}

.courses-page .course-card-media.is-placeholder img {
  object-fit: contain;
  padding: 18px;
}

.courses-page .course-owned-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e48800;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  z-index: 2;
}

.courses-page .program-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 20px 22px;
  text-align: center;
}

.courses-page .program-content h3 {
  font-size: 20px;
  margin: 4px 0;
  color: #795548;
  font-weight: 600;
  line-height: 1.35;
}

.courses-page .course-instructor {
  color: #8a7a7a;
  font-size: 14px;
  margin: 0;
}

.courses-page .course-blurb {
  color: #5e5c5c;
  font-size: 15px;
  line-height: 1.5;
  margin: 10px auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.courses-page .price {
  margin: 14px 0 16px;
}

.courses-page .price p {
  margin: 0;
  color: #f44336;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.courses-page .course-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px 30px;
  border: 1px solid #e48800;
  border-radius: 50px;
  color: #e48800;
  background: transparent;
  font-weight: 400;
  text-transform: capitalize;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.courses-page .course-card:hover .course-cta {
  background: #e48800;
  color: #fff;
}

.courses-page .courses-empty {
  padding: 12px 0 8px;
}

.courses-page .courses-empty-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  padding: 32px 24px;
  box-shadow: rgba(17, 17, 26, 0.1) 0 0 8px;
}

.courses-page .courses-empty-card h5 {
  color: #4b2a20;
  font-weight: 600;
}

.courses-page .course-empty-btn {
  appearance: none;
  background: transparent;
  color: #e48800;
  border: 1px solid #e48800;
  border-radius: 50px;
  min-height: 42px;
  padding: 8px 22px;
  font-weight: 500;
  cursor: pointer;
}

.courses-page .course-empty-btn:hover {
  background: #e48800;
  color: #fff;
}

@media (max-width: 991.98px) {
  .courses-page .program-parent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-page .courses-heading h2 {
    font-size: 34px;
  }
}

@media (max-width: 767.98px) {
  .courses-page {
    padding: 48px 0;
    background-attachment: scroll;
  }

  .courses-page .courses-heading h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
  }

  .courses-page .courses-title-break {
    display: block;
  }

  .courses-page .courses-divider::before,
  .courses-page .courses-divider::after {
    width: 48px;
  }

  .courses-page .custom-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 5px;
    row-gap: 10px;
    width: 100%;
  }

  .courses-page .custom-tabs .tab-btn {
    width: calc((100% - 15px) / 4);
    flex: 0 0 calc((100% - 15px) / 4);
    padding: 8px 2px;
    min-height: 40px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
  }

  .courses-page .courses-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-page .course-scope-toggle {
    display: flex;
    width: 100%;
  }

  .courses-page .course-scope-toggle .scope-btn {
    flex: 1 1 0;
  }

  .courses-page .course-search-box {
    flex: 1 1 auto;
    max-width: none;
    margin-left: 0;
    height: auto;
  }

  .courses-page .program-parent {
    grid-template-columns: 1fr;
  }

  .courses-page .course-card-media {
    height: 220px;
  }
}
