/* ==========================================================================
   About Page
   ========================================================================== */
.about-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(245, 166, 35, 0.12), transparent 26%),
    url('../images/edu-doodles.svg') repeat,
    #FFFDFB;
  background-size: auto, 360px 360px, auto;
  padding: 110px 0;
}

.about-doodle {
  position: absolute;
  color: var(--primary);
  opacity: 0.12;
  font-size: 4rem;
  pointer-events: none;
}
.about-doodle-one { right: 10%; top: 90px; transform: rotate(14deg); }
.about-doodle-two { left: 7%; bottom: 70px; transform: rotate(-12deg); }

.about-visual {
  position: relative;
  min-height: 560px;
}
.about-main-img {
  position: absolute;
  inset: 0 56px 0 0;
  overflow: hidden;
  border-radius: 50% 50% 12px 12px / 36% 36% 12px 12px;
  box-shadow: 18px 18px 0 rgba(211, 24, 38, 0.12);
}
.about-main-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(23, 7, 10, 0.28));
}
.about-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-note {
  position: absolute;
  right: 0;
  bottom: 52px;
  max-width: 285px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(211, 24, 38, 0.14);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-edu);
  color: var(--ink);
}
.about-note span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: var(--ink);
}

.about-title {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 12px 0 22px;
  max-width: 620px;
}
.about-title::after {
  content: '';
  display: block;
  width: 95px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  margin-top: 18px;
}
.about-copy p {
  color: #5b5257;
  font-size: 1.03rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); }
.about-title em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  color: var(--primary);
}

.about-note-list small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}
.about-note-list strong {
  font-size: 0.92rem;
  line-height: 1.45;
}


.about-belief {
  position: relative;
  background: #FFFFFF;
  padding: 90px 0;
}
.belief-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(211, 24, 38, 0.88), rgba(142, 14, 24, 0.9));
  padding: 54px;
  color: #FFFFFF;
}
.belief-panel::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 58px;
  background: url('../images/topo-lines.svg') repeat-x bottom / 420px auto;
  opacity: 0.14;
}
.belief-panel > * {
  position: relative;
  z-index: 1;
}
.belief-panel h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 12px 0 0;
}
.belief-copy {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 34px;
}
.belief-copy p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  margin-bottom: 14px;
}
.belief-copy p:last-child { margin-bottom: 0; }
.belief-copy .belief-lead {
  font-family: var(--font-edu);
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.belief-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.belief-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: var(--font-edu);
  font-weight: 600;
  line-height: 1.5;
}
.belief-steps span {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.about-vision-mission {
  background: var(--theme-light-bg);
  padding: 80px 0;
}
/* Framed board: dark frame > red mat > chevron headed columns */
.vm-frame {
  height: 100%;
  background: var(--ink);
  padding: 7px;
  border-radius: 4px;
  box-shadow: 0 30px 70px -38px rgba(23, 7, 10, 0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vm-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -34px rgba(211, 24, 38, 0.45);
}
.vm-board {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 10px solid var(--primary);
  padding-bottom: 22px;
}
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.vm-panel {
  text-align: center;
}
.vm-panel .vm-body {
  flex: 1;
}
.vm-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px 52px;
  background: #F3F3F4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
  transition: var(--transition);
}
.vision-panel .vm-head { background: #E8E8EA; }
.vm-panel:hover .vm-head { background: #FBEDEE; }
.vm-icon {
  color: var(--primary);
  font-size: 2.2rem;
  line-height: 1;
  transition: var(--transition);
}
.vm-panel:hover .vm-icon { transform: translateY(-4px) scale(1.06); }
.vm-head h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-edu);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.vm-body {
  padding: 14px 30px 24px;
}
.vm-body::before {
  content: '';
  display: block;
  width: 170px;
  height: 14px;
  margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 14'%3E%3Cpath d='M2 4 C45 13 125 13 168 4' fill='none' stroke='%23C9C3C5' stroke-width='2' stroke-linecap='round' stroke-dasharray='1 5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.vm-body p {
  max-width: 440px;
  margin: 0 auto;
  color: #4A4246;
  font-size: 0.92rem;
  line-height: 1.75;
}
.vm-rule {
  margin: 0 28px;
  height: 3px;
  background-image: radial-gradient(circle, #CFC9CB 1.2px, transparent 1.6px);
  background-size: 9px 3px;
  background-repeat: repeat-x;
}

.about-copy-more {
  display: block;
}

.about-read-toggle {
  display: none;
  border: 0;
  background: #FFFDFB;
  color: var(--primary);
  font-weight: 700;
  padding: 0 0 0 6px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
}

.about-read-toggle:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 991px) {
  .about-story,
  .about-belief,
  .about-vision-mission {
    padding: 76px 0;
  }
  .about-visual {
    min-height: 460px;
  }
  .about-main-img {
    right: 28px;
  }
  .belief-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 28px;
  }
  .belief-copy {
    border-left: 0;
    padding-left: 0;
  }
  .vm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .about-story .row > .col-lg-6:first-child { order: 2; }
  .about-story .row > .col-lg-6:last-child { order: 1; }

  .about-note {
    display: none;
  }

  .about-visual {
    min-height: 0;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
  }

  .about-main-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none;
  }

  .about-main-img img {
    display: block;
    width: 100%;
    height: clamp(260px, 72vw, 380px);
    object-fit: cover;
    object-position: center;
  }

  .about-story {
    padding-top: 68px;
    padding-bottom: 26px;
  }

  .about-belief {
    padding: 32px 0 30px;
  }

  .about-vision-mission {
    padding: 34px 0 60px;
  }

  .about-story .col-lg-6,
  .about-belief .belief-panel,
  .about-vision-mission .vm-grid,
  .about-vision-mission .vm-panel,
  .about-vision-mission .vm-board {
    text-align: center;
  }

  .about-title {
    font-size: clamp(2.2rem, 9vw, 4rem);
    line-height: 0.98;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-kicker {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .about-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .about-copy {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
  }

  .about-copy-primary {
    display: block;
    margin-bottom: 0;
    line-height: 1.85;
    max-height: calc(1.85em * 3);
    overflow: hidden;
  }

  .about-copy-more {
    display: none;
  }

  .about-copy.is-expanded .about-copy-more {
    display: block;
    margin-top: 18px;
  }

  .about-read-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: calc(1.85em * 2);
    line-height: 1.85;
  }

  .about-copy.is-expanded .about-copy-primary {
    max-height: none;
    overflow: visible;
  }

  .about-copy.is-expanded .about-read-toggle {
    position: static;
    margin-top: 8px;
    padding: 0;
  }

  .belief-panel,
  .belief-panel > * {
    text-align: center;
  }

  .belief-panel {
    max-width: 560px;
    margin: 0 auto;
  }

  .belief-copy {
    max-width: 560px;
    margin: 0 auto;
  }

  .belief-steps li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    text-align: center;
  }

  .belief-steps li span {
    text-align: center;
  }

  .vm-grid {
    max-width: 560px;
  }
}

@media (max-width: 575px) {
  .about-story { padding-bottom: 18px; }
  .about-belief { padding: 24px 0 22px; }
  .about-vision-mission { padding: 26px 0 52px; }
  .vm-grid { gap: 22px; }
  .vm-board { border-width: 10px; }
  .vm-body { padding: 18px 20px 26px; }
  .vm-rule { margin: 0 20px; }
  .about-visual {
    min-height: 0;
  }
  .about-main-img {
    border-radius: 8px;
  }
  .about-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
}

/* ==========================================================================
   OUR TEAM - photo cards with overlaid name, 5 per row x 3 rows
   ========================================================================== */

.about-team {
  position: relative;
  padding: 10px 0 100px;
  overflow: hidden;
}

.team-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.team-glow-one {
  top: -120px;
  left: -140px;
  background: var(--primary-subtle);
}
.team-glow-two {
  bottom: -160px;
  right: -150px;
  background: var(--accent-gold-subtle);
}

.about-team .container { position: relative; z-index: 1; }

.team-head {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}
.team-head .section-kicker { justify-content: center; }
.team-head .section-lead { margin: 0 auto; }

.team-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}
.team-row + .team-row { margin-top: 18px; }

/* Wrapper carries the shadow, since a mask would clip it off the card itself */
.team-card-wrap {
  filter: drop-shadow(0 4px 12px rgba(211, 24, 38, 0.1));
  transition: var(--transition);
}
.team-card-wrap:hover {
  filter: drop-shadow(0 14px 26px rgba(211, 24, 38, 0.2));
}

.team-card {
  --notch: 40px;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--theme-light-alt);
  transition: var(--transition);
  isolation: isolate;
  /* Concave scoop carved out of the bottom-right corner */
  -webkit-mask-image: radial-gradient(circle var(--notch) at 100% 100%,
    transparent 0 var(--notch), #000 calc(var(--notch) + 0.5px));
  mask-image: radial-gradient(circle var(--notch) at 100% 100%,
    transparent 0 var(--notch), #000 calc(var(--notch) + 0.5px));
}
.team-card:hover {
  transform: translateY(-6px);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop from the top so the subject sits higher in the frame */
  object-position: center var(--photo-y, 72%);
  display: block;
  filter: grayscale(0%);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-photo {
  filter: grayscale(100%);
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14, 3, 5, 0) 42%,
    rgba(14, 3, 5, 0.58) 72%,
    rgba(14, 3, 5, 0.9) 100%);
  transition: var(--transition);
}
.team-card:hover .team-overlay {
  background: linear-gradient(180deg,
    rgba(14, 3, 5, 0) 36%,
    rgba(14, 3, 5, 0.66) 74%,
    rgba(14, 3, 5, 0.94) 100%);
}

.team-info {
  position: absolute;
  left: 16px;
  right: calc(var(--notch) + 6px);
  bottom: 16px;
  z-index: 1;
}

.team-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 2px;
  line-height: 1.25;
}

.team-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}
.team-card:hover .team-role { color: var(--accent-gold); }

@media (max-width: 1199px) {
  .team-row { gap: 14px; }
  .team-row + .team-row { margin-top: 14px; }
  .team-card { --notch: 34px; }
  .team-name { font-size: 0.92rem; }
  .team-info { left: 13px; bottom: 13px; }
}

@media (max-width: 991px) {
  .about-team { padding-bottom: 76px; }
  .team-head { margin-bottom: 36px; }
  .team-row,
  .team-row + .team-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-name { font-size: 1rem; }
}

@media (max-width: 767px) {
  .about-team { padding: 0 0 56px; }
  /* Flatten the rows so all six cards stack one per row */
  .team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .team-row,
  .team-row + .team-row {
    display: contents;
    margin-top: 0;
  }
  .team-card { border-radius: 14px; --notch: 28px; }
  .team-photo { filter: grayscale(0%); }
  .team-name { font-size: 0.88rem; }
  .team-role { font-size: 0.62rem; }
  .team-info { left: 11px; bottom: 11px; }
}

@media (max-width: 575px) {
  .about-team { padding-bottom: 44px; }
}
