/* Guard rails for imported legacy pages. */
.legacy-page {
  background: #f4f8fc;
  color: #1a1a1a;
  overflow-x: hidden;
}

.legacy-page section,
.legacy-page .hero,
.legacy-page .cta,
.legacy-page .intro-card,
.legacy-page .feature-card,
.legacy-page .room-card,
.legacy-page .rules-card,
.legacy-page .side-note,
.legacy-page .card {
  max-width: 100%;
}

.legacy-page .container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.legacy-page .hero {
  position: relative;
  overflow: hidden;
}

.legacy-page .hero .container,
.legacy-page .hero-content {
  position: relative;
  z-index: 1;
}

.legacy-page img {
  display: block;
  max-width: 100%;
}

.legacy-page .intro-image,
.legacy-page .room-card,
.legacy-page .gallery-item,
.legacy-page .card {
  overflow: hidden;
}

.legacy-page .intro-image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.legacy-page .room-card img,
.legacy-page .card img,
.legacy-page .gallery-item img {
  width: 100%;
  object-fit: cover;
}

.legacy-page .intro-grid,
.legacy-page .features,
.legacy-page .rooms-grid,
.legacy-page .rules-wrap,
.legacy-page .cards-grid,
.legacy-page .benefits-grid,
.legacy-page .programs-grid,
.legacy-page .stats-grid {
  min-width: 0;
}

.legacy-page .cta-btn,
.legacy-page .btn {
  max-width: 100%;
  white-space: normal;
}

.legacy-page table {
  max-width: 100%;
  border-collapse: collapse;
}

@media (max-width: 900px) {
  .legacy-page .intro-grid,
  .legacy-page .features,
  .legacy-page .rooms-grid,
  .legacy-page .rules-wrap,
  .legacy-page .cards-grid,
  .legacy-page .benefits-grid,
  .legacy-page .programs-grid,
  .legacy-page .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .legacy-page .intro-image img { min-height: 260px; }
}

/* Legacy imported content layout */
.legacy-page {
  --legacy-blue: #0f4c81;
  --legacy-blue-2: #1b79d1;
  --legacy-ink: #172334;
  --legacy-muted: #607083;
  --legacy-line: rgba(15, 76, 129, 0.12);
  --legacy-card: #ffffff;
  background: #f4f8fc;
  color: var(--legacy-ink);
}

.legacy-page-title {
  background: linear-gradient(135deg, #0f4c81 0%, #17385d 58%, #1b79d1 100%);
  color: #fff;
  padding: 54px 0 50px;
}

.legacy-page-title .container {
  width: min(92%, 1180px);
}

.legacy-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legacy-page-title h1 {
  max-width: 980px;
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.legacy-page-body {
  padding: 46px 0 64px;
}

.legacy-page-body > section {
  width: 100%;
}

.legacy-page .container {
  width: min(92%, 1180px);
  max-width: 1180px;
  margin-inline: auto;
}

.legacy-page .com-sp,
.legacy-page .pg-inn,
.legacy-page .stu-db {
  padding-top: 0;
  padding-bottom: 0;
}

.legacy-page .pad-bot-70 {
  padding-bottom: 34px;
}

.legacy-page .pad-bot-0 {
  padding-bottom: 22px;
}

.legacy-page .row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.legacy-page .col-md-12 { grid-column: span 12; }
.legacy-page .col-md-10 { grid-column: span 10; }
.legacy-page .col-md-9 { grid-column: span 9; }
.legacy-page .col-md-6 { grid-column: span 6; }
.legacy-page .col-md-4 { grid-column: span 4; }

.legacy-page .row > .col-md-4:has(> img),
.legacy-page .row > .col-md-6:has(.home-top-cour),
.legacy-page .row > .col-md-12:has(.udb),
.legacy-page .cor,
.legacy-page .about-sp,
.legacy-page .udb-sec,
.legacy-page .collapsible-body,
.legacy-page .home-top-cour,
.legacy-page .cor-top-deta,
.legacy-page .cor-side-com,
.legacy-page .ho-st-login,
.legacy-page .cor-apply {
  background: var(--legacy-card);
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

.legacy-page .row > .col-md-4:has(> img) {
  min-height: 220px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-page .row > .col-md-4:has(> img) img {
  width: min(100%, 260px) !important;
  height: 190px !important;
  object-fit: contain;
}

.legacy-page .cor,
.legacy-page .about-sp,
.legacy-page .udb-sec,
.legacy-page .collapsible-body {
  padding: 28px;
}

.legacy-page .udb,
.legacy-page .udb-sec {
  width: 100%;
}

.legacy-page p,
.legacy-page .s17-eve-time-msg,
.legacy-page .home-top-cour-desc,
.legacy-page .cor-tim-tab,
.legacy-page .sdb-cl-class-name {
  color: #344457;
  font-size: 16px;
  line-height: 1.75;
}

.legacy-page p + p,
.legacy-page .s17-eve-time-msg p {
  margin-top: 0;
}

.legacy-page a {
  color: var(--legacy-blue-2);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.legacy-page a:hover {
  color: var(--legacy-blue);
}

.legacy-page h3,
.legacy-page h4,
.legacy-page h5 {
  color: var(--legacy-blue);
  letter-spacing: 0;
}

.legacy-page h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.legacy-page h4 {
  margin: 26px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.legacy-page h4:first-child {
  margin-top: 0;
}

.legacy-page h5 {
  margin: 16px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.legacy-page .s18-age-event > ul,
.legacy-page .collapsible,
.legacy-page .sdb-cours > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legacy-page .s18-age-event > ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legacy-page .s18-age-event > ul > li {
  background: #fff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.07);
}

.legacy-page .s18-age-event > ul > li:first-child {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
}

.legacy-page .age-eve-com {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: #eef6ff;
  border: 1px solid var(--legacy-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-page .age-eve-com img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.legacy-page .s17-eve-time-tim {
  margin-bottom: 14px;
  color: var(--legacy-blue);
  font-weight: 800;
}

.legacy-page .s17-eve-time-msg p {
  color: #344457;
  line-height: 1.78;
}

.legacy-page .m-menu-inn {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.legacy-page .mm2-com,
.legacy-page .home-top-cour {
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.07);
}

.legacy-page .ed-course-in {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eef4fb;
}

.legacy-page .ed-course-in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-page .mm2-com p {
  color: #526273;
  font-size: 15px;
  line-height: 1.6;
}

.legacy-page .sdb-cours > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.legacy-page .sdb-cours li,
.legacy-page .sdb-cours a {
  display: block;
}

.legacy-page .list-mig-lc-img {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.07);
}

.legacy-page .list-mig-lc-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.legacy-page .home-top-cour {
  display: block;
}

.legacy-page .home-top-cour-desc {
  width: 100%;
}

.legacy-page .home-top-cour h3 {
  color: var(--legacy-blue);
}

.legacy-page .home-top-cour a:not(:has(h3)) {
  display: block;
  padding: 12px 14px;
  background: #f7fbff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  color: #205b92;
  font-weight: 700;
  line-height: 1.55;
}

.legacy-page .collapsible-body {
  display: grid;
  gap: 14px;
}

.legacy-page .collapsible-body h4 {
  padding-top: 18px;
  border-top: 1px solid var(--legacy-line);
}

.legacy-page .collapsible-body h4:first-child {
  padding-top: 0;
  border-top: 0;
}

.legacy-page .collapsible-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.legacy-page .collapsible-body li a,
.legacy-page .cor-tim-tab li a {
  position: relative;
  display: block;
  padding: 13px 16px 13px 54px;
  min-height: 48px;
  background: #f8fbff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  color: #1f507d;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
}

.legacy-page .collapsible-body li a::before,
.legacy-page .cor-tim-tab li a::before {
  content: "FILE";
  position: absolute;
  left: 14px;
  top: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: var(--legacy-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.legacy-page .collapsible-body li a:hover,
.legacy-page .cor-tim-tab li a:hover,
.legacy-page .home-top-cour a:not(:has(h3)):hover {
  background: #eef6ff;
  border-color: rgba(27, 121, 209, 0.24);
  color: var(--legacy-blue);
}

.legacy-page .cor-top-deta,
.legacy-page .cor-side-com,
.legacy-page .ho-st-login,
.legacy-page .cor-apply {
  padding: 22px;
}

.legacy-page .s17-sprit,
.legacy-page .age-dwarr-btn,
.legacy-page .time-hide,
.legacy-page .time-hide-1,
.legacy-page .time-hide-11-btn {
  max-width: 100%;
}

.legacy-page .bordered,
.legacy-page .responsive-table,
.legacy-page table {
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
}

.legacy-page table th,
.legacy-page table td {
  padding: 12px 14px;
  border: 1px solid var(--legacy-line);
  text-align: left;
  vertical-align: top;
}

.legacy-page table th {
  background: #eef6ff;
  color: var(--legacy-blue);
}

@media (max-width: 980px) {
  .legacy-page-title {
    padding: 40px 0 36px;
  }

  .legacy-page-body {
    padding: 32px 0 48px;
  }

  .legacy-page .row {
    grid-template-columns: 1fr;
  }

  .legacy-page .col-md-12,
  .legacy-page .col-md-10,
  .legacy-page .col-md-9,
  .legacy-page .col-md-6,
  .legacy-page .col-md-4 {
    grid-column: 1 / -1;
  }

  .legacy-page .m-menu-inn,
  .legacy-page .sdb-cours > ul {
    grid-template-columns: 1fr;
  }

  .legacy-page .s18-age-event > ul > li:first-child {
    grid-template-columns: 1fr;
  }

  .legacy-page .age-eve-com {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 560px) {
  .legacy-page-title h1 {
    font-size: 28px;
  }

  .legacy-page .cor,
  .legacy-page .about-sp,
  .legacy-page .udb-sec,
  .legacy-page .collapsible-body,
  .legacy-page .s18-age-event > ul > li,
  .legacy-page .mm2-com,
  .legacy-page .home-top-cour {
    padding: 18px;
  }

  .legacy-page .collapsible-body li a,
  .legacy-page .cor-tim-tab li a {
    padding-left: 16px;
  }

  .legacy-page .collapsible-body li a::before,
  .legacy-page .cor-tim-tab li a::before {
    position: static;
    margin: 0 8px 6px 0;
    vertical-align: middle;
  }
}

/* Polished legacy page blocks */
.legacy-clean {
  width: 100%;
}

.legacy-clean-stack {
  display: grid;
  gap: 28px;
}

.legacy-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.legacy-brand-card,
.legacy-copy-card,
.legacy-person-card,
.legacy-doc-card,
.legacy-guide-card,
.legacy-course-card-clean,
.legacy-faq-item {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

.legacy-brand-card {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legacy-brand-card img {
  width: 100%;
  max-width: 250px;
  height: 160px;
  object-fit: contain;
}

.legacy-copy-card {
  padding: 28px;
}

.legacy-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: #f7fbff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-radius: 8px;
}

.legacy-meta-row span {
  color: #607083;
  font-size: 14px;
  font-weight: 700;
}

.legacy-meta-row a {
  color: #0f4c81;
  font-weight: 800;
}

.legacy-copy {
  display: grid;
  gap: 14px;
}

.legacy-copy p,
.legacy-guide-card p,
.legacy-course-content-clean p,
.legacy-faq-item p {
  color: #344457;
  font-size: 16px;
  line-height: 1.75;
}

.legacy-section-heading {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.legacy-section-heading span,
.legacy-pill {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  background: #eef6ff;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.legacy-section-heading h2 {
  color: #172334;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.legacy-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.legacy-person-card {
  overflow: hidden;
}

.legacy-person-photo {
  background: #eef4fb;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.legacy-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-person-body {
  padding: 18px 18px 20px;
}

.legacy-person-body h3,
.legacy-guide-card h2,
.legacy-doc-card h2,
.legacy-course-content-clean h2 {
  margin: 0;
  color: #0f4c81;
  line-height: 1.28;
  letter-spacing: 0;
}

.legacy-person-body h3 {
  font-size: 18px;
}

.legacy-person-body p {
  margin-top: 10px;
  color: #526273;
  font-size: 15px;
  line-height: 1.58;
}

.legacy-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.legacy-documents-clean .legacy-doc-grid {
  grid-template-columns: 1fr;
}

.legacy-quota-clean .legacy-doc-grid {
  grid-template-columns: 1fr;
}

.legacy-doc-card {
  padding: 22px;
}

.legacy-doc-card h2 {
  font-size: 20px;
}

.legacy-doc-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.legacy-doc-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  background: #f8fbff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-radius: 8px;
  color: #1f507d;
  font-weight: 700;
  line-height: 1.48;
  text-decoration: none;
}

.legacy-doc-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 24px;
  border-radius: 5px;
  background: #0f4c81;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.legacy-doc-link:hover,
.legacy-inline-link:hover {
  background: #eef6ff;
  color: #0f4c81;
}

.legacy-course-card-clean {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.legacy-course-media {
  min-height: 360px;
  background: #eef4fb;
}

.legacy-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-course-content-clean {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 34px;
}

.legacy-course-content-clean h2 {
  font-size: 28px;
}

.legacy-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #f7fbff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-radius: 8px;
  color: #344457;
  font-weight: 700;
}

.legacy-contact-line a {
  color: #0f4c81;
  font-size: 18px;
  font-weight: 900;
}

.legacy-guide-intro p {
  max-width: 920px;
  color: #172334;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
}

.legacy-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.legacy-guide-card {
  padding: 24px;
}

.legacy-guide-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.legacy-guide-card p + p {
  margin-top: 12px;
}

.legacy-inline-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  color: #0f4c81;
  font-weight: 800;
}

.legacy-faq-list {
  display: grid;
  gap: 12px;
}

.legacy-faq-item {
  overflow: hidden;
}

.legacy-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  color: #0f4c81;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.legacy-faq-item summary::-webkit-details-marker {
  display: none;
}

.legacy-faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f4c81;
  font-size: 20px;
  line-height: 1;
}

.legacy-faq-item[open] summary::after {
  content: "-";
}

.legacy-faq-item > div {
  padding: 0 20px 20px;
}

.legacy-faq-item > div p {
  padding-top: 16px;
  border-top: 1px solid rgba(15, 76, 129, 0.10);
}

@media (max-width: 980px) {
  .legacy-logo-grid,
  .legacy-people-grid,
  .legacy-doc-grid,
  .legacy-guide-grid,
  .legacy-course-card-clean {
    grid-template-columns: 1fr;
  }

  .legacy-course-media {
    min-height: 260px;
  }

  .legacy-course-content-clean {
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .legacy-meta-row,
  .legacy-contact-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .legacy-copy-card,
  .legacy-doc-card,
  .legacy-guide-card,
  .legacy-course-content-clean {
    padding: 20px;
  }

  .legacy-section-heading h2,
  .legacy-course-content-clean h2 {
    font-size: 24px;
  }

  .legacy-doc-link {
    grid-template-columns: 1fr;
  }
}

/* Polished admission pages */
.legacy-admission-status-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(199, 48, 48, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 76, 129, 0.09);
}

.legacy-admission-status-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff1f1;
  color: #c73030;
  border: 1px solid rgba(199, 48, 48, 0.22);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.legacy-admission-status-body {
  min-width: 0;
}

.legacy-pill-danger {
  background: #fff1f1;
  border-color: rgba(199, 48, 48, 0.18);
  color: #b42323;
}

.legacy-admission-status-body h2 {
  margin: 14px 0 10px;
  color: #0f4c81;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.legacy-admission-status-body p {
  color: #344457;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.legacy-admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.legacy-prep-card-clean {
  max-width: 920px;
  margin: 0 auto;
  display: block;
}

.legacy-prep-card-clean .legacy-course-content-clean {
  padding: 30px;
}

.legacy-prep-card-clean h2 {
  max-width: 760px;
}

.legacy-prep-card-clean .legacy-doc-links {
  max-width: 640px;
}

.legacy-doc-link-disabled {
  opacity: 0.72;
  cursor: default;
}

.legacy-quota-clean .legacy-doc-card h2 {
  min-height: 52px;
}

@media (max-width: 680px) {
  .legacy-admission-status-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .legacy-admission-status-body h2 {
    font-size: 24px;
  }

  .legacy-admission-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .legacy-admission-actions .legacy-inline-link {
    justify-content: center;
  }
}



.legacy-video-card {
  display: grid;
  gap: 22px;
}

.legacy-why-video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 129, 0.14);
  object-fit: contain;
}

.legacy-video-copy h2 {
  margin: 0 0 4px;
  color: #0f4c81;
  font-size: 30px;
  line-height: 1.2;
}

/* Admin editable content guard rails */
.legacy-page,
.legacy-page * {
  box-sizing: border-box;
}

.legacy-page-body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.legacy-page-body > :where(:not(section)) {
  width: min(92%, 1180px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-page-body > :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, figure, table, pre, div:not(.container)) {
  color: #344457;
  font-size: 16px;
  line-height: 1.75;
}

.legacy-page-body > :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, figure, table, pre, div:not(.container)) + :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, figure, table, pre, div:not(.container)) {
  margin-top: 16px;
}

.legacy-page-body > :where(h2, h3, h4, h5, h6) {
  color: var(--legacy-blue);
  line-height: 1.3;
}

.legacy-page-body > :where(ul, ol) {
  padding-left: 1.35rem;
}

.legacy-page-body > ul { list-style: disc; }
.legacy-page-body > ol { list-style: decimal; }

.legacy-page-body :where(p, li, td, th, h1, h2, h3, h4, h5, h6, figcaption, blockquote, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legacy-page-body :where(div, section, article, aside, figure, table, pre, code) {
  min-width: 0;
}

.legacy-page-body :where([style*="width" i]) {
  max-width: 100% !important;
}

.legacy-page-body :where([style*="min-width" i]) {
  min-width: 0 !important;
}

.legacy-page-body :where(img, video, canvas, svg, iframe, embed, object) {
  max-width: 100% !important;
}

.legacy-page-body :where(img, video, canvas, svg) {
  height: auto !important;
}

.legacy-page-body :where(iframe, embed, object) {
  width: 100% !important;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  background: #eef4fb;
}

.legacy-page-body > p:has(> img:only-child),
.legacy-page-body > figure.image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--legacy-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.07);
}

.legacy-page-body > p > img:only-child {
  width: auto !important;
  max-height: 340px;
  object-fit: contain;
  margin: 0 auto;
}

.legacy-page-body figure.image,
.legacy-page-body .image,
.legacy-page-body .image_resized {
  max-width: 100% !important;
}

.legacy-page-body figure.image img {
  width: 100%;
  height: auto;
}

.legacy-page-body .image-style-side {
  float: right;
  width: min(44%, 420px) !important;
  margin: 0 0 18px 24px;
}

.legacy-page-body table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
}

.legacy-page-body table :where(th, td) {
  min-width: 120px;
}

.legacy-page-body pre {
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  background: #0f2238;
  color: #eef6ff;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .legacy-page-body > :where(:not(section)) {
    width: min(92%, 100%);
  }

  .legacy-page-body .image-style-side {
    float: none;
    width: 100% !important;
    margin: 18px auto;
  }

  .legacy-page-body :where(iframe, embed, object) {
    min-height: 220px;
  }
}

/* TSUE profile page */
.legacy-page .tsue-profile {
  --tsue-navy: #123b67;
  --tsue-blue: #1b79d1;
  --tsue-green: #0f766e;
  --tsue-gold: #b7791f;
  --tsue-soft: #eef6ff;
  padding: 0 0 18px;
}

.legacy-page .tsue-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 32px;
  align-items: center;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(15, 45, 82, 0.96), rgba(18, 59, 103, 0.9)),
    url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(15, 45, 82, 0.18);
  overflow: hidden;
}

.legacy-page .tsue-showcase-copy,
.legacy-page .tsue-media-wall,
.legacy-page .tsue-info-panel,
.legacy-page .tsue-focus-panel,
.legacy-page .tsue-path-card,
.legacy-page .tsue-leader-card,
.legacy-page .tsue-stat-card {
  min-width: 0;
}

.legacy-page .tsue-eyebrow,
.legacy-page .tsue-section-kicker,
.legacy-page .tsue-section-heading span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.legacy-page .tsue-eyebrow {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #eaf6ff;
}

.legacy-page .tsue-showcase h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.legacy-page .tsue-showcase p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.72;
}

.legacy-page .tsue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.legacy-page .tsue-action-primary,
.legacy-page .tsue-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.legacy-page .tsue-action-primary {
  background: #fff;
  color: var(--tsue-navy);
}

.legacy-page .tsue-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.legacy-page .tsue-action-primary:hover,
.legacy-page .tsue-action-secondary:hover {
  transform: translateY(-2px);
}

.legacy-page .tsue-media-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.legacy-page .tsue-logo-tile,
.legacy-page .tsue-logo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.legacy-page .tsue-logo-tile-main {
  grid-column: 1 / -1;
  min-height: 190px;
}

.legacy-page .tsue-logo-tile img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 150px;
  object-fit: contain;
}

.legacy-page .tsue-logo-tile-main img {
  max-height: 170px;
}

.legacy-page .tsue-logo-note {
  align-items: flex-start;
  flex-direction: column;
  background: rgba(15, 118, 110, 0.94);
  color: #fff;
}

.legacy-page .tsue-logo-note strong {
  font-size: 28px;
  line-height: 1;
}

.legacy-page .tsue-logo-note span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.legacy-page .tsue-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.legacy-page .tsue-stat-card {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.11);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.08);
}

.legacy-page .tsue-stat-card strong {
  display: block;
  color: var(--tsue-blue);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.legacy-page .tsue-stat-card span {
  color: #526273;
  font-weight: 700;
  line-height: 1.45;
}

.legacy-page .tsue-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 22px;
  margin-top: 24px;
}

.legacy-page .tsue-info-panel,
.legacy-page .tsue-focus-panel,
.legacy-page .tsue-path-card,
.legacy-page .tsue-leader-card {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.11);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

.legacy-page .tsue-info-panel,
.legacy-page .tsue-focus-panel {
  padding: 28px;
}

.legacy-page .tsue-section-kicker,
.legacy-page .tsue-section-heading span {
  background: #e8f7f5;
  color: var(--tsue-green);
  border: 1px solid rgba(15, 118, 110, 0.13);
}

.legacy-page .tsue-info-panel h3,
.legacy-page .tsue-focus-panel h3,
.legacy-page .tsue-section-heading h3,
.legacy-page .tsue-path-card h4,
.legacy-page .tsue-leader-body h4 {
  color: var(--tsue-navy);
  letter-spacing: 0;
}

.legacy-page .tsue-info-panel h3,
.legacy-page .tsue-focus-panel h3 {
  margin: 16px 0 12px;
  font-size: 28px;
  line-height: 1.22;
}

.legacy-page .tsue-info-panel p,
.legacy-page .tsue-focus-panel li,
.legacy-page .tsue-path-card p,
.legacy-page .tsue-leader-body p {
  color: #526273;
  font-size: 16px;
  line-height: 1.72;
}

.legacy-page .tsue-info-panel p + p {
  margin-top: 12px;
}

.legacy-page .tsue-focus-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-page .tsue-focus-panel li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: #f7fbff;
  border: 1px solid rgba(15, 76, 129, 0.09);
  border-radius: 8px;
  font-weight: 700;
}

.legacy-page .tsue-focus-panel li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tsue-gold);
}

.legacy-page .tsue-section-heading {
  display: grid;
  gap: 12px;
  margin: 34px 0 18px;
  text-align: center;
  justify-items: center;
}

.legacy-page .tsue-section-heading h3 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.legacy-page .tsue-path-grid,
.legacy-page .tsue-leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legacy-page .tsue-path-card {
  padding: 24px;
}

.legacy-page .tsue-path-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff6e8;
  color: var(--tsue-gold);
  font-weight: 900;
}

.legacy-page .tsue-path-card h4 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.28;
}

.legacy-page .tsue-leader-card {
  overflow: hidden;
}

.legacy-page .tsue-leader-photo {
  height: 260px;
  background: #eef4fb;
  overflow: hidden;
}

.legacy-page .tsue-leader-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease;
}

.legacy-page .tsue-leader-card:hover .tsue-leader-photo img {
  transform: scale(1.04);
}

.legacy-page .tsue-leader-body {
  padding: 20px;
}

.legacy-page .tsue-leader-body h4 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .legacy-page .tsue-showcase,
  .legacy-page .tsue-split {
    grid-template-columns: 1fr;
  }

  .legacy-page .tsue-stat-grid,
  .legacy-page .tsue-path-grid,
  .legacy-page .tsue-leaders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .legacy-page .tsue-showcase {
    padding: 24px;
  }

  .legacy-page .tsue-media-wall,
  .legacy-page .tsue-stat-grid,
  .legacy-page .tsue-path-grid,
  .legacy-page .tsue-leaders-grid {
    grid-template-columns: 1fr;
  }

  .legacy-page .tsue-info-panel,
  .legacy-page .tsue-focus-panel,
  .legacy-page .tsue-path-card {
    padding: 20px;
  }

  .legacy-page .tsue-actions a {
    width: 100%;
  }

  .legacy-page .tsue-leader-photo {
    height: 230px;
  }
}

.legacy-page .tsue-admin-content {
  padding: 18px 0 0;
}

.legacy-page .tsue-admin-body {
  padding: 0;
}

.legacy-page .tsue-admin-body > :where(:not(section)) {
  width: 100%;
  max-width: 100%;
}

.legacy-page .tsue-admin-body {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.11);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

/* Managed admin-content pages */
.legacy-page.managed-page {
  background: #f4f8fc;
}

.legacy-page .managed-page-section {
  padding: 42px 0 72px;
}

.legacy-page .managed-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legacy-page .managed-page-aside,
.legacy-page .managed-page-card {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.11);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

.legacy-page .managed-page-aside {
  position: sticky;
  top: 112px;
  padding: 24px;
}

.legacy-page .managed-page-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e8f7f5;
  border: 1px solid rgba(15, 118, 110, 0.13);
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.legacy-page .managed-page-aside h2 {
  margin: 0;
  color: #123b67;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.legacy-page .managed-page-aside p {
  margin-top: 10px;
  color: #607083;
  font-size: 15px;
  line-height: 1.6;
}

.legacy-page .managed-page-meta {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 76, 129, 0.10);
}

.legacy-page .managed-page-meta span {
  color: #7a8b9d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.legacy-page .managed-page-meta strong {
  color: #1b79d1;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.legacy-page .managed-page-card {
  padding: 30px;
  overflow: hidden;
}

.legacy-page .managed-rich-text,
.legacy-page .managed-rich-text * {
  box-sizing: border-box;
}

.legacy-page .managed-rich-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #344457;
  font-size: 16px;
  line-height: 1.75;
}

.legacy-page .managed-rich-text :where(section, article, aside, div, figure, table, pre, blockquote) {
  min-width: 0;
  max-width: 100%;
}

.legacy-page .managed-rich-text :where(section, article, aside, div) {
  display: block;
}

.legacy-page .managed-rich-text :where(p, li, td, th, h1, h2, h3, h4, h5, h6, figcaption, blockquote, a, strong, span) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legacy-page .managed-rich-text :where(h1, h2, h3, h4, h5, h6) {
  margin: 24px 0 12px;
  color: #123b67;
  line-height: 1.25;
  letter-spacing: 0;
}

.legacy-page .managed-rich-text :where(h1, h2):first-child,
.legacy-page .managed-rich-text :where(h3, h4, h5, h6):first-child,
.legacy-page .managed-rich-text p:first-child {
  margin-top: 0;
}

.legacy-page .managed-rich-text p,
.legacy-page .managed-rich-text li {
  color: #344457;
  font-size: 16px;
  line-height: 1.75;
}

.legacy-page .managed-rich-text p + p,
.legacy-page .managed-rich-text :where(ul, ol, blockquote, figure, table, pre) + :where(p, ul, ol, blockquote, figure, table, pre, h2, h3, h4) {
  margin-top: 16px;
}

.legacy-page .managed-rich-text :where(ul, ol) {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 1.35rem;
}

.legacy-page .managed-rich-text ul { list-style: disc; }
.legacy-page .managed-rich-text ol { list-style: decimal; }

.legacy-page .managed-rich-text a {
  color: #1b79d1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-page .managed-rich-text :where(img, video, canvas, svg, iframe, embed, object) {
  display: block;
  max-width: 100% !important;
}

.legacy-page .managed-rich-text :where(img, video, canvas, svg) {
  height: auto !important;
}

.legacy-page .managed-rich-text img {
  width: auto !important;
  max-height: 420px;
  margin: 14px auto;
  object-fit: contain;
  border-radius: 8px;
}

.legacy-page .managed-rich-text p:has(> img:only-child),
.legacy-page .managed-rich-text figure {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid rgba(15, 76, 129, 0.10);
  border-radius: 8px;
}

.legacy-page .managed-rich-text :where(iframe, embed, object) {
  width: 100% !important;
  min-height: 300px;
  border: 0;
  border-radius: 8px;
  background: #eef4fb;
}

.legacy-page .managed-rich-text table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
}

.legacy-page .managed-rich-text :where(th, td) {
  min-width: 130px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  text-align: left;
  vertical-align: top;
}

.legacy-page .managed-rich-text th {
  background: #eef6ff;
  color: #0f4c81;
}

.legacy-page .managed-rich-text pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  background: #0f2238;
  color: #eef6ff;
  border-radius: 8px;
}

.legacy-page .managed-rich-text blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  background: #f7fbff;
  border-left: 4px solid #1b79d1;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .legacy-page .managed-page-layout {
    grid-template-columns: 1fr;
  }

  .legacy-page .managed-page-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .legacy-page .managed-page-card,
  .legacy-page .managed-page-aside {
    padding: 20px;
  }

  .legacy-page .managed-rich-text img {
    max-height: 300px;
  }

  .legacy-page .managed-rich-text :where(iframe, embed, object) {
    min-height: 220px;
  }
  /* CKEditor image grid */
.legacy-page .managed-rich-text .image.image_resized {
    display: inline-block;
    vertical-align: top;
    width: 48% !important;
    margin: 0 1%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.legacy-page .managed-rich-text .image.image_resized img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    margin: 0;
}

@media (max-width: 768px) {
    .legacy-page .managed-rich-text .image.image_resized {
        width: 100% !important;
        margin: 10px 0;
    }

}
  .managed-rich-text p {
    text-align: center;
}

.managed-rich-text p img {
    display: inline-block !important;
    vertical-align: middle;
}
}

