.tournaments-inner {
  padding: 0 0 8rem 0;
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}

.tournaments-banner {
  padding-top: 8rem;
}

.tournaments-title {
  padding-bottom: 4.8rem;
}

.tournaments {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.tournaments-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.tournaments-head {
  background-position: 60% top !important;
  background-size: cover !important;
  padding: 5.6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  border-radius: 0.5rem;
  min-height: 36.2rem;

  span {
    color: #fff;
    font-size: 2.4rem;
  }

  h2 {
    color: #fff;
    width: 70%;
    font-size: 5.6rem;
    font-weight: bold;
  }
}

.tournaments-img {
  width: 100%;
  min-height: 36.2rem;
}

.tournaments-lower {
  @include grid($row: false, $layout: repeat(3, 1fr));
  row-gap: 4rem;
  column-gap: 8.5rem;
}

.tournament-top {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-height: 26rem;

  div {
    z-index: 3;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: "";
  }

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

.tournament-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 0.1rem solid #cecece;
  border-top: none;
  padding: 3.2rem 2.4rem;

  h3 {
    font-size: 2.4rem;
    font-weight: bold;
    color: $base-green;
  }

  p {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.8rem;
  }

  span {
    text-align: center;
    font-size: 1.8rem;
    line-height: 2.5rem;
    // COMMENTED BECAUSE PREVENTS OUTER DIV FROM SHRINKING
    // white-space: nowrap;
    // text-overflow: ellipsis;
    // overflow: hidden;
  }

  .separator {
    color: $base-green;
  }
}

.tournament {
  max-width: 41rem;
}

// Adaptive

@media screen and (max-width: 1330px) {
  .tournaments-lower {
    column-gap: 7rem;
  }
  .tournament-bottom {
    p {
      flex-direction: column;
      align-items: flex-start;

      .separator {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  .tournaments-head {
    h2 {
      font-size: 4rem;
    }
  }
  .tournament {
    max-width: unset;
  }
  .tournaments-lower {
    grid-template-columns: 1fr 1fr;
  }
  .tournament-bottom {
    p {
      flex-direction: row;
      align-items: center;

      .separator {
        display: block;
      }
    }
  }
}

@media screen and (max-width: 900px) {
  .tournaments-head {
    h2 {
      width: 100%;
      font-size: 3.2rem;
    }
  }
  .tournament-bottom {
    h3 {
      font-size: 2.2rem;
    }
  }
  .tournaments-lower {
    gap: 4rem;
  }
  .tournament-bottom {
    p {
      flex-direction: column;
      align-items: flex-start;

      .separator {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 800px) {
  .tournaments-head {
    padding: 5.6rem 2rem;
  }
  .tournaments-banner {
    padding-top: 4.8rem;
  }
  .tournaments-lower {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .tournament-top {
    max-height: unset;
  }
  .tournament-bottom {
    p {
      justify-content: flex-start;
      flex-direction: row;
      align-items: center;

      .separator {
        display: block;
      }
    }
  }
}

@media screen and (max-width: 500px) {
  .tournaments-banner {
    .container:not(:first-child) {
      padding: 0;
      margin: 0;
      width: 100%;
      max-width: unset;
    }
  }
}

@media screen and (max-width: 400px) {
  .tournament-bottom {
    p {
      flex-direction: column;
      align-items: flex-start;

      .separator {
        display: none;
      }
    }
  }
}
