:root {
  --blue-900: #083f88;
  --blue-800: #0f57b7;
  --blue-700: #1b67cb;
  --blue-50: #f4f8ff;
  --ink: #2b3a4c;
  --muted: #6b7a8c;
  --line: #e5edf7;
  --panel: #ffffff;
  --bg: #f3f6fb;
  --success: #10b981;
  --shadow: 0 20px 50px rgba(21, 43, 88, 0.10);

  --section-tint: rgba(15, 87, 183, 0.06);
  --section-tint-2: rgba(185, 28, 28, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", sans-serif;
  background: #eef2f7;
  color: var(--ink);
  line-height: 1.7;
}

a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.mini-topbar {
  background: #f2f6fd;
  border-bottom: 1px solid #dfe8f7;
  position: sticky;
  top: 0;
  z-index: 25;
}

.mini-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #2f4a6a;
}

.mini-topbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mini-topbar__item strong { color: #b91c1c; }
.mini-topbar__sep { opacity: .55; }

.topbar, .sub-header {
  background: #f2f3f6;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 36px;
  z-index: 20;
}
.topbar__inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
}

.topbar__inner .logo { grid-column: 1; grid-row: 1; justify-self: start; }
.topbar__inner .nav { grid-column: 1; grid-row: 2; justify-self: stretch; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
}

.logo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.logo__title strong {
  display: inline-block;
  color: #0b2f63;
  font-weight: 900;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 10em;
}

.logo__title .site-suffix {
  flex: 0 0 auto;
}

.logo .site-suffix {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 0;
  background: #0a5fb8;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .08em;
  margin-top: 0;
  margin-left: 14px;
}

.logo strong { display: block; color: #0b2f63; font-size: 18px; margin-bottom: 0; }
.logo span { display: block; color: #5b6c82; font-size: 12px; margin-top: 2px; }

/* Ensure the school name never gets visually "lost" inside the flex title row on some mobile browsers. */
.logo__title strong {
  display: inline-block !important;
  color: #0b2f63 !important;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
}

.nav {
  background: linear-gradient(180deg, #0a5fb8, #0b4fa3);
  border-top: 1px solid rgba(255,255,255,.20);
  border-bottom: 1px solid rgba(0,0,0,.10);
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  min-height: 50px;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.nav__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.nav a,
.nav__btn {
  text-decoration: none;
  font-weight: 900;
  color: rgba(255,255,255,.96);
  position: relative;
  padding: 0 22px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  letter-spacing: .08em;
  border-right: 1px solid rgba(255,255,255,.16);
  background: transparent;
}

.nav__btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav a:last-child,
.nav__btn:last-child { border-right: none; }

.nav a.is-active,
.nav a:hover,
.nav__btn:hover {
  color: #fff;
  background: rgba(0,0,0,.14);
}

.nav a.is-active::after,
.nav a:hover::after { content: none; }
.hero {
  background: #fff;
  color: var(--ink);
  padding: 0 0 46px;
  position: relative;
  overflow: hidden;
}

.hero--banner .eyebrow {
  color: #0f57b7;
}

.hero--banner h1 {
  color: #0b2f63;
}

.hero--banner .hero__text {
  color: #4b5b6e;
}

.page-hero { background: transparent; }

.banner-stage {
  width: 100%;
  height: 460px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c3f88 0%, #1f69d1 58%, #79aef8 100%);
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px 0 0;
  text-align: center;
}
.eyebrow,
.section__label {
  margin: 0 0 10px;
  color: #8cb8ff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 12px; }
.hero__text { max-width: 760px; color: var(--muted); font-size: 16px; }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn--primary { background: linear-gradient(135deg, #0d4faf, #1f77ea); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--outline { background: transparent; color: var(--blue-900); border: 1px solid #c7d7f1; }
.btn--outline:hover { border-color: #9bb7e6; background: rgba(15, 87, 183, 0.06); }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--success { background: var(--success); color: #fff; }
.hero__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  justify-content: center;
}
.hero__meta li {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5ff, #ffffff);
  color: #1b3b66;
  border: 1px solid rgba(15, 87, 183, 0.14);
  font-size: 14px;
}

.banner-slider {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.banner-slide.is-active { opacity: 1; }

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}

.banner-dot.is-active { background: #fff; }

.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.22));
  pointer-events: none;
}

.hero__placeholder,
.media-block,
.major-card__media,
.qr-placeholder {
  border: 1px dashed rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
  border-radius: 28px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-weight: 700;
}

.managed-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}


.quick-actions {
  background: linear-gradient(180deg, #fff, rgba(15, 87, 183, 0.03));
  border-bottom: 1px solid var(--line);
}
.quick-actions__inner {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0;
}

.notice-strip {
  background: linear-gradient(90deg, #ffffff, rgba(185, 28, 28, 0.04));
  border-bottom: 1px solid var(--line);
}
.notice-strip__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.notice-strip__title {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe6e6;
  color: #c81e1e;
  font-weight: 900;
  letter-spacing: .06em;
}

.notice-strip__body {
  color: #344960;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}

.notice-strip__marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.section { padding: 72px 0; }
.section:nth-of-type(odd) { background-color: transparent; }
.section:nth-of-type(even) { background-color: transparent; }
.section--intro { background: linear-gradient(180deg, #ffffff, rgba(15, 87, 183, 0.03)); }
.section--panel { background: linear-gradient(180deg, var(--section-tint), #f8fbff); }

.admissions-hub {
  margin-top: 36px;
}

.admissions-motto {
  height: 112px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(6, 24, 58, 0.55), rgba(6, 24, 58, 0.30));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  color: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .18em;
}

.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.admissions-panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 75, 170, 0.08);
  overflow: hidden;
}

.admissions-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admissions-panel__head h3 {
  margin: 0;
  font-size: 18px;
  color: #0b2f63;
  position: relative;
  padding-left: 10px;
}

.admissions-title {
  text-decoration: none;
  color: inherit;
}

.admissions-title:hover { color: var(--blue-700); }

.admissions-panel__head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--blue-700);
}

.admissions-more {
  text-decoration: none;
  font-weight: 800;
  color: #6b7a8c;
}

.admissions-more:hover { color: var(--blue-700); }

.admissions-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.admissions-list li {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px dashed rgba(15, 87, 183, 0.14);
}

.admissions-list li:last-child { border-bottom: none; }

.admissions-list a {
  text-decoration: none;
  color: #1b4a86;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admissions-list a:hover { color: var(--blue-700); }


.admissions-plan {
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 75, 170, 0.08);
  background: linear-gradient(135deg, #0d4faf, #1f77ea);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 100%;
}

.admissions-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
}

.admissions-plan span {
  position: relative;
  z-index: 1;
  font-size: 46px;
  letter-spacing: .2em;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.section-head { margin-bottom: 28px; }

.section-head--tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head__left { min-width: 0; }
.section-head__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; margin-right: clamp(0px, 3vw, 28px); }

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 87, 183, 0.08);
  border: 1px solid rgba(11, 75, 170, 0.10);
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #0b2f63;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
}

.tab.is-active { background: linear-gradient(180deg, #0a5fb8, #0b4fa3); color: #fff; }

.more-link { text-decoration: none; font-weight: 900; color: #0a5fb8; letter-spacing: .08em; }
.more-link:hover { text-decoration: underline; }

.career {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.career-feature {
  background: #fff;
  border: 1px solid rgba(11, 75, 170, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.career-feature__media { min-height: 320px; background: #eaf3ff; position: relative; overflow: hidden; }
.career-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.career-feature__body { padding: 16px 18px 18px; }
.career-feature__title { margin: 0; color: #0b2f63; font-weight: 900; font-size: 18px; }
.career-feature__desc { margin: 10px 0 0; color: rgba(27, 43, 64, .70); font-weight: 700; line-height: 1.6; }

.career-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(11, 75, 170, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.career-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(11, 75, 170, 0.08);
}

.career-list li:last-child { border-bottom: none; }

.career-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(15, 87, 183, 0.10);
  color: #0b2f63;
  font-weight: 900;
}

.career-link { color: #0b2f63; text-decoration: none; font-weight: 900; line-height: 1.35; }
.career-link:hover { text-decoration: underline; }
.career-sub { color: rgba(27, 43, 64, .68); font-weight: 700; }

@media (max-width: 900px) {
  .career { grid-template-columns: 1fr; }
}

.section h2,
.section h1 { margin: 0 0 16px; font-size: 34px; line-height: 1.2; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.intro-more { margin-top: 16px; }
.intro-more .btn { width: auto; }
.media-block {
  background: #f8fbff;
  border: 1px dashed #b7ccee;
  color: #4971b9;
  min-height: 320px;
}
.media-block--tall { min-height: 420px; }
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card,
.major-card,
.form-card,
.contact-panel,
.record-card {
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(11, 75, 170, 0.06);
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn--danger {
  border-color: rgba(185, 28, 28, 0.28);
  color: #9f1239;
}

.btn--danger:hover {
  border-color: rgba(185, 28, 28, 0.45);
  background: rgba(185, 28, 28, 0.06);
}

.article-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 75, 170, 0.08);
  padding: 26px;
}

.article-card h1 {
  text-align: center;
  margin: 8px 0 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.article-back {
  text-decoration: none;
  font-weight: 900;
  color: var(--blue-700);
}

.article-body {
  margin-top: 14px;
  color: #2e3b4c;
  font-size: 16px;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

/* About page: center content */
#aboutBody {
  text-align: center;
}

#aboutBody p {
  text-align: left;
  max-width: 760px;
  margin: 0 auto 14px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.article-body th,
.article-body td {
  border: 1px solid #d7e2f2;
  padding: 10px 12px;
}

.article-body { overflow-wrap: anywhere; }

.article-card { overflow: hidden; }

.articles-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.articles-item {
  display: block;
  text-decoration: none;
  font-weight: 800;
  color: #1b4a86;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7e2f2;
  background: #fff;
}

.articles-item:hover {
  border-color: rgba(15, 87, 183, 0.45);
  box-shadow: 0 18px 40px rgba(21, 43, 88, 0.08);
}

.card:hover,
.major-card:hover,
.contact-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(21, 43, 88, 0.14);
}
.card,
.major-card,
.contact-panel { transition: transform .25s ease, box-shadow .25s ease; }
.card h3,
.major-card h3 { margin: 0 0 10px; font-size: 22px; }
.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.major-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 75, 170, 0.10);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 18px 18px;
  min-height: 92px;
}

.major-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(15, 87, 183, 0.08), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(185, 28, 28, 0.05), transparent 45%);
  pointer-events: none;
}

.major-tile__icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 16px 30px rgba(8, 63, 136, 0.18);
}

.major-tile__body { position: relative; z-index: 1; min-width: 0; }

.major-tile__title {
  color: #0b2f63;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 18px;
  line-height: 1.25;
}

.major-tile__desc {
  margin-top: 6px;
  color: rgba(27, 43, 64, .72);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.major-tile__chev {
  position: relative;
  z-index: 1;
  color: rgba(11, 47, 99, .45);
  font-weight: 900;
  font-size: 22px;
  justify-self: end;
}

.major-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(21, 43, 88, 0.14);
}

.major-tile { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.major-tile:hover { border-color: rgba(11, 75, 170, 0.20); }
.feature-list { padding-left: 20px; margin: 0; }
.cta-band { background: linear-gradient(135deg, #0d3d84, #1658b2); color: #fff; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.page-main { min-height: calc(100vh - 78px); }

.site-footer {
  background: linear-gradient(180deg, #eaf3ff, #d7e9ff);
  color: #173055;
  border-top: 1px solid rgba(15, 87, 183, 0.14);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 24px;
  padding: 44px 0;
}
.site-footer__name { display: block; color: #24466f; font-size: 18px; margin-bottom: 10px; }
.site-footer__desc { margin: 0; color: rgba(36, 70, 111, .78); }
.site-footer__links { display: grid; gap: 10px; align-content: start; }
.site-footer__links a { text-decoration: none; font-weight: 900; color: #24466f; opacity: .92; }
.site-footer__links a:hover { opacity: 1; }
.site-footer__meta { display: grid; gap: 10px; align-content: start; }
.site-footer__fine { font-size: 12px; color: rgba(23, 48, 85, .62); }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }
.narrow { width: min(980px, calc(100% - 32px)); }
.wide-contact { width: min(1040px, calc(100% - 32px)); }
.admin-wide { width: min(1480px, calc(100% - 32px)); }
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}
.success-message { margin-top: 14px; color: #0b9a59; font-weight: 800; }
.floating-tools {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.float-panel {
  display: grid;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #244bd7;
  box-shadow: 0 20px 50px rgba(21, 43, 88, 0.22);
}

.float-panel.is-collapsed { display: none; }

.float-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.float-icon + .float-icon {
  border-top: 1px solid rgba(255,255,255,0.16);
}

.float-collapse svg {
  transition: transform .25s ease;
}

.float-panel.is-collapsed .float-collapse svg {
  transform: rotate(180deg);
}

.float-toggle {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #244bd7;
  color: #fff;
  box-shadow: 0 20px 50px rgba(21, 43, 88, 0.22);
  display: grid;
  place-items: center;
  justify-self: end;
}

.float-toggle:hover { background: #1f43c2; }

.float-icon:hover {
  background: rgba(255,255,255,0.10);
}

.qr-modal[hidden] { display: none; }
.qr-modal { position: fixed; inset: 0; z-index: 40; }
.qr-modal__mask { position: absolute; inset: 0; background: rgba(5,18,44,.55); }
.qr-modal__panel {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.qr-modal__close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
}
.qr-placeholder {
  min-height: 260px;
  background: #edf4ff;
  border: 1px dashed #b7ccee;
  color: #4971b9;
  margin: 18px 0 14px;
}
.contact-grid { display: grid; gap: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-link { color: inherit; text-decoration: none; font-weight: 800; }
.contact-link:hover { text-decoration: underline; }
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.icon-box--green { background: #dff7eb; color: #10b981; }
.icon-box--blue { background: #e6efff; color: #2563eb; }
.icon-box--gold { background: #fff4da; color: #f59e0b; }
.address-line { font-size: 20px; font-weight: 700; }
.contact-panel--tip { background: #eef5ff; }
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 75, 170, 0.08);
  padding: 14px;
}

.admin-nav__title {
  font-weight: 900;
  color: #0b2f63;
  margin-bottom: 10px;
  letter-spacing: .08em;
}

.admin-nav a {
  display: block;
  text-decoration: none;
  font-weight: 800;
  color: #35506a;
  padding: 10px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.admin-nav a:hover {
  background: rgba(15, 87, 183, 0.08);
  color: var(--blue-700);
}

.admin-major-item {
  width: 100%;
  text-align: left;
  border: 1px solid #d7e2f2;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  color: #0b2f63;
  cursor: pointer;
  margin-bottom: 10px;
}

.admin-major-item.is-active {
  border-color: rgba(15, 87, 183, 0.45);
  box-shadow: 0 18px 40px rgba(21, 43, 88, 0.10);
}

.admin-layout { display: grid; gap: 20px; }

.admin-layout--articles .form-card { padding: 20px; }

.admin-articles-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 18px;
  align-items: start;
}

.admin-articles-left {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding-right: 6px;
}

.admin-articles-right {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.admin-articles-right .rt-editor {
  min-height: 360px;
}

.admin-article-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.admin-article-add--select {
  grid-template-columns: 160px 1fr auto;
}

.admin-article-add select {
  width: 100%;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.admin-article-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-article-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 10px;
  align-items: center;
}

.admin-article-item .btn--outline {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.admin-articles-left .form-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-article-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.admin-article-open {
  width: 100%;
  text-align: left;
  border: 1px solid #d7e2f2;
  background: #fff;
  border-radius: 14px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  color: #0b2f63;
  cursor: pointer;
}

.admin-article-item.is-active .admin-article-open {
  border-color: rgba(15, 87, 183, 0.45);
  box-shadow: 0 18px 40px rgba(21, 43, 88, 0.10);
}

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.rt-editor {
  min-height: 260px;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  line-height: 1.8;
}

.rt-editor:focus {
  outline: none;
  border-color: rgba(15, 87, 183, 0.45);
  box-shadow: 0 18px 40px rgba(21, 43, 88, 0.08);
}

.rt-editor ul,
.rt-editor ol {
  margin: 10px 0;
  padding-left: 20px;
}

.rt-editor h1,
.rt-editor h2,
.rt-editor h3 {
  margin: 14px 0 10px;
}
.admin-login {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.hint { color: var(--blue-700); font-weight: 700; }
.records-panel { margin-top: 20px; }
.records-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.records-list { display: grid; gap: 16px; margin-top: 18px; }

.admin-gallery {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-gallery-item {
  border: 1px solid rgba(15, 87, 183, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.admin-gallery-item__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.admin-gallery-item__url {
  padding: 0 12px 12px;
  font-size: 12px;
  color: rgba(27, 103, 203, 0.9);
  word-break: break-all;
}

.banner-stage--inner {
  height: 320px;
}

@media (max-width: 980px) {
  .banner-stage--inner { height: 260px; }
  .hero__inner,
  .split,
  .cta-band__inner,
  .cards--4,
  .site-footer__inner,
  .admissions-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .major-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-stage { height: 320px; }
  .hero h1 { font-size: 32px; }
  .media-block { min-height: 280px; }
  .admissions-plan { min-height: 220px; }
  .admissions-plan span { font-size: 38px; }
  .floating-tools {
    right: 14px;
    bottom: 16px;
    top: auto;
    transform: none;
    display: flex;
  }
  .float-btn {
    width: auto;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 18px;
  }
  .admin-login { grid-template-columns: 1fr; }
  .records-header { display: grid; grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .major-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container,
  .narrow,
  .wide-contact { width: min(1180px, calc(100% - 24px)); }
  .mini-topbar__inner { justify-content: center; text-align: center; }
  .mini-topbar__right { display: none; }
  .major-grid { grid-template-columns: 1fr; }
  .banner-stage { height: 240px; }
  .banner-stage--inner { height: 220px; }
  .hero__copy { padding-top: 24px; }
  .quick-actions__inner { flex-direction: column; align-items: stretch; }
  .topbar__inner {
    min-height: 92px;
    padding: 12px 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
  }

  .logo__title { justify-content: center; }
  .logo__title strong { white-space: normal; min-width: 0; text-align: center; }
  .logo .site-suffix { margin-left: 12px; }
  .topbar__inner .logo { justify-self: center; grid-row: 1; }
  .topbar__inner .nav { justify-self: stretch; grid-row: 2; }
  .logo strong { font-size: 15px; }
  .site-suffix { height: 30px; padding: 0 10px; font-size: 18px; }
  .nav { padding: 0; }
  .nav__inner { width: min(1180px, calc(100% - 24px)); }
  .nav a, .nav__btn { font-size: 14px; padding: 0 12px; height: 44px; }
  .hero { padding: 34px 0 48px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .section h2,
  .section h1 { font-size: 26px; }
  .btn { width: 100%; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__meta li { width: 100%; text-align: center; }
  .float-btn { font-size: 14px; }
  .major-grid { grid-template-columns: repeat(2, 1fr); }
  .major-tile { grid-template-columns: 52px 1fr 18px; padding: 14px 14px; min-height: 84px; }
  .major-tile__icon { width: 52px; height: 52px; }
  .major-tile__title { font-size: 16px; }
  .major-tile__desc { font-size: 12px; }
}
