.trending-features {
  background: #f3f3f4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.trending-features *,
.trending-features *::before,
.trending-features *::after {
  box-sizing: border-box;
}

.trending-features__header {
  background: #001844;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 20px;
  display: inline-flex;
  max-width: min(100%, 590px);
  padding: 20px 34px 16px;
}

.trending-features__title {
  color: #34c9ff;
  font-family: 'Geist', Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.136px;
  line-height: 1.2;
  margin: 0;
  max-width: 560px;
}

.trending-features__items {
  overflow-y: hidden;
  overflow-x: auto;
  padding: 38px 26px 36px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.trending-features__rail {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 28px;
  width: max-content;
}

.trending-features__rail > * {
  flex: 0 0 auto;
}

/*
 * Webflow renders each code component as a <code-island> with display: contents
 * and wraps all slot children in a single <div slot="items">. That wrapper is the
 * only thing the rail sees, so cards stack vertically inside it.
 *
 * ::slotted() targets that wrapper from inside the shadow DOM. Setting it to
 * display: contents flattens it so the individual <code-island> card hosts
 * become the rail's direct flex children. Each host is also display: contents,
 * so its inner <article class="content-card"> (already flex: 0 0 268px) becomes
 * the actual flex item the rail lays out.
 */
.trending-features__rail ::slotted(*) {
  display: contents;
}

@media (max-width: 767px) {
  .trending-features {
    border-radius: 0;
    overflow: hidden;
  }

  .trending-features__header {
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    display: block;
    max-width: none;
    padding: 18px 38px 12px;
  }

  .trending-features__title {
    font-size: 22px;
    letter-spacing: 0.088px;
    max-width: 220px;
  }

  .trending-features__items {
    padding: 16px 0 20px 70px;
  }

  .trending-features__rail {
    gap: 14px;
  }
}

