/* Flexible Sensei course images: preserve any aspect ratio without cropping or upscaling. */
body.sensei .course-container li.course .wp-post-image {
  display: block;
  float: none;
  width: 100%;
  height: clamp(240px, 39vw, 500px);
  max-height: 500px;
  object-fit: scale-down;
  object-position: center;
  margin: 0 auto 24px;
}

/* Sensei course filters: dark navy and gold brand treatment. */
body.sensei .sensei-course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

body.sensei .sensei-course-filters li {
  float: none;
  margin: 0;
}

body.sensei .sensei-course-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(196, 155, 62, 0.65);
  border-radius: 6px;
  background: #171c26;
  color: #f4f1e8;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.sensei .sensei-course-filters a:hover,
body.sensei .sensei-course-filters a:focus-visible {
  background: #222936;
  border-color: #c49b3e;
  color: #d6ad4d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}

body.sensei .sensei-course-filters a.active {
  background: #c49b3e;
  border-color: #c49b3e;
  color: #0f131b;
  box-shadow: 0 4px 14px rgba(196, 155, 62, .22);
}

@media (max-width: 480px) {
  body.sensei .sensei-course-filters {
    gap: 8px;
  }

  body.sensei .sensei-course-filters a {
    min-height: 42px;
    padding: 9px 15px;
    font-size: .9rem;
  }
}

/* Flexible WooCommerce product images: preserve the full upload without cropping or stretching. */
.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: scale-down;
  object-position: center;
  background: #171c26;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: scale-down;
  object-position: center;
  background: #171c26;
}

.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: scale-down;
  object-position: center;
  background: #171c26;
}
