/* HOW WE - existing vertical layout (default) */
.how-we {
  padding: 2rem 1rem;
  width: 100%;
}
.how-we__title {
  color: #1f2937;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3125;
  margin-bottom: 1.5rem;
}
.how-we__intro {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
.how-we__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.how-we__item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto;
}
.how-we__media {
  align-items: center;
  display: flex;
  justify-content: center;
}
.how-we__img {
  aspect-ratio: 4 / 3;
  border-radius: .375rem;
  height: auto;
  object-fit: contain;
  width: 6.75rem;
}
.how-we__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
}
.how-we__head {
  align-items: center;
  display: flex;
  gap: .5rem;
}
.how-we__badge {
  align-items: center;
  background: #fbbf24;
  border-radius: 150px;
  display: flex;
  justify-content: center;
  height: 1.5rem;
  min-width: 1.5rem;
  width: 1.5rem;
}
.how-we__step {
  color: #000 !important;
  font-size: .75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
.how-we__item-title {
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #1f2937;
}
.how-we__content {
  display: flex;
}
.how-we__content p {
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  order: 2;
  text-align: left;
}
.how-we__content img {
  order: 1;
  text-align: center;
  padding-bottom: 20px;
}
.how-we__content ul li {
  position: relative;
  padding-left: 10px;
}
.how-we__content ul li::before {
  display: block;
  position: absolute;
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: #fbbf0e;
  top: 11px;
  left: 0;
}

@media (min-width: 768px) {
  .how-we {
    padding: 2rem 1.5rem;
  }
  .how-we__item {
    flex-direction: row;
  }
  .how-we__step {
    color: #fff;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
  }
  .how-we__content p {
    order: 1;
  }
  .how-we__content img {
    order: 2;
    padding-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .how-we_section {
    padding: 2rem 0;
  }
  .how-we__title {
    font-size: 2.25rem;
    line-height: 1.2222;
  }
}

/* HOW WE - new horizontal card layout */
.how-we--horizontal .how-we__slider,
.how-we--horizontal .how-we__viewport {
  margin: 1.5rem 0;
  min-width: 0;
  width: 100%;
}

.how-we--horizontal .how-we__list {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.how-we--horizontal .how-we__item {
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-width: 0;
  overflow: hidden;
}

.how-we--horizontal .how-we__media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  width: 100%;
}

.how-we--horizontal .how-we__img {
  aspect-ratio: auto;
  border-radius: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.how-we--horizontal .how-we__placeholder {
  background: #e5e7eb;
  height: 100%;
  width: 100%;
}

.how-we--horizontal .how-we__body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  width: 100%;
}

.how-we--horizontal .how-we__item-title {
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.how-we--horizontal .how-we__content {
  display: block;
  min-width: 0;
}

.how-we--horizontal .how-we__content p {
  color: #000;
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 .5rem;
  text-align: left;
}
.how-we--horizontal .how-we__content p:last-child {
  margin-bottom: 0;
}
.how-we--horizontal .how-we__content img {
  max-width: 100%;
  height: auto;
  padding-bottom: 0;
}

/* Swiper styles: only apply when JS has initialized it on >=768px. */
@media (min-width: 768px) {
  .how-we--horizontal .how-we__slider--carousel .how-we__viewport {
    overflow: hidden;
  }

  /* Swiper owns slide widths and the gap via spaceBetween. */
  .how-we--horizontal .how-we__slider--carousel.is-slider-active .how-we__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
  }
  .how-we--horizontal .how-we__slider--carousel.is-slider-active .how-we__item {
    flex-shrink: 0;
    width: auto;
  }
  .how-we--horizontal .how-we__slider--carousel .how-we__navigation {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Navigation hidden before JS is ready and on mobile. */
.how-we--horizontal .how-we__navigation {
  display: none;
}
.how-we--horizontal .how-we__slider--carousel:not(.is-slider-active) .how-we__navigation {
  display: none;
}
.how-we--horizontal .how-we__arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #4B5563;
  border-radius: .5rem;
  color: #4B5563;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}
.how-we--horizontal .how-we__arrow:hover:not(:disabled) {
  background: #f3f4f6;
}
.how-we--horizontal .how-we__arrow:disabled {
  cursor: not-allowed;
  opacity: .4;
}
.how-we--horizontal .how-we__arrow:focus-visible {
  outline: 2px solid #0c4a6e;
  outline-offset: 2px;
}
.how-we--horizontal .how-we__arrow svg {
  display: block;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .how-we--horizontal .how-we__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .how-we--horizontal .how-we__list,
  .how-we--horizontal .how-we__slider--carousel .how-we__list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 1.5rem 0 0;
    transform: none !important;
  }

  /* The Swiper wrapper/slide classes are present in HTML, but Swiper is not initialized. */
  .how-we--horizontal .how-we__slider--carousel .how-we__viewport {
    overflow: visible;
  }
  .how-we--horizontal .how-we__slider--carousel .how-we__item {
    flex: 0 0 auto;
    width: 100%;
  }
  .how-we--horizontal .how-we__navigation {
    display: none !important;
  }
}
