/*==============================================================
  11. About
================================================================*/

@use "../default/breakpoints" as bp;

.cs_about_style_1 {
  .cs_about_thumbnail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-inline-end: 24px;

    img {
      width: 100%;
    }
  }

  .cs_counter_wrapper_style_1 {
    width: min(100%, 564px);
    min-height: 108px;
    position: relative;
    justify-content: center;
    margin-top: -108px;
    margin-inline: auto 24px;
    z-index: 1;
  }

  @include bp.down(xxl) {
    .cs_about_thumbnail {
      padding-inline-end: 0;
    }

    img {
      height: 100%;
    }

    .cs_counter_wrapper_style_1 {
      margin: 0;
      width: 100%;
    }
  }

  @include bp.down(lg) {
    .cs_about_thumbnail {
      padding-inline-end: 0;
    }

    .cs_second_thumbnil_img {
      width: 100%;
      height: 100%;

      img {
        height: 100%;
      }
    }
  }
}

.cs_about_style_2 {
  padding-top: 150px;

  .cs_about_right {
    height: 100%;
    display: flex;
    gap: 24px;
    flex-direction: column;
    justify-content: space-between;
  }

  .cs_about_thumbnail {
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  @include bp.down(lg) {
    padding-top: 90px;
  }
}

.cs_about_style_3 {
  .cs_about_thumbnail {
    background: var(--gray-color5);

    img {
      width: 100%;
    }
  }

  .cs_about_text {
    padding-inline-start: 24px;
  }

  .cs_author {
    letter-spacing: -0.288px;
  }

  .cs_about_details {
    li {
      color: var(--gray-color1);
      position: relative;
      padding-inline-start: 34px;

      &:not(:last-child) {
        margin-bottom: 12px;
      }

      .cs_icon {
        position: absolute;
        inset-inline-start: 0;
      }
    }
  }
}

.cs_year_section {
  .cs_story_thumbnail {
    padding-inline-start: 60px;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  @include bp.down(xxl) {
    .cs_story_thumbnail {
      padding-inline-start: 0;
    }
  }

  @include bp.down(lg) {
    .cs_story_thumbnail {
      max-height: 400px;
    }
  }
}

.cs_story_of_years {
  padding-block: 88px;
  padding-inline: 60px 0;

  .cs_years {
    display: flex;
    overflow-x: auto;

    span {
      display: block;
      width: min(20%, 162px);
      min-width: 120px;
      padding-bottom: 54px;
      position: relative;
      flex: none;
      letter-spacing: -0.64px;

      &::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--gray-color6);
        bottom: 0;
        inset-inline-start: 30px;
        z-index: 1;
      }

      &::after {
        content: "";
        position: absolute;
        height: 1px;
        width: 100%;
        background-color: var(--gray-color6);
        bottom: 9px;
        inset-inline-start: 0;
      }

      &.active {
        &::before {
          background-color: var(--accent-color);
        }
      }
    }
  }

  @include bp.down(lg) {
    padding: 24px 24px 0;

    .cs_years {
      span {
        padding-bottom: 40px;

        &::before {
          inset-inline-start: 15px;
        }
      }
    }
  }

  @include bp.down(sm) {
    padding: 24px 15px 0;
  }
}

.cs_srory_style_1 {
  @include bp.down(sm) {
    .cs_fs_20 {
      font-size: 16px;
    }
  }
}

/*============================================
 Counter
==============================================*/
// Same-width digits, so the counter never changes width while it spins.
.cs_counter {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cs_counter_style_1,
.cs_counter_style_2 {
  .cs_counter_number {
    display: flex;
    align-items: center;
  }

  @include bp.down(md) {
    .cs_counter_number {
      font-size: 20px;
    }

    .cs_counter_title {
      font-size: 7px;
    }
  }
}

.cs_counter_style_2 {
  &:not(:last-child) {
    padding-bottom: 10px;
  }
}

@include bp.down(md) {
  .cs_counter_title {
    font-size: 12px !important;
  }
}

.cs_counter_wrapper_style_1 {
  padding: 20px;
  display: flex;
  text-align: center;
  position: absolute;
  gap: 32px;

  @include bp.down(xxl) {
    position: initial;
    padding: 20px 15px;
    gap: 16px;
  }
}

.cs_counter_wrapper_style_2 {
  padding: 20px 0;
}

.cs_project_overview_thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

  .cs_thumbnail {
    &:first-child {
      grid-row: 1 / span 2;
    }

    img {
      width: 100%;
      height: 100%;
    }
  }

  @include bp.down(md) {
    gap: 12px;
  }
}

.cs_solution_thumbnail {
  img {
    width: 100%;
  }
}

/*=============================================
 Team Component
===============================================*/
.cs_team_style_1 {
  width: min(100%, 350px);

  .cs_team_thumbnail {
    img {
      width: 100%;
    }
  }

  .cs_team_title {
    letter-spacing: -0.24px;
  }

  @include bp.down(sm) {
    margin: auto;
  }
}