.main-container {
  z-index: 2;
}

.banner-section {
  width: 100%;
  height: 438px;
  background-image: url(../../../assets/img/Global-Banner.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  z-index: -2;

  &:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    z-index: -1;
  }

  .banner {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;

    .banner-title {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;

      h2 {
        width: 100%;
        margin-bottom: 8px;
        color: $white;
        font-size: 32px;
        font-weight: 600;
        font-family: $font-family-sora;

        @media screen and (max-width:768px) {
          font-size: 24px;
        }
      }

      p {
        width: 50%;
        margin-bottom: 32px;
        margin-top: 0;
        color: $white;
        font-size: 18px;
        font-family: $font-family-hk;
        text-align: center;

        @media screen and (max-width: 768px) {
          width: 90%;
          text-align: center;
          font-size: 16px;
          margin-bottom: 16px;
        }
      }

      .global-btn {
        border-color: $white;
        color: $white;
        transition: all 0s 0.1s ease-in;
        &:hover {
          border-color: #0030d4;
          border-width: 1px;
        }
      }
    }
  }
}

.container {
  .avila-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(auto);
    margin-top: 80px;
    margin-bottom: 56px;

    @media screen and (max-width: 768px) {
      width: 100%;
      grid-template-columns: auto;
      grid-template-rows: repeat(3, auto);
      margin-top: 50px;
    }

    .avila {
      height: fit-content;
    }

    .avila-name {
      grid-column: 1 / 7;
      grid-row: 1 / 2;
      margin-bottom: 24px;
      font-size: 32px;
      font-weight: bolder;
      font-weight: 700;
      font-family: $font-family-sora;

      @media screen and (max-width: 768px) {
        justify-self: flex-start;
        font-size: 24px;
      }
    }

    .avila-btn {
      grid-column: 7 / 11;
      grid-row: 1 / 2;
      justify-self: flex-end;

      .avila-ref-btn {
        width: max-content;
        display: flex;
        background-color: transparent;
        border: none;
        cursor: pointer;

        @media screen and(max-width:768px) {
          padding-left: 0;
          padding-top: 0;
        }

        p {
          color: #0030d4;
          font-size: 16px;
          margin: 0;
          padding-top: 7px;
          font-weight: 400;
        }

        img {
          width: auto;
          height: auto;
          margin: 0 0 0 5px;
        }
      }

      @media screen and (max-width: 768px) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        justify-self: flex-start;
        padding: 0;
      }
    }

    .avila-sub-head {
      width: 100%;
      grid-column: 1 / 9;
      grid-row: 2 / 3;
      font-size: 18px;

      @media screen and (max-width: 768px) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        text-align: left;
        margin-bottom: 16px;
        font-size: 16px;
      }

      p {
        margin: 0;
      }
    }
  }

  .grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 20px;
    align-items: center;
    justify-content: center;
    padding-bottom: 56px;

    @media screen and (max-width:1024px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media screen and (max-width: 767px) {
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: auto;
    }

    .images {
      width: 100%;
      position: relative;
      cursor: pointer;

      &:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(14deg,
            rgba(0, 0, 0, 0.5) 17%,
            rgba(0, 0, 0, 0.1) 59%);
        top: 0;
        border-radius: 10px;
      }

      .avila-part-img {
        width: 100%;
        height: 170px;

        img {
          width: 100%;
          height: 100%;
          object-fit: fill;
          border-radius: 10px;
        }

        p {
          position: absolute;
          bottom: -5px;
          left: 16px;
          color: $white;
          font-size: 18px;
          font-weight: bold;
          z-index: 1;
        }
      }
    }
  }
}