/* Scope layout adjustments to the trainer listing only. */
.trainers-page .page-heading > p {
  width: 100%;
  max-width: 620px;
  text-align: left;
  text-align-last: auto;
  text-wrap: wrap;
}
.trainers-page main .trainers-word {
  white-space: nowrap;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
/* Match the existing homepage closing panel without changing shared code. */
.trainers-page .trainers-trial {
  background: #e8e0d5;
}

.trainers-page .trainers-trial .section {
  width: min(88%, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: 85px 0;
  text-align: center;
}

.trainers-page .trainers-trial .section-en {
  text-align: center;
}

.trainers-page .trainers-trial h2 {
  font: 400 30px/1.9 var(--serif);
  letter-spacing: .04em;
  color: #302a25;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.trainers-page .trainers-trial .section > p:not(.booking-status) {
  max-width: 640px;
  margin: 25px auto;
  font-size: 13px;
  line-height: 2.3;
  color: var(--text);
  text-align: center;
  text-align-last: auto;
  text-wrap: pretty;
}

.trainers-page .trainers-trial .reserve-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  width: fit-content;
  min-width: 280px;
  min-height: 54px;
  padding: 15px 25px;
  margin: 30px auto 0;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 3px;
  background: linear-gradient(110deg, #a29482, #857057);
  color: #fff;
}

.trainers-page .trainers-trial .booking-status {
  text-align: center;
  text-align-last: auto;
}


@media (max-width: 768px) {
  .trainers-page .trainers-trial .section {
    padding: 50px 0;
  }

  .trainers-page .trainers-trial h2 {
    font-size: clamp(20px, 5.7vw, 26px);
    letter-spacing: normal;
  }

  .trainers-page .trainers-trial h2 .phrase {
    display: block;
    white-space: normal;
  }

  .trainers-page .trainers-trial .section > p:not(.booking-status) {
    margin: 22px auto;
    font-size: 12px;
    line-height: 2.2;
  }

  .trainers-page .trainers-trial .reserve-link {
    width: 100%;
    min-width: 0;
    padding: 15px 17px;
    margin-top: 25px;
    font-size: 12px;
  }
}
