:root {
  --accent: #ff5735;
  --dark: #0f1724;
  --muted: #6b7280;
  --card: #ffffffcc;
  --glass: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

a { 
  color: inherit; 
  text-decoration: none; 
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: #e6eef8;
  background: linear-gradient(180deg, #0b0406, #140608 60%, #1a080b);
  padding-top: 70px;
}

@media (min-width: 768px) { 
  body { padding-top: 76px; } 
}

/* --- Header & Glassmorphism --- */
header {
  position: fixed;
  left: 0; 
  right: 0; 
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(20, 6, 8, 0.85), rgba(10, 4, 5, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border 0.3s;
}

/* Subtle accent glow line at the very top of the page */
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.nav { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 24px;  
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: white; 
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.logo { 
  width: 38px; 
  height: 38px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
  background: var(--glass);
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) { 
  .logo { width: 44px; height: 44px; border-radius: 12px; } 
}

.logo img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
}

/* --- Desktop Navigation --- */
nav ul { 
  display: none; 
  gap: 28px; 
  align-items: center; 
  margin: 0; 
  padding: 0; 
  list-style: none; 
}

@media (min-width: 900px) { 
  nav ul { display: flex; } 
}

nav a { 
  color: #e6eef8; 
  font-weight: 500; 
  font-size: 14px; 
  letter-spacing: 0.2px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease; 
}

/* Elegant Underline Hover Effect */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav a:hover { 
  color: #fff; 
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Mobile Hamburger Trigger --- */
.menu-trigger { 
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  gap: 6px; 
  cursor: pointer; 
  width: 40px;
  height: 40px;
  padding: 10px; 
  z-index: 110; 
  border-radius: 8px;
  transition: background 0.2s;
}
.menu-trigger:hover { background: var(--glass); }

.menu-trigger span { 
  width: 20px; 
  height: 2px; 
  background: #e6eef8; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; 
  transform-origin: center;
}

/* Fixed precise 45-degree cross calculations */
.menu-trigger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-trigger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile Slide-out Menu --- */
.mobile-menu { 
  position: fixed; 
  top: 0; 
  right: -100%; 
  width: 85%; 
  max-width: 320px; 
  height: 100vh; 
  background: linear-gradient(145deg, #0f0406, #140608);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 90; 
  display: flex; 
  flex-direction: column; 
  padding: 120px 40px; 
  gap: 30px; 
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.7); 
}

.mobile-menu.active { 
  right: 0; 
}

.mobile-menu a { 
  font-size: 22px; 
  font-weight: 600; 
  color: #e6eef8; 
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.mobile-menu a:hover { 
  color: var(--accent);
  transform: translateX(5px);
}

@media (min-width: 900px) { 
  .menu-trigger, .mobile-menu { display: none; } 
}
/* Hero Section - UPDATED */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-image: url('../../images/CourseRoadmap/roadmap.png');
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  .hero { background-attachment: scroll; min-height: 60vh; }
}

.overlay {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,6,8,0.55), rgba(10,4,5,0.85));
}

.hero-content { position: relative; z-index: 2; max-width: 1000px; text-align: center; }
.kicker { display: inline-block; background: rgba(255,255,255,0.08); padding: 4px 12px; border-radius: 999px; font-weight: 700; margin-bottom: 18px; font-size: 13px; }
h1 { font-size: clamp(32px, 8vw, 52px); margin: 0 0 15px; line-height: 1.1; }
p.lead { color: rgba(236,240,241,0.9); font-size: clamp(16px, 4vw, 20px); margin: 0 auto 24px; max-width: 700px; }
.buttons { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 18px; }
@media (min-width: 480px) { .buttons { flex-direction: row; } }

/* UI Components */
.cta { background: var(--accent); color: white; padding: 8px 16px; border-radius: 10px; font-weight: 700; box-shadow: 0 6px 18px rgba(255,107,53,0.18); text-align: center; transition: transform 0.2s; }
.btn-outline { padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); color: white; font-weight: 700; background: transparent; text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 14px; padding: 20px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(6px); color: #e6eef8; }

/* Syllabus & Remaining Layout */
.syllabus { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 992px) { .syllabus { grid-template-columns: 2fr 1fr; } }
.module { background: linear-gradient(180deg, #ffffff06, #ffffff02); padding: 20px; border-radius: 12px; }
.topic { padding: 15px; background: rgba(255,255,255,0.03); margin-bottom: 12px; border-radius: 10px; border-left: 4px solid var(--accent); }
.sidebar { position: static; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 100px; } }
.badge { display: inline-block; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 999px; font-weight: 700; color: white; font-size: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.reveal { opacity: 0; transform: translateY(20px); transition: all 700ms cubic-bezier(.2,.9,.3,1); }
.reveal.show { opacity: 1; transform: none; }
.parallax-2 { background-image: url('../../images/CourseRoadmap/roadmap1.png'); background-attachment: fixed; background-size: cover; background-position: center; min-height: 30vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; position: relative; }
.status-msg { text-align: center; padding: 40px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px dashed rgba(255,255,255,0.2); margin-top: 20px; }