/* ================================
   PATHFINDR HOME2 PAGE STYLES
   ================================ */

/* ---------- Layout Base ---------- */
body {
  background: var(--bg-primary);
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

/* Sidebar Navigation */
.sidebar-nav {
  width: 260px;
  background: transparent;
  border-right: 0;
  padding: 24px 20px;
  position: fixed;
  left: 0;
  top: 64px;
  bottom: 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
  border-left: 3px solid #8B5CF6;
}

.nav-item .badge {
  margin-left: auto;
  background: #8B5CF6;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.profile-section {
  padding: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(31, 24, 58, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  text-align: center;
}

.profile-avatar {
  border: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin-bottom: 12px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  font-family: inherit;
}

.profile-avatar.has-photo {
  color: transparent;
  text-indent: -999px;
}

.profile-avatar-link {
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.profile-avatar-link:hover,
.profile-avatar-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-school {
  font-size: 13px;
  color: var(--text-secondary);
}

.sidebar-quick-links {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(31, 24, 58, 0.08);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.sidebar-quick-links button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  text-align: left;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sidebar-quick-links button:hover,
.sidebar-quick-links button:focus-visible {
  background: var(--bg-primary);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  outline: none;
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 24px 30px 40px;
  max-width: 1400px;
}

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

.page-eyebrow {
  color: var(--purple-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.dashboard-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Cards */
.dashboard-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Journey Card */
.journey-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #8B5CF6;
}

.next-step {
  background: rgba(139, 92, 246, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.next-step-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.next-step-content {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.next-step-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Card entrance animation */
.dashboard-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}

.dashboard-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button glow hover */
.btn-primary,
.btn-secondary,
.view-path-btn,
.post-btn,
.view-more-btn,
.view-more-link {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary:hover,
.view-path-btn:hover,
.post-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.22);
  filter: brightness(1.03);
}

.btn-secondary:hover,
.view-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.06);
}

/* Layout shell */
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.left-col, .right-col {
  display: grid;
  gap: 24px;
}

.full-row {
  grid-column: 1 / -1;
}

/* Buttons */
.btn-primary {
  background: #8B5CF6;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
}

.btn-primary:hover {
  background: #7c3aed;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
}

.btn-secondary:hover {
  background: var(--bg-primary);
}

.career-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.career-actions .btn-primary,
.career-actions .btn-secondary {
  flex: 0 0 auto;
  min-width: 220px;
}

.career-tree-summary {
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 160px 1fr;
  margin: 12px 0 18px;
  padding: 14px;
}

.career-tree-summary span {
  color: var(--text-secondary);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.career-tree-summary strong {
  color: var(--purple-primary);
  display: block;
  font-size: 24px;
}

.career-progress-track {
  background: var(--bg-tertiary);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.career-progress-fill {
  background: linear-gradient(135deg, var(--purple-primary), var(--info));
  border-radius: inherit;
  height: 100%;
  transition: width 0.2s ease;
  width: 0%;
}

.career-tree {
  display: grid;
  gap: 16px;
}

.career-field {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.career-field-root {
  align-items: center;
  background: var(--bg-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  list-style: none;
}

.career-field-root::-webkit-details-marker {
  display: none;
}

.career-field-root::marker {
  content: "";
}

.career-field-root h4 {
  color: var(--text-primary);
  font-size: 16px;
  margin: 2px 0 0;
}

.tree-kicker,
.field-progress {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-progress {
  background: var(--purple-light);
  border-radius: 999px;
  color: var(--purple-primary);
  padding: 6px 10px;
  white-space: nowrap;
}

.field-meta {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dropdown-chevron {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.career-field[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.subfield-branch {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.subfield-node {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
}

.subfield-node-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.subfield-node-header h5 {
  color: var(--text-primary);
  font-size: 15px;
  margin: 2px 0 0;
}

.subfield-progress {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.occupation-branch {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  position: relative;
}

.subfield-node .occupation-branch {
  margin-top: 12px;
  padding: 0;
}

.occupation-branch::before {
  background: var(--border-color);
  bottom: 28px;
  content: "";
  left: 26px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.subfield-node .occupation-branch::before {
  bottom: 18px;
  left: 12px;
  top: 8px;
}

.occupation-node {
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.occupation-check {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.occupation-check input {
  accent-color: var(--purple-primary);
  margin-top: 4px;
}

.occupation-check strong,
.occupation-check small {
  display: block;
}

.occupation-check strong {
  color: var(--text-primary);
  font-size: 14px;
}

.occupation-check small {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.connect-occupation {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.connect-occupation:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: white;
}

/* Right column compact sections */
.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.event-date-box {
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  width: 44px;
}

.event-date-box strong {
  font-size: 15px;
  line-height: 1;
}

.event-date-box span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
  text-transform: uppercase;
}

.event-row h4 {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
}

.event-row p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.college-prompt-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.college-prompt-grid button {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
}

.college-prompt-grid button:hover,
.college-prompt-grid button:focus-visible {
  background: var(--purple-light);
  border-color: rgba(139, 92, 246, 0.28);
  color: var(--purple-primary);
  outline: none;
}

.college-prompt-grid button[aria-disabled="true"] {
  cursor: default;
}

.college-prompt-grid button[aria-disabled="true"]:hover,
.college-prompt-grid button[aria-disabled="true"]:focus-visible {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* College insights */
.college-carousel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 18px;
  padding: 16px;
}

.college-carousel-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.college-carousel-kicker {
  color: var(--purple-primary);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.college-carousel-header h4 {
  color: var(--text-primary);
  font-size: 16px;
  margin: 0;
}

.college-carousel-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.college-view-all {
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--purple-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 12px;
  text-decoration: none;
}

.college-carousel-btn {
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.college-carousel-btn:hover,
.college-carousel-btn:focus-visible,
.college-view-all:hover,
.college-view-all:focus-visible {
  background: var(--bg-tertiary);
  outline: none;
}

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

.college-school-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.college-school-card:hover,
.college-school-card:focus-visible {
  border-color: var(--school-primary);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  outline: none;
  transform: translateY(-2px);
}

.college-logo-box {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
  border-radius: 10px;
  color: var(--school-text, #ffffff);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

/* Real logo variant: solid school color, centered logo on a white chip */
.college-logo-box.has-logo {
  background: var(--school-primary);
}

.college-logo-box.has-logo .college-logo-name {
  display: none;
}

.college-logo-chip {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  display: flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.college-logo-chip img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.college-logo-box .college-logo-name {
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  min-width: 86px;
  padding: 12px 16px;
}

.college-school-copy {
  display: grid;
  gap: 6px;
}

.college-school-copy span {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.college-school-copy h4 {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}

.college-school-copy p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.college-member-pill {
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  margin-top: 2px;
  min-height: 32px;
  padding: 7px 11px;
  width: max-content;
}

.college-discussion-cta {
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.college-discussion-cta div {
  display: grid;
  gap: 4px;
}

.college-discussion-cta strong {
  color: var(--text-primary);
  font-size: 14px;
}

.college-discussion-cta span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.community-input {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.community-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.post-btn {
  padding: 12px 24px;
  background: #8B5CF6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.question-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.question-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.question-content {
  flex: 1;
}

.question-author-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.question-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.college-post-type {
  background: var(--purple-light);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 999px;
  color: var(--purple-primary);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.question-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.question-stats {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Community replies preview */
.question-replies-preview {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.reply-chip {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.reply-chip strong {
  color: var(--text-primary);
  font-weight: 800;
  white-space: nowrap;
}

.reply-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Suggested Mentors */
.suggested-mentors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggested-mentor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.suggested-mentor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.suggested-mentor-info {
  flex: 1;
}

.suggested-mentor-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.suggested-mentor-title {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ================================
   Mentor Spotlight
   Matches your screenshot behavior
   ================================ */

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

@media (max-width: 1100px) {
  .mentor-spotlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-header-actions {
    justify-content: flex-start;
  }

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

/* card */
.mentor-spotlight-card {
  position: relative;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  overflow: hidden;
  outline: none;
}

.mentor-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* photo top */
.mentor-spotlight-photo {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 26px;
}

.mentor-spotlight-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* name + profession */
.mentor-spotlight-name {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

.mentor-spotlight-title {
  margin-top: 4px;
  margin-bottom: 0px;
  min-height: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.25;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* bottom row always visible: match % */
.mentor-spotlight-footer {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.match-pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  font-size: 12px;
  color: var(--text-secondary);
}

.match-pill-inline strong {
  color: var(--text-primary);
  font-weight: 900;
}

.match-pill-inline.subtle {
  opacity: 0.9;
}

/* hover bubbles */
.mentor-hover-bubbles {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* show bubbles on hover / focus */
.mentor-spotlight-card:hover .mentor-hover-bubbles,
.mentor-spotlight-card:focus-within .mentor-hover-bubbles {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* when bubbles show, dim footer a little (optional, feels clean) */
.mentor-spotlight-card:hover .mentor-spotlight-footer {
  opacity: 0.25;
  transition: opacity 160ms ease;
}

/* bubble buttons */
.bubble-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.bubble-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.16);
  filter: brightness(1.03);
}

.bubble-primary {
  background: #8B5CF6;
  border: none;
  color: white;
}

.bubble-primary:hover {
  background: #7c3aed;
}

.bubble-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.mentor-spotlight-grid {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  margin-top: 14px;
}

.mentor-spotlight-card {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-column: 2;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
  min-height: 260px;
  padding: 18px;
}

.mentor-spotlight-card:hover {
  transform: translateY(-1px);
}

.mentor-spotlight-photo {
  height: 100%;
  min-height: 220px;
}

.mentor-spotlight-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mentor-spotlight-kicker {
  color: var(--purple-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mentor-spotlight-name {
  margin-top: 0;
  font-size: 24px;
}

.mentor-spotlight-title {
  -webkit-line-clamp: unset;
  display: block;
  font-size: 15px;
  min-height: 0;
  overflow: visible;
}

.mentor-spotlight-bio {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.mentor-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mentor-tags-inline span {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.mentor-spotlight-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.mentor-spotlight-actions .bubble-btn {
  min-height: 40px;
}

.mentor-carousel-arrow {
  align-items: center;
  aspect-ratio: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  width: 42px;
}

.mentor-carousel-arrow:hover {
  background: var(--bg-tertiary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.mentor-carousel-prev {
  grid-column: 1;
}

.mentor-carousel-next {
  grid-column: 3;
}

.mentor-carousel-dots {
  display: flex;
  gap: 7px;
  grid-column: 1 / -1;
  justify-content: center;
}

.mentor-carousel-dots button {
  background: var(--border-color);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: background 160ms ease, width 160ms ease;
  width: 8px;
}

.mentor-carousel-dots button.active {
  background: var(--purple-primary);
  width: 24px;
}

.mentor-spotlight-empty {
  color: var(--text-secondary);
  font-size: 13px;
  grid-column: 1 / -1;
  padding: 12px 0;
  text-align: center;
}

.mentor-spotlight-empty a {
  color: var(--purple-primary);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-state {
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px;
  justify-content: center;
  min-height: 84px;
  padding: 18px;
  text-align: center;
}

.dashboard-state-inline {
  grid-column: 1 / -1;
}

.dashboard-state-compact {
  font-size: 13px;
  min-height: 56px;
  padding: 12px;
}

.dashboard-state-error {
  border-color: rgba(239, 68, 68, 0.28);
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-nav { display: none; }
  .main-content { margin-left: 0; padding: 20px; }
  .career-tree-summary,
  .occupation-node {
    grid-template-columns: 1fr;
  }

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

  .mentor-spotlight-grid {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

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

  .mentor-spotlight-photo {
    min-height: 180px;
  }

  .mentor-spotlight-actions {
    flex-direction: column;
  }

  .mentor-carousel-arrow {
    font-size: 24px;
    width: 36px;
  }
}

/* Current mentor spotlight carousel layout */
.mentor-spotlight-track {
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mentor-spotlight-track .mentor-spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: auto;
  grid-template-columns: none;
  min-height: 360px;
  padding: 16px;
}

.mentor-spotlight-main {
  display: grid;
  gap: 12px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.mentor-spotlight-track .mentor-spotlight-photo {
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  width: 86px;
}

.mentor-spotlight-track .mentor-spotlight-name {
  display: -webkit-box;
  font-size: 19px;
  line-height: 1.15;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mentor-spotlight-track .mentor-spotlight-title {
  display: -webkit-box;
  font-size: 13px;
  min-height: 36px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mentor-spotlight-track .mentor-spotlight-bio {
  display: -webkit-box;
  min-height: 60px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mentor-spotlight-track .mentor-tags-inline {
  min-height: 30px;
}

.mentor-spotlight-track .mentor-spotlight-footer {
  min-height: 34px;
}

.mentor-spotlight-track .mentor-spotlight-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 12px;
}

.mentor-spotlight-track .bubble-btn {
  min-height: 40px;
  white-space: nowrap;
}

.mentor-hover-bubbles {
  display: none;
}

.mentor-spotlight-card:hover .mentor-spotlight-footer {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .mentor-spotlight-track {
    grid-template-columns: 1fr;
  }

  .mentor-spotlight-main {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .mentor-spotlight-track .mentor-spotlight-card {
    min-height: 0;
  }

  .mentor-spotlight-track .mentor-spotlight-photo {
    width: 80px;
  }

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

/* Single-card mentor spotlight slide */
.mentor-spotlight-track {
  grid-template-columns: minmax(0, 1fr);
}

.mentor-spotlight-track .mentor-spotlight-card-single {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  min-height: 320px;
}

.mentor-spotlight-card-single .mentor-spotlight-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
  width: 100%;
}

.mentor-spotlight-card-single .mentor-spotlight-info {
  display: flex;
  flex-direction: column;
}

.mentor-spotlight-card-single .mentor-spotlight-name {
  font-size: 24px;
  min-height: 32px;
  -webkit-line-clamp: 1;
}

.mentor-spotlight-card-single .mentor-spotlight-title {
  font-size: 15px;
  min-height: 24px;
  -webkit-line-clamp: 1;
}

.mentor-spotlight-card-single .mentor-spotlight-bio {
  margin-top: 14px;
  min-height: 66px;
}

@media (max-width: 768px) {
  .mentor-spotlight-track .mentor-spotlight-card-single {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mentor-spotlight-card-single .mentor-spotlight-photo {
    min-height: 180px;
  }

  .mentor-spotlight-card-single .mentor-spotlight-name,
  .mentor-spotlight-card-single .mentor-spotlight-title {
    -webkit-line-clamp: 2;
  }
}

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

  .college-school-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .college-logo-box {
    aspect-ratio: 1;
    min-height: 120px;
  }
}

@media (max-width: 560px) {
  .college-carousel-header,
  .college-carousel-actions,
  .college-discussion-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .college-carousel-actions {
    display: grid;
    grid-template-columns: 1fr 34px 34px;
    width: 100%;
  }

  .college-view-all {
    justify-content: center;
  }

  .college-school-card {
    grid-template-columns: 1fr;
  }

  .college-logo-box {
    aspect-ratio: 16 / 9;
  }
}
