.ws-feature-expandable {
  position: relative;
  inline-size: 100%;
  isolation: isolate;
  overflow: clip;
  color: inherit;

  --ws-feature-expandable-gap: 18px;
  --ws-feature-expandable-height: 560px;
  --ws-feature-expandable-collapsed: 160px;
  --ws-feature-expandable-expanded-ratio: 4;
  --ws-feature-expandable-duration: 720ms;
  --ws-feature-expandable-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --ws-feature-expandable-inactive-opacity: .72;
  --ws-feature-expandable-inactive-scale: .98;

  --ws-feature-expandable-radius: inherit;
  --ws-feature-expandable-border: color-mix(in srgb, currentColor 12%, transparent);
  --ws-feature-expandable-surface: color-mix(in srgb, currentColor 4%, transparent);
  --ws-feature-expandable-surface-strong: color-mix(in srgb, currentColor 8%, transparent);
  --ws-feature-expandable-shadow: 0 1rem 3rem color-mix(in srgb, currentColor 10%, transparent);
}

.ws-feature-expandable::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-image: var(--ws-feature-expandable-active-bg, none);
  background-position: center;
  background-size: cover;
  opacity: .08;
  filter: blur(44px) saturate(1.1);
  transform: scale(1.05);
  transition:
    background-image var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    opacity var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing);
  pointer-events: none;
}

.ws-feature-expandable::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 20%,
      color-mix(in srgb, currentColor 10%, transparent),
      transparent 36%
    ),
    radial-gradient(
      circle at 80% 40%,
      color-mix(in srgb, currentColor 7%, transparent),
      transparent 42%
    );
  opacity: 0;
}

.ws-feature-expandable.has-glow::after,
.ws-feature-expandable--card-gradient::after {
  opacity: .8;
}

.ws-feature-expandable__viewport {
  position: relative;
  inline-size: 100%;
}

.ws-feature-expandable__track {
  display: flex;
  gap: var(--ws-feature-expandable-gap);
  align-items: stretch;
  inline-size: 100%;
  min-block-size: var(--ws-feature-expandable-height);
}

.ws-feature-expandable__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 1rem;
}

.ws-feature-expandable__progress {
  position: relative;
  flex: 1 1 auto;
  block-size: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.ws-feature-expandable__progress-bar {
  display: block;
  inline-size: 0%;
  block-size: 100%;
  border-radius: inherit;
  background: currentColor;
  transition:
    inline-size var(--ws-feature-expandable-duration) linear;
}

.ws-feature-expandable__counter {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  opacity: .72;
}

/* Item base */
.ws-feature-expandable-item {
  position: relative;
  flex: 1 1 var(--ws-feature-expandable-collapsed);
  min-inline-size: 0;
  min-block-size: inherit;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  border: 1px solid var(--ws-feature-expandable-border);
  border-radius: var(--ws-feature-expandable-radius, 28px);
  background: var(--ws-feature-expandable-surface);
  opacity: var(--ws-feature-expandable-inactive-opacity);
  transform: scale(var(--ws-feature-expandable-inactive-scale));
  transition:
    flex var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    opacity var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    transform var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    border-color var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    box-shadow var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    background var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing);
}

.ws-feature-expandable-item.is-active {
  flex-grow: var(--ws-feature-expandable-expanded-ratio);
  opacity: 1;
  transform: scale(1);
  z-index: 5;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  box-shadow: var(--ws-feature-expandable-shadow);
  background: var(--ws-feature-expandable-surface-strong);
}

.ws-feature-expandable-item.is-collapsed {
  cursor: pointer;
}

.ws-feature-expandable-item.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.ws-feature-expandable-item:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Item internals */
.ws-feature-expandable-item__inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: var(--ws-feature-expandable-height);
  overflow: hidden;
}

.ws-feature-expandable-item__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.ws-feature-expandable-item__media img,
.ws-feature-expandable-item__media video,
.ws-feature-expandable-item__media iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: var(--ws-feature-expandable-item-fit, cover);
  object-position: var(--ws-feature-expandable-item-position, center);
  transform: scale(1.06);
  transition:
    transform calc(var(--ws-feature-expandable-duration) * 1.25) var(--ws-feature-expandable-easing),
    filter var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    opacity var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing);
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__media img,
.ws-feature-expandable-item.is-active .ws-feature-expandable-item__media video,
.ws-feature-expandable-item.is-active .ws-feature-expandable-item__media iframe {
  transform: scale(1);
}

.ws-feature-expandable-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgb(0 0 0 / .72),
      rgb(0 0 0 / .18),
      transparent
    );
  opacity: var(--ws-feature-expandable-item-overlay-opacity, .68);
}

.ws-feature-expandable-item__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  inline-size: 100%;
  min-block-size: inherit;
  padding: clamp(1.25rem, 3vw, 3rem);
  color: inherit;
}

.ws-feature-expandable-item__header {
  position: relative;
  z-index: 4;
  display: grid;
  gap: .75rem;
  max-inline-size: var(--ws-feature-expandable-item-content-max, 560px);
}

.ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: .32rem .68rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, Canvas 20%, transparent);
  backdrop-filter: blur(12px);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}

.ws-feature-expandable-item__icon {
  display: inline-grid;
  place-items: center;
  inline-size: 2.65rem;
  block-size: 2.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, Canvas 22%, transparent);
  backdrop-filter: blur(12px);
  font-size: 1.25rem;
}

.ws-feature-expandable-item__title {
  margin: 0;
  max-inline-size: 12ch;
  font-size: clamp(2rem, 4.4vw, 5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.ws-feature-expandable-item__description {
  max-inline-size: 62ch;
  margin: 0;
  opacity: .82;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.ws-feature-expandable-item__details {
  display: grid;
  gap: 1rem;
  margin-block-start: 1.5rem;
  max-inline-size: var(--ws-feature-expandable-item-content-max, 560px);
  transform-origin: bottom left;
  transition:
    opacity var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    transform var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
    max-block-size var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing);
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__description,
.ws-feature-expandable-item.is-active .ws-feature-expandable-item__details {
  opacity: 1;
  transform: none;
}

/* Products */
.ws-feature-expandable-item__products {
  display: grid;
  gap: .75rem;
}

.ws-feature-expandable-item__products-title {
  display: block;
  font-weight: 800;
}

.ws-feature-expandable-item__products-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-feature-expandable-item__product {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
}

.ws-feature-expandable-item__product::before {
  content: "";
  inline-size: 1.1rem;
  block-size: 1.1rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: .8;
}

.ws-feature-expandable-item__product a {
  color: inherit;
  text-decoration: none;
}

/* CTA */
.ws-feature-expandable-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block-start: .5rem;
}

.ws-feature-expandable-item__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
  color: inherit;
}

.ws-feature-expandable-item__button--primary {
  background: currentColor;
  color: Canvas;
}

.ws-feature-expandable-item__button--secondary {
  background: color-mix(in srgb, Canvas 18%, transparent);
  backdrop-filter: blur(12px);
}

/* Collapsed vertical label */
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__header {
  max-inline-size: 100%;
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  max-inline-size: 10ch;
}

.ws-feature-expandable--layout-panels
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title,
.ws-feature-expandable--layout-expandable
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-block-size: 12ch;
}

/* Card styles */
.ws-feature-expandable--card-glass .ws-feature-expandable-item {
  background: color-mix(in srgb, Canvas 16%, transparent);
  backdrop-filter: blur(18px);
}

.ws-feature-expandable--card-outline .ws-feature-expandable-item {
  background: transparent;
}

.ws-feature-expandable--card-gradient .ws-feature-expandable-item {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, currentColor 10%, transparent),
      color-mix(in srgb, currentColor 3%, transparent)
    );
}

.ws-feature-expandable--card-floating .ws-feature-expandable-item {
  box-shadow: 0 .75rem 2rem color-mix(in srgb, currentColor 8%, transparent);
}

.ws-feature-expandable--card-dark .ws-feature-expandable-item {
  background: CanvasText;
  color: Canvas;
}

/* Media masks */
.ws-feature-expandable--mask-none .ws-feature-expandable-item__media {
  clip-path: none;
}

.ws-feature-expandable--mask-diagonal .ws-feature-expandable-item__media {
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.ws-feature-expandable--mask-steps .ws-feature-expandable-item__media {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 74%,
    82% 74%,
    82% 88%,
    64% 88%,
    64% 100%,
    0 100%
  );
}

.ws-feature-expandable--mask-diamond .ws-feature-expandable-item__media {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.ws-feature-expandable--mask-slats .ws-feature-expandable-item__media::after,
.ws-feature-expandable--mask-slices .ws-feature-expandable-item__media::after,
.ws-feature-expandable--mask-panels .ws-feature-expandable-item__media::after,
.ws-feature-expandable--mask-mesh .ws-feature-expandable-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ws-feature-expandable--mask-slats .ws-feature-expandable-item__media::after {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 12%,
      color-mix(in srgb, Canvas 28%, transparent) 12% 13%,
      transparent 13% 20%
    );
  mix-blend-mode: overlay;
}

.ws-feature-expandable--mask-slices .ws-feature-expandable-item__media::after {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 9%,
      color-mix(in srgb, CanvasText 22%, transparent) 9% 10%,
      transparent 10% 18%
    );
}

.ws-feature-expandable--mask-panels .ws-feature-expandable-item__media::after {
  background:
    linear-gradient(
      90deg,
      transparent 0 24%,
      color-mix(in srgb, Canvas 20%, transparent) 24% 25%,
      transparent 25% 49%,
      color-mix(in srgb, Canvas 20%, transparent) 49% 50%,
      transparent 50% 74%,
      color-mix(in srgb, Canvas 20%, transparent) 74% 75%,
      transparent 75%
    );
}

.ws-feature-expandable--mask-mesh .ws-feature-expandable-item__media::after {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, currentColor 20%, transparent), transparent 28%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, currentColor 16%, transparent), transparent 32%),
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      color-mix(in srgb, Canvas 10%, transparent) 14px 15px
    );
}

/* Effects */
.ws-feature-expandable.has-noise .ws-feature-expandable-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 14px 14px;
}

.ws-feature-expandable.has-glow .ws-feature-expandable-item.is-active {
  box-shadow:
    0 1rem 3rem color-mix(in srgb, currentColor 12%, transparent),
    0 0 6rem color-mix(in srgb, currentColor 16%, transparent);
}

.ws-feature-expandable.has-spotlight .ws-feature-expandable-item.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--ws-spotlight-x, 50%) var(--ws-spotlight-y, 50%),
      color-mix(in srgb, Canvas 22%, transparent),
      transparent 34%
    );
}

/* Animation modes */
.ws-feature-expandable--animation-reveal .ws-feature-expandable-item.is-active .ws-feature-expandable-item__content {
  animation: wsExpandableReveal var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing) both;
}

.ws-feature-expandable--animation-scale .ws-feature-expandable-item.is-active .ws-feature-expandable-item__content {
  animation: wsExpandableScale var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing) both;
}

.ws-feature-expandable--animation-blur .ws-feature-expandable-item.is-active .ws-feature-expandable-item__content {
  animation: wsExpandableBlur var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing) both;
}

.ws-feature-expandable--animation-stack .ws-feature-expandable-item.is-active {
  animation: wsExpandableStack var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing) both;
}

.ws-feature-expandable--animation-depth .ws-feature-expandable-item.is-active {
  animation: wsExpandableDepth var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing) both;
}

@keyframes wsExpandableReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wsExpandableScale {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wsExpandableBlur {
  from {
    opacity: 0;
    filter: blur(14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes wsExpandableStack {
  from {
    transform: translateY(20px) scale(.98);
  }

  to {
    transform: none;
  }
}

@keyframes wsExpandableDepth {
  from {
    transform: perspective(1000px) rotateX(6deg) translateY(18px);
  }

  to {
    transform: none;
  }
}

/* Layout variants */
.ws-feature-expandable--layout-cinematic .ws-feature-expandable__track,
.ws-feature-expandable--layout-elastic .ws-feature-expandable__track,
.ws-feature-expandable--layout-panels .ws-feature-expandable__track {
  min-block-size: var(--ws-feature-expandable-height);
}

.ws-feature-expandable--layout-slideshow .ws-feature-expandable__track {
  display: grid;
}

.ws-feature-expandable--layout-slideshow .ws-feature-expandable-item {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
}

.ws-feature-expandable--layout-slideshow .ws-feature-expandable-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Editor */
.ws-feature-expandable-editor .ws-feature-expandable-editor__preview {
  min-block-size: 320px;
  border: 1px dashed var(--ws-feature-expandable-border);
  border-radius: 18px;
  padding: 1rem;
}

.ws-feature-expandable-editor .block-editor-block-list__layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.ws-feature-expandable-editor .wp-block-ws-feature-expandable-item {
  min-inline-size: 220px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ws-feature-expandable__track {
    display: grid;
    grid-template-columns: 1fr;
    min-block-size: auto;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item.is-active,
  .ws-feature-expandable-item.is-collapsed {
    flex: none;
    opacity: 1;
    transform: none;
  }

  .ws-feature-expandable-item__inner {
    min-block-size: min(var(--ws-feature-expandable-height), 520px);
  }

  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title {
    writing-mode: horizontal-tb;
    transform: none;
    max-block-size: none;
  }

  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .ws-feature-expandable {
    --ws-feature-expandable-height: 460px;
  }

  .ws-feature-expandable__track {
    gap: .9rem;
  }

  .ws-feature-expandable-item__content {
    padding: clamp(1rem, 6vw, 1.5rem);
  }

  .ws-feature-expandable-item__title {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .ws-feature-expandable--mobile-accordion .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
  .ws-feature-expandable--mobile-accordion .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details {
    display: none;
  }

  .ws-feature-expandable--mobile-cards .ws-feature-expandable__track,
  .ws-feature-expandable--mobile-swipe .ws-feature-expandable__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block-end: .5rem;
  }

  .ws-feature-expandable--mobile-cards .ws-feature-expandable-item,
  .ws-feature-expandable--mobile-swipe .ws-feature-expandable-item {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .ws-feature-expandable__controls {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-feature-expandable,
  .ws-feature-expandable *,
  .ws-feature-expandable::before,
  .ws-feature-expandable::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* HOME MODE FIX 
.ws-feature-expandable__track {
  display: flex;
  align-items: stretch;
  min-block-size: var(--ws-feature-expandable-height, 520px);
}

.ws-feature-expandable-item {
  flex: 0 0 var(--ws-feature-expandable-collapsed, 140px);
  min-inline-size: var(--ws-feature-expandable-collapsed, 140px);
}

.ws-feature-expandable-item.is-active {
  flex: var(--ws-feature-expandable-expanded-ratio, 5) 1 0;
  min-inline-size: 420px;
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__badge,
.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__icon {
  display: none !important;
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__content {
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
}

.ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.4rem;
  line-height: 1;
  max-inline-size: none;
  max-block-size: 12rem;
  text-align: left;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__title {
  writing-mode: horizontal-tb;
  transform: none;
}

.ws-feature-expandable-item__trigger {
  all: unset;
  display: grid;
  gap: .75rem;
  cursor: pointer;
}

.ws-feature-expandable-item.is-active .ws-feature-expandable-item__trigger {
  cursor: default;
}

.ws-feature-expandable-item__content-inner {
  width: 100%;
  max-inline-size: var(--ws-feature-expandable-item-content-max, 560px);
}

.ws-feature-expandable-item__overlay {
  background: linear-gradient(
    to top,
    rgb(0 0 0 / .72),
    rgb(0 0 0 / .26),
    transparent
  );
}

@media (max-width: 1024px) {
  .ws-feature-expandable__track {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item.is-active {
    flex: none;
    min-inline-size: 0;
  }

  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__title {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details,
  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description {
    display: grid !important;
  }
}

.ws-feature-expandable {
  --ws-feature-expandable-border: transparent;
  --ws-feature-expandable-surface: transparent;
  --ws-feature-expandable-surface-strong: color-mix(in srgb, currentColor 5%, transparent);
  --ws-feature-expandable-shadow: none;
}

.ws-feature-expandable-item,
.ws-feature-expandable-item.is-active {
  border: 0;
  box-shadow: none;
}

.ws-feature-expandable-item__button,
.ws-feature-expandable-item__button--primary,
.ws-feature-expandable-item__button--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.ws-feature-expandable-item__button:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
}*/

/* ======================================================
   RESPONSIVE CARD MODE
   Tablet + Mobile
====================================================== */

@media (max-width: 1024px) {
  .ws-feature-expandable {
    overflow: visible;
  }

  .ws-feature-expandable__track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ws-feature-expandable-gap, 18px);
    min-block-size: auto !important;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item.is-active,
  .ws-feature-expandable-item.is-collapsed {
    flex: none !important;
    min-inline-size: 0 !important;
    min-block-size: 220px;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 16px;
    cursor: default;
  }

  .ws-feature-expandable-item__inner {
    min-block-size: 220px !important;
  }

  .ws-feature-expandable-item__content {
    padding: 1rem !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }
/*
  .ws-feature-expandable-item__content-inner {
    max-inline-size: 100%;
  }*/

  .ws-feature-expandable-item__trigger {
    all: unset;
    display: grid;
    gap: .4rem;
  }

  .ws-feature-expandable-item__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: clamp(1.1rem, 3vw, 1.6rem) !important;
    line-height: 1.05;
    max-inline-size: 14ch;
  }

  .ws-feature-expandable-item__description,
  .ws-feature-expandable-item__eyebrow,
  .ws-feature-expandable-item__badge,
  .ws-feature-expandable-item__products,
  .ws-feature-expandable-item__stats,
  .ws-feature-expandable-item__testimonial,
  .ws-feature-expandable-item__innerblocks {
    display: none !important;
  }

  .ws-feature-expandable-item__details {
    display: grid !important;
    gap: .65rem;
    margin-block-start: .65rem;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .ws-feature-expandable-item__actions {
    display: flex !important;
    margin-block-start: .25rem;
  }

  .ws-feature-expandable-item__button {
    inline-size: auto !important;
    min-block-size: 2.25rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1;
  }

  .ws-feature-expandable__controls {
    display: none;
  }
}

@media (max-width: 640px) {
  .ws-feature-expandable__track {
    grid-template-columns: 1fr;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item__inner {
    min-block-size: 145px !important;
  }

  .ws-feature-expandable-item__content {
    padding: .9rem !important;
  }

  .ws-feature-expandable-item__title {
    font-size: 1.1rem !important;
    max-inline-size: 16ch;
  }
}

/* ======================================================
   THEME-FRIENDLY RESPONSIVE FEATURE EXPANDABLE
====================================================== */

.ws-feature-expandable {
  overflow: visible;
}

.ws-feature-expandable__track {
  gap: var(--ws-feature-expandable-gap, var(--wp--style--block-gap, 1rem));
}

/* Desktop hover accordion */
@media (min-width: 1025px) {
  .ws-feature-expandable__track {
    display: flex;
    align-items: stretch;
    min-block-size: clamp(22rem, 48vw, 42rem);
  }

  .ws-feature-expandable-item {
    flex: 1 1 var(--ws-feature-expandable-collapsed, 8rem);
    min-inline-size: var(--ws-feature-expandable-collapsed, 8rem);
    opacity: var(--ws-feature-expandable-inactive-opacity, .9);
    transform: scale(var(--ws-feature-expandable-inactive-scale, 1));
    transition:
      flex var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
      opacity var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing),
      transform var(--ws-feature-expandable-duration) var(--ws-feature-expandable-easing);
  }

  .ws-feature-expandable-item.is-active {
    flex-grow: var(--ws-feature-expandable-expanded-ratio, 4);
    opacity: 1;
    transform: none;
  }

  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__description,
  .ws-feature-expandable-item.is-collapsed .ws-feature-expandable-item__details {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
  }

  .ws-feature-expandable-item.is-active .ws-feature-expandable-item__description,
  .ws-feature-expandable-item.is-active .ws-feature-expandable-item__details {
    opacity: 1;
    transform: none;
  }
}

/* Tablet: stack horizontal tipo última imagen */
@media (max-width: 1024px) {
  .ws-feature-expandable__track {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: var(--wp--style--block-gap, 1rem);
    min-block-size: auto !important;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item.is-active,
  .ws-feature-expandable-item.is-collapsed {
    flex: none !important;
    min-inline-size: 0 !important;
    min-block-size: clamp(7rem, 22vw, 11rem);
    opacity: 1 !important;
    transform: none !important;
  }

  .ws-feature-expandable-item__inner {
    min-block-size: clamp(7rem, 22vw, 11rem) !important;
  }

  .ws-feature-expandable-item__content {
    padding: var(--wp--preset--spacing--40, 1rem) !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  .ws-feature-expandable-item__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: clamp(1rem, 3vw, 1.4rem) !important;
    line-height: 1.1;
    max-inline-size: 16ch;
  }

  .ws-feature-expandable-item__description,
  .ws-feature-expandable-item__products,
  .ws-feature-expandable-item__stats,
  .ws-feature-expandable-item__testimonial,
  .ws-feature-expandable-item__innerblocks {
    display: none !important;
  }

  .ws-feature-expandable-item__details {
    display: grid !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-block-start: .5em;
  }

  .ws-feature-expandable-item__actions {
    display: flex !important;
  }

  .ws-feature-expandable__controls {
    display: none;
  }
}

/* Mobile: cards 2 columnas como referencia */
@media (max-width: 768px) {
  .ws-feature-expandable__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item__inner {
    min-block-size: clamp(9rem, 38vw, 13rem) !important;
  }

  .ws-feature-expandable-item__eyebrow,
  .ws-feature-expandable-item__badge {
    display: none !important;
  }

  .ws-feature-expandable-item__button {
    inline-size: auto !important;
    min-block-size: auto;
    padding: .55em .8em;
    font-size: .8em;
  }
}

/* Mobile muy pequeño: 1 columna */
@media (max-width: 480px) {
  .ws-feature-expandable__track {
    grid-template-columns: 1fr;
  }
}

.ws-feature-expandable,
.ws-feature-expandable__viewport,
.ws-feature-expandable__track,
.ws-feature-expandable-item,
.ws-feature-expandable-item__inner,
.ws-feature-expandable-item__media,
.ws-feature-expandable-item__media img,
.ws-feature-expandable-item__overlay {
  border-radius: 0 !important;
}


.ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item__badge,
.ws-feature-expandable-item__icon,
.ws-feature-expandable-item__button,
.ws-feature-expandable-item__button--primary,
.ws-feature-expandable-item__button--secondary {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.ws-feature-expandable-item__eyebrow,
.ws-feature-expandable-item__badge {
  border-color: currentColor;
}

@media (min-width: 1025px) {
  .ws-feature-expandable__track {
    min-block-size: var(--ws-feature-expandable-height, clamp(24rem, 46vw, 40rem));
  }

  .ws-feature-expandable-item {
    flex: 1 1 var(--ws-feature-expandable-collapsed, clamp(90px, 11vw, 150px));
    min-inline-size: var(--ws-feature-expandable-collapsed, clamp(90px, 11vw, 150px));
  }

  .ws-feature-expandable-item.is-active {
    flex-grow: var(--ws-feature-expandable-expanded-ratio, 4);
    min-inline-size: 0 !important;
  }
}


@media (min-width: 1025px) {
  .ws-feature-expandable__track {
    display: flex;
    align-items: stretch;
    min-block-size: var(--ws-feature-expandable-height, clamp(24rem, 50vw, 42rem));
  }

  .ws-feature-expandable-item {
    flex: 1 1 var(--ws-feature-expandable-collapsed, clamp(6rem, 10cqw, 10rem));
    min-inline-size: var(--ws-feature-expandable-collapsed, clamp(6rem, 10cqw, 10rem));
  }

  .ws-feature-expandable-item.is-active {
    flex-grow: var(--ws-feature-expandable-expanded-ratio, 4);
    min-inline-size: 0;
  }
}

/* Tablet / stack: card horizontal con información mínima */
@media (min-width: 641px) and (max-width: 1024px) {
  .ws-feature-expandable__track {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: var(--ws-feature-expandable-gap, var(--wp--style--block-gap, 1rem)) !important;
  }

  .ws-feature-expandable-item,
  .ws-feature-expandable-item__inner {
    min-block-size: clamp(10rem, 26vw, 15rem) !important;
  }

  .ws-feature-expandable-item__content {
    padding: clamp(1rem, 3vw, 2rem) !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .ws-feature-expandable-item__content-inner {
    max-inline-size: min(70%, 32rem);
  }

  .ws-feature-expandable-item__title {
    font-size: clamp(1.35rem, 3.5vw, 2.25rem) !important;
    line-height: 1.05;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  .ws-feature-expandable-item__details {
    display: grid !important;
    gap: .65rem;
    margin-block-start: .65rem;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .ws-feature-expandable-item__description {
    display: block !important;
    font-size: clamp(.85rem, 1.6vw, 1rem);
    line-height: 1.35;
    max-inline-size: 42ch;
  }

  .ws-feature-expandable-item__cover-link::after {
    content: "→";
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: grid;
    place-items: center;
    inline-size: clamp(2rem, 4vw, 2.75rem);
    block-size: clamp(2rem, 4vw, 2.75rem);
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1;
    z-index: 8;
  }
}

/* Mobile cards: título + flecha, descripción solo si cabe */
@media (max-width: 640px) {
  .ws-feature-expandable-item,
  .ws-feature-expandable-item__inner {
    min-block-size: clamp(9rem, 42vw, 13rem) !important;
  }

  .ws-feature-expandable-item__content {
    padding: clamp(.75rem, 4vw, 1rem) !important;
  }

  .ws-feature-expandable-item__title {
    font-size: clamp(1rem, 5vw, 1.35rem) !important;
    line-height: 1.1;
  }

  .ws-feature-expandable-item__description {
    display: block !important;
    font-size: clamp(.72rem, 3vw, .85rem);
    line-height: 1.25;
    max-inline-size: 24ch;
  }

  .ws-feature-expandable-item__details {
    display: grid !important;
    gap: .45rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .ws-feature-expandable-item__cover-link::after {
    content: "→";
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    display: grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 1rem;
    z-index: 8;
  }
}