/* Color Theme */
:root {
  --primary: #5C71F0;
  --primary-dark: #4758C4;
  --primary-light: #D4D5F4;
  --secondary: #8B5CF6;
  --secondary-dark: #704AA0;
  --background: #F8FAFC;
  --accent: #D4D5F4;
  --text-dark: #0F172A;
  --text-light: #475569;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #5C71F0 0%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(135deg, #D4D5F4 0%, #F8FAFC 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  scrollbar-gutter: stable;
}

/* Top navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background: var(--gradient-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.navbar-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 240px;
  /* Ensure space is reserved to prevent shifting */
}

.navbar-username {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
}

.btn-nav-auth {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.btn-nav-auth:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-nav-auth:active {
  transform: translateY(0);
  box-shadow: none;
}

.navbar .logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  /* Stable width for logo */
}


.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  /* Center links in the remaining space */
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.navbar a:hover, .navbar a.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.navbar a.active {
  box-shadow: inset 0 -3px 0 0 white;
  font-weight: 700;
}

/* Hero section */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(92, 113, 240, 0.05) 0%, transparent 50%);
  animation: pulse 15s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.hero h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.25rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.hero .cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.hero .cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Hero badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

/* Features section */
.features-section {
  padding: 5rem 2rem;
  background: #f8f9fc;
  /* Soft contrasting background */
}

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

.section-header .eyebrow {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(92, 113, 240, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-weight: 800;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(92, 113, 240, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.feature-card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Role cards */
.roles {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 5rem 2rem;
  background: #f8f9fc;
}

.roles-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.role-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  width: 320px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.role-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(92, 113, 240, 0.2);
}

.role-card h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
}

.role-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.role-card .role-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.role-card .role-link:hover {
  gap: 0.75rem;
}

.subtle-divider {
  height: 1px;
  background: #d4d5f4;
  /* Using the accent variable's value for clarity */
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Stats section */
.stats-section {
  background: var(--gradient-hero);
  padding: 4rem 2rem;
  color: white;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Featured jobs & blogs */
.cards-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5rem 2rem;
  background: #f0f2f9;
  /* Slightly darker/tinted background */
}

.card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  width: 380px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(92, 113, 240, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card h4 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.card p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #e0e4ff 100%);
}

.cta-section h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-weight: 800;
}

.cta-section p {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

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

/* Footer */
.footer {
  background: #1a1f36;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
  color: white;
  font-weight: 700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Ensure auth modal is always on top */
#authModal {
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  animation: modalFade 0.25s ease;

}

.modal-content h2 {
  margin-top: 0;
  color: var(--text-dark);
}

.modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-content input {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 1.25rem;
  border: 2px solid #e0e4ff;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-content button {
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@keyframes modalFade {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Roadmap hub */
.roadmap-page {
  padding: 2rem 4rem;
}

.roadmap-hero {
  background: linear-gradient(135deg, var(--accent), #eef1ff);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
}

.roadmap-hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.roadmap-hero h1 {
  margin: 0.5rem 0 1rem;
  color: #1f2b73;
  font-size: 2.5rem;
}

.roadmap-hero p {
  max-width: 820px;
  line-height: 1.6;
  color: var(--text-light);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.roadmap-card {
  background: #fff;
  border: 1px solid #dfe3ff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.roadmap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.roadmap-card h2 {
  margin: 0;
  color: #233080;
  font-size: 1.25rem;
}

.roadmap-level {
  margin: 0.5rem 0 0;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

.roadmap-focus {
  margin-top: 1rem;
  line-height: 1.5;
  color: var(--text-light);
}

.roadmap-card h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background-color: #eff2ff;
  color: #2d3a93;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d7ddff;
}

.milestone-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
}

.milestone-list li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .stats-grid {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .roadmap-page {
    padding: 1.5rem;
  }
}

/* ============================================
   ROADMAP PAGE ENHANCED STYLES
   ============================================ */

/* Roadmap Stats Pills */
.roadmap-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.stat-pill svg {
  color: var(--primary);
}

/* Filter Buttons */
.roadmap-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid #dfe3ff;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
}

/* Enhanced Roadmap Card */
.roadmap-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.roadmap-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.roadmap-icon.large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.roadmap-icon.large svg {
  width: 34px;
  height: 34px;
}

/* Level Badges */
.level-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-badge.beginner {
  background: #e8f5e9;
  color: #2e7d32;
}

.level-badge.intermediate {
  background: #fff3e0;
  color: #ef6c00;
}

.level-badge.advanced {
  background: #fce4ec;
  color: #c2185b;
}

/* Progress Section */
.progress-section {
  margin: 1.25rem 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.progress-bar {
  height: 8px;
  background: #e8eaff;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.chip-more {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* View Roadmap Button */
.roadmap-card-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef1ff;
}

.btn-view-roadmap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-roadmap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Roadmap Detail Modal */
.roadmap-detail-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f2ff;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.roadmap-detail {
  padding: 2rem;
}

.roadmap-detail-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef1ff;
}

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

.roadmap-detail-info h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.75rem;
  color: var(--text-dark);
}

.roadmap-detail-info p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Progress Circle */
.roadmap-detail-progress {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.progress-circle {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
}

.progress-bg {
  fill: none;
  stroke: #e0e4ff;
  stroke-width: 3;
}

.progress-value {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dasharray 0.5s ease;
}

.progress-text {
  fill: var(--primary);
  font-size: 0.5rem;
  font-weight: 700;
  text-anchor: middle;
}

.progress-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.progress-stats .stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.progress-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Detail Sections */
.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.detail-section h3 svg {
  color: var(--primary);
}

/* Certifications Section */
.cert-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-column {
  background: #fafbff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #eef1ff;
}

.cert-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.cert-type.free {
  color: #2e7d32;
}

.cert-type.free svg {
  color: #2e7d32;
}

.cert-type.paid {
  color: var(--primary);
}

.cert-type.paid svg {
  color: var(--primary);
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef1ff;
}

.cert-list li:last-child {
  border-bottom: none;
}

.cert-list li.recommended {
  background: linear-gradient(90deg, rgba(92, 113, 240, 0.05) 0%, transparent 100%);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 8px;
}

.cert-list a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.cert-list a:hover {
  color: var(--primary);
}

.cert-list .price {
  background: #e8eaff;
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rec-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Milestone Phases */
.milestone-hint {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
  padding: 0.75rem 1rem;
  background: #fff9e6;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.milestone-phase {
  background: white;
  border: 1px solid #eef1ff;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8f9ff;
  border-bottom: 1px solid #eef1ff;
}

.phase-number {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.phase-info {
  flex: 1;
}

.phase-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.phase-duration {
  font-size: 0.85rem;
  color: var(--text-light);
}

.phase-progress {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Interactive Milestone List */
.milestone-list.interactive {
  padding: 0;
  margin: 0;
  list-style: none;
}

.milestone-task {
  border-bottom: 1px solid #f0f2ff;
}

.milestone-task:last-child {
  border-bottom: none;
}

.task-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.task-checkbox:hover {
  background: #f8f9ff;
}

.task-checkbox input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #d0d5ff;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 1px;
}

.checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.task-checkbox input:checked+.checkmark {
  background: var(--secondary);
  border-color: var(--secondary);
}

.task-checkbox input:checked+.checkmark::after {
  opacity: 1;
}

.task-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.milestone-task.completed .task-text {
  color: var(--text-light);
  text-decoration: line-through;
}

/* Auth Modal */
.auth-modal {
  max-width: 420px;
  padding: 0;
  position: relative;
}

.auth-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.auth-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.auth-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.auth-header p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== AUTH TABS IMPROVED ===== */

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f4f6ff;
  border-radius: 12px;
  margin: 1rem 1.5rem 0.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-light);
  transition: all 0.25s ease;
}

/* ACTIVE TAB */
.auth-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* INACTIVE TAB */
.auth-tab:not(.active):hover {
  background: rgba(92, 113, 240, 0.08);
  color: var(--primary);
}

.auth-form {
  padding: 1.5rem 2rem;
}

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

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

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e4ff;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92, 113, 240, 0.1);
}

.auth-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-benefits {
  padding: 1rem 2rem 2rem;
  background: #f8f9ff;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.auth-benefits p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.auth-context-message {
  margin: 0.75rem 1.5rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  background: rgba(92, 113, 240, 0.08);
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-error {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #d32f2f;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* Responsive adjustments for roadmap */
@media (max-width: 768px) {
  .roadmap-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .roadmap-detail-progress {
    flex-direction: column;
    text-align: center;
  }

  .progress-stats {
    justify-content: center;
  }

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-fade {
  /* Just opacity fade, handled by .reveal base */
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}