/* ===== Roadmap Specific Styles ===== */

/* ===== Roadmap Hero Section ===== */
.roadmap-hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 2rem 2rem 1rem 2rem;
  position: relative;
  overflow: hidden;
}

.roadmap-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 230, 230, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(31, 212, 123, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.roadmap-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.roadmap-main-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roadmap-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.roadmap-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.roadmap-icon-large.beginner { 
  background: linear-gradient(45deg, var(--secondary), #10B981); 
}
.roadmap-icon-large.intermediate { 
  background: linear-gradient(45deg, var(--primary), var(--primary-dark)); 
}
.roadmap-icon-large.advanced { 
  background: linear-gradient(45deg, var(--accent), var(--accent-dark)); 
}

.roadmap-icon-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
}

.roadmap-icon-large:hover::before {
  left: 100%;
}

.roadmap-meta-info {
  flex: 1;
}

.roadmap-category {
  color: #3b82f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.roadmap-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.roadmap-stats-inline {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.stat-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-inline i {
  color: #3b82f6;
  font-size: 1rem;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.difficulty-badge.beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.difficulty-badge.intermediate {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.difficulty-badge.advanced {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
}

.difficulty-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
}

.roadmap-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 800px;
}

.roadmap-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.roadmap-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  position: sticky;
  top: 120px;
  height: fit-content;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sidebar-title i {
  color: var(--primary);
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.8s ease;
}

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

.rating-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.stars i {
  color: var(--warning-orange);
  font-size: 1.1rem;
}

.stars i.empty {
  color: var(--text-muted);
}

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

.sidebar-details {
  space-y: 0.75rem;
}

.detail-item {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-item strong {
  color: var(--text-primary);
}

/* ===== Steps Timeline ===== */
.steps-section {
  padding: 60px 2rem; /* Reduced from 80px to decrease spacing */
  background: var(--bg-secondary);
}

.steps-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  z-index: 1;
}

.step-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-number.completed {
  background: var(--primary);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: var(--primary-glow);
}

.step-number.completed i {
  font-size: 1.5rem;
}

.step-card {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 230, 0.05), transparent);
  transition: left 0.8s ease;
}

.step-card:hover::before {
  left: 100%;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: var(--primary);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.step-topics {
  margin-bottom: 1.5rem;
}

.step-topics h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-topics ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.step-topics li {
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.step-topics li:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: translateX(5px);
}

.step-learning-outcomes {
  margin-bottom: 1.5rem;
}

.step-learning-outcomes h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-learning-outcomes ul {
  list-style: none;
  padding: 0;
}

.step-learning-outcomes li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.step-learning-outcomes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1rem;
}

.step-skills {
  margin-bottom: 1.5rem;
}

.step-skills h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-skills .skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--primary);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skills List with Comma Separation */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.5rem;
}

.skill-chip {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-chip:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 230, 230, 0.2);
}

/* Add commas between skills */
.skill-chip:not(:last-child)::after {
  content: ',';
  color: var(--text-primary);
  margin-left: 0.25rem;
  font-weight: 400;
  opacity: 0.8;
}

/* Last skill gets a period */
.skill-chip:last-child::after {
  content: '.';
  color: var(--text-primary);
  margin-left: 0.25rem;
  font-weight: 400;
  opacity: 0.8;
}

.step-project {
  margin-bottom: 1.5rem;
}

.step-project h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-project p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent);
}

.step-resources {
  margin-bottom: 1.5rem;
}

.step-resources h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.step-resources ul {
  list-style: none;
  padding: 0;
}

.step-resources li {
  margin-bottom: 0.5rem;
}

.step-resources a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.step-resources a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px currentColor;
  transform: translateX(2px);
}

.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.step-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-duration i {
  color: var(--primary);
}

.step-required, .step-optional {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.step-required {
  color: var(--warning-orange);
}

.step-optional {
  color: var(--text-muted);
}

.step-actions {
  margin-top: 1rem;
}

/* Button styles moved to roadmap-progress.css to avoid duplication */

/* ===== Content Cards ===== */
.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Special styling for visual learning path content card */
#roadmap-visual-timeline .content-card {
  padding: 0;
  margin-bottom: 2rem;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: var(--primary);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Special styling for visual learning path glass card */
#roadmap-visual-timeline .glass-card {
  padding: 0;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: var(--primary);
}

/* ===== Compact Visual Learning Path ===== */
#roadmap-visual-timeline {
  padding: 1rem 0;
  background: var(--bg-primary);
}

#roadmap-visual-timeline .section-header {
  margin-bottom: 1rem;
}

#roadmap-visual-timeline .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

#roadmap-visual-timeline .section-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

#roadmap-visual-timeline .content-card {
  padding: 0.5rem;
  margin-bottom: 0;
}

#roadmap-visual-timeline .mermaid {
  background: transparent;
  border-radius: 8px;
  padding: 0.25rem;
  margin: 0;
  overflow-x: auto;
  min-height: 200px;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#roadmap-visual-timeline .mermaid svg {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  background: transparent;
}

/* Compact Mermaid styling */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--primary);
  stroke-width: 1.5px;
  rx: 4px;
}

.mermaid .node .label {
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
}

.mermaid .edgePath .path {
  stroke: var(--primary);
  stroke-width: 1.5px;
  opacity: 0.7;
}

.mermaid .edgeLabel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 4px;
}

/* ===== Section Headers ===== */
.section {
  padding: 20px 2rem; /* Reduced padding to decrease gap between header and content */
  background: var(--bg-primary);
}

/* Special styling for visual learning path section */
#roadmap-visual-timeline.section {
  padding: 0 2rem;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Compact section header for Learning Outcomes */
.learning-outcomes-section .section-header {
  margin-bottom: 1.5rem;
}

.learning-outcomes-section .section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.learning-outcomes-section .section-subtitle {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== Prerequisites Section ===== */
.prerequisites-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== Resource List - Compact Design ===== */
.resource-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.resource-item {
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-item:hover {
  transform: translateY(-2px);
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 230, 230, 0.15);
}

.resource-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-item a:hover {
  color: var(--primary-light);
  text-shadow: 0 0 5px currentColor;
}

.resource-item a i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.resource-type {
  color: var(--text-secondary);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: #10b981;
  color: #fff;
}

.badge-info {
  background: #3b82f6;
  color: #fff;
}

.badge-secondary {
  background: #8b5cf6;
  color: #fff;
}

.resource-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Reviews Section ===== */
.reviews-section {
  padding: 80px 2rem;
  background: var(--bg-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  border-color: var(--primary);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

.review-rating {
  display: flex;
  gap: 0.25rem;
}

.review-rating i {
  color: var(--warning-orange);
  font-size: 1rem;
}

.review-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.add-review-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.add-review-form h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
}

/* ===== Related Roadmaps ===== */
.related-roadmaps {
  padding: 80px 2rem; /* Consistent padding */
  background: var(--bg-secondary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ===== Social Sharing ===== */
.social-sharing {
  position: relative; /* Changed from fixed to relative */
  margin: 3rem auto; /* Added margin instead of fixed positioning */
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the social sharing */
  gap: 1.5rem;
  max-width: 500px; /* Limit width */
  z-index: 100; /* Reduced z-index */
}

.social-sharing span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.social-sharing a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-sharing a:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--primary-glow);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .roadmap-hero-content {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }
  
  .roadmap-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .roadmap-hero {
    padding: 1.5rem 1rem 0.5rem 1rem;
  }
  
  .roadmap-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .roadmap-info {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .roadmap-icon-large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin: 0 auto;
  }
  
  .roadmap-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  .roadmap-stats-inline {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .roadmap-actions {
    justify-content: center;
    gap: 1rem;
  }
  
  .roadmap-sidebar {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .steps-timeline::before {
    left: 20px;
  }
  
  .step-item {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .step-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .social-sharing {
    position: relative;
    margin: 2rem auto;
    justify-content: center;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .section {
    padding: 15px 1rem;
  }
  
  /* Ultra-compact visual learning path on mobile */
  #roadmap-visual-timeline {
    padding: 0.5rem 0;
  }
  
  #roadmap-visual-timeline .section-header {
    margin-bottom: 0.5rem;
  }
  
  #roadmap-visual-timeline .section-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 0.25rem;
  }
  
  #roadmap-visual-timeline .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  #roadmap-visual-timeline .content-card {
    padding: 0.25rem;
  }
  
  #roadmap-visual-timeline .mermaid {
    min-height: 150px;
    max-height: 200px;
    padding: 0.1rem;
  }
  
  #roadmap-visual-timeline .mermaid svg {
    max-height: 180px;
  }
  
  .mermaid .node .label {
    font-size: 10px;
  }
  
  .mermaid .edgeLabel {
    font-size: 8px;
    padding: 1px 2px;
  }
  
  .steps-section {
    padding: 30px 1rem;
  }
  
  /* Mermaid mobile improvements */
  #roadmap-visual-timeline .mermaid {
    padding: 0;
    min-height: 250px;
  }
  
  .content-card,
  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .roadmap-hero {
    padding: 1rem 0.5rem 0.25rem 0.5rem;
  }
  
  .roadmap-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  
  .roadmap-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .roadmap-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn-cyber, .btn-outline-cyber {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .roadmap-stats-inline {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .stat-inline {
    font-size: 0.85rem;
  }
  
  .roadmap-sidebar {
    padding: 1rem;
  }
  
  .sidebar-section {
    margin-bottom: 1.5rem;
  }
  
  .step-card {
    padding: 1rem;
  }
  
  .step-title {
    font-size: 1.2rem;
  }
  
  .step-description {
    font-size: 0.9rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .social-sharing {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .content-card,
  .glass-card {
    padding: 1rem;
  }
  
  .section {
    padding: 10px 0.5rem;
  }
  
  /* Extra compact visual learning path on small mobile */
  #roadmap-visual-timeline {
    padding: 0.25rem 0;
  }
  
  #roadmap-visual-timeline .section-header {
    margin-bottom: 0.25rem;
  }
  
  #roadmap-visual-timeline .section-title {
    font-size: clamp(1rem, 5vw, 1.4rem);
    margin-bottom: 0.1rem;
  }
  
  #roadmap-visual-timeline .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
  }
  
  #roadmap-visual-timeline .content-card {
    padding: 0.1rem;
  }
  
  #roadmap-visual-timeline .mermaid {
    min-height: 120px;
    max-height: 160px;
    padding: 0.05rem;
  }
  
  #roadmap-visual-timeline .mermaid svg {
    max-height: 140px;
  }
  
  .mermaid .node .label {
    font-size: 9px;
  }
  
  .mermaid .edgeLabel {
    font-size: 7px;
    padding: 1px;
  }
  
  .steps-section {
    padding: 20px 0.5rem;
  }
  
  /* Mermaid extra small mobile */
  #roadmap-visual-timeline .mermaid {
    padding: 0;
    min-height: 200px;
  }
}

/* ===== Professional Bullet Point Styling ===== */
.roadmap-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-bullet-item {
  position: relative;
  padding: 1rem 0 1rem 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.roadmap-bullet-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.roadmap-bullet-item:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Arrow bullets for Prerequisites */
.roadmap-bullet-list--arrow .roadmap-bullet-item::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--primary);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--arrow .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--primary);
}

/* Check bullets for Learning Outcomes */
.roadmap-bullet-list--check .roadmap-bullet-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--secondary);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--check .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--secondary);
}

/* Star bullets for Career Opportunities */
.roadmap-bullet-list--star .roadmap-bullet-item::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--accent);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--star .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--accent);
}

/* Default bullets */
.roadmap-bullet-list--default .roadmap-bullet-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--primary);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--default .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--primary);
}

/* Diamond bullets for special content */
.roadmap-bullet-list--diamond .roadmap-bullet-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--accent);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--diamond .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--accent);
}

/* Circle bullets for general content */
.roadmap-bullet-list--circle .roadmap-bullet-item::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 8px var(--primary);
  transition: all 0.3s ease;
}

.roadmap-bullet-list--circle .roadmap-bullet-item:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 12px var(--primary);
}

/* Enhanced content card styling for these sections */
.prerequisites-content,
.career-opportunities {
  padding: 1rem 0;
}

/* Compact Learning Outcomes */
.learning-outcomes {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.learning-outcomes h3,
.learning-outcomes h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.learning-outcomes h3:first-child,
.learning-outcomes h4:first-child {
  margin-top: 0;
}

.learning-outcomes ul {
  margin-bottom: 0.5rem;
}

.learning-outcomes li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Salary estimates styling */
.salary-estimates {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.salary-estimates h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.salary-estimates ul {
  list-style: none;
  padding: 0;
}

.salary-estimates li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.salary-estimates li:last-child {
  border-bottom: none;
}

.salary-estimates strong {
  color: var(--text-primary);
}

.salary-sources {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-style: italic;
}

/* Responsive adjustments for bullet points */
@media (max-width: 768px) {
  .roadmap-bullet-item {
    padding-left: 2rem;
    font-size: 1rem;
  }
  
  .roadmap-bullet-item::before {
    font-size: 1.1rem;
  }
  
  .roadmap-bullet-item:hover {
    transform: translateX(3px);
  }
  
  /* Compact resource grid adjustments */
  .resource-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .resource-item {
    padding: 0.75rem;
  }
  
  .resource-item a {
    font-size: 0.95rem;
  }
  
  .resource-meta {
    gap: 0.25rem;
  }
  
  .resource-type {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
  
  .resource-description {
    font-size: 0.8rem;
  }
  
  /* Skills list mobile adjustments */
  .skills-list {
    gap: 0.15rem;
  }
  
  .skill-chip {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .skill-chip:not(:last-child)::after,
  .skill-chip:last-child::after {
    margin-left: 0.15rem;
  }
  
  /* Compact Learning Outcomes mobile */
  .learning-outcomes-section .section-header {
    margin-bottom: 1rem;
  }
  
  .learning-outcomes-section .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .learning-outcomes-section .section-subtitle {
    font-size: 0.9rem;
  }
  
  .learning-outcomes {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }
  
  .learning-outcomes h3,
  .learning-outcomes h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
  }
  
  .learning-outcomes li {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 480px) {
  .roadmap-bullet-item {
    padding-left: 1.8rem;
    font-size: 0.95rem;
  }
  
  .roadmap-bullet-item::before {
    font-size: 1rem;
  }
  
  /* Extra compact resource grid for small mobile */
  .resource-item {
    padding: 0.5rem;
  }
  
  .resource-item a {
    font-size: 0.9rem;
  }
  
  .resource-type {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
  
  .resource-description {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }
  
  /* Skills list small mobile adjustments */
  .skills-list {
    gap: 0.1rem;
  }
  
  .skill-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .skill-chip:not(:last-child)::after,
  .skill-chip:last-child::after {
    margin-left: 0.1rem;
  }
}