/* Course & package cards aligned with the Maz-inspired shop product card. */
.seko-learning-card-wrap {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  container-type: inline-size;
}

.seko-learning-card {
  width: 100%;
  min-width: 0;
  min-height: 188px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  color: #1f2937 !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 22px;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .07);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.seko-learning-card:hover {
  color: #111827 !important;
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .11);
}

.seko-learning-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 3px;
}

.seko-learning-card-media {
  flex: 0 0 122px;
  width: 122px;
  height: 122px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
  padding: 0;
  border-radius: 17px;
  background: #f8fafc;
  overflow: hidden;
}

.seko-learning-card-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.seko-learning-card-content {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0 1px;
}

.seko-learning-card-copy {
  min-width: 0;
}

.seko-learning-card-title {
  margin: 0 0 7px;
  color: #1f2937 !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seko-learning-card-description {
  margin: 0 0 7px;
  color: #7b8494 !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seko-learning-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b93a1;
  font-size: 11.5px;
  line-height: 1.5;
}

.seko-learning-card-meta i {
  flex: 0 0 auto;
  font-size: 13px;
}

.seko-learning-card-stats {
  margin-top: 7px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: #8b93a1;
  font-size: 10.5px;
  line-height: 1.5;
}

.seko-learning-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.seko-learning-card-stats i {
  font-size: 11px;
}

.seko-learning-card-stats .bi-star-fill {
  color: #ffab00;
}

.seko-learning-card-price-row {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  direction: rtl;
}

.seko-learning-card-discount {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  min-width: 42px;
  height: 27px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4056;
  color: #fff !important;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  direction: ltr;
  box-shadow: 0 4px 12px rgba(239, 64, 86, .28);
}

.seko-learning-card-prices {
  min-width: 0;
  margin: 0;
  text-align: right;
  direction: rtl;
}

.seko-learning-card-prices strong {
  display: block;
  color: #111827 !important;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.45;
  white-space: nowrap;
}

.seko-learning-card-prices strong small {
  font-size: 11px;
  font-weight: 800;
  color: #4b5563 !important;
}

.seko-learning-card-prices del {
  display: block;
  margin-top: 2px;
  color: #a5a9b1 !important;
  font-size: 11px;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.seko-learning-card-prices--single {
  width: auto;
}


.seko-learning-card-cta {
  flex: 0 0 auto;
  min-width: 86px;
  height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffc24b 0%, #ff8d18 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(255, 150, 26, .24);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.seko-learning-card:hover .seko-learning-card-cta {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(255, 150, 26, .3);
}

html[data-theme="dark"] .seko-learning-card {
  color: #eaf2ff !important;
  background: #071b46;
  border-color: rgba(125, 181, 255, .18);
  box-shadow: 0 10px 28px rgba(0, 7, 25, .22);
}

html[data-theme="dark"] .seko-learning-card:hover {
  color: #fff !important;
  border-color: rgba(105, 181, 255, .32);
  box-shadow: 0 14px 34px rgba(0, 6, 24, .32);
}

html[data-theme="dark"] .seko-learning-card-media {
  background: rgba(255, 255, 255, .96);
}

html[data-theme="dark"] .seko-learning-card-title,
html[data-theme="dark"] .seko-learning-card-prices strong {
  color: #f6f9ff !important;
}

html[data-theme="dark"] .seko-learning-card-description,
html[data-theme="dark"] .seko-learning-card-meta,
html[data-theme="dark"] .seko-learning-card-stats {
  color: #a8bad7 !important;
}

html[data-theme="dark"] .seko-learning-card-price-row {
  border-top-color: rgba(136, 186, 255, .15);
}

html[data-theme="dark"] .seko-learning-card-prices strong small {
  color: #c4d3e9 !important;
}

html[data-theme="dark"] .seko-learning-card-prices del {
  color: #8395b1 !important;
}

/* Match the shop's 3-column rhythm on the two main catalog pages. */
.seko-learning-grid > [class*="col-"] {
  display: flex;
}

@media (max-width: 575.98px) {
  .seko-learning-card {
    min-height: 174px;
    gap: 13px;
    padding: 12px;
    border-radius: 19px;
  }

  .seko-learning-card-media {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
    border-radius: 15px;
  }

  .seko-learning-card-title {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.7;
  }

  .seko-learning-card-content {
    gap: 9px;
  }

  .seko-learning-card-price-row {
    gap: 7px;
    padding-top: 8px;
  }

  .seko-learning-card-discount {
    top: 6px;
    right: 6px;
    min-width: 39px;
    height: 25px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .seko-learning-card-cta {
    min-width: 74px;
    height: 35px;
    padding-inline: 11px;
    border-radius: 9px;
    font-size: 12px;
  }

  .seko-learning-card-prices strong {
    font-size: 16px;
  }

  .seko-learning-card-prices strong small,
  .seko-learning-card-prices del {
    font-size: 10px;
  }
}

@media (max-width: 374.98px) {
  .seko-learning-card {
    gap: 10px;
    padding: 10px;
  }

  .seko-learning-card-media {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  .seko-learning-card-title {
    font-size: 14px;
  }

  .seko-learning-card-description {
    -webkit-line-clamp: 1;
  }

  .seko-learning-card-prices strong {
    font-size: 15px;
  }
}

/* The same component is also used inside legacy 4-column grids and sliders. */
@container (max-width: 310px) {
  .seko-learning-card {
    min-height: 166px;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .seko-learning-card-media {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
    border-radius: 14px;
  }

  .seko-learning-card-title {
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }

  .seko-learning-card-description {
    display: none;
  }

  .seko-learning-card-meta {
    font-size: 10.5px;
  }

  .seko-learning-card-stats {
    gap: 4px 7px;
    font-size: 9.5px;
  }

  .seko-learning-card-prices strong {
    font-size: 14px;
  }

  .seko-learning-card-discount {
    top: 5px;
    right: 5px;
    min-width: 36px;
    height: 23px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .seko-learning-card-cta {
    min-width: 62px;
    height: 32px;
    padding-inline: 8px;
    font-size: 10.5px;
  }
}

@container (max-width: 255px) {
  .seko-learning-card-media {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }

  .seko-learning-card-stats span:nth-child(n+3) {
    display: none;
  }

  .seko-learning-card-prices strong {
    font-size: 13px;
  }

  .seko-learning-card-prices strong small,
  .seko-learning-card-prices del {
    font-size: 9px;
  }
}
