/* Curriculum page and blocks (was inline in templates/pages/curriculum_page.html) */

.curriculum h1 {
  line-height: 1.25;
  margin-bottom: 0;
  padding-bottom: 1rem;
  max-width: 20ch;
  font-size: 24px;
}
@media (min-width: 768px) {
  .curriculum h1 {
    font-size: 44px;
    padding-bottom: 2rem;
  }
}
@media (min-width: 952px) {
  .curriculum h1 {
    font-size: 56px;
    padding-bottom: 3rem;
  }
}

.curriculum {
  background-color: #f7faf1;
  padding-bottom: 5rem;
  color: #1e1e1e;
  font-size: 1rem;
  line-height: 1.5;
}

.curriculum-section-intro {
  display: flex;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 768px) {
  .curriculum-section-intro {
    flex-wrap: nowrap;
    gap: 50px;
  }
}

.curriculum-collection {
  padding: 5rem 0;
}

.curriculum-collection:nth-of-type(odd) {
  background: #E5E8DC;
}

.curriculum-section-intro .big-number {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  font-family: sctogroteskb, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (min-width: 768px) {
  .curriculum-section-intro .big-number {
    font-size: 5rem;
  }
}

@media (min-width: 768px) {
  .curriculum-section-intro .big-number {
    width: 20%;
  }
  .curriculum-section-intro .big-title {
    width: 80%;
  }
}

.curriculum-section-intro h2 {
  margin-bottom: .5rem;
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #63645B;

}
.curriculum-section-intro .big-title p {
  font-size: 20px;
  color: #63645B;
}

/* section nav */
.section-index {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.section-index .section-anchor {
  width: calc(50% - 12px);
  border: 1px solid #1e1e1e;
  padding: 8px;
  cursor: pointer;
  font-family: sctogroteskb, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
  transition: .3s background;
}
.section-index .section-anchor:hover {
  background-color: #fff;
}
@media (min-width: 768px) {
  .section-index {
    flex-wrap: nowrap;
  }
}


/* items */

.curriculum-category-container {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.curriculum-category {
  width: 100%;
}
@media (min-width: 768px) {
  .curriculum-category-container {
    flex-wrap: nowrap;
    gap: 50px;

  }
  .curriculum-category {
    width: 20%;
  }
  .curriculum-items {
    width: 80%;
  }
}

.curriculum-category h3 {
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: .5px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e1e1e;
}

.curriculum-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  transition: .5s max-height;
}

.curriculum-items .arrow-link {
  width: 25px;
  float: right;
  padding-left: 5px;
  padding-bottom: 5px;
}
.curriculum-items .item {
  border: 0.5px solid #1E1E1E;
  border-radius: 4px;
  padding: 15px;
  width: 100%;
  min-height: 168px;
  transition: .3s background;
}
.curriculum-items .item.urld {
  cursor: pointer;
}
.curriculum-items .item.urld:hover {
  background: #fff;
}
.item.watch, .item.listen {
  background: #2a2a2a;
  color: #fff;
}
.curriculum-items .item .item-title {
  margin-bottom: .5rem;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 125%;
  letter-spacing: -0.01em;
  color: #1E1E1E;

}
.curriculum-items .item p {
  margin-bottom: .15rem;
}
.curriculum-items .item-description {
  font-family: sctogroteskb, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 125%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #63645B;
  margin: 1rem 0;
}

.curriculum-items .item .secondary-text {
  border-top: 1px solid #A4A796;
  margin-top: 8px;
  padding-top: 8px;
}
.curriculum-items .item .secondary-text p {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  color: #63645B;
}

@media (min-width: 768px) {
  .curriculum-items .item {
    width: calc(50% - 8px);
  }
}

.bg-beige {
  background-color: #D1D4C6;
}

.curriculum-title {
  padding-top: 5rem;
}


/* .curriculum-index */

.curriculum-index {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.curriculum-index .collection-index {
  display: flex;
  gap: 24px;
  flex-direction: column;
}


@media (min-width: 992px) {
  .curriculum-index .collection-index {
    flex-direction: row;
  }

  .collection-index-item {
    width: 33%;
  }
}

.collection-index-item {
  border: 1px solid #1e1e1e;
  padding: 24px 32px;
  cursor: pointer;
  transition: .5s background;
}
.collection-index-item:hover {
  background: #F7FAF1;
}
.section-down-arrow {
  margin: 5px;
  float: right;
}
.collection-index-item .section-title {
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0.01em;
  color: #63645B;
  padding-bottom: 12px;
  border-bottom: 1px solid #A4A796;
}
.collection-index-item p,
.collection-index-item .section-number {
  font-weight: 400;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  color: #63645B;
}
.collection-index-item .section-number {
  /* an h2 for the heading outline, styled like the body text it was */
  font-family: inherit;
  text-transform: none;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #000;
  max-width: calc(100% - 25px);
}

/* collapsing */


.expand-list,
.collapse-list {
  display: flex;
  cursor: pointer;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.startcollapsed .curriculum-items {
  max-height: 0px;
  overflow: hidden;
}
.expand-list {
  display: none;
}
.startcollapsed .expand-list {
  display: flex;
}
.startcollapsed .collapse-list {
  display: none;
}

@media (min-width: 768px) {
  .curriculum-category-container .curriculum-items {
    max-height: 100vh;
    overflow: visible;
  }
  .startcollapsed .expand-list {
    display: none;
  }
  .startcollapsed .collapse-list {
    display: flex;
  }
}

.collapse .expand-list {
  display: flex;
}
.collapse .collapse-list {
  display: none;
}

.curriculum-category-container.collapse .curriculum-items {
  max-height: 0px;
  overflow: hidden;
}
