/**
 * /learning — dark featured strip (#light-sliderhome one-line slider)
 */
.mw-learn__featured {
  --mw-orange: #ff7f00;
  --mw-red: #ee0f00;
  --mw-pt-card: #22262e;
  --mw-pt-muted: #9aa3b2;
  --mw-line-dark: rgba(255, 255, 255, 0.08);
  padding: 108px 0 36px;
  color: #333;
  background: #dddddd;
}

.mw-learn__featured .container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.mw-learn__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.mw-learn__filters .btn,
.mw-learn__filters a.btn {
  background: rgb(0 0 0 / 18%) !important;
  color: #000000 !important;
  border: 1px solid var(--mw-line-dark);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  transform: none !important;
  margin: 0;
}

.mw-learn__filters .btn.active,
.mw-learn__filters a.btn.active {
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange)) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(239, 15, 0, 0.28);
}

.mw-learn__place {
  width: 100%;
  min-width: 0;
  position: relative;
}

/* lightSlider one-line — undo site-wide .lightSlider{display:flex} breakage */
.mw-learn__featured .lSSlideOuter,
.mw-learn__featured .mw-learn-slider-outer {
  direction: ltr;
  width: 100% !important;
}

.mw-learn__featured .lSSlideWrapper {
  overflow: hidden;
}

.mw-learn__featured #light-sliderhome.lightSlider,
.mw-learn__featured .lSSlideOuter .lightSlider {
  display: block !important;
  height: auto !important;
  transform: none;
}

.mw-learn__featured .lSSlideOuter .lightSlider > li,
.mw-learn__featured #light-sliderhome > li {
  float: left !important;
  margin: 0 !important;
  list-style: none;
}

.mw-learn__featured .lSAction > a {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
  border-radius: 50%;
}

.mw-learn__featured .lSPager {
  display: none !important;
}

/* Cards — keep PluginTheme mw-card light; only legacy mw-pt-card uses dark skin */
.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) {
  background: var(--mw-pt-card) !important;
  border: 1px solid var(--mw-line-dark);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  margin: 0 !important;
  padding: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mw-learn__featured .productsingle.mw-card {
  height: 100%;
}

.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card):hover {
  transform: translateY(-3px);
  border-color: rgba(255, 127, 0, 0.35);
}

.mw-learn__featured .mw-pt-media {
  display: block;
  text-decoration: none;
}

.mw-learn__featured .imagecontent {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #161920;
}

.mw-learn__featured .imagecontent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}

.mw-learn__featured .mw-pt-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(225, 29, 46, 0.35);
}

.mw-learn__featured .imagecontent > .btn.tags,
.mw-learn__featured .btn.tags.tag-on-image {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0 !important;
  padding: 5px 10px !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  line-height: 1.2;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(18, 21, 26, 0.78) !important;
  color: #ffb74d !important;
  border: 1px solid rgba(255, 127, 0, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.mw-learn__featured .mw-pt-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) h3,
.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) h3 a {
  color: #f2f4f7 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) .mw-pt-price,
.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) .priceprint,
.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) .priceprint strong,
.mw-learn__featured .productsingle.mw-pt-card:not(.mw-card) .priceprint small {
  color: #81c784 !important;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.mw-learn__featured .footsingle.mw-pt-actions {
  margin-top: auto;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row-reverse;
  gap: 8px;
}

.mw-learn__featured .mw-pt-btn {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 !important;
  padding: 8px 6px !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
}

.mw-learn__featured .mw-pt-btn--ghost {
  background: transparent !important;
  color: #dfe3ea !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.mw-learn__featured .mw-pt-btn--primary,
.mw-learn__featured .footsingle .btn.cartbtn.mw-pt-btn--primary {
  background: linear-gradient(90deg, var(--mw-red), var(--mw-orange)) !important;
  color: #fff !important;
  border: 0 !important;
}

.mw-learn__featured .productsingle .showhover {
  display: none !important;
}
