@import './../../styles/variables/index.scss';

.latestProject {
  display: flex;
  flex-direction: column-reverse;
  max-width: 1366px;
  margin: 0 auto 80px;

  @media (min-width: 560px) {
    margin: 0 auto 104px;
  }

  @media (min-width: 900px) {
    flex-direction: row;
  }

  .coFinanced {
    padding: 32px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    display: none;

    @media (min-width: 560px) {
      padding: 48px 42px 0;
    }

    @media (min-width: 660px) {
      flex-direction: row;
    }

    @media (min-width: 900px) {
      padding: 19px 42px;
      background: transparent;
      display: flex;
      flex-direction: column;
    }

    a {
      max-width: 472px;
      width: 100%;
    }

    img {
      width: 100%;
      display: block;

      /* @media (min-width: 390px) {
        max-width: 244px;
      } */
    }

    span {
      font-family: $font-family-atak;
      font-size: 11px;
      line-height: 20px;
      color: $dark-blue;

      @media (min-width: 390px) {
        font-size: 12px;
      }
    }

    &.coFinancedMobile {
      padding: 8px 16px;
      display: flex;
      justify-content: space-between;

      @media (min-width: 560px) {
        padding: 8px 32px;
      }

      @media (min-width: 900px) {
        display: none;
      }
    }
  }

  .latestProject_col {
    &_image {
      width: 100%;
      padding: 0 16px;
      position: relative;

      @media (min-width: 560px) {
        padding: 0 32px;
      }

      @media (min-width: 900px) {
        max-width: 811px;
        padding: 0;
      }

      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100% - 56px);
        background: $dark-blue;
        z-index: 0;

        @media (min-width: 560px) {
          height: 50%;
          top: 50%;
        }

        @media (min-width: 900px) {
          display: none;
        }
      }

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

    &_text {
      @media (min-width: 900px) {
        padding: 0;
        width: 100%;
        max-width: 555px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
      }

      .textContainer {
        background-color: $dark-blue;
        position: relative;
        z-index: 1;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 1;
      }

      .colTablet {
        width: 100%;
        @media (min-width: 560px) and (max-width: 899px) {
          width: 50%;
        }
      }

      .textContent {
        padding: 32px 0;
        @media (min-width: 560px) {
          padding: 48px 16px;
          display: flex;
          gap: 0 64px;
        }
        @media (min-width: 900px) {
          display: block;
          padding: 40px 20px 70px;
          max-width: 382px;
          margin: 0 auto;
        }
      }

      h4 {
        color: $medium-blue;
        margin-bottom: 10px;
        @media (min-width: 560px) and (max-width: 899px) {
          width: 50%;
          font-size: 38px;
          line-height: 43px;
        }
      }

      .text_5_white {
        color: $white;
        @media (min-width: 900px) {
          max-width: 258px;
        }
      }

      .actionContainer {
        color: $medium-blue;
        margin-top: 32px;

        @media (min-width: 560px) {
          margin-top: 48px;
        }

        @media (min-width: 900px) {
          margin-top: 32px;
        }

        .actionContainer__elements {
          display: flex;
          align-items: center;
          justify-content: center;

          > img {
            width: 126px;
            height: 11px;
            margin-right: 10px;
          }
        }

        a {
          > span {
            @media (max-width: 559px) {
              justify-content: flex-end;
            }
          }
        }
      }
    }
  }
}

.reverseContainer {
  flex-direction: row-reverse;
}
