.key-benefits-section {
  margin-top: 72px;
  padding-inline: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;

  h2 {
    text-align: center;
    font-family: "Poppins", serif;
    font-weight: 600;
    font-size: 38px;
    color: var(--dark-80);
  }

  > p {
    margin-top: 24px;
    font-family: "Inter", sans-serif;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--dark-50);
    position: relative;

    &::after {
      content: "";
      width: 64px;
      height: 1px;
      background-color: var(--green-primary);
      background-color: var(--green-primary);
      position: absolute;
      top: calc(100% + 24px);
      right: 50%;
      transform: translateX(50%);
    }
  }

  .img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border: 1.5px solid;
    border-radius: 50%;
    aspect-ratio: 1;
    position: relative;
    transition: background-color 300ms, border-color 300ms;

    img {
      filter: grayscale(1) brightness(0);
      transition: filter 300ms, transform 300ms;
    }

    &::after {
      content: url(../../../images/animations/circle-blue.svg);
      position: absolute;
      width: 128px;
      height: 128px;
      opacity: 0;
      transition: opacity 300ms;
    }

    &:hover {
      img {
        filter: none;
        transform: scale(105%);
      }

      &::after {
        opacity: 1;
        animation: spin 2s linear infinite;
      }
    }
  }
}

.key-benefits-section__container {
  margin-top: 56px;
  max-width: 1440px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  justify-content: center;
}

.key-benefit-section__benefit {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 300px;

  h3 {
    margin-top: 32px;
    color: var(--dark-100);
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
  }

  p {
    margin-top: 16px;
    color: var(--dark-50);
    font-weight: 400;
    font-size: 16px;
    line-height: 25.6px;
  }

  &:first-child,
  &:last-child {
    .img-wrapper {
      border-color: #0088ff;

      &:hover {
        border-color: transparent;
        background-color: #0088ff0a;

        &::after {
          content: url(../../../images/animations/circle-blue.svg);
        }
      }
    }
  }

  &:nth-child(5) {
    .img-wrapper {
      border-color: var(--green-primary);

      &:hover {
        border-color: transparent;
        background-color: #00cc580a;

        &::after {
          content: url(../../../images/animations/circle-green.svg);
        }
      }
    }
  }

  &:nth-child(3),
  &:nth-child(6) {
    .img-wrapper {
      border-color: var(--violet-primary);

      &:hover {
        border-color: transparent;
        background-color: #6f4be50a;

        &::after {
          content: url(../../../images/animations/circle-violet.svg);
        }
      }
    }
  }
}

.key-benefit-section__line {
  width: 140px;
  height: 1px;
  background-color: #0088ff;
}

.key-benefit-section__line:nth-of-type(2) {
  background-color: var(--violet-primary);
}

@media (max-width: 1439px) {
  .key-benefits-section__container {
    gap: 32px;
  }

  .key-benefit-section__line {
    display: none;
  }
}

@media (max-width: 1280px) {
  .key-benefits-section {
    padding-inline: 48px;
  }
}

@media (max-width: 768px) {
  .key-benefits-section {
    margin-top: 48px;

    h2 {
      font-size: 32px;
    }
  }

  .key-benefit-section__benefit {
    h3 {
      font-size: 24px;
    }
  }
}

@media (max-width: 560px) {
  .key-benefits-section {
    margin-top: 32px;
    padding-inline: 16px;
  }
}
