/* screen - about-page-ui */

.about-page-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  width: 100%;
  margin-top: clamp(48px, 7.5dvw, 72px);
}

.about-container {
  max-width: 1140px;
  width: 100%;

  &.small {
    max-width: 750px;
  }

  @media screen and (max-width: 768px) {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* Title */
.about-title {
  display: flex;
  padding-top: clamp(32px, 6.5dvw, 72px);

  h1, p {
    color: var(--black-2);
    font-family: var(--font-family);
    text-align: center;
    max-width: 555px;
    width: 100%;
    margin: 0;

    @media screen and (max-width: 650px) {
      max-width: 100%;
    }
  }

  h1 {
    font-size: clamp(24px, 7.5dvw, 48px);
    line-height: clamp(29.3px, 5dvw, 58.61px);
    font-weight: 700;
  }

  p {
    font-size: clamp(14px, 4.25dvw, 16px);
    line-height: clamp(20px, 4dvw, 22px);
    font-weight: 400;
    margin-top: 24px;
  }
}

/* Banner */
.about-banner {
  margin-top: clamp(24px, 7.5dvw, 56px);

  img {
    width: 100%;
  }
}

/* FYF */
.about-fyf {
  /*
    8px difference between min/max 64px (320px) and 56px (1980px),
    1660 difference between min/max viewport (320px and 1980px)
   */
  margin-top: clamp(56px, calc(64px - (8 * (100vw - 320px) / 1660)), 64px);

  .about-container {
    display: flex;
    width: 100%;

    > div {
      flex: 1;
    }

    article {
      flex: 1.8;
    }

    @media screen and (max-width: 650px) {
      flex-direction: column;
    }
  }

  h1 {
    color: var(--black-2);
    font-family: var(--font-family);
    font-size: clamp(24px, 7.5dvw, 32px);
    line-height: clamp(29.3px, 5dvw, 39.07px);
    font-weight: 700;
    margin: 0;
  }

  .about-founder {
    display: flex;
    align-items: center;
    column-gap: 12px;
    margin-top: clamp(24px, 4dvw, 73px);

    img {
      width: clamp(40px, 5dvw, 48px);
      height: clamp(40px, 5dvw, 48px);
    }

    div {
      display: flex;
      flex-direction: column;
    }

    strong, span {
      color: var(--black-2);
      font-family: var(--font-family);
    }

    strong {
      font-size: 14px;
      line-height: 18px;
      font-weight: 700;
    }

    span {
      font-size: 12px;
      line-height: 16px;
      font-weight: 400;
      padding-top: 4px;
    }
  }

  .about-description {
    p {
      color: var(--black-2);
      font-family: var(--font-family);
      font-size: 14px;
      line-height: 20px;
      font-weight: 400;
      margin: 0 0 16px 0;

      &:last-of-type {
        margin-bottom: 0;
      }
    }

    @media screen and (max-width: 650px) {
      margin-top: 24px;
    }
  }
}

/* Info */
.about-info {
  margin-top: clamp(56px, 7.5dvw, 92px);

  h3 {
    color: var(--black-2);
    font-family: var(--font-family);
    font-size: clamp(20px, 6dvw, 24px);
    line-height: clamp(24.42px, 5dvw, 29.3px);
    font-weight: 700;
    margin: 0;
    text-align: center;
    padding: 0 20px;

    @media screen and (max-width: 768px) {
      padding: 0;
    }
  }

  .about-statistic {
    display: flex;
    justify-content: space-between;
    margin-top: clamp(24px, 7.5dvw, 64px);

    @media screen and (max-width: 650px) {
      flex-direction: column;
      align-items: center;
      padding-left: 0;
    }

    article {
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      width: fit-content;

      @media screen and (max-width: 650px) {
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
      }

      strong {
        color: var(--colorsecondaryorange);
        font-family: var(--font-family);
        font-size: clamp(32px, 6dvw, 40px);
        line-height: clamp(39.07px, 5dvw, 48.84px);
        font-weight: 700;
        margin: 0;
      }

      p {
        color: var(--black-2);
        font-family: var(--font-family);
        font-size: 16px;
        line-height: 19.09px;
        font-weight: 400;
        margin: 12px 0 0 0;
      }
    }
  }
}

/* Values */
.about-values {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  background: linear-gradient(0deg, rgba(37, 102, 235, 0.08), rgba(37, 102, 235, 0.08));
  margin-top: clamp(116px, 6dvw, 191px);
  margin-bottom: clamp(60px, 6dvw, 145px);
  padding-bottom: 71px;

  &::before {
    content: '';
    background-image: url("./../img/about/bg-top.svg");
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    display: block;
    height: clamp(100px, 6dvw, 167px);
    bottom: 99%;
   }

  &::after {
     content: '';
     background-image: url("./../img/about/bg-bottom.svg");
     background-size: cover;
     background-repeat: no-repeat;
     background-position: bottom;
     position: absolute;
     width: 100%;
     display: block;
     height: clamp(70px, 6dvw, 145px);
     top: 99%;
   }

  .about-container {
    padding-top: clamp(40px, 6dvw, 71px);

    &.small {
      padding-top: 28px;
    }
  }

  h3 {
    color: var(--black-2);
    font-family: var(--font-family);
    font-size: clamp(24px, 6dvw, 32px);
    line-height: clamp(29.3px, 5dvw, 39.07px);
    font-weight: 700;
    margin: 0;
    text-align: center;
  }

  p {
    color: var(--black-2);
    font-family: var(--font-family);
    font-size: clamp(14px, 6dvw, 16px);
    line-height: clamp(20px, 5dvw, 22px);
    font-weight: 400;
    margin: 24px 0 0 0;
    text-align: center;
  }

  .about-values-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;

    article {
      display: flex;
      flex-direction: column;
      max-width: 369px;
      width: 100%;
      min-height: clamp(218px, 6dvw, 264px);
      padding-top: clamp(20px, 6dvw, 32px);
      padding-left: clamp(16px, 4.5dvw, 24px);
      padding-right: clamp(16px, 4.5dvw, 24px);
      padding-bottom: 32px;
      border-radius: 16px;
      box-shadow: 0 6px 14px 0 #C8D1F080;
      background: var(--white);

      div {
        width: 40px;
        height: 40px;
      }

      h3, p {
        color: var(--black-2);
        font-family: var(--font-family);
        text-align: left;
      }

      h3 {
        font-size: 18px;
        line-height: 21.98px;
        font-weight: 700;
        margin: 24px 0 0 0;
      }

      p {
        font-size: 14px;
        line-height: 16.7px;
        font-weight: 400;
        margin: 12px 0 0 0;
      }
    }
  }
}

/* Testimonials */
.about-testimonials {
  margin-top: clamp(60px, 4.5dvw, 88px);;
  margin-bottom: clamp(20px, 4.5dvw, 72px);;

  @media (max-width: 767px) {
    padding: 0;
  }
}