.timeline {
  .milestone {
    @apply
      overflow-hidden;
  }

  .single {
    @apply
      max-w-5xl
      mx-auto
      items-center
      lg:items-start
      flex
      flex-col
      flex-wrap
      mb-14

      lg:mb-15
      lg:flex-nowrap
      lg:justify-center
      lg:flex-row
      xl:gap-32;

    div {
      @apply
        mt-8
        lg:mt-6
        text-primary-500
        w-full
        px-4

        text-sm
        lg:w-auto
        lg:text-lg;
    }

    h2 {
      @apply
        flex-none;
    }
  }

  .arrow-container {
    .swiper-button-prev {
      @apply
        absolute
        top-4
        lg:top-8
        bottom-0;
    }

    svg {
      @apply
        h-6
        w-auto;
    }

    .swiper-button-next {
      @apply
        absolute
        top-4
        lg:top-8
        bottom-0;
    }
  }

  .custom-pagination {
    @extend .has-sm-font-size;
    @extend .alignfull;
    @apply
      flex
      flex-col
      gap-0
      relative
      items-center

      before:w-full
      before:h-px
      before:relative
      before:top-1.5
      z-0
      before:bg-primary-250;

    .wrapper {
      @apply
        flex
        justify-between
        w-full
        items-center;

      .pagination {
        &.active {
          .label,
          .circle {
            @apply
              opacity-50;
          }
        }
      }

      .label,
      .circle {
        @apply
          transition-all
          duration-300;
      }

      > div {
        @apply
          flex
          cursor-pointer
          items-center
          justify-between
          flex-col;

        &:hover {
          .circle,
          .label {
            @apply
              opacity-50;
          }
        }
      }
    }

    .external-circle {
      @apply
        h-6
        z-10
        w-6
        flex
        justify-center
        bg-white
        rounded-full;

      .circle {
        @apply
          bg-primary-500
          h-2.5
          w-2.5
          rounded-full;
      }
    }
  }

  h2 {
    @extend .has-4-xl-font-size;
  }
}
