:root {
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: 0.18s ease;
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --bg2: #ffffffff;
  --sidebar-bg: #ffffff;
  --panel: #ffffff;
  --hero-bg: #f3eef9;
  --panel-soft: #ffffff;
  --panel-soft-2: #fafafa;
  --line: #ececf1;
  --purple: #6f4cf6;
  --purple-dark: #23293a;
  --muted: #6b7285;
  --text: #252c3c;
  --shadow: 0 12px 28px rgba(18, 24, 38, 0.04);
  --overlay: rgba(30, 16, 70, 0.18);
  --rating-bg: #eefaf7;
  --rating-text: #27c7b8;
  --avatar-bg: #f2f2f5;
  --hover-bg: #f7f3ff;
  --hover-line: #d7c8ff;
  --hover-shadow: 0 14px 30px rgba(122, 77, 255, 0.1);
  --teal: #27c7b8;
  --service-line: #d7c8ff;
  --active-blue: #1565d8;
  /* Local mappings */
  --card: #ffffff;
  --border: #ececf1;
  --border-strong: #d7c8ff;
  --chip-active: #f4efff;
  --chip-active-text: #6f4cf6;
}

[data-theme="dark"] {
  --bg: #131018;
  --bg2: #1f1a28;
  --sidebar-bg: #1b1722;
  --panel: #1f1a28;
  --hero-bg: #241d31;
  --panel-soft: #1f1a28;
  --panel-soft-2: #2b2635;
  --line: #3b3447;
  --purple: #9a7cff;
  --purple-dark: #f0e9ff;
  --muted: #b8afc9;
  --text: #efeaf8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --overlay: rgba(0, 0, 0, 0.45);
  --rating-bg: #20312f;
  --rating-text: #46d8ca;
  --avatar-bg: #2b2635;
  --hover-bg: #2a2236;
  --hover-line: #5b4a83;
  --hover-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  --teal: #46d8ca;
  --service-line: #5b4a83;
  --active-blue: #3b82f6;
  /* Local mappings */
  --card: #1f1a28;
  --border: #3b3447;
  --border-strong: #5b4a83;
  --chip-active: #2a2236;
  --chip-active-text: #9a7cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100%;
  transition:
    background var(--ease),
    color var(--ease);
}
.app-shell {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 294px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-top {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4dff, #c26be3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 13px;
  color: var(--purple-dark);
  font-weight: 700;
}

.back-link-arrow {
  font-size: 18px;
  line-height: 1;
}

.back-link:hover {
  color: var(--purple);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 0;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
}

.nav-item:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  box-shadow: var(--hover-shadow);
  transform: translateY(-1px);
}

.nav-item.active {
  background: var(--hover-bg);
  border-color: var(--active-blue);
  box-shadow: var(--hover-shadow);
  color: var(--active-blue);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon {
  color: var(--active-blue);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.single-link {
  justify-content: flex-start;
}

.single-link .nav-left {
  width: 100%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  color: #808998;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item:hover .nav-icon {
  color: var(--purple);
}

.helper-note {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 0 14px;
  line-height: 1.4;
}

.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  min-width: 0;
}

.topbar {
  height: 72px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

.search-wrap {
  display: none;
  max-width: 330px;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--text);
  border-radius: 13px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--hover-line);
  box-shadow: 0 0 0 3px rgba(122, 77, 255, 0.1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-toggle {
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  transform: translateY(-1px);
}

.credits-box {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--sidebar-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
}

.credits-box strong {
  color: var(--purple);
  font-size: 14px;
}

.store-btn,
.primary-btn,
.institutions-btn,
.view-all-institutions-btn,
.book-now-btn,
.see-all-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 13px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: var(--purple);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(122, 77, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.store-btn:hover,
.primary-btn:hover,
.institutions-btn:hover,
.view-all-institutions-btn:hover,
.book-now-btn:hover,
.see-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(122, 77, 255, 0.28);
}
.page-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 28px 56px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.top-bar h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.5;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.intro-text {
  margin: 0 0 40px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.primary-btn {
  border: none;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  color: #fff;
  padding: 15px 26px;
  border-radius: 20px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(124, 77, 255, 0.28);
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.filter-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.filter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
}

.filter-card-tier {
  border-color: #e6ddff;
}

.filter-card-program {
  border-color: #ebe8f7;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.filter-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.filter-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.filter-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-header-icon svg {
  width: 20px;
  height: 20px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row.compact {
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--panel-soft-2);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--hover-line);
  background: var(--hover-bg);
}

.filter-chip.active-tier,
.filter-chip.active-program {
  background: linear-gradient(135deg, var(--purple), #9b4dff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(122, 77, 255, 0.25);
  transform: translateY(-1.5px) scale(1.02);
}

.search-shell {
  margin-bottom: 18px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.98rem;
  color: var(--text);
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #9aa0ae;
}

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

.results-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--panel-soft-2);
  border: 1px solid var(--border);
  color: var(--purple);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.results-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 20px;
}

.university-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-height: 230px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.university-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.university-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d9d1ff;
}

.university-card:hover::before {
  opacity: 1;
}

.university-icon-wrap {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: var(--panel-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-top: 6px;
}

.university-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.university-name {
  margin-top: 18px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.university-meta {
  margin-top: auto;
  width: 100%;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.university-tier-pill,
.university-family-pill {
  display: inline-flex;
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.university-tier-pill {
  background: var(--panel-soft-2);
  color: var(--purple);
}

.university-family-pill {
  background: var(--panel-soft-2);
  color: var(--muted);
}

.programs-header {
  margin-bottom: 18px;
}

.back-btn {
  border: 1px solid var(--border);
  background: var(--panel-soft-2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.back-btn:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  transform: translateY(-1px);
}

.selected-school-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.selected-school-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.selected-school-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--panel-soft-2);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selected-school-icon svg {
  width: 30px;
  height: 30px;
}

.selected-school-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.school-tier-tag,
.school-program-tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.school-tier-tag {
  background: var(--panel-soft-2);
  color: var(--purple);
}

.school-program-tag {
  background: var(--panel-soft-2);
  color: var(--muted);
}

.selected-school-card h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.selected-school-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.school-view-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.school-view-top {
  margin-bottom: 18px;
}

.school-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.school-section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.school-family-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-soft-2);
  border: 1px solid var(--border);
}

.toolbar-label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9d1ff;
}

.program-card.selected {
  border-color: var(--active-blue);
  box-shadow: var(--hover-shadow);
  background: var(--hover-bg);
}

.program-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--panel-soft-2);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-icon svg {
  width: 24px;
  height: 24px;
}

.program-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
}

.program-desc {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.program-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.program-family-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(111, 76, 246, 0.06);
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(111, 76, 246, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-tier-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(39, 199, 184, 0.06);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(39, 199, 184, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.program-cta-group {
  width: 100%;
  height: 44px;
  border-radius: 13px;
  background: var(--panel-soft-2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

.program-card:hover .program-cta-group {
  background: var(--purple);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 76, 246, 0.25);
}

.cta-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.program-card:hover .cta-icon {
  transform: translateX(4px);
}

.mentors-panel {
  margin-top: 24px;
  background: var(--bg2);
  border: 1px solid #e7defb;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mentors-panel.hidden {
  display: none;
}

.mentors-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.mentor-eyebrow {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mentors-panel-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.mentors-panel-header p {
  margin: 0;
  color: var(--muted);
}

.see-all-btn {
  border: none;
  background: var(--purple);
  color: var(--text);
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.see-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(124, 77, 255, 0.28);
}

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

.mentor-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.mentor-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(31, 36, 48, 0.08);
}

.mentor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mentor-top-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.mentor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mentor-avatar svg {
  width: 25px;
  height: 25px;
}

.mentor-header-copy {
  min-width: 0;
}

.mentor-name {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.mentor-role {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
}

.mentor-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--rating-bg);
  color: var(--active-blue);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.96rem;
  flex-shrink: 0;
}

.mentor-score svg {
  width: 18px;
  height: 18px;
}

.mentor-desc {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mentor-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rating-bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 22px;
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.05rem;
}

@media (max-width: 1400px) {
  .university-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }
}

@media (max-width: 1200px) {
  .filter-shell {
    grid-template-columns: 1fr;
  }

  .university-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .mentor-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .university-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .mentors-panel-header,
  .selected-school-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mentor-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-wrap {
    padding: 24px 16px 48px;
  }

  .top-bar {
    align-items: stretch;
  }

  .primary-btn {
    width: 100%;
  }

  .university-grid,
  .program-grid,
  .mentor-grid {
    grid-template-columns: 1fr;
  }

  .selected-school-main {
    align-items: flex-start;
  }

  .school-family-toolbar {
    align-items: flex-start;
  }

  .mentor-name {
    font-size: 1.2rem;
  }
}
/* Sidebar & Layout Styles from demo1.css */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991px) {
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    width: 290px;
  }

  .app-shell.sidebar-active .sidebar {
    transform: translateX(0);
  }

  .search-wrap {
    display: none;
  }

  .topbar-right .credits-box {
    display: none;
  }
  .topbar-right .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 10px;
  }
}

.title-wrap p,
.page-heading p,
.info-copy p {
  font-size: 16px !important;
  color: var(--muted) !important;
  max-width: 870px !important;
}

.top-bar h1 {
  color: var(--text);
}
