/* Learnly Upskill — style.css */
/* Extends main.css with upskill-specific styles */

/* ─── FADE IN ANIMATION ──────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO SECTION ───────────────────────────────────── */
.upskill-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.upskill-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 40%, rgba(255,107,0,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 10% 70%, rgba(255,158,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.25);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  font-family: var(--font-primary);
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual — code window illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-code-window {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.06);
  animation: floatWin 4s ease-in-out infinite;
}
@keyframes floatWin {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.code-win-bar {
  background: #2d2d3d;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.code-win-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-win-bar span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}
.code-win-body {
  padding: 1.5rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.9;
  color: #cdd6f4;
}
.c-keyword  { color: #cba6f7; }
.c-func     { color: #89b4fa; }
.c-str      { color: #a6e3a1; }
.c-num      { color: #fab387; }
.c-comment  { color: #585b70; }
.c-orange   { color: #fab387; }

/* ─── SEARCH BAR ─────────────────────────────────────── */
.search-section {
  padding: 2.5rem 0 1rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.search-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.search-wrap i.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
#tech-search {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-secondary);
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#tech-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}
#tech-search::placeholder { color: var(--text-muted); }

/* ─── CATEGORY FILTERS ───────────────────────────────── */
.category-section { padding: 2rem 0 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cat-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cat-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.25s;
}
.cat-filter-btn:hover {
  border-color: var(--cat-color, var(--orange));
  color: var(--cat-color, var(--orange));
  background: color-mix(in srgb, var(--cat-color, var(--orange)) 8%, white);
}
.cat-filter-btn.active {
  background: var(--cat-color, var(--orange));
  border-color: var(--cat-color, var(--orange));
  color: #fff;
}

/* ─── TECH GRID ──────────────────────────────────────── */
.tech-grid-section { padding: 2.5rem 0 5rem; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,107,0,0.18), 0 16px 40px rgba(0,0,0,0.07);
  border-color: rgba(255,107,0,0.3);
}

.tech-card-top {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc, var(--orange)) 8%, white), white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.tech-icon { font-size: 2.4rem; line-height: 1; }
.tech-card-badges {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
}
.badge-topics, .badge-projects {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-topics   { background: rgba(59,130,246,0.12); color: #3b82f6; }
.badge-projects { background: rgba(16,185,129,0.12); color: #10b981; }

.tech-card-body {
  padding: 0 1.5rem 1rem;
  flex: 1;
}
.tech-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.tech-card-body p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
}

.progress-wrap { margin-top: 0.8rem; }
.progress-bar {
  height: 5px;
  background: var(--border-light);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.progress-fill { height: 100%; border-radius: 50px; transition: width 0.5s ease; }
.progress-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

.tech-card-footer {
  padding: 0.85rem 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border-light);
}
.next-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.no-results i { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* ─── LEARN VIEW ─────────────────────────────────────── */
#learn-view { display: none; min-height: 100vh; }

.learn-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: relative;
}
.learn-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.back-btn:hover { border-color: var(--orange); color: var(--orange); }

.lv-tech-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.lv-icon-big { font-size: 1.8rem; flex-shrink: 0; }
.lv-title-wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-title-wrap p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

.lv-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 180px;
}
.lv-progress-track {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 50px;
  overflow: hidden;
}
#lv-progress-fill { height: 100%; border-radius: 50px; transition: width 0.5s ease; }
#lv-progress-pct  { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; }

/* Learn tabs */
.learn-tabs-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  display: flex;
  gap: 0;
}
.learn-tab-btn {
  padding: 0.85rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.learn-tab-btn:hover { color: var(--orange); }
.learn-tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }

.learn-tab-pane { display: none; }
.learn-tab-pane.active { display: block; }

/* ─── INTRO TAB ──────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 2rem;
}
@media (max-width: 700px) { .intro-grid { grid-template-columns: 1fr; } }

.intro-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.intro-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-card p { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; }

.career-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.career-chip  {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-weight: 600;
}

.next-learning-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin: 0 2rem 2rem;
}
.next-label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.next-btn { display: block; font-size: 0.95rem; font-weight: 700; font-family: var(--font-primary); background: none; border: none; cursor: pointer; margin-top: 0.2rem; }

/* ─── LEARN TAB ──────────────────────────────────────── */
.learn-content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 70vh;
}
@media (max-width: 900px) {
  .learn-content-grid { grid-template-columns: 1fr; }
}

/* Level tabs */
.level-tabs-sidebar {
  border-right: 1px solid var(--border-light);
  background: var(--bg-soft);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#level-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.level-tab-btn {
  padding: 0.65rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.level-tab-btn:hover { border-color: var(--orange); color: var(--orange); }
.level-tab-btn.active { border-color: var(--lc, var(--orange)); color: var(--lc, var(--orange)); background: color-mix(in srgb, var(--lc, var(--orange)) 6%, white); }
.level-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.level-count { margin-left: auto; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }

/* Topic list */
.topic-list-wrap { flex: 1; overflow-y: auto; }
.topic-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.2rem;
}
.topic-item:hover   { background: var(--white); }
.topic-item.active  { background: var(--white); box-shadow: var(--shadow-sm); }
.topic-item.done .topic-name { color: #22c55e; }
.topic-num {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.topic-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
}

/* ─── TOPIC CONTENT ──────────────────────────────────── */
.topic-content-area {
  padding: 2rem;
  overflow-y: auto;
}

.topic-header {
  padding: 1.2rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 1.8rem;
}
.topic-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.topic-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.topic-index { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.topic-title { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin: 0; }

.content-section {
  margin-bottom: 2rem;
}
.content-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topic-explanation {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--text-body);
}

.code-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.code-block {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.06);
}
.code-block pre  { margin: 0; }
.code-block code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.8;
  color: #cdd6f4;
  white-space: pre;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-primary);
}
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.copy-btn.copied { background: #dcfce7; border-color: #22c55e; color: #15803d; }

/* Resource row */
.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.res-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.notes-btn   { background: #eff6ff; color: #3b82f6; }
.notes-btn:hover { background: #dbeafe; }
.video-btn   { background: #fef2f2; color: #ef4444; }
.video-btn:hover { background: #fee2e2; }
.practice-btn { background: rgba(255,107,0,0.1); color: var(--orange); border: 1px solid rgba(255,107,0,0.2); }
.practice-btn:hover { background: rgba(255,107,0,0.18); }

/* Navigation */
.topic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* MCQ */
.mcq-section {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1rem;
}
.mcq-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mcq-item { margin-bottom: 1.8rem; }
.mcq-question { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.8rem; }
.mcq-options { display: flex; flex-direction: column; gap: 0.5rem; }
.mcq-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-secondary);
}
.mcq-opt:not(:disabled):hover { border-color: var(--orange); color: var(--orange); }
.mcq-opt.correct { border-color: #22c55e; background: #f0fdf4; color: #166534; }
.mcq-opt.wrong   { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.opt-letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mcq-feedback { font-size: 0.85rem; margin-top: 0.5rem; font-weight: 600; }

/* ─── PROJECTS SECTION ───────────────────────────────── */
.projects-section { padding: 5rem 0; background: var(--bg-soft); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,107,0,0.18), 0 16px 40px rgba(0,0,0,0.07);
  border-color: rgba(255,107,0,0.3);
}
.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }
.project-diff-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
.project-body { padding: 1.2rem 1.4rem 1.4rem; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-dark); }
.project-body p  { font-size: 0.84rem; color: var(--text-body); margin-bottom: 1rem; line-height: 1.6; }
.project-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ─── RESOURCES SECTION ──────────────────────────────── */
.resources-section { padding: 5rem 0; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.resource-cat-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.resource-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 24px rgba(255,107,0,0.15), 0 12px 32px rgba(0,0,0,0.07);
  border-color: rgba(255,107,0,0.25);
}
.res-cat-header {
  padding: 1.2rem 1.4rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border-light);
}
.res-cat-icon { font-size: 1.5rem; }
.res-cat-header h3 { font-size: 1rem; font-weight: 700; color: inherit; margin: 0; }
.res-list { padding: 0.5rem 0; }
.res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s;
  gap: 0.5rem;
}
.res-item:hover { background: var(--bg-soft); }
.res-item > div strong { display: block; font-size: 0.88rem; color: var(--text-dark); font-weight: 600; }
.res-item > div span  { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 0.1rem; }
.res-item > i { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }

/* ─── FUTURE TECH SECTION ────────────────────────────── */
.future-section { padding: 5rem 0; background: var(--bg-soft); }
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.future-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.future-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,107,0,0.18), 0 16px 40px rgba(0,0,0,0.07);
  border-color: var(--fc, rgba(255,107,0,0.3));
}
.future-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.future-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.future-card p  { font-size: 0.82rem; color: var(--text-body); line-height: 1.6; flex: 1; }

/* ─── WHAT MAKES US DIFFERENT ────────────────────────── */
.different-section { padding: 5rem 0; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.diff-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: all 0.25s;
}
.diff-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.diff-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,107,0,0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.diff-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.diff-card p  { font-size: 0.8rem; color: var(--text-body); line-height: 1.55; }

/* ─── FUTURE TECH MODAL ──────────────────────────────── */
.us-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.55);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.us-modal-overlay.active { opacity: 1; pointer-events: all; }
.us-modal-box {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: wModalIn 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes wModalIn {
  from { opacity:0; transform: scale(0.9) translateY(24px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.us-modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 5; line-height: 1;
}
.us-modal-close:hover { background: #fee2d5; color: #ff6b35; border-color: #ff6b35; }
.us-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.us-modal-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.us-modal-header h2 { font-size: 1.4rem; font-weight: 800; color: #111827; margin: 0 0 0.2rem; }
.us-modal-header p  { font-size: 0.85rem; color: #6b7280; margin: 0; }
.us-modal-body {
  padding: 1.5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 1.3rem;
}
.us-modal-section h4 {
  font-size: 0.74rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.us-modal-section p  { color: #374151; font-size: 0.9rem; line-height: 1.75; margin: 0; }
.us-modal-section ul { padding-left: 1.3rem; color: #374151; font-size: 0.88rem; line-height: 1.9; margin: 0; }
.us-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 580px) { .us-modal-grid { grid-template-columns: 1fr; } }
.us-modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.us-modal-tags span { font-size: 0.78rem; padding: 0.25rem 0.75rem; border-radius: 50px; font-weight: 600; }

/* ─── SECTION TITLES ─────────────────────────────────── */
.section-title-wrap { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── CTA BANNER ─────────────────────────────────────── */
.cta-banner-section { padding: 4rem 0 5rem; }
.cta-banner {
  background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, rgba(255,158,0,0.08) 100%);
  border: 1.5px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.12), transparent);
  top: -80px; right: -80px;
  pointer-events: none;
}
.cta-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.8rem; }
.cta-banner p  { color: var(--text-body); margin-bottom: 1.8rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .learn-topbar-inner { gap: 0.75rem; }
  .lv-progress-wrap { display: none; }
  .learn-content-grid { grid-template-columns: 1fr; }
  .level-tabs-sidebar { border-right: none; border-bottom: 1px solid var(--border-light); }
  #level-tabs { flex-direction: row; flex-wrap: wrap; }
  .topic-content-area { padding: 1.2rem; }
  .intro-grid { padding: 1.2rem; }
  .next-learning-card { margin: 0 1.2rem 1.2rem; }
  .us-modal-body { padding: 1.2rem; }
}
/* ══════════════════════════════════════════════════════
   NEW STYLES — Search, Tech Cards, Skills Dev, etc.
══════════════════════════════════════════════════════ */

/* ─── ADVANCED SEARCH ────────────────────────────────── */
.search-section {
  padding: 2.5rem 0 1.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.search-outer {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap i.search-icon {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}
#tech-search {
  width: 100%;
  padding: 1rem 5rem 1rem 3.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-secondary);
  color: #1a1a2e;
  background: #ffffff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
#tech-search:focus {
  border-color: #ff7a18;
  box-shadow: 0 0 0 4px rgba(255,122,24,0.1), 0 4px 20px rgba(0,0,0,0.06);
}
#tech-search::placeholder { color: #aaa; }
.search-kbd-hint {
  position: absolute;
  right: 3.2rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  pointer-events: none;
}
.search-kbd-hint kbd {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #aaa;
  background: #f8f8f8;
  font-family: inherit;
}
@media (max-width: 600px) { .search-kbd-hint { display: none; } }

.search-clear-btn {
  position: absolute;
  right: 1.2rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
  z-index: 2;
}
.search-clear-btn:hover { background: #ffe0d0; color: #ff7a18; }

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #ffffff;
  border: 1.5px solid #e8e8e8;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  z-index: 999;
  overflow: hidden;
  display: none;
  animation: dropdownIn 0.2s ease;
}
.search-dropdown.open { display: block; }
@keyframes dropdownIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.search-group { padding: 0.8rem 0.5rem; }
.search-group + .search-group { border-top: 1px solid #f5f5f5; }
.search-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  padding: 0 0.8rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.search-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.5rem;
}
.search-popular-chip {
  padding: 0.28rem 0.85rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #555;
  background: #f8f9fc;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.search-popular-chip:hover {
  border-color: #ff7a18;
  color: #ff7a18;
  background: rgba(255,122,24,0.06);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 0.2rem;
}
.search-result-item:hover, .search-result-item.search-highlighted {
  background: #fff8f2;
}
.sr-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sr-info { flex: 1; }
.sr-info strong {
  display: block;
  font-size: 0.88rem;
  color: #1a1a2e;
  font-weight: 600;
}
.sr-info strong mark {
  background: rgba(255,122,24,0.2);
  color: #ff7a18;
  border-radius: 3px;
  padding: 0 2px;
}
.sr-info span { font-size: 0.74rem; color: #aaa; }
.sr-arrow { color: #ddd; font-size: 0.75rem; }
.sr-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.3rem;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.sr-remove:hover { color: #ef4444; background: #fee2e2; }
.search-no-results {
  text-align: center;
  padding: 1rem;
  color: #aaa;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ─── EXPLORE TECHNOLOGIES HEADER ────────────────────── */
.explore-tech-header {
  text-align: center;
  margin-bottom: 3rem;
}
.explore-tech-header .section-title { color: #1a1a2e; }
.explore-tech-header .section-eyebrow {
  color: #ff7a18;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ─── PREMIUM TECH CARDS ─────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}
@media (max-width: 960px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card {
  background: #ffffff;
  border: 1.5px solid #efefef;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  min-height: 280px;
}
.tech-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 28px rgba(255,122,24,0.2), 0 20px 48px rgba(0,0,0,0.07);
  border-color: rgba(255,122,24,0.35);
}

.tech-card-head {
  padding: 1.8rem 1.8rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tc-logo-wrap {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tc-svg-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-svg-icon svg { width: 100%; height: 100%; }
.tc-emoji-icon { font-size: 2.2rem; line-height: 1; }

/* Progress ring */
.tc-progress-ring {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.tc-progress-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.tc-progress-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #555;
}

.tech-card-body { padding: 1.2rem 1.8rem; flex: 1; }
.tc-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
}
.tc-desc {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}
.tc-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tc-diff-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.tc-topics-count {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 500;
}

.tech-card-foot {
  padding: 0 1.8rem 1.8rem;
  margin-top: auto;
}
.tc-learn-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--tc, #ff7a18);
  color: var(--tc, #ff7a18);
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.tc-learn-btn:hover {
  background: var(--tc, #ff7a18);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,122,24,0.3);
  transform: translateY(-1px);
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}
.no-results i { font-size: 2rem; color: #ddd; }

/* ─── LEARN VIEW UPDATES ─────────────────────────────── */
.intro-start-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid #f3f4f6;
}
.next-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  transition: opacity 0.2s;
}
.next-btn:hover { opacity: 0.75; }
.mark-done-btn {
  padding: 0.6rem 1.6rem;
  font-size: 0.9rem;
}

/* ─── SKILLS DEVELOPMENT CENTER ──────────────────────── */
.skills-dev-section { padding: 5rem 0; background: #f8f9fc; }
.skills-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}
@media (max-width: 960px) { .skills-dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .skills-dev-grid { grid-template-columns: 1fr; } }

.sd-card {
  background: #ffffff;
  border: 1.5px solid #efefef;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(255,122,24,0.12), 0 16px 40px rgba(0,0,0,0.06);
  border-color: var(--sdc, rgba(255,107,0,0.3));
}
.sd-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f5f5f7;
}
.sd-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.sd-head-text h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 0.3rem;
}
.sd-head-text p {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}
.sd-topics { padding: 0.5rem 0.75rem 1rem; }
.sd-topic-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.sd-topic-item:hover { background: #f8f9fc; }
.sd-topic-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sd-topic-item span {
  font-size: 0.83rem;
  font-weight: 500;
  color: #333;
  flex: 1;
}
.sd-arrow { font-size: 0.7rem; opacity: 0.5; }
.sd-topic-item:hover .sd-arrow { opacity: 1; }

/* Skill Modal extras */
.us-modal-section {
  background: #f9f9fb;
  border: 1px solid #ebebf0;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

/* ─── FUTURE TECH — Updated ──────────────────────────── */
.future-section { padding: 5rem 0; }
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
}
.future-card {
  background: #ffffff;
  border: 1.5px solid #efefef;
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.future-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,107,0,0.14), 0 16px 40px rgba(0,0,0,0.07);
  border-color: var(--fc, rgba(255,107,0,0.3));
}
.future-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.future-card h3 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin: 0; }
.future-card p  { font-size: 0.82rem; color: #666; line-height: 1.6; flex: 1; margin: 0; }

/* Wider future modal */
.us-modal-wide { max-width: 820px; }

/* ─── RESPONSIVE ADDITIONS ───────────────────────────── */
@media (max-width: 768px) {
  .skills-dev-grid { grid-template-columns: 1fr; }
  .search-section { padding: 1.8rem 0 1rem; }
}
/* ═══════════════════════════════════════════════════
   LEARN VIEW UI FIXES — All 6 Issues
═══════════════════════════════════════════════════ */

/* ── Issue 6: Reading Progress Bar (fixed top) ─── */
.reading-progress-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-light);
  z-index: 999;
  pointer-events: none;
}
.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Breadcrumb + Progress Strip (static, in document flow) ─── */
.lv-topbar {
  position: relative;
  background: #f6f8fb;
  border-bottom: 1px solid #e8ecf0;
}
.lv-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  gap: 1rem;
}
.lv-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.lv-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lv-back-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }

/* Issue 6: Breadcrumb */
.lv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.lv-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.lv-breadcrumb a:hover { color: var(--orange); }
.lv-breadcrumb i { font-size: 0.55rem; }
.lv-breadcrumb span { color: var(--text-dark); font-weight: 600; }

.lv-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.lv-prog-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lv-prog-track {
  width: 120px;
  height: 6px;
  background: var(--border-light);
  border-radius: 50px;
  overflow: hidden;
}
.lv-prog-track > div {
  height: 100%;
  border-radius: 50px;
  transition: width 0.5s ease;
}
.lv-prog-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  min-width: 2.5rem;
}
.lv-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.lv-mobile-menu-btn:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 900px) {
  .lv-mobile-menu-btn { display: flex; }
  .lv-prog-wrap { display: none; }
  .lv-breadcrumb { display: none; }
}

/* ── Issue 1 & 4: Course Hero Section ─── */
.course-header {
  padding: 4rem 1.5rem 5rem;   /* bottom 5rem = ~80px spacing below */
  background: linear-gradient(
    135deg,
    rgba(255,107,0,0.04) 0%,
    rgba(255,255,255,1) 50%,
    rgba(99,102,241,0.03) 100%
  );
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.course-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.07), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.course-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .course-header-inner { flex-direction: column; gap: 1.5rem; }
}
.course-header-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-header-text { flex: 1; min-width: 0; }
.course-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.course-diff-tag,
.course-lessons-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
}
.course-lessons-tag {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.course-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.course-header-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 600px;
}
.course-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Navigation Strip — capsule style, static in document flow ─── */
.learn-tabs-bar {
  position: relative;          /* NEVER sticky, NEVER fixed */
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 50px;
  padding: 6px;
  margin: 30px auto 50px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.learn-tabs-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.learn-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: 50px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-primary);
  white-space: nowrap;
}
.learn-tab-btn:hover { color: var(--orange, #ff6b00); }
.learn-tab-btn.active {
  background: var(--orange, #ff6b00);
  color: #ffffff;
}
/* Mobile Modules button stays hidden unless overridden */
.lv-tab-modules-btn { display: none; }
.learn-tab-pane { display: none; }
.learn-tab-pane.active { display: block; }

/* ── Issue 1: Introduction Section spacing ─── */
.introduction-section {
  padding: 3.5rem 1.5rem 4rem;   /* Issue 1 margin-top: 40px equiv */
}
.intro-content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Issue 6: Professional Workspace Layout ─── */
.learn-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--header-height) - 53px - 45px);
  position: relative;
}

/* Sidebar — sticky on desktop so topic list stays visible while scrolling lesson */
.lw-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-height);        /* only the site header is sticky now */
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.lw-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}
.lw-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.lw-sidebar-close {
  display: none;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Level Tabs in sidebar */
.lw-level-tabs {
  padding: 0.75rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.level-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-primary);
  width: 100%;
}
.level-tab-btn:hover { border-color: var(--orange); color: var(--orange); }
.level-tab-btn.active {
  background: var(--orange-pale);
  border-color: var(--orange);
  color: var(--orange);
}
.level-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.level-count {
  margin-left: auto;
  font-size: 0.68rem;
  background: var(--bg-soft);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Topic list in sidebar */
.lw-topic-list { flex: 1; padding: 0.25rem 0.75rem 1.5rem; }
.topic-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 0.15rem;
}
.topic-item:hover   { background: var(--bg-soft); }
.topic-item.active  { background: var(--orange-pale); }
.topic-item.active .topic-name { color: var(--orange); font-weight: 600; }
.topic-item.done .topic-name { color: #22c55e; }
.topic-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.topic-name { font-size: 0.82rem; color: var(--text-dark); line-height: 1.35; }

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.4);
  z-index: 198;
}
.sidebar-backdrop.show { display: block; }

/* Mobile sidebar */
@media (max-width: 900px) {
  .learn-workspace { grid-template-columns: 1fr; }
  .lw-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    z-index: 199;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
  .lw-sidebar.open { left: 0; }
  .lw-sidebar-close { display: flex; }
}

/* ── Issue 6: Main Content — max 900px centered ─── */
.lw-main {
  min-width: 0;
  background: var(--bg);
}

/* ── Level Badge — static, scrolls naturally with content ─── */
.lesson-progress-indicator {
  position: relative;          /* NEVER sticky, NEVER fixed */
  background: transparent;
  padding: 0 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#lpi-level-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--orange, #ff6b00);
  color: #111827;
  background: #ffffff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.lpi-steps {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  align-items: center;
}
.lpi-step {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
}
.lpi-step:hover { opacity: 0.8; }
.lpi-step.active { transform: none; }
.lpi-step.done { background: #22c55e; }

/* ── Lesson Section — max 900px centered ─── */
.lesson-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  scroll-margin-top: calc(var(--header-height) + 16px);  /* only header is sticky */
}
@media (max-width: 768px) {
  .lesson-section { padding: 2rem 1.2rem 4rem; }
}

.lesson-placeholder {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.lesson-placeholder i {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}
.lesson-placeholder p { margin-bottom: 1.5rem; font-size: 1rem; }

/* ── Issue 5: Lesson Layout with exact spacings ─── */

/* Lesson Title — margin-bottom: 24px */
.lesson-title-block {
  margin-bottom: 24px;
  scroll-margin-top: 130px;       /* Issue 3 fix */
  animation: fadeInLesson 0.35s ease both;
}
@keyframes fadeInLesson {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lesson-title-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.lesson-level-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lesson-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.lesson-done-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
}
.lesson-done-chip i { margin-right: 0.2rem; }
.lesson-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

/* Lesson Description — margin-bottom: 32px */
.lesson-description {
  margin-bottom: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text-body);
}
.lesson-description p { margin: 0; }

/* Lesson Example — margin-bottom: 32px */
.lesson-example {
  margin-bottom: 32px;
}
.lesson-example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.lesson-example-header h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

/* Code block — keep existing .code-block styles, just add animation */
.lesson-example .code-block {
  animation: fadeInLesson 0.4s ease 0.1s both;
}

/* Lesson Notes — margin-bottom: 32px */
.lesson-notes {
  margin-bottom: 32px;
}
.lesson-notes h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.lesson-notes-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Lesson Questions — margin-top: 40px */
.lesson-questions {
  margin-top: 40px;
  margin-bottom: 32px;
}
.lq-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.lq-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.lq-empty {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Issue 5: Navigation Bar — 40px top spacing */
.lesson-nav-bar {
  margin-top: 40px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lesson-nav-prev,
.lesson-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-primary);
}
.lesson-nav-prev:hover:not(:disabled),
.lesson-nav-next:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.lesson-nav-prev:disabled,
.lesson-nav-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lesson-mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.lesson-mark-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }

/* ── MCQ section styles (keep existing, just ensure it shows on button click) ─── */
#mcq-section { margin-top: 0; }

/* ── Intro grid cleanup inside introduction-section ─── */
.introduction-section .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .introduction-section .intro-grid { grid-template-columns: 1fr; }
}
.introduction-section .intro-start-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* ── Responsive tweaks ─── */
@media (max-width: 1024px) {
  .learn-workspace { grid-template-columns: 240px 1fr; }
  .lw-sidebar { width: 240px; }
}
@media (max-width: 768px) {
  /* Level badge: compact */
  .lesson-progress-indicator { padding: 0 1rem 0.75rem; }
  .lpi-step { width: 14px; }

  /* Tab capsule: full-width on mobile, allow horizontal scroll */
  .learn-tabs-bar {
    max-width: 100%;
    margin: 20px 1rem 32px;
    border-radius: 50px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .learn-tabs-bar::-webkit-scrollbar { display: none; }

  /* Show Modules tab button on mobile */
  .lv-tab-modules-btn { display: flex !important; }
}