/* ==========================================================
   LEADERSHIP MESSAGE PAGES (message-template.php)
   ========================================================== */

.ms-wrap {
  --ms-navy: #1d2a5b;
  --ms-navy-2: #253993;
  --ms-rose: #ff1f59;
  --ms-ink: #283034;
  --ms-muted: #7a848d;
  --ms-line: #e6e9ef;
}

/* ---------- Profile ---------- */
.ms-profile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  color: #fff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 31, 89, .42) 0, rgba(255, 31, 89, 0) 50%),
    linear-gradient(135deg, var(--ms-navy) 0%, var(--ms-navy-2) 100%);
  box-shadow: 0 20px 42px -24px rgba(29, 42, 91, .8);
}

/* faint rings in the corner */
.ms-profile::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 16px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .03);
  pointer-events: none;
}

/* portrait with an offset gradient frame behind it */
.ms-photo {
  position: relative;
  flex: 0 0 170px;
  width: 170px;
}

.ms-photo::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ms-rose), #ffb3c6);
}

.ms-photo img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 249 / 288;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55);
}

.ms-profile-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ms-kicker {
  display: inline-block;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
}

.ms-name {
  margin: 12px 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.ms-desig {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #ffb3c6;
}

.ms-quote {
  position: relative;
  margin: 18px 0 0;
  padding: 0 0 0 16px;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  border-left: 3px solid var(--ms-rose);
}

/* ---------- Highlights ---------- */
.ms-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.ms-fact {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--ms-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.ms-fact::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--ms-navy-2), var(--ms-rose));
}

.ms-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(29, 42, 91, .45);
}

.ms-fact strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ms-navy-2);
}

.ms-fact span {
  font-size: .82rem;
  color: var(--ms-muted);
}

/* ---------- Letter ---------- */
.ms-letter {
  position: relative;
  margin-top: 26px;
  padding: 40px 36px 30px;
  border: 1px solid var(--ms-line);
  border-radius: 18px;
  background: #fff;
}

/* oversized quote mark in the corner */
.ms-mark {
  position: absolute;
  top: -8px;
  right: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  color: #eef1fb;
  pointer-events: none;
  user-select: none;
}

.ms-letter p {
  position: relative;
  margin-bottom: 18px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #4a535b;
}

/* drop cap on the first paragraph */
.ms-letter p:first-of-type::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: .85;
  color: var(--ms-navy-2);
}

.ms-sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--ms-line);
}

.ms-sign-line {
  width: 60px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ms-navy-2), var(--ms-rose));
}

.ms-sign strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ms-ink);
}

.ms-sign span:last-child {
  font-size: .9rem;
  color: var(--ms-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ms-wrap.pr-30 { padding-right: 0; }
}

@media (max-width: 767px) {
  .ms-profile { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .ms-photo { flex-basis: auto; width: 150px; margin-bottom: 8px; }
  .ms-facts { grid-template-columns: 1fr; }
  .ms-letter { padding: 30px 22px 24px; }
  .ms-mark { font-size: 6rem; right: 16px; }
}
