.research-ingredients {
  .research-ingredients__header {
    background-color: var(--colorBlack);
    color: var(--colorWhite);
    font-size: 18px;

    h2 {
      font-family: bebas, sans-serif;
      font-size: 50px;
      font-weight: 400;
      color: inherit;
      margin-bottom: 16px;
      line-height: 100%;
    }

    p {
      line-height: 27px;
    }
  }

  .research-ingredients__tiles {
    .swiper {
      display: flex;
    }

    .swiper-wrapper {
      display: flex;
      gap: 0px;
      flex-wrap: nowrap;
    }

    .swiper-slide {
      flex: 1;
      width: auto;
    }

    .tile {
      height: 550px;
      color: var(--colorWhite);
      position: relative;
      overflow: hidden;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
          linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%),
          linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),
          var(--bg-image) lightgray 50% / cover no-repeat;
        transition: transform 0.6s ease;
        z-index: 0;
      }

      &:hover::before {
        transform: scale(1.08);
      }

      > div {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 40px;
        font-size: 18px;
        line-height: 130%;
        z-index: 1;

        h4 {
          font-family: Bebas, sans-serif;
          font-size: 50px;
          font-weight: 400;
          line-height: 110%;
          margin-bottom: 16px;
          display: block;
        }
      }
    }
  }

  .research-ingredients__footer {
    background-color: var(--colorBlack);
    color: var(--colorWhite);
    padding-top: 60px;
    padding-bottom: 60px;

    .swiper-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0;
      animation: none;
    }

    .swiper-slide {
      width: 20%;
      flex-shrink: 0;

      &:nth-child(n+6) {
        display: none;
      }
    }

    .footer-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 16px;
      padding: 0 16px;

      img {
        width: 40px;
        height: 40px;
        object-fit: contain;
      }

      p {
        font-size: 18px;
        line-height: 130%;
        margin: 0;
      }
    }
  }

  .research-ingredients__nav {
    display: none;
  }

  @media screen and (max-width: 768px) {
    .research-ingredients__header {
      h2 {
        font-size: 38px;
      }
    }

    .research-ingredients__tiles {
      position: relative;
      overflow: hidden;

      .swiper {
        overflow: hidden;
      }

      .swiper-wrapper {
        flex-wrap: nowrap;
      }

      .swiper-slide {
        width: 100%;
        flex: none;
        flex-shrink: 0;
      }

      .tile {
        width: 100%;
        height: 350px;

        > div {
          text-align: center;

          h4 {
            font-size: 34px;
            margin-bottom: 0;
          }

          p {
            line-height: 20px;
          }
        }
      }
    }

    .research-ingredients__nav {
      display: flex;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      width: 50px;
      height: 50px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      background: transparent;
      border: none;
      padding: 0;

      svg {
        width: 19px;
        height: 34px;
      }

      &.research-ingredients__nav-prev {
        left: 16px;

        svg {
          transform: rotate(180deg);
        }
      }

      &.research-ingredients__nav-next {
        right: 16px;
      }
    }

    .research-ingredients__footer {
      padding: 24px 0;
      overflow: hidden;

      .swiper {
        overflow: visible;
      }

      .swiper-wrapper {
        display: flex;
        gap: 0;
        justify-content: flex-start;
        width: max-content;
        animation: marquee-scroll 20s linear infinite;
      }

      .swiper-slide {
        width: 140px;
        flex-shrink: 0;

        &:nth-child(n+6) {
          display: block;
        }
      }

      .footer-item {
        padding: 0 12px;
        gap: 8px;

        p {
          font-size: 14px;
          white-space: normal;
          text-align: center;
        }
      }
    }

  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ingredient-farm-tag {
  font-family: GothamMedium ,sans-serif; 
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #ffffff;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 8px 6px;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}
