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

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

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

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

.page-hero .page-title {
  position: relative;
  display: inline-block;
  text-align: center;
  font-size: clamp(2.25em, 5vw, 4.5em);
  font-weight: 700;
  color: var(--color-text-white);
}

.page-hero .page-title::before,
.page-hero .page-title::after {
  content: "";
  display: block;
  position: absolute;
  width: 44px;
  height: 44px;
  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;
}

.page-hero .page-title::before {
  bottom: -1.25em;
  left: -0.75em;
}

.page-hero .page-title::after {
  top: -1em;
  right: -0.5em;
}

@media screen and (min-width: 40em) {
  .page-hero .page-title::before,
  .page-hero .page-title::after {
    width: 124px;
    height: 124px;
  }

  .page-hero .page-title::before {
    bottom: -1.5em;
    left: -1.875em;
  }

  .page-hero .page-title::after {
    top: -1em;
    right: -1em;
  }
}

.section-content {
  margin: 1.5em 0;
}

.section-header,
.post-header {
  position: relative;
  display: block;
  width: 100%;
  padding: .5em 0 1em 1em;
  font-size: small;
}

.section-header {
  border-bottom: 1px solid var(--color-border);
}

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

.section-caption {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  padding-top: 1em;
  padding-bottom: 1.25em;
}

.section-caption > h2 {
  font-weight: 700;
}

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

/* #region message */
#message .card {
  background-color: #fff;
  border-radius: 0.6em;
  padding: 1em 1em;
}

.message {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}

.message .post-image {  
  width: 100%;
  border-radius: 0.5em;
  aspect-ratio: 16 / 10;
}

.message .post-image > img {
  object-position: 50% 40%;
}

.message .post-content {
  font-weight: 600;
  line-height: 300%;
  margin-left: 0;
  margin-top: 1em;
  font-size: small;
  font-weight: 500;
  text-align: center;
}

@media screen and (min-width: 40em) {
  #message .card {
    border-radius: 1.25em;
    padding: 1.25em 2em;
  }

  .message {
    flex-flow: row;
  }

  .message .post-image {
    width: 50%;
    flex: none;
  }

  .message .post-content {
    margin-left: 3em;
    margin-top: 0;
    font-size: medium;
    font-weight: 600;
    text-align: left;
  }
}
/* #endregion message */

/* #region news */
#news .section-caption .button.primary {
  display: none;
  align-items: center;
  background-color: var(--color-darkblue);
  border-radius: var(--border-radius-button);
}

#news .section-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75em;
  overflow-x: auto;
}

#news .section-footer {
  display: flex;
  flex-flow: row;
  justify-content: center;
}

.new.card {
  display: flex;
  flex-flow: column;
  width: 100%;
  border-radius: 0.5em;
  padding: 0.5em;
  min-width: 13.875em;
}

.new.card .post-image {  
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  flex: none;
}

.new.card .post-content {
  font-weight: 500;
  margin: 0.75em 0;
  flex-grow: 1;
  font-size: small;
}

.new.card .post-footer {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 0.75em 0 0 0;
}

.new.card .post-footer .notice {
  background-color: var(--color-gold);
  color: #FFF;
  font-size: x-small;
  padding: 0.25em 1em;
  border-radius: 3px;
}

.new.card .post-footer .date {
  font-weight: 500;
  font-size: x-small;
}

@media screen and (min-width: 40em) {
  #news .section-caption .button.primary {
    display: flex;
  }

  #news .section-footer {
    display: none;
  }

  .new.card {
    border-radius: 0.625em;
    padding: 1.5em 1.5em;
  }

  .new.card .post-content {
    font-size: medium;
  }

  .new.card .post-footer .date {
    font-weight: 700;
    font-size: small;
  }
}
/* #endregion news */

/* #region educationalPhilosophy */
#educationalPhilosophy .section-content {
  background-color: var(--color-darkblue);
  border-radius: 0.5em;
  color: #FFF;
  padding: .75em;
}

#educationalPhilosophy .section-header::before {
  background-color: var(--color-gold);
}

.feature {
  display: flex;
  flex-flow: row;
  padding: .5em 0;
  gap: 0.75em;
}

.feature:nth-child(even) {
  flex-flow: row-reverse;
}

.feature .post-image {
  display: none;
  width: 50%;
}

.feature .post-image > img {
  border-radius: 10px;
}

.feature .card {
  display: flex;
  flex-flow: column;
  width: 50%;
  margin-bottom: 0;
  border-radius: 4px;
  padding: 1.5em 1.5em;
}

.feature .post-caption {
  font-weight: 700;
  flex-grow: 1;
}

.feature .post-content {
  display: inline-block;
  width: 100%;
  align-self: flex-end;
  text-align: justify;
  margin-top: 3em;
}

#educationalPhilosophy .section-footer {
  display: flex;
  flex-flow: row;
  justify-content: center;
  padding-top: 1em;
}

#educationalPhilosophy .button.secondary {
  margin-bottom: 0.5em;
  padding: .85em 1em;
  background-color: #FFF;
  border-radius: 8px;
  color: var(--color-text-black);
}

@media screen and (min-width: 40em) {
  #educationalPhilosophy .section-content {
    padding: 1.25em 2em;
    border-radius: 1.25em;
  }

  .feature .post-image {
    display: block;
  }

  .feature .post-content {
    width: 80%;
    align-self: flex-end;
  }

  .feature .card {
    border-radius: 10px;
  }

  #educationalPhilosophy .button.secondary {
    margin-bottom: 1em;
  }
}
/* #endregion educationalPhilosophy */

/* #region coursesAdmissions */
#coursesAdmissions .section-body {
  display: flex;
  flex-flow: column;
  gap: .75em;
}

.course-admissions.card {
  position: relative;
  border-radius: 10px;
  aspect-ratio: 16/10;
  margin: 0;
  padding: 2em 2em;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  color: #FFF;
  background-color: var(--color-gold);
}

.course-admissions.card::before,
.course-admissions.card::after {
  content: "";
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
}

.course-admissions.card::before {
  left: 1.25em;
  top: 1em;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m24.794 12.5-7.399 12.813C23.46 26.64 28 32.04 28 38.501 28 45.957 21.956 52 14.5 52S1 45.957 1 38.5c0-3.663 1.459-6.984 3.826-9.416L17 8l7.794 4.5Zm31 0-7.398 12.813C54.46 26.64 59 32.04 59 38.501 59 45.957 52.956 52 45.5 52S32 45.957 32 38.5c0-3.663 1.459-6.984 3.826-9.416L48 8l7.794 4.5Z' fill='%23fff' fill-opacity='50%25'/%3E%3C/svg%3E");
}

.course-admissions.card::after {
  right: 1.25em;
  bottom: 1em;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 7.999c7.456 0 13.5 6.044 13.5 13.5 0 3.662-1.46 6.983-3.827 9.415L12 52l-7.794-4.5 7.397-12.815C5.54 33.36 1 27.96 1 21.5 1 14.044 7.044 8 14.5 8Zm31 0c7.456 0 13.5 6.044 13.5 13.5 0 3.662-1.46 6.983-3.827 9.415L43 52l-7.794-4.5 7.397-12.815C36.54 33.36 32 27.96 32 21.5 32 14.044 38.044 8 45.5 8Z' fill='%23fff' fill-opacity='50%25'/%3E%3C/svg%3E");
}

.course-admissions.contact {
  grid-column: span 2;
  aspect-ratio: unset;
  background-color: var(--color-darkblue);
}

.course-admissions .post-caption {
  font-weight: 700;
}

.course-admissions .post-content {
  text-align: center;
  padding-top: 0.75em;
}

.course-admissions .post-content > p {
  margin-bottom: 1.5em;
  font-size: smaller;
  font-weight: 400;
}

.course-admissions .post-content .button.secondary {
  margin-bottom: 0;
  padding: .325em 1.25em;
  background-color: #FFF;
  border-radius: 8px;
  color: var(--color-text-black);
}

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

  .course-admissions.card::before,
  .course-admissions.card::after {
    width: 60px;
    height: 60px;
  }

  .course-admissions.card::before {
    left: 2em;
    top: 1.5em;
  }

  .course-admissions.card::after {
    right: 2em;
    bottom: 1.5em;
  }

  .course-admissions .post-content > p {
    font-size: medium;
    font-weight: 400;
  }

  .course-admissions.contact .post-content .button.secondary {
    padding: .85em 1em;
  }
}
/* #endregion coursesAdmissions */

/* #region buildingEnvironment */
#buildingEnvironment .section-body {
  display: flex;
  flex-flow: column;
  gap: .75em;
}

.building.card {
  display: flex;
  flex-flow: column;
  border-radius: 0.5em;
  padding: 0.75em;
  margin-bottom: 0;
}

.building.card .post-image {
  aspect-ratio: 16/8;
}

.building.card .post-caption {
  font-weight: 700;
  padding: 0.75em 0 0.5em 0;
  border-bottom: 1px solid var(--color-border);
}

.building.card .post-content {
  flex-grow: 1;
  padding: 0.75em 0;
  font-weight: 400;
  font-size: smaller;
}

.building.card .post-footer {
  display: flex;
  flex-flow: row-reverse;
}

.building.card .post-footer .button.primary {
  margin-bottom: 0;
  padding: .325em 1.25em;
}

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

  .building.card {
    padding: 1.5em;
    border-radius: 0.625em;
  }

  .building.card .post-content {
    font-size: medium;
  }
}
/* #endregion buildingEnvironment */