/* ============================================================
   HARDWARE DESIGN MASTERCLASS - THEME SYSTEM
   ============================================================ */

:root {
  --transition-speed: 0.3s;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-xl: 0 12px 50px rgba(0,0,0,0.25);
}

/* ---- DARK MODE THEMES ---- */

/* Midnight Engineering */
[data-theme="midnight"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-card-hover: #1f2847;
  --bg-input: #151b2e;
  --bg-code: #0d1117;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #f1f5f9;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;
  --border-color: #1e293b;
  --border-light: #334155;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1a1a3e 50%, #0a0e1a 100%);
  --glow-primary: 0 0 20px rgba(59,130,246,0.3);
  --glow-accent: 0 0 20px rgba(139,92,246,0.3);
  --nav-bg: rgba(10,14,26,0.95);
  --scrollbar-track: #111827;
  --scrollbar-thumb: #334155;
}

/* Deep Space */
[data-theme="deepspace"] {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: #1e1b4b;
  --bg-card-hover: #312e81;
  --bg-input: #0f0d2e;
  --bg-code: #020617;
  --text-primary: #e0e7ff;
  --text-secondary: #a5b4fc;
  --text-muted: #6366f1;
  --text-heading: #f0f0ff;
  --accent-primary: #818cf8;
  --accent-secondary: #c084fc;
  --accent-success: #34d399;
  --accent-warning: #fbbf24;
  --accent-danger: #f87171;
  --accent-info: #22d3ee;
  --border-color: #1e1b4b;
  --border-light: #312e81;
  --gradient-primary: linear-gradient(135deg, #818cf8, #c084fc);
  --gradient-hero: linear-gradient(135deg, #020617 0%, #1e1b4b 50%, #020617 100%);
  --glow-primary: 0 0 25px rgba(129,140,248,0.3);
  --glow-accent: 0 0 25px rgba(192,132,252,0.3);
  --nav-bg: rgba(2,6,23,0.95);
  --scrollbar-track: #0f172a;
  --scrollbar-thumb: #312e81;
}

/* Cyber Neon */
[data-theme="cyberneon"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --bg-input: #111122;
  --bg-code: #080810;
  --text-primary: #eaeaea;
  --text-secondary: #b0b0c0;
  --text-muted: #707088;
  --text-heading: #ffffff;
  --accent-primary: #00f5d4;
  --accent-secondary: #f72585;
  --accent-success: #00f5d4;
  --accent-warning: #fee440;
  --accent-danger: #f72585;
  --accent-info: #7209b7;
  --border-color: #1a1a2e;
  --border-light: #2a2a4e;
  --gradient-primary: linear-gradient(135deg, #00f5d4, #7209b7);
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
  --glow-primary: 0 0 30px rgba(0,245,212,0.3);
  --glow-accent: 0 0 30px rgba(247,37,133,0.3);
  --nav-bg: rgba(10,10,10,0.95);
  --scrollbar-track: #141414;
  --scrollbar-thumb: #2a2a4e;
}

/* ---- EDUCATIONAL & KNOWLEDGE THEMES ---- */

/* Scholar */
[data-theme="scholar"] {
  --bg-primary: #fefce8;
  --bg-secondary: #fef9c3;
  --bg-card: #ffffff;
  --bg-card-hover: #fefce8;
  --bg-input: #ffffff;
  --bg-code: #1e293b;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --text-heading: #0c0a09;
  --accent-primary: #b45309;
  --accent-secondary: #92400e;
  --accent-success: #15803d;
  --accent-warning: #ca8a04;
  --accent-danger: #dc2626;
  --accent-info: #0369a1;
  --border-color: #e7e5e4;
  --border-light: #d6d3d1;
  --gradient-primary: linear-gradient(135deg, #b45309, #92400e);
  --gradient-hero: linear-gradient(135deg, #fefce8 0%, #fef3c7 50%, #fefce8 100%);
  --glow-primary: 0 0 20px rgba(180,83,9,0.15);
  --glow-accent: 0 0 20px rgba(146,64,14,0.15);
  --nav-bg: rgba(254,252,232,0.95);
  --scrollbar-track: #fef9c3;
  --scrollbar-thumb: #d6d3d1;
}

/* Blueprint */
[data-theme="blueprint"] {
  --bg-primary: #eff6ff;
  --bg-secondary: #dbeafe;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f7ff;
  --bg-input: #ffffff;
  --bg-code: #0f172a;
  --text-primary: #1e3a5f;
  --text-secondary: #3b6998;
  --text-muted: #6b8db5;
  --text-heading: #0c2340;
  --accent-primary: #1d4ed8;
  --accent-secondary: #2563eb;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  --accent-info: #0284c7;
  --border-color: #bfdbfe;
  --border-light: #93c5fd;
  --gradient-primary: linear-gradient(135deg, #1d4ed8, #2563eb);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
  --glow-primary: 0 0 20px rgba(29,78,216,0.15);
  --glow-accent: 0 0 20px rgba(37,99,235,0.15);
  --nav-bg: rgba(239,246,255,0.95);
  --scrollbar-track: #dbeafe;
  --scrollbar-thumb: #93c5fd;
}

/* ---- CLEAN & MINIMAL THEMES ---- */

/* Snowfall */
[data-theme="snowfall"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-code: #1e293b;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-heading: #0f172a;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
  --glow-primary: 0 0 20px rgba(99,102,241,0.15);
  --glow-accent: 0 0 20px rgba(139,92,246,0.15);
  --nav-bg: rgba(255,255,255,0.95);
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
}

/* Ivory */
[data-theme="ivory"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #f2efe8;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --bg-input: #ffffff;
  --bg-code: #2d2a24;
  --text-primary: #2d2a24;
  --text-secondary: #5c574e;
  --text-muted: #8c8780;
  --text-heading: #1a1815;
  --accent-primary: #b8860b;
  --accent-secondary: #8b6914;
  --accent-success: #2e7d32;
  --accent-warning: #ed6c02;
  --accent-danger: #d32f2f;
  --accent-info: #0288d1;
  --border-color: #e8e4dc;
  --border-light: #d5d0c6;
  --gradient-primary: linear-gradient(135deg, #b8860b, #8b6914);
  --gradient-hero: linear-gradient(135deg, #faf8f5 0%, #f2efe8 50%, #faf8f5 100%);
  --glow-primary: 0 0 20px rgba(184,134,11,0.15);
  --glow-accent: 0 0 20px rgba(139,105,20,0.15);
  --nav-bg: rgba(250,248,245,0.95);
  --scrollbar-track: #f2efe8;
  --scrollbar-thumb: #d5d0c6;
}

/* ---- CREATIVE & VISUAL THEMES ---- */

/* Aurora */
[data-theme="aurora"] {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a3e;
  --bg-card: #1f1f4a;
  --bg-card-hover: #2a2a5e;
  --bg-input: #15153a;
  --bg-code: #0a0a1e;
  --text-primary: #e8e8ff;
  --text-secondary: #b8b8e0;
  --text-muted: #7878a8;
  --text-heading: #ffffff;
  --accent-primary: #00d2ff;
  --accent-secondary: #7a2df7;
  --accent-success: #00e5a0;
  --accent-warning: #ffb800;
  --accent-danger: #ff3860;
  --accent-info: #00d2ff;
  --border-color: #2a2a5e;
  --border-light: #3a3a7e;
  --gradient-primary: linear-gradient(135deg, #00d2ff, #7a2df7, #ff3860);
  --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a0a3e 30%, #0f2340 60%, #0f0f23 100%);
  --glow-primary: 0 0 30px rgba(0,210,255,0.3);
  --glow-accent: 0 0 30px rgba(122,45,247,0.3);
  --nav-bg: rgba(15,15,35,0.95);
  --scrollbar-track: #1a1a3e;
  --scrollbar-thumb: #3a3a7e;
}

/* Sunset PCB */
[data-theme="sunsetpcb"] {
  --bg-primary: #1a0a0a;
  --bg-secondary: #2d1515;
  --bg-card: #3a1f1f;
  --bg-card-hover: #4a2a2a;
  --bg-input: #251010;
  --bg-code: #120808;
  --text-primary: #ffd7c0;
  --text-secondary: #e0a888;
  --text-muted: #b07858;
  --text-heading: #fff0e0;
  --accent-primary: #ff6b35;
  --accent-secondary: #ff2e63;
  --accent-success: #20e070;
  --accent-warning: #ffc107;
  --accent-danger: #ff2e63;
  --accent-info: #4ecdc4;
  --border-color: #4a2a2a;
  --border-light: #5a3535;
  --gradient-primary: linear-gradient(135deg, #ff6b35, #ff2e63);
  --gradient-hero: linear-gradient(135deg, #1a0a0a 0%, #2d1020 50%, #1a0a0a 100%);
  --glow-primary: 0 0 25px rgba(255,107,53,0.3);
  --glow-accent: 0 0 25px rgba(255,46,99,0.3);
  --nav-bg: rgba(26,10,10,0.95);
  --scrollbar-track: #2d1515;
  --scrollbar-thumb: #5a3535;
}

/* ---- TECH & INNOVATION THEMES ---- */

/* Matrix */
[data-theme="matrix"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0d1a0d;
  --bg-card-hover: #153015;
  --bg-input: #080f08;
  --bg-code: #000500;
  --text-primary: #00ff41;
  --text-secondary: #00cc33;
  --text-muted: #008822;
  --text-heading: #00ff41;
  --accent-primary: #00ff41;
  --accent-secondary: #39ff14;
  --accent-success: #00ff41;
  --accent-warning: #ccff00;
  --accent-danger: #ff0040;
  --accent-info: #00ccff;
  --border-color: #0d2a0d;
  --border-light: #1a4a1a;
  --gradient-primary: linear-gradient(135deg, #00ff41, #00ccff);
  --gradient-hero: linear-gradient(135deg, #000000 0%, #001a00 50%, #000000 100%);
  --glow-primary: 0 0 20px rgba(0,255,65,0.3);
  --glow-accent: 0 0 20px rgba(57,255,20,0.3);
  --nav-bg: rgba(0,0,0,0.95);
  --scrollbar-track: #0a0a0a;
  --scrollbar-thumb: #1a4a1a;
}

/* Silicon */
[data-theme="silicon"] {
  --bg-primary: #0c0c1d;
  --bg-secondary: #151530;
  --bg-card: #1c1c40;
  --bg-card-hover: #252555;
  --bg-input: #121230;
  --bg-code: #080818;
  --text-primary: #c8d6e5;
  --text-secondary: #8395a7;
  --text-muted: #576574;
  --text-heading: #dfe6ed;
  --accent-primary: #0abde3;
  --accent-secondary: #48dbfb;
  --accent-success: #1dd1a1;
  --accent-warning: #feca57;
  --accent-danger: #ff6b6b;
  --accent-info: #54a0ff;
  --border-color: #252555;
  --border-light: #353575;
  --gradient-primary: linear-gradient(135deg, #0abde3, #48dbfb);
  --gradient-hero: linear-gradient(135deg, #0c0c1d 0%, #151540 50%, #0c0c1d 100%);
  --glow-primary: 0 0 25px rgba(10,189,227,0.3);
  --glow-accent: 0 0 25px rgba(72,219,251,0.3);
  --nav-bg: rgba(12,12,29,0.95);
  --scrollbar-track: #151530;
  --scrollbar-thumb: #353575;
}

/* ---- PROFESSIONAL / CORPORATE THEMES ---- */

/* Executive */
[data-theme="executive"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ebebeb;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;
  --bg-input: #ffffff;
  --bg-code: #1a1a2e;
  --text-primary: #2c3e50;
  --text-secondary: #546e7a;
  --text-muted: #90a4ae;
  --text-heading: #1a252f;
  --accent-primary: #1565c0;
  --accent-secondary: #0d47a1;
  --accent-success: #2e7d32;
  --accent-warning: #f57f17;
  --accent-danger: #c62828;
  --accent-info: #00838f;
  --border-color: #e0e0e0;
  --border-light: #bdbdbd;
  --gradient-primary: linear-gradient(135deg, #1565c0, #0d47a1);
  --gradient-hero: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 50%, #f5f5f5 100%);
  --glow-primary: 0 0 15px rgba(21,101,192,0.15);
  --glow-accent: 0 0 15px rgba(13,71,161,0.15);
  --nav-bg: rgba(245,245,245,0.95);
  --scrollbar-track: #ebebeb;
  --scrollbar-thumb: #bdbdbd;
}

/* Slate Pro */
[data-theme="slatepro"] {
  --bg-primary: #1e272e;
  --bg-secondary: #2d3436;
  --bg-card: #333d44;
  --bg-card-hover: #3d4a52;
  --bg-input: #283038;
  --bg-code: #161d22;
  --text-primary: #dfe6e9;
  --text-secondary: #b2bec3;
  --text-muted: #74838a;
  --text-heading: #f5f6fa;
  --accent-primary: #0984e3;
  --accent-secondary: #6c5ce7;
  --accent-success: #00b894;
  --accent-warning: #fdcb6e;
  --accent-danger: #d63031;
  --accent-info: #00cec9;
  --border-color: #3d4a52;
  --border-light: #4a5a64;
  --gradient-primary: linear-gradient(135deg, #0984e3, #6c5ce7);
  --gradient-hero: linear-gradient(135deg, #1e272e 0%, #2d3440 50%, #1e272e 100%);
  --glow-primary: 0 0 20px rgba(9,132,227,0.3);
  --glow-accent: 0 0 20px rgba(108,92,231,0.3);
  --nav-bg: rgba(30,39,46,0.95);
  --scrollbar-track: #2d3436;
  --scrollbar-thumb: #4a5a64;
}

/* ---- RISING EDGE (Corporate Light Dashboard) ---- */

[data-theme="risingedge"] {
  --bg-primary: #f7fafc;
  --bg-secondary: #f7fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #edf2f7;
  --bg-input: #ffffff;
  --bg-code: #1a365d;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-heading: #1a365d;
  --accent-primary: #3182ce;
  --accent-secondary: #2c5282;
  --accent-success: #38a169;
  --accent-warning: #d69e2e;
  --accent-danger: #e53e3e;
  --accent-info: #3182ce;
  --border-color: #e2e8f0;
  --border-light: #cbd5e0;
  --gradient-primary: linear-gradient(135deg, #1a365d, #2c5282);
  --gradient-hero: linear-gradient(135deg, #1a365d, #2c5282);
  --glow-primary: 0 0 15px rgba(49,130,206,0.15);
  --glow-accent: 0 0 15px rgba(44,82,130,0.15);
  --nav-bg: rgba(255,255,255,0.95);
  --scrollbar-track: #f7fafc;
  --scrollbar-thumb: #cbd5e0;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
}

/* Rising Edge - Structural overrides */
[data-theme="risingedge"] body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

[data-theme="risingedge"] h1,
[data-theme="risingedge"] h2,
[data-theme="risingedge"] h3,
[data-theme="risingedge"] h4,
[data-theme="risingedge"] h5,
[data-theme="risingedge"] h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1a365d;
}

[data-theme="risingedge"] .hero {
  background: linear-gradient(135deg, #1a365d, #2c5282);
  padding: 120px 24px 80px;
}

[data-theme="risingedge"] .hero::before {
  display: none;
}

[data-theme="risingedge"] .hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
}

[data-theme="risingedge"] .hero .subtitle {
  color: rgba(255,255,255,0.9);
}

[data-theme="risingedge"] .hero-stat .stat-number {
  color: #ffffff;
}

[data-theme="risingedge"] .hero-stat .stat-label {
  color: rgba(255,255,255,0.8);
}

[data-theme="risingedge"] .module-hero {
  background: linear-gradient(135deg, #1a365d, #2c5282);
  border-bottom: none;
}

[data-theme="risingedge"] .module-hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
}

[data-theme="risingedge"] .module-hero .module-meta {
  color: rgba(255,255,255,0.9);
}

[data-theme="risingedge"] .section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

[data-theme="risingedge"] .section-title {
  font-size: 1.5rem;
  color: #1a365d;
}

[data-theme="risingedge"] .content-section h2 {
  color: #1a365d;
}

[data-theme="risingedge"] .content-section h3 {
  font-size: 1.3rem;
  color: #1a365d;
}

[data-theme="risingedge"] .grid-3,
[data-theme="risingedge"] .grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

[data-theme="risingedge"] .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="risingedge"] .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #e2e8f0;
  border-left-color: #3182ce;
}

[data-theme="risingedge"] .card-title {
  font-size: 1.3rem;
  color: #1a365d;
}

[data-theme="risingedge"] .track-card {
  border-left: 5px solid #3182ce;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="risingedge"] .track-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .btn-primary {
  background: #3182ce;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: none;
}

[data-theme="risingedge"] .btn-primary:hover {
  background: #2c5282;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .badge,
[data-theme="risingedge"] .track-tag,
[data-theme="risingedge"] .blog-tag,
[data-theme="risingedge"] .section-label {
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="risingedge"] .badge-info,
[data-theme="risingedge"] .blog-tag {
  background: #ebf8ff;
  color: #3182ce;
}

[data-theme="risingedge"] .badge-success,
[data-theme="risingedge"] .track-tag.beginner {
  background: #f0fff4;
  color: #38a169;
}

[data-theme="risingedge"] .badge-warning,
[data-theme="risingedge"] .track-tag.intermediate {
  background: #fffbeb;
  color: #d69e2e;
}

[data-theme="risingedge"] .navbar {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="risingedge"] .nav-brand {
  color: #1a365d;
}

[data-theme="risingedge"] .nav-links a {
  color: #4a5568;
}

[data-theme="risingedge"] .nav-links a:hover,
[data-theme="risingedge"] .nav-links a.active {
  background: #ebf8ff;
  color: #3182ce;
}

[data-theme="risingedge"] .footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

[data-theme="risingedge"] .footer-bottom {
  border-top: 1px solid #e2e8f0;
  color: #718096;
}

[data-theme="risingedge"] .module-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

[data-theme="risingedge"] .pricing-card {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .pricing-card.featured {
  border-left-color: #3182ce;
  box-shadow: 0 8px 25px rgba(49,130,206,0.15);
}

[data-theme="risingedge"] .blog-card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="risingedge"] .blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .blog-card-img {
  background: linear-gradient(135deg, #1a365d, #2c5282);
}

[data-theme="risingedge"] .course-card {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="risingedge"] .course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .course-card-banner {
  background: linear-gradient(135deg, #1a365d, #2c5282);
}

[data-theme="risingedge"] .sim-container {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .calculator-panel {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .quiz-container {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .team-card {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme="risingedge"] .team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

[data-theme="risingedge"] .stat-card {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .testimonial-card {
  border-radius: 12px;
  border-left: 5px solid #3182ce;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

[data-theme="risingedge"] .faq-item {
  border-radius: 12px;
  overflow: hidden;
}

[data-theme="risingedge"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

[data-theme="risingedge"] .sidebar-link:hover {
  background: #ebf8ff;
  color: #3182ce;
}

[data-theme="risingedge"] .sidebar-link.active {
  background: #ebf8ff;
  color: #3182ce;
}

/* ---- THEME SELECTOR PANEL ---- */
.theme-panel-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  backdrop-filter: blur(4px);
}
.theme-panel-overlay.active { display: block; }

.theme-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}
.theme-panel.active { right: 0; }

.theme-panel-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}
.theme-panel-header h3 {
  margin: 0;
  color: var(--text-heading);
  font-size: 1.2rem;
}
.theme-panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.theme-panel-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.theme-category {
  padding: 16px 24px 8px;
}
.theme-category h4 {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px 16px;
}
.theme-option {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
}
.theme-option:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.theme-option.active {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}
.theme-option .theme-preview {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}
.theme-option .theme-preview span {
  flex: 1;
  border-radius: 3px;
}
.theme-option .theme-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.theme-option .active-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.theme-option.active .active-badge { display: block; }
