#gradesBodyBg {
  background: #31344a url("../resources/images/bgAndDisplay/clubBg.png") no-repeat;
  background-size: 100%;
  min-height: 100vh;
}

.gradesPage {
  width: 78vw;
  margin: 0 auto 8vw auto;
}

.gradesIntro h2 {
  text-align: center;
  margin: 5vw 0 0.8vw 0;
  font-size: 3vw;
  font-weight: 100;
}

.gradesIntro p {
  text-align: center;
  margin-bottom: 4vw;
  font-size: 1.25vw;
  color: #d9ddff;
}

.gradesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
}

.gradeCard {
  overflow: hidden;
  border-radius: 1vw;
  background-color: #292b3d;
  box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.28);
}

.gradeCard img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gradeText {
  min-height: 7vw;
  padding: 1.3vw 1.4vw 1.6vw 1.4vw;
}

.gradeText h3 {
  font-size: 1.6vw;
  margin-bottom: 0.6vw;
}

.gradeText p {
  font-size: 1.15vw;
  color: #d9ddff;
}

@media screen and (orientation: portrait) {
  #gradesBodyBg {
    background: #31344a url("../resources/images/bgAndDisplay/clubBgMobile.png") no-repeat;
    background-size: 100%;
  }

  .gradesPage {
    width: 88vw;
    margin-bottom: 12vw;
  }

  .gradesIntro h2 {
    margin: 7vw 0 2vw 0;
    font-size: 6vw;
  }

  .gradesIntro p {
    margin-bottom: 6vw;
    font-size: 3.4vw;
  }

  .gradesGrid {
    grid-template-columns: 1fr;
    gap: 7vw;
  }

  .gradeCard {
    border-radius: 2vw;
  }

  .gradeText {
    min-height: 16vw;
    padding: 3vw 3.5vw 4vw 3.5vw;
  }

  .gradeText h3 {
    font-size: 4.4vw;
    margin-bottom: 1.4vw;
  }

  .gradeText p {
    font-size: 3.4vw;
  }
}
