section {
  max-width: 1100px;
  margin: 0 auto;
}

.main-content {
  padding: 3rem 2rem;
}

.hidden {
  display: none !important;
}

.focus {
  color: #666362;
  background-color: #fff;
}

.button-container .btn {
  width: 208px;
}

button {
  border: none;
}

.btn {
  width: 110px;
}

.border {
  border: 1px solid black;
}

/*Essential Basics section*/
.button-container {
  flex-direction: column;
  gap: 2rem;
}

.button-container button:hover {
  cursor: pointer;
}

.main-content {
  overflow: hidden;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto;
  padding: 0;
}

.item-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;

  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.item-container.first-item {
  border-top: none;
  padding-top: 0;
}

.item-text {
  grid-row: 2;
}

.item-text h3 {
  margin-bottom: 0.75rem;
}

.item-text {
  line-height: 1.6;
  width: 100%;
  flex-grow: 1;
}

ul {
  margin-left: 1.2em;
}

ul li {
  list-style: disc;
}

.ql-indent-1 {
  list-style: circle;
  margin-left: 2em;
}

.item-text a {
  color: #666362;
  text-decoration: underline;
}

.item-img {
  grid-row: 1;
  overflow: hidden;
  max-height: 500px;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-img iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/*Grading Revision section*/
.section-heading {
  flex-direction: column;
  gap: 1rem;
}
.section-heading .sub-header {
  margin-bottom: 1.5rem;
}
.gr-item-text {
  max-width: 200px;
}

.attribute-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: 100%;
  gap: 2rem;
  /* margin: 0 auto; */
  margin-left: auto;
}

.attribute {
  display: flex;
  justify-content: flex-start;
}

.attribute a {
  color: #666362;
}

hr {
  width: 100%;
  margin: -1.5rem 0;
}

/*Media Queries*/
@media only screen and (max-width: 767px) {
  .item-img {
    max-height: 220px;
  }

  .item-text {
    font-size: 0.95rem;
  }

  .button-container .btn {
    width: 160px;
  }

  .item-container {
    gap: 1.5rem;
  }
}

@media only screen and (min-width: 768px) {
  .button-container {
    flex-direction: row;
    gap: unset;
    justify-content: space-evenly;
  }

  .gr-item {
    flex-direction: row;
    gap: 8rem;
    width: 600px;
  }

  hr {
    width: 600px;
  }

  .attribute-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .attribute {
    justify-content: flex-end;
  }

  .content-container {
    gap: 2rem;
  }
}

@media only screen and (min-width: 1024px) {
  .item-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .item-img {
    grid-row: unset;
  }

  .item-text {
    grid-row: unset;
  }

  .gr-item-text {
    width: 100%;
  }

  hr {
    width: 100%;
  }
}

@media only screen and (min-width: 1440px) {
  .pw-item {
    gap: 5rem;
  }
}
