/* ==========================================================================
   codingforcareer — Core Design System & Stylesheet
   Modern, Light-Themed, Developer-First Educational Platform
   CodingForCareer Design System — 2026 Modern Engineering Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary & Accents */
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-300: #A5B4FC;
  --primary-400: #818CF8;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
  --primary-900: #312E81;

  /* Fresh Accents (Emerald / Teal / Cyan) */
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;
  --amber-500: #F59E0B;
  --rose-500: #EF4444;

  /* Light Theme Palette (Cool, clean, high-contrast) */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F8FAFC;

  --border-subtle: #F1F5F9;
  --border-default: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-focus: #4F46E5;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-inverse: #FFFFFF;

  /* Code Blocks & IDE Tokens */
  --code-bg: #0F172A;
  --code-bg-header: #1E293B;
  --code-text: #E2E8F0;
  --code-border: #334155;
  --code-accent: #38BDF8;
  --code-keyword: #818CF8;
  --code-string: #34D399;
  --code-comment: #94A3B8;

  /* Typography */
  --font-sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Elevations / Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px -5px rgba(79, 70, 229, 0.35);

  /* Layout dimensions */
  --header-height: 64px;
  --techbar-height: 44px;
  --sidebar-width: 320px;
  --toc-width: 250px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens (Bonus Toggle Feature) */
[data-theme="dark"] {
  --bg-page: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-alt: #1F2937;
  --bg-surface-elevated: #1E293B;
  --bg-subtle: #162032;

  --border-subtle: #1F2937;
  --border-default: #334155;
  --border-strong: #475569;

  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-light: #94A3B8;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* --------------------------------------------------------------------------
   3. Top Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: linear-gradient(90deg, #312E81 0%, #4338CA 50%, #0F766E 100%);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-accent {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.announcement-link {
  color: #6EE7B7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-link:hover {
  color: #A7F3D0;
}

.announcement-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  padding: 0 4px;
  line-height: 1;
}

.announcement-close:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4. Site Header & Brand Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 24, 39, 0.94);
}

.header-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
}

.mobile-menu-btn .icon {
  width: 22px;
  height: 22px;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 10;
  outline: none;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  cursor: pointer !important;
}

.brand-logo-full {
  height: 50px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  cursor: pointer !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 640px) {
  .brand-logo-full {
    height: 40px;
    max-width: 200px;
  }
}

.footer-logo .brand-logo-full {
  height: 58px;
  max-width: 285px;
}

/* Brand Logo: Normal Theme Presentation */
.brand-logo-light {
  display: block;
}

.brand-logo-dark {
  display: none !important;
}

[data-theme="dark"] .brand-logo-light {
  display: none !important;
}

[data-theme="dark"] .brand-logo-dark {
  display: block !important;
}



/* Main Nav Links (Moved to Left beside Logo) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  margin-left: 12px;
  flex-wrap: nowrap;
}

/* Navigation Links - Initial Normal Color with Dynamic Color-Out on Hover / Active */
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.82;
  filter: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.22s ease,
              filter 0.22s ease,
              opacity 0.22s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.18);
  opacity: 1;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-item.active {
  font-weight: 700;
}

/* Base fallback for hover */
.nav-item:hover {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

/* 1. Home - Colors out to Indigo */
#nav-home:hover,
#nav-home.active {
  color: #4F46E5;
  background-color: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}
#nav-home:hover .nav-icon,
#nav-home.active .nav-icon {
  color: #4F46E5;
  filter: drop-shadow(0 0 5px rgba(79, 70, 229, 0.45));
}

/* 1.1 Analyse Resume - Colors out to Indigo */
#nav-resume:hover,
#nav-resume.active {
  color: #4F46E5;
  background-color: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}
#nav-resume:hover .nav-icon,
#nav-resume.active .nav-icon {
  color: #4F46E5;
  filter: drop-shadow(0 0 5px rgba(79, 70, 229, 0.45));
}

/* 2. Try Editor - Colors out to Emerald */
#nav-playground:hover,
#nav-playground.active {
  color: #059669;
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}
#nav-playground:hover .nav-icon,
#nav-playground.active .nav-icon {
  color: #10B981;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}
#nav-playground:hover .badge-mini,
#nav-playground.active .badge-mini {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45);
}

/* 3. Practice & Quiz - Colors out to Violet/Purple */
#nav-quizzes:hover,
#nav-quizzes.active {
  color: #7C3AED;
  background-color: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.18);
}
#nav-quizzes:hover .nav-icon,
#nav-quizzes.active .nav-icon {
  color: #8B5CF6;
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

/* 4. Roadmaps - Colors out to Amber/Warm Gold */
#nav-roadmaps:hover,
#nav-roadmaps.active {
  color: #D97706;
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}
#nav-roadmaps:hover .nav-icon,
#nav-roadmaps.active .nav-icon {
  color: #F59E0B;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

/* 5. Cheat Sheets - Colors out to Cyan */
#nav-cheatsheets:hover,
#nav-cheatsheets.active {
  color: #0891B2;
  background-color: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.18);
}
#nav-cheatsheets:hover .nav-icon,
#nav-cheatsheets.active .nav-icon {
  color: #06B6D4;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

/* Dark Mode Color-Out Enhancements */
[data-theme="dark"] #nav-home:hover,
[data-theme="dark"] #nav-home.active,
body.dark-mode #nav-home:hover,
body.dark-mode #nav-home.active {
  color: #818CF8;
  background-color: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.28);
}
[data-theme="dark"] #nav-home:hover .nav-icon,
[data-theme="dark"] #nav-home.active .nav-icon,
body.dark-mode #nav-home:hover .nav-icon,
body.dark-mode #nav-home.active .nav-icon {
  color: #818CF8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.65));
}

[data-theme="dark"] #nav-resume:hover,
[data-theme="dark"] #nav-resume.active,
body.dark-mode #nav-resume:hover,
body.dark-mode #nav-resume.active {
  color: #818CF8;
  background-color: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.28);
}
[data-theme="dark"] #nav-resume:hover .nav-icon,
[data-theme="dark"] #nav-resume.active .nav-icon,
body.dark-mode #nav-resume:hover .nav-icon,
body.dark-mode #nav-resume.active .nav-icon {
  color: #818CF8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.65));
}

[data-theme="dark"] #nav-playground:hover,
[data-theme="dark"] #nav-playground.active,
body.dark-mode #nav-playground:hover,
body.dark-mode #nav-playground.active {
  color: #34D399;
  background-color: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.28);
}
[data-theme="dark"] #nav-playground:hover .nav-icon,
[data-theme="dark"] #nav-playground.active .nav-icon,
body.dark-mode #nav-playground:hover .nav-icon,
body.dark-mode #nav-playground.active .nav-icon {
  color: #34D399;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.65));
}

[data-theme="dark"] #nav-quizzes:hover,
[data-theme="dark"] #nav-quizzes.active,
body.dark-mode #nav-quizzes:hover,
body.dark-mode #nav-quizzes.active {
  color: #A78BFA;
  background-color: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.28);
}
[data-theme="dark"] #nav-quizzes:hover .nav-icon,
[data-theme="dark"] #nav-quizzes.active .nav-icon,
body.dark-mode #nav-quizzes:hover .nav-icon,
body.dark-mode #nav-quizzes.active .nav-icon {
  color: #A78BFA;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.65));
}

[data-theme="dark"] #nav-roadmaps:hover,
[data-theme="dark"] #nav-roadmaps.active,
body.dark-mode #nav-roadmaps:hover,
body.dark-mode #nav-roadmaps.active {
  color: #FBBF24;
  background-color: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
}
[data-theme="dark"] #nav-roadmaps:hover .nav-icon,
[data-theme="dark"] #nav-roadmaps.active .nav-icon,
body.dark-mode #nav-roadmaps:hover .nav-icon,
body.dark-mode #nav-roadmaps.active .nav-icon {
  color: #FBBF24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65));
}

[data-theme="dark"] #nav-cheatsheets:hover,
[data-theme="dark"] #nav-cheatsheets.active,
body.dark-mode #nav-cheatsheets:hover,
body.dark-mode #nav-cheatsheets.active {
  color: #38BDF8;
  background-color: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.28);
}
[data-theme="dark"] #nav-cheatsheets:hover .nav-icon,
[data-theme="dark"] #nav-cheatsheets.active .nav-icon,
body.dark-mode #nav-cheatsheets:hover .nav-icon,
body.dark-mode #nav-cheatsheets.active .nav-icon {
  color: #38BDF8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}

.badge-mini {
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quick Search Trigger */
.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  width: 250px;
}

.search-trigger-btn:hover {
  border-color: var(--primary-400);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6366F1;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.search-trigger-btn:hover .icon-sm {
  color: #4F46E5;
  transform: scale(1.12);
}

[data-theme="dark"] .search-trigger-btn .icon-sm {
  color: #818CF8;
}

.search-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.search-kbd {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Icon Buttons (Theme Toggle) */
.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--primary-600);
  border-color: var(--primary-300);
  background-color: var(--primary-50);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Theme Toggle Button & Vivid Colored Icons */
#btn-theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-theme-toggle:hover {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE047 100%);
  border-color: #F59E0B;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38);
  transform: translateY(-2px);
}

/* Light Mode: Radiant Sun Icon */
.icon-sun {
  width: 21px;
  height: 21px;
  color: #D97706;
  stroke: #B45309;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.7));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.icon-sun circle {
  fill: #FDE047;
  stroke: #D97706;
  stroke-width: 2;
}

.icon-sun line {
  stroke: #D97706;
  stroke-width: 2.2;
  stroke-linecap: round;
}

#btn-theme-toggle:hover .icon-sun {
  transform: rotate(45deg) scale(1.15);
}

.icon-moon {
  display: none;
}

/* Dark Mode: Luminous Celestial Moon Icon */
[data-theme="dark"] #btn-theme-toggle {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(30, 58, 138, 0.45) 100%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] #btn-theme-toggle:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(30, 58, 138, 0.65) 100%);
  border-color: #38BDF8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
  width: 21px;
  height: 21px;
  color: #38BDF8;
  stroke: #0284C7;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .icon-moon path {
  fill: rgba(56, 189, 248, 0.45);
  stroke: #38BDF8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] #btn-theme-toggle:hover .icon-moon {
  transform: rotate(-25deg) scale(1.15);
}

/* User Progress Pill */
.user-progress-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #A7F3D0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.user-progress-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .user-progress-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.xp-icon {
  font-size: 1rem;
}

.xp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.xp-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--emerald-700);
}

[data-theme="dark"] .xp-val {
  color: #34D399;
}

.level-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Tech Subbar (CodingForCareer Technology Navigation)
   -------------------------------------------------------------------------- */
.tech-subbar {
  display: block !important;
  visibility: visible !important;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  overflow-x: auto;
}

.category-tabs-wrapper {
  display: block !important;
  visibility: visible !important;
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
  overflow-x: auto;
}

.category-tabs {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cat-tab-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.cat-tab-btn.active {
  background-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
}



.tech-subbar-container {
  display: flex !important;
  visibility: visible !important;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--techbar-height);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.tech-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tech-pill:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-alt);
}

.tech-pill.active {
  background-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.tech-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* --------------------------------------------------------------------------
   6. Main App Views Container
   -------------------------------------------------------------------------- */
.app-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-container {
  display: none;
  width: 100%;
}

.view-container.active {
  display: flex;
}



.view-quizzes,

.view-roadmaps {

  width: 100%;

  display: none;

  flex-direction: column;

}



.view-quizzes.active,

.view-roadmaps.active {

  display: flex !important;

  flex-direction: column !important;

}

/* --------------------------------------------------------------------------
   7. VIEW 1: TUTORIALS & ARTICLE READER (3-Column Layout)
   -------------------------------------------------------------------------- */
.view-tutorials {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: none;
  min-height: calc(100vh - 148px);
  box-sizing: border-box;
}

.view-tutorials.active {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

/* Left Sidebar (Desktop: Sticky, Full-Height Chapter Navigator) */
.sidebar {
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  flex: 0 0 330px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 148px;
  height: calc(100vh - 148px);
  max-height: calc(100vh - 148px);
  overflow: hidden;
  z-index: 50;
  transition: transform var(--transition-normal);
  box-sizing: border-box;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .sidebar {
    width: 310px;
    min-width: 310px;
    max-width: 310px;
    flex: 0 0 310px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 320px;
  }
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-track-icon {
  display: none !important;
}

.sidebar-track-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.sidebar-track-level {
  font-size: 0.72rem;
  color: var(--emerald-600);
  font-weight: 600;
}

.sidebar-close-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-light);
}

.sidebar-filter-wrapper {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-filter-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.85rem;
}

.sidebar-filter-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background-color: var(--bg-surface);
}

/* Chapter Tree */
.sidebar-chapters {
  flex: 1 1 auto;
  padding: 12px 10px 40px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sidebar-chapters::-webkit-scrollbar {
  width: 5px;
}

.sidebar-chapters::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-chapters::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

.sidebar-chapters::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.chapter-group {
  margin-bottom: 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chapter-group:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

/* HIGHLIGHTED MAIN HEADINGS */
.chapter-heading {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-left: 4px solid var(--primary-600, #4f46e5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  letter-spacing: 0.2px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .chapter-heading {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(139, 92, 246, 0.14) 100%);
  border-left: 4px solid var(--primary-400, #818cf8);
  border-bottom: 1px solid rgba(99, 102, 241, 0.28);
}

.chapter-heading:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(79, 70, 229, 0.12) 100%);
  border-left-color: var(--primary-500, #6366f1);
  transform: translateX(1px);
}

[data-theme="dark"] .chapter-heading:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.34) 0%, rgba(139, 92, 246, 0.20) 100%);
}

.chapter-heading-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
}

[data-theme="dark"] .chapter-heading-title {
  color: #ffffff;
}

.chapter-chevron {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-600, #4f46e5);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

[data-theme="dark"] .chapter-chevron {
  color: var(--primary-400, #818cf8);
}

.chapter-group.collapsed .chapter-chevron {
  transform: rotate(-90deg);
}

.chapter-group.collapsed .topic-list {
  display: none;
}

.chapter-group.collapsed .chapter-heading {
  border-bottom: none;
}

.chapter-count {
  display: none !important;
}

.topic-list {
  list-style: none;
  padding: 6px 8px 8px 8px;
  margin: 0;
}

.subchapter-item-header {
  list-style: none;
  padding: 8px 2px 4px 2px;
  margin-top: 4px;
  user-select: none;
}

.subchapter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-left: 3px solid #0ea5e9;
}

[data-theme="dark"] .subchapter-label {
  color: #38bdf8;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(99, 102, 241, 0.16) 100%);
  border-color: rgba(14, 165, 233, 0.35);
  border-left-color: #38bdf8;
}

.subchapter-indicator {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0ea5e9;
  line-height: 1;
}

[data-theme="dark"] .subchapter-indicator {
  color: #38bdf8;
}

.subchapter-badge {
  display: none !important;
}


.topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  cursor: pointer;
  position: relative;
  gap: 8px;
}

.topic-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.topic-title-text {
  font-size: 0.84rem;
  line-height: 1.38;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.topic-sub-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.topic-item:hover {
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  transform: translateX(2px);
}

.topic-item:hover .topic-sub-bullet {
  background-color: var(--primary-500);
  transform: scale(1.3);
}

.topic-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.05) 100%);
  color: var(--primary-600);
  font-weight: 700;
  border-left: 3px solid var(--primary-600);
}

.topic-item.active .topic-sub-bullet {
  background-color: var(--primary-600);
  box-shadow: 0 0 6px rgba(79, 70, 229, 0.6);
  transform: scale(1.4);
}

[data-theme="dark"] .topic-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.10) 100%);
  color: #a5b4fc;
  border-left-color: var(--primary-400);
}

.topic-badge {
  font-size: 0.58rem;
  padding: 1.5px 5.5px;
  border-radius: var(--radius-full);
  font-weight: 750;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}

.badge-code {
  background-color: #E0E7FF;
  color: #4338CA;
}

.badge-quiz {
  background-color: #FEF3C7;
  color: #B45309;
}

.badge-hot {
  background-color: #FEE2E2;
  color: #B91C1C;
}

/* Sidebar Footer & Progress */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-default);
  background-color: var(--bg-surface);
}

.progress-box {
  background-color: var(--bg-surface-alt);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--primary-500));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Center Content Reader */
.content-area {
  flex: 1;
  min-width: 0;
  padding: 32px 48px;
  background-color: var(--bg-surface);
  max-width: 960px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs .sep {
  color: var(--border-strong);
}

.breadcrumbs .crumb-active {
  font-weight: 600;
  color: var(--primary-600);
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-action:hover {
  background-color: var(--bg-surface-alt);
  color: var(--primary-600);
  border-color: var(--primary-300);
}

.btn-action.bookmarked {
  background-color: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-400);
}

/* Article Typography & Elements */
.article-body {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.2;
}

.article-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.inline-code {
  font-family: var(--font-mono);
  background-color: var(--bg-surface-alt);
  color: var(--primary-700);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .inline-code {
  color: var(--primary-300);
}

/* Callout Boxes (Info, Warning, Interview Tip, Note) */
.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
  background-color: var(--bg-surface-alt);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.callout-info {
  border-color: var(--primary-600);
  background-color: #EEF2FF;
}

.callout-info .callout-title {
  color: var(--primary-800);
}

[data-theme="dark"] .callout-info {
  background-color: rgba(79, 70, 229, 0.15);
}

.callout-tip {
  border-color: var(--emerald-600);
  background-color: #ECFDF5;
}

.callout-tip .callout-title {
  color: var(--emerald-700);
}

[data-theme="dark"] .callout-tip {
  background-color: rgba(16, 185, 129, 0.15);
}

.callout-interview {
  border-color: #F59E0B;
  background-color: #FFFBEB;
}

.callout-interview .callout-title {
  color: #B45309;
}

[data-theme="dark"] .callout-interview {
  background-color: rgba(245, 158, 11, 0.15);
}

/* ==========================================================================
   Mathematical Formula Cards & Typesetting
   ========================================================================== */
.math-formula-card {
  margin: 22px 0;
  padding: 18px 24px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.07);
  position: relative;
  overflow-x: auto;
}

[data-theme="dark"] .math-formula-card,
body.dark-mode .math-formula-card {
  background: rgba(30, 27, 75, 0.35);
  border-color: rgba(99, 102, 241, 0.3);
  border-left-color: #818cf8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.math-formula-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.math-formula-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .math-formula-badge,
body.dark-mode .math-formula-badge {
  background: rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
}

.math-formula-body {
  font-family: 'JetBrains Mono', 'Cambria Math', 'KaTeX_Main', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  text-align: center;
  padding: 10px 6px;
  letter-spacing: 0.5px;
  overflow-x: auto;
  line-height: 1.6;
}

[data-theme="dark"] .math-formula-body,
body.dark-mode .math-formula-body {
  color: #f8fafc;
}

.math-inline {
  font-family: 'JetBrains Mono', 'Cambria Math', serif;
  font-style: italic;
  font-weight: 600;
  color: #4f46e5;
  padding: 0 3px;
  white-space: nowrap;
}

[data-theme="dark"] .math-inline,
body.dark-mode .math-inline {
  color: #a5b4fc;
}

.math-fraction {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  padding: 0 6px;
  line-height: 1.15;
  font-size: 0.94em;
}

.math-num {
  border-bottom: 1.6px solid currentColor;
  padding-bottom: 2px;
  display: block;
}

.math-denom {
  padding-top: 2px;
  display: block;
}

/* Code Snippet Card (CodingForCareer Interactive Syntax) */
.code-snippet-box {
  background-color: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--code-border);
}

.snippet-header {
  background-color: var(--code-bg-header);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--code-border);
}

.snippet-lang-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snippet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-snippet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.btn-snippet:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.btn-try-it {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
}

.btn-try-it:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

.snippet-body {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--code-text);
  white-space: pre;
}

/* Code Blocks & Mockups in Tutorials (PyKafka, GenAI, Django, etc.) */
.code-block,
.code-mockup {
  background: #0B1120 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #1E293B !important;
  box-shadow: var(--shadow-sm);
}

.code-block .code-header,
.code-mockup .code-header {
  background: #0F172A !important;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #94A3B8 !important;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block pre,
.code-mockup pre,
.article-body .code-block pre,
.article-body .code-mockup pre,
.article-html .code-block pre,
.article-html .code-mockup pre {
  margin: 0 !important;
  padding: 16px 20px !important;
  overflow-x: auto !important;
  font-family: var(--font-mono) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  color: #E2E8F0 !important;
  background: transparent !important;
  white-space: pre !important;
}

.code-block code,
.code-mockup code,
.article-body .code-block code,
.article-body .code-mockup code,
.article-html .code-block code,
.article-html .code-mockup code {
  color: #E2E8F0 !important;
  font-family: var(--font-mono) !important;
  background: transparent !important;
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: pre !important;
}

/* CodingForCareer "Try It Yourself" Callout Card */
.try-yourself-card {
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #86EFAC;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .try-yourself-card {
  background: linear-gradient(180deg, #064E3B 0%, #065F46 100%);
  border-color: #059669;
}

.try-card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

[data-theme="dark"] .try-card-badge {
  color: #6EE7B7;
}

.try-yourself-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 8px;
}

[data-theme="dark"] .try-yourself-card h4 {
  color: #FFFFFF;
}

.try-preview-box {
  background: #FFFFFF;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #1F2937;
  overflow-x: auto;
}

[data-theme="dark"] .try-preview-box {
  background: #111827;
  color: #E2E8F0;
  border-color: #047857;
}

.btn-launch-try {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #059669;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all var(--transition-fast);
}

.btn-launch-try:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Tables in tutorials */
.tutorial-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.tutorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.tutorial-table th,
.tutorial-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
}

.tutorial-table th {
  background-color: var(--bg-surface-alt);
  font-weight: 700;
  color: var(--text-main);
}

.tutorial-table tr:hover td {
  background-color: var(--bg-subtle);
}

/* Chapter Nav Buttons (Next / Prev) */
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  gap: 16px;
}

.btn-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
  text-align: left;
  min-width: 200px;
}

.btn-nav:hover {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  box-shadow: var(--shadow-sm);
}

.btn-next {
  text-align: right;
  margin-left: auto;
}

.nav-dir {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-600);
  letter-spacing: 0.5px;
}

.nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

/* Feedback Box */
.feedback-card {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.feedback-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.feedback-buttons {
  display: flex;
  gap: 10px;
}

.btn-feedback {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-feedback:hover {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
}

/* Right TOC Aside */
.toc-sidebar {
  width: var(--toc-width);
  flex-shrink: 0;
  padding: 32px 20px;
  border-left: 1px solid var(--border-default);
  background-color: var(--bg-surface);
}

.toc-sticky-container {
  position: sticky;
  top: calc(var(--header-height) + var(--techbar-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.icon-xs {
  width: 15px;
  height: 15px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--primary-600);
  background-color: var(--bg-surface-alt);
}

.toc-link.active {
  color: var(--primary-600);
  font-weight: 700;
  border-left: 2px solid var(--primary-600);
  padding-left: 10px;
}

.interactive-prompt-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

[data-theme="dark"] .interactive-prompt-card {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.card-chip {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-700);
  margin-bottom: 4px;
}

[data-theme="dark"] .card-chip {
  color: var(--primary-300);
}

.interactive-prompt-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.interactive-prompt-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-launch-ide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background-color: var(--primary-600);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.btn-launch-ide:hover {
  background-color: var(--primary-700);
}

.interview-prep-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 16px;
}

[data-theme="dark"] .interview-prep-banner {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.prep-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #B45309;
  text-transform: uppercase;
}

.interview-prep-banner h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
}

.interview-prep-banner p {
  font-size: 0.78rem;
  color: #78350F;
  margin-bottom: 10px;
}

[data-theme="dark"] .interview-prep-banner p {
  color: #FDE68A;
}

.prep-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400E;
}

.prep-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. VIEW 2: INTERACTIVE "TRY IT YOURSELF" IDE
   -------------------------------------------------------------------------- */
.view-playground {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  display: none;
  flex-direction: column !important;
  scroll-margin-top: calc(var(--header-height) + var(--techbar-height) + 24px);
  box-sizing: border-box;
}

.view-playground.active {
  display: flex !important;
  flex-direction: column !important;
}

.ide-hero {
  text-align: center;
  margin-bottom: 20px;
}

.ide-hero .hero-chip {
  padding: 3px 12px;
  font-size: 0.74rem;
}

.ide-hero .hero-heading {
  font-size: 2rem;
  margin: 8px 0 6px 0;
}

.ide-hero .hero-subtext {
  font-size: 0.92rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

.ide-workspace {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  background-color: #020617;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 0.4), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-height: 480px;
}

/* Window Bar (CodingForCareer Style) */
.ide-window-bar {
  background-color: #0B0F19;
  border-bottom: 1px solid #1E293B;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ide-window-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mac-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.mac-dot-rose {
  background-color: #EF4444;
}

.mac-dot-amber {
  background-color: #F59E0B;
}

.mac-dot-emerald {
  background-color: #10B981;
}

.ide-file-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.ide-file-tab .file-icon {
  width: 13px;
  height: 13px;
  color: #38BDF8;
}

.ide-sandbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34D399;
  background-color: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {

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

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

/* Single Language Dropdown (CodingForCareer Style) */
.ide-lang-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2px 8px 2px 10px;
  transition: all var(--transition-fast);
}

.ide-lang-picker:focus-within,
.ide-lang-picker:hover {
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.ide-lang-icon {
  width: 14px;
  height: 14px;
  color: #38BDF8;
  flex-shrink: 0;
}

.ide-lang-dropdown {
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px 4px 2px;
  outline: none;
}

.ide-lang-dropdown option {
  background-color: #0F172A;
  color: #F8FAFC;
  font-weight: 600;
}

/* Right Action Controls */
.ide-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ide-control-group {
  display: flex;
  align-items: center;
}

.ide-select-ctrl {
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.ide-select-ctrl:focus {
  outline: none;
  border-color: #38BDF8;
}

.ide-select-preset {
  max-width: 250px;
}

.ide-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #CBD5E1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ide-btn-icon:hover {
  background-color: #334155;
  color: #FFFFFF;
}

.ide-btn-icon.copied {
  color: #34D399;
  border-color: #059669;
}

/* Split Panes */
.ide-split-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 400px;
  height: 440px;
}

.ide-pane {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.editor-pane {
  border-right: 1px solid #1E293B;
  background-color: #020617;
}

.code-editor-wrapper {
  display: flex;
  flex: 1;
  position: relative;
  background-color: #020617;
  min-height: 350px;
  height: calc(100% - 46px);
  overflow: hidden;
}

.line-numbers {
  padding: 10px 8px;
  width: 42px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
  user-select: none;
  border-right: 1px solid #1E293B;
  background-color: #0B0F19;
  overflow: hidden;
}

.ide-textarea {
  flex: 1;
  background-color: transparent;
  color: #34D399;
  border: none;
  outline: none;
  resize: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  tab-size: 4;
}

/* Bottom Editor Action Bar */
.editor-bottom-bar {
  background-color: #0B0F19;
  border-top: 1px solid #1E293B;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-execute-run {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
}

.btn-execute-run:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-execute-run:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-execute-run .icon-play {
  width: 14px;
  height: 14px;
}

.editor-autoindent-hint {
  font-size: 0.72rem;
  color: #64748B;
}

.editor-stats-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #64748B;
}

/* Right Column: Live Terminal Output */
.terminal-pane {
  background-color: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  padding: 8px 16px;
  background-color: #0B0F19;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
}

.terminal-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.metric-runtime {
  color: #38BDF8;
}

.metric-memory {
  color: #A78BFA;
}

.metric-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.metric-exit-ok {
  background-color: rgba(6, 78, 59, 0.6);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.metric-exit-err {
  background-color: rgba(136, 19, 55, 0.6);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.terminal-body {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  background-color: #030712;
  color: #38BDF8;
  overflow-y: auto;
  min-height: 340px;
  max-height: 380px;
}

.term-ready-card {
  color: #64748B;
  font-size: 0.76rem;
  line-height: 1.65;
}

.term-line-primary {
  color: #94A3B8;
  font-weight: 600;
}

.term-line-secondary {
  color: #64748B;
}

.term-executing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FBBF24;
  padding: 12px 0;
  font-size: 0.78rem;
}

.term-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #FBBF24;
  border-top-color: transparent;
  border-radius: 50%;
  animation: termSpin 0.75s linear infinite;
}

@keyframes termSpin {
  to {
    transform: rotate(360deg);
  }
}

.console-line {
  margin-bottom: 4px;
  word-break: break-word;
}

.system-line {
  color: #64748B;
  font-style: italic;
}

.console-timestamp {
  color: #6366F1;
  margin-right: 8px;
}

.error-line {
  color: #FB7185;
  background: rgba(225, 29, 72, 0.12);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(225, 29, 72, 0.35);
  margin: 6px 0;
}

.success-line {
  color: #34D399;
}

.table-output {
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: #E2E8F0;
  width: 100%;
}

.table-output th,
.table-output td {
  border: 1px solid #1E293B;
  padding: 6px 10px;
  text-align: left;
}

.table-output th {
  background-color: #0F172A;
  color: #38BDF8;
}

.ide-preview-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #FFFFFF;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: #0B0F19;
  border-top: 1px solid #1E293B;
  font-size: 0.72rem;
  color: #64748B;
}

.terminal-status-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-success {
  color: #34D399;
}

.status-error {
  color: #FB7185;
}

.btn-clear-term {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-clear-term:hover {
  color: #FFFFFF;
}

/* 4 Feature Pillars (CodingForCareer Style) */
.ide-feature-pillars {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.pillar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-icon {
  width: 20px;
  height: 20px;
}

.icon-emerald {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.icon-blue {
  background-color: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}

.icon-indigo {
  background-color: rgba(79, 70, 229, 0.12);
  color: #4F46E5;
}

.icon-cyan {
  background-color: rgba(6, 182, 212, 0.12);
  color: #0891B2;
}

.pillar-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pillar-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .view-playground {
    padding: 28px 16px 60px 16px;
  }

  .ide-split-panes {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: none;
    border-bottom: 1px solid #1E293B;
  }

  .ide-feature-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .view-playground {
    padding: 20px 12px 48px 12px;
  }

  .ide-hero .hero-heading {
    font-size: 1.75rem;
  }

  .ide-feature-pillars {
    grid-template-columns: 1fr;
  }

  .ide-window-bar {
    padding: 8px 12px;
  }

  .ide-lang-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

/* --------------------------------------------------------------------------
   9. VIEW 3: PRACTICE & QUIZZES
   -------------------------------------------------------------------------- */
.quiz-center-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.section-hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background-color: var(--primary-50);
  color: var(--primary-600);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Stats Bar */
.quiz-stats-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.quiz-stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1.1;
}

.stat-success {
  color: var(--emerald-600);
}

.stat-streak {
  color: #EA580C;
}

.stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Category Filter Bar */
.quiz-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.quiz-cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
}

.quiz-cat-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
}

.quiz-cat-btn.active {
  background-color: var(--primary-600);
  color: #FFFFFF;
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Quiz Cards Grid */
.quiz-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.quiz-card:hover {
  box-shadow: var(--shadow-md);
}

.quiz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quiz-track-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary-50);
  color: var(--primary-700);
  text-transform: uppercase;
}

.quiz-difficulty {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-600);
}

.quiz-question-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.quiz-code-block {
  background-color: #0F172A;
  color: #E2E8F0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 20px;
  overflow-x: auto;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.quiz-option-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface-alt);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.quiz-option-item:hover {
  border-color: var(--primary-400);
  background-color: var(--primary-50);
}

[data-theme="dark"] .quiz-option-item:hover,
body.dark-mode .quiz-option-item:hover {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: #818cf8;
}

.option-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-option-item.correct {
  background-color: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.quiz-option-item.correct .option-marker {
  background-color: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

.quiz-option-item.incorrect {
  background-color: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

.quiz-option-item.incorrect .option-marker {
  background-color: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

.quiz-explanation-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-alt);
  border-left: 4px solid var(--primary-600);
  margin-top: 16px;
  display: none;
  font-size: 0.9rem;
}

.quiz-explanation-box.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --------------------------------------------------------------------------
   10. VIEW 4: FAANG & INDUSTRY CAREER ROADMAPS (Radical Visual Polish)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   10. VIEW 4: FAANG & INDUSTRY CAREER ROADMAPS (Radical Visual Polish)
   -------------------------------------------------------------------------- */
.roadmaps-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

/* Hero Showcase */
.rm-hero-showcase {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.rm-hero-ambient-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.16) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

.rm-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
  color: var(--primary-600);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.rm-chip-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

.rm-chip-sep {
  color: var(--border-strong);
}

/* Controls Wrapper: Search & Category Filter Pills */
.rm-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.rm-search-box {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.rm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-light);
  pointer-events: none;
}

.rm-search-input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 11px;
  color: var(--text-main);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.rm-search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.rm-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.rm-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.rm-filter-btn {
  padding: 5px 13px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.79rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rm-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
  background: var(--bg-surface-alt);
}

.rm-filter-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.28);
}

/* Roadmaps Grid & Compact Cards */
.roadmaps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.roadmap-tile-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
}

.roadmap-tile-card:hover {
  transform: translateY(-4px);
  border-color: var(--rm-color, var(--primary-500));
  box-shadow: 0 14px 28px -8px var(--rm-glow, rgba(79, 70, 229, 0.22)),
              0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

.rm-tile-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  transition: height 0.2s ease;
}

.roadmap-tile-card:hover .rm-tile-accent-bar {
  height: 4px;
}

.rm-tile-ambient-glow {
  position: absolute;
  top: -45px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rm-glow, rgba(79, 70, 229, 0.22)) 0%, transparent 72%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.roadmap-tile-card:hover .rm-tile-ambient-glow {
  transform: scale(1.3);
  opacity: 0.75;
}

.rm-tile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  position: relative;
  z-index: 1;
}

.rm-tile-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease;
}

.roadmap-tile-card:hover .rm-tile-icon-box {
  transform: scale(1.06);
}

.rm-tile-emoji {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.rm-badges-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rm-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 9999px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-600);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.rm-salary-tag {
  font-size: 0.70rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 1.5px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.rm-tile-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 5px;
  line-height: 1.32;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

.roadmap-tile-card:hover .rm-tile-title {
  color: var(--rm-color, var(--primary-600));
}

.rm-tile-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.42;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.25em;
}

.rm-meta-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.rm-meta-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2.5px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.rm-milestones-pill {
  color: var(--primary-600);
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.18);
  font-weight: 700;
}

[data-theme="dark"] .rm-milestones-pill,
body.dark-mode .rm-milestones-pill {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.rm-tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}

.rm-tech-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  transition: all 0.15s ease;
}

.roadmap-tile-card:hover .rm-tech-chip {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.rm-chip-more {
  color: var(--primary-600);
  font-weight: 700;
}

/* Progress Wrap */
.rm-tile-progress-wrap {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.rm-tile-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.rm-tile-progress-bar {
  height: 5px;
  background: var(--bg-surface-alt);
  border-radius: 9999px;
  overflow: hidden;
}

.rm-tile-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.rm-tile-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.btn-rm-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--rm-gradient, linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.79rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px -1px var(--rm-glow, rgba(79, 70, 229, 0.25));
}

.btn-rm-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -1px var(--rm-glow, rgba(79, 70, 229, 0.35));
  filter: brightness(1.06);
}

.rm-arrow-svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.btn-rm-primary:hover .rm-arrow-svg {
  transform: translateX(3px);
}

/* Timeline Phase Badges & Milestone Estimations */
.rm-phase-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rm-phase-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
}

[data-theme="dark"] .rm-phase-time-pill,
body.dark-mode .rm-phase-time-pill {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.rm-phase-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 12px;
}

.rm-milestone-right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-milestone-est-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ========================================================
   ROADMAP FULL DESCRIPTIVE DRILL-DOWN VIEW
   ======================================================== */
.rm-detail-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Sticky Top Navigation & Progress Header */
.rm-detail-top-nav {
  position: sticky;
  top: 70px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.btn-rm-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-rm-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-rm-back:hover {
  background: var(--bg-surface);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.btn-rm-back:hover svg {
  transform: translateX(-3px);
}

.rm-detail-progress-box {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rm-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.rm-pct-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.76rem;
}

.rm-progress-bar-bg {
  height: 8px;
  background: var(--bg-surface-alt);
  border-radius: 9999px;
  overflow: hidden;
}

.rm-progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-rm-reset-progress {
  background: transparent;
  border: 1px dashed var(--border-default);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-rm-reset-progress:hover {
  border-color: #EF4444;
  color: #EF4444;
}

/* Detail Hero Showcase */
.rm-detail-hero {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 36px 40px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rm-detail-hero-ambient {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

.rm-hero-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rm-hero-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-600);
  border: 1px solid rgba(79, 70, 229, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.rm-hero-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.rm-hero-salary {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
}

.rm-hero-main-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.rm-hero-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--rm-glow, rgba(79, 70, 229, 0.2));
}

.rm-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.rm-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 900px;
}

.rm-hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.rm-stat-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.rm-hero-tech-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rm-tech-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rm-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-tech-pill-large {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  padding: 5px 12px;
  border-radius: 8px;
}

/* Section Common Titles */
.rm-section-title-wrap {
  margin-bottom: 24px;
}

.rm-section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.rm-section-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.rm-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FAANG Level Standards Matrix */
.rm-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.rm-level-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.rm-level-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rm-level-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.rm-level-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.rm-level-target {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-600);
}

.rm-level-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.rm-level-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.rm-level-check-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Timeline Curriculum */
.rm-phases-timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}

.rm-phase-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rm-phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rm-phase-number-node {
  background: var(--rm-gradient, var(--primary-600));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--rm-glow, rgba(79, 70, 229, 0.3));
}

.rm-phase-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.rm-phase-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.rm-milestones-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 20px;
  border-left: 3px solid var(--border-default);
  margin-left: 24px;
}

.rm-milestone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.rm-milestone-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.rm-milestone-card.is-completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
}

.rm-checkbox-label {
  display: inline-flex;
  cursor: pointer;
  margin-top: 2px;
}

.rm-milestone-cb {
  display: none;
}

.rm-custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  background: var(--bg-surface);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.rm-milestone-cb:checked + .rm-custom-checkbox {
  background: #10B981;
  border-color: #10B981;
}

.rm-milestone-cb:checked + .rm-custom-checkbox::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
}

.rm-milestone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rm-milestone-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-rm-link-track {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-600);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rm-link-track:hover {
  background: var(--primary-600);
  color: #FFFFFF;
}

.rm-milestone-skills {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rm-skills-label {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 4px;
}

.rm-faang-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.5;
}

.rm-tip-icon {
  font-size: 1.1rem;
}

/* Interview Questions Grid */
.rm-questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.rm-question-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rm-q-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rm-q-num {
  font-weight: 800;
  font-size: 0.75rem;
  background: var(--primary-600);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
}

.rm-q-round {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.rm-q-company {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-left: auto;
}

.rm-q-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  font-style: italic;
}

/* Projects Grid */
.rm-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.rm-project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.rm-proj-icon-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-proj-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.rm-proj-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.rm-proj-tools {
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.rm-proj-tools-label {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 4px;
}

/* Detail Bottom CTA */
.rm-detail-bottom-cta {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rm-detail-bottom-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.rm-detail-bottom-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.rm-cta-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-rm-cta-primary {
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--primary-600);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-rm-cta-primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

.btn-rm-cta-secondary {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rm-cta-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

/* No results state */
.rm-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-default);
  border-radius: 20px;
}

.rm-no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.rm-no-results h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.rm-no-results p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-rm-reset-search {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary-600);
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Dark Mode Overrides for Roadmaps */
body.dark-mode .roadmap-tile-card,
[data-theme="dark"] .roadmap-tile-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .roadmap-tile-card:hover,
[data-theme="dark"] .roadmap-tile-card:hover {
  background: rgba(24, 32, 51, 0.92);
  border-color: var(--rm-color, var(--primary-400));
}

body.dark-mode .rm-detail-top-nav,
[data-theme="dark"] .rm-detail-top-nav {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .rm-detail-hero,
[data-theme="dark"] .rm-detail-hero,
body.dark-mode .rm-level-card,
[data-theme="dark"] .rm-level-card,
body.dark-mode .rm-milestone-card,
[data-theme="dark"] .rm-milestone-card,
body.dark-mode .rm-question-card,
[data-theme="dark"] .rm-question-card,
body.dark-mode .rm-project-card,
[data-theme="dark"] .rm-project-card {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .rm-milestone-card.is-completed,
[data-theme="dark"] .rm-milestone-card.is-completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

body.dark-mode .rm-faang-tip-box,
[data-theme="dark"] .rm-faang-tip-box {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

body.dark-mode .rm-search-input,
[data-theme="dark"] .rm-search-input {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
}

body.dark-mode .rm-filter-btn,
[data-theme="dark"] .rm-filter-btn {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

body.dark-mode .rm-filter-btn.active,
[data-theme="dark"] .rm-filter-btn.active {
  background: var(--primary-600);
  color: #FFFFFF;
  border-color: var(--primary-600);
}

/* --------------------------------------------------------------------------
   11. VIEW 5: CHEAT SHEETS (21 Course Hub & Topic Matrix)
   -------------------------------------------------------------------------- */
.view-cheatsheets {
  width: 100%;
  display: none;
  flex-direction: column;
}

.view-cheatsheets.active {
  display: flex !important;
}

.cheatsheets-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  width: 100%;
  box-sizing: border-box;
}

/* View State A: 21 Course Tiles Hub */
.cs-hub-view {
  animation: fadeIn 0.3s ease;
}

/* Light Attractive Showcase Hero */
.cs-hero-showcase {
  position: relative;
  text-align: center;
  padding: 36px 24px 38px 24px;
  background: radial-gradient(ellipse at 50% -10%, rgba(99, 102, 241, 0.12) 0%, rgba(56, 189, 248, 0.06) 45%, rgba(248, 250, 252, 0) 75%);
  border-radius: 28px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px -6px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .cs-hero-showcase {
  background: radial-gradient(ellipse at 50% -10%, rgba(99, 102, 241, 0.22) 0%, rgba(56, 189, 248, 0.08) 50%, rgba(15, 23, 42, 0) 80%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.4);
}

.cs-hero-ambient-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.12) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.cs-hero-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .cs-hero-chip {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}

.cs-chip-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cs-chip-sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

.cs-heading {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.cs-heading .gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #0284C7 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .cs-heading .gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-subtext {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 28px auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Light Attractive Floating Search Capsule */
.cs-search-wrapper {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.cs-search-capsule {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 2px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 10px 6px 14px;
  box-shadow: 0 10px 30px -6px rgba(99, 102, 241, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

[data-theme="dark"] .cs-search-capsule {
  background-color: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.cs-search-capsule:hover {
  border-color: rgba(99, 102, 241, 0.48);
  box-shadow: 0 14px 38px -6px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.cs-search-capsule:focus-within {
  border-color: #6366F1;
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22), 0 18px 45px -8px rgba(99, 102, 241, 0.26);
  transform: translateY(-2px);
}

.cs-search-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(56, 189, 248, 0.14) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

[data-theme="dark"] .cs-search-icon-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(56, 189, 248, 0.28) 100%);
  color: #818CF8;
}

.cs-search-capsule:hover .cs-search-icon-box,
.cs-search-capsule:focus-within .cs-search-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

.cs-search-svg {
  width: 20px;
  height: 20px;
}

.cs-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 10px 16px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: none !important;
}

.cs-search-input::placeholder {
  color: var(--text-light);
  font-size: 0.96rem;
  font-weight: 400;
}

.cs-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cs-search-clear-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

[data-theme="dark"] .cs-search-clear-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.cs-search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  transform: scale(1.1);
}

.cs-search-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600) 0%, #0284C7 100%);
  color: #FFFFFF;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.28);
  white-space: nowrap;
  user-select: none;
}

/* Quick Search Jump Pills */
.cs-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cs-quick-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.cs-quick-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .cs-quick-chip {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.cs-quick-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary-400);
  color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.16);
}

[data-theme="dark"] .cs-quick-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.5);
}

/* Category Filter Pills */
.cs-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 0 auto;
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.cs-cat-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .cs-cat-btn {
  background-color: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.cs-cat-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
  background-color: var(--primary-50);
  transform: translateY(-1px);
}

.cs-cat-btn.active {
  background: linear-gradient(135deg, var(--primary-600) 0%, #4338CA 100%);
  color: #FFFFFF;
  border-color: var(--primary-600);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

[data-theme="dark"] .cs-cat-btn:hover {
  background-color: rgba(99, 102, 241, 0.18);
  color: #A5B4FC;
}

.cat-count-badge {
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-weight: 700;
  line-height: 1.3;
}

.cs-cat-btn.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Empty State */
.cs-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px dashed var(--border-default);
  margin-top: 36px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.25s ease;
}

.cs-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.cs-empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cs-empty-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 21 Course Tiles Grid */
.cs-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.cs-course-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.cs-course-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1 0%, #38BDF8 50%, #10B981 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cs-course-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-400);
}

.cs-course-tile:hover::before {
  opacity: 1;
}

.cs-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cs-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cs-tile-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .cs-tile-badge {
  background-color: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.3);
}

.cs-tile-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cs-tile-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.cs-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.cs-tile-count {
  color: var(--primary-600);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cs-tile-arrow {
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.2s ease;
}

.cs-course-tile:hover .cs-tile-arrow {
  color: var(--primary-600);
  transform: translateX(4px);
}

/* View State B: Topic Detailed Cheat Sheet Page */
.cs-detail-view {
  animation: fadeIn 0.3s ease;
}

.cs-detail-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Navigation & Action Bar */
.cs-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cs-back-btn:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
  transform: translateX(-3px);
}

[data-theme="dark"] .cs-back-btn:hover {
  background-color: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
}

.cs-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-btn-try-editor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all var(--transition-fast);
}

.cs-btn-try-editor:hover {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

/* Topic Header Card */
.cs-topic-hero {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cs-topic-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366F1, #38BDF8, #10B981);
}

.cs-topic-hero-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cs-topic-icon-large {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cs-topic-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cs-topic-track-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background-color: var(--bg-surface-alt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-default);
}

.cs-topic-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.cs-topic-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 680px;
}

.cs-detail-filter-box {
  min-width: 320px;
}

.cs-detail-filter-input {
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.cs-detail-filter-input:focus {
  border-color: var(--primary-500);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

/* Syntax Groups & Matrix Cards */
.cs-groups-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-matrix-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.cs-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-group-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-600);
}

.cs-group-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--bg-surface-alt);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.cs-syntax-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 16px;
}

.cs-syntax-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--transition-fast);
  gap: 10px;
}

.cs-syntax-card:hover {
  border-color: var(--primary-400);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.cs-syntax-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cs-code-box {
  flex: 1;
  background-color: #0B0F19;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  overflow-x: auto;
}

.cs-code-box code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38BDF8;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.btn-copy-syntax {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-copy-syntax:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-400);
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.cs-syntax-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 2px;
}

/* Detail Page Footer */
.cs-detail-footer {
  margin-top: 40px;
  text-align: center;
}

.btn-back-hub-bottom {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--primary-600);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back-hub-bottom:hover {
  background-color: var(--primary-600);
  color: #FFFFFF;
  border-color: var(--primary-600);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

/* Dark Mode Overrides for Cheat Sheets */
[data-theme="dark"] .cs-course-tile {
  background-color: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .cs-course-tile:hover {
  border-color: #6366F1;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .cs-topic-hero {
  background-color: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .cs-matrix-group {
  background-color: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .cs-syntax-card {
  background-color: #0B0F19;
  border-color: #1E293B;
}

[data-theme="dark"] .cs-code-box {
  background-color: #020617;
  border-color: #1E293B;
}

[data-theme="dark"] .btn-copy-syntax {
  background-color: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .btn-copy-syntax:hover {
  background-color: #334155;
  color: #FFFFFF;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .cs-syntax-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cheatsheets-container {
    padding: 24px 16px 60px 16px;
  }

  .cs-courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-topic-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .cs-topic-hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cs-detail-filter-box {
    width: 100%;
    min-width: unset;
  }

  .cs-matrix-group {
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   12. Global Search & Bookmarks Modals
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.search-modal-dialog {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-default);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-default);
}

.search-modal-icon {
  width: 22px;
  height: 22px;
  color: var(--text-light);
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-main);
}

.modal-esc-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-light);
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.highlighted {
  background-color: var(--primary-50);
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.search-result-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-result-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--text-light);
}

.search-modal-footer {
  padding: 12px 20px;
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-default);
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.search-modal-footer kbd {
  font-family: var(--font-mono);
  background-color: var(--bg-surface);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-default);
}

/* Bookmarks Modal Dialog */
.bookmarks-modal-dialog {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 540px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-default);
  overflow: hidden;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-light);
}

.bookmarks-list {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
}

.bookmark-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
}

.bookmark-item-remove {
  color: var(--rose-500);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInUp 0.3s ease;
}

/* --------------------------------------------------------------------------
   13. Global Footer (High-Tech, Elaborative & Professional Redesign)
   -------------------------------------------------------------------------- */
.site-footer {
  display: block !important;
  width: 100% !important;
  margin-top: auto !important;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 !important;
}

[data-theme="dark"] .site-footer,
body.dark-mode .site-footer {
  background: linear-gradient(180deg, #111827 0%, #0a0f1d 100%);
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* 1. Pre-Footer Tech Callout Ribbon */
.footer-pre-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 24px;
}

[data-theme="dark"] .footer-pre-banner,
body.dark-mode .footer-pre-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.footer-pre-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-pre-left {
  flex: 1 1 520px;
}

.footer-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--primary-600);
  margin-bottom: 12px;
}

[data-theme="dark"] .footer-badge-pulse,
body.dark-mode .footer-badge-pulse {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.footer-pre-heading {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.footer-pre-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.footer-pre-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.footer-btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  filter: brightness(1.05);
}

.footer-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border-default);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.footer-btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-surface-alt);
  border-color: var(--primary-400);
  color: var(--primary-600) !important;
}

[data-theme="dark"] .footer-btn-secondary,
body.dark-mode .footer-btn-secondary {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc !important;
}

[data-theme="dark"] .footer-btn-secondary:hover,
body.dark-mode .footer-btn-secondary:hover {
  background: #334155;
  border-color: #818cf8;
  color: #ffffff !important;
}

/* 2. Platform Capability Metrics Strip */
.footer-stats-strip {
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

[data-theme="dark"] .footer-stats-strip,
body.dark-mode .footer-stats-strip {
  background: #0f172a;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.footer-stats-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-stat-item .stat-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.footer-stat-item .stat-info {
  display: flex;
  flex-direction: column;
}

.footer-stat-item .stat-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.footer-stat-item .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-default);
}

[data-theme="dark"] .footer-stat-divider,
body.dark-mode .footer-stat-divider {
  background: #334155;
}

/* 3. Main Elaborative 5-Column Grid */
.footer-main-grid {
  padding: 56px 24px 44px 24px;
}

.footer-grid-container {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 1fr 1fr;
  gap: 36px;
}

.brand-col .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.brand-col .brand-logo-full {
  height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
}

.brand-col .footer-desc {
  font-size: 0.90rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
}

.social-icon-btn.github:hover {
  background: #24292f;
  color: #ffffff;
  border-color: #24292f;
}

.social-icon-btn.discord:hover {
  background: #5865f2;
  color: #ffffff;
  border-color: #5865f2;
}

.social-icon-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
  border-color: #d6249f;
}

.social-icon-btn.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.social-icon-btn.twitter:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.social-icon-btn.youtube:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
}

/* Navigation Columns */
.footer-heading-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-col-badge {
  font-size: 0.60rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  line-height: 1.2;
  flex-shrink: 0;
}

.badge-ai { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-core { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-live { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-pro { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.25); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.footer-links li a:hover {
  color: var(--primary-600);
  transform: translateX(4px);
}

[data-theme="dark"] .footer-links li a:hover,
body.dark-mode .footer-links li a:hover {
  color: #a5b4fc;
}

/* 4. Bottom Legal & Back to Top Utility Bar */
.footer-bottom-bar {
  padding: 24px 24px 32px 24px;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .footer-bottom-bar,
body.dark-mode .footer-bottom-bar {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-bottom-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  flex: 1 1 400px;
}

.copyright-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 4px 0;
}

.copyright-text strong {
  color: var(--text-main);
}

.footer-quick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.footer-quick-meta .meta-sep {
  color: var(--border-strong);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
}

.footer-shortcut-hint kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-footer-back-to-top:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .btn-footer-back-to-top,
body.dark-mode .btn-footer-back-to-top {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .btn-footer-back-to-top:hover,
body.dark-mode .btn-footer-back-to-top:hover {
  background: #334155;
  border-color: #818cf8;
  color: #ffffff;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
  .footer-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-pre-banner {
    padding: 28px 18px;
  }
  .footer-pre-heading {
    font-size: 1.3rem;
  }
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-stats-container {
    justify-content: flex-start;
    gap: 16px;
  }
  .footer-stat-divider {
    display: none;
  }
  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   14. Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .toc-sidebar {
    display: none !important;
  }

  .content-area,
  .view-tutorials .content-area {
    padding: 24px 32px;
  }
}

@media (max-width: 1024px) {
  .content-area,
  .view-tutorials .content-area {
    padding: 24px 20px 56px !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 992px) {
  .search-trigger-btn {
    width: 180px;
  }

  .search-label {
    display: none;
  }

  .ide-split-panes {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: none;
    border-bottom: 2px solid var(--border-default);
    min-height: 400px;
  }

  .output-pane {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }

  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: var(--bg-surface-alt);
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
  }

  .sidebar-close-btn:hover {
    background: var(--border-default);
    color: var(--text-heading);
  }

  .main-nav {
    display: none !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(340px, 88vw) !important;
    min-width: 0 !important;
    max-width: 88vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 9999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45) !important;
    border-right: 1px solid var(--border-default) !important;
    background-color: var(--bg-surface) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
  }

  .sidebar-backdrop.active {
    display: block !important;
  }

  .sidebar-chapters {
    padding-bottom: 90px !important;
  }

  .content-area {
    padding: 20px 16px;
  }

  .article-body h1 {
    font-size: 1.8rem;
  }

  .chapter-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-next {
    margin-left: 0;
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .user-progress-pill {
    display: none;
  }

  .announcement-bar {
    font-size: 0.78rem;
    text-align: center;
  }
}

/* ==========================================================================
   0. VIEW 0: TRENDING 2026 HOMEPAGE & INTERACTIVE COURSE TILES
   ========================================================================== */

.view-home {
  display: none;
  width: 100%;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

.view-home.active {
  display: flex;
}

/* Ambient Background Glow Blobs */
.hero-ambient-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.35;
}

.hero-blob-1 {
  width: 550px;
  height: 550px;
  top: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  top: 180px;
  right: 5%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(236, 72, 153, 0) 70%);
}

[data-theme="dark"] .hero-blob-1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
}

[data-theme="dark"] .hero-blob-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(236, 72, 153, 0) 70%);
}

/* 1. Hero Section */
.home-hero-section {
  position: relative;
  z-index: 1;
  padding: 56px 24px 64px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.home-hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.home-hero-content,
.home-hero-visual {
  min-width: 0;
  max-width: 100%;
}

.hero-ide-window {
  max-width: 100%;
  box-sizing: border-box;
}

.hero-ide-body,
.hero-code-block,
.hero-ide-terminal,
.hero-term-content {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-trend-pill {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="dark"] .badge-trend-pill {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
}

.home-hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 30px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600) 0%, #4338CA 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
  filter: brightness(1.05);
}

.btn-hero-primary .icon-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover .icon-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-default);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary-400);
  transform: translateY(-2px);
}

.btn-hero-secondary .icon-bolt {
  width: 18px;
  height: 18px;
  color: var(--amber-500);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-hero-ghost kbd {
  background: var(--bg-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  font-size: 0.74rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stat-pill {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.hero-stat-pill strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.hero-stat-pill span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero Code Visual Card */
.home-hero-visual {
  position: relative;
  z-index: 2;
}

.hero-ide-window {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
}

.hero-ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-controls {
  display: flex;
  gap: 7px;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-close { background: #EF4444; }
.dot-minimize { background: #F59E0B; }
.dot-expand { background: #10B981; }

.hero-ide-title {
  font-size: 0.8rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-tag-python {
  color: #38BDF8;
  font-weight: 700;
}

.btn-hero-run-snippet {
  padding: 4px 12px;
  background: #059669;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-hero-run-snippet:hover {
  background: #10B981;
  transform: scale(1.05);
}

.hero-ide-body {
  padding: 18px 20px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #E2E8F0;
  overflow-x: auto;
  max-height: 250px;
}

.hero-code-block {
  margin: 0;
  font-family: var(--font-mono);
}

.code-comment { color: #64748B; font-style: italic; }
.code-keyword { color: #F472B6; font-weight: 600; }
.code-class { color: #FBBF24; font-weight: 700; }
.code-func { color: #60A5FA; }
.code-str { color: #34D399; }
.code-builtin { color: #38BDF8; }

.hero-ide-terminal {
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  font-size: 0.79rem;
  color: #94A3B8;
}

.hero-term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.hero-term-header .term-time {
  margin-left: auto;
  color: #10B981;
}

.term-highlight {
  color: #38BDF8;
  font-weight: 700;
}

/* 2. Course Tiles Section */
.home-courses-section {
  padding: 72px 24px 84px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.home-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid var(--primary-200);
}

[data-theme="dark"] .section-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.35);
}

.section-main-heading {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-sub-heading {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.courses-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.course-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-cat-btn {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
}

.course-cat-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
}

.course-cat-btn.active {
  background: var(--primary-600);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.course-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  min-width: 270px;
}

.course-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-main);
  width: 100%;
}

.course-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ========================================================
   HIGH-IMPACT MODERN COURSE TILES (Compact & Professional)
   ======================================================== */
.course-tile-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  cursor: pointer;
}

.course-tile-card:hover {
  transform: translateY(-3px);
  border-color: var(--track-border, var(--primary-500));
  box-shadow: 0 10px 24px -6px var(--track-glow, rgba(79, 70, 229, 0.18)),
              0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* 1. Top Track Accent Bar */
.tile-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  transition: height 0.2s ease;
}

.course-tile-card:hover .tile-accent-bar {
  height: 3px;
}

/* 2. Radiant Ambient Glow */
.tile-ambient-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--track-glow, rgba(79, 70, 229, 0.2)) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.course-tile-card:hover .tile-ambient-glow {
  transform: scale(1.3);
  opacity: 0.65;
}

/* 3. Top Row: Icon Box & Badges */
.tile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.tile-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--track-tint, var(--bg-surface-alt));
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-tile-card:hover .tile-icon-box {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px var(--track-glow, rgba(79, 70, 229, 0.2));
}

.tile-emoji {
  font-size: 1.3rem;
  line-height: 1;
}

/* Badges Stack */
.tile-badges-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.tile-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tile-badge-tag .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.badge-popular { background: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-hot { background: rgba(245, 158, 11, 0.1); color: #D97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-database { background: rgba(2, 132, 199, 0.1); color: #0284C7; border: 1px solid rgba(2, 132, 199, 0.2); }
.badge-bigdata { background: rgba(99, 102, 241, 0.1); color: #6366F1; border: 1px solid rgba(99, 102, 241, 0.2); }
.badge-enterprise { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }

.tile-level-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* 4. Title & Subtitle */
.tile-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.course-tile-card:hover .tile-title {
  color: var(--primary-600);
}

.tile-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.38;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.15rem;
}

/* 5. Key Skills Tags */
.tile-skills-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  min-height: 20px;
  overflow: hidden;
}

.tile-skill-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.course-tile-card:hover .tile-skill-chip {
  border-color: var(--border-strong);
  color: var(--text-main);
  background: var(--bg-surface);
}

/* 6. Meta Row */
.tile-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.tile-meta-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tile-lessons-count {
  font-weight: 700;
  color: #059669;
}

.tile-meta-sep {
  color: var(--border-strong);
  font-size: 0.65rem;
}

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

.tile-rating-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #D97706;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1.5px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 7. Action Buttons */
.tile-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.btn-tile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6.5px 12px;
  border-radius: 7px;
  background: var(--track-gradient, linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%));
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px -1px var(--track-glow, rgba(79, 70, 229, 0.25));
}

.btn-tile-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -1px var(--track-glow, rgba(79, 70, 229, 0.38));
  filter: brightness(1.06);
}

.tile-arrow-svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.btn-tile-primary:hover .tile-arrow-svg {
  transform: translateX(3px);
}

.btn-tile-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6.5px 10px;
  border-radius: 7px;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-default);
  font-weight: 500;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tile-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--primary-600);
}

/* 8. Dark Mode Polish */
body.dark-mode .course-tile-card {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .course-tile-card:hover {
  background: rgba(24, 32, 51, 0.9);
  border-color: var(--track-border, var(--primary-400));
}

body.dark-mode .course-tile-card:hover .tile-title {
  color: #93C5FD;
}

body.dark-mode .tile-icon-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tile-level-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

body.dark-mode .tile-skill-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

body.dark-mode .course-tile-card:hover .tile-skill-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
}

body.dark-mode .tile-lessons-count {
  color: #34D399;
}

body.dark-mode .tile-rating-pill {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
}

body.dark-mode .btn-tile-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

body.dark-mode .btn-tile-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* 3. Bento Features Grid */
.home-bento-section {
  padding: 72px 24px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.bento-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-bento {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-600);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bento:hover {
  background: var(--primary-600);
  color: #FFFFFF;
}

.bento-code-peek {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38BDF8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.peek-lang {
  font-size: 0.7rem;
  color: #94A3B8;
  text-transform: uppercase;
}

/* 4. Bottom CTA Banner */
.home-cta-banner {
  padding: 60px 24px 80px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.cta-inner {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  border-radius: 24px;
  padding: 56px 36px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4);
}

.cta-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-inner h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-inner p {
  font-size: 1.1rem;
  color: #E0E7FF;
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: #312E81;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-cta-secondary {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & SIDEBAR BACKDROP
   ========================================================================== */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-default);
  z-index: 990;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  justify-content: space-around;
  align-items: center;
}

body.dark-mode .mobile-bottom-bar,
[data-theme="dark"] .mobile-bottom-bar {
  background: rgba(17, 24, 39, 0.94);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
  flex: 1;
  height: 100%;
  transition: all 0.18s ease;
  position: relative;
  text-decoration: none;
  touch-action: manipulation;
}

.mobile-bottom-item .m-nav-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}

.mobile-bottom-item:hover,
.mobile-bottom-item:active {
  color: var(--primary-600);
}

.mobile-bottom-item.active {
  color: var(--primary-600);
  font-weight: 700;
}

.mobile-bottom-item.active .m-nav-icon {
  transform: translateY(-2px) scale(1.1);
  color: var(--primary-600);
}

body.dark-mode .mobile-bottom-item.active,
[data-theme="dark"] .mobile-bottom-item.active {
  color: #818CF8;
}

body.dark-mode .mobile-bottom-item.active .m-nav-icon,
[data-theme="dark"] .mobile-bottom-item.active .m-nav-icon {
  color: #818CF8;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .home-hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .course-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
}

/* 2. Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Show Mobile Bottom Navigation */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Offset body and footer for bottom bar */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }

  /* Header on Mobile */
  .header-container {
    padding: 0 14px;
    gap: 12px;
  }

  .brand-logo-full {
    height: 38px;
    max-width: 195px;
  }

  .search-trigger-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-full);
  }

  .search-trigger-btn .search-label,
  .search-trigger-btn .search-kbd {
    display: none !important;
  }

  /* Tech subbars smooth swipe */
  .category-tabs,
  .tech-subbar-container {
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar,
  .tech-subbar-container::-webkit-scrollbar {
    display: none;
  }

  /* Hero Section */
  .home-hero-section {
    padding: 32px 14px 40px;
  }

  .home-hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    margin-bottom: 12px;
  }

  .home-hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-ghost {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .hero-stat-pill {
    padding: 10px 8px;
    text-align: center;
    align-items: center;
    border-radius: 12px;
  }

  .hero-stat-pill strong {
    font-size: 1.15rem;
  }

  .hero-stat-pill span {
    font-size: 0.68rem;
  }

  /* Courses Section & Filter Toolbar */
  .home-courses-section {
    padding: 40px 14px 50px;
  }

  .section-main-heading {
    font-size: 1.65rem;
  }

  .section-sub-heading {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .courses-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 22px;
  }

  /* Silky smooth horizontal swipeable category chips */
  .course-category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 2px 2px 6px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .course-category-pills::-webkit-scrollbar {
    display: none;
  }

  .course-cat-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 9999px;
  }

  .course-search-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 14px;
  }

  .course-search-box input {
    font-size: 16px; /* Stop iOS Safari auto-zoom on tap */
  }

  /* Course Grid on Tablet */
  .course-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  /* Bento Features */
  .home-bento-section {
    padding: 40px 14px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  /* CTA Banner */
  .home-cta-banner {
    padding: 36px 14px 48px;
  }

  .cta-inner {
    padding: 36px 18px;
    border-radius: 18px;
  }

  .cta-inner h2 {
    font-size: 1.7rem;
  }

  .cta-inner p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Roadmaps & Cheatsheets */
  .roadmaps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .roadmap-tile-card {
    padding: 18px;
    border-radius: 14px;
  }
}

/* 3. Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .home-hero-section {
    padding: 24px 12px 32px;
  }

  .home-courses-section {
    padding: 28px 12px 36px;
  }

  .section-main-heading {
    font-size: 1.45rem;
  }

  .section-sub-heading {
    font-size: 0.85rem;
  }

  .course-tiles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-tile-card {
    padding: 14px;
    border-radius: 12px;
  }

  .tile-title {
    font-size: 1rem;
  }

  .btn-tile-primary,
  .btn-tile-secondary {
    min-height: 38px;
    padding: 7px 10px;
  }

  .hero-ide-window {
    border-radius: 12px;
  }

  .hero-ide-header {
    padding: 8px 12px;
  }

  .hero-ide-body {
    padding: 12px;
    font-size: 0.74rem;
  }

  .article-body table,
  .article-html table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 4. Touch Device Hover Polish (Avoid Sticky :hover on tap) */
@media (hover: none) and (pointer: coarse) {
  .course-tile-card:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }
  .course-tile-card:active {
    transform: scale(0.99);
  }
  .btn-tile-primary:active,
  .btn-tile-secondary:active,
  .course-cat-btn:active,
  .mobile-bottom-item:active {
    transform: scale(0.97);
  }
}


/* ==========================================================================
   ENHANCED CHAPTER NAVIGATION & COURSE PAGE FOOTER
   ========================================================================== */
.chapter-nav {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-top: 56px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--border-default) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-nav {
  flex: 1 1 0% !important;
  max-width: calc(50% - 10px) !important;
  min-height: 84px !important;
  padding: 16px 22px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-default) !important;
  background-color: var(--bg-surface) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.btn-nav:hover {
  border-color: var(--primary-500, #4f46e5) !important;
  background-color: var(--bg-surface-alt, #f8fafc) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12) !important;
}

.btn-prev {
  margin-right: auto !important;
  text-align: left !important;
  align-items: flex-start !important;
}

.btn-next {
  margin-left: auto !important;
  text-align: right !important;
  align-items: flex-end !important;
}

.nav-btn-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.btn-next .nav-btn-header {
  justify-content: flex-end !important;
}

.nav-icon-arrow {
  color: var(--primary-600, #4f46e5) !important;
  transition: transform 0.2s ease !important;
}

.btn-prev:hover .nav-icon-arrow {
  transform: translateX(-4px) !important;
}

.btn-next:hover .nav-icon-arrow {
  transform: translateX(4px) !important;
}

.nav-dir {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--primary-600, #4f46e5) !important;
}

.nav-title {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: var(--text-main, #0f172a) !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

/* Guarantee global site-footer is consistently displayed full-width across ALL pages including tutorials */
.site-footer {
  display: block !important;
  width: 100% !important;
  margin-top: auto !important;
}

.course-page-footer {
  display: none !important;
}

/* Ensure content-area takes maximum comfortable reading width and has breathing room at bottom */
.view-tutorials .content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 960px !important;
  width: auto !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 32px 36px 64px !important;
}

@media (max-width: 768px) {
  .chapter-nav {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .btn-nav {
    max-width: 100% !important;
    width: 100% !important;
  }
  .btn-next {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .btn-next .nav-btn-header {
    justify-content: flex-start !important;
  }
}

/* Guarantee chapter-nav ONLY appears on tutorials pages */
body:not([data-view="tutorials"]) .chapter-nav,
body:not([data-view="tutorials"]) #chapter-nav {
  display: none !important;
}


/* ==========================================================================
   GLOBAL READING EXPERIENCE & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* 1. Global Reading Progress Bar (Fixed Top) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  z-index: 99999;
  transition: width 0.08s ease-out;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* 2. Global Viewport Overflow Protection (Uses clip so position:sticky works flawlessly) */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* 3. Hero & Section Heading Responsive Text Fitting */
.hero-heading {
  font-size: clamp(1.5rem, 5.5vw, 2.35rem) !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}

.hero-subtext {
  font-size: clamp(0.92rem, 2.8vw, 1.08rem) !important;
  line-height: 1.58 !important;
}

.hero-chip,
.rm-hero-chip,
.cs-hero-chip {
  max-width: 100% !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}

/* 4. Article Typography & Reading Measure (Desktop & Mobile) */
.view-tutorials .content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 960px !important;
  width: auto !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 32px 36px 64px !important;
}

.article-body {
  color: var(--text-main);
  font-size: 1.04rem;
  line-height: 1.82;
  letter-spacing: -0.005em;
  word-wrap: break-word;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.24;
}

.article-body h2 {
  font-size: clamp(1.22rem, 2.4vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.32;
}

.article-body h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.38;
}

.article-body ul,
.article-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.72;
}

.article-body strong {
  font-weight: 750;
  color: var(--text-heading, #0f172a);
}

[data-theme="dark"] .article-body strong {
  color: #f8fafc;
}

/* 5. Mobile Floating Chapter Button */
.mobile-chapter-pill {
  display: none;
}

@media (max-width: 768px) {
  .mobile-chapter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: fixed;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: 85;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 0.80rem;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .mobile-chapter-pill:hover,
  .mobile-chapter-pill:active {
    transform: scale(1.04);
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.5);
  }

  /* Compact Header Footprint on Mobile */
  .header-container {
    height: 52px;
    padding: 0 12px;
  }

  .brand-logo-full {
    height: 36px !important;
    max-width: 175px !important;
  }

  .announcement-bar {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .category-tabs-wrapper {
    padding: 4px 0;
  }

  .cat-tab-btn {
    padding: 3px 10px;
    font-size: 0.74rem;
  }

  .tech-subbar-container {
    height: 38px;
    padding: 0 12px;
    gap: 4px;
  }

  .tech-pill {
    padding: 4px 10px;
    font-size: 0.76rem;
  }

  /* Mobile Article Reader Polish */
  .view-tutorials .content-area {
    padding: 16px 14px 44px !important;
    max-width: 100% !important;
  }

  .article-body {
    font-size: 0.98rem;
    line-height: 1.70;
  }

  .article-body h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .article-body h2 {
    font-size: 1.20rem !important;
    line-height: 1.30 !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
  }

  .article-body h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
  }

  .article-body p {
    margin-bottom: 16px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 18px;
    margin-bottom: 18px;
  }

  .article-meta-tags {
    gap: 6px;
    margin-bottom: 14px;
  }

  .article-tag {
    font-size: 0.70rem;
    padding: 2.5px 7px;
  }

  .content-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 6px;
  }

  .breadcrumbs {
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  /* Responsive Code Blocks on Mobile */
  .code-block,
  .code-mockup {
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .code-block .code-header,
  .code-mockup .code-header {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .code-block pre,
  .code-mockup pre,
  .article-body .code-block pre,
  .article-body .code-mockup pre {
    padding: 12px 14px !important;
    font-size: 0.81rem !important;
    line-height: 1.55 !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Responsive Tables on Mobile */
  .tutorial-table-wrapper,
  .article-body table,
  .article-html table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .tutorial-table th,
  .tutorial-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Responsive Callouts on Mobile */
  .callout {
    padding: 12px 14px;
    margin: 16px 0;
    border-radius: 8px;
  }

  .callout-title {
    font-size: 0.88rem;
    margin-bottom: 5px;
  }

  .callout p {
    margin-bottom: 0;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  /* Responsive Math Cards on Mobile */
  .math-formula-card {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Compact Chapter Bottom Navigation */
  .chapter-nav {
    margin-top: 32px !important;
    padding-top: 18px !important;
    gap: 10px !important;
  }

  .btn-nav {
    min-height: 56px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
  }

  .nav-title {
    font-size: 0.88rem !important;
  }
}


/* ==========================================================================
   AI Career Resume & Skill Gap Analyzer Section
   ========================================================================== */
.nav-item-highlight {
  position: relative;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.nav-badge-ai {
  font-size: 0.62rem;
  font-weight: 750;
  padding: 1px 5.5px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #4F46E5;
  margin-left: 4px;
  line-height: 1.2;
}

[data-theme="dark"] .nav-badge-ai {
  background: rgba(129, 140, 248, 0.2);
  color: #818CF8;
}

.btn-hero-resume-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid #CBD5E1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.btn-hero-resume-action svg {
  color: #4F46E5;
  transition: transform 0.2s ease;
}

.btn-hero-resume-action:hover {
  background: #F8FAFC;
  border-color: #4F46E5;
  color: #4F46E5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

.btn-hero-resume-action:hover svg {
  transform: scale(1.08);
}

.hero-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  margin-left: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-hero-resume-action:hover .hero-badge-pill {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4F46E5;
}

/* ==========================================================================
   AI Career Resume Analyzer & Skill Gap Diagnostics Studio (Dedicated Page & Teaser)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Homepage Teaser Card (.home-resume-teaser-section)
   -------------------------------------------------------------------------- */
.home-resume-teaser-section {
  position: relative;
  z-index: 2;
  padding: 60px 24px 70px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.resume-teaser-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-teaser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #06B6D4);
}

[data-theme="dark"] .resume-teaser-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
}

.teaser-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teaser-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #4F46E5;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 5px 14px;
  border-radius: 9999px;
  width: fit-content;
}

[data-theme="dark"] .teaser-tag {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.2);
}

.teaser-headline {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.teaser-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.teaser-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 4px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.perk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

[data-theme="dark"] .perk-check {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.teaser-cta-wrap {
  margin-top: 10px;
}

.btn-launch-resume-studio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  background: #4F46E5;
  color: #FFFFFF !important;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.28);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-launch-resume-studio:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  color: #FFFFFF !important;
}

/* Teaser Visual Preview Column */
.teaser-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .teaser-visual-col {
  background: rgba(2, 6, 23, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.teaser-score-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.teaser-radial {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #10B981;
  line-height: 1;
}

.score-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-status-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge-status-pill {
  color: #34D399;
  background: rgba(16, 185, 129, 0.2);
}

.teaser-cards-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-card {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-card strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-have {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mock-have strong {
  color: #10B981;
}

[data-theme="dark"] .mock-have strong {
  color: #34D399;
}

.mock-need {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.mock-need strong {
  color: #4F46E5;
}

[data-theme="dark"] .mock-need strong {
  color: #818CF8;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-match {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: #065F46;
}

[data-theme="dark"] .tag-match {
  color: #A7F3D0;
  background: rgba(16, 185, 129, 0.25);
}

.tag-gap {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.16);
  color: #3730A3;
}

[data-theme="dark"] .tag-gap {
  color: #C7D2FE;
  background: rgba(99, 102, 241, 0.25);
}


/* --------------------------------------------------------------------------
   B. Dedicated Resume Studio Page (.view-resume)
   -------------------------------------------------------------------------- */
.view-resume {
  display: none;
  width: 100%;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--bg-page);
  padding-bottom: 80px;
}

.view-resume.active {
  display: flex !important;
  flex-direction: column !important;
}

/* Ambient glow blobs */
.resume-ambient-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.resume-blob-1 {
  top: 50px;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
}

.resume-blob-2 {
  top: 300px;
  right: -250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0) 70%);
}

[data-theme="dark"] .resume-ambient-blob {
  opacity: 0.22;
}

/* 1. Hero Section */
.resume-hero-section {
  position: relative;
  z-index: 1;
  padding: 44px 24px 32px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.resume-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.resume-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.resume-hero-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.resume-hero-breadcrumb a:hover {
  color: var(--primary-600);
}

.resume-hero-breadcrumb .sep {
  opacity: 0.5;
}

.resume-hero-breadcrumb .active {
  color: var(--primary-600);
  font-weight: 700;
}

.resume-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 5px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4F46E5;
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 22px;
}

[data-theme="dark"] .resume-hero-badge {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
}

.resume-hero-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0 0 18px 0;
}

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 45%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resume-hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 0 32px 0;
}

.resume-proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.proof-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
  color: var(--text-main);
}

.proof-chip strong {
  color: var(--primary-600);
}

[data-theme="dark"] .proof-chip strong {
  color: #818CF8;
}

/* 2. Main 2-Column Workspace Section */
.resume-workspace-section {
  position: relative;
  z-index: 1;
  padding: 10px 24px 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.resume-workspace-container {
  width: 100%;
}

.resume-workspace-card {
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="dark"] .resume-workspace-card {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.65);
}

/* Left Pane: Input Configuration */
.resume-input-pane {
  padding: 38px 36px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

[data-theme="dark"] .resume-input-pane {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.9) 100%);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.pane-step-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-step-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-meta h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.step-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* Tabs */
.resume-input-tabs {
  display: flex;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

[data-theme="dark"] .resume-input-tabs {
  background: rgba(255, 255, 255, 0.04);
}

.input-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.input-tab-btn:hover {
  color: var(--text-main);
}

.input-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary-600);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .input-tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

/* Dropzone */
.resume-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.02);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.resume-dropzone:hover,
.resume-dropzone.drag-active {
  border-color: #4F46E5;
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

[data-theme="dark"] .resume-dropzone {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.03);
}

.dropzone-icon {
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .dropzone-icon {
  color: #818CF8;
}

.dropzone-title {
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}

.dropzone-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-browse-file {
  background: none;
  border: none;
  color: #4F46E5;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

[data-theme="dark"] .btn-browse-file {
  color: #818CF8;
}

.dropzone-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.resume-selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .resume-selected-file {
  background: rgba(15, 23, 42, 0.9);
}

.file-icon-box {
  font-size: 1.4rem;
}

.file-info-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.file-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

/* Paste Text Panel */
.resume-text-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-paste-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text-main);
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

.resume-paste-textarea:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.paste-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Role Selector */
.role-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.resume-role-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.resume-role-dropdown:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .resume-role-dropdown {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
}

[data-theme="dark"] .resume-role-dropdown option {
  background: #0F172A;
  color: #F8FAFC;
}

.role-expected-skills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.expected-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.expected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expected-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: var(--text-main);
}

/* Action Trigger */
.analyze-btn-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-analyze-resume {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #4F46E5;
  color: #FFFFFF !important;
  font-size: 0.98rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.32);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-analyze-resume:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

.engine-attribution {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.resume-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: resumeSpin 0.75s linear infinite;
  display: inline-block;
}

@keyframes resumeSpin {
  to { transform: rotate(360deg); }
}

/* Right Pane: Live Results Studio */
.resume-results-pane {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-surface);
}

/* Top Match Score Card */
.match-score-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-surface-alt) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .match-score-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.score-circle-wrap {
  flex-shrink: 0;
}

.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 5px solid #10B981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.06);
}

.score-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: #10B981;
  line-height: 1;
}

.score-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.score-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: fit-content;
}

[data-theme="dark"] .score-status-pill {
  color: #34D399;
}

.score-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.score-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Skills Matrix Grid */
.skills-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.skill-bucket-card {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bucket-have {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bucket-need {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .bucket-have {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .bucket-need {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

.bucket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bucket-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bucket-title-wrap h4 {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.bucket-count-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #065F46;
}

[data-theme="dark"] .bucket-count-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #A7F3D0;
}

.bucket-count-badge.badge-gap {
  background: rgba(99, 102, 241, 0.15);
  color: #3730A3;
}

[data-theme="dark"] .bucket-count-badge.badge-gap {
  background: rgba(99, 102, 241, 0.25);
  color: #C7D2FE;
}

.bucket-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
}

.skills-tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.skill-tag-have {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-main);
}

.tag-status {
  font-size: 0.7rem;
  font-weight: 750;
  color: #10B981;
}

[data-theme="dark"] .tag-status {
  color: #34D399;
}

.skill-gap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-sizing: border-box;
  width: 100%;
}

.gap-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.gap-info strong {
  font-size: 0.84rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gap-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-learn-link {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-600);
  color: #FFFFFF !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.pill-learn-link:hover {
  background: var(--primary-700);
  transform: translateX(2px);
}

/* Optimization Suggestions Card */
.resume-suggestions-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-suggestions-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.resume-suggestions-list li {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Recommendation Footer Bar */
.resume-recommendation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
}

.recommendation-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rec-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.recommendation-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.rec-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-rec-action {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary-600);
  color: #FFFFFF !important;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-rec-action:hover {
  background: var(--primary-700);
  transform: translateX(2px);
}


/* --------------------------------------------------------------------------
   C. Educational Sections Below Studio (Engine, Careers, FAQ, CTA)
   -------------------------------------------------------------------------- */
.resume-section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* 3. How Engine Works */
.resume-how-it-works-section, .resume-how-section {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .resume-how-it-works-section, .resume-how-section {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.how-it-works-grid,
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.how-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.how-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.step-badge-num,
.step-card-num {
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--primary-600);
  letter-spacing: 0.5px;
}

[data-theme="dark"] .step-badge-num,
.step-card-num {
  color: #818CF8;
}

.step-card-icon {
  font-size: 1.8rem;
}

.how-step-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.how-step-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* 4. Core Tech Careers Grid */
.resume-career-tracks-section, .resume-careers-section {
  padding: 60px 24px;
}

.career-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.career-spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
}

.career-spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.career-spec-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.career-spec-header .spec-icon {
  font-size: 2rem;
}

.career-spec-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.spec-salary {
  font-size: 0.82rem;
  font-weight: 750;
  color: #10B981;
}

[data-theme="dark"] .spec-salary {
  color: #34D399;
}

.spec-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.spec-skills-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  font-size: 0.76rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: var(--text-main);
}

.btn-career-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-600);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.18s ease;
}

.btn-career-explore:hover {
  color: var(--primary-700);
  transform: translateX(3px);
}

/* 5. FAQ Section */
.resume-faq-section {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-default);
}

[data-theme="dark"] .resume-faq-section {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.resume-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.faq-card p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* 6. Bottom CTA Banner */
.resume-cta-banner {
  padding: 60px 24px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.resume-cta-container {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(49, 46, 129, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.resume-cta-container h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 850;
  margin: 0;
  color: #FFFFFF;
}

.resume-cta-container p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
  opacity: 0.92;
}

.resume-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.btn-cta-primary {
  padding: 12px 24px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #4F46E5 !important;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  background: #F8FAFC;
}

.btn-cta-secondary {
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   D. Mobile & Tablet UI/UX Overhaul for Dedicated Resume Studio
   -------------------------------------------------------------------------- */

/* Responsive tab label helpers */

/* Responsive button text & mobile segmented tabs */
.btn-text-short {
  display: none;
}
.link-text-short {
  display: none;
}
.mobile-skills-tabs {
  display: none;
}

@media (max-width: 640px) {
  .btn-text-full {
    display: none !important;
  }
  .btn-text-short {
    display: inline !important;
  }
  .link-text-full {
    display: none !important;
  }
  .link-text-short {
    display: inline !important;
  }

  /* Mobile Segmented Control for Skills Matrix */
  .mobile-skills-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-tab-pill {
    padding: 9px 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-tab-pill.active {
    background: var(--bg-surface);
    color: var(--primary-600);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .mobile-tab-pill.active {
    background: rgba(99, 102, 241, 0.2);
    color: #A5B4FC;
  }

  /* When show-need is active on mobile */
  .skills-matrix-grid.show-need .bucket-have {
    display: none !important;
  }
  .skills-matrix-grid.show-need .bucket-need {
    display: flex !important;
  }

  /* When show-have is active on mobile */
  .skills-matrix-grid.show-have .bucket-have {
    display: flex !important;
  }
  .skills-matrix-grid.show-have .bucket-need {
    display: none !important;
  }
}

.tab-label-short {
  display: none;
}
.mobile-only-text {
  display: none;
}

@media (max-width: 640px) {
  .tab-label-full {
    display: none !important;
  }
  .tab-label-short {
    display: inline !important;
  }
  .desktop-only-text {
    display: none !important;
  }
  .mobile-only-text {
    display: inline !important;
  }
}

/* 1. Large Tablet / iPad Pro (1080px and below) */
@media (max-width: 1080px) {
  .resume-workspace-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .resume-input-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    padding: 30px 24px;
  }
  .resume-results-pane {
    padding: 30px 24px;
  }
  .resume-teaser-card {
    grid-template-columns: 1fr;
  }
  .how-it-works-grid,
  .how-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. Standard Tablet & Large Mobile (768px and below) */
@media (max-width: 768px) {
  /* Hide the 2 course subbars on dedicated resume studio to reclaim 90px+ vertical screen space */
  body[data-view="resume"] .tech-subbar,
  body[data-view="resume"] .category-tabs-wrapper {
    display: none !important;
  }

  /* Safe bottom padding to prevent floating mobile-bottom-bar overlap */
  .view-resume {
    padding-bottom: 120px !important;
  }

  /* Compact high-impact mobile hero */
  .resume-hero-section {
    padding: 20px 16px 14px;
  }
  .resume-hero-breadcrumb {
    display: none;
  }
  .resume-hero-badge {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 4px 12px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
  }
  .resume-hero-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.25;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
  }
  .resume-hero-lead {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 14px 0;
  }
  .btn-standalone-app {
    font-size: 0.78rem !important;
    padding: 7px 14px !important;
  }
  .resume-proof-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }
  .proof-chip {
    padding: 6px 10px;
    font-size: 0.72rem;
    justify-content: center;
    border-radius: 10px;
  }

  /* Main Workspace Card on Mobile */
  .resume-workspace-section {
    padding: 4px 12px 30px;
  }
  .resume-workspace-card {
    border-radius: 18px;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
  }
  .resume-input-pane {
    padding: 20px 16px;
    gap: 20px;
  }
  .resume-results-pane {
    padding: 20px 16px;
    gap: 20px;
  }

  /* Segmented tab switcher on mobile */
  .resume-input-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 3px;
    gap: 4px;
    border-radius: 12px;
  }
  .input-tab-btn {
    padding: 9px 4px;
    font-size: 0.75rem;
    gap: 5px;
    border-radius: 8px;
  }
  .input-tab-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  /* Touch-friendly dropzone */
  .resume-dropzone {
    padding: 22px 14px;
    border-radius: 14px;
    gap: 6px;
  }
  .dropzone-icon svg {
    width: 28px;
    height: 28px;
  }
  .dropzone-title {
    font-size: 0.9rem;
  }
  .dropzone-sub {
    font-size: 0.78rem;
  }
  .dropzone-meta {
    font-size: 0.68rem;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .resume-selected-file {
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 10px;
  }
  .file-name {
    font-size: 0.78rem;
  }
  .file-size {
    font-size: 0.68rem;
  }

  /* Dropdown & chips */
  .custom-select-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .resume-role-dropdown {
    width: 100%;
    max-width: 100%;
    font-size: 0.82rem;
    padding: 10px 32px 10px 12px;
    border-radius: 10px;
  }
  .expected-chips {
    gap: 5px;
  }
  .expected-chip {
    font-size: 0.68rem;
    padding: 2.5px 7px;
    border-radius: 6px;
  }

  /* Primary Action Button */
  .btn-analyze-resume {
    padding: 14px 16px;
    font-size: 0.92rem;
    border-radius: 12px;
    min-height: 48px;
  }
  .engine-attribution {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  /* Results Studio on Mobile */
  .match-score-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 14px;
    border-radius: 14px;
    gap: 14px;
  }
  .score-circle {
    width: 66px;
    height: 66px;
    border-width: 4px;
    flex-shrink: 0;
  }
  .score-num {
    font-size: 1.3rem;
  }
  .score-label {
    font-size: 0.55rem;
  }
  .score-details {
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }
  .score-status-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .score-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .score-desc {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  /* Skills Grid */
  .skills-matrix-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .skill-bucket-card {
    padding: 14px;
    border-radius: 14px;
    gap: 8px;
  }
  .bucket-title-wrap h4 {
    font-size: 0.82rem;
  }
  .bucket-count-badge {
    font-size: 0.68rem;
    padding: 1.5px 6px;
  }
  .skill-bucket-card {
    padding: 12px;
    border-radius: 14px;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .skills-tag-list {
    max-height: 200px;
    gap: 6px;
  }
  .skill-tag-have {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }
  .skill-gap-item {
    padding: 7px 10px;
    gap: 8px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
  }
  .gap-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .gap-info strong {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gap-info span {
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pill-learn-link {
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .resume-suggestions-card {
    padding: 12px 14px;
    border-radius: 12px;
    gap: 6px;
  }
  .resume-suggestions-card h4 {
    font-size: 0.8rem;
  }
  .resume-suggestions-list {
    padding-left: 14px;
    gap: 6px;
  }
  .resume-suggestions-list li {
    font-size: 0.74rem;
  }

  .resume-recommendation-bar {
    padding: 14px;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .btn-rec-action {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.82rem;
  }

  /* Lower Sections */
  .resume-section-container {
    padding: 40px 16px;
  }
  .career-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .career-spec-card {
    padding: 18px 16px;
    border-radius: 14px;
    gap: 12px;
  }
  .career-spec-header h4 {
    font-size: 1.05rem;
  }
  .resume-faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .faq-card {
    padding: 16px;
    border-radius: 14px;
  }
  .resume-cta-banner {
    padding: 20px 14px 10px;
  }
  .resume-cta-container {
    padding: 28px 18px;
    border-radius: 18px;
    gap: 12px;
  }
  .resume-cta-container h2 {
    font-size: 1.4rem;
  }
  .resume-cta-container p {
    font-size: 0.88rem;
  }
  .resume-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.88rem;
  }

  /* Homepage Teaser Card on Mobile */
  .home-resume-teaser-section {
    padding: 32px 14px 40px;
  }
  .resume-teaser-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    border-radius: 18px;
    gap: 20px;
  }
  .teaser-headline {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .teaser-body {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .teaser-perks {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .perk-item {
    font-size: 0.78rem;
  }
  .btn-launch-resume-studio {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.88rem;
  }
  .teaser-visual-col {
    padding: 16px;
    border-radius: 14px;
  }
}

/* 3. Small Mobile Phones (480px and below) */
@media (max-width: 480px) {
  .resume-input-pane,
  .resume-results-pane {
    padding: 16px 12px;
  }
  .resume-proof-strip {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .proof-chip {
    font-size: 0.68rem;
    padding: 5px 8px;
  }
  .proof-icon {
    font-size: 0.85rem;
  }
  .match-score-card {
    gap: 10px;
    padding: 12px;
  }
  .score-circle {
    width: 58px;
    height: 58px;
  }
  .score-num {
    font-size: 1.15rem;
  }
  .score-title {
    font-size: 0.88rem;
  }
  .score-desc {
    font-size: 0.72rem;
  }
}


/* ==========================================================================
   Full-Width High-Tech Engineering Dispatch Ribbon
   ========================================================================== */
.footer-btn-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.footer-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5) !important;
}

.footer-dispatch-ribbon {
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 24px;
  box-sizing: border-box;
}

[data-theme="dark"] .footer-dispatch-ribbon {
  background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
}

.dispatch-ribbon-container {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.dispatch-ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-bottom: 10px;
}

.dispatch-ribbon-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.dispatch-ribbon-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.dispatch-ribbon-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-input-group {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 5px 6px 5px 14px;
  transition: all 0.2s ease;
}

.dispatch-input-group:focus-within {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.dispatch-mail-icon {
  color: #64748B;
  flex-shrink: 0;
  margin-right: 10px;
}

.dispatch-ribbon-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
}

.dispatch-ribbon-input::placeholder {
  color: #64748B;
}

.dispatch-ribbon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dispatch-ribbon-btn:hover {
  background: linear-gradient(135deg, #4338CA, #6D28D9);
  transform: translateY(-1px);
}

.dispatch-trust-notes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

.trust-sep {
  opacity: 0.4;
}

/* Brand Trust Badges in Col 1 */
.footer-brand-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.brand-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 0.85rem;
}

/* Horizontal 3-Card Engineering Pillars Strip */
.footer-pillars-strip {
  width: 100%;
  padding: 0 24px 40px 24px;
  box-sizing: border-box;
}

.footer-pillars-container {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.pillar-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

[data-theme="dark"] .pillar-card {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.pillar-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pillar-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-card-text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-card-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .dispatch-ribbon-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-pillars-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}



/* ========================================================
   ACADEMIC & PROFESSIONAL HOMEPAGE REDESIGN (2026 EDITION)
   ======================================================== */

/* 1. Curated Quick Picks Strip in Hero */
.hero-quick-picks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -6px;
  margin-bottom: 28px;
}

.quick-picks-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quick-pick-pill:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary-500);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.pill-emoji {
  font-size: 0.95rem;
}

/* 2. Educational Standards Trust Strip */
.home-trust-strip {
  padding: 0 24px 64px 24px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.trust-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), #06b6d4);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.trust-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
}

.trust-pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.trust-pillar-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.trust-pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 3. Pedagogical 4-Step Cycle */
.home-pedagogy-section {
  padding: 80px 24px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.pedagogy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pedagogy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

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

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: fit-content;
}

[data-theme="dark"] .step-badge {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.pedagogy-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.pedagogy-card p {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pedagogy-card .btn-bento {
  margin-top: auto;
}

/* 4. Specialization Pathways (Compact Pro Redesign) */
.home-pathways-section {
  padding: 38px 24px 44px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.home-pathways-section .home-section-header {
  margin-bottom: 22px;
}

.home-pathways-section .section-main-heading {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.home-pathways-section .section-sub-heading {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.5;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.pathway-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.pathway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pathway-card.pathway-de::before { background: #0891B2; }
.pathway-card.pathway-ai::before { background: #6366F1; }
.pathway-card.pathway-java::before { background: #D97706; }
.pathway-card.pathway-cpp::before { background: #059669; }

.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.12);
  border-color: #CBD5E1;
}

[data-theme="dark"] .pathway-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .pathway-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pathway-top {
  display: flex;
  flex-direction: column;
}

.pathway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pathway-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-de { background: rgba(6, 182, 212, 0.12); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.25); }
.icon-ai { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.25); }
.icon-java { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.25); }
.icon-cpp { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }

.pathway-meta-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.badge-de { background: rgba(6, 182, 212, 0.12); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.25); }
.badge-ai-path { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-java { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-cpp { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }

[data-theme="dark"] .badge-de { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border-color: rgba(6, 182, 212, 0.35); }
[data-theme="dark"] .badge-ai-path { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.35); }
[data-theme="dark"] .badge-java { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .badge-cpp { background: rgba(16, 185, 129, 0.2); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }

.pathway-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

[data-theme="dark"] .pathway-title {
  color: #F8FAFC;
}

.pathway-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

[data-theme="dark"] .pathway-desc {
  color: #94A3B8;
}

.pathway-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

[data-theme="dark"] .pathway-steps {
  background: #0F172A;
  border-color: rgba(255, 255, 255, 0.08);
}

.path-step-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #CBD5E1;
}

[data-theme="dark"] .path-step-pill {
  background: #1E293B;
  color: #F1F5F9;
  border-color: rgba(255, 255, 255, 0.12);
}

.pathway-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

[data-theme="dark"] .pathway-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.pathway-salary-wrap {
  display: flex;
  flex-direction: column;
}

.pathway-salary-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94A3B8;
  text-transform: uppercase;
}

.pathway-salary-val {
  font-size: 0.82rem;
  font-weight: 850;
  color: #059669;
}

[data-theme="dark"] .pathway-salary-val {
  color: #34D399;
}

.btn-pathway {
  padding: 6px 12px;
  border-radius: 7px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-pathway:hover {
  background: #1E293B;
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-pathway-de { background: #0891B2; }
.btn-pathway-de:hover { background: #0E7490; }

.btn-pathway-ai { background: #4F46E5; }
.btn-pathway-ai:hover { background: #4338CA; }

.btn-pathway-java { background: #D97706; }
.btn-pathway-java:hover { background: #B45309; }

.btn-pathway-cpp { background: #059669; }
.btn-pathway-cpp:hover { background: #047857; }

[data-theme="dark"] .btn-pathway {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 5. Learner Outcomes & Impact (Verified Profiles) */
.home-outcomes-section {
  padding: 60px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-top: 36px;
  width: 100%;
  box-sizing: border-box;
}

.outcome-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  position: relative;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

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

.outcome-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.outcome-rating-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  width: 100%;
}

.star-rating {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1;
}

.outcome-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.outcome-track-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

[data-theme="dark"] .outcome-track-tag {
  color: var(--primary-300);
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
}

.outcome-verified-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

[data-theme="dark"] .outcome-verified-tag {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.outcome-quote {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-main);
  margin-bottom: 16px;
  font-style: italic;
  position: relative;
  flex: 1 1 auto;
}

.outcome-quote::before {
  content: '“';
  font-size: 2.2rem;
  color: var(--primary-400);
  line-height: 0;
  position: relative;
  top: 10px;
  margin-right: 4px;
}

.outcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.outcome-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.author-photo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
  background: var(--bg-surface-alt);
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), #06b6d4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  align-items: center;
  justify-content: center;
}

.author-info {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.author-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.author-info .author-company {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-top: 2px;
}

[data-theme="dark"] .author-info .author-company {
  color: var(--primary-300);
}

.btn-outcome-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  color: #0a66c2;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-outcome-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.linkedin-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Responsive Queries */
@media (max-width: 1200px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pedagogy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .home-outcomes-section {
    padding: 40px 16px 56px;
  }
  .home-pathways-section {
    padding: 28px 16px 32px;
  }
  .pathways-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }
  .pathway-card {
    padding: 16px 14px 14px;
  }
  .pathway-title {
    font-size: 1.02rem;
  }
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
  .pedagogy-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }
  .outcome-card {
    padding: 20px;
    border-radius: 16px;
  }
  .outcome-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-quick-picks {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   CODINGFORCAREER — PREMIUM LIGHT & ATTRACTIVE HOMEPAGE REDESIGN
   Ultra-Modern, Light-Themed, Graphic-Rich Aesthetic for Students & Pros
   ========================================================================== */

/* 1. Global Home Section Base & Ambient Canvas */
.view-home {
  position: relative;
  background: #FAFCFF;
  color: var(--text-main);
  overflow-x: hidden;
}

[data-theme="dark"] .view-home {
  background: var(--bg-canvas);
}

/* Subtle background micro-grid pattern for technical precision */
.view-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .view-home::before {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* 2. Modern Light Hero Section */
.home-hero-section {
  position: relative;
  z-index: 1;
  padding: 42px 24px 36px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.home-hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: center;
}

/* Left Hero Content */
.hero-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.78rem;
  font-weight: 750;
  color: #334155;
  margin-bottom: 12px;
  width: fit-content;
}

[data-theme="dark"] .hero-trend-badge {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseGlow 2s infinite;
}

.badge-trend-pill {
  background: #EEF2FF;
  color: #4F46E5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

[data-theme="dark"] .badge-trend-pill {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
}

.home-hero-title {
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin-bottom: 12px;
}

[data-theme="dark"] .home-hero-title {
  color: #F8FAFC;
}

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 55%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 55%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  font-size: 1.02rem;
  line-height: 1.58;
  color: #475569;
  max-width: 580px;
  margin-bottom: 20px;
}

[data-theme="dark"] .home-hero-lead {
  color: #94A3B8;
}

/* Hero Actions */
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  background: #4F46E5;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
  color: #FFFFFF !important;
}

.btn-hero-resume-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid #CBD5E1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.btn-hero-resume-action svg {
  color: #4F46E5;
  transition: transform 0.2s ease;
}

.btn-hero-resume-action:hover {
  background: #F8FAFC;
  border-color: #4F46E5;
  color: #4F46E5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

.btn-hero-resume-action:hover svg {
  transform: scale(1.08);
}

.hero-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  margin-left: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-hero-resume-action:hover .hero-badge-pill {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4F46E5;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #475569 !important;
  font-weight: 650;
  font-size: 0.90rem;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.btn-hero-secondary svg,
.btn-hero-secondary .icon-bolt {
  color: #64748B;
  transition: color 0.2s ease;
}

.btn-hero-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A !important;
  transform: translateY(-2px);
}

.btn-hero-secondary:hover svg,
.btn-hero-secondary:hover .icon-bolt {
  color: #4F46E5;
}

[data-theme="dark"] .btn-hero-primary {
  background: #6366F1;
}

[data-theme="dark"] .btn-hero-primary:hover {
  background: #4F46E5;
}

[data-theme="dark"] .btn-hero-resume-action {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.14);
  color: #F8FAFC !important;
}

[data-theme="dark"] .btn-hero-resume-action svg {
  color: #818CF8;
}

[data-theme="dark"] .btn-hero-resume-action:hover {
  background: #0F172A;
  border-color: #818CF8;
  color: #818CF8 !important;
}

[data-theme="dark"] .btn-hero-resume-action .hero-badge-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .btn-hero-secondary {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1 !important;
}

[data-theme="dark"] .btn-hero-secondary svg,
[data-theme="dark"] .btn-hero-secondary .icon-bolt {
  color: #94A3B8;
}

[data-theme="dark"] .btn-hero-secondary:hover {
  background: #0F172A;
  border-color: #94A3B8;
  color: #FFFFFF !important;
}

[data-theme="dark"] .btn-hero-secondary:hover svg,
[data-theme="dark"] .btn-hero-secondary:hover .icon-bolt {
  color: #A5B4FC;
}

/* Quick picks */
.hero-quick-picks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.quick-picks-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.quick-pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #475569;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
  cursor: pointer;
}

.quick-pick-pill:hover {
  border-color: #4F46E5;
  color: #4F46E5;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.quick-pick-dot {
  color: #4F46E5;
  font-size: 1rem;
  line-height: 1;
}

[data-theme="dark"] .quick-pick-pill {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

[data-theme="dark"] .quick-pick-pill:hover {
  border-color: #818CF8;
  color: #818CF8;
  background: #0F172A;
}

[data-theme="dark"] .quick-pick-dot {
  color: #818CF8;
}

[data-theme="dark"] .quick-pick-pill {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

/* Stats Row — Center Aligned & Full Width (7 Authority Tiles) */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 1440px;
  margin: 38px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.hero-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1 1 145px;
  min-width: 135px;
  max-width: 185px;
  box-sizing: border-box;
}

.hero-stat-pill:hover {
  transform: translateY(-2px);
  border-color: #4F46E5;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.14);
}

[data-theme="dark"] .hero-stat-pill {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-stat-pill strong {
  font-size: 1.45rem;
  font-weight: 850;
  color: #0F172A;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 4px;
  display: block;
}

[data-theme="dark"] .hero-stat-pill strong {
  color: #F8FAFC;
}

.hero-stat-pill span {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  display: block;
}

[data-theme="dark"] .hero-stat-pill span {
  color: #94A3B8;
}

@media (max-width: 768px) {
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding: 0 12px;
  }
  .hero-stat-pill {
    max-width: none;
    min-width: 0;
    padding: 12px 10px;
  }
  .hero-stat-pill:last-child {
    grid-column: span 2;
  }
}

/* 3. HERO GRAPHIC STAGE WITH SURROUNDING STATUS INTELLIGENCE CARDS */
.home-hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-graphic-stage {
  position: relative;
  width: 100%;
  padding: 16px 8px;
  box-sizing: border-box;
}

/* Ambient Radial Glow */
.hero-graphic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.16) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Central Graphic Frame */
.hero-graphic-frame {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-graphic-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -10px rgba(79, 70, 229, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .hero-graphic-frame {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
}

.hero-featured-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-graphic-frame:hover .hero-featured-image {
  transform: scale(1.02);
}

/* Caption Strip at bottom of frame */
.graphic-caption-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid #E2E8F0;
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .graphic-caption-strip {
  background: rgba(15, 23, 42, 0.95);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.caption-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

[data-theme="dark"] .caption-item {
  color: #CBD5E1;
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F46E5;
}

[data-theme="dark"] .caption-dot {
  background: #818CF8;
}

/* Floating Status Cards */
.hero-floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  cursor: default;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatSlow 5s ease-in-out infinite;
}

.hero-floating-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #6366F1;
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .hero-floating-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.5);
}

/* Positions for 3 floating badges */
.card-top-right {
  top: 0px;
  right: -10px;
  animation-delay: 0s;
  cursor: pointer;
}

.card-bottom-left {
  bottom: 0px;
  left: -12px;
  animation-delay: 2.5s;
}

.card-bottom-right {
  bottom: -14px;
  right: 16px;
  animation-delay: 1.2s;
}

.floating-card-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-indigo {
  background: #EEF2FF;
  color: #4F46E5;
}

[data-theme="dark"] .icon-indigo {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

.icon-emerald {
  background: #ECFDF5;
  color: #059669;
}

[data-theme="dark"] .icon-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.icon-slate {
  background: #F1F5F9;
  color: #334155;
}

[data-theme="dark"] .icon-slate {
  background: rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
}

.floating-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.floating-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-card-header strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

[data-theme="dark"] .floating-card-header strong {
  color: #F8FAFC;
}

.floating-card-info span {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
}

[data-theme="dark"] .floating-card-info span {
  color: #94A3B8;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  padding: 1px 5px;
  border-radius: 4px;
}

[data-theme="dark"] .live-status-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

.tech-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 1px 5px;
  border-radius: 4px;
}

[data-theme="dark"] .tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1200px) {
  .card-top-right {
    right: 0;
  }
  .card-bottom-left {
    left: 0;
  }
}

@media (max-width: 768px) {
  .hero-graphic-stage {
    padding: 10px 0;
  }
  .hero-floating-card {
    position: static;
    margin-top: 8px;
    animation: none;
    width: 100%;
    box-sizing: border-box;
  }
  .card-top-right,
  .card-bottom-left,
  .card-bottom-right {
    position: static;
    margin-top: 8px;
  }
  .graphic-caption-strip {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
}

/* 4. ALUMNI & EMPLOYER LOGOS STRIP */
.home-trust-strip {
  padding: 48px 24px 60px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.home-alumni-headline {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #64748B;
  margin-bottom: 22px;
}

.alumni-logos-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 0 12px;
}

.alumni-company-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 0.82rem;
  font-weight: 750;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.alumni-company-chip:hover {
  border-color: #6366F1;
  color: #4F46E5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .alumni-company-chip {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

/* 4 Pillars Grid */
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-pillar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.trust-pillar-card:hover {
  transform: translateY(-4px);
  border-color: #6366F1;
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .trust-pillar-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #4F46E5;
}

[data-theme="dark"] .pillar-icon-box {
  background: rgba(99, 102, 241, 0.2);
}

.trust-pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

[data-theme="dark"] .trust-pillar-card h4 {
  color: #F8FAFC;
}

.trust-pillar-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

[data-theme="dark"] .trust-pillar-card p {
  color: #94A3B8;
}

/* 5. DUAL-AUDIENCE CAREER ACCELERATOR (COMPACT HIGH-DENSITY REDESIGN) */
.home-persona-section {
  padding: 36px 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.home-persona-section .home-section-header {
  margin-bottom: 20px;
}

.home-persona-section .section-main-heading {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.home-persona-section .section-sub-heading {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.5;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.persona-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0F172A;
}

.persona-card.persona-pro::before {
  background: #4F46E5;
}

.persona-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.14);
  border-color: #CBD5E1;
}

[data-theme="dark"] .persona-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .persona-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.persona-card-top {
  display: flex;
  flex-direction: column;
}

.persona-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-student {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

[data-theme="dark"] .badge-student {
  background: rgba(148, 163, 184, 0.15);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.25);
}

.badge-pro {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

[data-theme="dark"] .badge-pro {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.35);
}

.persona-exp-pill {
  font-size: 0.70rem;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  letter-spacing: 0.2px;
}

[data-theme="dark"] .persona-exp-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.1);
}

.persona-exp-pro {
  color: #4F46E5;
  background: #F5F3FF;
  border-color: #DDD6FE;
}

[data-theme="dark"] .persona-exp-pro {
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.persona-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

[data-theme="dark"] .persona-title {
  color: #F8FAFC;
}

.persona-desc {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.48;
  margin: 0 0 14px 0;
}

[data-theme="dark"] .persona-desc {
  color: #94A3B8;
}

.persona-perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.persona-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.42;
  color: #1E293B;
}

[data-theme="dark"] .persona-perk-item {
  color: #CBD5E1;
}

.persona-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="dark"] .persona-check {
  background: rgba(99, 102, 241, 0.22);
  color: #A5B4FC;
}

.persona-flow {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .persona-flow {
  background: #0F172A;
  border-color: rgba(255, 255, 255, 0.08);
}

.persona-flow-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  flex-shrink: 0;
}

[data-theme="dark"] .persona-flow-label {
  color: #94A3B8;
}

.persona-steps-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.persona-step-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
}

[data-theme="dark"] .persona-step-pill {
  background: #1E293B;
  color: #F1F5F9;
  border-color: rgba(255, 255, 255, 0.12);
}

.path-sep {
  color: #94A3B8;
  font-size: 0.74rem;
}

.btn-persona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #1E293B;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.btn-persona:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  color: #FFFFFF !important;
}

.btn-persona-pro {
  background: #4F46E5;
  border-color: #4338CA;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25);
}

.btn-persona-pro:hover {
  background: #4338CA;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  color: #FFFFFF !important;
}

[data-theme="dark"] .btn-persona {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.15);
  color: #F8FAFC !important;
}

[data-theme="dark"] .btn-persona:hover {
  background: #475569;
  border-color: #64748B;
}

[data-theme="dark"] .btn-persona-pro {
  background: #6366F1;
  border-color: transparent;
  color: #FFFFFF !important;
}

[data-theme="dark"] .btn-persona-pro:hover {
  background: #4F46E5;
}

/* 6. ACTIVE LEARNING VISUAL CARDS */
.home-comparison-section {
  padding: 64px 24px 80px;
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.comp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.comp-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

.comp-feature-card:hover {
  transform: translateY(-4px);
  border-color: #6366F1;
  box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .comp-feature-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
}

.comp-card-badge {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

[data-theme="dark"] .comp-card-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

.comp-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0F172A;
  margin-bottom: 20px;
}

[data-theme="dark"] .comp-feature-card h3 {
  color: #F8FAFC;
}

.comp-split-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.comp-bad-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #991B1B;
}

[data-theme="dark"] .comp-bad-box {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

.comp-bad-icon {
  font-size: 0.95rem;
  font-weight: 900;
  color: #EF4444;
  flex-shrink: 0;
}

.comp-good-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #065F46;
  font-weight: 650;
}

[data-theme="dark"] .comp-good-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}

.comp-good-icon {
  font-size: 0.95rem;
  font-weight: 900;
  color: #10B981;
  flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comp-cards-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .float-top-right,
  .float-bottom-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
  .home-persona-section {
    padding: 28px 16px 32px;
  }
  .persona-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  .persona-card {
    padding: 16px 14px;
  }
  .persona-title {
    font-size: 1.12rem;
  }
  .persona-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .persona-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .home-hero-title {
    font-size: 2.2rem;
  }
}
