/* Shared school identity and approved-centre details. */
.school-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px 236px auto;
  align-items: center;
  gap: 24px;
  margin: 0;
}

.header-to2 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.school-wordmark {
  display: block;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.school-wordmark-window {
  display: block;
  width: 100%;
  aspect-ratio: 6.65 / 1;
  overflow: hidden;
}

/* Display the school portion of the existing composite wordmark. */
.header-to2 .school-wordmark-window img {
  display: block;
  width: 127.819549%;
  max-width: none;
  height: auto;
}

.pearson-brand {
  display: block;
  min-width: 0;
  color: #1923b1;
  text-align: center;
  text-decoration: none;
}

.pearson-brand picture {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  overflow: hidden;
  background: #100744;
}

.pearson-brand img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

.pearson-brand span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.school-header-welcome {
  min-width: 0;
  width: 100%;
}

.school-header-welcome > img {
  display: block;
  width: 100%;
  height: auto;
}

.school-header-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.school-header-social a {
  display: block;
  flex: 0 0 auto;
}

.school-header-social img {
  display: block;
  width: 32px;
  height: 32px;
}

.school-purpose {
  padding: 0 0 40px;
  scroll-margin-top: 30px;
}

.school-purpose .title h2 {
  position: relative;
  margin-bottom: 40px;
  color: #000;
  font-size: 36px;
  font-weight: 700;
}

.school-purpose .title h2 span {
  color: #ff00d7;
}

.school-purpose .title h2::before {
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 70px;
  height: 12px;
  margin-left: -35px;
  background: url(../images/heading-line.png) no-repeat;
  content: "";
}

.purpose-statement {
  height: 100%;
  padding: 28px;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #1923b1;
  background: #fff;
}

.purpose-statement h3 {
  margin-bottom: 16px;
  color: #1923b1;
  font-size: 25px;
}

.purpose-statement p {
  margin-bottom: 0;
  text-align: left;
}

.pearson-affiliation {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
  padding: 25px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.pearson-affiliation picture {
  flex: 0 0 120px;
}

.pearson-affiliation img {
  display: block;
  width: 120px;
  height: 120px;
}

.pearson-affiliation h2 {
  margin-bottom: 12px;
  color: #1923b1;
  font-size: 25px;
}

.pearson-affiliation p:last-child {
  margin-bottom: 0;
}

.pearson-centre-detail {
  font-size: 18px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .school-brand-row {
    grid-template-columns: minmax(0, 1fr) 148px 190px auto;
    gap: 18px;
  }
}

@media (max-width: 991px) {
  .school-brand-row {
    grid-template-columns: 154px 236px auto;
    justify-content: center;
    row-gap: 16px;
  }

  .school-wordmark {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 575px) {
  .school-brand-row {
    grid-template-columns: 142px minmax(0, 1fr);
    grid-template-areas:
      "school school"
      "pearson welcome"
      "pearson social";
    gap: 0 18px;
  }

  .school-wordmark {
    grid-area: school;
    margin-bottom: 16px;
  }

  .pearson-brand {
    grid-area: pearson;
  }

  .pearson-brand picture {
    height: 48px;
  }

  .pearson-brand span {
    font-size: 11px;
    white-space: normal;
  }

  .pearson-brand strong {
    display: block;
    font-size: 14px;
    line-height: 20px;
  }

  .school-header-welcome {
    grid-area: welcome;
    align-self: end;
    justify-self: end;
    max-width: 200px;
  }

  .school-header-social {
    grid-area: social;
    align-self: start;
    gap: 10px;
    margin-top: 8px;
  }

  .school-header-social img {
    width: 28px;
    height: 28px;
  }

  .school-purpose .title h2 {
    font-size: 28px;
  }

  .purpose-statement {
    padding: 22px;
  }

  .pearson-affiliation {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
}
