/* ==========================================================
   Home — Principal's Message (scoped under .px)
   One "letter" card: blue profile panel (photo, name, role,
   school) on the left, the message styled as a letter with a
   drop cap and signature on the right.
   Logo palette: royal blue + orange.
   ========================================================== */
.px {
  --px-blue: #0d4f9c;
  --px-blue-deep: #083a75;
  --px-orange: #f08a1c;
  --px-orange-deep: #d9740a;
  --px-ink: #142033;
  --px-muted: #4d5a6c;
  --px-line: #e5ebf3;
  padding: 60px 0;
  background:
    radial-gradient(circle at 100% 100%, rgba(13, 79, 156, .06), transparent 40%),
    #f7f9fc;
}
.px-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.px-card {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--px-line);
  box-shadow: 0 40px 80px -45px rgba(8, 58, 117, .45);
}

/* ---------- profile panel ---------- */
.px-profile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 44px 36px 36px;
  background: linear-gradient(165deg, var(--px-blue) 0%, var(--px-blue-deep) 100%);
  color: #fff;
  text-align: center;
}
.px-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.px-circle--a { width: 260px; height: 260px; top: -110px; left: -110px; border: 36px solid rgba(255, 255, 255, .06); }
.px-circle--b { width: 180px; height: 180px; bottom: -70px; right: -70px; background: rgba(240, 138, 28, .18); }

.px-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
  background: rgba(255, 255, 255, .1);
}
.px-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.px-person { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.px-name { margin: 0; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.px-role {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--px-orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.px-school {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
}
.px-school img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.px-school-title { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.2; color: #fff; }
.px-school-sub { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); }

/* ---------- letter ---------- */
.px-letter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 52px 56px 44px;
}
.px-watermark {
  position: absolute;
  right: 40px;
  top: 6px;
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
  color: rgba(240, 138, 28, .1);
  pointer-events: none;
}
.px-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--px-orange-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.px-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--px-blue-deep);
}
.px-title span { color: var(--px-orange); }

.px-message { position: relative; display: flex; flex-direction: column; gap: 14px; }
.px-text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--px-muted); text-align: justify; }
.px-text strong { color: var(--px-blue-deep); }
.px-text--lead::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: .8;
  font-weight: 700;
  color: var(--px-orange);
}

.px-foot {
  width: 100%;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px dashed var(--px-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.px-sign { display: flex; flex-direction: column; gap: 2px; }
.px-sign-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--px-blue-deep);
}
.px-sign-role { font-size: 13px; color: var(--px-muted); font-weight: 600; }
.px-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--px-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.px-btn:hover { background: var(--px-orange-deep); color: #fff; transform: translateY(-2px); }
.px-btn .fa { transition: transform .2s ease; }
.px-btn:hover .fa { transform: translateX(4px); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .px-card { grid-template-columns: 320px minmax(0, 1fr); }
  .px-letter { padding: 44px 40px 36px; }
  .px-title { font-size: 36px; }
}
@media (max-width: 991px) {
  .px { padding: 48px 0; }
  .px-card { grid-template-columns: 1fr; }
  .px-profile { padding: 36px 28px 28px; }
  .px-photo { max-width: 240px; }
  .px-school { max-width: 360px; }
}
@media (max-width: 640px) {
  .px { padding: 40px 0; }
  .px-wrap { padding: 0 16px; }
  .px-card { border-radius: 24px; }
  .px-letter { padding: 32px 22px 28px; }
  .px-title { font-size: 30px; }
  .px-text { text-align: left; }
  .px-watermark { font-size: 150px; right: 16px; }
  .px-btn { width: 100%; justify-content: center; }
}

/* message HTML coming from the CMS (<p> tags with inline styles) */
.px-message--cms { font-size: 16px; line-height: 1.8; color: var(--px-muted); }
.px-message--cms p { margin: 0 0 14px; text-align: justify; }
.px-message--cms p:last-child { margin-bottom: 0; }
.px-message--cms p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: .8;
  font-weight: 700;
  color: var(--px-orange);
}
@media (max-width: 640px) { .px-message--cms p { text-align: left; } }

/* Read More / Read Less */
.px-collapse { position: relative; transition: max-height .45s ease; }
.px-collapse.is-collapsed { max-height: 260px; overflow: hidden; }
.px-collapse.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 90%);
  pointer-events: none;
}
.px-toggle { border: 0; cursor: pointer; font-family: inherit; }
.px-toggle .fa { transition: transform .2s ease; }
