.elvtd-numbered-slider {
  overflow-x: visible;
  padding-top: var(--ns-pad-top-d, 40px);
  padding-bottom: var(--ns-pad-bottom-d, 40px);

  &.bottom_border {
    .section-container {
      border-bottom: 1px solid #98989866;
    }
  }

  @media (max-width: 767px) {
    padding-top: var(--ns-pad-top-m, 24px);
    padding-bottom: var(--ns-pad-bottom-m, 24px);
  }

  .section-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1680px;
    padding: 0;
    margin:0 140px;

    @media (max-width: 1680px) {
      max-width: 100%;
      gap: 40px;
    }

    @media (max-width: 1440px) {
      max-width: 1280px;
      margin: auto;
      padding: 0 20px 32px;
    }

    @media (max-width: 1280px) {
      max-width: 1024px;
    }

    @media (max-width: 1024px) {
      max-width: calc(100vw - 120px);
    }

    @media (max-width: 767px) {
      gap: 16px;
      padding: 0 10px;
      max-width: unset;
    }

    .elvtd-numbered-slider-main {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      pointer-events: none;
      transition:
        max-height 0.45s ease,
        opacity 0.25s ease;

      @media (max-width: 1280px) {
        margin-left: calc(calc(100% - 1020px) / 2);
        overflow: visible;
      }
    }

    .elvtd-numbered-slider__header {
      @media (max-width: 1280px) {
        max-width: 1020px;
        margin: auto;
        width: 100%;
      }

      .elvtd-numbered-slider__heading-wrapper {
        display: flex;
        align-items: center;
        gap: 24px;
        max-width: 1680px;
      

        @media (max-width: 1680px) {
          max-width: unset;
        }

        @media (max-width: 767px) {
          gap: 12px;
        }

        .elvtd-numbered-slider__number {
          font-weight: 500;
          font-size: 20px;
          line-height: 1;
          margin: 0;
          color: #000000cc;

          @media (max-width: 767px) {
            font-size: 16px;
          }
        }

        .elvtd-numbered-slider__heading {
          font-weight: 400;
          font-size: 35px;
          line-height: 1.2;
          letter-spacing: -5%;
          margin: 0;
          background: linear-gradient(
            96.83deg,
            #181818 33.81%,
            #7e7e7e 104.23%
          );
          background-clip: text;
          color: transparent;

          @media (max-width: 767px) {
            font-size: 25px;
          }
        }

        .section-toggle {
          appearance: none;
          border: 0;
          background: transparent;
          padding: 0;
          cursor: pointer;
          display: inline-flex;
          align-items: center;
          justify-content: center;

          .toggle-open {
            path {
              fill: #000;
            }
          }

          .toggle-close {
            display: none;
            background: #000;
          }
        }

        .elvtd-numbered-slider__heading {
          width: 100%;

          p {
            font-weight: 400;
            font-size: 35px;
            line-height: 1.2;
            letter-spacing: -5%;
            margin: 0;
            background: linear-gradient(
              96.83deg,
              #181818 33.81%,
              #7e7e7e 104.23%
            );
            background-clip: text;
            color: transparent;

            @media (max-width: 767px) {
              font-size: 25px;
            }
          }
        }

        span {
          font-weight: 500;
          font-size: 20px;
          line-height: 1;
          margin: 0;
          color: #000000cc;

          @media (max-width: 767px) {
            font-size: 16px;
          }
        }

        .section-toggle svg {
          display: block;
        }
      }
    }
  }

  .button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }

  &.is-open {
    .section-container {
      .elvtd-numbered-slider-main {
        max-height: 9999px;
        opacity: 1;
        pointer-events: auto;
      }

      .elvtd-numbered-slider__header {
        .section-toggle {
          .toggle-open {
            display: none;
          }

          .toggle-close {
            display: block;
          }
        }
      }
    }
  }

  .elvtd-numbered-slider-cards-wrapper {
    display: flex;
    gap: 180px;
    margin-bottom:80px;

    @media (max-width: 1024px) {
      gap: 80px;
       margin-bottom:40px;
    }

    @media (max-width: 767px) {
      flex-direction: column-reverse;
      gap: 16px;
      margin-bottom:24px;
    }

    .elvtd-numbered-slider-container {
      display: flex;
      overflow-x: auto;
      overflow-y: hidden;
      gap: 4px;
      padding: 10px 20px 20px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
      width: calc(100vw - 15px);
      max-width: none;
      position: relative;
      left: 43%;
      -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
      transform: translateX(-50%);
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      scroll-snap-type: x mandatory;

      &::-webkit-scrollbar {
        display: none;
      }

      @media (max-width: 767px) {
        left: calc(50% + 12px);
        padding: 0;
      }
    }

    .elvtd-numbered-slider-controls {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 10px;
    }
  }

  .scroll-card {
    isolation: isolate;
    min-height: 400px;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    gap: 30px;
    min-width: 357px;
    border: 1px solid #98989866;
    cursor: pointer;
    transition: border-color 0.4s ease;
    scroll-snap-align: start;
    border-radius: 0;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: var(--card-background-image);
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 0;
      pointer-events: none;
    }

    @media (max-width: 1024px) {
      min-height: 320px;
      min-width: 300px;
      gap: 12px;
    }

    @media (max-width: 767px) {
      min-height: 347px;
      min-width: 357px;
    }

    .content {
      padding: 24px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      align-items: flex-start;
      justify-content: space-between;
      position: relative;
      z-index: 2;
      padding-bottom: 8px;

      @media (max-width: 767px) {
        justify-content: center;
        gap: 42px;
      }

      .content-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        z-index: 2;
        position: relative;

        &.heading {
          display: flex;
          gap: 16px;
          flex-direction: row;
          align-items: center;
        }

        .icon-container {
          border: 1px solid #000;
          border-radius: 50%;
          transition: border-color 0.4s ease;

          .icon-wrapper {
            width: 40px;
            height: 40px;
            text-align: center;
            border-radius: 50%;
            border: 1px solid #000;
            max-height: 85px;
            background: #000;
            display: block;
            content: "";
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            transition:
              border-color 0.4s ease,
              background-color 0.4s ease;

            img {
              max-width: 25px;
              margin: 0 30px;
              max-height: 85px;
            }
          }
        }

        .title {
          font-weight: 300;
          margin-top: 0;
          line-height: 1.3;
          margin-bottom: 0;
          letter-spacing: -0.02em;
          transition: color 0.4s ease;
          font-family: Inter;
          font-weight: 500;
          font-size: 30px;
          line-height: 1.2;
          letter-spacing: -5%;

          @media (max-width: 767px) {
            font-size: 20px;
          }
        }

        .descriptions {
          display: flex;
          flex-direction: column;
          gap: 4px;

          .title-description {
            margin: 0;
            font-weight: 500;
            color: #000;
            letter-spacing: 0;
            transition: color 0.4s ease;
            font-weight: 500;
            font-size: 16px;
            line-height: 1;
            letter-spacing: -4%;
          }

          .description {
            margin: 0;
            font-weight: 300;
            color: #000;
            transition: color 0.4s ease;
            font-family: Inter;
            font-weight: 300;
            font-size: 16px;
            line-height: 1.3;
            letter-spacing: -4%;
            margin-bottom: 16px;

            @media (max-width: 1024px) {
              margin-bottom: 8px;
            }

            @media (max-width: 767px) {
              margin-bottom: 20px;
            }
          }

          .card-description {
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            font-weight: 300;
            font-size: 16px;
            line-height: 20px;
            letter-spacing: 0;
            margin: 0 0 15px;
            color: #000;
          }

          .bullet-list {
            font-family: Inter;
            font-weight: 500;
            font-size: 16px;
            line-height: 20px;
            letter-spacing: 0;
            margin: 0;
            padding-left: 20px;
            color: #000;

            li {
              margin-bottom: 16px;
              font-weight: 300;
              font-size: 16px;
              line-height: 140%;
              letter-spacing: -1%;
            }
          }
        }
      }
    }

    &.active {
      color: #fff;
      border-color: transparent;

      &::after {
        opacity: 1;
      }

      .content {
        z-index: 3;
        position: relative;

        .content-section {
          z-index: 3;
          position: relative;

          .icon-container {
            border: 1px solid #fff;

            .icon-wrapper {
              border: 1px solid #fff;
              background-color: #fff;
            }
          }

          .title {
            color: #fff;
            margin-bottom: 0;
          }

          .descriptions {
            .title-description {
              color: #fff;
            }

            .description {
              color: #fff;
            }

            .card-description {
              color: #fff;
            }

            .bullet-list {
              color: #fff;
            }
          }
        }
      }
    }
  }

  .scroll-nav-button {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;

    &[disabled] {
      opacity: 0.5;
    }

    &:before {
      content: "";
      width: 24px;
      height: 24px;
      background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjU0MSA0LjcxN0w4LjgyNCAwTDguMTE3IDAuNzA3TDEyLjczMyA1LjMyNEgwVjYuMzI0SDEyLjczNUw4LjExNyAxMC45NDFMOC44MjQgMTEuNjQ4TDEzLjU0MSA2LjkzMkMxMy44MzcgNi42MzYgMTQgNi4yNDIgMTQgNS44MjRDMTQgNS40MDYgMTMuODM3IDUuMDEyIDEzLjU0MSA0LjcxOFY0LjcxN1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=");
      background-size: center;
      background-position: center;
      background-repeat: no-repeat;
    }

    &.scroll-nav-button--prev {
      &:before {
        transform: rotate(180deg);
      }
    }
  }
}

@media (max-width: 1440px) {
  .elvtd-numbered-slider {
    .section-container {
      padding: 0 20px;

      @media (max-width: 767px) {
        padding: 0 10px;
        padding-bottom: 32px;
      }
    }
  }
}

@media (max-width: 767px) {
  .elvtd-numbered-slider {
    overflow-x: hidden;

    .section-container {
      .elvtd-numbered-slider-main {
        width: 100%;
        margin-left: 0;
        overflow: hidden;
      }
    }
  }

  .elvtd-numbered-slider-cards-wrapper {
    width: 100%;

    .elvtd-numbered-slider-container {
      position: static;
      left: auto;
      width: 100%;
      max-width: 100%;
      padding: 0;
      gap: 0;
      transform: none;
      scroll-padding-left: 0;
    }
  }

  .scroll-card {
    min-height: 300px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .scroll-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}
