/* Standalone variables
========================================================================== */
/*
==========================================================================
    Mixins - typography - body
========================================================================== */
.c-course-modules {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
}
@media (min-width: 1025px) {
  .c-course-modules {
    padding: 5.25rem 0;
    gap: 2.25rem;
  }
}

.c-course-modules__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.c-course-modules__heading {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 20rem;
  margin: 0 auto;
}
@media (min-width: 1025px) {
  .c-course-modules__heading {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 46rem;
    margin: 0 auto;
  }
}

.c-course-modules__items {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.c-course-modules__description {
  text-align: center;
  font-size: 0.875rem;
}
@media (min-width: 1025px) {
  .c-course-modules__description {
    line-height: 1.6;
  }
}

.c-course-modules__item {
  border-top: 1px solid #e6e6e6;
  padding: 1rem 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
.c-course-modules__item:first-of-type .c-course-modules__item-heading {
  padding-top: 0;
}
@media (min-width: 1025px) {
  .c-course-modules__item {
    padding: 1.125rem 0;
  }
}

.c-course-modules__item-heading {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.c-course-modules__item-title {
  font-weight: 600;
  line-height: 1.5rem;
  font-size: 1rem;
}
@media (min-width: 1025px) {
  .c-course-modules__item-title {
    line-height: 1.6;
  }
}

a.c-course-modules__item-title {
  text-decoration: underline;
}

.c-course-modules__item-heading-main {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
@media (min-width: 1025px) {
  .c-course-modules__item-heading-main {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

.c-course-modules__item-heading-main {
  font-size: 0.875rem;
  line-height: 1.4;
}
@media (min-width: 1025px) {
  .c-course-modules__item-heading-main {
    line-height: 1.6;
  }
}

.c-course-modules__item-heading-aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-course-modules__item-heading-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  transition-timing-function: ease;
  transition-duration: 170ms;
}

.c-course-modules__item-content {
  overflow: hidden;
}

.c-course-modules__item-description {
  font-size: 0.875rem;
  padding-top: 1rem;
  padding-right: 1rem;
}
.c-course-modules__item-description strong {
  font-weight: 600;
}
.c-course-modules__item-description ul {
  list-style: disc;
  padding-left: 1.5rem;
}
@media (min-width: 1025px) {
  .c-course-modules__item-description {
    padding-right: 2rem;
    font-size: 1rem;
    line-height: 1.5;
  }
}

.c-course-modules__item-description a {
  transition-timing-function: ease;
  transition-duration: 170ms;
  transition-property: opacity;
  text-decoration: underline;
}
.c-course-modules__item-description a:hover {
  opacity: 0.4;
}

.c-course-modules__item.is-active .c-course-modules__item-content {
  max-height: none;
}
.c-course-modules__item.is-active .c-course-modules__item-heading-icon {
  transform: rotate(-180deg);
}

.c-course-modules__items-container {
  position: relative;
}

.c-course-modules__items {
  height: auto;
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
}

.hidden {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.l-course-modules {
  padding-bottom: 2.25rem;
}
