.h2o-courses-main {
  background: #fff;
  padding: 0;
}

.h2o-courses {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  box-sizing: border-box;
  font-family: Muli, Mulish, system-ui, sans-serif;
  color: #1e2a31;
}

.h2o-courses__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.h2o-courses__count {
  margin-left: auto;
  color: #5a6b75;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.h2o-courses__filter .h2o-chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 21px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.h2o-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h2o-course {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 52, 70, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.h2o-course[hidden] {
  display: none;
}

.h2o-course:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 52, 70, .18);
}

.h2o-course__img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0b3446;
}

.h2o-course__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.h2o-course:hover .h2o-course__img img {
  transform: scale(1.05);
}

.h2o-course__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(11, 52, 70, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2o-course__sale {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 14px;
  background: #c2410c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.h2o-course__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.h2o-course__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 8px;
  color: #12708c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.h2o-course__level {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5a6b75;
}

.h2o-course__kicker-cat + .h2o-course__level::before {
  content: "·";
  margin-right: 2px;
  color: #c9d3d9;
}

.h2o-course__dots {
  display: inline-flex;
  gap: 3px;
}

.h2o-course__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dee3;
}

.h2o-course__dots i.is-on {
  background: #12708c;
}

.h2o-course__title {
  min-height: 2.3em;
  margin: 0 0 16px !important;
  padding: 0;
  border: 0;
  font-size: 22px !important;
  line-height: 1.15 !important;
  text-transform: none;
}

.h2o-course__title a {
  color: #0b3446 !important;
  text-decoration: none;
}

.h2o-course__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.h2o-course__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #3d4b53;
  font-size: 14px;
  font-weight: 600;
}

.h2o-course__meta svg {
  flex: none;
  color: #5a6b75;
}

.h2o-course__fact--duration {
  order: 1;
}

.h2o-course__fact--rating {
  order: 2;
}

.h2o-course__fact--locations {
  order: 3;
}

.h2o-course__fact--group {
  order: 4;
}

.h2o-course__meta .h2o-course__unit {
  color: #5a6b75;
  font-weight: 600;
}

.h2o-course__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.h2o-course__star {
  color: #e8a33d;
  font-size: 16px;
}

.h2o-course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e6eef1;
}

.h2o-course__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 26px !important;
  font-weight: 700;
  line-height: 1.05;
  color: #0b3446 !important;
}

.h2o-course__price .amount,
.h2o-course__price bdi {
  color: inherit !important;
}

.h2o-course__price del,
.h2o-course__price del bdi {
  font-size: 15px;
  color: #5a6b75 !important;
  opacity: 1;
}

.h2o-course__price ins,
.h2o-course__price ins bdi {
  text-decoration: none;
  color: #c2410c !important;
}

.h2o-course__next {
  margin-left: auto;
  color: #12708c !important;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none !important;
}

.h2o-course:hover .h2o-course__next {
  color: #0d566c !important;
}

.h2o-courses__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 56px;
  padding: 36px 40px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #0b3446 0%, #12708c 100%);
  color: #d7e3ea;
}

.h2o-courses__cta h2 {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
}

.h2o-courses__cta p {
  margin: 0;
  font-size: 16px;
}

.h2o-courses__cta > div {
  position: relative;
  z-index: 1;
}

.h2o-courses__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.h2o-courses__cta-actions a {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .14);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.h2o-courses__cta-actions a.is-primary {
  background: #fff;
  color: #0b3446 !important;
}

.h2o-courses__cta-bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
}

.h2o-courses__cta-bubble--1 {
  width: 160px;
  height: 160px;
  right: -40px;
  top: -60px;
}

.h2o-courses__cta-bubble--2 {
  width: 40px;
  height: 40px;
  right: 150px;
  bottom: 18px;
}

@media (max-width: 1024px) {
  .h2o-courses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .h2o-courses {
    padding: 8px 16px 56px;
  }

  .h2o-courses__filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }

  .h2o-courses__filter .h2o-chip {
    flex: none;
  }

  .h2o-courses__count {
    display: none;
  }

  .h2o-courses__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .h2o-courses__cta {
    padding: 28px 24px;
  }

  .h2o-courses__cta h2 {
    font-size: 28px !important;
  }
}

.h2o-courses__filter .h2o-chip {
  border: 1px solid #c9d3d9 !important;
  background: #fff !important;
  color: #1e2a31 !important;
  font-weight: 700;
  box-shadow: none !important;
}

.h2o-courses__filter .h2o-chip.is-active {
  border-color: #12708c !important;
  background: #12708c !important;
  color: #fff !important;
}

.h2o-course__meta .h2o-course__when {
  display: none;
}

@media (max-width: 640px) {
  .h2o-courses-main {
    background: #f2f6f8;
  }

  body:has(.h2o-courses-main) .h2o-hero__wave path:last-child {
    fill: #f2f6f8;
  }

  .h2o-courses__filter {
    margin-bottom: 16px;
    padding-top: 16px;
  }

  .h2o-courses .h2o-courses__grid {
    gap: 10px;
  }

  .h2o-courses .h2o-course {
    position: relative;
    flex-direction: row;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(11, 52, 70, .06);
  }

  .h2o-courses .h2o-course:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(11, 52, 70, .06);
  }

  .h2o-courses .h2o-course__img {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 12px;
  }

  .h2o-courses .h2o-course__badge,
  .h2o-courses .h2o-course__dots,
  .h2o-courses .h2o-course__fact--duration,
  .h2o-courses .h2o-course__fact--group,
  .h2o-courses .h2o-course__next {
    display: none;
  }

  .h2o-courses .h2o-course__sale {
    left: 6px;
    right: auto;
    top: 6px;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 11px;
  }

  .h2o-courses .h2o-course__body {
    min-width: 0;
    padding: 0;
  }

  .h2o-courses .h2o-course__kicker {
    gap: 2px 6px;
    margin: 0 0 3px;
    font-size: 11px;
  }

  .h2o-courses .h2o-course__title {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 4px !important;
    overflow: hidden;
    font-size: 18px !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .h2o-courses .h2o-course__unit,
  .h2o-courses .h2o-course__meta svg {
    display: none;
  }

  .h2o-courses .h2o-course__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 6px;
    font-size: 12px;
  }

  .h2o-courses .h2o-course__meta li {
    order: 0;
  }

  .h2o-courses .h2o-course__meta li + li::before {
    content: "·";
    margin: 0 5px;
  }

  .h2o-courses .h2o-course__meta .h2o-course__when {
    display: inline-flex;
    flex-basis: 100%;
  }

  .h2o-courses .h2o-course__meta .h2o-course__when::before {
    display: none;
  }

  .h2o-courses .h2o-course__star {
    font-size: 13px;
  }

  .h2o-courses .h2o-course__foot {
    padding: 0;
    border: 0;
  }

  .h2o-courses .h2o-course__foot::after {
    content: "›";
    margin-left: auto;
    color: #0b3446;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
  }

  .h2o-courses .h2o-course__price {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    font-size: 20px !important;
  }

  .h2o-courses .h2o-course__price del,
  .h2o-courses .h2o-course__price del bdi {
    font-size: 13px;
  }
}
