/* Madbax Home — Material Design 3
 * Spec: docs/madbax-home-design.md + .cursor/rules/madbax-m3-design.mdc
 * Fonts: Roboto (M3 typeface) — readable body + brand hierarchy via size/weight
 * NOT EZ-shop — standalone package
 */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

.mbx-home {
  --md-sys-color-primary: #00e599;
  --md-sys-color-on-primary: #0a0a0a;
  --md-sys-color-surface: #f2f2f2;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-high: #e8e8eb;
  --md-sys-color-surface-container-highest: #e2e2e6;
  --md-sys-color-secondary-container: #c8f5e4;
  --md-sys-color-on-secondary-container: #003826;
  --md-sys-color-on-surface: #17191a;
  --md-sys-color-on-surface-variant: #5c6570;
  --md-sys-color-outline: #79747e;
  --md-sys-color-outline-variant: #c7c5d0;

  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 999px;

  --md-sys-state-hover: 0.08;
  --md-sys-state-pressed: 0.12;
  --md-sys-state-focus: 0.12;
  --md-sys-motion: 150ms cubic-bezier(0.2, 0, 0, 1);

  --md-sys-typescale-brand: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --md-sys-typescale-plain: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --mbx-card-title: var(--md-sys-color-on-surface);
  --mbx-card-cat: var(--md-sys-color-on-surface-variant);
  --mbx-card-date: #646a72; /* WCAG AA: 5.1:1 on #f8f7f3 (was #8b939c at 2.9:1) */
  --mbx-card-bg: transparent;
  --mbx-card-border: transparent;
  --mbx-grid-cols: 3;
  --mbx-grid-gap: 28px;

  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-plain);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.mbx-home *,
.mbx-home *::before,
.mbx-home *::after {
  box-sizing: border-box;
}

/* ?? Type helpers ?? */
.mbx-home-hero__eyebrow {
  margin: 0 0 4px;
  font-family: var(--md-sys-typescale-plain);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.5px;
  color: var(--md-sys-color-on-surface-variant);
}

.mbx-home-hero__title {
  margin: 0 !important;
  font-family: var(--md-sys-typescale-brand) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  letter-spacing: 0 !important;
  color: var(--md-sys-color-on-surface) !important;
}

.mbx-home-hero__support {
  margin: 0;
  max-width: 36em;
  font-family: var(--md-sys-typescale-plain);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--md-sys-color-on-surface-variant);
}

.mbx-home-hero__steps {
  margin: 8px 0 0;
  font-family: var(--md-sys-typescale-plain);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.4px;
  color: var(--md-sys-color-on-surface-variant);
}

/* ?? Hero block ?? */
.mbx-home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 8px;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
}

.mbx-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* ?? M3 search bar ?? */
.mbx-home-hero__eyebrow,
.mbx-home-hero__title,
.mbx-home-hero__support,
.mbx-home-hero__steps {
  text-align: center;
}

.mbx-home-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  margin-top: 8px;
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  gap: 16px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-highest);
  border: 0;
  box-shadow: none;
  cursor: text;
}

.mbx-home-search__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: var(--md-sys-color-on-surface);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

.mbx-home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: var(--md-sys-typescale-plain);
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0.5px;
  color: var(--md-sys-color-on-surface) !important;
  -webkit-appearance: none;
  appearance: none;
}

.mbx-home-search__input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 1;
}

.mbx-home-search__input::-webkit-search-decoration,
.mbx-home-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.mbx-home-search:focus-within {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* ?? Buttons ?? */
.mbx-home-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border-radius: var(--md-sys-shape-corner-full);
  font-family: var(--md-sys-typescale-plain);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1px;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  transition: background-color var(--md-sys-motion), color var(--md-sys-motion), border-color var(--md-sys-motion);
}

.mbx-home-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion);
}

.mbx-home-btn:hover::before {
  opacity: var(--md-sys-state-hover);
}

.mbx-home-btn:active::before {
  opacity: var(--md-sys-state-pressed);
}

.mbx-home-btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-home-btn--filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary) !important;
}

.mbx-home-btn--outlined {
  background: transparent;
  color: var(--md-sys-color-primary) !important;
  border: 1px solid var(--md-sys-color-outline);
}

/* ?? Filter chips ?? */
.mbx-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.mbx-home-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-small);
  border: 1px solid var(--md-sys-color-outline);
  background: transparent;
  color: var(--md-sys-color-on-surface-variant) !important;
  font-family: var(--md-sys-typescale-plain);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--md-sys-motion), border-color var(--md-sys-motion), color var(--md-sys-motion), padding var(--md-sys-motion);
}

.mbx-home-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion);
}

.mbx-home-chip:hover::before {
  opacity: var(--md-sys-state-hover);
}

.mbx-home-chip:active::before {
  opacity: var(--md-sys-state-pressed);
}

.mbx-home-chip:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-home-chip__check {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.mbx-home-chip.is-selected,
.mbx-home-chip[aria-current="true"] {
  background: var(--md-sys-color-secondary-container);
  border-width: 0;
  padding-left: 8px;
  padding-right: 16px;
  color: var(--md-sys-color-on-secondary-container) !important;
}

.mbx-home-chip.is-selected .mbx-home-chip__check,
.mbx-home-chip[aria-current="true"] .mbx-home-chip__check {
  display: block;
}

/* ?? Section label row: title + View All ?? */
.mbx-home .mbx-home-label-row,
.mbx-home-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.mbx-home .mbx-home-label,
.mbx-home-label {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #17191a !important;
  -webkit-text-fill-color: #17191a !important;
  font-family: var(--md-sys-typescale-brand) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.mbx-home-label:hover {
  color: #17191a !important;
  -webkit-text-fill-color: #17191a !important;
}

.mbx-home .mbx-home-view-all,
.mbx-home-view-all {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border-radius: var(--md-sys-shape-corner-full) !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  letter-spacing: 0.1px !important;
  color: #5c6570 !important;
  -webkit-text-fill-color: #5c6570 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mbx-home-view-all:hover,
.mbx-home-view-all:focus-visible {
  color: #00a86b !important;
  -webkit-text-fill-color: #00a86b !important;
  background: color-mix(in srgb, #00e599 12%, transparent) !important;
}

.mbx-home-view-all:focus-visible {
  outline: 2px solid var(--md-sys-color-primary) !important;
  outline-offset: 2px !important;
}

/* ?? Card: Academy flush ? rounded media, text below, no boxed chrome ??
 * Photos: 16:10 cover as-is (no zoom crop, no hover dim on media).
 */
.mbx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mbx-card-bg);
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.mbx-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 16:10 ? explicit box so img % height resolves */
  overflow: hidden;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-high);
}

.mbx-card__media img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transform: none !important;
  inset: 0 !important;
}

.mbx-card__media:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-card__vip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.mbx-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 2px 0;
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
}

.mbx-card a.mbx-card__cat,
.mbx-card .mbx-card__cat {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 14px !important;
  letter-spacing: 0.02em !important;
  color: var(--mbx-card-cat) !important;
  text-decoration: none !important;
  width: fit-content;
  background: transparent !important;
  border: 0 !important;
}

.mbx-card a.mbx-card__cat:hover {
  color: var(--mbx-card-title) !important;
}

.mbx-card .mbx-card__title {
  margin: 0 !important;
  min-height: 0;
  max-height: none;
  font-family: var(--md-sys-typescale-brand) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 15px !important;
  letter-spacing: 0 !important;
  color: var(--mbx-card-title) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mbx-card .mbx-card__title a {
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
}

.mbx-card .mbx-card__title a:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.mbx-card .mbx-card__date {
  margin: 0 !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
  letter-spacing: 0.01em !important;
  color: var(--mbx-card-date) !important;
}

/* ?? Course grid ?? */
.mbx-home-grid {
  width: 100%;
}

.mbx-home-grid__list {
  display: grid;
  grid-template-columns: repeat(var(--mbx-grid-cols), minmax(0, 1fr));
  gap: var(--mbx-grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbx-home-grid__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.mbx-home-grid__btn {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-lowest);
  color: #5c6570 !important;
  -webkit-text-fill-color: #5c6570 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.mbx-home-grid__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion);
}

.mbx-home-grid__btn:hover {
  color: #17191a !important;
  -webkit-text-fill-color: #17191a !important;
}

.mbx-home-grid__btn:hover::before {
  opacity: var(--md-sys-state-hover);
}

.mbx-home-grid__btn:active::before {
  opacity: var(--md-sys-state-pressed);
}

.mbx-home-grid__btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-home-grid__btn[disabled] {
  opacity: 0.38;
  pointer-events: none;
}

.mbx-home-grid__btn svg {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  fill: currentColor !important;
  stroke: none !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mbx-home-grid__btn svg path {
  fill: currentColor !important;
  stroke: none !important;
  opacity: 1 !important;
}

.mbx-home-grid__empty {
  padding: 24px 16px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  line-height: 20px;
}

/* ?? Homepage canvas (do NOT override Elementor padding/margin/width) ?? */
.page-id-24241 .elementor-location-single,
.page-id-24241 .site-content,
.page-id-24241 .elementor-24241 {
  background: #f2f2f2;
}

/* Soft defaults only ? Elementor Advanced spacing wins without !important fights */
.page-id-24241 .elementor-widget-madbax-home-hero {
  margin-bottom: 28px;
}

.page-id-24241 .elementor-widget-madbax-home-chips {
  margin-bottom: 12px;
}

.page-id-24241 .elementor-widget-madbax-home-label {
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-id-24241 .elementor-widget-madbax-home-grid,
.page-id-24241 .elementor-widget-madbax-course-slider {
  margin-bottom: 8px;
}

/* Room for slider arrows ? do not overlap cards */
.page-id-24241 .mbx-cs {
  padding-left: 48px;
  padding-right: 48px;
}

.page-id-24241 .mbx-cs__nav--prev {
  left: 0;
}

.page-id-24241 .mbx-cs__nav--next {
  right: 0;
}

/* Flush cards ? no forced equal text block heights */
.page-id-24241 .mbx-card .mbx-card__title,
.page-id-24241 .mbx-cs .mbx-cs__title {
  min-height: 0 !important;
  max-height: none !important;
}

.page-id-24241 .mbx-card__body,
.page-id-24241 .mbx-cs__body {
  min-height: 0;
}

/* ?? Adaptive layout (M3 compact ? medium ? expanded) ??
 * SUMMARY: mobile margins 16; one primary filled CTA; equal gutters;
 * touch targets ?48dp for buttons; chips may stay 32dp height.
 */

/* Medium / tablet */
@media (max-width: 1024px) {
  .mbx-home-grid {
    --mbx-grid-cols: 2;
  }

  .page-id-24241 .mbx-cs {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Compact phone ? grid cols only; leave Elementor container padding alone */
@media (max-width: 599px) {
  .page-id-24241 .elementor-widget-madbax-home-label {
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .page-id-24241 .mbx-cs {
    padding-left: 0;
    padding-right: 0;
  }

  .page-id-24241 .mbx-cs__nav {
    display: none !important;
  }

  .mbx-home-hero {
    gap: 16px;
    max-width: none;
    padding: 0;
  }

  .mbx-home-hero__title {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
  }

  .mbx-home-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  /* One filled primary per view ? full width 48dp */
  .mbx-home-hero__actions .mbx-home-btn--filled {
    width: 100%;
    min-height: 48px;
  }

  /* Secondary = text button (M3), not second fat CTA */
  .mbx-home-hero__actions .mbx-home-btn--outlined {
    width: 100%;
    min-height: 40px;
    border: 0;
    color: var(--md-sys-color-primary) !important;
    background: transparent;
  }

  /* Chip set: horizontal scroll, not crushed wrap */
  .mbx-home-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px;
    gap: 8px;
  }

  .mbx-home-chips::-webkit-scrollbar {
    display: none;
  }

  .mbx-home-chip {
    flex: 0 0 auto;
  }

  .mbx-home-label {
    font-size: 18px;
    line-height: 24px;
  }

  .mbx-home-grid {
    --mbx-grid-cols: 1 !important;
    --mbx-grid-gap: 16px;
  }

  .mbx-card__body {
    padding: 10px 2px 0;
    min-height: 0;
    gap: 4px;
  }

  .page-id-24241 .mbx-card .mbx-card__title {
    min-height: 0 !important;
    max-height: none !important;
  }

  .mbx-home-grid__nav {
    margin-top: 12px;
    gap: 8px;
  }

  .mbx-home-grid__btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Large phones / small tablets: 2 columns still readable */
@media (min-width: 600px) and (max-width: 1024px) {
  .mbx-home-grid {
    --mbx-grid-cols: 2 !important;
  }
}

/* ?? Home content width ??
 * Elementor writes `--content-width` per container in post-24241.css, which is
 * enqueued after this file, so these need !important to win.
 */
.page-id-24241 .elementor-24241,
.page-id-24241 .elementor-24241 .e-con,
.page-id-24241 .elementor-24241 .elementor-element.e-con {
  --container-max-width: 1360px !important;
  --content-width: 1360px !important;
}

.page-id-24241 .elementor-24241 .e-con > .e-con-inner {
  max-width: 1360px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-id-24241 .elementor-24241 > .e-con {
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px;
  padding-right: 32px;
}

.page-id-24241 .elementor-24241 .elementor-widget,
.page-id-24241 .elementor-24241 .elementor-widget-container {
  width: 100%;
  max-width: 100%;
}

.page-id-24241 .jlc-container,
.page-id-24241 .jl_home_bw {
  max-width: 1360px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 599px) {
  .page-id-24241 .elementor-24241 > .e-con {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ?? Explore Hub (CGLTG+-inspired, Madbax M3) ?? */
.mbx-home-explore {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.mbx-home-explore__icons {
  padding: 12px 0 4px;
  border-radius: 0;
  background: transparent;
}

.mbx-home-explore__icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 8px;
  justify-items: center;
}

.mbx-home-explore__icon-item {
  margin: 0;
  width: 100%;
  max-width: 104px;
}

.mbx-home-explore__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--md-sys-color-on-surface) !important;
  transition: opacity var(--md-sys-motion);
}

.mbx-home-explore__icon:hover { opacity: 1; }

.mbx-home-explore__icon:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 4px;
  border-radius: 14px;
}

.mbx-home-explore__icon-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #252528;
  border: 0;
  color: #fff;
  font-family: var(--md-sys-typescale-brand);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
  overflow: hidden;
}

.mbx-home-explore__icon-mark.has-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
}

/* Keep brand circle colors on hover — never inherit page background (breaks white logos). */
.mbx-home-explore__icon:hover .mbx-home-explore__icon-mark,
.mbx-home-explore__icon:focus-visible .mbx-home-explore__icon-mark {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(23, 25, 26, 0.16);
  outline: 2px solid var(--md-sys-color-primary, #00e599);
  outline-offset: 2px;
}

.mbx-home-explore__icon-mark--after-effects { background: #00005b; }
.mbx-home-explore__icon-mark--blender { background: #e87d0d; }
.mbx-home-explore__icon-mark--cinema-4d { background: #011a6a; }
.mbx-home-explore__icon-mark--ai {
  background: #fff;
  box-shadow: inset 0 0 0 1px #dedbd4;
}
.mbx-home-explore__icon-mark--ai.has-logo img { width: 33px; height: 33px; }
.mbx-home-explore__icon-mark--houdini {
  background: #fff;
  box-shadow: inset 0 0 0 1px #dedbd4;
}
.mbx-home-explore__icon-mark--houdini.has-logo img { width: 34px; height: 34px; }
.mbx-home-explore__icon-mark--unreal { background: #141722; }
.mbx-home-explore__icon-mark--maya { background: #1a8cff; }
.mbx-home-explore__icon-mark--zbrush { background: #c41230; }
.mbx-home-explore__icon-mark--photoshop { background: #001e36; }

.mbx-home-explore__icon:hover .mbx-home-explore__icon-mark--ai,
.mbx-home-explore__icon:focus-visible .mbx-home-explore__icon-mark--ai,
.mbx-home-explore__icon:hover .mbx-home-explore__icon-mark--houdini,
.mbx-home-explore__icon:focus-visible .mbx-home-explore__icon-mark--houdini {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #dedbd4,
    0 8px 18px rgba(23, 25, 26, 0.16);
}

.mbx-home-explore__icon-label {
  color: #4f4e4a;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  font-family: var(--md-sys-typescale-plain);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  overflow: hidden;
}

.mbx-home-explore__trending {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mbx-home-explore__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.mbx-home-explore__eyebrow {
  margin: 0 0 4px;
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #008f5a;
}

.mbx-home-explore__title {
  margin: 0 !important;
  font-family: var(--md-sys-typescale-brand) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  color: var(--md-sys-color-on-surface) !important;
}

.mbx-home-explore__head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mbx-home-explore__more {
  font-family: var(--md-sys-typescale-plain);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--md-sys-color-on-secondary-container) !important;
  text-decoration: none !important;
}

.mbx-home-explore__more:hover { text-decoration: underline !important; }

.mbx-home-explore__nav {
  display: inline-flex;
  gap: 8px;
}

.mbx-home-explore__nav-btn {
  appearance: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--md-sys-motion), border-color var(--md-sys-motion);
  font-size: 0;
  line-height: 0;
}

.mbx-home-explore__nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-sizing: border-box;
}

.mbx-home-explore__nav-btn--prev::before {
  transform: translate(2px, 0) rotate(135deg);
}

.mbx-home-explore__nav-btn--next::before {
  transform: translate(-2px, 0) rotate(-45deg);
}

.mbx-home-explore__nav-btn:hover:not(:disabled) {
  background: var(--md-sys-color-secondary-container);
  border-color: transparent;
}

.mbx-home-explore__nav-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.mbx-home-explore__track-wrap { overflow: hidden; }

.mbx-home-explore__track {
  list-style: none;
  margin: 0;
  padding: 0 2px 8px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mbx-home-explore__track::-webkit-scrollbar { display: none; }

.mbx-home-explore__slide {
  margin: 0;
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
}

.mbx-home-explore__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}

.mbx-home-explore__card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 16:10 ? same box as .mbx-card__media */
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  background: var(--md-sys-color-surface-container-high);
}

.mbx-home-explore__card-media img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transform: none !important;
  transition: opacity var(--md-sys-motion);
}

.mbx-home-explore__card:hover .mbx-home-explore__card-media img { opacity: 0.92; }

.mbx-home-explore__card-num {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--md-sys-typescale-brand);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.mbx-home-explore__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.mbx-home-explore__badge--new {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.mbx-home-explore__badge--vip {
  right: 10px;
  left: auto;
  background: #0a0a0a;
  color: #fff;
}

.mbx-home-explore__card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mbx-home-explore__card-cat {
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: #008f5a;
}

.mbx-home-explore__card-title {
  font-family: var(--md-sys-typescale-brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--md-sys-color-on-surface);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mbx-home-explore__empty {
  padding: 24px;
  color: var(--md-sys-color-on-surface-variant);
}

@media (max-width: 1024px) {
  .mbx-home-explore__icon-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .mbx-home-explore { gap: 28px; }
  .mbx-home-explore__icons {
    padding: 16px 8px 4px;
    margin: 0 -4px;
  }
  .mbx-home-explore__icon-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 8px 8px;
    scrollbar-width: none;
  }
  .mbx-home-explore__icon-list::-webkit-scrollbar { display: none; }
  .mbx-home-explore__icon-item {
    flex: 0 0 76px;
    max-width: none;
  }
  .mbx-home-explore__icon-mark {
    width: 56px;
    height: 56px;
  }
  .mbx-home-explore__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mbx-home-explore__title {
    font-size: 22px !important;
    line-height: 28px !important;
  }
  .mbx-home-explore__nav-btn {
    width: 48px;
    height: 48px;
  }
}

/* ?? Explore Page monolith — CGLTG homepage layout lock ?? */
.mbx-home-explore-page {
  --mbx-paper: #f8f7f3;
  --mbx-paper-2: #efeee9;
  --mbx-ink: #171718;
  --mbx-line: #e1dfd8;
  --mbx-page-dots: radial-gradient(rgba(23, 23, 24, 0.07) 1px, transparent 1px);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
  box-sizing: border-box;
  color: var(--mbx-ink);
  background-color: var(--mbx-paper);
  background-image: var(--mbx-page-dots);
  background-size: 22px 22px;
}

/* Content shell — fixed max 1440 */
.mbx-home-shell {
  width: min(1440px, 100% - 120px);
  margin-inline: auto;
  box-sizing: border-box;
  max-width: none;
}

@media (max-width: 1560px) {
  .mbx-home-shell {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1100px) {
  .mbx-home-shell {
    width: calc(100% - 32px);
  }
}

@media (max-width: 560px) {
  .mbx-home-shell {
    width: calc(100% - 24px);
  }
}

.mbx-home-hero-band {
  padding: 24px 0 0;
  background: transparent;
}

.mbx-home-band {
  padding: 28px 0 52px;
  border-top: 1px solid var(--mbx-line);
}

.mbx-home-band--trending,
.mbx-home-band--series {
  background-color: var(--mbx-paper-2);
  background-image: var(--mbx-page-dots);
  background-size: 22px 22px;
}

.mbx-home-band--updated,
.mbx-home-band--catalogue {
  background-color: var(--mbx-paper);
  background-image: var(--mbx-page-dots);
  background-size: 22px 22px;
}

.mbx-home-band--catalogue-alt {
  background-color: #f2f0eb;
}

.mbx-home-band--member {
  background-color: #f2f0eb;
  border-top: 1px solid #dfdcd4;
  padding: 8px 0 34px;
}

.mbx-home-explore-page__recent {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mbx-home-explore-page__block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* CGLTG section-header */
.mbx-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  margin-bottom: 24px;
  padding-left: 16px;
}

.mbx-home-section-head__text {
  position: relative;
  min-width: 0;
}

.mbx-home-section-head__text::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 2px;
  width: 4px;
  border-radius: 4px;
  background: var(--accent, var(--md-sys-color-primary, #00e599));
}

.mbx-home-section-head__eyebrow {
  display: block;
  margin: 0;
  color: #5b5954; /* WCAG AA: 6:1 on #efeee9 (was #6f6d67 at 4.45:1, below the 4.5:1 threshold) */
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.mbx-home-section-head__title,
.mbx-home .mbx-home-section-head__title {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--mbx-ink);
  text-transform: none;
}

.mbx-home-section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #5f5d57 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none !important;
  white-space: nowrap;
}

.mbx-home-section-head__more:hover {
  color: var(--mbx-ink) !important;
}

@media (max-width: 720px) {
  .mbx-home-section-head__title,
  .mbx-home .mbx-home-section-head__title {
    font-size: 20px;
  }
}

/* CGLTG home-nav-panel: proof + icons */
.mbx-home-nav-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--mbx-line);
  border-radius: 10px;
  margin-top: 16px;
  margin-bottom: 46px;
  overflow: hidden;
}

.mbx-home-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--mbx-line);
  overflow: hidden;
}

.mbx-home-proof > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  padding: 0 22px;
  border-right: 1px solid var(--mbx-line);
}

.mbx-home-proof > div:last-child {
  border-right: 0;
}

.mbx-home-proof strong {
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--mbx-ink);
}

.mbx-home-proof span {
  margin-top: 6px;
  color: #8b8983;
  font-size: 12px;
}

.mbx-home-nav-panel__icons {
  padding: 20px 16px 22px;
  background: transparent;
}

.mbx-home-nav-panel .mbx-home-explore__icons {
  padding: 0;
  background: transparent;
}

.mbx-home-nav-panel .mbx-home-explore__icon-list {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  justify-items: center;
}

@media (max-width: 900px) {
  .mbx-home-nav-panel .mbx-home-explore__icon-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .mbx-home-nav-panel .mbx-home-explore__icon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mbx-home-nav-panel .mbx-home-explore__icon-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

/* Trending rail — CGLTG horizontal-course-list */
.mbx-home-band--trending .mbx-home-explore__track-wrap {
  position: relative;
}

.mbx-home-band--trending .mbx-home-explore__track-wrap {
  position: relative;
  padding-inline: 22px;
}

.mbx-home-band--trending .mbx-home-explore__nav {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62.5%;
  max-height: 220px;
  pointer-events: none;
  z-index: 3;
}

.mbx-home-band--trending .mbx-home-explore__nav-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mbx-line);
  background: #fff;
  color: var(--mbx-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mbx-home-band--trending .mbx-home-explore__nav-btn--prev { left: 0; }
.mbx-home-band--trending .mbx-home-explore__nav-btn--next { right: 0; }

.mbx-home-band--trending .mbx-home-explore__nav-btn:disabled {
  opacity: 0.35;
}

.mbx-home-band--trending .mbx-home-explore__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1px 1px 15px;
  scrollbar-width: thin;
}

.mbx-home-band--trending .mbx-home-explore__slide {
  flex: 0 0 18.4%;
  min-width: 0;
  scroll-snap-align: start;
}

.mbx-home-explore__card-soft {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.mbx-home-grid--five {
  --mbx-grid-cols: 5;
}

.mbx-home-grid--catalogue {
  gap: 30px 16px;
}

@media (max-width: 1100px) {
  .mbx-home-proof {
    grid-template-columns: repeat(2, 1fr);
  }
  .mbx-home-band--trending .mbx-home-explore__slide {
    flex-basis: 28%;
  }
  .mbx-home-grid--five {
    --mbx-grid-cols: 3 !important;
  }
}

@media (max-width: 720px) {
  .mbx-home-proof {
    grid-template-columns: 1fr;
  }
  .mbx-home-proof > div {
    border-right: 0;
    border-bottom: 1px solid var(--mbx-line);
  }
  .mbx-home-band--trending .mbx-home-explore__slide {
    flex-basis: 62%;
  }
  .mbx-home-grid--five {
    --mbx-grid-cols: 2 !important;
  }
}

/* Membership — CGLTG member-home-panel */
.mbx-home-membership {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: 34px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 8% 5%, rgba(0, 229, 153, 0.18), transparent 28%),
    radial-gradient(circle at 86% 90%, rgba(141, 124, 255, 0.24), transparent 30%),
    #19191b;
  box-shadow: 0 18px 42px rgba(39, 35, 29, 0.13);
  color: #fff;
}

.mbx-home-membership::before {
  content: "";
  position: absolute;
  top: -72px;
  left: 42%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 153, 0.17);
  box-shadow: 0 0 70px rgba(0, 229, 153, 0.09);
  pointer-events: none;
}

.mbx-home-membership__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.mbx-home-membership__eyebrow {
  color: var(--md-sys-color-primary, #00e599);
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.mbx-home-membership__title {
  margin: 10px 0 12px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.mbx-home-membership__subtitle {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.mbx-home-membership__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mbx-home-membership__chips span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.mbx-home-membership__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--md-sys-color-primary, #00e599);
  color: #171718 !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
}

.mbx-home-membership__plans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.mbx-home-membership__plan {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 181px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #171718;
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.24);
}

.mbx-home-membership__plan--gold {
  background: linear-gradient(145deg, #fff7e4, #e6cc91);
}

.mbx-home-membership__plan--diamond {
  background: linear-gradient(145deg, #eeeaff, #afa3ff);
}

.mbx-home-membership__plan header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mbx-home-membership__plan header span {
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: rgba(23, 23, 24, 0.78);
}

.mbx-home-membership__plan header em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 23, 24, 0.9);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
}

.mbx-home-membership__plan h3 {
  margin: 18px 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.mbx-home-membership__plan > p {
  margin: 0;
  min-height: 24px;
  color: rgba(23, 23, 24, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.mbx-home-membership__plan-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 24, 0.16);
}

.mbx-home-membership__plan-prices span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mbx-home-membership__plan-prices small {
  color: rgba(23, 23, 24, 0.72);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.mbx-home-membership__plan-prices strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 24px;
}

@media (max-width: 1024px) {
  .mbx-home-membership {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 599px) {
  .mbx-home-membership {
    padding: 22px;
  }
  .mbx-home-membership__title {
    font-size: 26px;
    line-height: 1.3;
  }
  .mbx-home-membership__plans {
    grid-template-columns: 1fr;
  }
}

/* Curated Series — dark tab sidebar + product grid (CGLTG-style) */
.mbx-home-series {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 16px;
  align-items: stretch;
}

.mbx-home-series__sidebar {
  background: #171718;
  border-radius: 14px;
  padding: 27px 24px 19px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  color: #fff;
}

.mbx-home-series__sidebar::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 153, 0.35),
    rgba(141, 124, 255, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.mbx-home-series__side-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mbx-home-series__badge {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--md-sys-color-primary, #00e599);
  text-transform: uppercase;
}

.mbx-home-series__side-title {
  margin: 13px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.mbx-home-series__tabs {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  position: relative;
  z-index: 1;
}

.mbx-home-series__tabs li {
  margin: 0;
  padding: 0;
}

.mbx-home-series__tab {
  width: 100%;
  min-height: 47px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: transparent;
  color: #fff !important;
  font-family: var(--md-sys-typescale-plain);
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: color 0.2s, padding 0.2s, background 0.2s;
}

.mbx-home-series__tabs li:first-child .mbx-home-series__tab {
  border-top: 0;
}

.mbx-home-series__tab:hover,
.mbx-home-series__tab:focus-visible {
  color: var(--md-sys-color-primary, #00e599) !important;
  padding-left: 5px;
}

.mbx-home-series__tab.is-active {
  color: var(--md-sys-color-primary, #00e599) !important;
  background: rgba(0, 229, 153, 0.1);
  border-radius: 8px;
  width: calc(100% + 18px);
  margin-inline: -9px;
  padding: 0 9px;
  border-top-color: transparent;
}

.mbx-home-series__tab-num {
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.36);
  min-width: 0;
}

.mbx-home-series__tab-label {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.mbx-home-series__tab-chevron {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
  transition: transform 0.2s;
}

.mbx-home-series__tab.is-active .mbx-home-series__tab-chevron {
  transform: translateX(2px);
}

.mbx-home-series__panels {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  border: 1px solid #e2e0da;
  padding: 19px 20px 20px;
  min-width: 0;
}

.mbx-home-series__panel {
  display: none;
}

.mbx-home-series__panel.is-active {
  display: block;
}

.mbx-home-series__panel-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e2e0da;
}

.mbx-home-series__panel-eyebrow {
  font-family: var(--md-sys-typescale-brand);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #8d7cff;
  text-transform: uppercase;
}

.mbx-home-series__panel-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #171718;
  line-height: 1.2;
}

.mbx-home-series__panel-count {
  color: #929088;
  font-size: 8px;
  text-decoration: none !important;
  white-space: nowrap;
}

.mbx-home-series__panel-count:hover {
  color: #171718;
}

.mbx-home-series .mbx-home-grid {
  --mbx-grid-cols: 3 !important;
}

.mbx-home-series .mbx-home-grid .mbx-card__title,
.mbx-home-series .mbx-home-grid .mbx-card__title a {
  font-size: 11px !important;
  line-height: 1.35 !important;
  min-height: 32px;
}

@media (max-width: 860px) {
  .mbx-home-series {
    grid-template-columns: 1fr;
  }
  .mbx-home-series .mbx-home-grid {
    --mbx-grid-cols: 2 !important;
  }
}

@media (max-width: 560px) {
  .mbx-home-series .mbx-home-grid {
    --mbx-grid-cols: 1 !important;
  }
}

/* Banner hero — exact CGLTG .hero-wrap (1200×360, text left / image right) */
.mbx-home-banner {
  width: 100%;
}

.mbx-home-banner__viewport {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #cec5ff;
  border: 1px solid rgba(17, 17, 19, 0.08);
  box-shadow: 0 12px 34px rgba(41, 35, 27, 0.07);
}

.mbx-home-banner__track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  position: relative;
}

.mbx-home-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: #cec5ff;
  color: #171713;
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1);
}

.mbx-home-banner__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.mbx-home-banner__slide--lavender { background: #cec5ff; color: #171713; }
.mbx-home-banner__slide--ember { background: #ffc8b2; color: #171713; }
.mbx-home-banner__slide--cyan { background: #bfe2f1; color: #171713; }
.mbx-home-banner__slide--dark { background: #111114; color: #ffffff; }

.mbx-home-banner__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.mbx-home-banner__media {
  position: absolute;
  /* Text left / image right */
  inset: 0 0 0 44%;
  overflow: hidden;
  z-index: 1;
}

.mbx-home-banner__img,
.mbx-home-banner__fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: saturate(0.85) contrast(1.03);
  transform: none !important;
  margin: 0 !important;
  display: block !important;
}

.mbx-home-banner__fallback {
  background: linear-gradient(135deg, #0a0a0a 0%, #003826 55%, #00e599 140%);
  filter: none;
}

.mbx-home-banner__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #cec5ff 0%,
    rgba(206, 197, 255, 0.94) 14%,
    rgba(206, 197, 255, 0.12) 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.mbx-home-banner__slide--ember .mbx-home-banner__fade {
  background: linear-gradient(
    90deg,
    #ffc8b2 0%,
    rgba(255, 200, 178, 0.94) 14%,
    rgba(255, 200, 178, 0.12) 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.mbx-home-banner__slide--cyan .mbx-home-banner__fade {
  background: linear-gradient(
    90deg,
    #bfe2f1 0%,
    rgba(191, 226, 241, 0.94) 14%,
    rgba(191, 226, 241, 0.12) 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.mbx-home-banner__slide--dark .mbx-home-banner__fade {
  background: linear-gradient(
    90deg,
    #111114 0%,
    rgba(17, 17, 20, 0.96) 15%,
    rgba(17, 17, 20, 0.1) 62%,
    rgba(17, 17, 20, 0.03) 100%
  );
}

.mbx-home-banner__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  z-index: 3;
  width: 49%;
  padding: 42px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  box-sizing: border-box;
}

.mbx-home-banner__eyebrow {
  margin: 0 0 12px;
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.78;
}

.mbx-home-banner__title {
  margin: 0 !important;
  max-width: 100%;
  font-family: var(--md-sys-typescale-brand);
  font-size: clamp(24px, 2.1vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
}

.mbx-home-banner__title span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mbx-home-banner__desc {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  font-family: var(--md-sys-typescale-plain);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(17, 17, 19, 0.66);
}

.mbx-home-banner__slide--dark .mbx-home-banner__desc {
  color: rgba(255, 255, 255, 0.62);
}

.mbx-home-banner__cta {
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 168px;
  min-height: 45px;
  margin-top: 22px;
  padding: 0 15px;
  border-radius: 7px;
  background: #171718 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: var(--md-sys-typescale-plain);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.mbx-home-banner__slide--dark .mbx-home-banner__cta {
  background: #ffffff !important;
  color: #171718 !important;
  -webkit-text-fill-color: #171718 !important;
}

.mbx-home-banner__side {
  position: absolute;
  top: 24px;
  left: auto;
  right: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: right;
  pointer-events: none;
  /* Label sits on the slide photo — shadow keeps it readable on light/dark areas. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 1px 10px rgba(0, 0, 0, 0.35);
}

.mbx-home-banner__controls {
  position: absolute;
  left: auto;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* M3 / Apple HIG minimum touch target is 44-48px — was 29x29 (fails). */
.mbx-home-banner__btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mbx-home-banner__btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.mbx-home-banner__btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-home-banner__count {
  color: rgba(255, 255, 255, 0.74);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 599px) {
  .mbx-home-explore-page {
    gap: 28px;
    padding: 12px 0 40px;
  }
  .mbx-home-banner__viewport {
    height: 300px;
    min-height: 300px;
  }
  .mbx-home-banner__media {
    inset: 38% 0 0 0;
  }
  .mbx-home-banner__content {
    width: 100%;
    padding: 22px 20px 110px;
    justify-content: flex-start;
  }
  .mbx-home-banner__title {
    font-size: 22px !important;
  }
  .mbx-home-banner__side {
    display: none;
  }
  .mbx-home-banner__fade {
    background: linear-gradient(
      180deg,
      rgba(206, 197, 255, 0.05) 0%,
      rgba(206, 197, 255, 0.2) 35%,
      #cec5ff 72%
    ) !important;
  }
  .mbx-home-banner__slide--dark .mbx-home-banner__fade {
    background: linear-gradient(
      180deg,
      rgba(17, 17, 20, 0.05) 0%,
      rgba(17, 17, 20, 0.35) 40%,
      #111114 78%
    ) !important;
  }
}

/* Front page: hide theme sidebar / breadcrumbs / narrow content wrappers */
body.mbx-explore-home .options_layout_wrapper .sidebar,
body.mbx-explore-home aside.sidebar,
body.mbx-explore-home .jl_sidebar,
body.mbx-explore-home #sidebar,
body.mbx-explore-home .widget-area,
body.mbx-explore-home .breadcrumb,
body.mbx-explore-home .jl_breadcrumbs,
body.mbx-explore-home .woocommerce-breadcrumb,
body.mbx-explore-home .elementor-location-header .elementor-widget-breadcrumbs {
  display: none !important;
}

body.mbx-explore-home .content_wrapper,
body.mbx-explore-home .options_layout_wrapper,
body.mbx-explore-home .jl_content,
body.mbx-explore-home #content,
body.mbx-explore-home .site-content,
body.mbx-explore-home .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  width: 100% !important;
}

body.mbx-explore-home .elementor-section.elementor-section-boxed > .elementor-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
