:root {
  --brand: #3f3d99;
  --ink: #1f2948;
  --muted: #5e6788;
  --line: #d8ddee;
  --surface: #ffffff;
  --soft: #f3f5fb;
  --accent: #ff6a13;
  --page: #fbfdfc;
  --nav: rgba(255,255,255,.92);
  --nav-link: #2b345a;
  --nav-active: #eaeeff;
  --overlay: #f6f6f6;
  --overlay-line: #ececec;
  --section-alt: #ececef;
  --card-border: #f6f6f7;
  --table-head: #f4f6ff;
  --footer: #323086;
  --sidebar: #2e2c7e;
  --shadow: rgba(13, 29, 26, .09);
}

:root[data-theme="dark"] {
  --brand: #8f92ff;
  --ink: #f4f7ff;
  --muted: #bac3e7;
  --line: #323c67;
  --surface: #171d35;
  --soft: #11182c;
  --accent: #ff7a26;
  --page: #0b1020;
  --nav: rgba(11,16,32,.94);
  --nav-link: #d7defc;
  --nav-active: #252f5d;
  --overlay: #151b31;
  --overlay-line: #30395e;
  --section-alt: #10172b;
  --card-border: #222b4d;
  --table-head: #20294b;
  --footer: #080d1c;
  --sidebar: #11183a;
  --shadow: rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; background: var(--brand); color: white; display: grid; place-items: center; font-weight: 900; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { padding: 8px 10px; border-radius: 6px; color: var(--nav-link); font-size: 14px; }
.nav-links a:hover, .nav-links a.active { background: var(--nav-active); color: var(--brand); }
.bottom-nav,
.mobile-more-sheet,
.mobile-more-backdrop {
  display: none;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0;
  font-weight: 750;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
}
.toast {
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 15px;
  box-shadow: 0 18px 42px var(--shadow);
  font-weight: 750;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: var(--accent); }

.hero-wrap {
  position: relative;
  margin-bottom: 126px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: end;
  color: white;
  background:
    linear-gradient(90deg, rgba(22,28,76,.88), rgba(22,28,76,.52), rgba(22,28,76,.14)),
    url("https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1800&q=80") center/cover;
  overflow: visible;
}
.hero-inner { padding: 86px 0 140px; max-width: 780px; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.hero h1 { margin: 12px 0 16px; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: 0; }
.hero p { font-size: 19px; max-width: 680px; color: rgba(255,255,255,.9); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-nav { display: flex; gap: 10px; margin-top: 24px; }
.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(255,255,255,.26); }
.hero-animate { animation: heroFade .6s ease; }

@keyframes heroFade {
  from { opacity: .8; transform: scale(1.01); }
  to { opacity: 1; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 52px));
  bottom: -96px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 34px;
  background: var(--overlay);
  border: 1px solid var(--overlay-line);
  border-radius: 8px;
  padding: 30px 34px;
  box-shadow: 0 10px 26px var(--shadow);
  font-family: "Poppins", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.hero-overlay h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.hero-overlay h4 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}
.hero-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 640px;
}
.principal-block {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
}
.principal-photo {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
  background: #ebedf1;
}
.principal-block .btn {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  border-radius: 999px;
  padding: 9px 20px;
  background: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.hero-stats {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}
.hero-stats div {
  padding: 8px 14px 8px 22px;
  border-left: 1px solid var(--line);
}
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats strong {
  display: block;
  font-size: 40px;
  color: var(--ink);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 500;
}
.btn {
  border: 1px solid transparent;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 750;
  cursor: pointer;
}
.btn.secondary { background: white; color: var(--brand); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.danger { background: #b91c1c; }

section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}
.card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; }
.card p { color: var(--muted); margin: 0; }
.soft { background: var(--soft); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.photo-panel {
  min-height: 360px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.list { display: grid; gap: 12px; }
.row { display: flex; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.date { min-width: 72px; text-align: center; border-radius: 7px; background: #eaeeff; color: var(--brand); padding: 8px; font-weight: 800; }
.footer { padding: 34px 0; color: white; background: var(--footer); }

.page-hero { padding: 54px 0 34px; background: var(--brand); color: white; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 54px); }
.prose { white-space: pre-line; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 750; background: #eaeeff; color: var(--brand); }

.majors-showcase {
  background: var(--section-alt);
  padding: 64px 0 72px;
}
.majors-head {
  text-align: center;
  margin-bottom: 34px;
}
.majors-head p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff6a13;
  border-bottom: 2px solid #ff6a13;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 14px;
  padding-bottom: 6px;
}
.majors-head p::before {
  content: "◫";
  font-size: 15px;
}
.majors-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(46px, 6vw, 62px);
  line-height: 1;
  color: #ff6a13;
}
.majors-head span {
  color: var(--muted);
  font-size: 31px;
}
.majors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.major-card {
  background: var(--surface);
  border-radius: 40px;
  border: 8px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,.03);
}
.major-image-wrap {
  padding: 14px 14px 0;
}
.major-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 28px;
  object-fit: cover;
}
.major-body {
  border-top: 1px solid var(--line);
  margin: 12px 14px 0;
  padding: 14px 4px 18px;
}
.major-body h3 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  min-height: 74px;
}
.major-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6a13;
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  letter-spacing: .04em;
  font-weight: 700;
  font-size: 12px;
  transition: color .25s ease, background-color .25s ease, transform .2s ease;
}
.major-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.major-btn:hover,
.major-btn:focus-visible {
  background: #101f52;
  color: #ffffff;
  transform: translateY(-1px);
}
.major-btn:hover::before,
.major-btn:focus-visible::before {
  animation: circleOut .62s ease-out forwards;
}
.major-btn:focus-visible {
  outline: 2px solid #102768;
  outline-offset: 2px;
}
.majors-more-wrap {
  text-align: right;
  margin-top: 28px;
}
.majors-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6a13;
  color: white;
  border-radius: 999px;
  padding: 14px 18px;
  letter-spacing: .04em;
  font-weight: 700;
  font-size: 13px;
}
.quick-access {
  position: relative;
  overflow: hidden;
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 12% 22%, rgba(58,199,182,.16), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(111,118,246,.14), transparent 32%),
    linear-gradient(135deg, #f5ffff 0%, #f8fbff 48%, #fff5fb 100%);
}
:root[data-theme="dark"] .quick-access {
  background:
    radial-gradient(circle at 12% 22%, rgba(58,199,182,.18), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(111,118,246,.22), transparent 34%),
    linear-gradient(135deg, #0c1424 0%, #11182c 52%, #18112a 100%);
}
.quick-palette {
  display: flex;
  gap: 8px;
  margin-bottom: 42px;
}
.quick-palette span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(23, 31, 61, .16);
}
.quick-head {
  text-align: center;
  margin-bottom: 34px;
}
.quick-head p {
  margin: 0;
  color: var(--accent);
  letter-spacing: .18em;
  font-weight: 850;
  font-size: 14px;
}
.quick-head h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}
.quick-head span {
  color: var(--muted);
  font-size: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 850px;
  margin: 0 auto;
}
.quick-card {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 28px 20px;
  border-radius: 34px;
  color: white;
  text-align: center;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.08), 0 24px 42px rgba(24, 40, 80, .16);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-7px);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.1), 0 30px 52px rgba(24, 40, 80, .22);
  filter: saturate(1.08);
}
.quick-card.aqua { background: linear-gradient(145deg, #47d3c8, #1eb6b5); }
.quick-card.violet { background: linear-gradient(145deg, #c66bf0, #965be7); }
.quick-card.gold { background: linear-gradient(145deg, #ffd35d, #ffb735); }
.quick-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: white;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.16));
}
.quick-icon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-card strong {
  max-width: 190px;
  color: white;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: 0;
}
.agenda-calendar-section {
  background: var(--page);
}
.calendar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px var(--shadow);
}
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.calendar-top p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.calendar-top h3 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  color: var(--ink);
  text-transform: capitalize;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.calendar-weekdays {
  margin-bottom: 10px;
}
.calendar-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.calendar-cell {
  position: relative;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: default;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.calendar-cell:disabled {
  opacity: .72;
}
.calendar-cell.muted {
  border-color: transparent;
  background: transparent;
}
.calendar-cell.has-agenda {
  cursor: pointer;
  border-color: rgba(255, 106, 19, .34);
  background: linear-gradient(145deg, rgba(255, 106, 19, .14), rgba(63, 61, 153, .08));
}
.calendar-cell.has-agenda:hover,
.calendar-cell.has-agenda:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(255, 106, 19, .18);
}
.calendar-cell.today {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}
.calendar-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-weight: 850;
}
.calendar-cell.has-agenda .calendar-day {
  background: var(--accent);
  color: white;
}
.calendar-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 850;
}
.agenda-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.agenda-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.agenda-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, .54);
  backdrop-filter: blur(4px);
}
.agenda-modal-box {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}
.agenda-modal.open .agenda-modal-box {
  transform: translateY(0) scale(1);
}
.agenda-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.agenda-modal-date {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.agenda-modal-box h3 {
  margin: 0 48px 18px 0;
  font-size: 28px;
  line-height: 1.1;
}
.agenda-modal-list {
  display: grid;
  gap: 12px;
}
.agenda-modal-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 16px;
}
.agenda-modal-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
}
.agenda-modal-item p {
  margin: 6px 0;
  color: var(--muted);
}
.testimonials-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 106, 19, .12), transparent 30%),
    linear-gradient(180deg, var(--page), var(--soft));
}
.testimonial-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.testimonial-search {
  width: min(280px, 100%);
}
.testimonial-nav {
  display: flex;
  gap: 10px;
}
.testimonial-arrow {
  border-color: var(--line);
  background: var(--surface);
  color: var(--brand);
}
.testimonial-arrow:hover {
  background: var(--brand);
  color: white;
}
.testimonial-arrow:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}
.testimonial-carousel {
  overflow: hidden;
  min-height: 300px;
}
.testimonial-track {
  display: flex;
  gap: 18px;
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.testimonial-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 18px 36px var(--shadow);
}
.testimonial-card[hidden] {
  display: none;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.testimonial-quote {
  color: var(--accent);
  font-size: 58px;
  font-weight: 900;
  line-height: .7;
}
.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.testimonial-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--brand);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.testimonial-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--accent);
}
.testimonial-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img,
.testimonial-author span {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}
.testimonial-author span {
  display: grid;
  place-items: center;
  background: var(--nav-active);
  color: var(--brand);
  font-weight: 900;
}
.testimonial-author h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}
.testimonial-author small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.testimonial-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.testimonial-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.testimonial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, .54);
  backdrop-filter: blur(4px);
}
.testimonial-modal-box {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}
.testimonial-modal.open .testimonial-modal-box {
  transform: translateY(0) scale(1);
}
.testimonial-modal-box h3 {
  margin: 0 48px 18px 0;
  font-size: 28px;
  line-height: 1.1;
}
.testimonial-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 70;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 32px rgba(255, 106, 19, .28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease, background-color .2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #101f52;
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teachers-showcase .major-image {
  aspect-ratio: 4 / 3;
}
.teacher-card .major-body h3 {
  min-height: auto;
  margin-bottom: 8px;
}
.teacher-meta {
  min-height: 38px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

@keyframes circleOut {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .75;
  }
  100% {
    transform: translate(-50%, -50%) scale(22);
    opacity: 0;
  }
}
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 750; font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }

.admin-body { background: var(--soft); }
.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}
.admin-backdrop {
  display: none;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar);
  color: white;
  padding: 20px;
  box-shadow: none;
  transform: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sidebar.open { transform: translateX(0); }
.sidebar .brand { margin-bottom: 24px; }
.menu { display: grid; gap: 18px; }
.menu-group {
  display: grid;
  gap: 6px;
}
.menu-group-title {
  margin: 0 0 2px;
  padding: 0 10px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 0;
  color: rgba(255,255,255,.82);
  background: transparent;
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
}
.menu button.active, .menu button:hover { color: white; background: rgba(255,255,255,.12); }
.menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: white;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.menu-badge i {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .2);
}
.menu-badge b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(239, 68, 68, .22);
  color: #fecaca;
}
.main { padding: 24px; min-width: 0; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -24px -24px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--nav);
  backdrop-filter: blur(14px);
}
.admin-topbar strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}
.admin-topbar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.hamburger-btn:hover,
.hamburger-btn[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand);
}
.hamburger-btn[aria-expanded="true"] { transform: rotate(90deg); }
.hamburger-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { background: var(--table-head); color: var(--ink); }
td { color: var(--ink); }
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 18, 16, .5);
  padding: 20px;
  z-index: 80;
}
.modal.open { display: flex; }
.modal-box { width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 8px; padding: 20px; }
.detail-view {
  display: grid;
  gap: 18px;
}
.detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.detail-avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--nav-active);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 900;
}
.detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-head h3 {
  margin: 0 0 4px;
}
.detail-head p {
  margin: 0 0 8px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-grid > div,
.detail-message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--soft);
}
.detail-grid strong,
.detail-message strong {
  display: block;
  margin-bottom: 8px;
}
.detail-grid p,
.detail-message p {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}
.detail-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.empty { color: var(--muted); padding: 18px; }

@media (max-width: 860px) {
  body { padding-bottom: 96px; }
  .nav {
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
  }
  .brand { min-width: 0; }
  .brand span:last-child {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-mark { width: 38px; height: 38px; }
  .nav-links {
    margin-left: auto;
    justify-content: flex-end;
  }
  .nav-links a { display: none; }
  .nav-links .theme-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
  }
  .footer { display: none; }
  .toast-stack {
    right: 12px;
    bottom: 104px;
    width: calc(100% - 24px);
  }
  .back-to-top {
    right: 18px;
    bottom: 106px;
    width: 48px;
    height: 48px;
  }
  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 90;
    width: min(420px, calc(100% - 24px));
    min-height: 74px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: #151321;
    box-shadow: 0 18px 36px rgba(7, 8, 24, .34);
    overflow: hidden;
  }
  :root[data-theme="dark"] .bottom-nav {
    background: #0e1221;
    border-color: rgba(143,146,255,.18);
    box-shadow: 0 18px 42px rgba(0,0,0,.58);
  }
  .bottom-nav-item {
    position: relative;
    min-width: 52px;
    flex: 0 1 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 18px;
    padding: 0 12px;
    background: transparent;
    color: #8f89ad;
    cursor: pointer;
    transition: min-width .22s ease, color .22s ease, background-color .22s ease;
  }
  .bottom-nav-item::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6873ff, #9a7cff);
    opacity: 0;
    transform: translateX(-50%);
    transition: width .24s ease, opacity .2s ease;
  }
  .bottom-nav-item svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
  }
  .bottom-nav-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: max-width .24s ease, opacity .18s ease;
  }
  .bottom-nav-item:hover,
  .bottom-nav-item:focus-visible,
  .bottom-nav-item.active {
    min-width: 106px;
    flex-basis: auto;
    max-width: 162px;
    color: #7f86ff;
    background: rgba(127,134,255,.12);
  }
  .bottom-nav-item:hover::before,
  .bottom-nav-item:focus-visible::before,
  .bottom-nav-item.active::before {
    width: 70%;
    opacity: 1;
  }
  .bottom-nav-item:hover svg,
  .bottom-nav-item:focus-visible svg,
  .bottom-nav-item.active svg {
    transform: scale(1.22);
  }
  .bottom-nav-item:hover .bottom-nav-label,
  .bottom-nav-item:focus-visible .bottom-nav-label,
  .bottom-nav-item.active .bottom-nav-label {
    max-width: 132px;
    opacity: 1;
  }
  .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 88;
    display: block;
    background: rgba(5, 8, 18, .46);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .24s ease;
  }
  .mobile-more-backdrop.open { opacity: 1; }
  .mobile-more-sheet {
    position: fixed;
    left: 50%;
    bottom: max(104px, calc(92px + env(safe-area-inset-bottom)));
    z-index: 89;
    width: min(420px, calc(100% - 24px));
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 22px 46px var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 24px);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  }
  .mobile-more-sheet.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .mobile-more-handle {
    width: 42px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: var(--line);
  }
  .mobile-more-list {
    display: grid;
    gap: 6px;
  }
  .mobile-more-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    color: var(--ink);
    font-weight: 800;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
  }
  .mobile-more-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-more-link:hover,
  .mobile-more-link:focus-visible,
  .mobile-more-link.active {
    background: var(--nav-active);
    color: var(--brand);
    transform: translateX(2px);
  }
  @media (max-width: 380px) {
    .bottom-nav {
      width: calc(100% - 16px);
      gap: 2px;
      padding: 8px;
    }
    .bottom-nav-item {
      min-width: 38px;
      flex-basis: 38px;
      height: 50px;
      gap: 6px;
      padding: 0 6px;
    }
    .bottom-nav-item svg {
      width: 24px;
      height: 24px;
    }
    .bottom-nav-item:hover,
    .bottom-nav-item:focus-visible,
    .bottom-nav-item.active {
      min-width: 82px;
      max-width: 112px;
    }
    .bottom-nav-label {
      max-width: 0;
      font-size: 12px;
      text-overflow: ellipsis;
    }
    .bottom-nav-item:hover .bottom-nav-label,
    .bottom-nav-item:focus-visible .bottom-nav-label,
    .bottom-nav-item.active .bottom-nav-label {
      max-width: 58px;
    }
  }
  .grid, .grid.two, .grid.four, .split { grid-template-columns: 1fr; }
  .quick-access { padding: 56px 0 66px; }
  .quick-palette {
    justify-content: center;
    margin-bottom: 28px;
  }
  .quick-head h2 { font-size: 38px; }
  .quick-head span { font-size: 15px; }
  .quick-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 280px;
  }
  .quick-card {
    min-height: 188px;
    border-radius: 30px;
  }
  .quick-icon {
    width: 64px;
    height: 64px;
  }
  .quick-icon svg {
    width: 62px;
    height: 62px;
  }
  .quick-card strong { font-size: 19px; }
  .calendar-card {
    padding: 16px;
    border-radius: 14px;
  }
  .calendar-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-top .btn {
    width: 100%;
    justify-content: center;
  }
  .calendar-weekdays,
  .calendar-grid {
    gap: 6px;
  }
  .calendar-weekdays span {
    font-size: 10px;
  }
  .calendar-cell {
    min-height: 54px;
    border-radius: 10px;
    padding: 7px;
  }
  .calendar-day {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .calendar-dot {
    right: 5px;
    bottom: 5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .agenda-modal {
    padding: 14px;
  }
  .agenda-modal-box {
    padding: 20px;
    border-radius: 16px;
  }
  .testimonial-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .testimonial-search {
    width: 100%;
  }
  .testimonial-nav {
    justify-content: flex-end;
  }
  .testimonial-carousel {
    min-height: 260px;
  }
  .testimonial-card {
    flex-basis: 100%;
    min-height: 240px;
  }
  .testimonial-modal {
    padding: 14px;
  }
  .testimonial-modal-box {
    padding: 20px;
    border-radius: 16px;
  }
  .majors-grid { grid-template-columns: 1fr; }
  .majors-head h2 { font-size: 42px; }
  .majors-head span { font-size: 23px; }
  .majors-more-wrap { text-align: center; }
  .hero-wrap { margin-bottom: 20px; }
  .hero { min-height: 72vh; }
  .hero-inner { padding: 70px 0 36px; }
  .hero-overlay {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 14px;
    grid-template-columns: 1fr;
    bottom: auto;
  }
  .principal-block { grid-template-columns: 1fr; }
  .principal-photo { width: 108px; height: 108px; }
  .hero-overlay { padding: 20px; gap: 18px; }
  .hero-overlay h3 { font-size: 24px; margin-bottom: 10px; }
  .hero-overlay h4 { font-size: 18px; }
  .hero-overlay p { font-size: 15px; }
  .principal-block .btn { font-size: 14px; }
  .hero-stats strong { font-size: 34px; }
  .hero-stats span { font-size: 12px; letter-spacing: .12em; }
  .admin-body { padding-bottom: 0; }
  .admin-layout { display: block; }
  .admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 78;
    display: block;
    background: rgba(5, 8, 18, .48);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .24s ease;
  }
  .admin-backdrop.open { opacity: 1; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 79;
    width: min(310px, calc(100% - 42px));
    height: 100vh;
    box-shadow: 24px 0 48px rgba(0,0,0,.28);
    transform: translateX(-105%);
  }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 16px; }
  .admin-topbar {
    margin: -16px -16px 18px;
    padding: 14px 16px;
  }
  .hamburger-btn { display: grid; }
}
