/* School introduction concept A. Existing branding, content and footer stay intact. */
.site-main.school-about { width: min(1200px, calc(100% - 40px)); padding: 24px 0 44px; }
.school-about__panel { padding: 24px 28px 28px; border: 1px solid #e4ebf3; border-radius: 6px; background: #fff; }
.school-about__breadcrumbs { align-items: center; margin: 0 0 32px; font-size: 13px; color: #61718a; }
.school-about__breadcrumbs .dashicons { font-size: 14px; width: 14px; height: 14px; }
.school-about__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px 32px; align-items: start; }
.school-about__heading { grid-column: 1; grid-row: 1; }
.school-about__heading h1 { position: relative; margin: 0; padding-bottom: 16px; color: #374982; font-size: 32px; line-height: 1.4; }
.school-about__heading h1::after { position: absolute; bottom: 0; left: 0; width: 44px; height: 3px; content: ''; background: #d4aa45; }
.school-about__heading > p { margin: 14px 0 0; color: #566a8d; font-size: 17px; line-height: 1.7; }
.school-about__main-photo { grid-column: 2; grid-row: 1 / 3; margin: 0; overflow: hidden; border-radius: 4px; }
.school-about__main-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.school-about__body { grid-column: 1; grid-row: 2; min-width: 0; color: #43516a; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.school-about__body > :first-child { margin-top: 0; }
.school-about__body > :last-child { margin-bottom: 0; }
.school-about__summary > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.school-about__read-more { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; padding: 10px 18px; margin-top: 10px; border: 1px solid #374982; border-radius: 4px; color: #374982; font-size: 15px; font-weight: 600; line-height: 1.5; text-indent: 0; }
.school-about__read-more:hover { background: #374982; color: #fff; }
.school-about__detail { scroll-margin-top: 20px; }
.school-about__detail-heading { max-width: 900px; margin: 0 auto 28px; padding-bottom: 22px; border-bottom: 1px solid #e4ebf3; }
.school-about__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; color: #526586; font-size: 14px; }
.school-about__back:hover { color: #374982; text-decoration: underline; }
.school-about__detail-content { max-width: 900px; margin: 0 auto; color: #43516a; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.school-about__detail-content p { text-indent: 2em; }
.school-about__detail-content .has-text-align-center,
.school-about__detail-content .has-text-align-right { text-indent: 0; }
.school-about__detail-content img { max-width: 100%; height: auto; }
.school-about__detail-content .alignfull,
.school-about__detail-content .alignwide { max-width: 100%; width: 100%; margin-inline: 0; }
.school-about__detail-content .wp-block-table { overflow-x: auto; }
.school-about__detail-footer { max-width: 900px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid #e4ebf3; }
.school-about__body p { margin: 0 0 1.1em; text-indent: 2em; }
.school-about__body .has-text-align-center,
.school-about__body .has-text-align-right { text-indent: 0; }
.school-about__body h2 { color: #374982; font-size: 23px; }
.school-about__body h3 { color: #374982; font-size: 19px; }
.school-about__body .alignwide,
.school-about__body .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.school-about__body img { max-width: 100%; height: auto; }
.school-about__body .wp-block-table { max-width: 100%; overflow-x: auto; }
.school-about__philosophy { padding: 24px; margin-top: 28px; border-radius: 4px; background: #eef6fc; text-align: center; }
.school-about__philosophy h2 { position: relative; margin: 0 0 12px; padding-bottom: 12px; font-size: 22px; line-height: 1.4; color: #374982; }
.school-about__philosophy h2::after { position: absolute; bottom: 0; left: calc(50% - 12px); width: 24px; height: 2px; content: ''; background: #d4aa45; }
.school-about__philosophy p { margin: 0; color: #374982; font-size: clamp(20px, 2.1vw, 27px); font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.school-about__showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; }
.school-about__showcase:empty { display: none; }
.school-about__card { min-width: 0; overflow: hidden; border-radius: 4px; }
.school-about__card > a,
.school-about__card > div { display: block; position: relative; background: #374982; }
.school-about__card img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.school-about__card-copy { position: absolute; bottom: 0; left: 0; right: 0; min-height: 78px; padding: 14px 54px 14px 20px; background: rgba(43,58,106,.93); color: #fff; }
.school-about__card-copy h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.4; color: #fff; }
.school-about__card-copy p { margin: 0; font-size: 13px; line-height: 1.7; color: #edf3fc; overflow-wrap: anywhere; }
.school-about__card-copy .dashicons { position: absolute; right: 18px; top: calc(50% - 12px); font-size: 24px; width: 24px; height: 24px; }
.school-about__card a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.school-about__more { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; align-items: center; margin-top: 20px; padding: 18px; border-radius: 4px; background: #f0f6fb; }
.school-about__more > h2 { margin: 0; color: #374982; font-size: 25px; line-height: 1.4; }
.school-about__links { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.school-about__links a { display: grid; grid-template-columns: 30px minmax(0,1fr) 20px; gap: 12px; align-items: center; min-height: 90px; padding: 16px; border: 1px solid transparent; border-radius: 4px; background: #fff; color: #374982; }
.school-about__links .school-about__link-icon { font-size: 29px; width: 30px; height: 30px; }
.school-about__links strong { display: block; font-size: 16px; line-height: 1.6; }
.school-about__links small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.7; color: #63718a; }
.school-about__links a:hover { border-color: #374982; color: #2b3a6a; }
.school-about a:focus-visible { outline: 2px solid #374982; outline-offset: 3px; }
.school-about__card a:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .school-about__card img { transition: transform .25s ease; }
  .school-about__card a:hover img { transform: scale(1.025); }
}
@media (max-width: 1024px) {
  .school-about__intro { gap: 20px 24px; }
  .school-about__more { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .site-main.school-about { width: calc(100% - 28px); padding: 18px 0 30px; }
  .school-about__panel { padding: 20px 18px; }
  .school-about__breadcrumbs { margin-bottom: 24px; font-size: 12px; }
  .school-about__intro { display: flex; flex-direction: column; gap: 20px; }
  .school-about__heading { order: 0; }
  .school-about__main-photo { order: 1; width: 100%; }
  .school-about__body { order: 2; width: 100%; }
  .school-about__detail-content { font-size: 16px; }
  .school-about__heading h1 { font-size: 27px; }
  .school-about__heading > p { font-size: 15px; }
  .school-about__philosophy { padding: 20px 16px; }
  .school-about__philosophy p { font-size: 21px; }
  .school-about__showcase { grid-template-columns: 1fr; }
  .school-about__card img { aspect-ratio: 16 / 9; }
  .school-about__card-copy { position: relative; min-height: 0; }
  .school-about__card-copy h2 { font-size: 20px; }
  .school-about__links { grid-template-columns: 1fr; }
  .school-about__more { padding: 18px 14px; }
  .school-about__more > h2 { font-size: 23px; }
  .school-about__links a { min-height: 76px; }
}
