@use "../abstracts" as *;

.project-details {
  padding: rem(100) 0;

  @media (max-width: 1399px) {
    padding: rem(90) 0;
  }

  @media (max-width: 1199px) {
    padding: rem(80) 0;
  }

  @media (max-width: 991px) {
    padding: rem(70) 0;
  }

  @media (max-width: 767px) {
    padding: rem(60) 0;
  }

  @media (max-width: 575px) {
    padding: rem(50) 0;
  }

  &__hero {
    position: relative;
    margin-bottom: rem(100);

    @media (max-width: 1199px) {
      margin-bottom: rem(80);
    }

    @media (max-width: 991px) {
      margin-bottom: rem(50);
    }

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

  &__thumb {
    border-radius: rem(30);
    overflow: hidden;

    @media (max-width: 767px) {
      border-radius: rem(20);
    }

    img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  &__info-box {
    position: absolute;
    bottom: rem(0);
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    background: #fff;
    padding: rem(30) rem(50);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 rem(20) rem(60) rgba(0, 0, 0, 0.1);
    z-index: 2;

    @media (max-width: 1199px) {
      padding: rem(35) rem(40);
      width: 90%;
    }

    @media (max-width: 991px) {
      position: static;
      transform: none;
      width: 100%;
      margin-top: rem(30);
      padding: rem(30);
    }

    @media (max-width: 767px) {
      padding: rem(10) rem(15);
    }

    @media (max-width: 575px) {
      padding: rem(10) rem(5);
    }

    .info-item {
      @media (max-width: 767px) {
        margin-bottom: rem(10);

        &:last-child {
          margin-bottom: 0;
        }
      }

      h4 {
        font-size: rem(18);
        font-weight: 700;
        color: $color-heading;
        margin-bottom: rem(10);

        @media (max-width: 575px) {
          font-size: rem(16);
          margin-bottom: rem(5);
        }
      }

      &__title {
        font-family: $font-family-base;
        font-weight: 700;
        font-size: 18px;
        line-height: 30px;
        letter-spacing: 0%;
        margin-bottom: rem(2);
        color: #191825;

        @media (max-width: 1199px) {
          font-size: 14px;
        }
      }

      p {
        font-family: $font-family-base;
        font-weight: 500;
        font-size: 18px;
        line-height: 30px;
        letter-spacing: 0%;
        color: $color-text2;
        margin-bottom: 0;

        @media (max-width: 1199px) {
          font-size: 13px;
        }

        @media (max-width: 575px) {
          font-size: 12px;
        }
      }
    }
  }

  &__content {

    h2,
    h3 {
      font-size: rem(32);
      font-weight: 700;
      color: $color-heading;
      margin-bottom: rem(25);

      @media (max-width: 1199px) {
        font-size: rem(28);
      }

      @media (max-width: 991px) {
        font-size: rem(26);
      }

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

      @media (max-width: 575px) {
        font-size: rem(22);
      }
    }

    p {
      color: $color-text2;
      font-size: rem(16);
      line-height: $line-height-base;
      margin-bottom: rem(30);

      @media (max-width: 767px) {
        font-size: rem(15);
        line-height: 1.6;
        margin-bottom: rem(20);
      }
    }

    .emphasized {
      color: $color-primary;
      font-weight: 700;
      font-size: rem(18);

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

  &__list {
    list-style: none;
    padding: 0;
    margin: 0 0 rem(30) 0;

    li {
      position: relative;
      margin-bottom: rem(15);
      color: $color-heading;
      font-weight: 700;
      font-size: rem(16);

      @media (max-width: 767px) {
        font-size: rem(15);
        margin-bottom: rem(10);
      }

      img {
        margin-right: 12px;
      }
    }
  }
}