.page-hero {
  position: relative;
  display: block;
  width: 100vw;
  height: 41.5em;
  overflow: hidden;
}

.page-hero .hero-image {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: 55% 20%;
}

@media screen and (min-width: 40em) {
  .page-hero .hero-image {
    width: 100%;
    object-fit: cover;
    object-position: 50% 40%;
  }
}

.page-hero .hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: left;
}

.page-hero .page-title {
  position: relative;
  display: inline-flex;
  flex-flow: column;
  text-align: center;
  font-size: clamp(36px, 4.167vw, 60px);
  font-weight: 700;
  color: var(--color-text-white);
  margin-left: 1em;
  margin-bottom: 2em;
}

.page-hero .page-title small {
  font-size: clamp(14px, 1.389vw, 20px);
  font-weight: 500;
  padding-bottom: 0.5em;
  color: #FFF;
  text-align: left;
}

.page-hero .page-title::after {
  content: "";
  display: block;
  position: absolute;
  width: 52px;
  height: 52px;
  top: -0.625em;
  right: -2em;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.689 17.213c0 2.266 1.822 4.103 4.069 4.103H42.5v1.368H22.758c-2.247 0-4.069 1.837-4.069 4.103V44h-1.356V26.787c0-2.266-1.822-4.103-4.069-4.103H1.5v-1.368h11.764c2.247 0 4.069-1.837 4.069-4.102V0h1.356v17.213Z' fill='%23C6A75E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

@media screen and (min-width: 40em) {
  .page-hero .hero-overlay {
    align-items: center;
  }

  .page-hero .page-title {
    margin-left: 4em;
    margin-bottom: 0;
  }

  .page-hero .page-title::after {
    width: 62px;
    height: 62px;
    top: -0.25em;
    right: -1.5em;
  }
}

.grid-container {
  padding-top: 0.5em;
  padding-bottom: 0;
}

@media screen and (min-width: 40em) {
  .grid-container {
    padding-top: 1.5em;
    padding-bottom: 1em;
  }
}

.section-caption {
  display: flex;
  flex-flow: column-reverse;
  margin-top: 1em;
  margin-bottom: 1.5em;
}

.section-caption h3 {
  display: block;
  font-weight: 700;
  font-size: clamp(24px, 2.778vw, 40px);
  padding-top: 1em;
  border-top: 1px solid var(--color-border);
}

.section-header {
  position: relative;
  display: block;
  padding-left: 1em;
  font-weight: 700;
  font-size: clamp(10px, 1.111vw, 16px);
}

.section-header::before {
  content: "";
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  left: 0;
  top: 50%;
  margin-top: -3px;
  background-color: var(--color-darkblue);
  border-radius: 50% 50%;
}

@media screen and (min-width: 40em) {
  .section-content {
    padding-top: 1.5em;
  }

  .section-caption {
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
  }

  .section-header {
    display: inline-block;
    border-bottom: 0;
  }

  .section-caption h3 {
    display: inline-block;
    padding-top: 0;
    border-top: 0;
  }
}

.block-header {
  display: flex;
  flex-flow: row;
  justify-content: center;
  padding-bottom: 1em;
}

.block-header > h4 {
  font-weight: 700;
}

.post-image > img {
  object-position: center;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

#courseOverview .section-block {
  padding: 1em 0;
}

#courseOverview .section-body {
  display: flex;
  flex-flow: column;
  gap: 1em;
  margin-bottom: 1.5em;
}

#courseOverview .card {
  border-radius: 0.5em;
  padding: 1em 0.75em;
  margin-bottom: 0;
}

#courseOverview .post-header {
  padding-bottom: 1em;
  font-size: smaller;
  font-weight: 500;
}

#courseOverview .post-body {
  display: flex;
  flex-flow: column;
}

#courseOverview .post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  flex: none;
  margin-bottom: 1.25em;
}

#courseOverview .post-image > img {
  object-position: 50% 0;
}

#courseOverview .card:nth-child(even) .post-image > img {
  object-position: 0 0;
}

#courseOverview .post-content {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

#courseOverview .post-caption {
  font-weight: 700;
  text-align: center;
}

#courseOverview .post-content > p {
  font-weight: 400;
  font-size: small;
}

@media screen and (min-width: 40em) {
  #courseOverview .section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.5em;
  }

  #courseOverview .card {
    padding: 1.5em 1.5em;
  }

  #courseOverview .post-image {
    display: inline-block;
    width: 10em;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
  }

  #courseOverview .post-body {
    flex-flow: row;
  }

  #courseOverview .post-content {
    padding-left: 1.5em;
  }

  #courseOverview .post-caption {
    text-align: left;
  }
}

#courseDetails .section-body {
  display: flex;
  flex-flow: column;
  gap: 1em;
}

#courseDetails .section-block {
  background-color: #FFF;
  border-radius: 0.5em;
  padding-top: 1em;
}

#courseDetails .card {
  border-radius: 0 0 0.5em 0.5em;
  margin-bottom: 0;
}

#courseDetails .post-list {
  display: grid;
  grid-template-columns: 7em 1fr;
}

#courseDetails .post-list > * {
  border-top: 1px solid var(--color-border);
}

#courseDetails .post-list > *:nth-child(1),
#courseDetails .post-list > *:nth-child(2) {
  border-top: none;
}

#courseDetails .post-list > .list-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-darkblue);
  color: #FFF;
  font-weight: 700;
  font-size: clamp(14px, 1.25vw, 18px);
}

#courseDetails .post-list > .list-content {
  display: flex;
  flex-flow: column;
  font-weight: 400;
  font-size: clamp(13px, 1.25vw, 18px);
  padding: 1em 1em;
  line-height: 250%;
}

#courseDetails .post-list > .list-content > menu {
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

@media screen and (min-width: 40em) {
  #courseDetails .section-block {
    background-color: transparent;
  }

  #courseDetails .card {
    border-radius: 0.5em;
  }

  #courseDetails .post-list {
    grid-template-columns: 12em 1fr;
  }

  #courseDetails .post-list > .list-content {
    flex-flow: row;
    padding: 1.5em 1.5em 1.5em 4em;
  }

  #courseDetails .post-list > .list-content > menu {
    margin: 0 2em 0 0;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 50%;
  }
}

@media screen and (min-width: 64em) {
  #courseDetails .post-list {
    grid-template-columns: 16em 1fr;
  }
}