/* Lesson Flows (T5): list page and flow page */

/* ---------- filters ---------- */
.lf-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}
.btn.lf-pill {
  background: #fff;
  color: #222;
  border: 1px solid #222;
  box-shadow: 2px 2px 0 #222;
  padding: 8px 20px;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.btn.lf-pill:hover {
  background: #FFEFD9;
  box-shadow: 4px 4px 0 #222;
}
.btn.lf-pill:active {
  background: #FFEFD9 !important;
}
.btn.lf-pill.is-active,
.btn.lf-pill.is-active:hover,
.btn.lf-pill.is-active:active {
  background: #E17157 !important;
  color: #fff !important; /* white like the header menu (PO, 2026-11-30) */
  box-shadow: 2px 2px 0 #222;
  transition: box-shadow ease-out 0.3s; /* no colour fade: it looked grey while the filter applied on load */
}
.btn.lf-pill.is-active::before {
  content: "\2713";
  margin-right: 6px;
}
.btn.lf-pill:focus-visible {
  outline: 3px solid #222;
  outline-offset: 2px;
}

/* ---------- flow cards (list) ---------- */
.lf-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 830px;
  margin: 0 auto;
}
.lf-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #222;
}
.lf-card[hidden] {
  display: none;
}
.lf-card-image {
  flex: 0 0 236px;
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.lf-card-image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
}
.lf-card-body {
  flex: 1 1 auto;
  min-width: 0;
}
.lf-card-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dotted #222;
  font-size: 32px;
}
.lf-card-title a {
  color: #222;
  text-decoration: none;
}
.lf-card-text {
  font-size: 12px;
  line-height: 1.35;
  color: #222;
  margin-bottom: 18px;
  white-space: pre-line;
}
.lf-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
}
.lf-read-more::after {
  content: url(/img/svg/card_arrow_black.svg);
}
.lf-read-more:hover {
  text-decoration: underline;
}
.lf-empty {
  text-align: center;
  font-size: 16px;
  margin: 24px 0;
}
.lf-empty[hidden] {
  display: none;
}

/* ---------- flow page ---------- */
.lf-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 24px auto 44px;
  max-width: 900px;
}
.lf-hero-image {
  flex: 0 0 48%;
}
.lf-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}
.lf-hero-text {
  flex: 1 1 auto;
}
.lf-hero-title {
  margin: 0 0 6px;
  font-size: 28px;
}
.lf-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 1px 14px;
  background: #E89636;
  border-radius: 20px;
  color: #fff;
  font-family: "Lilita One";
  font-size: 15px;
  line-height: 1.5;
}
.lf-hero-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #222;
  margin-bottom: 24px;
}
.lf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.btn.lf-btn {
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 24px;
}
.btn.lf-btn:disabled {
  opacity: .7;
}
.lf-see-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #222;
  text-decoration: none;
}
.lf-see-next::after {
  content: url(/img/svg/card_arrow_black.svg);
}
.lf-see-next:hover {
  text-decoration: underline;
}
.lf-message {
  max-width: 900px;
  margin: -20px auto 24px;
  padding: 10px 16px;
  background: #D7F4CB;
  border: 1px solid #222;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
}
.lf-message[hidden] {
  display: none;
}
.lf-message.is-error {
  background: #FAD4D8;
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.lf-grid .product-layout {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}
.lf-grid .product-layout .card {
  margin-bottom: 0;
  height: 100%;
  align-items: stretch !important;
}
.lf-grid .card-images .thumb {
  cursor: pointer;
}
.lf-grid .card-title {
  cursor: pointer;
}
/* number badge: orange circle, top-left (design); sku badge moves to the bottom-left of the image */
.lf-number {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E89636;
  color: #fff;
  font-family: "Lilita One";
  font-size: 18px;
  line-height: 1;
}
.lf-grid .card-cat {
  top: auto !important;
  bottom: 8px;
  left: 8px;
  transform: none;
  font-size: 12px;
  padding: 4px 8px !important;
}
.lf-bottom-action {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .lf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .lf-card {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .lf-card-image {
    flex: none;
    width: 100%;
  }
  .lf-card-title {
    font-size: 26px;
  }
  .lf-card-text,
  .lf-read-more {
    font-size: 14px;
  }
  .lf-hero {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-top: 12px;
  }
  .lf-hero-image {
    flex: none;
    max-width: 280px;
  }
  .lf-hero-title {
    font-size: 26px;
  }
  .lf-hero-desc {
    font-size: 16px;
  }
  .lf-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .btn.lf-btn {
    width: 100%;
    max-width: 280px;
    font-size: 14px;
  }
  .lf-see-next {
    font-size: 14px;
  }
  .lf-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px;
  }
  .lf-grid .card-images .thumb {
    height: 220px;
  }
  .btn.lf-pill {
    padding: 7px 16px;
    font-size: 14px;
  }
}

/* Design shows the full breadcrumb on mobile (site default hides middle items) — review fix, tech lead */
.lesson-flow-page .breadcrumb li,
.lesson-flows-page .breadcrumb li {
  display: inline-block;
}
