.main-container {
  z-index: 2;
}
.banner-section {
  width: 100%;
  height: 80vh;
  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: bold;
      }
      p {
        width: 50%;
        margin-bottom: 32px;
        color: $white;
        font-size: 18px;

        @media screen and (max-width: 768px) {
          width: 90%;
          text-align: justify;
          font-size: 14px;
        }
      }
    }
  }
}
.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;
      }
    }
    .avila-btn {
      grid-column: 7 / 11;
      grid-row: 1 / 2;
      justify-self: flex-end;
      .avila-ref-btn {
        width: max-content;
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        border: none;
        cursor: pointer;

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

        p {
          color: #0030d4;
          font-size: 16px;
          font-weight: bolder;
          margin: 0;
        }
        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: justify;
        margin-bottom: 16px;
        font-size: 16px;
      }
    }
  }
  .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: 768px) {
      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,
          #000 17%,
          rgba(0, 0, 0, 0) 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;
        }
      }
    }
  }
}
