.life-foundation-widget .life-gallery {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.life-foundation-widget .life-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 0;
  aspect-ratio: 1 / 1;
}

.life-foundation-widget .life-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.life-foundation-widget .life-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  min-width: 260px;
  background: #f1f4f9;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.25rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.life-foundation-widget .life-track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .life-foundation-widget .life-gallery {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .life-foundation-widget .life-track {
    width: 95%;
  }

  .life-foundation-widget .life-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .life-foundation-widget .life-prev {
    left: 6px;
  }

  .life-foundation-widget .life-next {
    right: 6px;
  }
}

.life-foundation-widget .life-center-box {
  flex: 0 0 320px;
  max-width: 320px;
  width: 320px;
  height: 238px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top-width: 4px;
  border-top-style: solid;
  border-top-color: var(--life-border-top, #f59e0b);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: normal;
  text-align: left;
  cursor: pointer;
}

.life-foundation-widget .life-center-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: #bae6fd;
  border-top-color: var(--life-border-top-hover, #bae6fd);
}

.life-foundation-widget .life-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 15px;
  padding: 0;
  flex: 0 0 auto;
}

.life-foundation-widget .life-card__chip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0ea5e9;
  margin-right: 0.4rem;
}

.life-foundation-widget .life-card__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 18px;
  margin: 0 0 0.45rem;
  color: #0f172a;
}

.life-foundation-widget .life-card__body {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
  font-weight: 400;
  margin: 0 0 0.9rem;
}

.life-foundation-widget .life-card__cta {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  width: fit-content;
  background: none;
  border: 0;
}

.life-foundation-widget .life-card__cta svg {
  width: 14px;
  height: 14px;
}
