.breadcrumb {
  padding: 20px 0;
}

.breadcrumb nav {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--brand-purple);
  transition: var(--transition);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.roadmap-header {
  text-align: center;
  padding-bottom: 40px;
}

.roadmap-header h1 {
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.roadmap-info-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.info-card {
  background-color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E0E0E0;
  min-width: 200px;
}

body.dark-mode .info-card {
  background-color: #2A2A2A;
  border-color: #3A3A3A;
}

.info-card strong {
  display: block;
  color: var(--brand-orange);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.info-card span {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-pink);
  transition: var(--transition);
}

.outcome-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.outcome-box:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(232, 67, 147, 0.3);
}

.outcome-box strong {
  margin-right: 8px;
}

.roadmap-content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-nav {
  position: sticky;
  top: 90px;
}

.sidebar-sticky {
  background-color: white;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E0E0E0;
  max-height: calc(100vh - 120px);
  /* Ensure it fits in viewport */
  overflow-y: auto;
  /* Enable scrolling for long lists */
}

body.dark-mode .sidebar-sticky {
  background-color: #2A2A2A;
  border-color: #3A3A3A;
}

.sidebar-sticky h4 {
  margin-bottom: 16px;
  color: var(--brand-purple);
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: var(--bg-secondary);
  border-left-color: var(--brand-pink);
}

.sidebar-link.active {
  background-color: rgba(232, 67, 147, 0.05);
  border-left-color: var(--brand-pink);
  color: var(--brand-pink);
  font-weight: 600;
}

.progress-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E0E0E0;
}

.progress-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.progress-percent {
  text-align: center;
  font-weight: 600;
  color: var(--brand-pink);
}

.roadmap-timeline {
  max-width: 900px;
}

.stage-section {
  margin-bottom: 30px;
  /* Reduced from 60px */
  scroll-margin-top: 100px;
}

.stage-header {
  margin-bottom: 32px;
}

.stage-header h2 {
  color: var(--brand-purple);
  margin-bottom: 8px;
}

.stage-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.nodes-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.node-card {
  padding: 24px;
  transition: var(--transition);
}

.node-card:hover {
  border-left: 4px solid var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Dark Mode for Node Cards */
body.dark-mode .node-card {
  background-color: var(--card-bg);
  /* Dark Background */
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .node-card:hover {
  background-color: #2A2A2A;
  /* Slightly lighter on hover */
  box-shadow: var(--shadow-md);
}

body.dark-mode .node-header h3 {
  color: var(--text-primary);
  /* Bright White Text */
}

body.dark-mode .node-info,
body.dark-mode .node-tools {
  color: var(--text-secondary);
  /* Readable Grey Text */
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.node-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.node-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.node-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-tag.core-concept,
.node-tag.must-know,
.node-tag.core,
.node-tag.crucial {
  background-color: #FFE5E5;
  color: #D32F2F;
}

.node-tag.sectional-project,
.node-tag.portfolio,
.node-tag.unique,
.node-tag.capstone {
  background-color: rgba(232, 67, 147, 0.1);
  color: var(--brand-pink);
}

.node-tag.interview-priority,
.node-tag.job-ready,
.node-tag.final-step {
  background-color: #FFF4E6;
  color: #FF9800;
}

.node-tag.daily-use,
.node-tag.essential,
.node-tag.skills {
  background-color: #E3F2FD;
  color: #1976D2;
}

.node-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-info {
  font-size: 0.95rem;
  line-height: 1.6;
}

.node-info strong {
  color: var(--brand-purple);
  margin-right: 4px;
}

.node-subtopics ul {
  margin-left: 20px;
  margin-top: 8px;
}

.node-subtopics li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.node-tools {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.node-tools strong {
  color: var(--brand-purple);
}

.roadmap-cta {
  margin-top: 60px;
}

.roadmap-cta .card {
  text-align: center;
  padding: 40px;
}

.roadmap-cta h2 {
  margin-bottom: 16px;
}

.roadmap-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .roadmap-content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    position: static;
    margin-bottom: 40px;
  }

  .sidebar-sticky {
    max-width: 600px;
    margin: 0 auto;
    width: calc(100% - 40px);
    /* Add spacing from edges */
  }
}

@media (max-width: 768px) {
  .roadmap-info-cards {
    flex-direction: column;
    align-items: center;
  }

  .info-card {
    width: 100%;
    max-width: 300px;
  }

  .node-header {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}