[data-theme="light"] {
  --bg: #f5f5f8;
  --sidebar-bg: #ffffff;
  --panel: #ffffff;
  --hero-bg: #f3eef9;
  --panel-soft: #ffffff;
  --panel-soft-2: #fbfbff;
  --line: #ececf1;
  --purple: #6142f5;
  --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: #1156d8;
}

[data-theme="dark"] {
  --bg: #131018;
  --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;
}

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

  /* Global tokens */
  --shadow: 0 10px 28px rgba(26, 31, 44, 0.05);
  --gold: #f3be4d;
  --success-green: #167947;
  --yes-soft: #eefbf3;
  --no-soft: #fff1f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.simple-layout {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  display: block;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.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;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.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;
}

.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: var(--muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease);
}

.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;
  padding: 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;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

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

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

.mobile-menu-toggle:hover {
  background: #f4efff;
  transform: scale(1.04);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.search-wrap {
  display: none;
}

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

.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);
  color: var(--purple);
}

.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 {
  height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--active-blue));
  color: white;
  box-shadow: 0 10px 22px rgba(122, 77, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-btn:hover,
.primary-btn:hover,
.institutions-btn:hover,
.view-all-institutions-btn:hover,
.book-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(122, 77, 255, 0.28);
}
.clean-header {
  padding: 8px 0 10px;
}

.page-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.page-header-copy h1 {
  margin: 0 0 0px;
  font-size: 2rem;
  line-height: 0.96;
  color: var(--text);
  letter-spacing: -0.05em;
  font-weight: 600;
}

.page-header-copy p {
  margin: 0;
  max-width: 980px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 248px;
  height: 58px;
  padding: 0 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #7a55f6, #a455f3);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(111, 76, 246, 0.18);
  flex-shrink: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 16px;
}

.overview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition:
    transform var(--ease),
    border-color var(--ease);
}

.overview-label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.overview-value {
  font-size: 2.55rem;
  font-weight: 600;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.small-value {
  font-size: 1.9rem;
}

.overview-sub {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
}

.feedback-controls {
  padding: 10px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-right {
  justify-content: flex-end;
}

.mentor-search,
.feedback-controls select {
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  padding: 0 16px;
  font-size: 0.97rem;
  font-weight: 600;
}

.mentor-search {
  min-width: 360px;
  width: 400px;
}

.feedback-controls select {
  min-width: 185px;
}

.category-section {
  padding: 20px 0 6px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 18px;
}

.category-title-wrap h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.category-title-wrap p {
  margin: 0px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.category-actions {
  display: flex;
  gap: 12px;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  padding: 0;
}

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

.mentor-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.mentor-card:hover {
  border-color: var(--hover-line);
}

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

.mentor-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mentor-avatar {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: var(--avatar-bg);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.mentor-name {
  margin: 0 0 0px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mentor-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.rating-badge {
  background: var(--rating-bg);
  color: var(--rating-text);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.mentor-office-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
}

.office-hours-label {
  color: var(--purple);
  font-weight: 600;
}

.office-hours-value {
  color: #697188;
}

.mentor-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.description-readmore-wrap {
  margin-top: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.description-readmore-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.description-readmore-btn:hover {
  color: var(--purple-dark);
}

.mentor-details-expand {
  display: none;
  margin-bottom: 14px;
}

.mentor-details-expand.open {
  display: block;
}

.services-label {
  color: #6d748c;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.services-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 16px;
}

.service-pill {
  min-height: 52px;
  border: 2px solid var(--service-line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--purple);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
}

.student-note-label {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.student-notes-stack {
  display: grid;
  gap: 10px;
}

.student-note-card {
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  border-radius: 20px;
  padding: 16px 18px;
}

.student-note-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.student-note-student {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.student-note-date {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 3px;
}

.student-note-view-btn {
  flex-shrink: 0;
  min-width: 92px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--purple);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--ease);
}

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

.student-note-preview {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

.no-notes-card {
  border: 1px solid var(--border);
  background: var(--panel-alt);
  border-radius: 20px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.more-reviews-wrap {
  margin-top: 12px;
  display: none;
  gap: 10px;
}

.more-reviews-wrap.open {
  display: grid;
}

.inline-readmore-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inline-readmore-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.inline-readmore-btn:hover {
  color: var(--purple-dark);
}

.card-bottom {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-stats {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.card-type {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.book-now-btn {
  margin-top: 16px;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 36px;
  background: linear-gradient(135deg, #7a55f6, #a455f3);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(111, 76, 246, 0.18);
  cursor: pointer;
}

.empty-category {
  border: 1px dashed var(--border);
  border-radius: 22px;
  padding: 24px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.96rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.modal-overlay.open {
  display: flex;
}

.mentor-modal {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mentor-modal::-webkit-scrollbar {
  display: none;
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--text);
  font-size: 1.55rem;
  cursor: pointer;
  z-index: 20;
}

.direct-form-view {
  padding-top: 8px;
}

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

.direct-eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.direct-header h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.direct-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
}

.direct-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-soft-2);
  padding: 18px;
  margin-bottom: 14px;
}

.direct-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

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

.direct-field {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 12px 14px;
}

.direct-field.full {
  grid-column: 1 / -1;
}

.direct-field-label {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.direct-field-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.direct-stars {
  display: inline-flex;
  gap: 3px;
  font-size: 1.08rem;
  color: var(--gold);
}

.direct-scale-badge,
.direct-binary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
}

.direct-binary-badge.yes {
  background: var(--yes-soft);
  color: var(--success-green);
  border-color: #cde8d8;
}

.direct-binary-badge.no {
  background: var(--no-soft);
  color: #b24747;
  border-color: #f0cfcf;
}

.direct-service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.direct-service-card {
  min-height: 104px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  opacity: 0.45;
  transform: scale(0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.direct-service-card.active {
  opacity: 1;
  border-color: var(--purple);
  background: var(--hover-bg);
  transform: scale(1);
  box-shadow: var(--shadow);
}

.direct-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--avatar-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.direct-service-icon svg {
  width: 25px;
  height: 25px;
  fill: #7c45f2;
}

.direct-service-card span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
  max-width: 92px;
}

.direct-feedback-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--muted);
  white-space: pre-wrap;
}

.no-results {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

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

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .direct-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .direct-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-btn {
    min-width: 0;
  }

  .feedback-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .control-left,
  .control-right {
    width: 100%;
  }

  .control-right {
    justify-content: flex-start;
  }

  .mentor-search {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .simple-layout {
    padding: 15px;
  }

  .page-header-copy h1 {
    font-size: 2.55rem;
  }

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

  .feedback-controls select,
  .dashboard-btn {
    width: 100%;
    min-width: 0;
  }

  .direct-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-pill-grid {
    grid-template-columns: 1fr;
  }

  .student-note-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-note-view-btn {
    width: 100%;
  }

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

  .card-type {
    text-align: left;
  }
}
/* Sidebar & Layout Styles from demo1.css */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.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;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  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);
}

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

.nav-item {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: var(--ease);
}

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

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

.nav-item.active .nav-icon {
  color: inherit;
}

.main-content {
  flex: 1;
  min-width: 0;
}

body[data-theme="dark"] .sidebar-top .brand-icon svg,
body[data-theme="dark"] .nav-icon svg,
body[data-theme="dark"] .mobile-menu-toggle svg {
  filter: brightness(0) saturate(100%) invert(85%) sepia(12%) saturate(800%)
    hue-rotate(220deg) brightness(100%) contrast(100%);
}

body[data-theme="dark"] .nav-item.active .nav-icon svg {
  filter: none;
}

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

  .credits-box {
    display: none;
  }

  .topbar {
    height: 64px;
    padding: 0 16px;
    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: 20px 0 60px rgba(0, 0, 0, 0.15);
    width: 290px;
  }

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

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

  .main-content {
    padding-top: 0;
  }
}

/* Uniform sidebar + main content spacing and typography across pages */
.sidebar {
  width: 294px !important;
  min-width: 294px !important;
}
.main-content {
  flex: 1 !important;
  padding: 0px !important;
  min-width: 0;
}
.page-shell,
.demo14-page-wrap,
.page-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}
.page-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
}
.title-wrap h1,
.page-heading h1 {
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}
.title-wrap p,
.page-heading p,
.info-copy p {
  font-size: 16px !important;
  color: #5f6585 !important;
  max-width: 870px !important;
}
