html [data-scroll-comp='powertrains'] {
  scroll-padding-top: 40px;
}

.powertrains-container .powertrains-wrapper {
  background: linear-gradient(60deg, #c9d3d7 3.71%, #ebebeb 104.51%);

  .container {
    padding: 0rem;
    overflow: hidden;
    width: 100%;
    padding-top: 32px;
    padding-bottom: 40px;

    @media (width >=768px) {
      padding-bottom: 41px;
    }

    @media (width >=1024px) {
      padding-top: 96px;
      padding-bottom: 95px;
    }

    @media (width >=1366px) {
      padding-bottom: 44px;
    }

    @media (width >=1920px) {
      padding-bottom: 48px;
    }

    .powertrains-items {
      &.dual-cards-items {
        display: flex;
        align-items: stretch;
      }
    }

    @media (width >=1200px) {
      height: auto;
    }
  }

  .powertrains-heading-container {
    display: flex;
    padding: 0rem 3.5rem;
    justify-content: space-between;

    .powertrains-title {
      width: 388px;
      color: var(--primary-main);
      font-family: var(--body-heading-font-family);
      font-size: var(--heading-font-9-mob);
      font-style: normal;
      font-weight: var(--keplar-fw-700);
      line-height: var(--heading-lh-9-mob-display);
      letter-spacing: 0.07rem;
      text-align: left;
      margin-top: 0;
      margin-bottom: 0;
    }

    .powertrains-list-description {
      text-align: -webkit-right;

      @media (width>=1024px) {
        width: 355px;
      }

      p {
        color: var(--primary-main);
        font-family: var(--font-primary-nexa);
        font-size: 1.125rem;
        font-style: normal;
        font-weight: 300;
        line-height: 1.5rem;
        text-align: left;
        width: 50%;
        float: right;

        @media (width>=1024px) {
          width: 100%;
        }
      }
    }
  }

  .powertrain-items-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    margin-bottom: 11px;

    @media (width>=768px) {
      padding: 0rem 56px 0rem 56px;
    }

    @media (width>=1024px) {
      margin-top: 2.5rem;
    }

    .cardsTrack {
      display: flex;
      transition: transform 0.4s ease-in-out;
      will-change: transform;
      gap: 24px;
    }

    .powertrain-item-top-cta {
      position: absolute;
      top: 2.313rem;
      right: 44px;
      font-weight: var(--fw-400);
      font-size: 12px;
      color: var(--Tertiary-White, #fff);
      line-height: 16px;
      letter-spacing: 0%;
      background: none;
      text-decoration: none;
      z-index: 10;

      @media (width>=1024px) {
        top: 54px;
        font-size: 14px;
        line-height: 20px;
        right: 56px;
      }

      &::after {
        content: url(/icons/white-slant-arrow.svg);
        position: absolute;
        display: inline-block;
        height: 1rem;
        width: 1rem;
        transform: scale(0.17);
        margin-top: -5px;
        transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

        @media (width>=1024px) {
          height: 0.75rem;
          width: 0.75rem;
          transform: scale(0.2);
          margin-top: -3px;
        }
      }
    }

    .powertrain-item {
      position: relative;
    }

    .cardsWrapper {
      display: flex;
      justify-content: space-between;
      gap: 1.5rem;
      padding: 0;
      width: 100%;
      flex-shrink: 0;
      position: relative;
      height: auto;
    }

    .powertrain-item {
      height: 15.25rem;
      padding: 1.5rem;
      background: linear-gradient(65deg, rgba(56, 79, 110, 0.8) 14.59%, rgba(91, 91, 91, 0.8) 98.45%);

      @media (width < 1024px) {
        width: 100%;
      }

      .item-title {
        margin-top: 0;
        margin-bottom: 12px;
      }

      &.selected {
        /* flex-grow: 0; */
        padding: 3rem 0rem 1rem 2rem;
        height: 100%;
        position: relative;
        margin-top: 0;
        /* flex-basis: 50%; */
        clip-path: polygon(calc(61% - 1.125rem) 1rem, 60% 0, 100% 0, 100% 150%, 0 100%, 0 1rem);
        background: linear-gradient(65deg, rgba(56, 79, 110, 0.8) 14.59%, rgba(91, 91, 91, 0.8) 98.45%);

        .powertrain-item-image {
          position: relative;
          transform: none;
          left: auto;
          width: 295px;
        }

        .powertrain-item-image.hide-image {
          display: none;
        }

        .clipping {
          display: none;
          height: 1.25rem;
          position: relative;
          background: linear-gradient(65deg, rgba(56, 79, 110, 0.8) -80.59%, rgba(91, 91, 91, 0.8) 98.45%);
          top: -3.25rem;
          clip-path: polygon(11.5% 0, 100% 0, 100% 100%, 0 100%, 0 100%, 8% 100%);
          width: 60%;
          float: right;
          margin-right: -2rem;

          @media (width < 768px) {
            clip-path: polygon(13.5% 0, 100% 0, 100% 100%, 0 100%, 0 100%, 8% 100%);
            top: -2.72rem;
            margin-right: -1.5rem;
          }
        }

        :is(h1, h2, h3, h4, h5, h6) {
          color: var(--tertiary-white);
          font-family: var(--font-primary-nexa);
          font-size: 1.5rem;
          font-style: normal;
          font-weight: 500;
          line-height: 2rem;
        }

        .powertrain-item-variants {
          color: var(--tertiary-white);
          font-family: var(--font-primary-nexa);
          font-size: 1rem;
          font-style: normal;
          font-weight: 400;
          line-height: 1.25rem;
          margin-bottom: 1rem;

          @media (width >=1024px) {
            width: 55%;
          }
        }

        .powertrain-item-description {
          color: var(--tertiary-white);
          font-family: var(--font-primary-nexa);
          font-size: 0.75rem;
          font-style: normal;
          font-weight: 500;
          line-height: 1.25rem;
          margin-top: 0rem;
          min-height: 60px;

          @media (width<=1023) {
            width: 100%;
          }
        }

        .img-list-container {
          display: flex;
          justify-content: space-between;
          height: max-content;
        }

        .item-title {
          margin-top: 0;
          margin-bottom: 13px;
        }
      }

      &.selected.not-expanded {
        width: 50.9%;
      }

      @media (width > 1023px) {
        &.selected .powertrain-item-image img {
          position: absolute;
          transform: translate(-52%, 45%);
          left: 50%;
          top: -75px;
          width: 100%;
          margin-top: 0;
        }
      }

      @media (width >=1200px) {
        /* width: 100%;
                flex-grow: 1; */
        padding: 2rem 2rem 1rem;
      }

      :is(h1, h2, h3, h4, h5, h6) {
        color: var(--tertiary-white);
        font-family: var(--font-primary-nexa);
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 1.25rem;
        margin-bottom: 0.5rem;
      }

      .powertrain-item-variants {
        color: var(--tertiary-white);
        font-family: var(--font-primary-nexa);
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 400;
        min-height: 40px;
        line-height: 1.25rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
      }

      .powertrain-item-image {
        text-align: center;
        margin-top: 1rem;
        object-fit: contain;
        height: auto;

        @media (width >=1200px) {
          width: 13.4rem;
          position: absolute;
          transform: translate(-50%, 0%);
          left: 50%;
        }
      }

      .powertrain-item-image img {
        text-align: center;
        margin-top: 44px;
        object-fit: contain;
        height: auto;

        @media (width >=1024px) {
          width: 13.4rem;
        }
      }

      .img-list-container {
        display: flex;
        justify-content: center;
        position: relative;
        height: 100%;
      }

      .powertrain-item-description {
        color: var(--tertiary-white);
        font-family: var(--font-primary-nexa);
        font-size: 0.75rem;
        font-style: normal;
        font-weight: 500;
        line-height: 1.25rem;
        width: 18rem;
        margin-top: 0rem;
        overflow: hidden;
      }

      .powertrain-item-details {
        overflow: hidden;
        width: 50%;

        ul {
          margin-bottom: 0;
          margin-top: 28px;
          list-style: disc;
          padding-inline-start: 9px;
          margin-left: 0.5rem;

          @media (width>=1024px) {
            margin-top: 32px;
          }
        }

        ul li {
          color: var(--tertiary-white);
          font-family: var(--font-primary-nexa);
          font-size: 0.75rem;
          font-style: normal;
          font-weight: 400;
          line-height: 1.25rem;
          display: list-item;
          margin-left: 0.5rem;
        }
      }
    }
  }

  .powertrains-ctas-container {
    display: flex;
    justify-content: space-between;
    padding: 0rem 3.5rem;
    margin-top: 2.25rem;

    .powertrains-ctas {
      display: flex;
      justify-content: space-between;
      gap: 24px;

      a {
        white-space: nowrap;
      }

      .primary-cta-container {
        width: 100%;
      }
    }

    .secondary-cta-container {
      width: 100%;

      a {
        color: var(--primary-main);
      }
    }
  }
}

.carousel-arrow_navigation {
  text-align: end;
  display: flex;
  align-items: center;

  button:disabled {
    opacity: 0.5;
  }

  .next_arrow {
    background: url('/icons/nextArrow.svg') no-repeat;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 1.5rem;
  }

  .prev_arrow {
    background: url('/icons/prevArrow.svg') no-repeat;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 1.5rem;
  }
}

.carousel-arrow_navigation-container {
  flex-direction: row-reverse;
  align-items: center;

  .showing_variants {
    color: var(--secondary-main);
    text-align: right;
    font-family: var(--font-primary-nexa);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
    text-transform: uppercase;
    margin-right: 1.5rem;
    margin-top: 0.125rem;
  }
}

@media (width >=768px) {
  .cardsWrapper.slide-1 {
    margin-left: -18px;
  }
}

@media ((width >=1024px) and (width < 1300px)) {
  .powertrains-container .powertrains-wrapper {
    .powertrain-item {
      padding: 1rem 1rem;

      p,
      .powertrain-item-variants,
      .powertrain-item-description,
      .powertrain-item-details ul li {
        font-size: 0.625rem;
      }
    }
  }
}

@media (width < 1024px) {
  .powertrains-container .powertrains-wrapper {
    height: fit-content;
    background: linear-gradient(60deg, #c9d3d7 3.71%, #ebebeb 104.51%);

    .powertrains-heading-container {
      display: flex;
      flex-direction: column;
      padding: 0rem 1.25rem;

      .powertrains-title {
        width: 100%;
        font-size: var(--heading-font-17-des);
        font-style: normal;
        font-weight: var(--keplar-fw-700);
        line-height: var(--heading-lh-16-des-display);
        letter-spacing: 0.04rem;
        margin-bottom: 1.5rem;
      }

      .powertrains-list-description {
        text-align: -webkit-right;

        p {
          color: var(--secondary-main);
          font-family: var(--font-primary-nexa);
          font-size: 0.875rem;
          font-style: normal;
          font-weight: 300;
          line-height: 1.25rem;
          text-align: left;
          width: 100%;
          margin-top: 0rem;
          margin-bottom: 2rem;
        }
      }
    }

    .powertrain-items-container {
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      padding: 0rem 1.25rem;
      height: auto;

      .powertrain-item .powertrain-item-image {
        position: absolute;
        right: 0;
        bottom: 20px;

        img {
          margin-right: -10px;
          position: absolute;
          max-width: 155px;
          bottom: -19px;
          margin-top: 0;
          right: -14px;
          z-index: 1;
        }
      }

      .powertrain-item-variants {
        position: relative;
        z-index: 2;
      }

      .powertrain-item .img-list-container {
        position: absolute;
        bottom: -35px;
        right: 24px;
        display: block;
      }

      .powertrain-item.selected {
        position: relative;
        clip-path: polygon(calc(61% - 1.125rem) 1rem, 60% 0, 120% 0, 100% 155%, 0 100%, 0 1rem);
        height: max-content;
        padding: 2.313rem 1.5rem 1.5rem;
        flex-basis: unset;
        background: linear-gradient(238deg, rgba(56, 79, 110, 0.8) -11.12%, rgba(91, 91, 91, 0.8) 111.5%);

        @media (width > 1023px) {
          padding: 3rem 1.5rem;
        }

        :is(h1, h2, h3, h4, h5, h6) {
          font-size: 1rem;
          font-style: normal;
          font-weight: 500;
          line-height: 1.25rem;
        }

        .powertrain-item-variants {
          font-size: 0.875rem;
          font-style: normal;
          font-weight: 400;
          line-height: 1.25rem;
          margin-bottom: 12px;
        }

        .powertrain-item-image {
          width: calc((var(--grid-formula) * 2) + (var(--grid-gutter-width) * (2 - 1)));
          align-self: flex-end;
          flex: 1;
          margin-top: 0;
        }

        .powertrain-item-image img {
          max-width: 155px;
          position: absolute;
          margin-top: -5px;
          margin-right: -0.75rem;
          right: -12px;
          bottom: -80px;
        }

        .img-list-container {
          position: relative;
          bottom: 0;
          left: 0px;
          justify-content: space-between;
          display: none;
        }

        .powertrain-item-cta-icon {
          display: none;
        }
      }

      .powertrain-item {
        &.selected.not-expanded {
          width: auto;
        }
      }

      .powertrain-item {
        height: 8.125rem;
        padding: 1.5rem;
        margin-bottom: 24px;
        flex-basis: unset;
        background: linear-gradient(238deg, rgba(56, 79, 110, 0.6) -11.12%, rgba(91, 91, 91, 0.6) 111.5%);
        position: relative;

        &:last-child {
          margin-bottom: 1.688rem;
        }

        :is(h1, h2, h3, h4, h5, h6) {
          font-size: 1rem;
          font-style: normal;
          font-weight: 500;
          line-height: 1.25rem;
        }

        h3 {
          margin-top: 0;
          margin-bottom: 13px;
        }

        h4 {
          margin-top: 0;
          margin-bottom: 1.5rem;
        }

        .powertrain-item-variants {
          font-size: 0.875rem;
          font-style: normal;
          font-weight: 400;
          line-height: 1.25rem;
        }

        .powertrain-item-description {
          font-size: 0.75rem;
          font-style: normal;
          font-weight: 500;
          line-height: 1rem;
        }

        /* .powertrain-item-image, */

        .powertrain-item-details {
          ul li {
            font-size: 0.75rem;
            font-style: normal;
            font-weight: 400;
            line-height: 1rem;
            width: 100%;
          }
        }
      }

      .powertrain-item-cta-icon {
        position: absolute;
        transform: translate(-50%, -50%);
        left: 50%;
        bottom: -14px;
      }
    }

    .powertrains-ctas-container {
      margin-top: 10px;
      padding: 0 1.25rem 0;

      .powertrains-ctas {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 16px;
      }
    }
  }
}

@media (width >=768px) {
  .powertrains-container .powertrains-wrapper {
    & .powertrains-ctas-container {
      padding-bottom: 0px;

      .powertrains-ctas {
        flex-direction: row;
        gap: 24px;
      }
    }
  }
}

@media (width > 1023px) {
  .powertrains-container {
    .powertrains-wrapper {
      .powertrains-ctas-container {
        margin-bottom: 0px;
        margin-top: 66px;
      }

      & .powertrains-heading-container {
        .powertrains-title {
          line-height: normal;
        }
      }
    }
  }
}