
/* =====================================================
   1. CSS VARIABLES: LIGHT & DARK THEME
   ===================================================== */
   :root {
    /* ---------- LIGHT THEME COLORS ---------- */
    --background-color: #dcdcdc;
    --text-color: #212529;
    --muted-text-color: #6c757d;
  
    /* Navbar */
    --navbar-bg: #252a2e;
    --navbar-text: #e0e0e0;
  
    /* Links & Buttons */
    --link-color: #0d6efd;
    --button-primary-bg: #0d6efd;
    --button-primary-text: #ffffff;
    --button-primary-hover-bg: #0b5ed7;
    --button-primary-hover-text: #ffffff;
    --button-secondary-bg: #6c757d;
    --button-secondary-text: #ffffff;
  
    /* Cards & Panels */
    --card-bg: #f8f9fa;
    --card-text: #212529;
    --editor-card-bg: #fafafa; 
    --editor-card-text: #212529;
    --panel-bg: #f8f9fa; 
    --panel-text: #212529;
  
    /* Alerts */
    --alert-success-bg: #d1e7dd;
    --alert-success-text: #0f5132;
    --alert-danger-bg: #f8d7da;
    --alert-danger-text: #842029;
  
    /* Borders */
    --border-color: #454647;
  
    /* Table Borders */
    --table-border-color-light: #212529;
    --table-border-color-dark: #e0e0e0;
    --table-border-color: var(--table-border-color-light);
  
    /* Cursor Colors */
    --cursor-color-light: #212529;
    --cursor-color-dark: #e0e0e0;
    --cursor-color: var(--cursor-color-light);
  
    /* CodeMirror Syntax Defaults */
    --cm-header: #00f;
    --cm-quote: #090;
    --cm-negative: #d44;
    --cm-positive: #292;
    --cm-keyword: #0074D9;
    --cm-atom: #2196F3;
    --cm-number: #4CAF50;
    --cm-def: #E91E63;
    --cm-variable-2: #FF9800;
    --cm-variable-3: #FF5722;
    --cm-type: #9C27B0;
    --cm-comment: #9E9E9E;
    --cm-string: #4CAF50;
    --cm-string-2: #FF5722;
    --cm-meta: #795548;
    --cm-qualifier: #607D8B;
    --cm-builtin: #FF5722;
    --cm-bracket: #FFC107;
    --cm-tag: #00BCD4;
    --cm-attribute: #8BC34A;
    --cm-hr: #BDBDBD;
    --cm-link: #3F51B5;
    --cm-error: red;
    --cm-invalidchar: red;
  
    --cm-matchingbracket: #66BB6A;
    --cm-nonmatchingbracket: #EF5350;
    --cm-matchingtag-bg: rgba(255, 150, 0, 0.3);
    --cm-activeline-bg: #e8f2ff;
  }
  
  body.dark-mode {
    /* ---------- DARK THEME COLORS ---------- */
    /* Slightly lighter than pure black, so it's easier on the eyes. */
    --background-color: #020617;
    --text-color: #e0e0e0;
    --muted-text-color: #9e9e9e;
    
    --navbar-bg: #252a2e  ;  /* A bit lighter than #1f1f1f for better contrast */
    --navbar-text: #e0e0e0;
    
    --link-color: #90caf9;
      
    /* PRIMARY BUTTON: High contrast white text on blue */
    --button-primary-bg: #3b82f6; /* Bright blue */
    --button-primary-text: #ffffff; /* Pure white for maximum contrast */
    --button-primary-hover-bg: #2563eb; /* Darker blue on hover */
    --button-primary-hover-text: #ffffff;
      
    --button-secondary-bg: #757575;
    --button-secondary-text: #e0e0e0;
    
    /* Cards & Panels */
    --card-bg: #2c2f33;
    --card-text: #e0e0e0;
    --editor-card-bg: #2c2c2c;
    --editor-card-text: #e0e0e0;
    --panel-bg: #2c2c2c; 
    --panel-text: #e0e0e0;
    
    --alert-success-bg: #2e7d32;
    --alert-success-text: #e8f5e9;
    --alert-danger-bg: #c62828;
    --alert-danger-text: #ffebee;
    
    --border-color: #b1afaf;
    
    --table-border-color: var(--table-border-color-dark);
    
    --cursor-color: var(--cursor-color-dark);
    
    /* Dark Syntax Overrides */
    --cm-header: #3399ff;
    --cm-quote: #66ff66;
    --cm-negative: #ff6666;
    --cm-positive: #66ff66;
    --cm-keyword: #FFCC00;
    --cm-atom: #66CCFF;
    --cm-number: #4CAF50;
    --cm-def: #E91E63;
    --cm-variable-2: #FF9800;
    --cm-variable-3: #FF5722;
    --cm-type: #9C27B0;
    --cm-comment: #9E9E9E;
    --cm-string: #4CAF50;
    --cm-string-2: #FF5722;
    --cm-meta: #795548;
    --cm-qualifier: #607D8B;
    --cm-builtin: #FF5722;
    --cm-bracket: #FFC107;
    --cm-tag: #22cde6;
    --cm-attribute: #8BC34A;
    --cm-hr: #777;
    --cm-link: #4499ff;
    --cm-error: #FF3333;
    --cm-invalidchar: #FF3333;
    
    --cm-matchingbracket: #66BB6A;
    --cm-nonmatchingbracket: #EF5350;
    --cm-matchingtag-bg: rgba(255, 150, 0, 0.5);
    --cm-activeline-bg: rgba(255, 255, 255, 0.05);
  }
  
  /* =====================================================
     2. GLOBAL BASE STYLES (Poppins Font)
     ===================================================== */
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
  
  body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    font-family: 'Poppins', 'Open Sans', 'Ubuntu', sans-serif !important;
    transition: background-color 0.3s, color 0.3s !important;
    margin: 0;
    padding: 0;
  }  
  
  a {
    color: var(--link-color) !important;
    transition: color 0.3s !important;
  }
  /* a:hover {
    color: var(--text-color) !important;
    text-decoration: none !important;
  }
   */
  /* Muted Text */
  .text-muted {
    color: var(--muted-text-color) !important;
  }
  
  /* =====================================================
     3. NAVBAR STYLES - Modern Design
     ===================================================== */
  
  /* Main Navbar Container */
  .main-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  /* Brand Logo Wrapper */
  .brand-logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #0984e3 100%);
    padding: 3px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
  }
  .navbar-brand:hover .brand-logo-wrapper {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
  }
  .brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
  }
  
  /* Brand Text */
  .navbar-brand .brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
  }
  .navbar-brand:hover .brand-text {
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
  }
  .navbar-brand .brand-highlight {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #0984e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
  }
  .navbar-brand .brand-code {
    display: inline-block;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    font-weight: 600;
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.15);
    padding: 2px 6px;
    margin: 0 4px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
    transition: all 0.3s ease;
  }
  .navbar-brand:hover .brand-code {
    background: rgba(0, 212, 170, 0.25);
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.8);
    transform: scale(1.05);
  }
  
  /* Nav Pills Wrapper */
  .nav-pills-wrapper {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem;
    border-radius: 12px;
  }
  
  /* Nav Pill Links */
  .nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .nav-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  .nav-pill:hover {
    color: #fff !important;
    transform: translateY(-1px);
  }
  .nav-pill:hover::before {
    opacity: 1;
  }
  .nav-pill.active {
    color: #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  .nav-pill i {
    font-size: 0.9rem;
  }
  
  /* Theme Toggle - Modern Switch */
  .theme-toggle-wrapper {
    position: relative;
  }
  .theme-checkbox {
    display: none;
  }
  .theme-label {
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  .theme-label:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .sun-icon {
    color: #ffc107;
    font-size: 0.8rem;
    z-index: 1;
  }
  .moon-icon {
    color: #a0aec0;
    font-size: 0.8rem;
    z-index: 1;
  }
  .toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  }
  .theme-checkbox:checked + .theme-label .toggle-ball {
    transform: translateX(30px);
  }
  
  /* Auth Buttons */
  .btn-nav-outline {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
  }
  .btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
  }
  .btn-nav-primary {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  .btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  /* User Dropdown Button */
  .user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  .user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .user-dropdown-btn .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
  }
  .user-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  /* User Dropdown Menu */
  .user-dropdown {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  .user-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
  }
  .user-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.15);
  }
  .user-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
  }
  
  /* Navbar Toggler */
  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
  }
  
  /* Responsive Navbar */
  @media (max-width: 991px) {
    .nav-pills-wrapper {
      flex-direction: column;
      width: 100%;
      margin: 1rem 0;
    }
    .nav-pill {
      justify-content: center;
    }
    .navbar-nav.ms-auto {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-item.d-flex {
      flex-direction: column;
      width: 100%;
    }
    .btn-nav-outline, .btn-nav-primary {
      width: 100%;
      text-align: center;
    }
  }
  @media (max-width: 575px) {
    .navbar-brand .brand-text {
      font-size: 1.1rem;
    }
    .brand-logo-wrapper {
      width: 36px;
      height: 36px;
    }
    .nav-pill {
      padding: 0.5rem 1rem !important;
      font-size: 0.9rem;
    }
    .theme-label {
      width: 50px;
      height: 26px;
    }
    .toggle-ball {
      width: 20px;
      height: 20px;
    }
    .theme-checkbox:checked + .theme-label .toggle-ball {
      transform: translateX(24px);
    }
  }
  
  /* =====================================================
     4. CODE EDITOR CARD & FORMS
     ===================================================== */

  
  .code-editor-card {
    background-color: var(--editor-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    transition: background-color 0.3s, color 0.3s !important;
  }

  .code-editor-card .card-body {
    background-color: inherit !important;
    padding: 1rem !important;
  }
  .code-editor-card label.form-label {
    color: var(--text-color) !important;
    font-weight: 600 !important;
  }
  
  /* Editor Controls */
  .btn-small {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 4px !important;
  }
  .btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
  }
  .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
  }
  
  /* Tip Paragraph Under Editor */
  .code-editor-tip {
    color: var(--muted-text-color) !important;
    font-size: 0.85rem !important;
  }
  
  /* =====================================================
     5. CODEMIRROR EDITOR STYLES
     ===================================================== */
  .CodeMirror {
  width: 100%;
  height: 500px; /* or auto */
  min-height: 200px;
  resize: vertical !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 5px !important;
  /* Let CodeMirror handle both directions of scrolling */
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  background-color:var(--navbar-bg)!important;
  /* DO NOT set color here - let syntax highlighting work! */
  transition: background-color 0.3s, border-color 0.3s !important;
  }



/* Ensure the CodeMirror editor takes full width */
.CodeMirror {
  width: 100% !important;
}

/* Responsive adjustments for small screens */
@media (max-width: 576px) {
  .CodeMirror {
    height: 200px !important;  /* Reduced height for small devices */
    font-size: 14px !important; /* Adjust font size if needed */
  }
}


  .CodeMirror-lines {
    padding-left: 0 !important;
  }
  .CodeMirror pre {
    font-family: 'Courier New', Courier, monospace !important;
    position: relative !important;
  }
  .CodeMirror {
    padding-left: 0 !important;
  }
  /* Active Line Highlight */
  .CodeMirror .cm-activeline {
    background-color: var(--cm-activeline-bg) !important;
  }
  /* Syntax Highlighting */
  .cm-header {
    color: var(--cm-header) !important;
  }
  .cm-quote {
    color: var(--cm-quote) !important;
  }
  .cm-negative {
    color: var(--cm-negative) !important;
  }
  .cm-positive {
    color: var(--cm-positive) !important;
  }
  .cm-keyword {
    color: var(--cm-keyword) !important;
  }
  .cm-atom {
    color: var(--cm-atom) !important;
  }
  .cm-number {
    color: var(--cm-number) !important;
  }
  .cm-def {
    color: var(--cm-def) !important;
  }
  .cm-variable-2 {
    color: var(--cm-variable-2) !important;
  }
  .cm-variable-3 {
    color: var(--cm-variable-3) !important;
  }
  .cm-type {
    color: var(--cm-type) !important;
  }
  .cm-comment {
    color: var(--cm-comment) !important;
  }
  .cm-string {
    color: var(--cm-string) !important;
  }
  .cm-string-2 {
    color: var(--cm-string-2) !important;
  }
  .cm-meta {
    color: var(--cm-meta) !important;
  }
  .cm-qualifier {
    color: var(--cm-qualifier) !important;
  }
  .cm-builtin {
    color: var(--cm-builtin) !important;
  }
  .cm-bracket {
    color: var(--cm-bracket) !important;
  }
  .cm-tag {
    color: var(--cm-tag) !important;
  }
  .cm-attribute {
    color: var(--cm-attribute) !important;
  }
  .cm-hr {
    color: var(--cm-hr) !important;
  }
  .cm-link {
    color: var(--cm-link) !important;
  }
  .cm-error,
  .cm-invalidchar {
    color: var(--cm-error) !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
  }
  div.CodeMirror span.CodeMirror-matchingbracket {
    color: var(--cm-matchingbracket) !important;
  }
  div.CodeMirror span.CodeMirror-nonmatchingbracket {
    color: var(--cm-nonmatchingbracket) !important;
  }
  .cm-matchingtag {
    background: var(--cm-matchingtag-bg) !important;
  }
  /* Cursor */
  .CodeMirror-cursor {
    border-left: 1px solid var(--cursor-color) !important;
  }
  /* Responsive for CodeMirror */
  @media (max-width: 767.98px) {
    .CodeMirror {
      width: 100% !important;
      height: auto !important;
      min-height: 150px !important;
      font-size: 14px !important;
    }
  }
  @media (max-width: 575.98px) {
    .CodeMirror {
      font-size: 13px !important;
      height: 200px !important;
      max-height: 200px !important;
    }
    .CodeMirror-scroll {
      overflow-y: auto !important;
    }
    .CodeMirror-scroll::-webkit-scrollbar {
      height: 8px;
    }
    .CodeMirror-scroll::-webkit-scrollbar-track {
      background: #444;
    }
    .CodeMirror-scroll::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 4px;
    }
    .btn {
      font-size: 0.875rem !important;
      padding: 0.375rem 0.75rem !important;
    }
  }
  
  /* =====================================================
     6. "WHY USE" SECTION CARD STYLES
     ===================================================== */
  .why-use-card {
    background-color: var(--card-bg) !important;
    color: var(--card-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s !important;
  }
  .why-use-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
  }
  body.dark-mode .why-use-card .card-body i.text-primary {
    color: #66b2ff !important;
  }
  body.dark-mode .why-use-card .card-body i.text-success {
    color: #7ede9c !important;
  }
  body.dark-mode .why-use-card .card-body i.text-warning {
    color: #ffcc00 !important;
  }
  
  /* =====================================================
     7. "VISUALIZE" PAGE TABLES, PANELS, ETC.
     ===================================================== */
  /* Panel-like containers for output, variables, change history */
  .panel {
    border: 1px solid #454647;
    border-radius: 5px;
    padding: 1rem;
    overflow: auto; 
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  }


 
  /* Code Display in Visualize Page */

  .active-code-line {
    background-color: rgba(255, 193, 7, 0.2); /* a soft yellow highlight */
    border-left: 4px solid #ffc107;
    padding-left: 6px;
    margin-left: -6px; /* to offset the left border */
    margin-right: -6px; /* so the highlight goes full width */
  }

  .output-container {
    padding: 4px !important;
  }
  .previous-code-line {
    background-color: rgba(255, 193, 7, 0.08);
    border-left: 4px solid #ffc107;
    padding-left: 6px;
    margin-left: -6px;
    margin-right: -6px;
  }
  .just-executed-line {
    background-color: rgba(255, 193, 7, 0.3); /* a bolder yellow highlight */
    border-left: 4px solid #ffc107;
    padding-left: 6px;
    margin-left: -6px;   /* ensures highlight extends to container edges */
    margin-right: -6px;
  }
  

  
  /* Make table responsive: wrap in .table-responsive or apply overflow-x directly */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* for smoother mobile scrolling */
  }

  h5 {
    margin-bottom: 0.5rem !important;
  }
  
  /* Tables for variables, change history, etc. */
  
  /* Provide horizontal scrolling for narrow screens if needed */
  @media (max-width: 575.98px) {
    .table {
      font-size: 0.85rem;
    }
  }

  #codeContainer{
    max-height: 400px!important;
  }

  @media (max-width: 575.98px) {
    #codeContainer {
      height: auto !important;    /* Become responsive on small devices */
      min-height: 150px !important;
    }
  }
  
  /* Badges for line highlights or legends */
  .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
  }

#variablesContainer{
  max-height: 300px !important;
}
  /* 2) Dark Mode Table: same background/text/border in thead & tbody */
body.dark-mode .table thead th,td,
body.dark-mode .table tbody tr,th {
    background-color: #2c2c2c;  /* unify background to dark */
    color: #e0e0e0;             /* unify text color */
  }

/* Highlight the last changed row with #0096FF background and white text */
.last-changed {
  background-color: #0000FF !important;
  color: #ffffff !important;
}

.calculation-container {
  border: 1px solid wheat;
  border-radius: 5px;
  padding: 0.75rem;
  background-color: #2c2c2c;
  margin-top: 1rem;
  color: white;
  max-height: 400px;
  overflow: auto;
}

.calculation-container #calcBreakdownOutput {
  font-family: monospace;
  color: #f3f3f3;
}

body.dark-mode .table-bordered > :not(caption) > * > * {
  border-color: #bfbfbf !important;      /* unify table borders in dark mode */
}

  .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
  }
  .badge-text {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
  }

  /* .navigation-wrapper {
    position: sticky;
    top: 0;
    z-index: 10; 
    padding: 0.5rem 0;
  } */


  .navigation-wrapper {
    margin-top: 0.5rem !important; 
    margin-bottom: 0.5rem !important; 
  }

  .navigation-section {
    text-align: center;
  }
  .navigation-section .button-group {
    margin-bottom: 0.5rem;
  }
  .step-indicator {
    margin-top: 0.5rem;
  }

  
  /* Buttons for visual step nav */
  .navigation-section .btn-primary {
    background-color: var(--button-primary-bg) !important;
    color: var(--button-primary-text) !important;
    border: none !important;
  }
  .navigation-section .btn-secondary {
    background-color: var(--button-secondary-bg) !important;
    color: var(--button-secondary-text) !important;
    border: none !important;
  }
  .navigation-section .btn-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border: none !important;
  }  
  .card-body{
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 5px;
  }
.card-header{
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* disclaimers-card styles: similar look & feel to .why-use-card */
.disclaimers-card {
  background-color: var(--card-bg) !important;
  color: var(--card-text) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s !important;
}
.disclaimers-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* text-info color might differ in dark vs. light mode */
.disclaimers-card .text-info {
  color: var(--link-color) !important; /* or choose a specific color if you prefer */
}

/* For dark mode overrides, if needed: */
body.dark-mode .disclaimers-card {
  background-color: var(--card-bg);
  color: var(--text-color);
}



.output-container,
.variables-container,
.change-history-container {
  /* Optionally, you can set a max-height and overflow as well */
  /* If you want each panel to be individually scrollable, you can do: */
  max-height: none !important;
  overflow: auto;
}

/* Ensure .code-container has consistent styling */
.code-container {
  background-color: #2c2c2c !important;
  color: wheat !important;
  border: 1px solid #bfbfbf !important;
  border-radius: 4px !important;
  font-size: 0.95rem !important;
}

.scrollable-section {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px !important;
}
/* Dark custom scrollbar if needed */
.scrollable-section::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #333;
}
.scrollable-section::-webkit-scrollbar-track {
  background: #444;
}
.scrollable-section::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.landing-page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 4rem;
}

.glass-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  color: #e2e8f0;
  padding: 1.5rem;
}

/* Ensure all glass cards have light text - but EXCLUDE CodeMirror syntax highlighting */
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card p {
  color: #e2e8f0 !important;
}

/* Apply light color to spans/divs EXCEPT CodeMirror syntax classes */
.glass-card span:not([class*="cm-"]),
.glass-card div:not([class*="CodeMirror"]):not([class*="cm-"]) {
  color: #e2e8f0;
}

.glass-card .text-white-50,
.glass-card .text-muted {
  color: rgba(226, 232, 240, 0.7) !important;
}

.gradient-panel {
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.75rem;
  padding: 3rem;
  color: #f8fafc;
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.55);
}

/* Ensure all text in gradient panel (hero) is light */
.gradient-panel h1,
.gradient-panel h2,
.gradient-panel h3,
.gradient-panel p,
.gradient-panel span,
.gradient-panel .lead {
  color: #f8fafc !important;
}

.gradient-panel .text-white-50 {
  color: rgba(248, 250, 252, 0.7) !important;
}

.landing-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.landing-hero__copy,
.landing-hero__visual {
  flex: 1 1 320px;
}

.landing-hero__visual {
  display: flex;
  align-items: stretch;
  flex: 1 1 500px;
}

.hero-visual-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 
    0 0 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pillGlow 3s ease-in-out infinite alternate;
}

.hero-pill::before {
  content: '✦';
  font-size: 0.7rem;
  color: #a78bfa;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes pillGlow {
  0% {
    box-shadow: 
      0 0 20px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(59, 130, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-cta .btn {
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 1.05rem;
}

/* PRIMARY BUTTON: Maximum contrast white text on blue background */
.hero-cta .btn-primary,
.btn-primary {
  background-color: var(--button-primary-bg) !important;
  color: var(--button-primary-text) !important;
  border: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.hero-cta .btn-primary:hover,
.btn-primary:hover {
  background-color: var(--button-primary-hover-bg) !important;
  color: var(--button-primary-hover-text) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* OUTLINE BUTTON: Light text on transparent */
.hero-cta .btn-outline-light,
.btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent;
}

.hero-cta .btn-outline-light:hover,
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 600;
  color: #f8fafc;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
}

.hero-terminal {
  width: 100%;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-terminal pre {
  margin-bottom: 0;
  background: rgba(2, 6, 23, 0.95);
  color: #d1fae5;
  padding: 1.25rem;
  border-radius: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  min-height: 240px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  line-height: 1.6;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
}

.hero-pattern svg {
  width: 100%;
  height: 100%;
  animation: heroFloat 18s ease-in-out infinite alternate;
  filter: drop-shadow(0 50px 120px rgba(14, 165, 233, 0.35));
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.95);
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.5);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(2, 6, 23, 0.8);
  transform: translateX(4px);
}

.badge-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
  flex-shrink: 0;
}

.editor-lab {
  background: rgba(2, 6, 23, 0.9);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
  /* Add grid pattern background */
  background-image: 
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* Add decorative corner patterns */
.editor-lab::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.editor-lab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.editor-lab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Decorative label for code editor */
.code-editor-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  border-left: 4px solid #3b82f6;
  border-radius: 0.75rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Add decorative corner accent */
.code-editor-label::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent);
  border-top-right-radius: 0.75rem;
  pointer-events: none;
}

/* Add subtle bottom glow */
.code-editor-label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  border-radius: 2px;
  opacity: 0.5;
}

.code-editor-label label {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.code-editor-label .fa-code {
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.label-decorator {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
  border-radius: 2px;
  position: relative;
}

/* Add animated dots on decorators */
.label-decorator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}

.shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.side-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.side-panel h5 {
  color: #f1f5f9 !important;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sample-pre {
  background: rgba(2, 6, 23, 0.95);
  color: #cbd5f5;
  padding: 1.25rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  border: 1px solid rgba(96, 165, 250, 0.15);
  line-height: 1.6;
}

.tip-list li {
  padding: 0.5rem 0;
  color: rgba(226, 232, 240, 0.85) !important;
  transition: color 0.2s ease;
}

.tip-list li:hover {
  color: rgba(241, 245, 249, 0.95) !important;
}

.tip-list .fa-check {
  opacity: 0.8;
}

.feature-grid .feature-card {
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 1.2rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 0;
}

.feature-grid {
  position: relative;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.feature-grid__bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.feature-grid header,
.feature-grid .row {
  position: relative;
  z-index: 1;
}

.trust-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.5rem;
}

.trust-panel .metric-value {
  font-size: 2rem;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  flex: 1 1 280px;
}

.guardrails .glass-card {
  padding: 2rem;
}

.cta-panel {
  padding: 2.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.6);
}

.hero-terminal__header {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 991.98px) {
  .editor-lab {
    padding: 1.75rem;
  }

  .editor-lab__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .gradient-panel {
    padding: 2rem;
  }

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

  .hero-terminal pre {
    min-height: 200px;
  }
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -20px, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pattern svg {
    animation: none;
  }
}
.language-scroll-nav {
  background: linear-gradient(90deg, #0b1120, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 998;
  backdrop-filter: blur(12px);
}

.language-scroll-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.language-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.language-pill {
  --pill-accent: #06b6d4;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(241, 245, 249, 0.9);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-pill__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--pill-accent);
  box-shadow: 0 0 12px var(--pill-accent);
}

.language-pill:hover,
.language-pill:focus-visible {
  transform: translateY(-1px);
  border-color: var(--pill-accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  color: #ffffff;
}

/* Tech Course Cards with Neon Glowing Icons */

/* Course section spacing */
.courses-section {
  padding: 3rem 0;
  width: 100%;
  margin: 0;
  /* Performance optimization */
  will-change: auto;
  contain: layout style;
}

.courses-section .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.courses-section [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Language Group Layout */
.language-group {
  margin-bottom: 3rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.language-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.language-group__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.language-group__title {
  color: #f1f5f9 !important;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

/* Subject Cards */
.subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  /* Performance optimization */
  will-change: transform;
  backface-visibility: hidden;
}

.subject-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.2);
}

.subject-card:hover::before {
  opacity: 1;
}

.subject-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--subject-color, rgba(96, 165, 250, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--subject-color, #60a5fa);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px var(--subject-glow, rgba(96, 165, 250, 0.3));
}

.subject-card:hover .subject-card__icon {
  background: rgba(2, 6, 23, 0.95);
  border-color: var(--subject-color, #60a5fa);
  box-shadow: 0 0 20px var(--subject-glow, rgba(96, 165, 250, 0.6)), 0 0 30px var(--subject-glow, rgba(96, 165, 250, 0.4));
  transform: scale(1.1);
}

.subject-card__name {
  color: #e2e8f0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.subject-card:hover .subject-card__name {
  color: #f1f5f9 !important;
}

/* 5 cards per row on XL screens */
@media (min-width: 1200px) {
  .col-xl-20 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.tech-course-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.tech-course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tech-glow, rgba(59, 130, 246, 0.5)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-course-card:hover {
  transform: translateY(-8px);
  border-color: var(--tech-color, #3b82f6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--tech-glow, rgba(59, 130, 246, 0.3));
}

.tech-course-card:hover::before {
  opacity: 1;
}

.tech-course-card__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Neon Glowing Tech Icon */
.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.95);
  border: 2px solid var(--tech-color, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--tech-color, #3b82f6);
  box-shadow: 
    0 0 20px var(--tech-glow, rgba(59, 130, 246, 0.6)),
    0 0 40px var(--tech-glow, rgba(59, 130, 246, 0.4)),
    inset 0 0 15px var(--tech-glow, rgba(59, 130, 246, 0.2));
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--tech-color, #3b82f6), transparent);
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
}

.tech-icon i {
  filter: drop-shadow(0 0 8px var(--tech-glow, rgba(59, 130, 246, 0.8)));
}

.tech-course-card:hover .tech-icon {
  box-shadow: 
    0 0 30px var(--tech-glow, rgba(59, 130, 246, 0.8)),
    0 0 60px var(--tech-glow, rgba(59, 130, 246, 0.6)),
    inset 0 0 20px var(--tech-glow, rgba(59, 130, 246, 0.3));
  transform: scale(1.05);
}

.tech-course-card__title {
  color: #f1f5f9 !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.tech-course-card__description {
  color: rgba(226, 232, 240, 0.75) !important;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Framework Tags */
.tech-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.framework-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.framework-tag i {
  font-size: 0.75rem;
  color: rgba(96, 165, 250, 0.7);
}

.tech-course-card:hover .framework-tag {
  background: rgba(2, 6, 23, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(241, 245, 249, 0.95);
}

.tech-course-card__footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.tech-course-card__footer .badge {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.ai-mentor-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-height: 120px;
}

.ai-mentor-chip .chip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.integration-chip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.integration-chip .integration-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #9333ea);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
}

.language-sidebar {
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
}

.language-hero .btn {
  border-radius: 999px;
}
.track-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(8,47,73,0.85));
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 220px;
}

.track-card__text {
  font-size: 0.9rem;
}

.track-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-mentor-card {
  display: block;
  padding: 2rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ai-mentor-card__icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ai-feature-box {
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.3s ease;
}

.ai-feature-box:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-4px);
}

/* Hero H1 - Animated Gradient Glow Text */
.hero-gradient-text {
  background: linear-gradient(
    90deg,
    #22d3ee 0%,
    #60a5fa 25%,
    #a78bfa 50%,
    #60a5fa 75%,
    #22d3ee 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.4));
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.course-hero {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.course-hero__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.badge-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.badge-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}

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

.timeline article {
  border-left: 2px solid rgba(148, 163, 184, 0.4);
  padding-left: 1rem;
}

.timeline h5 {
  color: #f8fafc;
}

.timeline ul {
  list-style: none;
  padding-left: 0;
  color: rgba(226, 232, 240, 0.85);
}

#python-code-sample,
#js-code-sample {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.course-section-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.course-section-nav a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
  white-space: nowrap;
}

.course-section-nav a:hover {
  color: #ffffff;
}

.language-sidebar a {
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
}

.language-sidebar a:hover {
  color: #ffffff;
}

.code-example {
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
}

.code-example__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.code-example pre {
  margin: 0;
  padding: 1rem;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

.framework-grid article {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.85);
}

.integration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.integration-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.project-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
  padding: 1.25rem;
}

.language-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.language-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.2rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
}

.language-card h5 {
  color: #f8fafc;
}

.language-card p {
  color: rgba(226, 232, 240, 0.8);
  min-height: 72px;
}

.language-card__media {
  width: 100%;
  padding-top: 55%;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.language-card__body h5 {
  color: #f8fafc;
}

.language-card__body p {
  color: rgba(226, 232, 240, 0.8);
  min-height: 64px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-link {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: rgba(226, 232, 240, 0.8);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.tab-link.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  color: #e0f2fe;
}

.tab-pane {
  display: none;
}

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

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

.feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
}

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

.service-grid article {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
}

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

.testimonial-grid article {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
}

.faq-list details {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #f8fafc;
}

/* =====================================================
   COURSE CARDS SECTION
   ===================================================== */
.courses-section {
  padding: 4rem 30px;
  /* max-width: 1200px; */
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #f1f5f9 !important; /* Light heading on dark background */
}

/* Ensure section headers have light text */
.section-header .eyebrow,
.section-header p,
.section-header .lead {
  color: rgba(226, 232, 240, 0.85) !important;
}

.course-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.course-card.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.course-card.coming-soon:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

.course-card__icon {
  margin-bottom: 1.5rem;
}

.course-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f1f5f9 !important; /* Light text on dark card */
}

.course-card__description {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(226, 232, 240, 0.85) !important; /* Muted light text */
}

.course-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.course-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 500;
}

.course-card__footer span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.course-card:hover .course-card__footer span {
  transform: translateX(5px);
}

/* =====================================================
   COURSE CARD LARGE - New Focused Design
   ===================================================== */
.courses-section {
  padding: 4rem 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.courses-section .container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.courses-main-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Feature Icon Wrapper */
.feature-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.feature-block:hover .feature-icon-wrap {
  transform: scale(1.1);
}

.feature-block h4 {
  margin-bottom: 0.75rem;
}

.feature-block p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Course Cards Enhanced */
.course-card-large {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 100%;
}

/* =====================================================
   EXPANDED COURSE CARDS - Full Width Design
   ===================================================== */
.courses-grid {
  width: 100%;
  max-width: 100%;
}

.course-card-expanded {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.course-card-expanded:hover {
  transform: translateY(-6px);
  border-color: var(--card-color, #3b82f6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(var(--card-color-rgb, 59, 130, 246), 0.15);
}

.course-card-expanded__link {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.course-card-expanded__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.course-card-expanded__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-expanded__badge.available {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 15px rgba(16, 185, 129, 0.4);
}

.course-card-expanded__icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid var(--card-color, #3b82f6);
  transition: all 0.3s ease;
}

.course-card-expanded__icon i {
  font-size: 2rem;
  color: var(--card-color, #3b82f6);
}

.course-card-expanded:hover .course-card-expanded__icon {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(var(--card-color-rgb, 59, 130, 246), 0.4);
}

.course-card-expanded__title-wrap {
  flex: 1;
}

.course-card-expanded__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.course-card-expanded__subtitle {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  margin: 0;
}

.course-card-expanded__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 1.5rem;
}

.course-card-expanded__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Topics Section */
.course-card-expanded__topics,
.course-card-expanded__features {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.topics-title,
.features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 2rem;
  font-size: 0.8rem;
  color: #93c5fd;
  transition: all 0.2s ease;
}

.topic-tag:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.topic-tag i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.8);
}

.features-list li:last-child {
  margin-bottom: 0;
}

.features-list strong {
  color: #e2e8f0;
}

/* Footer */
.course-card-expanded__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: auto;
}

.course-stats {
  display: flex;
  gap: 1rem;
}

.course-stats .stat {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.course-stats .stat i {
  margin-right: 0.35rem;
  color: #60a5fa;
}

.course-card-expanded__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 2rem;
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.course-card-expanded:hover .course-card-expanded__cta {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* =====================================================
   COMPACT COURSE CARDS - Horizontal Layout (3 per row)
   ===================================================== */
.course-card-compact {
  position: relative;
  height: 100%;
}

.course-card-compact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  height: 100%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.course-card-compact__link:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-card-compact__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 2px solid var(--card-color, #3b82f6);
  transition: all 0.3s ease;
}

.course-card-compact__link:hover .course-card-compact__icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--card-color-rgb, 59, 130, 246), 0.3);
}

.course-card-compact__icon i {
  font-size: 1.5rem;
  color: var(--card-color, #3b82f6);
}

.course-card-compact__content {
  flex: 1;
  min-width: 0;
}

.course-card-compact__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.course-card-compact__subtitle {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.course-card-compact__desc {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.6);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.course-card-compact__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.course-card-compact__arrow {
  color: rgba(148, 163, 184, 0.5);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.course-card-compact__link:hover .course-card-compact__arrow {
  color: #60a5fa;
  transform: translateX(5px);
}

/* =====================================================
   RESPONSIVE - Expanded Cards
   ===================================================== */
@media (min-width: 1400px) {
  .courses-section {
    padding: 4rem 3rem;
  }
  
  .course-card-expanded__link {
    padding: 2.5rem;
  }
  
  .course-card-expanded__content {
    gap: 2rem;
  }
}

@media (min-width: 1600px) {
  .courses-section {
    padding: 4rem 4rem;
  }
}

@media (max-width: 991px) {
  .course-card-expanded__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .course-card-expanded__link {
    padding: 1.5rem;
  }
  
  .course-card-expanded__title {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .course-card-expanded__header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .course-card-expanded__badge {
    position: static;
    align-self: center;
  }
  
  .course-card-expanded__icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
  
  .course-card-expanded__icon i {
    font-size: 1.75rem;
  }
  
  .course-card-expanded__title {
    font-size: 1.25rem;
  }
  
  .course-card-expanded__desc {
    font-size: 0.95rem;
    text-align: center;
  }
  
  .course-card-expanded__footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .course-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .topics-grid {
    justify-content: center;
  }
  
  .features-list li {
    font-size: 0.85rem;
  }
}

@media (max-width: 575px) {
  .course-card-expanded__link {
    padding: 1.25rem;
  }
  
  .course-card-expanded__topics,
  .course-card-expanded__features {
    padding: 1rem;
  }
  
  .topic-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .course-card-compact__link {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .course-card-compact__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  
  .course-card-compact__icon i {
    font-size: 1.25rem;
  }
  
  .course-card-compact__title {
    font-size: 1rem;
  }
  
  .course-card-compact__subtitle {
    font-size: 0.75rem;
  }
  
  .course-card-compact__badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  
  .course-card-compact__arrow {
    display: none;
  }
}

.course-card-large__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
}

.course-card-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--card-color-rgb, 59, 130, 246), 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.course-card-large:hover::before {
  opacity: 1;
}

.course-card-large:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--card-color, #3b82f6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--card-color-rgb, 59, 130, 246), 0.2);
}

.course-card-large.coming-soon {
  opacity: 0.7;
}

.course-card-large.coming-soon:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-card-large__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-large__badge.available {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.course-card-large__badge.soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.course-card-large__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid var(--card-color, #3b82f6);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.course-card-large__icon i {
  font-size: 2.5rem;
  color: var(--card-color, #3b82f6);
  transition: all 0.3s ease;
}

.course-card-large:hover .course-card-large__icon {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(var(--card-color-rgb, 59, 130, 246), 0.5);
}

.course-card-large:hover .course-card-large__icon i {
  transform: scale(1.1);
}

.course-card-large__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.course-card-large__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.course-card-large__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  width: 100%;
}

.course-card-large__features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.course-card-large__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 2rem;
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.course-card-large:hover .course-card-large__cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2));
  transform: translateX(5px);
}

/* AI Mentor Section */
.ai-mentor-card {
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
}

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

.ai-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.ai-features-list li:last-child {
  margin-bottom: 0;
}

.ai-features-list strong {
  color: #e2e8f0;
}

/* AI Robot Animation */
.ai-mentor-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.ai-robot-icon {
  font-size: 4rem;
  color: #60a5fa;
  position: relative;
  z-index: 2;
}

.ai-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(96, 165, 250, 0.4);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.ai-pulse-ring.delay-1 {
  animation-delay: 0.5s;
}

.ai-pulse-ring.delay-2 {
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Benefits Section */
.seo-benefits-section {
  padding: 1rem 0;
}

.benefit-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-item h4 {
  font-size: 1.1rem;
}

.benefit-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsive - Courses Section */
@media (max-width: 991px) {
  .courses-main-title {
    font-size: 1.875rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .feature-block h4 {
    font-size: 1.1rem;
  }
  
  .ai-mentor-visual {
    width: 100px;
    height: 100px;
  }
  
  .ai-robot-icon {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .courses-section {
    padding: 3rem 0.75rem;
  }
  
  .courses-main-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .feature-icon-wrap {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon-wrap i {
    font-size: 1.5rem !important;
  }
  
  .feature-block p {
    font-size: 0.9rem;
  }
  
  .course-card-large__link {
    padding: 2rem 1.5rem;
  }
  
  .course-card-large__icon {
    width: 70px;
    height: 70px;
  }
  
  .course-card-large__icon i {
    font-size: 2rem;
  }
  
  .course-card-large__title {
    font-size: 1.25rem;
  }
  
  .course-card-large__desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .course-card-large__features {
    font-size: 0.85rem;
  }
  
  .ai-features-list li {
    font-size: 0.9rem;
  }
  
  .ai-mentor-content h3 {
    font-size: 1.25rem;
  }
  
  .benefit-item {
    padding: 1.25rem !important;
  }
  
  .benefit-item h4 {
    font-size: 1rem;
  }
  
  .benefit-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .courses-section {
    padding: 2rem 0.5rem;
  }
  
  .courses-main-title {
    font-size: 1.35rem;
  }
  
  .glass-card {
    padding: 1.25rem !important;
  }
  
  .course-card-large__link {
    padding: 1.75rem 1.25rem;
  }
  
  .course-card-large__badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
  
  .course-card-large__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .course-card-large__icon i {
    font-size: 1.75rem;
  }
  
  .course-card-large__title {
    font-size: 1.15rem;
  }
  
  .course-card-large__desc {
    font-size: 0.875rem;
  }
  
  .course-card-large__cta {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }
  
  .ai-robot-icon {
    font-size: 2.5rem;
  }
  
  .ai-pulse-ring {
    width: 70px;
    height: 70px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .course-card-large:hover {
    transform: none;
  }
  
  .course-card-large:active {
    transform: scale(0.98);
  }
  
  .course-card-large.coming-soon:hover {
    transform: none;
  }
  
  .benefit-item:hover {
    transform: none;
  }
}

/* =====================================================
   HERO FEATURES SECTION
   ===================================================== */
.hero-features {
  margin-top: 2rem;
}

.hero-features li {
  flex: 1;
  min-width: 200px;
}

.feature-value {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9; /* Always light text on dark hero */
}

.feature-label {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hero-features {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .hero-features li {
    min-width: 100%;
  }
}

/* =====================================================
   WORKSPACE & CODE EDITOR: ALWAYS DARK MODE
   ===================================================== */
/* Force workspace and code editor to always stay in dark mode */
.editor-lab,
.side-panel {
  background-color: rgba(2, 6, 23, 0.9) !important;
}

.editor-lab h2,
.editor-lab h5,
.editor-lab p,
.editor-lab label,
.side-panel h5,
.side-panel p {
  color: #e2e8f0 !important;
}

.editor-lab .text-white-50,
.side-panel .text-white-50 {
  color: rgba(226, 232, 240, 0.7) !important;
}

/* Code editor background - DO NOT touch text colors (CodeMirror handles it) */
.CodeMirror {
  background: #020617 !important;
  /* DO NOT set color here - let CodeMirror syntax highlighting work */
}

/* Terminal/Console output - these can have fixed colors */
.hero-terminal,
.hero-terminal pre,
.sample-pre {
  background: rgba(2, 6, 23, 0.95) !important;
  color: #d1fae5 !important;
}

/* =====================================================
   INPUT MODAL - Beautiful Modern Design
   ===================================================== */
.input-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.input-modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.input-modal {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.15);
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.input-modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.input-modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.input-modal-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.input-modal-header h3 {
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.input-modal-header p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.input-modal-header code {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.input-modal-body {
  padding: 1.5rem;
  max-height: 350px;
  overflow-y: auto;
}

.input-field-group {
  margin-bottom: 1rem;
}

.input-field-group:last-child {
  margin-bottom: 0;
}

.input-field-group label {
  display: block;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-field-group label .input-number {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.input-field-group label .input-prompt {
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
}

.input-field-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.5rem;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input-field-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-field-group input::placeholder {
  color: #64748b;
}

.input-modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(71, 85, 105, 0.3);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-modal-cancel {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-modal-cancel:hover {
  background: rgba(71, 85, 105, 0.3);
  color: #f1f5f9;
}

.btn-modal-run {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-modal-run:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-modal-run:active {
  transform: translateY(0);
}

/* =====================================================
   MCQ ANSWER TOGGLE STYLES
   ===================================================== */
.mcq-answer-container {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
}

.mcq-answer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mcq-answer-toggle:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
}

.mcq-answer-toggle i {
  font-size: 0.9rem;
}

.mcq-answer-content {
  margin-top: 0.75rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mcq-answer-content.hidden {
  display: none;
}

.mcq-answer {
  color: #22c55e !important;
  font-weight: 600;
  margin: 0 !important;
}

/* Light mode adjustments */
body:not(.dark-mode) .mcq-answer-container {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(100, 116, 139, 0.3);
}

body:not(.dark-mode) .mcq-answer-content {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
}

body:not(.dark-mode) .mcq-answer {
  color: #16a34a !important;
}

/* Explanation container styling */
.explanation-container .mcq-answer-content {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.mcq-explanation {
  color: #60a5fa !important;
  font-weight: 500;
  margin: 0 !important;
}

body:not(.dark-mode) .explanation-container .mcq-answer-content {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

body:not(.dark-mode) .mcq-explanation {
  color: #2563eb !important;
}
